/* automatically generated by rust-bindgen 0.72.1 */
#[repr(C)]
#[derive(Copy, Clone, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)]
pub struct __BindgenBitfieldUnit<Storage> {
storage: Storage,
}
impl<Storage> __BindgenBitfieldUnit<Storage> {
#[inline]
pub const fn new(storage: Storage) -> Self {
Self { storage }
}
}
impl<Storage> __BindgenBitfieldUnit<Storage>
where
Storage: AsRef<[u8]> + AsMut<[u8]>,
{
#[inline]
fn extract_bit(byte: u8, index: usize) -> bool {
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 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];
Self::extract_bit(byte, index)
}
#[inline]
pub unsafe fn raw_get_bit(this: *const Self, index: usize) -> bool {
debug_assert!(index / 8 < core::mem::size_of::<Storage>());
let byte_index = index / 8;
let byte = unsafe {
*(core::ptr::addr_of!((*this).storage) as *const u8).offset(byte_index as isize)
};
Self::extract_bit(byte, index)
}
#[inline]
fn change_bit(byte: u8, index: usize, val: bool) -> u8 {
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 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];
*byte = Self::change_bit(*byte, index, val);
}
#[inline]
pub unsafe fn raw_set_bit(this: *mut Self, index: usize, val: bool) {
debug_assert!(index / 8 < core::mem::size_of::<Storage>());
let byte_index = index / 8;
let byte = unsafe {
(core::ptr::addr_of_mut!((*this).storage) as *mut u8).offset(byte_index as isize)
};
unsafe { *byte = Self::change_bit(*byte, index, val) };
}
#[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 unsafe fn raw_get(this: *const Self, bit_offset: usize, bit_width: u8) -> u64 {
debug_assert!(bit_width <= 64);
debug_assert!(bit_offset / 8 < core::mem::size_of::<Storage>());
debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::<Storage>());
let mut val = 0;
for i in 0..(bit_width as usize) {
if unsafe { Self::raw_get_bit(this, 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);
}
}
#[inline]
pub unsafe fn raw_set(this: *mut Self, bit_offset: usize, bit_width: u8, val: u64) {
debug_assert!(bit_width <= 64);
debug_assert!(bit_offset / 8 < core::mem::size_of::<Storage>());
debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::<Storage>());
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
};
unsafe { Self::raw_set_bit(this, index + bit_offset, val_bit_is_set) };
}
}
}
#[doc = r" If Bindgen could only determine the size and alignment of a"]
#[doc = r" type, it is represented like this."]
#[derive(PartialEq, Copy, Clone, Debug, Hash)]
#[repr(C)]
pub struct __BindgenOpaqueArray<T: Copy, const N: usize>(pub [T; N]);
impl<T: Copy + Default, const N: usize> Default for __BindgenOpaqueArray<T, N> {
fn default() -> Self {
Self([<T as Default>::default(); N])
}
}
#[repr(C)]
#[derive(Default)]
pub struct __IncompleteArrayField<T>(::std::marker::PhantomData<T>, [T; 0]);
impl<T> __IncompleteArrayField<T> {
#[inline]
pub const fn new() -> Self {
__IncompleteArrayField(::std::marker::PhantomData, [])
}
#[inline]
pub fn as_ptr(&self) -> *const T {
self as *const _ as *const T
}
#[inline]
pub fn as_mut_ptr(&mut self) -> *mut T {
self as *mut _ as *mut T
}
#[inline]
pub unsafe fn as_slice(&self, len: usize) -> &[T] {
::std::slice::from_raw_parts(self.as_ptr(), len)
}
#[inline]
pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] {
::std::slice::from_raw_parts_mut(self.as_mut_ptr(), len)
}
}
impl<T> ::std::fmt::Debug for __IncompleteArrayField<T> {
fn fmt(&self, fmt: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
fmt.write_str("__IncompleteArrayField")
}
}
pub const __BYTE_ORDER: u32 = 1234;
pub const __LONG_MAX: u64 = 9223372036854775807;
pub const __LITTLE_ENDIAN: u32 = 1234;
pub const __BIG_ENDIAN: u32 = 4321;
pub const __USE_TIME_BITS64: u32 = 1;
pub const G_ANALYZER_ANALYZING: u32 = 0;
pub const FALSE: u32 = 0;
pub const G_HAVE_GNUC_VISIBILITY: u32 = 1;
pub const _BSD_SOURCE: u32 = 1;
pub const _XOPEN_SOURCE: u32 = 700;
pub const CHAR_MIN: u32 = 0;
pub const CHAR_MAX: u32 = 255;
pub const CHAR_BIT: u32 = 8;
pub const SCHAR_MIN: i32 = -128;
pub const SCHAR_MAX: u32 = 127;
pub const UCHAR_MAX: u32 = 255;
pub const SHRT_MIN: i32 = -32768;
pub const SHRT_MAX: u32 = 32767;
pub const USHRT_MAX: u32 = 65535;
pub const INT_MIN: i32 = -2147483648;
pub const INT_MAX: u32 = 2147483647;
pub const UINT_MAX: u32 = 4294967295;
pub const LONG_MAX: u64 = 9223372036854775807;
pub const ULONG_MAX: i32 = -1;
pub const LLONG_MAX: u64 = 9223372036854775807;
pub const ULLONG_MAX: i32 = -1;
pub const MB_LEN_MAX: u32 = 4;
pub const PIPE_BUF: u32 = 4096;
pub const FILESIZEBITS: u32 = 64;
pub const NAME_MAX: u32 = 255;
pub const PATH_MAX: u32 = 4096;
pub const NGROUPS_MAX: u32 = 32;
pub const ARG_MAX: u32 = 131072;
pub const IOV_MAX: u32 = 1024;
pub const SYMLOOP_MAX: u32 = 40;
pub const WORD_BIT: u32 = 32;
pub const SSIZE_MAX: u64 = 9223372036854775807;
pub const TZNAME_MAX: u32 = 6;
pub const TTY_NAME_MAX: u32 = 32;
pub const HOST_NAME_MAX: u32 = 255;
pub const LONG_BIT: u32 = 64;
pub const PTHREAD_KEYS_MAX: u32 = 128;
pub const PTHREAD_STACK_MIN: u32 = 2048;
pub const PTHREAD_DESTRUCTOR_ITERATIONS: u32 = 4;
pub const SEM_VALUE_MAX: u32 = 2147483647;
pub const SEM_NSEMS_MAX: u32 = 256;
pub const DELAYTIMER_MAX: u32 = 2147483647;
pub const MQ_PRIO_MAX: u32 = 32768;
pub const LOGIN_NAME_MAX: u32 = 256;
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 CHARCLASS_NAME_MAX: u32 = 14;
pub const COLL_WEIGHTS_MAX: u32 = 2;
pub const EXPR_NEST_MAX: u32 = 32;
pub const LINE_MAX: u32 = 4096;
pub const RE_DUP_MAX: u32 = 255;
pub const NL_ARGMAX: u32 = 9;
pub const NL_MSGMAX: u32 = 32767;
pub const NL_SETMAX: u32 = 255;
pub const NL_TEXTMAX: u32 = 2048;
pub const NZERO: u32 = 20;
pub const NL_LANGMAX: u32 = 32;
pub const NL_NMAX: u32 = 16;
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_CLOCKRES_MIN: u32 = 20000000;
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_SS_REPL_MAX: u32 = 4;
pub const _POSIX_SYMLINK_MAX: u32 = 255;
pub const _POSIX_SYMLOOP_MAX: u32 = 8;
pub const _POSIX_THREAD_DESTRUCTOR_ITERATIONS: u32 = 4;
pub const _POSIX_THREAD_KEYS_MAX: u32 = 128;
pub const _POSIX_THREAD_THREADS_MAX: u32 = 64;
pub const _POSIX_TIMER_MAX: u32 = 32;
pub const _POSIX_TRACE_EVENT_NAME_MAX: u32 = 30;
pub const _POSIX_TRACE_NAME_MAX: u32 = 8;
pub const _POSIX_TRACE_SYS_MAX: u32 = 8;
pub const _POSIX_TRACE_USER_EVENT_MAX: u32 = 32;
pub const _POSIX_TTY_NAME_MAX: u32 = 9;
pub const _POSIX_TZNAME_MAX: u32 = 6;
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_CHARCLASS_NAME_MAX: u32 = 14;
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 _XOPEN_IOV_MAX: u32 = 16;
pub const _XOPEN_NAME_MAX: u32 = 255;
pub const _XOPEN_PATH_MAX: u32 = 1024;
pub const FLT_RADIX: u32 = 2;
pub const FLT_MANT_DIG: u32 = 24;
pub const FLT_MIN_EXP: i32 = -125;
pub const FLT_MAX_EXP: u32 = 128;
pub const FLT_HAS_SUBNORM: u32 = 1;
pub const FLT_DIG: u32 = 6;
pub const FLT_DECIMAL_DIG: u32 = 9;
pub const FLT_MIN_10_EXP: i32 = -37;
pub const FLT_MAX_10_EXP: u32 = 38;
pub const DBL_MANT_DIG: u32 = 53;
pub const DBL_MIN_EXP: i32 = -1021;
pub const DBL_MAX_EXP: u32 = 1024;
pub const DBL_HAS_SUBNORM: u32 = 1;
pub const DBL_DIG: u32 = 15;
pub const DBL_DECIMAL_DIG: u32 = 17;
pub const DBL_MIN_10_EXP: i32 = -307;
pub const DBL_MAX_10_EXP: u32 = 308;
pub const LDBL_HAS_SUBNORM: u32 = 1;
pub const FLT_EVAL_METHOD: u32 = 0;
pub const LDBL_MANT_DIG: u32 = 113;
pub const LDBL_MIN_EXP: i32 = -16381;
pub const LDBL_MAX_EXP: u32 = 16384;
pub const LDBL_DIG: u32 = 33;
pub const LDBL_MIN_10_EXP: i32 = -4931;
pub const LDBL_MAX_10_EXP: u32 = 4932;
pub const DECIMAL_DIG: u32 = 36;
pub const G_MINSHORT: i32 = -32768;
pub const G_MAXSHORT: u32 = 32767;
pub const G_MAXUSHORT: u32 = 65535;
pub const G_MININT: i32 = -2147483648;
pub const G_MAXINT: u32 = 2147483647;
pub const G_MAXUINT: u32 = 4294967295;
pub const G_MAXLONG: u64 = 9223372036854775807;
pub const G_MAXULONG: i32 = -1;
pub const G_GINT16_MODIFIER: &[u8; 2] = b"h\0";
pub const G_GINT16_FORMAT: &[u8; 3] = b"hi\0";
pub const G_GUINT16_FORMAT: &[u8; 3] = b"hu\0";
pub const G_GINT32_MODIFIER: &[u8; 1] = b"\0";
pub const G_GINT32_FORMAT: &[u8; 2] = b"i\0";
pub const G_GUINT32_FORMAT: &[u8; 2] = b"u\0";
pub const G_HAVE_GINT64: u32 = 1;
pub const G_GINT64_MODIFIER: &[u8; 2] = b"l\0";
pub const G_GINT64_FORMAT: &[u8; 3] = b"li\0";
pub const G_GUINT64_FORMAT: &[u8; 3] = 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: &[u8; 2] = b"l\0";
pub const G_GSSIZE_MODIFIER: &[u8; 2] = b"l\0";
pub const G_GSIZE_FORMAT: &[u8; 3] = b"lu\0";
pub const G_GSSIZE_FORMAT: &[u8; 3] = b"li\0";
pub const G_MAXSIZE: i32 = -1;
pub const G_MAXSSIZE: u64 = 9223372036854775807;
pub const G_GOFFSET_MODIFIER: &[u8; 2] = b"l\0";
pub const G_GOFFSET_FORMAT: &[u8; 3] = b"li\0";
pub const G_POLLFD_FORMAT: &[u8; 3] = b"%d\0";
pub const G_GINTPTR_MODIFIER: &[u8; 2] = b"l\0";
pub const G_GINTPTR_FORMAT: &[u8; 3] = b"li\0";
pub const G_GUINTPTR_FORMAT: &[u8; 3] = b"lu\0";
pub const GLIB_MAJOR_VERSION: u32 = 2;
pub const GLIB_MINOR_VERSION: u32 = 86;
pub const GLIB_MICRO_VERSION: u32 = 3;
pub const G_HAVE_ISO_VARARGS: u32 = 1;
pub const G_HAVE_GROWING_STACK: u32 = 0;
pub const G_HAVE_GNUC_VARARGS: u32 = 1;
pub const G_MODULE_SUFFIX: &[u8; 3] = b"so\0";
pub const G_PID_FORMAT: &[u8; 2] = 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: &[u8; 2] = b"/\0";
pub const G_SEARCHPATH_SEPARATOR: u8 = 58u8;
pub const G_SEARCHPATH_SEPARATOR_S: &[u8; 2] = b":\0";
pub const CLOCKS_PER_SEC: u32 = 1000000;
pub const TIME_UTC: u32 = 1;
pub const CLOCK_REALTIME: u32 = 0;
pub const CLOCK_MONOTONIC: u32 = 1;
pub const CLOCK_PROCESS_CPUTIME_ID: u32 = 2;
pub const CLOCK_THREAD_CPUTIME_ID: u32 = 3;
pub const CLOCK_MONOTONIC_RAW: u32 = 4;
pub const CLOCK_REALTIME_COARSE: u32 = 5;
pub const CLOCK_MONOTONIC_COARSE: u32 = 6;
pub const CLOCK_BOOTTIME: u32 = 7;
pub const CLOCK_REALTIME_ALARM: u32 = 8;
pub const CLOCK_BOOTTIME_ALARM: u32 = 9;
pub const CLOCK_SGI_CYCLE: u32 = 10;
pub const CLOCK_TAI: u32 = 11;
pub const TIMER_ABSTIME: 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 EXIT_FAILURE: u32 = 1;
pub const EXIT_SUCCESS: u32 = 0;
pub const RAND_MAX: u32 = 2147483647;
pub const WNOHANG: u32 = 1;
pub const WUNTRACED: u32 = 2;
pub const SIG_BLOCK: u32 = 0;
pub const SIG_UNBLOCK: u32 = 1;
pub const SIG_SETMASK: u32 = 2;
pub const SI_ASYNCNL: i32 = -60;
pub const SI_TKILL: i32 = -6;
pub const SI_SIGIO: i32 = -5;
pub const SI_ASYNCIO: i32 = -4;
pub const SI_MESGQ: i32 = -3;
pub const SI_TIMER: i32 = -2;
pub const SI_QUEUE: i32 = -1;
pub const SI_USER: u32 = 0;
pub const SI_KERNEL: u32 = 128;
pub const MINSIGSTKSZ: u32 = 6144;
pub const SIGSTKSZ: u32 = 12288;
pub const FPSIMD_MAGIC: u32 = 1179680769;
pub const ESR_MAGIC: u32 = 1163088385;
pub const EXTRA_MAGIC: u32 = 1163416577;
pub const SVE_MAGIC: u32 = 1398162689;
pub const SVE_VQ_BYTES: u32 = 16;
pub const SVE_VQ_MIN: u32 = 1;
pub const SVE_VQ_MAX: u32 = 512;
pub const SVE_VL_MIN: u32 = 16;
pub const SVE_VL_MAX: u32 = 8192;
pub const SVE_NUM_ZREGS: u32 = 32;
pub const SVE_NUM_PREGS: u32 = 16;
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_RESTORER: u32 = 67108864;
pub const SIGHUP: u32 = 1;
pub const SIGINT: u32 = 2;
pub const SIGQUIT: u32 = 3;
pub const SIGILL: u32 = 4;
pub const SIGTRAP: u32 = 5;
pub const SIGABRT: u32 = 6;
pub const SIGIOT: u32 = 6;
pub const SIGBUS: u32 = 7;
pub const SIGFPE: u32 = 8;
pub const SIGKILL: u32 = 9;
pub const SIGUSR1: u32 = 10;
pub const SIGSEGV: u32 = 11;
pub const SIGUSR2: u32 = 12;
pub const SIGPIPE: u32 = 13;
pub const SIGALRM: u32 = 14;
pub const SIGTERM: u32 = 15;
pub const SIGSTKFLT: u32 = 16;
pub const SIGCHLD: u32 = 17;
pub const SIGCONT: u32 = 18;
pub const SIGSTOP: u32 = 19;
pub const SIGTSTP: u32 = 20;
pub const SIGTTIN: u32 = 21;
pub const SIGTTOU: u32 = 22;
pub const SIGURG: u32 = 23;
pub const SIGXCPU: u32 = 24;
pub const SIGXFSZ: u32 = 25;
pub const SIGVTALRM: u32 = 26;
pub const SIGPROF: u32 = 27;
pub const SIGWINCH: u32 = 28;
pub const SIGIO: u32 = 29;
pub const SIGPOLL: u32 = 29;
pub const SIGPWR: u32 = 30;
pub const SIGSYS: u32 = 31;
pub const SIGUNUSED: u32 = 31;
pub const _NSIG: u32 = 65;
pub const FPE_INTDIV: u32 = 1;
pub const FPE_INTOVF: u32 = 2;
pub const FPE_FLTDIV: u32 = 3;
pub const FPE_FLTOVF: u32 = 4;
pub const FPE_FLTUND: u32 = 5;
pub const FPE_FLTRES: u32 = 6;
pub const FPE_FLTINV: u32 = 7;
pub const FPE_FLTSUB: u32 = 8;
pub const ILL_ILLOPC: u32 = 1;
pub const ILL_ILLOPN: u32 = 2;
pub const ILL_ILLADR: u32 = 3;
pub const ILL_ILLTRP: u32 = 4;
pub const ILL_PRVOPC: u32 = 5;
pub const ILL_PRVREG: u32 = 6;
pub const ILL_COPROC: u32 = 7;
pub const ILL_BADSTK: u32 = 8;
pub const SEGV_MAPERR: u32 = 1;
pub const SEGV_ACCERR: u32 = 2;
pub const SEGV_BNDERR: u32 = 3;
pub const SEGV_PKUERR: u32 = 4;
pub const SEGV_MTEAERR: u32 = 8;
pub const SEGV_MTESERR: u32 = 9;
pub const BUS_ADRALN: u32 = 1;
pub const BUS_ADRERR: u32 = 2;
pub const BUS_OBJERR: u32 = 3;
pub const BUS_MCEERR_AR: u32 = 4;
pub const BUS_MCEERR_AO: u32 = 5;
pub const CLD_EXITED: u32 = 1;
pub const CLD_KILLED: u32 = 2;
pub const CLD_DUMPED: u32 = 3;
pub const CLD_TRAPPED: u32 = 4;
pub const CLD_STOPPED: u32 = 5;
pub const CLD_CONTINUED: u32 = 6;
pub const SA_UNSUPPORTED: u32 = 1024;
pub const SA_EXPOSE_TAGBITS: u32 = 2048;
pub const SIGEV_SIGNAL: u32 = 0;
pub const SIGEV_NONE: u32 = 1;
pub const SIGEV_THREAD: u32 = 2;
pub const SIGEV_THREAD_ID: u32 = 4;
pub const TRAP_BRKPT: u32 = 1;
pub const TRAP_TRACE: u32 = 2;
pub const TRAP_BRANCH: u32 = 3;
pub const TRAP_HWBKPT: u32 = 4;
pub const TRAP_UNK: u32 = 5;
pub const POLL_IN: u32 = 1;
pub const POLL_OUT: u32 = 2;
pub const POLL_MSG: u32 = 3;
pub const POLL_ERR: u32 = 4;
pub const POLL_PRI: u32 = 5;
pub const POLL_HUP: u32 = 6;
pub const SS_ONSTACK: u32 = 1;
pub const SS_DISABLE: u32 = 2;
pub const SS_AUTODISARM: u32 = 2147483648;
pub const SS_FLAG_BITS: u32 = 2147483648;
pub const NSIG: u32 = 65;
pub const SYS_SECCOMP: u32 = 1;
pub const SYS_USER_DISPATCH: u32 = 2;
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 DT_UNKNOWN: u32 = 0;
pub const DT_FIFO: u32 = 1;
pub const DT_CHR: u32 = 2;
pub const DT_DIR: u32 = 4;
pub const DT_BLK: u32 = 6;
pub const DT_REG: u32 = 8;
pub const DT_LNK: u32 = 10;
pub const DT_SOCK: u32 = 12;
pub const DT_WHT: u32 = 14;
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_STR_DELIMITERS: &[u8; 8] = b"_-|> <.\0";
pub const G_ASCII_DTOSTR_BUF_SIZE: u32 = 39;
pub const G_KEY_FILE_DESKTOP_GROUP: &[u8; 14] = b"Desktop Entry\0";
pub const G_KEY_FILE_DESKTOP_KEY_TYPE: &[u8; 5] = b"Type\0";
pub const G_KEY_FILE_DESKTOP_KEY_VERSION: &[u8; 8] = b"Version\0";
pub const G_KEY_FILE_DESKTOP_KEY_NAME: &[u8; 5] = b"Name\0";
pub const G_KEY_FILE_DESKTOP_KEY_GENERIC_NAME: &[u8; 12] = b"GenericName\0";
pub const G_KEY_FILE_DESKTOP_KEY_NO_DISPLAY: &[u8; 10] = b"NoDisplay\0";
pub const G_KEY_FILE_DESKTOP_KEY_COMMENT: &[u8; 8] = b"Comment\0";
pub const G_KEY_FILE_DESKTOP_KEY_ICON: &[u8; 5] = b"Icon\0";
pub const G_KEY_FILE_DESKTOP_KEY_HIDDEN: &[u8; 7] = b"Hidden\0";
pub const G_KEY_FILE_DESKTOP_KEY_ONLY_SHOW_IN: &[u8; 11] = b"OnlyShowIn\0";
pub const G_KEY_FILE_DESKTOP_KEY_NOT_SHOW_IN: &[u8; 10] = b"NotShowIn\0";
pub const G_KEY_FILE_DESKTOP_KEY_TRY_EXEC: &[u8; 8] = b"TryExec\0";
pub const G_KEY_FILE_DESKTOP_KEY_EXEC: &[u8; 5] = b"Exec\0";
pub const G_KEY_FILE_DESKTOP_KEY_PATH: &[u8; 5] = b"Path\0";
pub const G_KEY_FILE_DESKTOP_KEY_TERMINAL: &[u8; 9] = b"Terminal\0";
pub const G_KEY_FILE_DESKTOP_KEY_MIME_TYPE: &[u8; 9] = b"MimeType\0";
pub const G_KEY_FILE_DESKTOP_KEY_CATEGORIES: &[u8; 11] = b"Categories\0";
pub const G_KEY_FILE_DESKTOP_KEY_STARTUP_NOTIFY: &[u8; 14] = b"StartupNotify\0";
pub const G_KEY_FILE_DESKTOP_KEY_STARTUP_WM_CLASS: &[u8; 15] = b"StartupWMClass\0";
pub const G_KEY_FILE_DESKTOP_KEY_URL: &[u8; 4] = b"URL\0";
pub const G_KEY_FILE_DESKTOP_KEY_DBUS_ACTIVATABLE: &[u8; 16] = b"DBusActivatable\0";
pub const G_KEY_FILE_DESKTOP_KEY_ACTIONS: &[u8; 8] = b"Actions\0";
pub const G_KEY_FILE_DESKTOP_TYPE_APPLICATION: &[u8; 12] = b"Application\0";
pub const G_KEY_FILE_DESKTOP_TYPE_LINK: &[u8; 5] = b"Link\0";
pub const G_KEY_FILE_DESKTOP_TYPE_DIRECTORY: &[u8; 10] = b"Directory\0";
pub const G_LOG_LEVEL_USER_SHIFT: u32 = 8;
pub const G_OPTION_REMAINING: &[u8; 1] = b"\0";
pub const G_CSET_A_2_Z: &[u8; 27] = b"ABCDEFGHIJKLMNOPQRSTUVWXYZ\0";
pub const G_CSET_a_2_z: &[u8; 27] = b"abcdefghijklmnopqrstuvwxyz\0";
pub const G_CSET_DIGITS: &[u8; 11] = b"0123456789\0";
pub const G_CSET_LATINC : & [u8 ; 31] = b"\xC0\xC1\xC2\xC3\xC4\xC5\xC6\xC7\xC8\xC9\xCA\xCB\xCC\xCD\xCE\xCF\xD0\xD1\xD2\xD3\xD4\xD5\xD6\xD8\xD9\xDA\xDB\xDC\xDD\xDE\0" ;
pub const G_CSET_LATINS : & [u8 ; 33] = b"\xDF\xE0\xE1\xE2\xE3\xE4\xE5\xE6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\xF0\xF1\xF2\xF3\xF4\xF5\xF6\xF8\xF9\xFA\xFB\xFC\xFD\xFE\xFF\0" ;
pub const EPERM: u32 = 1;
pub const ENOENT: u32 = 2;
pub const ESRCH: u32 = 3;
pub const EINTR: u32 = 4;
pub const EIO: u32 = 5;
pub const ENXIO: u32 = 6;
pub const E2BIG: u32 = 7;
pub const ENOEXEC: u32 = 8;
pub const EBADF: u32 = 9;
pub const ECHILD: u32 = 10;
pub const EAGAIN: u32 = 11;
pub const ENOMEM: u32 = 12;
pub const EACCES: u32 = 13;
pub const EFAULT: u32 = 14;
pub const ENOTBLK: u32 = 15;
pub const EBUSY: u32 = 16;
pub const EEXIST: u32 = 17;
pub const EXDEV: u32 = 18;
pub const ENODEV: u32 = 19;
pub const ENOTDIR: u32 = 20;
pub const EISDIR: u32 = 21;
pub const EINVAL: u32 = 22;
pub const ENFILE: u32 = 23;
pub const EMFILE: u32 = 24;
pub const ENOTTY: u32 = 25;
pub const ETXTBSY: u32 = 26;
pub const EFBIG: u32 = 27;
pub const ENOSPC: u32 = 28;
pub const ESPIPE: u32 = 29;
pub const EROFS: u32 = 30;
pub const EMLINK: u32 = 31;
pub const EPIPE: u32 = 32;
pub const EDOM: u32 = 33;
pub const ERANGE: u32 = 34;
pub const EDEADLK: u32 = 35;
pub const ENAMETOOLONG: u32 = 36;
pub const ENOLCK: u32 = 37;
pub const ENOSYS: u32 = 38;
pub const ENOTEMPTY: u32 = 39;
pub const ELOOP: u32 = 40;
pub const EWOULDBLOCK: u32 = 11;
pub const ENOMSG: u32 = 42;
pub const EIDRM: u32 = 43;
pub const ECHRNG: u32 = 44;
pub const EL2NSYNC: u32 = 45;
pub const EL3HLT: u32 = 46;
pub const EL3RST: u32 = 47;
pub const ELNRNG: u32 = 48;
pub const EUNATCH: u32 = 49;
pub const ENOCSI: u32 = 50;
pub const EL2HLT: u32 = 51;
pub const EBADE: u32 = 52;
pub const EBADR: u32 = 53;
pub const EXFULL: u32 = 54;
pub const ENOANO: u32 = 55;
pub const EBADRQC: u32 = 56;
pub const EBADSLT: u32 = 57;
pub const EDEADLOCK: u32 = 35;
pub const EBFONT: u32 = 59;
pub const ENOSTR: u32 = 60;
pub const ENODATA: u32 = 61;
pub const ETIME: u32 = 62;
pub const ENOSR: u32 = 63;
pub const ENONET: u32 = 64;
pub const ENOPKG: u32 = 65;
pub const EREMOTE: u32 = 66;
pub const ENOLINK: u32 = 67;
pub const EADV: u32 = 68;
pub const ESRMNT: u32 = 69;
pub const ECOMM: u32 = 70;
pub const EPROTO: u32 = 71;
pub const EMULTIHOP: u32 = 72;
pub const EDOTDOT: u32 = 73;
pub const EBADMSG: u32 = 74;
pub const EOVERFLOW: u32 = 75;
pub const ENOTUNIQ: u32 = 76;
pub const EBADFD: u32 = 77;
pub const EREMCHG: u32 = 78;
pub const ELIBACC: u32 = 79;
pub const ELIBBAD: u32 = 80;
pub const ELIBSCN: u32 = 81;
pub const ELIBMAX: u32 = 82;
pub const ELIBEXEC: u32 = 83;
pub const EILSEQ: u32 = 84;
pub const ERESTART: u32 = 85;
pub const ESTRPIPE: u32 = 86;
pub const EUSERS: u32 = 87;
pub const ENOTSOCK: u32 = 88;
pub const EDESTADDRREQ: u32 = 89;
pub const EMSGSIZE: u32 = 90;
pub const EPROTOTYPE: u32 = 91;
pub const ENOPROTOOPT: u32 = 92;
pub const EPROTONOSUPPORT: u32 = 93;
pub const ESOCKTNOSUPPORT: u32 = 94;
pub const EOPNOTSUPP: u32 = 95;
pub const ENOTSUP: u32 = 95;
pub const EPFNOSUPPORT: u32 = 96;
pub const EAFNOSUPPORT: u32 = 97;
pub const EADDRINUSE: u32 = 98;
pub const EADDRNOTAVAIL: u32 = 99;
pub const ENETDOWN: u32 = 100;
pub const ENETUNREACH: u32 = 101;
pub const ENETRESET: u32 = 102;
pub const ECONNABORTED: u32 = 103;
pub const ECONNRESET: u32 = 104;
pub const ENOBUFS: u32 = 105;
pub const EISCONN: u32 = 106;
pub const ENOTCONN: u32 = 107;
pub const ESHUTDOWN: u32 = 108;
pub const ETOOMANYREFS: u32 = 109;
pub const ETIMEDOUT: u32 = 110;
pub const ECONNREFUSED: u32 = 111;
pub const EHOSTDOWN: u32 = 112;
pub const EHOSTUNREACH: u32 = 113;
pub const EALREADY: u32 = 114;
pub const EINPROGRESS: u32 = 115;
pub const ESTALE: u32 = 116;
pub const EUCLEAN: u32 = 117;
pub const ENOTNAM: u32 = 118;
pub const ENAVAIL: u32 = 119;
pub const EISNAM: u32 = 120;
pub const EREMOTEIO: u32 = 121;
pub const EDQUOT: u32 = 122;
pub const ENOMEDIUM: u32 = 123;
pub const EMEDIUMTYPE: u32 = 124;
pub const ECANCELED: u32 = 125;
pub const ENOKEY: u32 = 126;
pub const EKEYEXPIRED: u32 = 127;
pub const EKEYREVOKED: u32 = 128;
pub const EKEYREJECTED: u32 = 129;
pub const EOWNERDEAD: u32 = 130;
pub const ENOTRECOVERABLE: u32 = 131;
pub const ERFKILL: u32 = 132;
pub const EHWPOISON: u32 = 133;
pub const G_TEST_OPTION_ISOLATE_DIRS: &[u8; 13] = b"isolate_dirs\0";
pub const G_TEST_OPTION_NO_PRGNAME: &[u8; 17] = b"no_g_set_prgname\0";
pub const G_TEST_OPTION_NONFATAL_ASSERTIONS: &[u8; 20] = b"nonfatal-assertions\0";
pub const G_USEC_PER_SEC: u32 = 1000000;
pub const G_URI_RESERVED_CHARS_GENERIC_DELIMITERS: &[u8; 8] = b":/?#[]@\0";
pub const G_URI_RESERVED_CHARS_SUBCOMPONENT_DELIMITERS: &[u8; 12] = b"!$&'()*+,;=\0";
pub const G_URI_RESERVED_CHARS_ALLOWED_IN_PATH_ELEMENT: &[u8; 14] = b"!$&'()*+,;=:@\0";
pub const G_URI_RESERVED_CHARS_ALLOWED_IN_PATH: &[u8; 15] = b"!$&'()*+,;=:@/\0";
pub const G_URI_RESERVED_CHARS_ALLOWED_IN_USERINFO: &[u8; 13] = 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 __PDP_ENDIAN: u32 = 3412;
pub const BIG_ENDIAN: u32 = 4321;
pub const LITTLE_ENDIAN: u32 = 1234;
pub const PDP_ENDIAN: u32 = 3412;
pub const BYTE_ORDER: u32 = 1234;
pub const FD_SETSIZE: u32 = 1024;
pub const SCHED_OTHER: u32 = 0;
pub const SCHED_FIFO: u32 = 1;
pub const SCHED_RR: u32 = 2;
pub const SCHED_BATCH: u32 = 3;
pub const SCHED_IDLE: u32 = 5;
pub const SCHED_DEADLINE: u32 = 6;
pub const SCHED_RESET_ON_FORK: u32 = 1073741824;
pub const PTHREAD_CREATE_JOINABLE: u32 = 0;
pub const PTHREAD_CREATE_DETACHED: u32 = 1;
pub const PTHREAD_MUTEX_NORMAL: u32 = 0;
pub const PTHREAD_MUTEX_DEFAULT: u32 = 0;
pub const PTHREAD_MUTEX_RECURSIVE: u32 = 1;
pub const PTHREAD_MUTEX_ERRORCHECK: u32 = 2;
pub const PTHREAD_MUTEX_STALLED: u32 = 0;
pub const PTHREAD_MUTEX_ROBUST: u32 = 1;
pub const PTHREAD_PRIO_NONE: u32 = 0;
pub const PTHREAD_PRIO_INHERIT: u32 = 1;
pub const PTHREAD_PRIO_PROTECT: u32 = 2;
pub const PTHREAD_INHERIT_SCHED: u32 = 0;
pub const PTHREAD_EXPLICIT_SCHED: u32 = 1;
pub const PTHREAD_SCOPE_SYSTEM: u32 = 0;
pub const PTHREAD_SCOPE_PROCESS: u32 = 1;
pub const PTHREAD_PROCESS_PRIVATE: u32 = 0;
pub const PTHREAD_PROCESS_SHARED: u32 = 1;
pub const PTHREAD_ONCE_INIT: u32 = 0;
pub const PTHREAD_CANCEL_ENABLE: u32 = 0;
pub const PTHREAD_CANCEL_DISABLE: u32 = 1;
pub const PTHREAD_CANCEL_MASKED: u32 = 2;
pub const PTHREAD_CANCEL_DEFERRED: u32 = 0;
pub const PTHREAD_CANCEL_ASYNCHRONOUS: u32 = 1;
pub const PTHREAD_BARRIER_SERIAL_THREAD: i32 = -1;
pub const EOF: i32 = -1;
pub const SEEK_SET: u32 = 0;
pub const SEEK_CUR: u32 = 1;
pub const SEEK_END: u32 = 2;
pub const _IOFBF: u32 = 0;
pub const _IOLBF: u32 = 1;
pub const _IONBF: u32 = 2;
pub const BUFSIZ: u32 = 1024;
pub const FILENAME_MAX: u32 = 4096;
pub const FOPEN_MAX: u32 = 1000;
pub const TMP_MAX: u32 = 10000;
pub const L_tmpnam: u32 = 20;
pub const L_ctermid: u32 = 20;
pub const P_tmpdir: &[u8; 5] = b"/tmp\0";
pub const L_cuserid: u32 = 20;
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_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 UTIME_NOW: u32 = 1073741823;
pub const UTIME_OMIT: u32 = 1073741822;
pub const S_IREAD: u32 = 256;
pub const S_IWRITE: u32 = 128;
pub const S_IEXEC: u32 = 64;
pub const G_TYPE_FUNDAMENTAL_SHIFT: u32 = 2;
pub const G_TYPE_FUNDAMENTAL_MAX: u32 = 1020;
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 STDIN_FILENO: u32 = 0;
pub const STDOUT_FILENO: u32 = 1;
pub const STDERR_FILENO: u32 = 2;
pub const SEEK_DATA: u32 = 3;
pub const SEEK_HOLE: u32 = 4;
pub const F_OK: u32 = 0;
pub const R_OK: u32 = 4;
pub const W_OK: u32 = 2;
pub const X_OK: u32 = 1;
pub const F_ULOCK: u32 = 0;
pub const F_LOCK: u32 = 1;
pub const F_TLOCK: u32 = 2;
pub const F_TEST: u32 = 3;
pub const L_SET: u32 = 0;
pub const L_INCR: u32 = 1;
pub const L_XTND: u32 = 2;
pub const POSIX_CLOSE_RESTART: u32 = 0;
pub const _XOPEN_VERSION: u32 = 700;
pub const _XOPEN_UNIX: u32 = 1;
pub const _XOPEN_ENH_I18N: u32 = 1;
pub const _POSIX_VERSION: u32 = 200809;
pub const _POSIX2_VERSION: u32 = 200809;
pub const _POSIX_ADVISORY_INFO: u32 = 200809;
pub const _POSIX_CHOWN_RESTRICTED: u32 = 1;
pub const _POSIX_IPV6: u32 = 200809;
pub const _POSIX_JOB_CONTROL: u32 = 1;
pub const _POSIX_MAPPED_FILES: u32 = 200809;
pub const _POSIX_MEMLOCK: u32 = 200809;
pub const _POSIX_MEMLOCK_RANGE: u32 = 200809;
pub const _POSIX_MEMORY_PROTECTION: u32 = 200809;
pub const _POSIX_MESSAGE_PASSING: u32 = 200809;
pub const _POSIX_FSYNC: u32 = 200809;
pub const _POSIX_NO_TRUNC: u32 = 1;
pub const _POSIX_RAW_SOCKETS: u32 = 200809;
pub const _POSIX_REALTIME_SIGNALS: u32 = 200809;
pub const _POSIX_REGEXP: u32 = 1;
pub const _POSIX_SAVED_IDS: u32 = 1;
pub const _POSIX_SHELL: u32 = 1;
pub const _POSIX_SPAWN: u32 = 200809;
pub const _POSIX_VDISABLE: u32 = 0;
pub const _POSIX_THREADS: u32 = 200809;
pub const _POSIX_THREAD_PROCESS_SHARED: u32 = 200809;
pub const _POSIX_THREAD_SAFE_FUNCTIONS: u32 = 200809;
pub const _POSIX_THREAD_ATTR_STACKADDR: u32 = 200809;
pub const _POSIX_THREAD_ATTR_STACKSIZE: u32 = 200809;
pub const _POSIX_THREAD_PRIORITY_SCHEDULING: u32 = 200809;
pub const _POSIX_THREAD_CPUTIME: u32 = 200809;
pub const _POSIX_TIMERS: u32 = 200809;
pub const _POSIX_TIMEOUTS: u32 = 200809;
pub const _POSIX_MONOTONIC_CLOCK: u32 = 200809;
pub const _POSIX_CPUTIME: u32 = 200809;
pub const _POSIX_CLOCK_SELECTION: u32 = 200809;
pub const _POSIX_BARRIERS: u32 = 200809;
pub const _POSIX_SPIN_LOCKS: u32 = 200809;
pub const _POSIX_READER_WRITER_LOCKS: u32 = 200809;
pub const _POSIX_ASYNCHRONOUS_IO: u32 = 200809;
pub const _POSIX_SEMAPHORES: u32 = 200809;
pub const _POSIX_SHARED_MEMORY_OBJECTS: u32 = 200809;
pub const _POSIX2_C_BIND: u32 = 200809;
pub const _POSIX_V6_LP64_OFF64: u32 = 1;
pub const _POSIX_V7_LP64_OFF64: u32 = 1;
pub const _PC_LINK_MAX: u32 = 0;
pub const _PC_MAX_CANON: u32 = 1;
pub const _PC_MAX_INPUT: u32 = 2;
pub const _PC_NAME_MAX: u32 = 3;
pub const _PC_PATH_MAX: u32 = 4;
pub const _PC_PIPE_BUF: u32 = 5;
pub const _PC_CHOWN_RESTRICTED: u32 = 6;
pub const _PC_NO_TRUNC: u32 = 7;
pub const _PC_VDISABLE: u32 = 8;
pub const _PC_SYNC_IO: u32 = 9;
pub const _PC_ASYNC_IO: u32 = 10;
pub const _PC_PRIO_IO: u32 = 11;
pub const _PC_SOCK_MAXBUF: u32 = 12;
pub const _PC_FILESIZEBITS: u32 = 13;
pub const _PC_REC_INCR_XFER_SIZE: u32 = 14;
pub const _PC_REC_MAX_XFER_SIZE: u32 = 15;
pub const _PC_REC_MIN_XFER_SIZE: u32 = 16;
pub const _PC_REC_XFER_ALIGN: u32 = 17;
pub const _PC_ALLOC_SIZE_MIN: u32 = 18;
pub const _PC_SYMLINK_MAX: u32 = 19;
pub const _PC_2_SYMLINKS: u32 = 20;
pub const _SC_ARG_MAX: u32 = 0;
pub const _SC_CHILD_MAX: u32 = 1;
pub const _SC_CLK_TCK: u32 = 2;
pub const _SC_NGROUPS_MAX: u32 = 3;
pub const _SC_OPEN_MAX: u32 = 4;
pub const _SC_STREAM_MAX: u32 = 5;
pub const _SC_TZNAME_MAX: u32 = 6;
pub const _SC_JOB_CONTROL: u32 = 7;
pub const _SC_SAVED_IDS: u32 = 8;
pub const _SC_REALTIME_SIGNALS: u32 = 9;
pub const _SC_PRIORITY_SCHEDULING: u32 = 10;
pub const _SC_TIMERS: u32 = 11;
pub const _SC_ASYNCHRONOUS_IO: u32 = 12;
pub const _SC_PRIORITIZED_IO: u32 = 13;
pub const _SC_SYNCHRONIZED_IO: u32 = 14;
pub const _SC_FSYNC: u32 = 15;
pub const _SC_MAPPED_FILES: u32 = 16;
pub const _SC_MEMLOCK: u32 = 17;
pub const _SC_MEMLOCK_RANGE: u32 = 18;
pub const _SC_MEMORY_PROTECTION: u32 = 19;
pub const _SC_MESSAGE_PASSING: u32 = 20;
pub const _SC_SEMAPHORES: u32 = 21;
pub const _SC_SHARED_MEMORY_OBJECTS: u32 = 22;
pub const _SC_AIO_LISTIO_MAX: u32 = 23;
pub const _SC_AIO_MAX: u32 = 24;
pub const _SC_AIO_PRIO_DELTA_MAX: u32 = 25;
pub const _SC_DELAYTIMER_MAX: u32 = 26;
pub const _SC_MQ_OPEN_MAX: u32 = 27;
pub const _SC_MQ_PRIO_MAX: u32 = 28;
pub const _SC_VERSION: u32 = 29;
pub const _SC_PAGE_SIZE: u32 = 30;
pub const _SC_PAGESIZE: u32 = 30;
pub const _SC_RTSIG_MAX: u32 = 31;
pub const _SC_SEM_NSEMS_MAX: u32 = 32;
pub const _SC_SEM_VALUE_MAX: u32 = 33;
pub const _SC_SIGQUEUE_MAX: u32 = 34;
pub const _SC_TIMER_MAX: u32 = 35;
pub const _SC_BC_BASE_MAX: u32 = 36;
pub const _SC_BC_DIM_MAX: u32 = 37;
pub const _SC_BC_SCALE_MAX: u32 = 38;
pub const _SC_BC_STRING_MAX: u32 = 39;
pub const _SC_COLL_WEIGHTS_MAX: u32 = 40;
pub const _SC_EXPR_NEST_MAX: u32 = 42;
pub const _SC_LINE_MAX: u32 = 43;
pub const _SC_RE_DUP_MAX: u32 = 44;
pub const _SC_2_VERSION: u32 = 46;
pub const _SC_2_C_BIND: u32 = 47;
pub const _SC_2_C_DEV: u32 = 48;
pub const _SC_2_FORT_DEV: u32 = 49;
pub const _SC_2_FORT_RUN: u32 = 50;
pub const _SC_2_SW_DEV: u32 = 51;
pub const _SC_2_LOCALEDEF: u32 = 52;
pub const _SC_UIO_MAXIOV: u32 = 60;
pub const _SC_IOV_MAX: u32 = 60;
pub const _SC_THREADS: u32 = 67;
pub const _SC_THREAD_SAFE_FUNCTIONS: u32 = 68;
pub const _SC_GETGR_R_SIZE_MAX: u32 = 69;
pub const _SC_GETPW_R_SIZE_MAX: u32 = 70;
pub const _SC_LOGIN_NAME_MAX: u32 = 71;
pub const _SC_TTY_NAME_MAX: u32 = 72;
pub const _SC_THREAD_DESTRUCTOR_ITERATIONS: u32 = 73;
pub const _SC_THREAD_KEYS_MAX: u32 = 74;
pub const _SC_THREAD_STACK_MIN: u32 = 75;
pub const _SC_THREAD_THREADS_MAX: u32 = 76;
pub const _SC_THREAD_ATTR_STACKADDR: u32 = 77;
pub const _SC_THREAD_ATTR_STACKSIZE: u32 = 78;
pub const _SC_THREAD_PRIORITY_SCHEDULING: u32 = 79;
pub const _SC_THREAD_PRIO_INHERIT: u32 = 80;
pub const _SC_THREAD_PRIO_PROTECT: u32 = 81;
pub const _SC_THREAD_PROCESS_SHARED: u32 = 82;
pub const _SC_NPROCESSORS_CONF: u32 = 83;
pub const _SC_NPROCESSORS_ONLN: u32 = 84;
pub const _SC_PHYS_PAGES: u32 = 85;
pub const _SC_AVPHYS_PAGES: u32 = 86;
pub const _SC_ATEXIT_MAX: u32 = 87;
pub const _SC_PASS_MAX: u32 = 88;
pub const _SC_XOPEN_VERSION: u32 = 89;
pub const _SC_XOPEN_XCU_VERSION: u32 = 90;
pub const _SC_XOPEN_UNIX: u32 = 91;
pub const _SC_XOPEN_CRYPT: u32 = 92;
pub const _SC_XOPEN_ENH_I18N: u32 = 93;
pub const _SC_XOPEN_SHM: u32 = 94;
pub const _SC_2_CHAR_TERM: u32 = 95;
pub const _SC_2_UPE: u32 = 97;
pub const _SC_XOPEN_XPG2: u32 = 98;
pub const _SC_XOPEN_XPG3: u32 = 99;
pub const _SC_XOPEN_XPG4: u32 = 100;
pub const _SC_NZERO: u32 = 109;
pub const _SC_XBS5_ILP32_OFF32: u32 = 125;
pub const _SC_XBS5_ILP32_OFFBIG: u32 = 126;
pub const _SC_XBS5_LP64_OFF64: u32 = 127;
pub const _SC_XBS5_LPBIG_OFFBIG: u32 = 128;
pub const _SC_XOPEN_LEGACY: u32 = 129;
pub const _SC_XOPEN_REALTIME: u32 = 130;
pub const _SC_XOPEN_REALTIME_THREADS: u32 = 131;
pub const _SC_ADVISORY_INFO: u32 = 132;
pub const _SC_BARRIERS: u32 = 133;
pub const _SC_CLOCK_SELECTION: u32 = 137;
pub const _SC_CPUTIME: u32 = 138;
pub const _SC_THREAD_CPUTIME: u32 = 139;
pub const _SC_MONOTONIC_CLOCK: u32 = 149;
pub const _SC_READER_WRITER_LOCKS: u32 = 153;
pub const _SC_SPIN_LOCKS: u32 = 154;
pub const _SC_REGEXP: u32 = 155;
pub const _SC_SHELL: u32 = 157;
pub const _SC_SPAWN: u32 = 159;
pub const _SC_SPORADIC_SERVER: u32 = 160;
pub const _SC_THREAD_SPORADIC_SERVER: u32 = 161;
pub const _SC_TIMEOUTS: u32 = 164;
pub const _SC_TYPED_MEMORY_OBJECTS: u32 = 165;
pub const _SC_2_PBS: u32 = 168;
pub const _SC_2_PBS_ACCOUNTING: u32 = 169;
pub const _SC_2_PBS_LOCATE: u32 = 170;
pub const _SC_2_PBS_MESSAGE: u32 = 171;
pub const _SC_2_PBS_TRACK: u32 = 172;
pub const _SC_SYMLOOP_MAX: u32 = 173;
pub const _SC_STREAMS: u32 = 174;
pub const _SC_2_PBS_CHECKPOINT: u32 = 175;
pub const _SC_V6_ILP32_OFF32: u32 = 176;
pub const _SC_V6_ILP32_OFFBIG: u32 = 177;
pub const _SC_V6_LP64_OFF64: u32 = 178;
pub const _SC_V6_LPBIG_OFFBIG: u32 = 179;
pub const _SC_HOST_NAME_MAX: u32 = 180;
pub const _SC_TRACE: u32 = 181;
pub const _SC_TRACE_EVENT_FILTER: u32 = 182;
pub const _SC_TRACE_INHERIT: u32 = 183;
pub const _SC_TRACE_LOG: u32 = 184;
pub const _SC_IPV6: u32 = 235;
pub const _SC_RAW_SOCKETS: u32 = 236;
pub const _SC_V7_ILP32_OFF32: u32 = 237;
pub const _SC_V7_ILP32_OFFBIG: u32 = 238;
pub const _SC_V7_LP64_OFF64: u32 = 239;
pub const _SC_V7_LPBIG_OFFBIG: u32 = 240;
pub const _SC_SS_REPL_MAX: u32 = 241;
pub const _SC_TRACE_EVENT_NAME_MAX: u32 = 242;
pub const _SC_TRACE_NAME_MAX: u32 = 243;
pub const _SC_TRACE_SYS_MAX: u32 = 244;
pub const _SC_TRACE_USER_EVENT_MAX: u32 = 245;
pub const _SC_XOPEN_STREAMS: u32 = 246;
pub const _SC_THREAD_ROBUST_PRIO_INHERIT: u32 = 247;
pub const _SC_THREAD_ROBUST_PRIO_PROTECT: u32 = 248;
pub const _SC_MINSIGSTKSZ: u32 = 249;
pub const _SC_SIGSTKSZ: u32 = 250;
pub const _CS_PATH: u32 = 0;
pub const _CS_POSIX_V6_WIDTH_RESTRICTED_ENVS: u32 = 1;
pub const _CS_GNU_LIBC_VERSION: u32 = 2;
pub const _CS_GNU_LIBPTHREAD_VERSION: u32 = 3;
pub const _CS_POSIX_V5_WIDTH_RESTRICTED_ENVS: u32 = 4;
pub const _CS_POSIX_V7_WIDTH_RESTRICTED_ENVS: u32 = 5;
pub const _CS_POSIX_V6_ILP32_OFF32_CFLAGS: u32 = 1116;
pub const _CS_POSIX_V6_ILP32_OFF32_LDFLAGS: u32 = 1117;
pub const _CS_POSIX_V6_ILP32_OFF32_LIBS: u32 = 1118;
pub const _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS: u32 = 1119;
pub const _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS: u32 = 1120;
pub const _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS: u32 = 1121;
pub const _CS_POSIX_V6_ILP32_OFFBIG_LIBS: u32 = 1122;
pub const _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS: u32 = 1123;
pub const _CS_POSIX_V6_LP64_OFF64_CFLAGS: u32 = 1124;
pub const _CS_POSIX_V6_LP64_OFF64_LDFLAGS: u32 = 1125;
pub const _CS_POSIX_V6_LP64_OFF64_LIBS: u32 = 1126;
pub const _CS_POSIX_V6_LP64_OFF64_LINTFLAGS: u32 = 1127;
pub const _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS: u32 = 1128;
pub const _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS: u32 = 1129;
pub const _CS_POSIX_V6_LPBIG_OFFBIG_LIBS: u32 = 1130;
pub const _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS: u32 = 1131;
pub const _CS_POSIX_V7_ILP32_OFF32_CFLAGS: u32 = 1132;
pub const _CS_POSIX_V7_ILP32_OFF32_LDFLAGS: u32 = 1133;
pub const _CS_POSIX_V7_ILP32_OFF32_LIBS: u32 = 1134;
pub const _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS: u32 = 1135;
pub const _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS: u32 = 1136;
pub const _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS: u32 = 1137;
pub const _CS_POSIX_V7_ILP32_OFFBIG_LIBS: u32 = 1138;
pub const _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS: u32 = 1139;
pub const _CS_POSIX_V7_LP64_OFF64_CFLAGS: u32 = 1140;
pub const _CS_POSIX_V7_LP64_OFF64_LDFLAGS: u32 = 1141;
pub const _CS_POSIX_V7_LP64_OFF64_LIBS: u32 = 1142;
pub const _CS_POSIX_V7_LP64_OFF64_LINTFLAGS: u32 = 1143;
pub const _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS: u32 = 1144;
pub const _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS: u32 = 1145;
pub const _CS_POSIX_V7_LPBIG_OFFBIG_LIBS: u32 = 1146;
pub const _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS: u32 = 1147;
pub const _CS_V6_ENV: u32 = 1148;
pub const _CS_V7_ENV: u32 = 1149;
pub const _CS_POSIX_V7_THREADS_CFLAGS: u32 = 1150;
pub const _CS_POSIX_V7_THREADS_LDFLAGS: u32 = 1151;
pub const G_DEBUG_CONTROLLER_EXTENSION_POINT_NAME: &[u8; 21] = b"gio-debug-controller\0";
pub const G_DRIVE_IDENTIFIER_KIND_UNIX_DEVICE: &[u8; 12] = b"unix-device\0";
pub const G_FILE_ATTRIBUTE_STANDARD_TYPE: &[u8; 15] = b"standard::type\0";
pub const G_FILE_ATTRIBUTE_STANDARD_IS_HIDDEN: &[u8; 20] = b"standard::is-hidden\0";
pub const G_FILE_ATTRIBUTE_STANDARD_IS_BACKUP: &[u8; 20] = b"standard::is-backup\0";
pub const G_FILE_ATTRIBUTE_STANDARD_IS_SYMLINK: &[u8; 21] = b"standard::is-symlink\0";
pub const G_FILE_ATTRIBUTE_STANDARD_IS_VIRTUAL: &[u8; 21] = b"standard::is-virtual\0";
pub const G_FILE_ATTRIBUTE_STANDARD_IS_VOLATILE: &[u8; 22] = b"standard::is-volatile\0";
pub const G_FILE_ATTRIBUTE_STANDARD_NAME: &[u8; 15] = b"standard::name\0";
pub const G_FILE_ATTRIBUTE_STANDARD_DISPLAY_NAME: &[u8; 23] = b"standard::display-name\0";
pub const G_FILE_ATTRIBUTE_STANDARD_EDIT_NAME: &[u8; 20] = b"standard::edit-name\0";
pub const G_FILE_ATTRIBUTE_STANDARD_COPY_NAME: &[u8; 20] = b"standard::copy-name\0";
pub const G_FILE_ATTRIBUTE_STANDARD_DESCRIPTION: &[u8; 22] = b"standard::description\0";
pub const G_FILE_ATTRIBUTE_STANDARD_ICON: &[u8; 15] = b"standard::icon\0";
pub const G_FILE_ATTRIBUTE_STANDARD_SYMBOLIC_ICON: &[u8; 24] = b"standard::symbolic-icon\0";
pub const G_FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE: &[u8; 23] = b"standard::content-type\0";
pub const G_FILE_ATTRIBUTE_STANDARD_FAST_CONTENT_TYPE: &[u8; 28] = b"standard::fast-content-type\0";
pub const G_FILE_ATTRIBUTE_STANDARD_SIZE: &[u8; 15] = b"standard::size\0";
pub const G_FILE_ATTRIBUTE_STANDARD_ALLOCATED_SIZE: &[u8; 25] = b"standard::allocated-size\0";
pub const G_FILE_ATTRIBUTE_STANDARD_SYMLINK_TARGET: &[u8; 25] = b"standard::symlink-target\0";
pub const G_FILE_ATTRIBUTE_STANDARD_TARGET_URI: &[u8; 21] = b"standard::target-uri\0";
pub const G_FILE_ATTRIBUTE_STANDARD_SORT_ORDER: &[u8; 21] = b"standard::sort-order\0";
pub const G_FILE_ATTRIBUTE_ETAG_VALUE: &[u8; 12] = b"etag::value\0";
pub const G_FILE_ATTRIBUTE_ID_FILE: &[u8; 9] = b"id::file\0";
pub const G_FILE_ATTRIBUTE_ID_FILESYSTEM: &[u8; 15] = b"id::filesystem\0";
pub const G_FILE_ATTRIBUTE_ACCESS_CAN_READ: &[u8; 17] = b"access::can-read\0";
pub const G_FILE_ATTRIBUTE_ACCESS_CAN_WRITE: &[u8; 18] = b"access::can-write\0";
pub const G_FILE_ATTRIBUTE_ACCESS_CAN_EXECUTE: &[u8; 20] = b"access::can-execute\0";
pub const G_FILE_ATTRIBUTE_ACCESS_CAN_DELETE: &[u8; 19] = b"access::can-delete\0";
pub const G_FILE_ATTRIBUTE_ACCESS_CAN_TRASH: &[u8; 18] = b"access::can-trash\0";
pub const G_FILE_ATTRIBUTE_ACCESS_CAN_RENAME: &[u8; 19] = b"access::can-rename\0";
pub const G_FILE_ATTRIBUTE_MOUNTABLE_CAN_MOUNT: &[u8; 21] = b"mountable::can-mount\0";
pub const G_FILE_ATTRIBUTE_MOUNTABLE_CAN_UNMOUNT: &[u8; 23] = b"mountable::can-unmount\0";
pub const G_FILE_ATTRIBUTE_MOUNTABLE_CAN_EJECT: &[u8; 21] = b"mountable::can-eject\0";
pub const G_FILE_ATTRIBUTE_MOUNTABLE_UNIX_DEVICE: &[u8; 23] = b"mountable::unix-device\0";
pub const G_FILE_ATTRIBUTE_MOUNTABLE_UNIX_DEVICE_FILE: &[u8; 28] = b"mountable::unix-device-file\0";
pub const G_FILE_ATTRIBUTE_MOUNTABLE_HAL_UDI: &[u8; 19] = b"mountable::hal-udi\0";
pub const G_FILE_ATTRIBUTE_MOUNTABLE_CAN_START: &[u8; 21] = b"mountable::can-start\0";
pub const G_FILE_ATTRIBUTE_MOUNTABLE_CAN_START_DEGRADED: &[u8; 30] =
b"mountable::can-start-degraded\0";
pub const G_FILE_ATTRIBUTE_MOUNTABLE_CAN_STOP: &[u8; 20] = b"mountable::can-stop\0";
pub const G_FILE_ATTRIBUTE_MOUNTABLE_START_STOP_TYPE: &[u8; 27] = b"mountable::start-stop-type\0";
pub const G_FILE_ATTRIBUTE_MOUNTABLE_CAN_POLL: &[u8; 20] = b"mountable::can-poll\0";
pub const G_FILE_ATTRIBUTE_MOUNTABLE_IS_MEDIA_CHECK_AUTOMATIC: &[u8; 36] =
b"mountable::is-media-check-automatic\0";
pub const G_FILE_ATTRIBUTE_TIME_MODIFIED: &[u8; 15] = b"time::modified\0";
pub const G_FILE_ATTRIBUTE_TIME_MODIFIED_USEC: &[u8; 20] = b"time::modified-usec\0";
pub const G_FILE_ATTRIBUTE_TIME_MODIFIED_NSEC: &[u8; 20] = b"time::modified-nsec\0";
pub const G_FILE_ATTRIBUTE_TIME_ACCESS: &[u8; 13] = b"time::access\0";
pub const G_FILE_ATTRIBUTE_TIME_ACCESS_USEC: &[u8; 18] = b"time::access-usec\0";
pub const G_FILE_ATTRIBUTE_TIME_ACCESS_NSEC: &[u8; 18] = b"time::access-nsec\0";
pub const G_FILE_ATTRIBUTE_TIME_CHANGED: &[u8; 14] = b"time::changed\0";
pub const G_FILE_ATTRIBUTE_TIME_CHANGED_USEC: &[u8; 19] = b"time::changed-usec\0";
pub const G_FILE_ATTRIBUTE_TIME_CHANGED_NSEC: &[u8; 19] = b"time::changed-nsec\0";
pub const G_FILE_ATTRIBUTE_TIME_CREATED: &[u8; 14] = b"time::created\0";
pub const G_FILE_ATTRIBUTE_TIME_CREATED_USEC: &[u8; 19] = b"time::created-usec\0";
pub const G_FILE_ATTRIBUTE_TIME_CREATED_NSEC: &[u8; 19] = b"time::created-nsec\0";
pub const G_FILE_ATTRIBUTE_UNIX_DEVICE: &[u8; 13] = b"unix::device\0";
pub const G_FILE_ATTRIBUTE_UNIX_INODE: &[u8; 12] = b"unix::inode\0";
pub const G_FILE_ATTRIBUTE_UNIX_MODE: &[u8; 11] = b"unix::mode\0";
pub const G_FILE_ATTRIBUTE_UNIX_NLINK: &[u8; 12] = b"unix::nlink\0";
pub const G_FILE_ATTRIBUTE_UNIX_UID: &[u8; 10] = b"unix::uid\0";
pub const G_FILE_ATTRIBUTE_UNIX_GID: &[u8; 10] = b"unix::gid\0";
pub const G_FILE_ATTRIBUTE_UNIX_RDEV: &[u8; 11] = b"unix::rdev\0";
pub const G_FILE_ATTRIBUTE_UNIX_BLOCK_SIZE: &[u8; 17] = b"unix::block-size\0";
pub const G_FILE_ATTRIBUTE_UNIX_BLOCKS: &[u8; 13] = b"unix::blocks\0";
pub const G_FILE_ATTRIBUTE_UNIX_IS_MOUNTPOINT: &[u8; 20] = b"unix::is-mountpoint\0";
pub const G_FILE_ATTRIBUTE_DOS_IS_ARCHIVE: &[u8; 16] = b"dos::is-archive\0";
pub const G_FILE_ATTRIBUTE_DOS_IS_SYSTEM: &[u8; 15] = b"dos::is-system\0";
pub const G_FILE_ATTRIBUTE_DOS_IS_MOUNTPOINT: &[u8; 19] = b"dos::is-mountpoint\0";
pub const G_FILE_ATTRIBUTE_DOS_REPARSE_POINT_TAG: &[u8; 23] = b"dos::reparse-point-tag\0";
pub const G_FILE_ATTRIBUTE_OWNER_USER: &[u8; 12] = b"owner::user\0";
pub const G_FILE_ATTRIBUTE_OWNER_USER_REAL: &[u8; 17] = b"owner::user-real\0";
pub const G_FILE_ATTRIBUTE_OWNER_GROUP: &[u8; 13] = b"owner::group\0";
pub const G_FILE_ATTRIBUTE_THUMBNAIL_PATH: &[u8; 16] = b"thumbnail::path\0";
pub const G_FILE_ATTRIBUTE_THUMBNAILING_FAILED: &[u8; 18] = b"thumbnail::failed\0";
pub const G_FILE_ATTRIBUTE_THUMBNAIL_IS_VALID: &[u8; 20] = b"thumbnail::is-valid\0";
pub const G_FILE_ATTRIBUTE_THUMBNAIL_PATH_NORMAL: &[u8; 23] = b"thumbnail::path-normal\0";
pub const G_FILE_ATTRIBUTE_THUMBNAILING_FAILED_NORMAL: &[u8; 25] = b"thumbnail::failed-normal\0";
pub const G_FILE_ATTRIBUTE_THUMBNAIL_IS_VALID_NORMAL: &[u8; 27] = b"thumbnail::is-valid-normal\0";
pub const G_FILE_ATTRIBUTE_THUMBNAIL_PATH_LARGE: &[u8; 22] = b"thumbnail::path-large\0";
pub const G_FILE_ATTRIBUTE_THUMBNAILING_FAILED_LARGE: &[u8; 24] = b"thumbnail::failed-large\0";
pub const G_FILE_ATTRIBUTE_THUMBNAIL_IS_VALID_LARGE: &[u8; 26] = b"thumbnail::is-valid-large\0";
pub const G_FILE_ATTRIBUTE_THUMBNAIL_PATH_XLARGE: &[u8; 23] = b"thumbnail::path-xlarge\0";
pub const G_FILE_ATTRIBUTE_THUMBNAILING_FAILED_XLARGE: &[u8; 25] = b"thumbnail::failed-xlarge\0";
pub const G_FILE_ATTRIBUTE_THUMBNAIL_IS_VALID_XLARGE: &[u8; 27] = b"thumbnail::is-valid-xlarge\0";
pub const G_FILE_ATTRIBUTE_THUMBNAIL_PATH_XXLARGE: &[u8; 24] = b"thumbnail::path-xxlarge\0";
pub const G_FILE_ATTRIBUTE_THUMBNAILING_FAILED_XXLARGE: &[u8; 26] = b"thumbnail::failed-xxlarge\0";
pub const G_FILE_ATTRIBUTE_THUMBNAIL_IS_VALID_XXLARGE: &[u8; 28] = b"thumbnail::is-valid-xxlarge\0";
pub const G_FILE_ATTRIBUTE_PREVIEW_ICON: &[u8; 14] = b"preview::icon\0";
pub const G_FILE_ATTRIBUTE_FILESYSTEM_SIZE: &[u8; 17] = b"filesystem::size\0";
pub const G_FILE_ATTRIBUTE_FILESYSTEM_FREE: &[u8; 17] = b"filesystem::free\0";
pub const G_FILE_ATTRIBUTE_FILESYSTEM_USED: &[u8; 17] = b"filesystem::used\0";
pub const G_FILE_ATTRIBUTE_FILESYSTEM_TYPE: &[u8; 17] = b"filesystem::type\0";
pub const G_FILE_ATTRIBUTE_FILESYSTEM_READONLY: &[u8; 21] = b"filesystem::readonly\0";
pub const G_FILE_ATTRIBUTE_FILESYSTEM_USE_PREVIEW: &[u8; 24] = b"filesystem::use-preview\0";
pub const G_FILE_ATTRIBUTE_FILESYSTEM_REMOTE: &[u8; 19] = b"filesystem::remote\0";
pub const G_FILE_ATTRIBUTE_GVFS_BACKEND: &[u8; 14] = b"gvfs::backend\0";
pub const G_FILE_ATTRIBUTE_SELINUX_CONTEXT: &[u8; 17] = b"selinux::context\0";
pub const G_FILE_ATTRIBUTE_TRASH_ITEM_COUNT: &[u8; 18] = b"trash::item-count\0";
pub const G_FILE_ATTRIBUTE_TRASH_ORIG_PATH: &[u8; 17] = b"trash::orig-path\0";
pub const G_FILE_ATTRIBUTE_TRASH_DELETION_DATE: &[u8; 21] = b"trash::deletion-date\0";
pub const G_FILE_ATTRIBUTE_RECENT_MODIFIED: &[u8; 17] = b"recent::modified\0";
pub const G_MEMORY_MONITOR_EXTENSION_POINT_NAME: &[u8; 19] = b"gio-memory-monitor\0";
pub const G_MENU_ATTRIBUTE_ACTION: &[u8; 7] = b"action\0";
pub const G_MENU_ATTRIBUTE_ACTION_NAMESPACE: &[u8; 17] = b"action-namespace\0";
pub const G_MENU_ATTRIBUTE_TARGET: &[u8; 7] = b"target\0";
pub const G_MENU_ATTRIBUTE_LABEL: &[u8; 6] = b"label\0";
pub const G_MENU_ATTRIBUTE_ICON: &[u8; 5] = b"icon\0";
pub const G_MENU_LINK_SUBMENU: &[u8; 8] = b"submenu\0";
pub const G_MENU_LINK_SECTION: &[u8; 8] = b"section\0";
pub const G_VOLUME_MONITOR_EXTENSION_POINT_NAME: &[u8; 19] = b"gio-volume-monitor\0";
pub const G_NATIVE_VOLUME_MONITOR_EXTENSION_POINT_NAME: &[u8; 26] = b"gio-native-volume-monitor\0";
pub const G_NETWORK_MONITOR_EXTENSION_POINT_NAME: &[u8; 20] = b"gio-network-monitor\0";
pub const G_POWER_PROFILE_MONITOR_EXTENSION_POINT_NAME: &[u8; 26] = b"gio-power-profile-monitor\0";
pub const G_PROXY_EXTENSION_POINT_NAME: &[u8; 10] = b"gio-proxy\0";
pub const G_PROXY_RESOLVER_EXTENSION_POINT_NAME: &[u8; 19] = b"gio-proxy-resolver\0";
pub const G_TLS_BACKEND_EXTENSION_POINT_NAME: &[u8; 16] = b"gio-tls-backend\0";
pub const G_TLS_DATABASE_PURPOSE_AUTHENTICATE_SERVER: &[u8; 18] = b"1.3.6.1.5.5.7.3.1\0";
pub const G_TLS_DATABASE_PURPOSE_AUTHENTICATE_CLIENT: &[u8; 18] = b"1.3.6.1.5.5.7.3.2\0";
pub const G_VFS_EXTENSION_POINT_NAME: &[u8; 8] = b"gio-vfs\0";
pub const G_VOLUME_IDENTIFIER_KIND_UNIX_DEVICE: &[u8; 12] = b"unix-device\0";
pub const G_VOLUME_IDENTIFIER_KIND_LABEL: &[u8; 6] = b"label\0";
pub const G_VOLUME_IDENTIFIER_KIND_UUID: &[u8; 5] = b"uuid\0";
pub const G_VOLUME_IDENTIFIER_KIND_NFS_MOUNT: &[u8; 10] = b"nfs-mount\0";
pub const G_VOLUME_IDENTIFIER_KIND_CLASS: &[u8; 6] = b"class\0";
pub const MATH_ERRNO: u32 = 1;
pub const MATH_ERREXCEPT: u32 = 2;
pub const math_errhandling: u32 = 2;
pub const FP_ILOGBNAN: i32 = -2147483648;
pub const FP_ILOGB0: i32 = -2147483648;
pub const FP_FAST_FMA: u32 = 1;
pub const FP_FAST_FMAF: u32 = 1;
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_TARGET_BUFFER_SIZE: u32 = 8500;
pub const VIPS_TARGET_CUSTOM_BUFFER_SIZE: u32 = 4096;
pub const VIPS_SBUF_BUFFER_SIZE: u32 = 4096;
pub const VIPS_VERSION: &[u8; 7] = b"8.17.3\0";
pub const VIPS_VERSION_STRING: &[u8; 7] = b"8.17.3\0";
pub const VIPS_MAJOR_VERSION: u32 = 8;
pub const VIPS_MINOR_VERSION: u32 = 17;
pub const VIPS_MICRO_VERSION: u32 = 3;
pub const VIPS_LIBRARY_CURRENT: u32 = 61;
pub const VIPS_LIBRARY_REVISION: u32 = 3;
pub const VIPS_LIBRARY_AGE: u32 = 19;
pub const VIPS_CONFIG : & [u8 ; 1186] = b"enable debug: false\nenable deprecated: true\nenable modules: true\nenable C++ binding: true\nenable RAD load/save: true\nenable Analyze7 load: true\nenable PPM load/save: true\nenable GIF load: true\nFFTs with fftw3: true\nSIMD support with orc-0.4: true\nICC profile support with lcms2: true\ndeflate compression with zlib: true\ntext rendering with pangocairo: true\nfont file support with fontconfig: true\nEXIF metadata support with libexif: true\nJPEG load/save with libjpeg: true\nJXL load/save with libjxl: false (dynamic module: false)\nJPEG2000 load/save with OpenJPEG: false\nPNG load/save with libpng: true\nimage quantisation with imagequant: true\nTIFF load/save with libtiff-4: true\nimage pyramid save with libarchive: false\nHEIC/AVIF load/save with libheif: true (dynamic module: true)\nWebP load/save with libwebp: true\nPDF load with PDFium or Poppler: false (dynamic module: false)\nSVG load with librsvg-2.0: true\nEXR load with OpenEXR: false\nWSI load with OpenSlide: false (dynamic module: false)\nMatlab load with Matio: false\nNIfTI load/save with libnifti: false\nFITS load/save with cfitsio: false\nGIF save with cgif: true\nMagick load/save with MagickCore: false (dynamic module: false)\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_DEFAULT_MAX_COORD: u32 = 100000000;
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: &[u8; 10] = b"exif-data\0";
pub const VIPS_META_XMP_NAME: &[u8; 9] = b"xmp-data\0";
pub const VIPS_META_IPTC_NAME: &[u8; 10] = b"iptc-data\0";
pub const VIPS_META_PHOTOSHOP_NAME: &[u8; 15] = b"photoshop-data\0";
pub const VIPS_META_ICC_NAME: &[u8; 17] = b"icc-profile-data\0";
pub const VIPS_META_IMAGEDESCRIPTION: &[u8; 18] = b"image-description\0";
pub const VIPS_META_RESOLUTION_UNIT: &[u8; 16] = b"resolution-unit\0";
pub const VIPS_META_BITS_PER_SAMPLE: &[u8; 16] = b"bits-per-sample\0";
pub const VIPS_META_PALETTE: &[u8; 8] = b"palette\0";
pub const VIPS_META_LOADER: &[u8; 12] = b"vips-loader\0";
pub const VIPS_META_SEQUENTIAL: &[u8; 16] = b"vips-sequential\0";
pub const VIPS_META_ORIENTATION: &[u8; 12] = b"orientation\0";
pub const VIPS_META_PAGE_HEIGHT: &[u8; 12] = b"page-height\0";
pub const VIPS_META_N_PAGES: &[u8; 8] = b"n-pages\0";
pub const VIPS_META_N_SUBIFDS: &[u8; 10] = b"n-subifds\0";
pub const VIPS_META_CONCURRENCY: &[u8; 12] = b"concurrency\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 VIPS_META_IPCT_NAME: &[u8; 10] = b"iptc-data\0";
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: &[u8; 10] = b"exif-data\0";
pub const IM_META_ICC_NAME: &[u8; 17] = b"icc-profile-data\0";
pub const IM_META_RESOLUTION_UNIT: &[u8; 16] = b"resolution-unit\0";
pub const IM_VERSION_STRING: &[u8; 7] = b"8.17.3\0";
pub const IM_MAJOR_VERSION: u32 = 8;
pub const IM_MINOR_VERSION: u32 = 17;
pub const IM_MICRO_VERSION: u32 = 3;
pub const VIPS_EXEEXT: &[u8; 1] = b"\0";
pub const IM_EXEEXT: &[u8; 1] = b"\0";
pub const IM_SIZEOF_HEADER: u32 = 64;
pub const VIPS_VECTOR_SOURCE_MAX: u32 = 10;
pub const IM_TYPE_IMAGEVEC: &[u8; 9] = b"imagevec\0";
pub const IM_TYPE_DOUBLEVEC: &[u8; 10] = b"doublevec\0";
pub const IM_TYPE_INTVEC: &[u8; 7] = b"intvec\0";
pub const IM_TYPE_DOUBLE: &[u8; 7] = b"double\0";
pub const IM_TYPE_INT: &[u8; 8] = b"integer\0";
pub const IM_TYPE_COMPLEX: &[u8; 8] = b"complex\0";
pub const IM_TYPE_STRING: &[u8; 7] = b"string\0";
pub const IM_TYPE_IMASK: &[u8; 8] = b"intmask\0";
pub const IM_TYPE_DMASK: &[u8; 11] = b"doublemask\0";
pub const IM_TYPE_IMAGE: &[u8; 6] = b"image\0";
pub const IM_TYPE_DISPLAY: &[u8; 8] = b"display\0";
pub const IM_TYPE_GVALUE: &[u8; 7] = b"gvalue\0";
pub const IM_TYPE_INTERPOLATE: &[u8; 12] = b"interpolate\0";
pub const IM_MAX_ARGS: u32 = 1000;
pub const VIPS_SAVEABLE_LAST: u32 = 99;
pub type wchar_t = ::std::os::raw::c_uint;
pub type size_t = ::std::os::raw::c_ulong;
unsafe extern "C" {
pub fn __flt_rounds() -> ::std::os::raw::c_int;
}
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 time_t = ::std::os::raw::c_long;
pub type timer_t = *mut ::std::os::raw::c_void;
pub type clockid_t = ::std::os::raw::c_int;
pub type clock_t = ::std::os::raw::c_long;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct timespec {
pub tv_sec: time_t,
pub tv_nsec: ::std::os::raw::c_long,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of timespec"][::std::mem::size_of::<timespec>() - 16usize];
["Alignment of timespec"][::std::mem::align_of::<timespec>() - 8usize];
["Offset of field: timespec::tv_sec"][::std::mem::offset_of!(timespec, tv_sec) - 0usize];
["Offset of field: timespec::tv_nsec"][::std::mem::offset_of!(timespec, tv_nsec) - 8usize];
};
pub type pid_t = ::std::os::raw::c_int;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __locale_struct {
_unused: [u8; 0],
}
pub type locale_t = *mut __locale_struct;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
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,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of tm"][::std::mem::size_of::<tm>() - 56usize];
["Alignment of tm"][::std::mem::align_of::<tm>() - 8usize];
["Offset of field: tm::tm_sec"][::std::mem::offset_of!(tm, tm_sec) - 0usize];
["Offset of field: tm::tm_min"][::std::mem::offset_of!(tm, tm_min) - 4usize];
["Offset of field: tm::tm_hour"][::std::mem::offset_of!(tm, tm_hour) - 8usize];
["Offset of field: tm::tm_mday"][::std::mem::offset_of!(tm, tm_mday) - 12usize];
["Offset of field: tm::tm_mon"][::std::mem::offset_of!(tm, tm_mon) - 16usize];
["Offset of field: tm::tm_year"][::std::mem::offset_of!(tm, tm_year) - 20usize];
["Offset of field: tm::tm_wday"][::std::mem::offset_of!(tm, tm_wday) - 24usize];
["Offset of field: tm::tm_yday"][::std::mem::offset_of!(tm, tm_yday) - 28usize];
["Offset of field: tm::tm_isdst"][::std::mem::offset_of!(tm, tm_isdst) - 32usize];
["Offset of field: tm::tm_gmtoff"][::std::mem::offset_of!(tm, tm_gmtoff) - 40usize];
["Offset of field: tm::tm_zone"][::std::mem::offset_of!(tm, tm_zone) - 48usize];
};
unsafe extern "C" {
pub fn clock() -> clock_t;
}
unsafe extern "C" {
pub fn time(arg1: *mut time_t) -> time_t;
}
unsafe extern "C" {
pub fn difftime(arg1: time_t, arg2: time_t) -> f64;
}
unsafe extern "C" {
pub fn mktime(arg1: *mut tm) -> time_t;
}
unsafe extern "C" {
pub fn strftime(
arg1: *mut ::std::os::raw::c_char,
arg2: size_t,
arg3: *const ::std::os::raw::c_char,
arg4: *const tm,
) -> size_t;
}
unsafe extern "C" {
pub fn gmtime(arg1: *const time_t) -> *mut tm;
}
unsafe extern "C" {
pub fn localtime(arg1: *const time_t) -> *mut tm;
}
unsafe extern "C" {
pub fn asctime(arg1: *const tm) -> *mut ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn ctime(arg1: *const time_t) -> *mut ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn timespec_get(arg1: *mut timespec, arg2: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn strftime_l(
arg1: *mut ::std::os::raw::c_char,
arg2: size_t,
arg3: *const ::std::os::raw::c_char,
arg4: *const tm,
arg5: locale_t,
) -> size_t;
}
unsafe extern "C" {
pub fn gmtime_r(arg1: *const time_t, arg2: *mut tm) -> *mut tm;
}
unsafe extern "C" {
pub fn localtime_r(arg1: *const time_t, arg2: *mut tm) -> *mut tm;
}
unsafe extern "C" {
pub fn asctime_r(
arg1: *const tm,
arg2: *mut ::std::os::raw::c_char,
) -> *mut ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn ctime_r(
arg1: *const time_t,
arg2: *mut ::std::os::raw::c_char,
) -> *mut ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn tzset();
}
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct itimerspec {
pub it_interval: timespec,
pub it_value: timespec,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of itimerspec"][::std::mem::size_of::<itimerspec>() - 32usize];
["Alignment of itimerspec"][::std::mem::align_of::<itimerspec>() - 8usize];
["Offset of field: itimerspec::it_interval"]
[::std::mem::offset_of!(itimerspec, it_interval) - 0usize];
["Offset of field: itimerspec::it_value"]
[::std::mem::offset_of!(itimerspec, it_value) - 16usize];
};
unsafe extern "C" {
pub fn nanosleep(arg1: *const timespec, arg2: *mut timespec) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn clock_getres(arg1: clockid_t, arg2: *mut timespec) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn clock_gettime(arg1: clockid_t, arg2: *mut timespec) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn clock_settime(arg1: clockid_t, arg2: *const timespec) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn clock_nanosleep(
arg1: clockid_t,
arg2: ::std::os::raw::c_int,
arg3: *const timespec,
arg4: *mut timespec,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn clock_getcpuclockid(arg1: pid_t, arg2: *mut clockid_t) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn timer_create(
arg1: clockid_t,
arg2: *mut sigevent,
arg3: *mut timer_t,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn timer_delete(arg1: timer_t) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn timer_settime(
arg1: timer_t,
arg2: ::std::os::raw::c_int,
arg3: *const itimerspec,
arg4: *mut itimerspec,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn timer_gettime(arg1: timer_t, arg2: *mut itimerspec) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn timer_getoverrun(arg1: timer_t) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub static mut tzname: [*mut ::std::os::raw::c_char; 2usize];
}
unsafe extern "C" {
pub fn strptime(
arg1: *const ::std::os::raw::c_char,
arg2: *const ::std::os::raw::c_char,
arg3: *mut tm,
) -> *mut ::std::os::raw::c_char;
}
unsafe extern "C" {
pub static mut daylight: ::std::os::raw::c_int;
}
unsafe extern "C" {
pub static mut timezone: ::std::os::raw::c_long;
}
unsafe extern "C" {
pub static mut getdate_err: ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn getdate(arg1: *const ::std::os::raw::c_char) -> *mut tm;
}
unsafe extern "C" {
pub fn stime(arg1: *const time_t) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn timegm(arg1: *mut tm) -> time_t;
}
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 GEqualFuncFull = ::std::option::Option<
unsafe extern "C" fn(a: gconstpointer, b: gconstpointer, user_data: gpointer) -> 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 GCopyFunc =
::std::option::Option<unsafe extern "C" fn(src: gconstpointer, data: gpointer) -> 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,
}
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GFloatIEEE754__bindgen_ty_1 {
pub _bitfield_align_1: [u32; 0],
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GFloatIEEE754__bindgen_ty_1"]
[::std::mem::size_of::<_GFloatIEEE754__bindgen_ty_1>() - 4usize];
["Alignment of _GFloatIEEE754__bindgen_ty_1"]
[::std::mem::align_of::<_GFloatIEEE754__bindgen_ty_1>() - 4usize];
};
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 unsafe fn mantissa_raw(this: *const Self) -> guint {
unsafe {
::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
::std::ptr::addr_of!((*this)._bitfield_1),
0usize,
23u8,
) as u32)
}
}
#[inline]
pub unsafe fn set_mantissa_raw(this: *mut Self, val: guint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
::std::ptr::addr_of_mut!((*this)._bitfield_1),
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 unsafe fn biased_exponent_raw(this: *const Self) -> guint {
unsafe {
::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
::std::ptr::addr_of!((*this)._bitfield_1),
23usize,
8u8,
) as u32)
}
}
#[inline]
pub unsafe fn set_biased_exponent_raw(this: *mut Self, val: guint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
::std::ptr::addr_of_mut!((*this)._bitfield_1),
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 unsafe fn sign_raw(this: *const Self) -> guint {
unsafe {
::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
::std::ptr::addr_of!((*this)._bitfield_1),
31usize,
1u8,
) as u32)
}
}
#[inline]
pub unsafe fn set_sign_raw(this: *mut Self, val: guint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
::std::ptr::addr_of_mut!((*this)._bitfield_1),
31usize,
1u8,
val as u64,
)
}
}
#[inline]
pub fn new_bitfield_1(
mantissa: guint,
biased_exponent: guint,
sign: guint,
) -> __BindgenBitfieldUnit<[u8; 4usize]> {
let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = 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
}
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GFloatIEEE754"][::std::mem::size_of::<_GFloatIEEE754>() - 4usize];
["Alignment of _GFloatIEEE754"][::std::mem::align_of::<_GFloatIEEE754>() - 4usize];
["Offset of field: _GFloatIEEE754::v_float"]
[::std::mem::offset_of!(_GFloatIEEE754, v_float) - 0usize];
["Offset of field: _GFloatIEEE754::mpn"][::std::mem::offset_of!(_GFloatIEEE754, mpn) - 0usize];
};
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,
}
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GDoubleIEEE754__bindgen_ty_1 {
pub _bitfield_align_1: [u32; 0],
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 8usize]>,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GDoubleIEEE754__bindgen_ty_1"]
[::std::mem::size_of::<_GDoubleIEEE754__bindgen_ty_1>() - 8usize];
["Alignment of _GDoubleIEEE754__bindgen_ty_1"]
[::std::mem::align_of::<_GDoubleIEEE754__bindgen_ty_1>() - 4usize];
};
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 unsafe fn mantissa_low_raw(this: *const Self) -> guint {
unsafe {
::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
::std::ptr::addr_of!((*this)._bitfield_1),
0usize,
32u8,
) as u32)
}
}
#[inline]
pub unsafe fn set_mantissa_low_raw(this: *mut Self, val: guint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
::std::ptr::addr_of_mut!((*this)._bitfield_1),
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 unsafe fn mantissa_high_raw(this: *const Self) -> guint {
unsafe {
::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
::std::ptr::addr_of!((*this)._bitfield_1),
32usize,
20u8,
) as u32)
}
}
#[inline]
pub unsafe fn set_mantissa_high_raw(this: *mut Self, val: guint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
::std::ptr::addr_of_mut!((*this)._bitfield_1),
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 unsafe fn biased_exponent_raw(this: *const Self) -> guint {
unsafe {
::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
::std::ptr::addr_of!((*this)._bitfield_1),
52usize,
11u8,
) as u32)
}
}
#[inline]
pub unsafe fn set_biased_exponent_raw(this: *mut Self, val: guint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
::std::ptr::addr_of_mut!((*this)._bitfield_1),
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 unsafe fn sign_raw(this: *const Self) -> guint {
unsafe {
::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
::std::ptr::addr_of!((*this)._bitfield_1),
63usize,
1u8,
) as u32)
}
}
#[inline]
pub unsafe fn set_sign_raw(this: *mut Self, val: guint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
::std::ptr::addr_of_mut!((*this)._bitfield_1),
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]> {
let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 8usize]> = 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
}
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GDoubleIEEE754"][::std::mem::size_of::<_GDoubleIEEE754>() - 8usize];
["Alignment of _GDoubleIEEE754"][::std::mem::align_of::<_GDoubleIEEE754>() - 8usize];
["Offset of field: _GDoubleIEEE754::v_double"]
[::std::mem::offset_of!(_GDoubleIEEE754, v_double) - 0usize];
["Offset of field: _GDoubleIEEE754::mpn"]
[::std::mem::offset_of!(_GDoubleIEEE754, mpn) - 0usize];
};
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, PartialEq, Eq)]
pub struct _GTimeVal {
pub tv_sec: glong,
pub tv_usec: glong,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GTimeVal"][::std::mem::size_of::<_GTimeVal>() - 16usize];
["Alignment of _GTimeVal"][::std::mem::align_of::<_GTimeVal>() - 8usize];
["Offset of field: _GTimeVal::tv_sec"][::std::mem::offset_of!(_GTimeVal, tv_sec) - 0usize];
["Offset of field: _GTimeVal::tv_usec"][::std::mem::offset_of!(_GTimeVal, tv_usec) - 8usize];
};
pub type grefcount = gint;
pub type gatomicrefcount = gint;
unsafe extern "C" {
pub fn memcpy(
arg1: *mut ::std::os::raw::c_void,
arg2: *const ::std::os::raw::c_void,
arg3: ::std::os::raw::c_ulong,
) -> *mut ::std::os::raw::c_void;
}
unsafe extern "C" {
pub fn memmove(
arg1: *mut ::std::os::raw::c_void,
arg2: *const ::std::os::raw::c_void,
arg3: ::std::os::raw::c_ulong,
) -> *mut ::std::os::raw::c_void;
}
unsafe extern "C" {
pub fn memset(
arg1: *mut ::std::os::raw::c_void,
arg2: ::std::os::raw::c_int,
arg3: ::std::os::raw::c_ulong,
) -> *mut ::std::os::raw::c_void;
}
unsafe extern "C" {
pub fn memcmp(
arg1: *const ::std::os::raw::c_void,
arg2: *const ::std::os::raw::c_void,
arg3: ::std::os::raw::c_ulong,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn memchr(
arg1: *const ::std::os::raw::c_void,
arg2: ::std::os::raw::c_int,
arg3: ::std::os::raw::c_ulong,
) -> *mut ::std::os::raw::c_void;
}
unsafe extern "C" {
pub fn strcpy(
arg1: *mut ::std::os::raw::c_char,
arg2: *const ::std::os::raw::c_char,
) -> *mut ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn strncpy(
arg1: *mut ::std::os::raw::c_char,
arg2: *const ::std::os::raw::c_char,
arg3: ::std::os::raw::c_ulong,
) -> *mut ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn strcat(
arg1: *mut ::std::os::raw::c_char,
arg2: *const ::std::os::raw::c_char,
) -> *mut ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn strncat(
arg1: *mut ::std::os::raw::c_char,
arg2: *const ::std::os::raw::c_char,
arg3: ::std::os::raw::c_ulong,
) -> *mut ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn strcmp(
arg1: *const ::std::os::raw::c_char,
arg2: *const ::std::os::raw::c_char,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn strncmp(
arg1: *const ::std::os::raw::c_char,
arg2: *const ::std::os::raw::c_char,
arg3: ::std::os::raw::c_ulong,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn strcoll(
arg1: *const ::std::os::raw::c_char,
arg2: *const ::std::os::raw::c_char,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn strxfrm(
arg1: *mut ::std::os::raw::c_char,
arg2: *const ::std::os::raw::c_char,
arg3: ::std::os::raw::c_ulong,
) -> ::std::os::raw::c_ulong;
}
unsafe extern "C" {
pub fn strchr(
arg1: *const ::std::os::raw::c_char,
arg2: ::std::os::raw::c_int,
) -> *mut ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn strrchr(
arg1: *const ::std::os::raw::c_char,
arg2: ::std::os::raw::c_int,
) -> *mut ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn strcspn(
arg1: *const ::std::os::raw::c_char,
arg2: *const ::std::os::raw::c_char,
) -> ::std::os::raw::c_ulong;
}
unsafe extern "C" {
pub fn strspn(
arg1: *const ::std::os::raw::c_char,
arg2: *const ::std::os::raw::c_char,
) -> ::std::os::raw::c_ulong;
}
unsafe extern "C" {
pub fn strpbrk(
arg1: *const ::std::os::raw::c_char,
arg2: *const ::std::os::raw::c_char,
) -> *mut ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn strstr(
arg1: *const ::std::os::raw::c_char,
arg2: *const ::std::os::raw::c_char,
) -> *mut ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn strtok(
arg1: *mut ::std::os::raw::c_char,
arg2: *const ::std::os::raw::c_char,
) -> *mut ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn strlen(arg1: *const ::std::os::raw::c_char) -> ::std::os::raw::c_ulong;
}
unsafe extern "C" {
pub fn strerror(arg1: ::std::os::raw::c_int) -> *mut ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn bcmp(
arg1: *const ::std::os::raw::c_void,
arg2: *const ::std::os::raw::c_void,
arg3: ::std::os::raw::c_ulong,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn bcopy(
arg1: *const ::std::os::raw::c_void,
arg2: *mut ::std::os::raw::c_void,
arg3: ::std::os::raw::c_ulong,
);
}
unsafe extern "C" {
pub fn bzero(arg1: *mut ::std::os::raw::c_void, arg2: ::std::os::raw::c_ulong);
}
unsafe extern "C" {
pub fn index(
arg1: *const ::std::os::raw::c_char,
arg2: ::std::os::raw::c_int,
) -> *mut ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn rindex(
arg1: *const ::std::os::raw::c_char,
arg2: ::std::os::raw::c_int,
) -> *mut ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn ffs(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn ffsl(arg1: ::std::os::raw::c_long) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn ffsll(arg1: ::std::os::raw::c_longlong) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn strcasecmp(
arg1: *const ::std::os::raw::c_char,
arg2: *const ::std::os::raw::c_char,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn strncasecmp(
arg1: *const ::std::os::raw::c_char,
arg2: *const ::std::os::raw::c_char,
arg3: ::std::os::raw::c_ulong,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn strcasecmp_l(
arg1: *const ::std::os::raw::c_char,
arg2: *const ::std::os::raw::c_char,
arg3: locale_t,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn strncasecmp_l(
arg1: *const ::std::os::raw::c_char,
arg2: *const ::std::os::raw::c_char,
arg3: size_t,
arg4: locale_t,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn strtok_r(
arg1: *mut ::std::os::raw::c_char,
arg2: *const ::std::os::raw::c_char,
arg3: *mut *mut ::std::os::raw::c_char,
) -> *mut ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn strerror_r(
arg1: ::std::os::raw::c_int,
arg2: *mut ::std::os::raw::c_char,
arg3: size_t,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn stpcpy(
arg1: *mut ::std::os::raw::c_char,
arg2: *const ::std::os::raw::c_char,
) -> *mut ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn stpncpy(
arg1: *mut ::std::os::raw::c_char,
arg2: *const ::std::os::raw::c_char,
arg3: ::std::os::raw::c_ulong,
) -> *mut ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn strnlen(arg1: *const ::std::os::raw::c_char, arg2: size_t) -> size_t;
}
unsafe extern "C" {
pub fn strdup(arg1: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn strndup(
arg1: *const ::std::os::raw::c_char,
arg2: ::std::os::raw::c_ulong,
) -> *mut ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn strsignal(arg1: ::std::os::raw::c_int) -> *mut ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn strerror_l(arg1: ::std::os::raw::c_int, arg2: locale_t) -> *mut ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn strcoll_l(
arg1: *const ::std::os::raw::c_char,
arg2: *const ::std::os::raw::c_char,
arg3: locale_t,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn strxfrm_l(
arg1: *mut ::std::os::raw::c_char,
arg2: *const ::std::os::raw::c_char,
arg3: size_t,
arg4: locale_t,
) -> size_t;
}
unsafe extern "C" {
pub fn memmem(
arg1: *const ::std::os::raw::c_void,
arg2: size_t,
arg3: *const ::std::os::raw::c_void,
arg4: size_t,
) -> *mut ::std::os::raw::c_void;
}
unsafe extern "C" {
pub fn memccpy(
arg1: *mut ::std::os::raw::c_void,
arg2: *const ::std::os::raw::c_void,
arg3: ::std::os::raw::c_int,
arg4: ::std::os::raw::c_ulong,
) -> *mut ::std::os::raw::c_void;
}
unsafe extern "C" {
pub fn strsep(
arg1: *mut *mut ::std::os::raw::c_char,
arg2: *const ::std::os::raw::c_char,
) -> *mut ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn strlcat(
arg1: *mut ::std::os::raw::c_char,
arg2: *const ::std::os::raw::c_char,
arg3: ::std::os::raw::c_ulong,
) -> ::std::os::raw::c_ulong;
}
unsafe extern "C" {
pub fn strlcpy(
arg1: *mut ::std::os::raw::c_char,
arg2: *const ::std::os::raw::c_char,
arg3: ::std::os::raw::c_ulong,
) -> ::std::os::raw::c_ulong;
}
unsafe extern "C" {
pub fn explicit_bzero(arg1: *mut ::std::os::raw::c_void, arg2: size_t);
}
#[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, PartialEq, Eq)]
pub struct _GArray {
pub data: *mut gchar,
pub len: guint,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GArray"][::std::mem::size_of::<_GArray>() - 16usize];
["Alignment of _GArray"][::std::mem::align_of::<_GArray>() - 8usize];
["Offset of field: _GArray::data"][::std::mem::offset_of!(_GArray, data) - 0usize];
["Offset of field: _GArray::len"][::std::mem::offset_of!(_GArray, len) - 8usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GByteArray {
pub data: *mut guint8,
pub len: guint,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GByteArray"][::std::mem::size_of::<_GByteArray>() - 16usize];
["Alignment of _GByteArray"][::std::mem::align_of::<_GByteArray>() - 8usize];
["Offset of field: _GByteArray::data"][::std::mem::offset_of!(_GByteArray, data) - 0usize];
["Offset of field: _GByteArray::len"][::std::mem::offset_of!(_GByteArray, len) - 8usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GPtrArray {
pub pdata: *mut gpointer,
pub len: guint,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GPtrArray"][::std::mem::size_of::<_GPtrArray>() - 16usize];
["Alignment of _GPtrArray"][::std::mem::align_of::<_GPtrArray>() - 8usize];
["Offset of field: _GPtrArray::pdata"][::std::mem::offset_of!(_GPtrArray, pdata) - 0usize];
["Offset of field: _GPtrArray::len"][::std::mem::offset_of!(_GPtrArray, len) - 8usize];
};
unsafe extern "C" {
pub fn g_array_new(
zero_terminated: gboolean,
clear_: gboolean,
element_size: guint,
) -> *mut GArray;
}
unsafe extern "C" {
pub fn g_array_new_take(
data: gpointer,
len: gsize,
clear: gboolean,
element_size: gsize,
) -> *mut GArray;
}
unsafe extern "C" {
pub fn g_array_new_take_zero_terminated(
data: gpointer,
clear: gboolean,
element_size: gsize,
) -> *mut GArray;
}
unsafe extern "C" {
pub fn g_array_steal(array: *mut GArray, len: *mut gsize) -> gpointer;
}
unsafe extern "C" {
pub fn g_array_sized_new(
zero_terminated: gboolean,
clear_: gboolean,
element_size: guint,
reserved_size: guint,
) -> *mut GArray;
}
unsafe extern "C" {
pub fn g_array_copy(array: *mut GArray) -> *mut GArray;
}
unsafe extern "C" {
pub fn g_array_free(array: *mut GArray, free_segment: gboolean) -> *mut gchar;
}
unsafe extern "C" {
pub fn g_array_ref(array: *mut GArray) -> *mut GArray;
}
unsafe extern "C" {
pub fn g_array_unref(array: *mut GArray);
}
unsafe extern "C" {
pub fn g_array_get_element_size(array: *mut GArray) -> guint;
}
unsafe extern "C" {
pub fn g_array_append_vals(array: *mut GArray, data: gconstpointer, len: guint) -> *mut GArray;
}
unsafe extern "C" {
pub fn g_array_prepend_vals(array: *mut GArray, data: gconstpointer, len: guint)
-> *mut GArray;
}
unsafe extern "C" {
pub fn g_array_insert_vals(
array: *mut GArray,
index_: guint,
data: gconstpointer,
len: guint,
) -> *mut GArray;
}
unsafe extern "C" {
pub fn g_array_set_size(array: *mut GArray, length: guint) -> *mut GArray;
}
unsafe extern "C" {
pub fn g_array_remove_index(array: *mut GArray, index_: guint) -> *mut GArray;
}
unsafe extern "C" {
pub fn g_array_remove_index_fast(array: *mut GArray, index_: guint) -> *mut GArray;
}
unsafe extern "C" {
pub fn g_array_remove_range(array: *mut GArray, index_: guint, length: guint) -> *mut GArray;
}
unsafe extern "C" {
pub fn g_array_sort(array: *mut GArray, compare_func: GCompareFunc);
}
unsafe extern "C" {
pub fn g_array_sort_with_data(
array: *mut GArray,
compare_func: GCompareDataFunc,
user_data: gpointer,
);
}
unsafe extern "C" {
pub fn g_array_binary_search(
array: *mut GArray,
target: gconstpointer,
compare_func: GCompareFunc,
out_match_index: *mut guint,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_array_set_clear_func(array: *mut GArray, clear_func: GDestroyNotify);
}
unsafe extern "C" {
pub fn g_ptr_array_new() -> *mut GPtrArray;
}
unsafe extern "C" {
pub fn g_ptr_array_new_with_free_func(element_free_func: GDestroyNotify) -> *mut GPtrArray;
}
unsafe extern "C" {
pub fn g_ptr_array_new_take(
data: *mut gpointer,
len: gsize,
element_free_func: GDestroyNotify,
) -> *mut GPtrArray;
}
unsafe extern "C" {
pub fn g_ptr_array_new_from_array(
data: *mut gpointer,
len: gsize,
copy_func: GCopyFunc,
copy_func_user_data: gpointer,
element_free_func: GDestroyNotify,
) -> *mut GPtrArray;
}
unsafe extern "C" {
pub fn g_ptr_array_steal(array: *mut GPtrArray, len: *mut gsize) -> *mut gpointer;
}
unsafe extern "C" {
pub fn g_ptr_array_copy(
array: *mut GPtrArray,
func: GCopyFunc,
user_data: gpointer,
) -> *mut GPtrArray;
}
unsafe extern "C" {
pub fn g_ptr_array_sized_new(reserved_size: guint) -> *mut GPtrArray;
}
unsafe extern "C" {
pub fn g_ptr_array_new_full(
reserved_size: guint,
element_free_func: GDestroyNotify,
) -> *mut GPtrArray;
}
unsafe extern "C" {
pub fn g_ptr_array_new_null_terminated(
reserved_size: guint,
element_free_func: GDestroyNotify,
null_terminated: gboolean,
) -> *mut GPtrArray;
}
unsafe extern "C" {
pub fn g_ptr_array_new_take_null_terminated(
data: *mut gpointer,
element_free_func: GDestroyNotify,
) -> *mut GPtrArray;
}
unsafe extern "C" {
pub fn g_ptr_array_new_from_null_terminated_array(
data: *mut gpointer,
copy_func: GCopyFunc,
copy_func_user_data: gpointer,
element_free_func: GDestroyNotify,
) -> *mut GPtrArray;
}
unsafe extern "C" {
pub fn g_ptr_array_free(array: *mut GPtrArray, free_segment: gboolean) -> *mut gpointer;
}
unsafe extern "C" {
pub fn g_ptr_array_ref(array: *mut GPtrArray) -> *mut GPtrArray;
}
unsafe extern "C" {
pub fn g_ptr_array_unref(array: *mut GPtrArray);
}
unsafe extern "C" {
pub fn g_ptr_array_set_free_func(array: *mut GPtrArray, element_free_func: GDestroyNotify);
}
unsafe extern "C" {
pub fn g_ptr_array_set_size(array: *mut GPtrArray, length: gint);
}
unsafe extern "C" {
pub fn g_ptr_array_remove_index(array: *mut GPtrArray, index_: guint) -> gpointer;
}
unsafe extern "C" {
pub fn g_ptr_array_remove_index_fast(array: *mut GPtrArray, index_: guint) -> gpointer;
}
unsafe extern "C" {
pub fn g_ptr_array_steal_index(array: *mut GPtrArray, index_: guint) -> gpointer;
}
unsafe extern "C" {
pub fn g_ptr_array_steal_index_fast(array: *mut GPtrArray, index_: guint) -> gpointer;
}
unsafe extern "C" {
pub fn g_ptr_array_remove(array: *mut GPtrArray, data: gpointer) -> gboolean;
}
unsafe extern "C" {
pub fn g_ptr_array_remove_fast(array: *mut GPtrArray, data: gpointer) -> gboolean;
}
unsafe extern "C" {
pub fn g_ptr_array_remove_range(
array: *mut GPtrArray,
index_: guint,
length: guint,
) -> *mut GPtrArray;
}
unsafe extern "C" {
pub fn g_ptr_array_add(array: *mut GPtrArray, data: gpointer);
}
unsafe extern "C" {
pub fn g_ptr_array_extend(
array_to_extend: *mut GPtrArray,
array: *mut GPtrArray,
func: GCopyFunc,
user_data: gpointer,
);
}
unsafe extern "C" {
pub fn g_ptr_array_extend_and_steal(array_to_extend: *mut GPtrArray, array: *mut GPtrArray);
}
unsafe extern "C" {
pub fn g_ptr_array_insert(array: *mut GPtrArray, index_: gint, data: gpointer);
}
unsafe extern "C" {
pub fn g_ptr_array_sort(array: *mut GPtrArray, compare_func: GCompareFunc);
}
unsafe extern "C" {
pub fn g_ptr_array_sort_with_data(
array: *mut GPtrArray,
compare_func: GCompareDataFunc,
user_data: gpointer,
);
}
unsafe extern "C" {
pub fn g_ptr_array_sort_values(array: *mut GPtrArray, compare_func: GCompareFunc);
}
unsafe extern "C" {
pub fn g_ptr_array_sort_values_with_data(
array: *mut GPtrArray,
compare_func: GCompareDataFunc,
user_data: gpointer,
);
}
unsafe extern "C" {
pub fn g_ptr_array_foreach(array: *mut GPtrArray, func: GFunc, user_data: gpointer);
}
unsafe extern "C" {
pub fn g_ptr_array_find(
haystack: *mut GPtrArray,
needle: gconstpointer,
index_: *mut guint,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_ptr_array_find_with_equal_func(
haystack: *mut GPtrArray,
needle: gconstpointer,
equal_func: GEqualFunc,
index_: *mut guint,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_ptr_array_is_null_terminated(array: *mut GPtrArray) -> gboolean;
}
unsafe extern "C" {
pub fn g_byte_array_new() -> *mut GByteArray;
}
unsafe extern "C" {
pub fn g_byte_array_new_take(data: *mut guint8, len: gsize) -> *mut GByteArray;
}
unsafe extern "C" {
pub fn g_byte_array_steal(array: *mut GByteArray, len: *mut gsize) -> *mut guint8;
}
unsafe extern "C" {
pub fn g_byte_array_sized_new(reserved_size: guint) -> *mut GByteArray;
}
unsafe extern "C" {
pub fn g_byte_array_free(array: *mut GByteArray, free_segment: gboolean) -> *mut guint8;
}
unsafe extern "C" {
pub fn g_byte_array_free_to_bytes(array: *mut GByteArray) -> *mut GBytes;
}
unsafe extern "C" {
pub fn g_byte_array_ref(array: *mut GByteArray) -> *mut GByteArray;
}
unsafe extern "C" {
pub fn g_byte_array_unref(array: *mut GByteArray);
}
unsafe extern "C" {
pub fn g_byte_array_append(
array: *mut GByteArray,
data: *const guint8,
len: guint,
) -> *mut GByteArray;
}
unsafe extern "C" {
pub fn g_byte_array_prepend(
array: *mut GByteArray,
data: *const guint8,
len: guint,
) -> *mut GByteArray;
}
unsafe extern "C" {
pub fn g_byte_array_set_size(array: *mut GByteArray, length: guint) -> *mut GByteArray;
}
unsafe extern "C" {
pub fn g_byte_array_remove_index(array: *mut GByteArray, index_: guint) -> *mut GByteArray;
}
unsafe extern "C" {
pub fn g_byte_array_remove_index_fast(array: *mut GByteArray, index_: guint)
-> *mut GByteArray;
}
unsafe extern "C" {
pub fn g_byte_array_remove_range(
array: *mut GByteArray,
index_: guint,
length: guint,
) -> *mut GByteArray;
}
unsafe extern "C" {
pub fn g_byte_array_sort(array: *mut GByteArray, compare_func: GCompareFunc);
}
unsafe extern "C" {
pub fn g_byte_array_sort_with_data(
array: *mut GByteArray,
compare_func: GCompareDataFunc,
user_data: gpointer,
);
}
unsafe extern "C" {
pub fn g_atomic_int_get(atomic: *const gint) -> gint;
}
unsafe extern "C" {
pub fn g_atomic_int_set(atomic: *mut gint, newval: gint);
}
unsafe extern "C" {
pub fn g_atomic_int_inc(atomic: *mut gint);
}
unsafe extern "C" {
pub fn g_atomic_int_dec_and_test(atomic: *mut gint) -> gboolean;
}
unsafe extern "C" {
pub fn g_atomic_int_compare_and_exchange(
atomic: *mut gint,
oldval: gint,
newval: gint,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_atomic_int_compare_and_exchange_full(
atomic: *mut gint,
oldval: gint,
newval: gint,
preval: *mut gint,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_atomic_int_exchange(atomic: *mut gint, newval: gint) -> gint;
}
unsafe extern "C" {
pub fn g_atomic_int_add(atomic: *mut gint, val: gint) -> gint;
}
unsafe extern "C" {
pub fn g_atomic_int_and(atomic: *mut guint, val: guint) -> guint;
}
unsafe extern "C" {
pub fn g_atomic_int_or(atomic: *mut guint, val: guint) -> guint;
}
unsafe extern "C" {
pub fn g_atomic_int_xor(atomic: *mut guint, val: guint) -> guint;
}
unsafe extern "C" {
pub fn g_atomic_pointer_get(atomic: *const ::std::os::raw::c_void) -> gpointer;
}
unsafe extern "C" {
pub fn g_atomic_pointer_set(atomic: *mut ::std::os::raw::c_void, newval: gpointer);
}
unsafe extern "C" {
pub fn g_atomic_pointer_compare_and_exchange(
atomic: *mut ::std::os::raw::c_void,
oldval: gpointer,
newval: gpointer,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_atomic_pointer_compare_and_exchange_full(
atomic: *mut ::std::os::raw::c_void,
oldval: gpointer,
newval: gpointer,
preval: *mut ::std::os::raw::c_void,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_atomic_pointer_exchange(
atomic: *mut ::std::os::raw::c_void,
newval: gpointer,
) -> gpointer;
}
unsafe extern "C" {
pub fn g_atomic_pointer_add(atomic: *mut ::std::os::raw::c_void, val: gssize) -> gintptr;
}
unsafe extern "C" {
pub fn g_atomic_pointer_and(atomic: *mut ::std::os::raw::c_void, val: gsize) -> guintptr;
}
unsafe extern "C" {
pub fn g_atomic_pointer_or(atomic: *mut ::std::os::raw::c_void, val: gsize) -> guintptr;
}
unsafe extern "C" {
pub fn g_atomic_pointer_xor(atomic: *mut ::std::os::raw::c_void, val: gsize) -> guintptr;
}
unsafe extern "C" {
pub fn g_atomic_int_exchange_and_add(atomic: *mut gint, val: gint) -> gint;
}
pub type va_list = __BindgenOpaqueArray<u64, 4usize>;
pub type GQuark = guint32;
unsafe extern "C" {
pub fn g_quark_try_string(string: *const gchar) -> GQuark;
}
unsafe extern "C" {
pub fn g_quark_from_static_string(string: *const gchar) -> GQuark;
}
unsafe extern "C" {
pub fn g_quark_from_string(string: *const gchar) -> GQuark;
}
unsafe extern "C" {
pub fn g_quark_to_string(quark: GQuark) -> *const gchar;
}
unsafe extern "C" {
pub fn g_intern_string(string: *const gchar) -> *const gchar;
}
unsafe extern "C" {
pub fn g_intern_static_string(string: *const gchar) -> *const gchar;
}
pub type GError = _GError;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GError {
pub domain: GQuark,
pub code: gint,
pub message: *mut gchar,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GError"][::std::mem::size_of::<_GError>() - 16usize];
["Alignment of _GError"][::std::mem::align_of::<_GError>() - 8usize];
["Offset of field: _GError::domain"][::std::mem::offset_of!(_GError, domain) - 0usize];
["Offset of field: _GError::code"][::std::mem::offset_of!(_GError, code) - 4usize];
["Offset of field: _GError::message"][::std::mem::offset_of!(_GError, message) - 8usize];
};
pub type GErrorInitFunc = ::std::option::Option<unsafe extern "C" fn(error: *mut GError)>;
pub type GErrorCopyFunc =
::std::option::Option<unsafe extern "C" fn(src_error: *const GError, dest_error: *mut GError)>;
pub type GErrorClearFunc = ::std::option::Option<unsafe extern "C" fn(error: *mut GError)>;
unsafe extern "C" {
pub fn g_error_domain_register_static(
error_type_name: *const ::std::os::raw::c_char,
error_type_private_size: gsize,
error_type_init: GErrorInitFunc,
error_type_copy: GErrorCopyFunc,
error_type_clear: GErrorClearFunc,
) -> GQuark;
}
unsafe extern "C" {
pub fn g_error_domain_register(
error_type_name: *const ::std::os::raw::c_char,
error_type_private_size: gsize,
error_type_init: GErrorInitFunc,
error_type_copy: GErrorCopyFunc,
error_type_clear: GErrorClearFunc,
) -> GQuark;
}
unsafe extern "C" {
pub fn g_error_new(domain: GQuark, code: gint, format: *const gchar, ...) -> *mut GError;
}
unsafe extern "C" {
pub fn g_error_new_literal(domain: GQuark, code: gint, message: *const gchar) -> *mut GError;
}
unsafe extern "C" {
pub fn g_error_new_valist(
domain: GQuark,
code: gint,
format: *const gchar,
args: va_list,
) -> *mut GError;
}
unsafe extern "C" {
pub fn g_error_free(error: *mut GError);
}
unsafe extern "C" {
pub fn g_error_copy(error: *const GError) -> *mut GError;
}
unsafe extern "C" {
pub fn g_error_matches(error: *const GError, domain: GQuark, code: gint) -> gboolean;
}
unsafe extern "C" {
pub fn g_set_error(
err: *mut *mut GError,
domain: GQuark,
code: gint,
format: *const gchar,
...
);
}
unsafe extern "C" {
pub fn g_set_error_literal(
err: *mut *mut GError,
domain: GQuark,
code: gint,
message: *const gchar,
);
}
unsafe extern "C" {
pub fn g_propagate_error(dest: *mut *mut GError, src: *mut GError);
}
unsafe extern "C" {
pub fn g_clear_error(err: *mut *mut GError);
}
unsafe extern "C" {
pub fn g_prefix_error(err: *mut *mut GError, format: *const gchar, ...);
}
unsafe extern "C" {
pub fn g_prefix_error_literal(err: *mut *mut GError, prefix: *const gchar);
}
unsafe extern "C" {
pub fn g_propagate_prefixed_error(
dest: *mut *mut GError,
src: *mut GError,
format: *const gchar,
...
);
}
unsafe extern "C" {
pub fn g_get_user_name() -> *const gchar;
}
unsafe extern "C" {
pub fn g_get_real_name() -> *const gchar;
}
unsafe extern "C" {
pub fn g_get_home_dir() -> *const gchar;
}
unsafe extern "C" {
pub fn g_get_tmp_dir() -> *const gchar;
}
unsafe extern "C" {
pub fn g_get_host_name() -> *const gchar;
}
unsafe extern "C" {
pub fn g_get_prgname() -> *const gchar;
}
unsafe extern "C" {
pub fn g_set_prgname(prgname: *const gchar);
}
unsafe extern "C" {
pub fn g_get_application_name() -> *const gchar;
}
unsafe extern "C" {
pub fn g_set_application_name(application_name: *const gchar);
}
unsafe extern "C" {
pub fn g_get_os_info(key_name: *const gchar) -> *mut gchar;
}
unsafe extern "C" {
pub fn g_reload_user_special_dirs_cache();
}
unsafe extern "C" {
pub fn g_get_user_data_dir() -> *const gchar;
}
unsafe extern "C" {
pub fn g_get_user_config_dir() -> *const gchar;
}
unsafe extern "C" {
pub fn g_get_user_cache_dir() -> *const gchar;
}
unsafe extern "C" {
pub fn g_get_user_state_dir() -> *const gchar;
}
unsafe extern "C" {
pub fn g_get_system_data_dirs() -> *const *const gchar;
}
unsafe extern "C" {
pub fn g_get_system_config_dirs() -> *const *const gchar;
}
unsafe extern "C" {
pub fn g_get_user_runtime_dir() -> *const gchar;
}
pub const GUserDirectory_G_USER_DIRECTORY_DESKTOP: GUserDirectory = 0;
pub const GUserDirectory_G_USER_DIRECTORY_DOCUMENTS: GUserDirectory = 1;
pub const GUserDirectory_G_USER_DIRECTORY_DOWNLOAD: GUserDirectory = 2;
pub const GUserDirectory_G_USER_DIRECTORY_MUSIC: GUserDirectory = 3;
pub const GUserDirectory_G_USER_DIRECTORY_PICTURES: GUserDirectory = 4;
pub const GUserDirectory_G_USER_DIRECTORY_PUBLIC_SHARE: GUserDirectory = 5;
pub const GUserDirectory_G_USER_DIRECTORY_TEMPLATES: GUserDirectory = 6;
pub const GUserDirectory_G_USER_DIRECTORY_VIDEOS: GUserDirectory = 7;
pub const GUserDirectory_G_USER_N_DIRECTORIES: GUserDirectory = 8;
pub type GUserDirectory = ::std::os::raw::c_uint;
unsafe extern "C" {
pub fn g_get_user_special_dir(directory: GUserDirectory) -> *const gchar;
}
pub type GDebugKey = _GDebugKey;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GDebugKey {
pub key: *const gchar,
pub value: guint,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GDebugKey"][::std::mem::size_of::<_GDebugKey>() - 16usize];
["Alignment of _GDebugKey"][::std::mem::align_of::<_GDebugKey>() - 8usize];
["Offset of field: _GDebugKey::key"][::std::mem::offset_of!(_GDebugKey, key) - 0usize];
["Offset of field: _GDebugKey::value"][::std::mem::offset_of!(_GDebugKey, value) - 8usize];
};
unsafe extern "C" {
pub fn g_parse_debug_string(
string: *const gchar,
keys: *const GDebugKey,
nkeys: guint,
) -> guint;
}
unsafe extern "C" {
pub fn g_snprintf(string: *mut gchar, n: gulong, format: *const gchar, ...) -> gint;
}
unsafe extern "C" {
pub fn g_vsnprintf(string: *mut gchar, n: gulong, format: *const gchar, args: va_list) -> gint;
}
unsafe extern "C" {
pub fn g_nullify_pointer(nullify_location: *mut gpointer);
}
pub const GFormatSizeFlags_G_FORMAT_SIZE_DEFAULT: GFormatSizeFlags = 0;
pub const GFormatSizeFlags_G_FORMAT_SIZE_LONG_FORMAT: GFormatSizeFlags = 1;
pub const GFormatSizeFlags_G_FORMAT_SIZE_IEC_UNITS: GFormatSizeFlags = 2;
pub const GFormatSizeFlags_G_FORMAT_SIZE_BITS: GFormatSizeFlags = 4;
pub const GFormatSizeFlags_G_FORMAT_SIZE_ONLY_VALUE: GFormatSizeFlags = 8;
pub const GFormatSizeFlags_G_FORMAT_SIZE_ONLY_UNIT: GFormatSizeFlags = 16;
pub type GFormatSizeFlags = ::std::os::raw::c_uint;
unsafe extern "C" {
pub fn g_format_size_full(size: guint64, flags: GFormatSizeFlags) -> *mut gchar;
}
unsafe extern "C" {
pub fn g_format_size(size: guint64) -> *mut gchar;
}
unsafe extern "C" {
pub fn g_format_size_for_display(size: goffset) -> *mut gchar;
}
pub type GVoidFunc = ::std::option::Option<unsafe extern "C" fn()>;
unsafe extern "C" {
pub fn g_atexit(func: GVoidFunc);
}
unsafe extern "C" {
pub fn g_find_program_in_path(program: *const gchar) -> *mut gchar;
}
unsafe extern "C" {
pub fn g_bit_nth_lsf(mask: gulong, nth_bit: gint) -> gint;
}
unsafe extern "C" {
pub fn g_bit_nth_msf(mask: gulong, nth_bit: gint) -> gint;
}
unsafe extern "C" {
pub fn g_bit_storage(number: gulong) -> guint;
}
unsafe extern "C" {
pub fn atoi(arg1: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn atol(arg1: *const ::std::os::raw::c_char) -> ::std::os::raw::c_long;
}
unsafe extern "C" {
pub fn atoll(arg1: *const ::std::os::raw::c_char) -> ::std::os::raw::c_longlong;
}
unsafe extern "C" {
pub fn atof(arg1: *const ::std::os::raw::c_char) -> f64;
}
unsafe extern "C" {
pub fn strtof(
arg1: *const ::std::os::raw::c_char,
arg2: *mut *mut ::std::os::raw::c_char,
) -> f32;
}
unsafe extern "C" {
pub fn strtod(
arg1: *const ::std::os::raw::c_char,
arg2: *mut *mut ::std::os::raw::c_char,
) -> f64;
}
unsafe extern "C" {
pub fn strtold(
arg1: *const ::std::os::raw::c_char,
arg2: *mut *mut ::std::os::raw::c_char,
) -> u128;
}
unsafe extern "C" {
pub fn strtol(
arg1: *const ::std::os::raw::c_char,
arg2: *mut *mut ::std::os::raw::c_char,
arg3: ::std::os::raw::c_int,
) -> ::std::os::raw::c_long;
}
unsafe extern "C" {
pub fn strtoul(
arg1: *const ::std::os::raw::c_char,
arg2: *mut *mut ::std::os::raw::c_char,
arg3: ::std::os::raw::c_int,
) -> ::std::os::raw::c_ulong;
}
unsafe extern "C" {
pub fn strtoll(
arg1: *const ::std::os::raw::c_char,
arg2: *mut *mut ::std::os::raw::c_char,
arg3: ::std::os::raw::c_int,
) -> ::std::os::raw::c_longlong;
}
unsafe extern "C" {
pub fn strtoull(
arg1: *const ::std::os::raw::c_char,
arg2: *mut *mut ::std::os::raw::c_char,
arg3: ::std::os::raw::c_int,
) -> ::std::os::raw::c_ulonglong;
}
unsafe extern "C" {
pub fn rand() -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn srand(arg1: ::std::os::raw::c_uint);
}
unsafe extern "C" {
pub fn malloc(arg1: ::std::os::raw::c_ulong) -> *mut ::std::os::raw::c_void;
}
unsafe extern "C" {
pub fn calloc(
arg1: ::std::os::raw::c_ulong,
arg2: ::std::os::raw::c_ulong,
) -> *mut ::std::os::raw::c_void;
}
unsafe extern "C" {
pub fn realloc(
arg1: *mut ::std::os::raw::c_void,
arg2: ::std::os::raw::c_ulong,
) -> *mut ::std::os::raw::c_void;
}
unsafe extern "C" {
pub fn free(arg1: *mut ::std::os::raw::c_void);
}
unsafe extern "C" {
pub fn aligned_alloc(
arg1: ::std::os::raw::c_ulong,
arg2: ::std::os::raw::c_ulong,
) -> *mut ::std::os::raw::c_void;
}
unsafe extern "C" {
pub fn abort() -> !;
}
unsafe extern "C" {
pub fn atexit(arg1: ::std::option::Option<unsafe extern "C" fn()>) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn exit(arg1: ::std::os::raw::c_int) -> !;
}
unsafe extern "C" {
pub fn _Exit(arg1: ::std::os::raw::c_int) -> !;
}
unsafe extern "C" {
pub fn at_quick_exit(
arg1: ::std::option::Option<unsafe extern "C" fn()>,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn quick_exit(arg1: ::std::os::raw::c_int);
}
unsafe extern "C" {
pub fn getenv(arg1: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn system(arg1: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn bsearch(
arg1: *const ::std::os::raw::c_void,
arg2: *const ::std::os::raw::c_void,
arg3: size_t,
arg4: size_t,
arg5: ::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,
>,
) -> *mut ::std::os::raw::c_void;
}
unsafe extern "C" {
pub fn qsort(
arg1: *mut ::std::os::raw::c_void,
arg2: size_t,
arg3: size_t,
arg4: ::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,
>,
);
}
unsafe extern "C" {
pub fn abs(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn labs(arg1: ::std::os::raw::c_long) -> ::std::os::raw::c_long;
}
unsafe extern "C" {
pub fn llabs(arg1: ::std::os::raw::c_longlong) -> ::std::os::raw::c_longlong;
}
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct div_t {
pub quot: ::std::os::raw::c_int,
pub rem: ::std::os::raw::c_int,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of div_t"][::std::mem::size_of::<div_t>() - 8usize];
["Alignment of div_t"][::std::mem::align_of::<div_t>() - 4usize];
["Offset of field: div_t::quot"][::std::mem::offset_of!(div_t, quot) - 0usize];
["Offset of field: div_t::rem"][::std::mem::offset_of!(div_t, rem) - 4usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct ldiv_t {
pub quot: ::std::os::raw::c_long,
pub rem: ::std::os::raw::c_long,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of ldiv_t"][::std::mem::size_of::<ldiv_t>() - 16usize];
["Alignment of ldiv_t"][::std::mem::align_of::<ldiv_t>() - 8usize];
["Offset of field: ldiv_t::quot"][::std::mem::offset_of!(ldiv_t, quot) - 0usize];
["Offset of field: ldiv_t::rem"][::std::mem::offset_of!(ldiv_t, rem) - 8usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct lldiv_t {
pub quot: ::std::os::raw::c_longlong,
pub rem: ::std::os::raw::c_longlong,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of lldiv_t"][::std::mem::size_of::<lldiv_t>() - 16usize];
["Alignment of lldiv_t"][::std::mem::align_of::<lldiv_t>() - 8usize];
["Offset of field: lldiv_t::quot"][::std::mem::offset_of!(lldiv_t, quot) - 0usize];
["Offset of field: lldiv_t::rem"][::std::mem::offset_of!(lldiv_t, rem) - 8usize];
};
unsafe extern "C" {
pub fn div(arg1: ::std::os::raw::c_int, arg2: ::std::os::raw::c_int) -> div_t;
}
unsafe extern "C" {
pub fn ldiv(arg1: ::std::os::raw::c_long, arg2: ::std::os::raw::c_long) -> ldiv_t;
}
unsafe extern "C" {
pub fn lldiv(arg1: ::std::os::raw::c_longlong, arg2: ::std::os::raw::c_longlong) -> lldiv_t;
}
unsafe extern "C" {
pub fn mblen(arg1: *const ::std::os::raw::c_char, arg2: size_t) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn mbtowc(
arg1: *mut wchar_t,
arg2: *const ::std::os::raw::c_char,
arg3: size_t,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn wctomb(arg1: *mut ::std::os::raw::c_char, arg2: wchar_t) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn mbstowcs(
arg1: *mut wchar_t,
arg2: *const ::std::os::raw::c_char,
arg3: size_t,
) -> size_t;
}
unsafe extern "C" {
pub fn wcstombs(
arg1: *mut ::std::os::raw::c_char,
arg2: *const wchar_t,
arg3: size_t,
) -> size_t;
}
unsafe extern "C" {
pub fn __ctype_get_mb_cur_max() -> size_t;
}
unsafe extern "C" {
pub fn posix_memalign(
arg1: *mut *mut ::std::os::raw::c_void,
arg2: size_t,
arg3: size_t,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn setenv(
arg1: *const ::std::os::raw::c_char,
arg2: *const ::std::os::raw::c_char,
arg3: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn unsetenv(arg1: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn mkstemp(arg1: *mut ::std::os::raw::c_char) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn mkostemp(
arg1: *mut ::std::os::raw::c_char,
arg2: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn mkdtemp(arg1: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn getsubopt(
arg1: *mut *mut ::std::os::raw::c_char,
arg2: *const *mut ::std::os::raw::c_char,
arg3: *mut *mut ::std::os::raw::c_char,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn rand_r(arg1: *mut ::std::os::raw::c_uint) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn realpath(
arg1: *const ::std::os::raw::c_char,
arg2: *mut ::std::os::raw::c_char,
) -> *mut ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn random() -> ::std::os::raw::c_long;
}
unsafe extern "C" {
pub fn srandom(arg1: ::std::os::raw::c_uint);
}
unsafe extern "C" {
pub fn initstate(
arg1: ::std::os::raw::c_uint,
arg2: *mut ::std::os::raw::c_char,
arg3: size_t,
) -> *mut ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn setstate(arg1: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn putenv(arg1: *mut ::std::os::raw::c_char) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn posix_openpt(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn grantpt(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn unlockpt(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn ptsname(arg1: ::std::os::raw::c_int) -> *mut ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn l64a(arg1: ::std::os::raw::c_long) -> *mut ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn a64l(arg1: *const ::std::os::raw::c_char) -> ::std::os::raw::c_long;
}
unsafe extern "C" {
pub fn setkey(arg1: *const ::std::os::raw::c_char);
}
unsafe extern "C" {
pub fn drand48() -> f64;
}
unsafe extern "C" {
pub fn erand48(arg1: *mut ::std::os::raw::c_ushort) -> f64;
}
unsafe extern "C" {
pub fn lrand48() -> ::std::os::raw::c_long;
}
unsafe extern "C" {
pub fn nrand48(arg1: *mut ::std::os::raw::c_ushort) -> ::std::os::raw::c_long;
}
unsafe extern "C" {
pub fn mrand48() -> ::std::os::raw::c_long;
}
unsafe extern "C" {
pub fn jrand48(arg1: *mut ::std::os::raw::c_ushort) -> ::std::os::raw::c_long;
}
unsafe extern "C" {
pub fn srand48(arg1: ::std::os::raw::c_long);
}
unsafe extern "C" {
pub fn seed48(arg1: *mut ::std::os::raw::c_ushort) -> *mut ::std::os::raw::c_ushort;
}
unsafe extern "C" {
pub fn lcong48(arg1: *mut ::std::os::raw::c_ushort);
}
unsafe extern "C" {
pub fn __builtin_alloca(arg1: ::std::os::raw::c_ulong) -> *mut ::std::os::raw::c_void;
}
unsafe extern "C" {
pub fn mktemp(arg1: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn mkstemps(
arg1: *mut ::std::os::raw::c_char,
arg2: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn mkostemps(
arg1: *mut ::std::os::raw::c_char,
arg2: ::std::os::raw::c_int,
arg3: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn valloc(arg1: size_t) -> *mut ::std::os::raw::c_void;
}
unsafe extern "C" {
pub fn memalign(
arg1: ::std::os::raw::c_ulong,
arg2: ::std::os::raw::c_ulong,
) -> *mut ::std::os::raw::c_void;
}
unsafe extern "C" {
pub fn getloadavg(arg1: *mut f64, arg2: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn clearenv() -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn reallocarray(
arg1: *mut ::std::os::raw::c_void,
arg2: size_t,
arg3: size_t,
) -> *mut ::std::os::raw::c_void;
}
unsafe extern "C" {
pub fn qsort_r(
arg1: *mut ::std::os::raw::c_void,
arg2: size_t,
arg3: size_t,
arg4: ::std::option::Option<
unsafe extern "C" fn(
arg1: *const ::std::os::raw::c_void,
arg2: *const ::std::os::raw::c_void,
arg3: *mut ::std::os::raw::c_void,
) -> ::std::os::raw::c_int,
>,
arg5: *mut ::std::os::raw::c_void,
);
}
unsafe extern "C" {
pub fn g_thread_error_quark() -> GQuark;
}
pub const GThreadError_G_THREAD_ERROR_AGAIN: GThreadError = 0;
pub type GThreadError = ::std::os::raw::c_uint;
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],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GMutex"][::std::mem::size_of::<_GMutex>() - 8usize];
["Alignment of _GMutex"][::std::mem::align_of::<_GMutex>() - 8usize];
["Offset of field: _GMutex::p"][::std::mem::offset_of!(_GMutex, p) - 0usize];
["Offset of field: _GMutex::i"][::std::mem::offset_of!(_GMutex, i) - 0usize];
};
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, PartialEq, Eq)]
pub struct _GRWLock {
pub p: gpointer,
pub i: [guint; 2usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GRWLock"][::std::mem::size_of::<_GRWLock>() - 16usize];
["Alignment of _GRWLock"][::std::mem::align_of::<_GRWLock>() - 8usize];
["Offset of field: _GRWLock::p"][::std::mem::offset_of!(_GRWLock, p) - 0usize];
["Offset of field: _GRWLock::i"][::std::mem::offset_of!(_GRWLock, i) - 8usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GCond {
pub p: gpointer,
pub i: [guint; 2usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GCond"][::std::mem::size_of::<_GCond>() - 16usize];
["Alignment of _GCond"][::std::mem::align_of::<_GCond>() - 8usize];
["Offset of field: _GCond::p"][::std::mem::offset_of!(_GCond, p) - 0usize];
["Offset of field: _GCond::i"][::std::mem::offset_of!(_GCond, i) - 8usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GRecMutex {
pub p: gpointer,
pub i: [guint; 2usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GRecMutex"][::std::mem::size_of::<_GRecMutex>() - 16usize];
["Alignment of _GRecMutex"][::std::mem::align_of::<_GRecMutex>() - 8usize];
["Offset of field: _GRecMutex::p"][::std::mem::offset_of!(_GRecMutex, p) - 0usize];
["Offset of field: _GRecMutex::i"][::std::mem::offset_of!(_GRecMutex, i) - 8usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GPrivate {
pub p: gpointer,
pub notify: GDestroyNotify,
pub future: [gpointer; 2usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GPrivate"][::std::mem::size_of::<_GPrivate>() - 32usize];
["Alignment of _GPrivate"][::std::mem::align_of::<_GPrivate>() - 8usize];
["Offset of field: _GPrivate::p"][::std::mem::offset_of!(_GPrivate, p) - 0usize];
["Offset of field: _GPrivate::notify"][::std::mem::offset_of!(_GPrivate, notify) - 8usize];
["Offset of field: _GPrivate::future"][::std::mem::offset_of!(_GPrivate, future) - 16usize];
};
pub const GOnceStatus_G_ONCE_STATUS_NOTCALLED: GOnceStatus = 0;
pub const GOnceStatus_G_ONCE_STATUS_PROGRESS: GOnceStatus = 1;
pub const GOnceStatus_G_ONCE_STATUS_READY: GOnceStatus = 2;
pub type GOnceStatus = ::std::os::raw::c_uint;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GOnce {
pub status: GOnceStatus,
pub retval: gpointer,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GOnce"][::std::mem::size_of::<_GOnce>() - 16usize];
["Alignment of _GOnce"][::std::mem::align_of::<_GOnce>() - 8usize];
["Offset of field: _GOnce::status"][::std::mem::offset_of!(_GOnce, status) - 0usize];
["Offset of field: _GOnce::retval"][::std::mem::offset_of!(_GOnce, retval) - 8usize];
};
unsafe extern "C" {
pub fn g_thread_ref(thread: *mut GThread) -> *mut GThread;
}
unsafe extern "C" {
pub fn g_thread_unref(thread: *mut GThread);
}
unsafe extern "C" {
pub fn g_thread_new(name: *const gchar, func: GThreadFunc, data: gpointer) -> *mut GThread;
}
unsafe extern "C" {
pub fn g_thread_try_new(
name: *const gchar,
func: GThreadFunc,
data: gpointer,
error: *mut *mut GError,
) -> *mut GThread;
}
unsafe extern "C" {
pub fn g_thread_self() -> *mut GThread;
}
unsafe extern "C" {
pub fn g_thread_exit(retval: gpointer) -> !;
}
unsafe extern "C" {
pub fn g_thread_join(thread: *mut GThread) -> gpointer;
}
unsafe extern "C" {
pub fn g_thread_yield();
}
unsafe extern "C" {
pub fn g_thread_get_name(thread: *mut GThread) -> *const ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn g_mutex_init(mutex: *mut GMutex);
}
unsafe extern "C" {
pub fn g_mutex_clear(mutex: *mut GMutex);
}
unsafe extern "C" {
pub fn g_mutex_lock(mutex: *mut GMutex);
}
unsafe extern "C" {
pub fn g_mutex_trylock(mutex: *mut GMutex) -> gboolean;
}
unsafe extern "C" {
pub fn g_mutex_unlock(mutex: *mut GMutex);
}
unsafe extern "C" {
pub fn g_rw_lock_init(rw_lock: *mut GRWLock);
}
unsafe extern "C" {
pub fn g_rw_lock_clear(rw_lock: *mut GRWLock);
}
unsafe extern "C" {
pub fn g_rw_lock_writer_lock(rw_lock: *mut GRWLock);
}
unsafe extern "C" {
pub fn g_rw_lock_writer_trylock(rw_lock: *mut GRWLock) -> gboolean;
}
unsafe extern "C" {
pub fn g_rw_lock_writer_unlock(rw_lock: *mut GRWLock);
}
unsafe extern "C" {
pub fn g_rw_lock_reader_lock(rw_lock: *mut GRWLock);
}
unsafe extern "C" {
pub fn g_rw_lock_reader_trylock(rw_lock: *mut GRWLock) -> gboolean;
}
unsafe extern "C" {
pub fn g_rw_lock_reader_unlock(rw_lock: *mut GRWLock);
}
unsafe extern "C" {
pub fn g_rec_mutex_init(rec_mutex: *mut GRecMutex);
}
unsafe extern "C" {
pub fn g_rec_mutex_clear(rec_mutex: *mut GRecMutex);
}
unsafe extern "C" {
pub fn g_rec_mutex_lock(rec_mutex: *mut GRecMutex);
}
unsafe extern "C" {
pub fn g_rec_mutex_trylock(rec_mutex: *mut GRecMutex) -> gboolean;
}
unsafe extern "C" {
pub fn g_rec_mutex_unlock(rec_mutex: *mut GRecMutex);
}
unsafe extern "C" {
pub fn g_cond_init(cond: *mut GCond);
}
unsafe extern "C" {
pub fn g_cond_clear(cond: *mut GCond);
}
unsafe extern "C" {
pub fn g_cond_wait(cond: *mut GCond, mutex: *mut GMutex);
}
unsafe extern "C" {
pub fn g_cond_signal(cond: *mut GCond);
}
unsafe extern "C" {
pub fn g_cond_broadcast(cond: *mut GCond);
}
unsafe extern "C" {
pub fn g_cond_wait_until(cond: *mut GCond, mutex: *mut GMutex, end_time: gint64) -> gboolean;
}
unsafe extern "C" {
pub fn g_private_get(key: *mut GPrivate) -> gpointer;
}
unsafe extern "C" {
pub fn g_private_set(key: *mut GPrivate, value: gpointer);
}
unsafe extern "C" {
pub fn g_private_replace(key: *mut GPrivate, value: gpointer);
}
unsafe extern "C" {
pub fn g_once_impl(once: *mut GOnce, func: GThreadFunc, arg: gpointer) -> gpointer;
}
unsafe extern "C" {
pub fn g_once_init_enter(location: *mut ::std::os::raw::c_void) -> gboolean;
}
unsafe extern "C" {
pub fn g_once_init_leave(location: *mut ::std::os::raw::c_void, result: gsize);
}
unsafe extern "C" {
pub fn g_once_init_enter_pointer(location: *mut ::std::os::raw::c_void) -> gboolean;
}
unsafe extern "C" {
pub fn g_once_init_leave_pointer(location: *mut ::std::os::raw::c_void, result: gpointer);
}
unsafe extern "C" {
pub fn g_get_num_processors() -> guint;
}
pub type GMutexLocker = ::std::os::raw::c_void;
pub type GRecMutexLocker = ::std::os::raw::c_void;
pub type GRWLockWriterLocker = ::std::os::raw::c_void;
pub type GRWLockReaderLocker = ::std::os::raw::c_void;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GAsyncQueue {
_unused: [u8; 0],
}
pub type GAsyncQueue = _GAsyncQueue;
unsafe extern "C" {
pub fn g_async_queue_new() -> *mut GAsyncQueue;
}
unsafe extern "C" {
pub fn g_async_queue_new_full(item_free_func: GDestroyNotify) -> *mut GAsyncQueue;
}
unsafe extern "C" {
pub fn g_async_queue_lock(queue: *mut GAsyncQueue);
}
unsafe extern "C" {
pub fn g_async_queue_unlock(queue: *mut GAsyncQueue);
}
unsafe extern "C" {
pub fn g_async_queue_ref(queue: *mut GAsyncQueue) -> *mut GAsyncQueue;
}
unsafe extern "C" {
pub fn g_async_queue_unref(queue: *mut GAsyncQueue);
}
unsafe extern "C" {
pub fn g_async_queue_ref_unlocked(queue: *mut GAsyncQueue);
}
unsafe extern "C" {
pub fn g_async_queue_unref_and_unlock(queue: *mut GAsyncQueue);
}
unsafe extern "C" {
pub fn g_async_queue_push(queue: *mut GAsyncQueue, data: gpointer);
}
unsafe extern "C" {
pub fn g_async_queue_push_unlocked(queue: *mut GAsyncQueue, data: gpointer);
}
unsafe extern "C" {
pub fn g_async_queue_push_sorted(
queue: *mut GAsyncQueue,
data: gpointer,
func: GCompareDataFunc,
user_data: gpointer,
);
}
unsafe extern "C" {
pub fn g_async_queue_push_sorted_unlocked(
queue: *mut GAsyncQueue,
data: gpointer,
func: GCompareDataFunc,
user_data: gpointer,
);
}
unsafe extern "C" {
pub fn g_async_queue_pop(queue: *mut GAsyncQueue) -> gpointer;
}
unsafe extern "C" {
pub fn g_async_queue_pop_unlocked(queue: *mut GAsyncQueue) -> gpointer;
}
unsafe extern "C" {
pub fn g_async_queue_try_pop(queue: *mut GAsyncQueue) -> gpointer;
}
unsafe extern "C" {
pub fn g_async_queue_try_pop_unlocked(queue: *mut GAsyncQueue) -> gpointer;
}
unsafe extern "C" {
pub fn g_async_queue_timeout_pop(queue: *mut GAsyncQueue, timeout: guint64) -> gpointer;
}
unsafe extern "C" {
pub fn g_async_queue_timeout_pop_unlocked(
queue: *mut GAsyncQueue,
timeout: guint64,
) -> gpointer;
}
unsafe extern "C" {
pub fn g_async_queue_length(queue: *mut GAsyncQueue) -> gint;
}
unsafe extern "C" {
pub fn g_async_queue_length_unlocked(queue: *mut GAsyncQueue) -> gint;
}
unsafe extern "C" {
pub fn g_async_queue_sort(queue: *mut GAsyncQueue, func: GCompareDataFunc, user_data: gpointer);
}
unsafe extern "C" {
pub fn g_async_queue_sort_unlocked(
queue: *mut GAsyncQueue,
func: GCompareDataFunc,
user_data: gpointer,
);
}
unsafe extern "C" {
pub fn g_async_queue_remove(queue: *mut GAsyncQueue, item: gpointer) -> gboolean;
}
unsafe extern "C" {
pub fn g_async_queue_remove_unlocked(queue: *mut GAsyncQueue, item: gpointer) -> gboolean;
}
unsafe extern "C" {
pub fn g_async_queue_push_front(queue: *mut GAsyncQueue, item: gpointer);
}
unsafe extern "C" {
pub fn g_async_queue_push_front_unlocked(queue: *mut GAsyncQueue, item: gpointer);
}
unsafe extern "C" {
pub fn g_async_queue_timed_pop(queue: *mut GAsyncQueue, end_time: *mut GTimeVal) -> gpointer;
}
unsafe extern "C" {
pub fn g_async_queue_timed_pop_unlocked(
queue: *mut GAsyncQueue,
end_time: *mut GTimeVal,
) -> gpointer;
}
pub type uid_t = ::std::os::raw::c_uint;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __pthread {
_unused: [u8; 0],
}
pub type pthread_t = *mut __pthread;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct __sigset_t {
pub __bits: [::std::os::raw::c_ulong; 16usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of __sigset_t"][::std::mem::size_of::<__sigset_t>() - 128usize];
["Alignment of __sigset_t"][::std::mem::align_of::<__sigset_t>() - 8usize];
["Offset of field: __sigset_t::__bits"][::std::mem::offset_of!(__sigset_t, __bits) - 0usize];
};
pub type sigset_t = __sigset_t;
#[repr(C)]
#[derive(Copy, Clone)]
pub struct pthread_attr_t {
pub __u: pthread_attr_t__bindgen_ty_1,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union pthread_attr_t__bindgen_ty_1 {
pub __i: [::std::os::raw::c_int; 14usize],
pub __vi: [::std::os::raw::c_int; 14usize],
pub __s: [::std::os::raw::c_ulong; 7usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of pthread_attr_t__bindgen_ty_1"]
[::std::mem::size_of::<pthread_attr_t__bindgen_ty_1>() - 56usize];
["Alignment of pthread_attr_t__bindgen_ty_1"]
[::std::mem::align_of::<pthread_attr_t__bindgen_ty_1>() - 8usize];
["Offset of field: pthread_attr_t__bindgen_ty_1::__i"]
[::std::mem::offset_of!(pthread_attr_t__bindgen_ty_1, __i) - 0usize];
["Offset of field: pthread_attr_t__bindgen_ty_1::__vi"]
[::std::mem::offset_of!(pthread_attr_t__bindgen_ty_1, __vi) - 0usize];
["Offset of field: pthread_attr_t__bindgen_ty_1::__s"]
[::std::mem::offset_of!(pthread_attr_t__bindgen_ty_1, __s) - 0usize];
};
impl ::std::fmt::Debug for pthread_attr_t__bindgen_ty_1 {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
write!(f, "pthread_attr_t__bindgen_ty_1 {{ union }}")
}
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of pthread_attr_t"][::std::mem::size_of::<pthread_attr_t>() - 56usize];
["Alignment of pthread_attr_t"][::std::mem::align_of::<pthread_attr_t>() - 8usize];
["Offset of field: pthread_attr_t::__u"][::std::mem::offset_of!(pthread_attr_t, __u) - 0usize];
};
impl ::std::fmt::Debug for pthread_attr_t {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
write!(f, "pthread_attr_t {{ __u: {:?} }}", self.__u)
}
}
pub type stack_t = sigaltstack;
pub type greg_t = ::std::os::raw::c_ulong;
pub type gregset_t = [::std::os::raw::c_ulong; 34usize];
#[repr(C)]
#[repr(align(16))]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct fpregset_t {
pub vregs: [__uint128_t; 32usize],
pub fpsr: ::std::os::raw::c_uint,
pub fpcr: ::std::os::raw::c_uint,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of fpregset_t"][::std::mem::size_of::<fpregset_t>() - 528usize];
["Alignment of fpregset_t"][::std::mem::align_of::<fpregset_t>() - 16usize];
["Offset of field: fpregset_t::vregs"][::std::mem::offset_of!(fpregset_t, vregs) - 0usize];
["Offset of field: fpregset_t::fpsr"][::std::mem::offset_of!(fpregset_t, fpsr) - 512usize];
["Offset of field: fpregset_t::fpcr"][::std::mem::offset_of!(fpregset_t, fpcr) - 516usize];
};
#[repr(C)]
#[repr(align(16))]
#[derive(Debug, Copy, Clone, PartialEq)]
pub struct sigcontext {
pub fault_address: ::std::os::raw::c_ulong,
pub regs: [::std::os::raw::c_ulong; 31usize],
pub sp: ::std::os::raw::c_ulong,
pub pc: ::std::os::raw::c_ulong,
pub pstate: ::std::os::raw::c_ulong,
pub __bindgen_padding_0: u64,
pub __reserved: [u128; 256usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of sigcontext"][::std::mem::size_of::<sigcontext>() - 4384usize];
["Alignment of sigcontext"][::std::mem::align_of::<sigcontext>() - 16usize];
["Offset of field: sigcontext::fault_address"]
[::std::mem::offset_of!(sigcontext, fault_address) - 0usize];
["Offset of field: sigcontext::regs"][::std::mem::offset_of!(sigcontext, regs) - 8usize];
["Offset of field: sigcontext::sp"][::std::mem::offset_of!(sigcontext, sp) - 256usize];
["Offset of field: sigcontext::pc"][::std::mem::offset_of!(sigcontext, pc) - 264usize];
["Offset of field: sigcontext::pstate"][::std::mem::offset_of!(sigcontext, pstate) - 272usize];
["Offset of field: sigcontext::__reserved"]
[::std::mem::offset_of!(sigcontext, __reserved) - 288usize];
};
pub type mcontext_t = sigcontext;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _aarch64_ctx {
pub magic: ::std::os::raw::c_uint,
pub size: ::std::os::raw::c_uint,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _aarch64_ctx"][::std::mem::size_of::<_aarch64_ctx>() - 8usize];
["Alignment of _aarch64_ctx"][::std::mem::align_of::<_aarch64_ctx>() - 4usize];
["Offset of field: _aarch64_ctx::magic"][::std::mem::offset_of!(_aarch64_ctx, magic) - 0usize];
["Offset of field: _aarch64_ctx::size"][::std::mem::offset_of!(_aarch64_ctx, size) - 4usize];
};
#[repr(C)]
#[repr(align(16))]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct fpsimd_context {
pub head: _aarch64_ctx,
pub fpsr: ::std::os::raw::c_uint,
pub fpcr: ::std::os::raw::c_uint,
pub vregs: [__uint128_t; 32usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of fpsimd_context"][::std::mem::size_of::<fpsimd_context>() - 528usize];
["Alignment of fpsimd_context"][::std::mem::align_of::<fpsimd_context>() - 16usize];
["Offset of field: fpsimd_context::head"]
[::std::mem::offset_of!(fpsimd_context, head) - 0usize];
["Offset of field: fpsimd_context::fpsr"]
[::std::mem::offset_of!(fpsimd_context, fpsr) - 8usize];
["Offset of field: fpsimd_context::fpcr"]
[::std::mem::offset_of!(fpsimd_context, fpcr) - 12usize];
["Offset of field: fpsimd_context::vregs"]
[::std::mem::offset_of!(fpsimd_context, vregs) - 16usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct esr_context {
pub head: _aarch64_ctx,
pub esr: ::std::os::raw::c_ulong,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of esr_context"][::std::mem::size_of::<esr_context>() - 16usize];
["Alignment of esr_context"][::std::mem::align_of::<esr_context>() - 8usize];
["Offset of field: esr_context::head"][::std::mem::offset_of!(esr_context, head) - 0usize];
["Offset of field: esr_context::esr"][::std::mem::offset_of!(esr_context, esr) - 8usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct extra_context {
pub head: _aarch64_ctx,
pub datap: ::std::os::raw::c_ulong,
pub size: ::std::os::raw::c_uint,
pub __reserved: [::std::os::raw::c_uint; 3usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of extra_context"][::std::mem::size_of::<extra_context>() - 32usize];
["Alignment of extra_context"][::std::mem::align_of::<extra_context>() - 8usize];
["Offset of field: extra_context::head"][::std::mem::offset_of!(extra_context, head) - 0usize];
["Offset of field: extra_context::datap"]
[::std::mem::offset_of!(extra_context, datap) - 8usize];
["Offset of field: extra_context::size"][::std::mem::offset_of!(extra_context, size) - 16usize];
["Offset of field: extra_context::__reserved"]
[::std::mem::offset_of!(extra_context, __reserved) - 20usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct sve_context {
pub head: _aarch64_ctx,
pub vl: ::std::os::raw::c_ushort,
pub __reserved: [::std::os::raw::c_ushort; 3usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of sve_context"][::std::mem::size_of::<sve_context>() - 16usize];
["Alignment of sve_context"][::std::mem::align_of::<sve_context>() - 4usize];
["Offset of field: sve_context::head"][::std::mem::offset_of!(sve_context, head) - 0usize];
["Offset of field: sve_context::vl"][::std::mem::offset_of!(sve_context, vl) - 8usize];
["Offset of field: sve_context::__reserved"]
[::std::mem::offset_of!(sve_context, __reserved) - 10usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct sigaltstack {
pub ss_sp: *mut ::std::os::raw::c_void,
pub ss_flags: ::std::os::raw::c_int,
pub ss_size: size_t,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of sigaltstack"][::std::mem::size_of::<sigaltstack>() - 24usize];
["Alignment of sigaltstack"][::std::mem::align_of::<sigaltstack>() - 8usize];
["Offset of field: sigaltstack::ss_sp"][::std::mem::offset_of!(sigaltstack, ss_sp) - 0usize];
["Offset of field: sigaltstack::ss_flags"]
[::std::mem::offset_of!(sigaltstack, ss_flags) - 8usize];
["Offset of field: sigaltstack::ss_size"]
[::std::mem::offset_of!(sigaltstack, ss_size) - 16usize];
};
#[repr(C)]
#[repr(align(16))]
#[derive(Debug, Copy, Clone, PartialEq)]
pub struct __ucontext {
pub uc_flags: ::std::os::raw::c_ulong,
pub uc_link: *mut __ucontext,
pub uc_stack: stack_t,
pub uc_sigmask: sigset_t,
pub __bindgen_padding_0: u64,
pub uc_mcontext: mcontext_t,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of __ucontext"][::std::mem::size_of::<__ucontext>() - 4560usize];
["Alignment of __ucontext"][::std::mem::align_of::<__ucontext>() - 16usize];
["Offset of field: __ucontext::uc_flags"]
[::std::mem::offset_of!(__ucontext, uc_flags) - 0usize];
["Offset of field: __ucontext::uc_link"][::std::mem::offset_of!(__ucontext, uc_link) - 8usize];
["Offset of field: __ucontext::uc_stack"]
[::std::mem::offset_of!(__ucontext, uc_stack) - 16usize];
["Offset of field: __ucontext::uc_sigmask"]
[::std::mem::offset_of!(__ucontext, uc_sigmask) - 40usize];
["Offset of field: __ucontext::uc_mcontext"]
[::std::mem::offset_of!(__ucontext, uc_mcontext) - 176usize];
};
pub type ucontext_t = __ucontext;
#[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,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of sigval"][::std::mem::size_of::<sigval>() - 8usize];
["Alignment of sigval"][::std::mem::align_of::<sigval>() - 8usize];
["Offset of field: sigval::sival_int"][::std::mem::offset_of!(sigval, sival_int) - 0usize];
["Offset of field: sigval::sival_ptr"][::std::mem::offset_of!(sigval, sival_ptr) - 0usize];
};
impl ::std::fmt::Debug for sigval {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
write!(f, "sigval {{ union }}")
}
}
#[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 __si_fields: siginfo_t__bindgen_ty_1,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union siginfo_t__bindgen_ty_1 {
pub __pad: [::std::os::raw::c_char; 112usize],
pub __si_common: siginfo_t__bindgen_ty_1__bindgen_ty_1,
pub __sigfault: siginfo_t__bindgen_ty_1__bindgen_ty_2,
pub __sigpoll: siginfo_t__bindgen_ty_1__bindgen_ty_3,
pub __sigsys: siginfo_t__bindgen_ty_1__bindgen_ty_4,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct siginfo_t__bindgen_ty_1__bindgen_ty_1 {
pub __first: siginfo_t__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1,
pub __second: siginfo_t__bindgen_ty_1__bindgen_ty_1__bindgen_ty_2,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union siginfo_t__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 {
pub __piduid: siginfo_t__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1,
pub __timer: siginfo_t__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_2,
}
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct siginfo_t__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 {
pub si_pid: pid_t,
pub si_uid: uid_t,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of siginfo_t__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1"]
[::std::mem::size_of::<siginfo_t__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1>(
) - 8usize];
["Alignment of siginfo_t__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1"]
[::std::mem::align_of::<siginfo_t__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1>(
) - 4usize];
["Offset of field: siginfo_t__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1::si_pid"]
[::std::mem::offset_of!(
siginfo_t__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1,
si_pid
) - 0usize];
["Offset of field: siginfo_t__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1::si_uid"]
[::std::mem::offset_of!(
siginfo_t__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1,
si_uid
) - 4usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct siginfo_t__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_2 {
pub si_timerid: ::std::os::raw::c_int,
pub si_overrun: ::std::os::raw::c_int,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of siginfo_t__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_2"]
[::std::mem::size_of::<siginfo_t__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_2>(
) - 8usize];
["Alignment of siginfo_t__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_2"]
[::std::mem::align_of::<siginfo_t__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_2>(
) - 4usize];
[
"Offset of field: siginfo_t__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_2::si_timerid",
][::std::mem::offset_of!(
siginfo_t__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_2,
si_timerid
) - 0usize];
[
"Offset of field: siginfo_t__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_2::si_overrun",
][::std::mem::offset_of!(
siginfo_t__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_2,
si_overrun
) - 4usize];
};
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of siginfo_t__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1"]
[::std::mem::size_of::<siginfo_t__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1>() - 8usize];
["Alignment of siginfo_t__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1"]
[::std::mem::align_of::<siginfo_t__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1>() - 4usize];
["Offset of field: siginfo_t__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1::__piduid"][::std::mem::offset_of!(
siginfo_t__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1,
__piduid
) - 0usize];
["Offset of field: siginfo_t__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1::__timer"][::std::mem::offset_of!(
siginfo_t__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1,
__timer
) - 0usize];
};
impl ::std::fmt::Debug for siginfo_t__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
write!(
f,
"siginfo_t__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 {{ union }}"
)
}
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union siginfo_t__bindgen_ty_1__bindgen_ty_1__bindgen_ty_2 {
pub si_value: sigval,
pub __sigchld: siginfo_t__bindgen_ty_1__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1,
}
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct siginfo_t__bindgen_ty_1__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1 {
pub si_status: ::std::os::raw::c_int,
pub si_utime: clock_t,
pub si_stime: clock_t,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of siginfo_t__bindgen_ty_1__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1"]
[::std::mem::size_of::<siginfo_t__bindgen_ty_1__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1>(
) - 24usize];
["Alignment of siginfo_t__bindgen_ty_1__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1"]
[::std::mem::align_of::<siginfo_t__bindgen_ty_1__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1>(
) - 8usize];
[
"Offset of field: siginfo_t__bindgen_ty_1__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1::si_status",
][::std::mem::offset_of!(
siginfo_t__bindgen_ty_1__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1,
si_status
) - 0usize];
[
"Offset of field: siginfo_t__bindgen_ty_1__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1::si_utime",
][::std::mem::offset_of!(
siginfo_t__bindgen_ty_1__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1,
si_utime
) - 8usize];
[
"Offset of field: siginfo_t__bindgen_ty_1__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1::si_stime",
][::std::mem::offset_of!(
siginfo_t__bindgen_ty_1__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1,
si_stime
) - 16usize];
};
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of siginfo_t__bindgen_ty_1__bindgen_ty_1__bindgen_ty_2"]
[::std::mem::size_of::<siginfo_t__bindgen_ty_1__bindgen_ty_1__bindgen_ty_2>() - 24usize];
["Alignment of siginfo_t__bindgen_ty_1__bindgen_ty_1__bindgen_ty_2"]
[::std::mem::align_of::<siginfo_t__bindgen_ty_1__bindgen_ty_1__bindgen_ty_2>() - 8usize];
["Offset of field: siginfo_t__bindgen_ty_1__bindgen_ty_1__bindgen_ty_2::si_value"][::std::mem::offset_of!(
siginfo_t__bindgen_ty_1__bindgen_ty_1__bindgen_ty_2,
si_value
) - 0usize];
["Offset of field: siginfo_t__bindgen_ty_1__bindgen_ty_1__bindgen_ty_2::__sigchld"][::std::mem::offset_of!(
siginfo_t__bindgen_ty_1__bindgen_ty_1__bindgen_ty_2,
__sigchld
) - 0usize];
};
impl ::std::fmt::Debug for siginfo_t__bindgen_ty_1__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_1__bindgen_ty_2 {{ union }}"
)
}
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of siginfo_t__bindgen_ty_1__bindgen_ty_1"]
[::std::mem::size_of::<siginfo_t__bindgen_ty_1__bindgen_ty_1>() - 32usize];
["Alignment of siginfo_t__bindgen_ty_1__bindgen_ty_1"]
[::std::mem::align_of::<siginfo_t__bindgen_ty_1__bindgen_ty_1>() - 8usize];
["Offset of field: siginfo_t__bindgen_ty_1__bindgen_ty_1::__first"]
[::std::mem::offset_of!(siginfo_t__bindgen_ty_1__bindgen_ty_1, __first) - 0usize];
["Offset of field: siginfo_t__bindgen_ty_1__bindgen_ty_1::__second"]
[::std::mem::offset_of!(siginfo_t__bindgen_ty_1__bindgen_ty_1, __second) - 8usize];
};
impl ::std::fmt::Debug for siginfo_t__bindgen_ty_1__bindgen_ty_1 {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
write!(
f,
"siginfo_t__bindgen_ty_1__bindgen_ty_1 {{ __first: {:?}, __second: {:?} }}",
self.__first, self.__second
)
}
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct siginfo_t__bindgen_ty_1__bindgen_ty_2 {
pub si_addr: *mut ::std::os::raw::c_void,
pub si_addr_lsb: ::std::os::raw::c_short,
pub __first: siginfo_t__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union siginfo_t__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1 {
pub __addr_bnd: siginfo_t__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1__bindgen_ty_1,
pub si_pkey: ::std::os::raw::c_uint,
}
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct siginfo_t__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1__bindgen_ty_1 {
pub si_lower: *mut ::std::os::raw::c_void,
pub si_upper: *mut ::std::os::raw::c_void,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of siginfo_t__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1__bindgen_ty_1"]
[::std::mem::size_of::<siginfo_t__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1__bindgen_ty_1>(
) - 16usize];
["Alignment of siginfo_t__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1__bindgen_ty_1"]
[::std::mem::align_of::<siginfo_t__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1__bindgen_ty_1>(
) - 8usize];
[
"Offset of field: siginfo_t__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1__bindgen_ty_1::si_lower",
][::std::mem::offset_of!(
siginfo_t__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1__bindgen_ty_1,
si_lower
) - 0usize];
[
"Offset of field: siginfo_t__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1__bindgen_ty_1::si_upper",
][::std::mem::offset_of!(
siginfo_t__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1__bindgen_ty_1,
si_upper
) - 8usize];
};
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of siginfo_t__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1"]
[::std::mem::size_of::<siginfo_t__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1>() - 16usize];
["Alignment of siginfo_t__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1"]
[::std::mem::align_of::<siginfo_t__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1>() - 8usize];
["Offset of field: siginfo_t__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1::__addr_bnd"][::std::mem::offset_of!(
siginfo_t__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1,
__addr_bnd
)
- 0usize];
["Offset of field: siginfo_t__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1::si_pkey"][::std::mem::offset_of!(
siginfo_t__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1,
si_pkey
) - 0usize];
};
impl ::std::fmt::Debug for siginfo_t__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1 {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
write!(
f,
"siginfo_t__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1 {{ union }}"
)
}
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of siginfo_t__bindgen_ty_1__bindgen_ty_2"]
[::std::mem::size_of::<siginfo_t__bindgen_ty_1__bindgen_ty_2>() - 32usize];
["Alignment of siginfo_t__bindgen_ty_1__bindgen_ty_2"]
[::std::mem::align_of::<siginfo_t__bindgen_ty_1__bindgen_ty_2>() - 8usize];
["Offset of field: siginfo_t__bindgen_ty_1__bindgen_ty_2::si_addr"]
[::std::mem::offset_of!(siginfo_t__bindgen_ty_1__bindgen_ty_2, si_addr) - 0usize];
["Offset of field: siginfo_t__bindgen_ty_1__bindgen_ty_2::si_addr_lsb"]
[::std::mem::offset_of!(siginfo_t__bindgen_ty_1__bindgen_ty_2, si_addr_lsb) - 8usize];
["Offset of field: siginfo_t__bindgen_ty_1__bindgen_ty_2::__first"]
[::std::mem::offset_of!(siginfo_t__bindgen_ty_1__bindgen_ty_2, __first) - 16usize];
};
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_addr: {:?}, si_addr_lsb: {:?}, __first: {:?} }}",
self.si_addr, self.si_addr_lsb, self.__first
)
}
}
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct siginfo_t__bindgen_ty_1__bindgen_ty_3 {
pub si_band: ::std::os::raw::c_long,
pub si_fd: ::std::os::raw::c_int,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of siginfo_t__bindgen_ty_1__bindgen_ty_3"]
[::std::mem::size_of::<siginfo_t__bindgen_ty_1__bindgen_ty_3>() - 16usize];
["Alignment of siginfo_t__bindgen_ty_1__bindgen_ty_3"]
[::std::mem::align_of::<siginfo_t__bindgen_ty_1__bindgen_ty_3>() - 8usize];
["Offset of field: siginfo_t__bindgen_ty_1__bindgen_ty_3::si_band"]
[::std::mem::offset_of!(siginfo_t__bindgen_ty_1__bindgen_ty_3, si_band) - 0usize];
["Offset of field: siginfo_t__bindgen_ty_1__bindgen_ty_3::si_fd"]
[::std::mem::offset_of!(siginfo_t__bindgen_ty_1__bindgen_ty_3, si_fd) - 8usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct siginfo_t__bindgen_ty_1__bindgen_ty_4 {
pub si_call_addr: *mut ::std::os::raw::c_void,
pub si_syscall: ::std::os::raw::c_int,
pub si_arch: ::std::os::raw::c_uint,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of siginfo_t__bindgen_ty_1__bindgen_ty_4"]
[::std::mem::size_of::<siginfo_t__bindgen_ty_1__bindgen_ty_4>() - 16usize];
["Alignment of siginfo_t__bindgen_ty_1__bindgen_ty_4"]
[::std::mem::align_of::<siginfo_t__bindgen_ty_1__bindgen_ty_4>() - 8usize];
["Offset of field: siginfo_t__bindgen_ty_1__bindgen_ty_4::si_call_addr"]
[::std::mem::offset_of!(siginfo_t__bindgen_ty_1__bindgen_ty_4, si_call_addr) - 0usize];
["Offset of field: siginfo_t__bindgen_ty_1__bindgen_ty_4::si_syscall"]
[::std::mem::offset_of!(siginfo_t__bindgen_ty_1__bindgen_ty_4, si_syscall) - 8usize];
["Offset of field: siginfo_t__bindgen_ty_1__bindgen_ty_4::si_arch"]
[::std::mem::offset_of!(siginfo_t__bindgen_ty_1__bindgen_ty_4, si_arch) - 12usize];
};
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of siginfo_t__bindgen_ty_1"]
[::std::mem::size_of::<siginfo_t__bindgen_ty_1>() - 112usize];
["Alignment of siginfo_t__bindgen_ty_1"]
[::std::mem::align_of::<siginfo_t__bindgen_ty_1>() - 8usize];
["Offset of field: siginfo_t__bindgen_ty_1::__pad"]
[::std::mem::offset_of!(siginfo_t__bindgen_ty_1, __pad) - 0usize];
["Offset of field: siginfo_t__bindgen_ty_1::__si_common"]
[::std::mem::offset_of!(siginfo_t__bindgen_ty_1, __si_common) - 0usize];
["Offset of field: siginfo_t__bindgen_ty_1::__sigfault"]
[::std::mem::offset_of!(siginfo_t__bindgen_ty_1, __sigfault) - 0usize];
["Offset of field: siginfo_t__bindgen_ty_1::__sigpoll"]
[::std::mem::offset_of!(siginfo_t__bindgen_ty_1, __sigpoll) - 0usize];
["Offset of field: siginfo_t__bindgen_ty_1::__sigsys"]
[::std::mem::offset_of!(siginfo_t__bindgen_ty_1, __sigsys) - 0usize];
};
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 }}")
}
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of siginfo_t"][::std::mem::size_of::<siginfo_t>() - 128usize];
["Alignment of siginfo_t"][::std::mem::align_of::<siginfo_t>() - 8usize];
["Offset of field: siginfo_t::si_signo"][::std::mem::offset_of!(siginfo_t, si_signo) - 0usize];
["Offset of field: siginfo_t::si_errno"][::std::mem::offset_of!(siginfo_t, si_errno) - 4usize];
["Offset of field: siginfo_t::si_code"][::std::mem::offset_of!(siginfo_t, si_code) - 8usize];
["Offset of field: siginfo_t::__si_fields"]
[::std::mem::offset_of!(siginfo_t, __si_fields) - 16usize];
};
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: {:?}, __si_fields: {:?} }}",
self.si_signo, self.si_errno, self.si_code, self.__si_fields
)
}
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct sigaction {
pub __sa_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: ::std::option::Option<unsafe extern "C" fn(arg1: ::std::os::raw::c_int)>,
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,
),
>,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of sigaction__bindgen_ty_1"][::std::mem::size_of::<sigaction__bindgen_ty_1>() - 8usize];
["Alignment of sigaction__bindgen_ty_1"]
[::std::mem::align_of::<sigaction__bindgen_ty_1>() - 8usize];
["Offset of field: sigaction__bindgen_ty_1::sa_handler"]
[::std::mem::offset_of!(sigaction__bindgen_ty_1, sa_handler) - 0usize];
["Offset of field: sigaction__bindgen_ty_1::sa_sigaction"]
[::std::mem::offset_of!(sigaction__bindgen_ty_1, sa_sigaction) - 0usize];
};
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 }}")
}
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of sigaction"][::std::mem::size_of::<sigaction>() - 152usize];
["Alignment of sigaction"][::std::mem::align_of::<sigaction>() - 8usize];
["Offset of field: sigaction::__sa_handler"]
[::std::mem::offset_of!(sigaction, __sa_handler) - 0usize];
["Offset of field: sigaction::sa_mask"][::std::mem::offset_of!(sigaction, sa_mask) - 8usize];
["Offset of field: sigaction::sa_flags"]
[::std::mem::offset_of!(sigaction, sa_flags) - 136usize];
["Offset of field: sigaction::sa_restorer"]
[::std::mem::offset_of!(sigaction, sa_restorer) - 144usize];
};
impl ::std::fmt::Debug for sigaction {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
write!(
f,
"sigaction {{ __sa_handler: {:?}, sa_mask: {:?}, sa_flags: {:?}, sa_restorer: {:?} }}",
self.__sa_handler, self.sa_mask, self.sa_flags, self.sa_restorer
)
}
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct sigevent {
pub sigev_value: sigval,
pub sigev_signo: ::std::os::raw::c_int,
pub sigev_notify: ::std::os::raw::c_int,
pub __sev_fields: sigevent__bindgen_ty_1,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union sigevent__bindgen_ty_1 {
pub __pad: [::std::os::raw::c_char; 48usize],
pub sigev_notify_thread_id: pid_t,
pub __sev_thread: sigevent__bindgen_ty_1__bindgen_ty_1,
}
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct sigevent__bindgen_ty_1__bindgen_ty_1 {
pub sigev_notify_function: ::std::option::Option<unsafe extern "C" fn(arg1: sigval)>,
pub sigev_notify_attributes: *mut pthread_attr_t,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of sigevent__bindgen_ty_1__bindgen_ty_1"]
[::std::mem::size_of::<sigevent__bindgen_ty_1__bindgen_ty_1>() - 16usize];
["Alignment of sigevent__bindgen_ty_1__bindgen_ty_1"]
[::std::mem::align_of::<sigevent__bindgen_ty_1__bindgen_ty_1>() - 8usize];
["Offset of field: sigevent__bindgen_ty_1__bindgen_ty_1::sigev_notify_function"][::std::mem::offset_of!(
sigevent__bindgen_ty_1__bindgen_ty_1,
sigev_notify_function
) - 0usize];
["Offset of field: sigevent__bindgen_ty_1__bindgen_ty_1::sigev_notify_attributes"][::std::mem::offset_of!(
sigevent__bindgen_ty_1__bindgen_ty_1,
sigev_notify_attributes
) - 8usize];
};
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of sigevent__bindgen_ty_1"][::std::mem::size_of::<sigevent__bindgen_ty_1>() - 48usize];
["Alignment of sigevent__bindgen_ty_1"]
[::std::mem::align_of::<sigevent__bindgen_ty_1>() - 8usize];
["Offset of field: sigevent__bindgen_ty_1::__pad"]
[::std::mem::offset_of!(sigevent__bindgen_ty_1, __pad) - 0usize];
["Offset of field: sigevent__bindgen_ty_1::sigev_notify_thread_id"]
[::std::mem::offset_of!(sigevent__bindgen_ty_1, sigev_notify_thread_id) - 0usize];
["Offset of field: sigevent__bindgen_ty_1::__sev_thread"]
[::std::mem::offset_of!(sigevent__bindgen_ty_1, __sev_thread) - 0usize];
};
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 }}")
}
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of sigevent"][::std::mem::size_of::<sigevent>() - 64usize];
["Alignment of sigevent"][::std::mem::align_of::<sigevent>() - 8usize];
["Offset of field: sigevent::sigev_value"]
[::std::mem::offset_of!(sigevent, sigev_value) - 0usize];
["Offset of field: sigevent::sigev_signo"]
[::std::mem::offset_of!(sigevent, sigev_signo) - 8usize];
["Offset of field: sigevent::sigev_notify"]
[::std::mem::offset_of!(sigevent, sigev_notify) - 12usize];
["Offset of field: sigevent::__sev_fields"]
[::std::mem::offset_of!(sigevent, __sev_fields) - 16usize];
};
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: {:?}, __sev_fields: {:?} }}",
self.sigev_value, self.sigev_signo, self.sigev_notify, self.__sev_fields
)
}
}
unsafe extern "C" {
pub fn __libc_current_sigrtmin() -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn __libc_current_sigrtmax() -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn kill(arg1: pid_t, arg2: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn sigemptyset(arg1: *mut sigset_t) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn sigfillset(arg1: *mut sigset_t) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn sigaddset(arg1: *mut sigset_t, arg2: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn sigdelset(arg1: *mut sigset_t, arg2: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn sigismember(arg1: *const sigset_t, arg2: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn sigprocmask(
arg1: ::std::os::raw::c_int,
arg2: *const sigset_t,
arg3: *mut sigset_t,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn sigsuspend(arg1: *const sigset_t) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn sigaction(
arg1: ::std::os::raw::c_int,
arg2: *const sigaction,
arg3: *mut sigaction,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn sigpending(arg1: *mut sigset_t) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn sigwait(
arg1: *const sigset_t,
arg2: *mut ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn sigwaitinfo(arg1: *const sigset_t, arg2: *mut siginfo_t) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn sigtimedwait(
arg1: *const sigset_t,
arg2: *mut siginfo_t,
arg3: *const timespec,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn sigqueue(
arg1: pid_t,
arg2: ::std::os::raw::c_int,
arg3: sigval,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn pthread_sigmask(
arg1: ::std::os::raw::c_int,
arg2: *const sigset_t,
arg3: *mut sigset_t,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn pthread_kill(arg1: pthread_t, arg2: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn psiginfo(arg1: *const siginfo_t, arg2: *const ::std::os::raw::c_char);
}
unsafe extern "C" {
pub fn psignal(arg1: ::std::os::raw::c_int, arg2: *const ::std::os::raw::c_char);
}
unsafe extern "C" {
pub fn killpg(arg1: pid_t, arg2: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn sigaltstack(arg1: *const stack_t, arg2: *mut stack_t) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn sighold(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn sigignore(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn siginterrupt(
arg1: ::std::os::raw::c_int,
arg2: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn sigpause(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn sigrelse(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn sigset(
arg1: ::std::os::raw::c_int,
arg2: ::std::option::Option<unsafe extern "C" fn(arg1: ::std::os::raw::c_int)>,
) -> ::std::option::Option<
unsafe extern "C" fn(
arg1: ::std::os::raw::c_int,
arg2: ::std::option::Option<unsafe extern "C" fn(arg1: ::std::os::raw::c_int)>,
),
>;
}
pub type sig_t = ::std::option::Option<unsafe extern "C" fn(arg1: ::std::os::raw::c_int)>;
pub type sig_atomic_t = ::std::os::raw::c_int;
unsafe extern "C" {
pub fn signal(
arg1: ::std::os::raw::c_int,
arg2: ::std::option::Option<unsafe extern "C" fn(arg1: ::std::os::raw::c_int)>,
) -> ::std::option::Option<
unsafe extern "C" fn(
arg1: ::std::os::raw::c_int,
arg2: ::std::option::Option<unsafe extern "C" fn(arg1: ::std::os::raw::c_int)>,
),
>;
}
unsafe extern "C" {
pub fn raise(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn g_on_error_query(prg_name: *const gchar);
}
unsafe extern "C" {
pub fn g_on_error_stack_trace(prg_name: *const gchar);
}
unsafe 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;
}
unsafe extern "C" {
pub fn g_base64_encode_close(
break_lines: gboolean,
out: *mut gchar,
state: *mut gint,
save: *mut gint,
) -> gsize;
}
unsafe extern "C" {
pub fn g_base64_encode(data: *const guchar, len: gsize) -> *mut gchar;
}
unsafe extern "C" {
pub fn g_base64_decode_step(
in_: *const gchar,
len: gsize,
out: *mut guchar,
state: *mut gint,
save: *mut guint,
) -> gsize;
}
unsafe extern "C" {
pub fn g_base64_decode(text: *const gchar, out_len: *mut gsize) -> *mut guchar;
}
unsafe extern "C" {
pub fn g_base64_decode_inplace(text: *mut gchar, out_len: *mut gsize) -> *mut guchar;
}
unsafe extern "C" {
pub fn g_bit_lock(address: *mut gint, lock_bit: gint);
}
unsafe extern "C" {
pub fn g_bit_lock_and_get(address: *mut gint, lock_bit: guint, out_val: *mut gint);
}
unsafe extern "C" {
pub fn g_bit_trylock(address: *mut gint, lock_bit: gint) -> gboolean;
}
unsafe extern "C" {
pub fn g_bit_unlock(address: *mut gint, lock_bit: gint);
}
unsafe extern "C" {
pub fn g_bit_unlock_and_set(
address: *mut gint,
lock_bit: guint,
new_val: gint,
preserve_mask: gint,
);
}
unsafe extern "C" {
pub fn g_pointer_bit_lock(address: *mut ::std::os::raw::c_void, lock_bit: gint);
}
unsafe extern "C" {
pub fn g_pointer_bit_lock_and_get(address: gpointer, lock_bit: guint, out_ptr: *mut guintptr);
}
unsafe extern "C" {
pub fn g_pointer_bit_trylock(address: *mut ::std::os::raw::c_void, lock_bit: gint) -> gboolean;
}
unsafe extern "C" {
pub fn g_pointer_bit_unlock(address: *mut ::std::os::raw::c_void, lock_bit: gint);
}
unsafe extern "C" {
pub fn g_pointer_bit_lock_mask_ptr(
ptr: gpointer,
lock_bit: guint,
set: gboolean,
preserve_mask: guintptr,
preserve_ptr: gpointer,
) -> gpointer;
}
unsafe extern "C" {
pub fn g_pointer_bit_unlock_and_set(
address: *mut ::std::os::raw::c_void,
lock_bit: guint,
ptr: gpointer,
preserve_mask: guintptr,
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GTimeZone {
_unused: [u8; 0],
}
pub type GTimeZone = _GTimeZone;
pub const GTimeType_G_TIME_TYPE_STANDARD: GTimeType = 0;
pub const GTimeType_G_TIME_TYPE_DAYLIGHT: GTimeType = 1;
pub const GTimeType_G_TIME_TYPE_UNIVERSAL: GTimeType = 2;
pub type GTimeType = ::std::os::raw::c_uint;
unsafe extern "C" {
pub fn g_time_zone_new(identifier: *const gchar) -> *mut GTimeZone;
}
unsafe extern "C" {
pub fn g_time_zone_new_identifier(identifier: *const gchar) -> *mut GTimeZone;
}
unsafe extern "C" {
pub fn g_time_zone_new_utc() -> *mut GTimeZone;
}
unsafe extern "C" {
pub fn g_time_zone_new_local() -> *mut GTimeZone;
}
unsafe extern "C" {
pub fn g_time_zone_new_offset(seconds: gint32) -> *mut GTimeZone;
}
unsafe extern "C" {
pub fn g_time_zone_ref(tz: *mut GTimeZone) -> *mut GTimeZone;
}
unsafe extern "C" {
pub fn g_time_zone_unref(tz: *mut GTimeZone);
}
unsafe extern "C" {
pub fn g_time_zone_find_interval(tz: *mut GTimeZone, type_: GTimeType, time_: gint64) -> gint;
}
unsafe extern "C" {
pub fn g_time_zone_adjust_time(
tz: *mut GTimeZone,
type_: GTimeType,
time_: *mut gint64,
) -> gint;
}
unsafe extern "C" {
pub fn g_time_zone_get_abbreviation(tz: *mut GTimeZone, interval: gint) -> *const gchar;
}
unsafe extern "C" {
pub fn g_time_zone_get_offset(tz: *mut GTimeZone, interval: gint) -> gint32;
}
unsafe extern "C" {
pub fn g_time_zone_is_dst(tz: *mut GTimeZone, interval: gint) -> gboolean;
}
unsafe extern "C" {
pub fn g_time_zone_get_identifier(tz: *mut GTimeZone) -> *const gchar;
}
pub type GTimeSpan = gint64;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GDateTime {
_unused: [u8; 0],
}
pub type GDateTime = _GDateTime;
unsafe extern "C" {
pub fn g_date_time_unref(datetime: *mut GDateTime);
}
unsafe extern "C" {
pub fn g_date_time_ref(datetime: *mut GDateTime) -> *mut GDateTime;
}
unsafe extern "C" {
pub fn g_date_time_new_now(tz: *mut GTimeZone) -> *mut GDateTime;
}
unsafe extern "C" {
pub fn g_date_time_new_now_local() -> *mut GDateTime;
}
unsafe extern "C" {
pub fn g_date_time_new_now_utc() -> *mut GDateTime;
}
unsafe extern "C" {
pub fn g_date_time_new_from_unix_local(t: gint64) -> *mut GDateTime;
}
unsafe extern "C" {
pub fn g_date_time_new_from_unix_utc(t: gint64) -> *mut GDateTime;
}
unsafe extern "C" {
pub fn g_date_time_new_from_unix_local_usec(usecs: gint64) -> *mut GDateTime;
}
unsafe extern "C" {
pub fn g_date_time_new_from_unix_utc_usec(usecs: gint64) -> *mut GDateTime;
}
unsafe extern "C" {
pub fn g_date_time_new_from_timeval_local(tv: *const GTimeVal) -> *mut GDateTime;
}
unsafe extern "C" {
pub fn g_date_time_new_from_timeval_utc(tv: *const GTimeVal) -> *mut GDateTime;
}
unsafe extern "C" {
pub fn g_date_time_new_from_iso8601(
text: *const gchar,
default_tz: *mut GTimeZone,
) -> *mut GDateTime;
}
unsafe 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;
}
unsafe extern "C" {
pub fn g_date_time_new_local(
year: gint,
month: gint,
day: gint,
hour: gint,
minute: gint,
seconds: gdouble,
) -> *mut GDateTime;
}
unsafe extern "C" {
pub fn g_date_time_new_utc(
year: gint,
month: gint,
day: gint,
hour: gint,
minute: gint,
seconds: gdouble,
) -> *mut GDateTime;
}
unsafe extern "C" {
pub fn g_date_time_add(datetime: *mut GDateTime, timespan: GTimeSpan) -> *mut GDateTime;
}
unsafe extern "C" {
pub fn g_date_time_add_years(datetime: *mut GDateTime, years: gint) -> *mut GDateTime;
}
unsafe extern "C" {
pub fn g_date_time_add_months(datetime: *mut GDateTime, months: gint) -> *mut GDateTime;
}
unsafe extern "C" {
pub fn g_date_time_add_weeks(datetime: *mut GDateTime, weeks: gint) -> *mut GDateTime;
}
unsafe extern "C" {
pub fn g_date_time_add_days(datetime: *mut GDateTime, days: gint) -> *mut GDateTime;
}
unsafe extern "C" {
pub fn g_date_time_add_hours(datetime: *mut GDateTime, hours: gint) -> *mut GDateTime;
}
unsafe extern "C" {
pub fn g_date_time_add_minutes(datetime: *mut GDateTime, minutes: gint) -> *mut GDateTime;
}
unsafe extern "C" {
pub fn g_date_time_add_seconds(datetime: *mut GDateTime, seconds: gdouble) -> *mut GDateTime;
}
unsafe 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;
}
unsafe extern "C" {
pub fn g_date_time_compare(dt1: gconstpointer, dt2: gconstpointer) -> gint;
}
unsafe extern "C" {
pub fn g_date_time_difference(end: *mut GDateTime, begin: *mut GDateTime) -> GTimeSpan;
}
unsafe extern "C" {
pub fn g_date_time_hash(datetime: gconstpointer) -> guint;
}
unsafe extern "C" {
pub fn g_date_time_equal(dt1: gconstpointer, dt2: gconstpointer) -> gboolean;
}
unsafe extern "C" {
pub fn g_date_time_get_ymd(
datetime: *mut GDateTime,
year: *mut gint,
month: *mut gint,
day: *mut gint,
);
}
unsafe extern "C" {
pub fn g_date_time_get_year(datetime: *mut GDateTime) -> gint;
}
unsafe extern "C" {
pub fn g_date_time_get_month(datetime: *mut GDateTime) -> gint;
}
unsafe extern "C" {
pub fn g_date_time_get_day_of_month(datetime: *mut GDateTime) -> gint;
}
unsafe extern "C" {
pub fn g_date_time_get_week_numbering_year(datetime: *mut GDateTime) -> gint;
}
unsafe extern "C" {
pub fn g_date_time_get_week_of_year(datetime: *mut GDateTime) -> gint;
}
unsafe extern "C" {
pub fn g_date_time_get_day_of_week(datetime: *mut GDateTime) -> gint;
}
unsafe extern "C" {
pub fn g_date_time_get_day_of_year(datetime: *mut GDateTime) -> gint;
}
unsafe extern "C" {
pub fn g_date_time_get_hour(datetime: *mut GDateTime) -> gint;
}
unsafe extern "C" {
pub fn g_date_time_get_minute(datetime: *mut GDateTime) -> gint;
}
unsafe extern "C" {
pub fn g_date_time_get_second(datetime: *mut GDateTime) -> gint;
}
unsafe extern "C" {
pub fn g_date_time_get_microsecond(datetime: *mut GDateTime) -> gint;
}
unsafe extern "C" {
pub fn g_date_time_get_seconds(datetime: *mut GDateTime) -> gdouble;
}
unsafe extern "C" {
pub fn g_date_time_to_unix(datetime: *mut GDateTime) -> gint64;
}
unsafe extern "C" {
pub fn g_date_time_to_unix_usec(datetime: *mut GDateTime) -> gint64;
}
unsafe extern "C" {
pub fn g_date_time_to_timeval(datetime: *mut GDateTime, tv: *mut GTimeVal) -> gboolean;
}
unsafe extern "C" {
pub fn g_date_time_get_utc_offset(datetime: *mut GDateTime) -> GTimeSpan;
}
unsafe extern "C" {
pub fn g_date_time_get_timezone(datetime: *mut GDateTime) -> *mut GTimeZone;
}
unsafe extern "C" {
pub fn g_date_time_get_timezone_abbreviation(datetime: *mut GDateTime) -> *const gchar;
}
unsafe extern "C" {
pub fn g_date_time_is_daylight_savings(datetime: *mut GDateTime) -> gboolean;
}
unsafe extern "C" {
pub fn g_date_time_to_timezone(datetime: *mut GDateTime, tz: *mut GTimeZone) -> *mut GDateTime;
}
unsafe extern "C" {
pub fn g_date_time_to_local(datetime: *mut GDateTime) -> *mut GDateTime;
}
unsafe extern "C" {
pub fn g_date_time_to_utc(datetime: *mut GDateTime) -> *mut GDateTime;
}
unsafe extern "C" {
pub fn g_date_time_format(datetime: *mut GDateTime, format: *const gchar) -> *mut gchar;
}
unsafe extern "C" {
pub fn g_date_time_format_iso8601(datetime: *mut GDateTime) -> *mut gchar;
}
pub const GBookmarkFileError_G_BOOKMARK_FILE_ERROR_INVALID_URI: GBookmarkFileError = 0;
pub const GBookmarkFileError_G_BOOKMARK_FILE_ERROR_INVALID_VALUE: GBookmarkFileError = 1;
pub const GBookmarkFileError_G_BOOKMARK_FILE_ERROR_APP_NOT_REGISTERED: GBookmarkFileError = 2;
pub const GBookmarkFileError_G_BOOKMARK_FILE_ERROR_URI_NOT_FOUND: GBookmarkFileError = 3;
pub const GBookmarkFileError_G_BOOKMARK_FILE_ERROR_READ: GBookmarkFileError = 4;
pub const GBookmarkFileError_G_BOOKMARK_FILE_ERROR_UNKNOWN_ENCODING: GBookmarkFileError = 5;
pub const GBookmarkFileError_G_BOOKMARK_FILE_ERROR_WRITE: GBookmarkFileError = 6;
pub const GBookmarkFileError_G_BOOKMARK_FILE_ERROR_FILE_NOT_FOUND: GBookmarkFileError = 7;
pub type GBookmarkFileError = ::std::os::raw::c_uint;
unsafe 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;
unsafe extern "C" {
pub fn g_bookmark_file_new() -> *mut GBookmarkFile;
}
unsafe extern "C" {
pub fn g_bookmark_file_free(bookmark: *mut GBookmarkFile);
}
unsafe extern "C" {
pub fn g_bookmark_file_copy(bookmark: *mut GBookmarkFile) -> *mut GBookmarkFile;
}
unsafe extern "C" {
pub fn g_bookmark_file_load_from_file(
bookmark: *mut GBookmarkFile,
filename: *const gchar,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_bookmark_file_load_from_data(
bookmark: *mut GBookmarkFile,
data: *const gchar,
length: gsize,
error: *mut *mut GError,
) -> gboolean;
}
unsafe 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;
}
unsafe extern "C" {
pub fn g_bookmark_file_to_data(
bookmark: *mut GBookmarkFile,
length: *mut gsize,
error: *mut *mut GError,
) -> *mut gchar;
}
unsafe extern "C" {
pub fn g_bookmark_file_to_file(
bookmark: *mut GBookmarkFile,
filename: *const gchar,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_bookmark_file_set_title(
bookmark: *mut GBookmarkFile,
uri: *const gchar,
title: *const gchar,
);
}
unsafe extern "C" {
pub fn g_bookmark_file_get_title(
bookmark: *mut GBookmarkFile,
uri: *const gchar,
error: *mut *mut GError,
) -> *mut gchar;
}
unsafe extern "C" {
pub fn g_bookmark_file_set_description(
bookmark: *mut GBookmarkFile,
uri: *const gchar,
description: *const gchar,
);
}
unsafe extern "C" {
pub fn g_bookmark_file_get_description(
bookmark: *mut GBookmarkFile,
uri: *const gchar,
error: *mut *mut GError,
) -> *mut gchar;
}
unsafe extern "C" {
pub fn g_bookmark_file_set_mime_type(
bookmark: *mut GBookmarkFile,
uri: *const gchar,
mime_type: *const gchar,
);
}
unsafe extern "C" {
pub fn g_bookmark_file_get_mime_type(
bookmark: *mut GBookmarkFile,
uri: *const gchar,
error: *mut *mut GError,
) -> *mut gchar;
}
unsafe extern "C" {
pub fn g_bookmark_file_set_groups(
bookmark: *mut GBookmarkFile,
uri: *const gchar,
groups: *mut *const gchar,
length: gsize,
);
}
unsafe extern "C" {
pub fn g_bookmark_file_add_group(
bookmark: *mut GBookmarkFile,
uri: *const gchar,
group: *const gchar,
);
}
unsafe extern "C" {
pub fn g_bookmark_file_has_group(
bookmark: *mut GBookmarkFile,
uri: *const gchar,
group: *const gchar,
error: *mut *mut GError,
) -> gboolean;
}
unsafe 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;
}
unsafe extern "C" {
pub fn g_bookmark_file_add_application(
bookmark: *mut GBookmarkFile,
uri: *const gchar,
name: *const gchar,
exec: *const gchar,
);
}
unsafe extern "C" {
pub fn g_bookmark_file_has_application(
bookmark: *mut GBookmarkFile,
uri: *const gchar,
name: *const gchar,
error: *mut *mut GError,
) -> gboolean;
}
unsafe 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;
}
unsafe 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;
}
unsafe extern "C" {
pub fn g_bookmark_file_set_application_info(
bookmark: *mut GBookmarkFile,
uri: *const ::std::os::raw::c_char,
name: *const ::std::os::raw::c_char,
exec: *const ::std::os::raw::c_char,
count: ::std::os::raw::c_int,
stamp: *mut GDateTime,
error: *mut *mut GError,
) -> gboolean;
}
unsafe 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;
}
unsafe extern "C" {
pub fn g_bookmark_file_get_application_info(
bookmark: *mut GBookmarkFile,
uri: *const ::std::os::raw::c_char,
name: *const ::std::os::raw::c_char,
exec: *mut *mut ::std::os::raw::c_char,
count: *mut ::std::os::raw::c_uint,
stamp: *mut *mut GDateTime,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_bookmark_file_set_is_private(
bookmark: *mut GBookmarkFile,
uri: *const gchar,
is_private: gboolean,
);
}
unsafe extern "C" {
pub fn g_bookmark_file_get_is_private(
bookmark: *mut GBookmarkFile,
uri: *const gchar,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_bookmark_file_set_icon(
bookmark: *mut GBookmarkFile,
uri: *const gchar,
href: *const gchar,
mime_type: *const gchar,
);
}
unsafe 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;
}
unsafe extern "C" {
pub fn g_bookmark_file_set_added(
bookmark: *mut GBookmarkFile,
uri: *const gchar,
added: time_t,
);
}
unsafe extern "C" {
pub fn g_bookmark_file_set_added_date_time(
bookmark: *mut GBookmarkFile,
uri: *const ::std::os::raw::c_char,
added: *mut GDateTime,
);
}
unsafe extern "C" {
pub fn g_bookmark_file_get_added(
bookmark: *mut GBookmarkFile,
uri: *const gchar,
error: *mut *mut GError,
) -> time_t;
}
unsafe extern "C" {
pub fn g_bookmark_file_get_added_date_time(
bookmark: *mut GBookmarkFile,
uri: *const ::std::os::raw::c_char,
error: *mut *mut GError,
) -> *mut GDateTime;
}
unsafe extern "C" {
pub fn g_bookmark_file_set_modified(
bookmark: *mut GBookmarkFile,
uri: *const gchar,
modified: time_t,
);
}
unsafe extern "C" {
pub fn g_bookmark_file_set_modified_date_time(
bookmark: *mut GBookmarkFile,
uri: *const ::std::os::raw::c_char,
modified: *mut GDateTime,
);
}
unsafe extern "C" {
pub fn g_bookmark_file_get_modified(
bookmark: *mut GBookmarkFile,
uri: *const gchar,
error: *mut *mut GError,
) -> time_t;
}
unsafe extern "C" {
pub fn g_bookmark_file_get_modified_date_time(
bookmark: *mut GBookmarkFile,
uri: *const ::std::os::raw::c_char,
error: *mut *mut GError,
) -> *mut GDateTime;
}
unsafe extern "C" {
pub fn g_bookmark_file_set_visited(
bookmark: *mut GBookmarkFile,
uri: *const gchar,
visited: time_t,
);
}
unsafe extern "C" {
pub fn g_bookmark_file_set_visited_date_time(
bookmark: *mut GBookmarkFile,
uri: *const ::std::os::raw::c_char,
visited: *mut GDateTime,
);
}
unsafe extern "C" {
pub fn g_bookmark_file_get_visited(
bookmark: *mut GBookmarkFile,
uri: *const gchar,
error: *mut *mut GError,
) -> time_t;
}
unsafe extern "C" {
pub fn g_bookmark_file_get_visited_date_time(
bookmark: *mut GBookmarkFile,
uri: *const ::std::os::raw::c_char,
error: *mut *mut GError,
) -> *mut GDateTime;
}
unsafe extern "C" {
pub fn g_bookmark_file_has_item(bookmark: *mut GBookmarkFile, uri: *const gchar) -> gboolean;
}
unsafe extern "C" {
pub fn g_bookmark_file_get_size(bookmark: *mut GBookmarkFile) -> gint;
}
unsafe extern "C" {
pub fn g_bookmark_file_get_uris(
bookmark: *mut GBookmarkFile,
length: *mut gsize,
) -> *mut *mut gchar;
}
unsafe extern "C" {
pub fn g_bookmark_file_remove_group(
bookmark: *mut GBookmarkFile,
uri: *const gchar,
group: *const gchar,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_bookmark_file_remove_application(
bookmark: *mut GBookmarkFile,
uri: *const gchar,
name: *const gchar,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_bookmark_file_remove_item(
bookmark: *mut GBookmarkFile,
uri: *const gchar,
error: *mut *mut GError,
) -> gboolean;
}
unsafe 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;
}
unsafe extern "C" {
pub fn g_bytes_new(data: gconstpointer, size: gsize) -> *mut GBytes;
}
unsafe extern "C" {
pub fn g_bytes_new_take(data: gpointer, size: gsize) -> *mut GBytes;
}
unsafe extern "C" {
pub fn g_bytes_new_static(data: gconstpointer, size: gsize) -> *mut GBytes;
}
unsafe extern "C" {
pub fn g_bytes_new_with_free_func(
data: gconstpointer,
size: gsize,
free_func: GDestroyNotify,
user_data: gpointer,
) -> *mut GBytes;
}
unsafe extern "C" {
pub fn g_bytes_new_from_bytes(bytes: *mut GBytes, offset: gsize, length: gsize) -> *mut GBytes;
}
unsafe extern "C" {
pub fn g_bytes_get_data(bytes: *mut GBytes, size: *mut gsize) -> gconstpointer;
}
unsafe extern "C" {
pub fn g_bytes_get_size(bytes: *mut GBytes) -> gsize;
}
unsafe extern "C" {
pub fn g_bytes_ref(bytes: *mut GBytes) -> *mut GBytes;
}
unsafe extern "C" {
pub fn g_bytes_unref(bytes: *mut GBytes);
}
unsafe extern "C" {
pub fn g_bytes_unref_to_data(bytes: *mut GBytes, size: *mut gsize) -> gpointer;
}
unsafe extern "C" {
pub fn g_bytes_unref_to_array(bytes: *mut GBytes) -> *mut GByteArray;
}
unsafe extern "C" {
pub fn g_bytes_hash(bytes: gconstpointer) -> guint;
}
unsafe extern "C" {
pub fn g_bytes_equal(bytes1: gconstpointer, bytes2: gconstpointer) -> gboolean;
}
unsafe extern "C" {
pub fn g_bytes_compare(bytes1: gconstpointer, bytes2: gconstpointer) -> gint;
}
unsafe extern "C" {
pub fn g_bytes_get_region(
bytes: *mut GBytes,
element_size: gsize,
offset: gsize,
n_elements: gsize,
) -> gconstpointer;
}
unsafe extern "C" {
pub fn g_get_charset(charset: *mut *const ::std::os::raw::c_char) -> gboolean;
}
unsafe extern "C" {
pub fn g_get_codeset() -> *mut gchar;
}
unsafe extern "C" {
pub fn g_get_console_charset(charset: *mut *const ::std::os::raw::c_char) -> gboolean;
}
unsafe extern "C" {
pub fn g_get_language_names() -> *const *const gchar;
}
unsafe extern "C" {
pub fn g_get_language_names_with_category(category_name: *const gchar) -> *const *const gchar;
}
unsafe extern "C" {
pub fn g_get_locale_variants(locale: *const gchar) -> *mut *mut gchar;
}
pub const GChecksumType_G_CHECKSUM_MD5: GChecksumType = 0;
pub const GChecksumType_G_CHECKSUM_SHA1: GChecksumType = 1;
pub const GChecksumType_G_CHECKSUM_SHA256: GChecksumType = 2;
pub const GChecksumType_G_CHECKSUM_SHA512: GChecksumType = 3;
pub const GChecksumType_G_CHECKSUM_SHA384: GChecksumType = 4;
pub type GChecksumType = ::std::os::raw::c_uint;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GChecksum {
_unused: [u8; 0],
}
pub type GChecksum = _GChecksum;
unsafe extern "C" {
pub fn g_checksum_type_get_length(checksum_type: GChecksumType) -> gssize;
}
unsafe extern "C" {
pub fn g_checksum_new(checksum_type: GChecksumType) -> *mut GChecksum;
}
unsafe extern "C" {
pub fn g_checksum_reset(checksum: *mut GChecksum);
}
unsafe extern "C" {
pub fn g_checksum_copy(checksum: *const GChecksum) -> *mut GChecksum;
}
unsafe extern "C" {
pub fn g_checksum_free(checksum: *mut GChecksum);
}
unsafe extern "C" {
pub fn g_checksum_update(checksum: *mut GChecksum, data: *const guchar, length: gssize);
}
unsafe extern "C" {
pub fn g_checksum_get_string(checksum: *mut GChecksum) -> *const gchar;
}
unsafe extern "C" {
pub fn g_checksum_get_digest(
checksum: *mut GChecksum,
buffer: *mut guint8,
digest_len: *mut gsize,
);
}
unsafe extern "C" {
pub fn g_compute_checksum_for_data(
checksum_type: GChecksumType,
data: *const guchar,
length: gsize,
) -> *mut gchar;
}
unsafe extern "C" {
pub fn g_compute_checksum_for_string(
checksum_type: GChecksumType,
str_: *const gchar,
length: gssize,
) -> *mut gchar;
}
unsafe extern "C" {
pub fn g_compute_checksum_for_bytes(
checksum_type: GChecksumType,
data: *mut GBytes,
) -> *mut gchar;
}
pub const GConvertError_G_CONVERT_ERROR_NO_CONVERSION: GConvertError = 0;
pub const GConvertError_G_CONVERT_ERROR_ILLEGAL_SEQUENCE: GConvertError = 1;
pub const GConvertError_G_CONVERT_ERROR_FAILED: GConvertError = 2;
pub const GConvertError_G_CONVERT_ERROR_PARTIAL_INPUT: GConvertError = 3;
pub const GConvertError_G_CONVERT_ERROR_BAD_URI: GConvertError = 4;
pub const GConvertError_G_CONVERT_ERROR_NOT_ABSOLUTE_PATH: GConvertError = 5;
pub const GConvertError_G_CONVERT_ERROR_NO_MEMORY: GConvertError = 6;
pub const GConvertError_G_CONVERT_ERROR_EMBEDDED_NUL: GConvertError = 7;
pub type GConvertError = ::std::os::raw::c_uint;
unsafe 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;
unsafe extern "C" {
pub fn g_iconv_open(to_codeset: *const gchar, from_codeset: *const gchar) -> GIConv;
}
unsafe 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;
}
unsafe extern "C" {
pub fn g_iconv_close(converter: GIConv) -> gint;
}
unsafe 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;
}
unsafe 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;
}
unsafe 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;
}
unsafe 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;
}
unsafe 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;
}
unsafe 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;
}
unsafe 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;
}
unsafe extern "C" {
pub fn g_filename_from_uri(
uri: *const gchar,
hostname: *mut *mut gchar,
error: *mut *mut GError,
) -> *mut gchar;
}
unsafe extern "C" {
pub fn g_filename_to_uri(
filename: *const gchar,
hostname: *const gchar,
error: *mut *mut GError,
) -> *mut gchar;
}
unsafe extern "C" {
pub fn g_filename_display_name(filename: *const gchar) -> *mut gchar;
}
unsafe extern "C" {
pub fn g_get_filename_charsets(filename_charsets: *mut *mut *const gchar) -> gboolean;
}
unsafe extern "C" {
pub fn g_filename_display_basename(filename: *const gchar) -> *mut gchar;
}
unsafe 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),
>;
unsafe extern "C" {
pub fn g_datalist_init(datalist: *mut *mut GData);
}
unsafe extern "C" {
pub fn g_datalist_clear(datalist: *mut *mut GData);
}
unsafe extern "C" {
pub fn g_datalist_id_get_data(datalist: *mut *mut GData, key_id: GQuark) -> gpointer;
}
unsafe extern "C" {
pub fn g_datalist_id_set_data_full(
datalist: *mut *mut GData,
key_id: GQuark,
data: gpointer,
destroy_func: GDestroyNotify,
);
}
unsafe extern "C" {
pub fn g_datalist_id_remove_multiple(
datalist: *mut *mut GData,
keys: *mut GQuark,
n_keys: gsize,
);
}
pub type GDuplicateFunc =
::std::option::Option<unsafe extern "C" fn(data: gpointer, user_data: gpointer) -> gpointer>;
unsafe extern "C" {
pub fn g_datalist_id_dup_data(
datalist: *mut *mut GData,
key_id: GQuark,
dup_func: GDuplicateFunc,
user_data: gpointer,
) -> gpointer;
}
unsafe 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;
}
unsafe extern "C" {
pub fn g_datalist_id_remove_no_notify(datalist: *mut *mut GData, key_id: GQuark) -> gpointer;
}
unsafe extern "C" {
pub fn g_datalist_foreach(
datalist: *mut *mut GData,
func: GDataForeachFunc,
user_data: gpointer,
);
}
unsafe extern "C" {
pub fn g_datalist_set_flags(datalist: *mut *mut GData, flags: guint);
}
unsafe extern "C" {
pub fn g_datalist_unset_flags(datalist: *mut *mut GData, flags: guint);
}
unsafe extern "C" {
pub fn g_datalist_get_flags(datalist: *mut *mut GData) -> guint;
}
unsafe extern "C" {
pub fn g_dataset_destroy(dataset_location: gconstpointer);
}
unsafe extern "C" {
pub fn g_dataset_id_get_data(dataset_location: gconstpointer, key_id: GQuark) -> gpointer;
}
unsafe extern "C" {
pub fn g_datalist_get_data(datalist: *mut *mut GData, key: *const gchar) -> gpointer;
}
unsafe extern "C" {
pub fn g_dataset_id_set_data_full(
dataset_location: gconstpointer,
key_id: GQuark,
data: gpointer,
destroy_func: GDestroyNotify,
);
}
unsafe extern "C" {
pub fn g_dataset_id_remove_no_notify(
dataset_location: gconstpointer,
key_id: GQuark,
) -> gpointer;
}
unsafe 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;
pub const GDateDMY_G_DATE_DAY: GDateDMY = 0;
pub const GDateDMY_G_DATE_MONTH: GDateDMY = 1;
pub const GDateDMY_G_DATE_YEAR: GDateDMY = 2;
pub type GDateDMY = ::std::os::raw::c_uint;
pub const GDateWeekday_G_DATE_BAD_WEEKDAY: GDateWeekday = 0;
pub const GDateWeekday_G_DATE_MONDAY: GDateWeekday = 1;
pub const GDateWeekday_G_DATE_TUESDAY: GDateWeekday = 2;
pub const GDateWeekday_G_DATE_WEDNESDAY: GDateWeekday = 3;
pub const GDateWeekday_G_DATE_THURSDAY: GDateWeekday = 4;
pub const GDateWeekday_G_DATE_FRIDAY: GDateWeekday = 5;
pub const GDateWeekday_G_DATE_SATURDAY: GDateWeekday = 6;
pub const GDateWeekday_G_DATE_SUNDAY: GDateWeekday = 7;
pub type GDateWeekday = ::std::os::raw::c_uint;
pub const GDateMonth_G_DATE_BAD_MONTH: GDateMonth = 0;
pub const GDateMonth_G_DATE_JANUARY: GDateMonth = 1;
pub const GDateMonth_G_DATE_FEBRUARY: GDateMonth = 2;
pub const GDateMonth_G_DATE_MARCH: GDateMonth = 3;
pub const GDateMonth_G_DATE_APRIL: GDateMonth = 4;
pub const GDateMonth_G_DATE_MAY: GDateMonth = 5;
pub const GDateMonth_G_DATE_JUNE: GDateMonth = 6;
pub const GDateMonth_G_DATE_JULY: GDateMonth = 7;
pub const GDateMonth_G_DATE_AUGUST: GDateMonth = 8;
pub const GDateMonth_G_DATE_SEPTEMBER: GDateMonth = 9;
pub const GDateMonth_G_DATE_OCTOBER: GDateMonth = 10;
pub const GDateMonth_G_DATE_NOVEMBER: GDateMonth = 11;
pub const GDateMonth_G_DATE_DECEMBER: GDateMonth = 12;
pub type GDateMonth = ::std::os::raw::c_uint;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GDate {
pub _bitfield_align_1: [u32; 0],
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 8usize]>,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GDate"][::std::mem::size_of::<_GDate>() - 8usize];
["Alignment of _GDate"][::std::mem::align_of::<_GDate>() - 4usize];
};
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 unsafe fn julian_days_raw(this: *const Self) -> guint {
unsafe {
::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
::std::ptr::addr_of!((*this)._bitfield_1),
0usize,
32u8,
) as u32)
}
}
#[inline]
pub unsafe fn set_julian_days_raw(this: *mut Self, val: guint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
::std::ptr::addr_of_mut!((*this)._bitfield_1),
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 unsafe fn julian_raw(this: *const Self) -> guint {
unsafe {
::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
::std::ptr::addr_of!((*this)._bitfield_1),
32usize,
1u8,
) as u32)
}
}
#[inline]
pub unsafe fn set_julian_raw(this: *mut Self, val: guint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
::std::ptr::addr_of_mut!((*this)._bitfield_1),
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 unsafe fn dmy_raw(this: *const Self) -> guint {
unsafe {
::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
::std::ptr::addr_of!((*this)._bitfield_1),
33usize,
1u8,
) as u32)
}
}
#[inline]
pub unsafe fn set_dmy_raw(this: *mut Self, val: guint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
::std::ptr::addr_of_mut!((*this)._bitfield_1),
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 unsafe fn day_raw(this: *const Self) -> guint {
unsafe {
::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
::std::ptr::addr_of!((*this)._bitfield_1),
34usize,
6u8,
) as u32)
}
}
#[inline]
pub unsafe fn set_day_raw(this: *mut Self, val: guint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
::std::ptr::addr_of_mut!((*this)._bitfield_1),
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 unsafe fn month_raw(this: *const Self) -> guint {
unsafe {
::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
::std::ptr::addr_of!((*this)._bitfield_1),
40usize,
4u8,
) as u32)
}
}
#[inline]
pub unsafe fn set_month_raw(this: *mut Self, val: guint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
::std::ptr::addr_of_mut!((*this)._bitfield_1),
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 unsafe fn year_raw(this: *const Self) -> guint {
unsafe {
::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
::std::ptr::addr_of!((*this)._bitfield_1),
44usize,
16u8,
) as u32)
}
}
#[inline]
pub unsafe fn set_year_raw(this: *mut Self, val: guint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
::std::ptr::addr_of_mut!((*this)._bitfield_1),
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]> {
let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 8usize]> = 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
}
}
unsafe extern "C" {
pub fn g_date_new() -> *mut GDate;
}
unsafe extern "C" {
pub fn g_date_new_dmy(day: GDateDay, month: GDateMonth, year: GDateYear) -> *mut GDate;
}
unsafe extern "C" {
pub fn g_date_new_julian(julian_day: guint32) -> *mut GDate;
}
unsafe extern "C" {
pub fn g_date_free(date: *mut GDate);
}
unsafe extern "C" {
pub fn g_date_copy(date: *const GDate) -> *mut GDate;
}
unsafe extern "C" {
pub fn g_date_valid(date: *const GDate) -> gboolean;
}
unsafe extern "C" {
pub fn g_date_valid_day(day: GDateDay) -> gboolean;
}
unsafe extern "C" {
pub fn g_date_valid_month(month: GDateMonth) -> gboolean;
}
unsafe extern "C" {
pub fn g_date_valid_year(year: GDateYear) -> gboolean;
}
unsafe extern "C" {
pub fn g_date_valid_weekday(weekday: GDateWeekday) -> gboolean;
}
unsafe extern "C" {
pub fn g_date_valid_julian(julian_date: guint32) -> gboolean;
}
unsafe extern "C" {
pub fn g_date_valid_dmy(day: GDateDay, month: GDateMonth, year: GDateYear) -> gboolean;
}
unsafe extern "C" {
pub fn g_date_get_weekday(date: *const GDate) -> GDateWeekday;
}
unsafe extern "C" {
pub fn g_date_get_month(date: *const GDate) -> GDateMonth;
}
unsafe extern "C" {
pub fn g_date_get_year(date: *const GDate) -> GDateYear;
}
unsafe extern "C" {
pub fn g_date_get_day(date: *const GDate) -> GDateDay;
}
unsafe extern "C" {
pub fn g_date_get_julian(date: *const GDate) -> guint32;
}
unsafe extern "C" {
pub fn g_date_get_day_of_year(date: *const GDate) -> guint;
}
unsafe extern "C" {
pub fn g_date_get_monday_week_of_year(date: *const GDate) -> guint;
}
unsafe extern "C" {
pub fn g_date_get_sunday_week_of_year(date: *const GDate) -> guint;
}
unsafe extern "C" {
pub fn g_date_get_week_of_year(date: *const GDate, first_day_of_week: GDateWeekday) -> guint;
}
unsafe extern "C" {
pub fn g_date_get_iso8601_week_of_year(date: *const GDate) -> guint;
}
unsafe extern "C" {
pub fn g_date_clear(date: *mut GDate, n_dates: guint);
}
unsafe extern "C" {
pub fn g_date_set_parse(date: *mut GDate, str_: *const gchar);
}
unsafe extern "C" {
pub fn g_date_set_time_t(date: *mut GDate, timet: time_t);
}
unsafe extern "C" {
pub fn g_date_set_time_val(date: *mut GDate, timeval: *mut GTimeVal);
}
unsafe extern "C" {
pub fn g_date_set_time(date: *mut GDate, time_: GTime);
}
unsafe extern "C" {
pub fn g_date_set_month(date: *mut GDate, month: GDateMonth);
}
unsafe extern "C" {
pub fn g_date_set_day(date: *mut GDate, day: GDateDay);
}
unsafe extern "C" {
pub fn g_date_set_year(date: *mut GDate, year: GDateYear);
}
unsafe extern "C" {
pub fn g_date_set_dmy(date: *mut GDate, day: GDateDay, month: GDateMonth, y: GDateYear);
}
unsafe extern "C" {
pub fn g_date_set_julian(date: *mut GDate, julian_date: guint32);
}
unsafe extern "C" {
pub fn g_date_is_first_of_month(date: *const GDate) -> gboolean;
}
unsafe extern "C" {
pub fn g_date_is_last_of_month(date: *const GDate) -> gboolean;
}
unsafe extern "C" {
pub fn g_date_add_days(date: *mut GDate, n_days: guint);
}
unsafe extern "C" {
pub fn g_date_subtract_days(date: *mut GDate, n_days: guint);
}
unsafe extern "C" {
pub fn g_date_add_months(date: *mut GDate, n_months: guint);
}
unsafe extern "C" {
pub fn g_date_subtract_months(date: *mut GDate, n_months: guint);
}
unsafe extern "C" {
pub fn g_date_add_years(date: *mut GDate, n_years: guint);
}
unsafe extern "C" {
pub fn g_date_subtract_years(date: *mut GDate, n_years: guint);
}
unsafe extern "C" {
pub fn g_date_is_leap_year(year: GDateYear) -> gboolean;
}
unsafe extern "C" {
pub fn g_date_get_days_in_month(month: GDateMonth, year: GDateYear) -> guint8;
}
unsafe extern "C" {
pub fn g_date_get_monday_weeks_in_year(year: GDateYear) -> guint8;
}
unsafe extern "C" {
pub fn g_date_get_sunday_weeks_in_year(year: GDateYear) -> guint8;
}
unsafe extern "C" {
pub fn g_date_get_weeks_in_year(year: GDateYear, first_day_of_week: GDateWeekday) -> guint8;
}
unsafe extern "C" {
pub fn g_date_days_between(date1: *const GDate, date2: *const GDate) -> gint;
}
unsafe extern "C" {
pub fn g_date_compare(lhs: *const GDate, rhs: *const GDate) -> gint;
}
unsafe extern "C" {
pub fn g_date_to_struct_tm(date: *const GDate, tm: *mut tm);
}
unsafe extern "C" {
pub fn g_date_clamp(date: *mut GDate, min_date: *const GDate, max_date: *const GDate);
}
unsafe extern "C" {
pub fn g_date_order(date1: *mut GDate, date2: *mut GDate);
}
unsafe extern "C" {
pub fn g_date_strftime(
s: *mut gchar,
slen: gsize,
format: *const gchar,
date: *const GDate,
) -> gsize;
}
pub type ssize_t = ::std::os::raw::c_long;
pub type off_t = ::std::os::raw::c_long;
pub type ino_t = ::std::os::raw::c_ulong;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
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],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of dirent"][::std::mem::size_of::<dirent>() - 280usize];
["Alignment of dirent"][::std::mem::align_of::<dirent>() - 8usize];
["Offset of field: dirent::d_ino"][::std::mem::offset_of!(dirent, d_ino) - 0usize];
["Offset of field: dirent::d_off"][::std::mem::offset_of!(dirent, d_off) - 8usize];
["Offset of field: dirent::d_reclen"][::std::mem::offset_of!(dirent, d_reclen) - 16usize];
["Offset of field: dirent::d_type"][::std::mem::offset_of!(dirent, d_type) - 18usize];
["Offset of field: dirent::d_name"][::std::mem::offset_of!(dirent, d_name) - 19usize];
};
pub type reclen_t = ::std::os::raw::c_ushort;
#[repr(C)]
#[derive(Debug)]
pub struct posix_dent {
pub d_ino: ino_t,
pub d_off: off_t,
pub d_reclen: reclen_t,
pub d_type: ::std::os::raw::c_uchar,
pub d_name: __IncompleteArrayField<::std::os::raw::c_char>,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of posix_dent"][::std::mem::size_of::<posix_dent>() - 24usize];
["Alignment of posix_dent"][::std::mem::align_of::<posix_dent>() - 8usize];
["Offset of field: posix_dent::d_ino"][::std::mem::offset_of!(posix_dent, d_ino) - 0usize];
["Offset of field: posix_dent::d_off"][::std::mem::offset_of!(posix_dent, d_off) - 8usize];
["Offset of field: posix_dent::d_reclen"]
[::std::mem::offset_of!(posix_dent, d_reclen) - 16usize];
["Offset of field: posix_dent::d_type"][::std::mem::offset_of!(posix_dent, d_type) - 18usize];
["Offset of field: posix_dent::d_name"][::std::mem::offset_of!(posix_dent, d_name) - 19usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __dirstream {
_unused: [u8; 0],
}
pub type DIR = __dirstream;
unsafe extern "C" {
pub fn closedir(arg1: *mut DIR) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn fdopendir(arg1: ::std::os::raw::c_int) -> *mut DIR;
}
unsafe extern "C" {
pub fn opendir(arg1: *const ::std::os::raw::c_char) -> *mut DIR;
}
unsafe extern "C" {
pub fn readdir(arg1: *mut DIR) -> *mut dirent;
}
unsafe extern "C" {
pub fn readdir_r(
arg1: *mut DIR,
arg2: *mut dirent,
arg3: *mut *mut dirent,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn rewinddir(arg1: *mut DIR);
}
unsafe extern "C" {
pub fn dirfd(arg1: *mut DIR) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn posix_getdents(
arg1: ::std::os::raw::c_int,
arg2: *mut ::std::os::raw::c_void,
arg3: size_t,
arg4: ::std::os::raw::c_int,
) -> ssize_t;
}
unsafe extern "C" {
pub fn alphasort(arg1: *mut *const dirent, arg2: *mut *const dirent) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn scandir(
arg1: *const ::std::os::raw::c_char,
arg2: *mut *mut *mut dirent,
arg3: ::std::option::Option<
unsafe extern "C" fn(arg1: *const dirent) -> ::std::os::raw::c_int,
>,
arg4: ::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;
}
unsafe extern "C" {
pub fn seekdir(arg1: *mut DIR, arg2: ::std::os::raw::c_long);
}
unsafe extern "C" {
pub fn telldir(arg1: *mut DIR) -> ::std::os::raw::c_long;
}
unsafe extern "C" {
pub fn getdents(
arg1: ::std::os::raw::c_int,
arg2: *mut dirent,
arg3: size_t,
) -> ::std::os::raw::c_int;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GDir {
_unused: [u8; 0],
}
pub type GDir = _GDir;
unsafe extern "C" {
pub fn g_dir_open(path: *const gchar, flags: guint, error: *mut *mut GError) -> *mut GDir;
}
unsafe extern "C" {
pub fn g_dir_read_name(dir: *mut GDir) -> *const gchar;
}
unsafe extern "C" {
pub fn g_dir_rewind(dir: *mut GDir);
}
unsafe extern "C" {
pub fn g_dir_close(dir: *mut GDir);
}
unsafe extern "C" {
pub fn g_dir_ref(dir: *mut GDir) -> *mut GDir;
}
unsafe extern "C" {
pub fn g_dir_unref(dir: *mut GDir);
}
unsafe extern "C" {
pub fn g_getenv(variable: *const gchar) -> *const gchar;
}
unsafe extern "C" {
pub fn g_setenv(variable: *const gchar, value: *const gchar, overwrite: gboolean) -> gboolean;
}
unsafe extern "C" {
pub fn g_unsetenv(variable: *const gchar);
}
unsafe extern "C" {
pub fn g_listenv() -> *mut *mut gchar;
}
unsafe extern "C" {
pub fn g_get_environ() -> *mut *mut gchar;
}
unsafe extern "C" {
pub fn g_environ_getenv(envp: *mut *mut gchar, variable: *const gchar) -> *const gchar;
}
unsafe extern "C" {
pub fn g_environ_setenv(
envp: *mut *mut gchar,
variable: *const gchar,
value: *const gchar,
overwrite: gboolean,
) -> *mut *mut gchar;
}
unsafe extern "C" {
pub fn g_environ_unsetenv(envp: *mut *mut gchar, variable: *const gchar) -> *mut *mut gchar;
}
pub const GFileError_G_FILE_ERROR_EXIST: GFileError = 0;
pub const GFileError_G_FILE_ERROR_ISDIR: GFileError = 1;
pub const GFileError_G_FILE_ERROR_ACCES: GFileError = 2;
pub const GFileError_G_FILE_ERROR_NAMETOOLONG: GFileError = 3;
pub const GFileError_G_FILE_ERROR_NOENT: GFileError = 4;
pub const GFileError_G_FILE_ERROR_NOTDIR: GFileError = 5;
pub const GFileError_G_FILE_ERROR_NXIO: GFileError = 6;
pub const GFileError_G_FILE_ERROR_NODEV: GFileError = 7;
pub const GFileError_G_FILE_ERROR_ROFS: GFileError = 8;
pub const GFileError_G_FILE_ERROR_TXTBSY: GFileError = 9;
pub const GFileError_G_FILE_ERROR_FAULT: GFileError = 10;
pub const GFileError_G_FILE_ERROR_LOOP: GFileError = 11;
pub const GFileError_G_FILE_ERROR_NOSPC: GFileError = 12;
pub const GFileError_G_FILE_ERROR_NOMEM: GFileError = 13;
pub const GFileError_G_FILE_ERROR_MFILE: GFileError = 14;
pub const GFileError_G_FILE_ERROR_NFILE: GFileError = 15;
pub const GFileError_G_FILE_ERROR_BADF: GFileError = 16;
pub const GFileError_G_FILE_ERROR_INVAL: GFileError = 17;
pub const GFileError_G_FILE_ERROR_PIPE: GFileError = 18;
pub const GFileError_G_FILE_ERROR_AGAIN: GFileError = 19;
pub const GFileError_G_FILE_ERROR_INTR: GFileError = 20;
pub const GFileError_G_FILE_ERROR_IO: GFileError = 21;
pub const GFileError_G_FILE_ERROR_PERM: GFileError = 22;
pub const GFileError_G_FILE_ERROR_NOSYS: GFileError = 23;
pub const GFileError_G_FILE_ERROR_FAILED: GFileError = 24;
pub type GFileError = ::std::os::raw::c_uint;
pub const GFileTest_G_FILE_TEST_IS_REGULAR: GFileTest = 1;
pub const GFileTest_G_FILE_TEST_IS_SYMLINK: GFileTest = 2;
pub const GFileTest_G_FILE_TEST_IS_DIR: GFileTest = 4;
pub const GFileTest_G_FILE_TEST_IS_EXECUTABLE: GFileTest = 8;
pub const GFileTest_G_FILE_TEST_EXISTS: GFileTest = 16;
pub type GFileTest = ::std::os::raw::c_uint;
pub const GFileSetContentsFlags_G_FILE_SET_CONTENTS_NONE: GFileSetContentsFlags = 0;
pub const GFileSetContentsFlags_G_FILE_SET_CONTENTS_CONSISTENT: GFileSetContentsFlags = 1;
pub const GFileSetContentsFlags_G_FILE_SET_CONTENTS_DURABLE: GFileSetContentsFlags = 2;
pub const GFileSetContentsFlags_G_FILE_SET_CONTENTS_ONLY_EXISTING: GFileSetContentsFlags = 4;
pub type GFileSetContentsFlags = ::std::os::raw::c_uint;
unsafe extern "C" {
pub fn g_file_error_quark() -> GQuark;
}
unsafe extern "C" {
pub fn g_file_error_from_errno(err_no: gint) -> GFileError;
}
unsafe extern "C" {
pub fn g_file_test(filename: *const gchar, test: GFileTest) -> gboolean;
}
unsafe extern "C" {
pub fn g_file_get_contents(
filename: *const gchar,
contents: *mut *mut gchar,
length: *mut gsize,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_file_set_contents(
filename: *const gchar,
contents: *const gchar,
length: gssize,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_file_set_contents_full(
filename: *const gchar,
contents: *const gchar,
length: gssize,
flags: GFileSetContentsFlags,
mode: ::std::os::raw::c_int,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_file_read_link(filename: *const gchar, error: *mut *mut GError) -> *mut gchar;
}
unsafe extern "C" {
pub fn g_mkdtemp(tmpl: *mut gchar) -> *mut gchar;
}
unsafe extern "C" {
pub fn g_mkdtemp_full(tmpl: *mut gchar, mode: gint) -> *mut gchar;
}
unsafe extern "C" {
pub fn g_mkstemp(tmpl: *mut gchar) -> gint;
}
unsafe extern "C" {
pub fn g_mkstemp_full(tmpl: *mut gchar, flags: gint, mode: gint) -> gint;
}
unsafe extern "C" {
pub fn g_file_open_tmp(
tmpl: *const gchar,
name_used: *mut *mut gchar,
error: *mut *mut GError,
) -> gint;
}
unsafe extern "C" {
pub fn g_dir_make_tmp(tmpl: *const gchar, error: *mut *mut GError) -> *mut gchar;
}
unsafe extern "C" {
pub fn g_build_path(separator: *const gchar, first_element: *const gchar, ...) -> *mut gchar;
}
unsafe extern "C" {
pub fn g_build_pathv(separator: *const gchar, args: *mut *mut gchar) -> *mut gchar;
}
unsafe extern "C" {
pub fn g_build_filename(first_element: *const gchar, ...) -> *mut gchar;
}
unsafe extern "C" {
pub fn g_build_filenamev(args: *mut *mut gchar) -> *mut gchar;
}
unsafe extern "C" {
pub fn g_build_filename_valist(first_element: *const gchar, args: *mut va_list) -> *mut gchar;
}
unsafe extern "C" {
pub fn g_mkdir_with_parents(pathname: *const gchar, mode: gint) -> gint;
}
unsafe extern "C" {
pub fn g_path_is_absolute(file_name: *const gchar) -> gboolean;
}
unsafe extern "C" {
pub fn g_path_skip_root(file_name: *const gchar) -> *const gchar;
}
unsafe extern "C" {
pub fn g_basename(file_name: *const gchar) -> *const gchar;
}
unsafe extern "C" {
pub fn g_get_current_dir() -> *mut gchar;
}
unsafe extern "C" {
pub fn g_path_get_basename(file_name: *const gchar) -> *mut gchar;
}
unsafe extern "C" {
pub fn g_path_get_dirname(file_name: *const gchar) -> *mut gchar;
}
unsafe extern "C" {
pub fn g_canonicalize_filename(filename: *const gchar, relative_to: *const gchar)
-> *mut gchar;
}
unsafe extern "C" {
pub fn g_strip_context(msgid: *const gchar, msgval: *const gchar) -> *const gchar;
}
unsafe extern "C" {
pub fn g_dgettext(domain: *const gchar, msgid: *const gchar) -> *const gchar;
}
unsafe extern "C" {
pub fn g_dcgettext(domain: *const gchar, msgid: *const gchar, category: gint) -> *const gchar;
}
unsafe extern "C" {
pub fn g_dngettext(
domain: *const gchar,
msgid: *const gchar,
msgid_plural: *const gchar,
n: gulong,
) -> *const gchar;
}
unsafe extern "C" {
pub fn g_dpgettext(
domain: *const gchar,
msgctxtid: *const gchar,
msgidoffset: gsize,
) -> *const gchar;
}
unsafe extern "C" {
pub fn g_dpgettext2(
domain: *const gchar,
context: *const gchar,
msgid: *const gchar,
) -> *const gchar;
}
pub type GMemVTable = _GMemVTable;
unsafe extern "C" {
pub fn g_free(mem: gpointer);
}
unsafe extern "C" {
pub fn g_free_sized(mem: gpointer, size: size_t);
}
unsafe extern "C" {
pub fn g_clear_pointer(pp: *mut gpointer, destroy: GDestroyNotify);
}
unsafe extern "C" {
pub fn g_malloc(n_bytes: gsize) -> gpointer;
}
unsafe extern "C" {
pub fn g_malloc0(n_bytes: gsize) -> gpointer;
}
unsafe extern "C" {
pub fn g_realloc(mem: gpointer, n_bytes: gsize) -> gpointer;
}
unsafe extern "C" {
pub fn g_try_malloc(n_bytes: gsize) -> gpointer;
}
unsafe extern "C" {
pub fn g_try_malloc0(n_bytes: gsize) -> gpointer;
}
unsafe extern "C" {
pub fn g_try_realloc(mem: gpointer, n_bytes: gsize) -> gpointer;
}
unsafe extern "C" {
pub fn g_malloc_n(n_blocks: gsize, n_block_bytes: gsize) -> gpointer;
}
unsafe extern "C" {
pub fn g_malloc0_n(n_blocks: gsize, n_block_bytes: gsize) -> gpointer;
}
unsafe extern "C" {
pub fn g_realloc_n(mem: gpointer, n_blocks: gsize, n_block_bytes: gsize) -> gpointer;
}
unsafe extern "C" {
pub fn g_try_malloc_n(n_blocks: gsize, n_block_bytes: gsize) -> gpointer;
}
unsafe extern "C" {
pub fn g_try_malloc0_n(n_blocks: gsize, n_block_bytes: gsize) -> gpointer;
}
unsafe extern "C" {
pub fn g_try_realloc_n(mem: gpointer, n_blocks: gsize, n_block_bytes: gsize) -> gpointer;
}
unsafe extern "C" {
pub fn g_aligned_alloc(n_blocks: gsize, n_block_bytes: gsize, alignment: gsize) -> gpointer;
}
unsafe extern "C" {
pub fn g_aligned_alloc0(n_blocks: gsize, n_block_bytes: gsize, alignment: gsize) -> gpointer;
}
unsafe extern "C" {
pub fn g_aligned_free(mem: gpointer);
}
unsafe extern "C" {
pub fn g_aligned_free_sized(mem: gpointer, alignment: size_t, size: size_t);
}
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
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>,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GMemVTable"][::std::mem::size_of::<_GMemVTable>() - 48usize];
["Alignment of _GMemVTable"][::std::mem::align_of::<_GMemVTable>() - 8usize];
["Offset of field: _GMemVTable::malloc"][::std::mem::offset_of!(_GMemVTable, malloc) - 0usize];
["Offset of field: _GMemVTable::realloc"]
[::std::mem::offset_of!(_GMemVTable, realloc) - 8usize];
["Offset of field: _GMemVTable::free"][::std::mem::offset_of!(_GMemVTable, free) - 16usize];
["Offset of field: _GMemVTable::calloc"][::std::mem::offset_of!(_GMemVTable, calloc) - 24usize];
["Offset of field: _GMemVTable::try_malloc"]
[::std::mem::offset_of!(_GMemVTable, try_malloc) - 32usize];
["Offset of field: _GMemVTable::try_realloc"]
[::std::mem::offset_of!(_GMemVTable, try_realloc) - 40usize];
};
unsafe extern "C" {
pub fn g_mem_set_vtable(vtable: *mut GMemVTable);
}
unsafe extern "C" {
pub fn g_mem_is_system_malloc() -> gboolean;
}
unsafe extern "C" {
pub static mut g_mem_gc_friendly: gboolean;
}
unsafe extern "C" {
pub static mut glib_mem_profiler_table: *mut GMemVTable;
}
unsafe extern "C" {
pub fn g_mem_profile();
}
pub type GNode = _GNode;
pub const GTraverseFlags_G_TRAVERSE_LEAVES: GTraverseFlags = 1;
pub const GTraverseFlags_G_TRAVERSE_NON_LEAVES: GTraverseFlags = 2;
pub const GTraverseFlags_G_TRAVERSE_ALL: GTraverseFlags = 3;
pub const GTraverseFlags_G_TRAVERSE_MASK: GTraverseFlags = 3;
pub const GTraverseFlags_G_TRAVERSE_LEAFS: GTraverseFlags = 1;
pub const GTraverseFlags_G_TRAVERSE_NON_LEAFS: GTraverseFlags = 2;
pub type GTraverseFlags = ::std::os::raw::c_uint;
pub const GTraverseType_G_IN_ORDER: GTraverseType = 0;
pub const GTraverseType_G_PRE_ORDER: GTraverseType = 1;
pub const GTraverseType_G_POST_ORDER: GTraverseType = 2;
pub const GTraverseType_G_LEVEL_ORDER: GTraverseType = 3;
pub type GTraverseType = ::std::os::raw::c_uint;
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)>;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GNode {
pub data: gpointer,
pub next: *mut GNode,
pub prev: *mut GNode,
pub parent: *mut GNode,
pub children: *mut GNode,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GNode"][::std::mem::size_of::<_GNode>() - 40usize];
["Alignment of _GNode"][::std::mem::align_of::<_GNode>() - 8usize];
["Offset of field: _GNode::data"][::std::mem::offset_of!(_GNode, data) - 0usize];
["Offset of field: _GNode::next"][::std::mem::offset_of!(_GNode, next) - 8usize];
["Offset of field: _GNode::prev"][::std::mem::offset_of!(_GNode, prev) - 16usize];
["Offset of field: _GNode::parent"][::std::mem::offset_of!(_GNode, parent) - 24usize];
["Offset of field: _GNode::children"][::std::mem::offset_of!(_GNode, children) - 32usize];
};
unsafe extern "C" {
pub fn g_node_new(data: gpointer) -> *mut GNode;
}
unsafe extern "C" {
pub fn g_node_destroy(root: *mut GNode);
}
unsafe extern "C" {
pub fn g_node_unlink(node: *mut GNode);
}
unsafe extern "C" {
pub fn g_node_copy_deep(node: *mut GNode, copy_func: GCopyFunc, data: gpointer) -> *mut GNode;
}
unsafe extern "C" {
pub fn g_node_copy(node: *mut GNode) -> *mut GNode;
}
unsafe extern "C" {
pub fn g_node_insert(parent: *mut GNode, position: gint, node: *mut GNode) -> *mut GNode;
}
unsafe extern "C" {
pub fn g_node_insert_before(
parent: *mut GNode,
sibling: *mut GNode,
node: *mut GNode,
) -> *mut GNode;
}
unsafe extern "C" {
pub fn g_node_insert_after(
parent: *mut GNode,
sibling: *mut GNode,
node: *mut GNode,
) -> *mut GNode;
}
unsafe extern "C" {
pub fn g_node_prepend(parent: *mut GNode, node: *mut GNode) -> *mut GNode;
}
unsafe extern "C" {
pub fn g_node_n_nodes(root: *mut GNode, flags: GTraverseFlags) -> guint;
}
unsafe extern "C" {
pub fn g_node_get_root(node: *mut GNode) -> *mut GNode;
}
unsafe extern "C" {
pub fn g_node_is_ancestor(node: *mut GNode, descendant: *mut GNode) -> gboolean;
}
unsafe extern "C" {
pub fn g_node_depth(node: *mut GNode) -> guint;
}
unsafe extern "C" {
pub fn g_node_find(
root: *mut GNode,
order: GTraverseType,
flags: GTraverseFlags,
data: gpointer,
) -> *mut GNode;
}
unsafe extern "C" {
pub fn g_node_traverse(
root: *mut GNode,
order: GTraverseType,
flags: GTraverseFlags,
max_depth: gint,
func: GNodeTraverseFunc,
data: gpointer,
);
}
unsafe extern "C" {
pub fn g_node_max_height(root: *mut GNode) -> guint;
}
unsafe extern "C" {
pub fn g_node_children_foreach(
node: *mut GNode,
flags: GTraverseFlags,
func: GNodeForeachFunc,
data: gpointer,
);
}
unsafe extern "C" {
pub fn g_node_reverse_children(node: *mut GNode);
}
unsafe extern "C" {
pub fn g_node_n_children(node: *mut GNode) -> guint;
}
unsafe extern "C" {
pub fn g_node_nth_child(node: *mut GNode, n: guint) -> *mut GNode;
}
unsafe extern "C" {
pub fn g_node_last_child(node: *mut GNode) -> *mut GNode;
}
unsafe extern "C" {
pub fn g_node_find_child(node: *mut GNode, flags: GTraverseFlags, data: gpointer)
-> *mut GNode;
}
unsafe extern "C" {
pub fn g_node_child_position(node: *mut GNode, child: *mut GNode) -> gint;
}
unsafe extern "C" {
pub fn g_node_child_index(node: *mut GNode, data: gpointer) -> gint;
}
unsafe extern "C" {
pub fn g_node_first_sibling(node: *mut GNode) -> *mut GNode;
}
unsafe extern "C" {
pub fn g_node_last_sibling(node: *mut GNode) -> *mut GNode;
}
pub type GList = _GList;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GList {
pub data: gpointer,
pub next: *mut GList,
pub prev: *mut GList,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GList"][::std::mem::size_of::<_GList>() - 24usize];
["Alignment of _GList"][::std::mem::align_of::<_GList>() - 8usize];
["Offset of field: _GList::data"][::std::mem::offset_of!(_GList, data) - 0usize];
["Offset of field: _GList::next"][::std::mem::offset_of!(_GList, next) - 8usize];
["Offset of field: _GList::prev"][::std::mem::offset_of!(_GList, prev) - 16usize];
};
unsafe extern "C" {
pub fn g_list_alloc() -> *mut GList;
}
unsafe extern "C" {
pub fn g_list_free(list: *mut GList);
}
unsafe extern "C" {
pub fn g_list_free_1(list: *mut GList);
}
unsafe extern "C" {
pub fn g_list_free_full(list: *mut GList, free_func: GDestroyNotify);
}
unsafe extern "C" {
pub fn g_list_append(list: *mut GList, data: gpointer) -> *mut GList;
}
unsafe extern "C" {
pub fn g_list_prepend(list: *mut GList, data: gpointer) -> *mut GList;
}
unsafe extern "C" {
pub fn g_list_insert(list: *mut GList, data: gpointer, position: gint) -> *mut GList;
}
unsafe extern "C" {
pub fn g_list_insert_sorted(list: *mut GList, data: gpointer, func: GCompareFunc)
-> *mut GList;
}
unsafe extern "C" {
pub fn g_list_insert_sorted_with_data(
list: *mut GList,
data: gpointer,
func: GCompareDataFunc,
user_data: gpointer,
) -> *mut GList;
}
unsafe extern "C" {
pub fn g_list_insert_before(
list: *mut GList,
sibling: *mut GList,
data: gpointer,
) -> *mut GList;
}
unsafe extern "C" {
pub fn g_list_insert_before_link(
list: *mut GList,
sibling: *mut GList,
link_: *mut GList,
) -> *mut GList;
}
unsafe extern "C" {
pub fn g_list_concat(list1: *mut GList, list2: *mut GList) -> *mut GList;
}
unsafe extern "C" {
pub fn g_list_remove(list: *mut GList, data: gconstpointer) -> *mut GList;
}
unsafe extern "C" {
pub fn g_list_remove_all(list: *mut GList, data: gconstpointer) -> *mut GList;
}
unsafe extern "C" {
pub fn g_list_remove_link(list: *mut GList, llink: *mut GList) -> *mut GList;
}
unsafe extern "C" {
pub fn g_list_delete_link(list: *mut GList, link_: *mut GList) -> *mut GList;
}
unsafe extern "C" {
pub fn g_list_reverse(list: *mut GList) -> *mut GList;
}
unsafe extern "C" {
pub fn g_list_copy(list: *mut GList) -> *mut GList;
}
unsafe extern "C" {
pub fn g_list_copy_deep(list: *mut GList, func: GCopyFunc, user_data: gpointer) -> *mut GList;
}
unsafe extern "C" {
pub fn g_list_nth(list: *mut GList, n: guint) -> *mut GList;
}
unsafe extern "C" {
pub fn g_list_nth_prev(list: *mut GList, n: guint) -> *mut GList;
}
unsafe extern "C" {
pub fn g_list_find(list: *mut GList, data: gconstpointer) -> *mut GList;
}
unsafe extern "C" {
pub fn g_list_find_custom(
list: *mut GList,
data: gconstpointer,
func: GCompareFunc,
) -> *mut GList;
}
unsafe extern "C" {
pub fn g_list_position(list: *mut GList, llink: *mut GList) -> gint;
}
unsafe extern "C" {
pub fn g_list_index(list: *mut GList, data: gconstpointer) -> gint;
}
unsafe extern "C" {
pub fn g_list_last(list: *mut GList) -> *mut GList;
}
unsafe extern "C" {
pub fn g_list_first(list: *mut GList) -> *mut GList;
}
unsafe extern "C" {
pub fn g_list_length(list: *mut GList) -> guint;
}
unsafe extern "C" {
pub fn g_list_foreach(list: *mut GList, func: GFunc, user_data: gpointer);
}
unsafe extern "C" {
pub fn g_list_sort(list: *mut GList, compare_func: GCompareFunc) -> *mut GList;
}
unsafe extern "C" {
pub fn g_list_sort_with_data(
list: *mut GList,
compare_func: GCompareDataFunc,
user_data: gpointer,
) -> *mut GList;
}
unsafe extern "C" {
pub fn g_list_nth_data(list: *mut GList, n: guint) -> gpointer;
}
unsafe extern "C" {
pub fn g_clear_list(list_ptr: *mut *mut GList, destroy: GDestroyNotify);
}
#[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, PartialEq, Eq)]
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,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GHashTableIter"][::std::mem::size_of::<_GHashTableIter>() - 40usize];
["Alignment of _GHashTableIter"][::std::mem::align_of::<_GHashTableIter>() - 8usize];
["Offset of field: _GHashTableIter::dummy1"]
[::std::mem::offset_of!(_GHashTableIter, dummy1) - 0usize];
["Offset of field: _GHashTableIter::dummy2"]
[::std::mem::offset_of!(_GHashTableIter, dummy2) - 8usize];
["Offset of field: _GHashTableIter::dummy3"]
[::std::mem::offset_of!(_GHashTableIter, dummy3) - 16usize];
["Offset of field: _GHashTableIter::dummy4"]
[::std::mem::offset_of!(_GHashTableIter, dummy4) - 24usize];
["Offset of field: _GHashTableIter::dummy5"]
[::std::mem::offset_of!(_GHashTableIter, dummy5) - 28usize];
["Offset of field: _GHashTableIter::dummy6"]
[::std::mem::offset_of!(_GHashTableIter, dummy6) - 32usize];
};
unsafe extern "C" {
pub fn g_hash_table_new(hash_func: GHashFunc, key_equal_func: GEqualFunc) -> *mut GHashTable;
}
unsafe 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;
}
unsafe extern "C" {
pub fn g_hash_table_new_similar(other_hash_table: *mut GHashTable) -> *mut GHashTable;
}
unsafe extern "C" {
pub fn g_hash_table_destroy(hash_table: *mut GHashTable);
}
unsafe extern "C" {
pub fn g_hash_table_insert(
hash_table: *mut GHashTable,
key: gpointer,
value: gpointer,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_hash_table_replace(
hash_table: *mut GHashTable,
key: gpointer,
value: gpointer,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_hash_table_add(hash_table: *mut GHashTable, key: gpointer) -> gboolean;
}
unsafe extern "C" {
pub fn g_hash_table_remove(hash_table: *mut GHashTable, key: gconstpointer) -> gboolean;
}
unsafe extern "C" {
pub fn g_hash_table_remove_all(hash_table: *mut GHashTable);
}
unsafe extern "C" {
pub fn g_hash_table_steal(hash_table: *mut GHashTable, key: gconstpointer) -> gboolean;
}
unsafe extern "C" {
pub fn g_hash_table_steal_extended(
hash_table: *mut GHashTable,
lookup_key: gconstpointer,
stolen_key: *mut gpointer,
stolen_value: *mut gpointer,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_hash_table_steal_all(hash_table: *mut GHashTable);
}
unsafe extern "C" {
pub fn g_hash_table_steal_all_keys(hash_table: *mut GHashTable) -> *mut GPtrArray;
}
unsafe extern "C" {
pub fn g_hash_table_steal_all_values(hash_table: *mut GHashTable) -> *mut GPtrArray;
}
unsafe extern "C" {
pub fn g_hash_table_lookup(hash_table: *mut GHashTable, key: gconstpointer) -> gpointer;
}
unsafe extern "C" {
pub fn g_hash_table_contains(hash_table: *mut GHashTable, key: gconstpointer) -> gboolean;
}
unsafe extern "C" {
pub fn g_hash_table_lookup_extended(
hash_table: *mut GHashTable,
lookup_key: gconstpointer,
orig_key: *mut gpointer,
value: *mut gpointer,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_hash_table_foreach(hash_table: *mut GHashTable, func: GHFunc, user_data: gpointer);
}
unsafe extern "C" {
pub fn g_hash_table_find(
hash_table: *mut GHashTable,
predicate: GHRFunc,
user_data: gpointer,
) -> gpointer;
}
unsafe extern "C" {
pub fn g_hash_table_foreach_remove(
hash_table: *mut GHashTable,
func: GHRFunc,
user_data: gpointer,
) -> guint;
}
unsafe extern "C" {
pub fn g_hash_table_foreach_steal(
hash_table: *mut GHashTable,
func: GHRFunc,
user_data: gpointer,
) -> guint;
}
unsafe extern "C" {
pub fn g_hash_table_size(hash_table: *mut GHashTable) -> guint;
}
unsafe extern "C" {
pub fn g_hash_table_get_keys(hash_table: *mut GHashTable) -> *mut GList;
}
unsafe extern "C" {
pub fn g_hash_table_get_values(hash_table: *mut GHashTable) -> *mut GList;
}
unsafe extern "C" {
pub fn g_hash_table_get_keys_as_array(
hash_table: *mut GHashTable,
length: *mut guint,
) -> *mut gpointer;
}
unsafe extern "C" {
pub fn g_hash_table_get_keys_as_ptr_array(hash_table: *mut GHashTable) -> *mut GPtrArray;
}
unsafe extern "C" {
pub fn g_hash_table_get_values_as_ptr_array(hash_table: *mut GHashTable) -> *mut GPtrArray;
}
unsafe extern "C" {
pub fn g_hash_table_iter_init(iter: *mut GHashTableIter, hash_table: *mut GHashTable);
}
unsafe extern "C" {
pub fn g_hash_table_iter_next(
iter: *mut GHashTableIter,
key: *mut gpointer,
value: *mut gpointer,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_hash_table_iter_get_hash_table(iter: *mut GHashTableIter) -> *mut GHashTable;
}
unsafe extern "C" {
pub fn g_hash_table_iter_remove(iter: *mut GHashTableIter);
}
unsafe extern "C" {
pub fn g_hash_table_iter_replace(iter: *mut GHashTableIter, value: gpointer);
}
unsafe extern "C" {
pub fn g_hash_table_iter_steal(iter: *mut GHashTableIter);
}
unsafe extern "C" {
pub fn g_hash_table_ref(hash_table: *mut GHashTable) -> *mut GHashTable;
}
unsafe extern "C" {
pub fn g_hash_table_unref(hash_table: *mut GHashTable);
}
unsafe extern "C" {
pub fn g_str_equal(v1: gconstpointer, v2: gconstpointer) -> gboolean;
}
unsafe extern "C" {
pub fn g_str_hash(v: gconstpointer) -> guint;
}
unsafe extern "C" {
pub fn g_int_equal(v1: gconstpointer, v2: gconstpointer) -> gboolean;
}
unsafe extern "C" {
pub fn g_int_hash(v: gconstpointer) -> guint;
}
unsafe extern "C" {
pub fn g_int64_equal(v1: gconstpointer, v2: gconstpointer) -> gboolean;
}
unsafe extern "C" {
pub fn g_int64_hash(v: gconstpointer) -> guint;
}
unsafe extern "C" {
pub fn g_double_equal(v1: gconstpointer, v2: gconstpointer) -> gboolean;
}
unsafe extern "C" {
pub fn g_double_hash(v: gconstpointer) -> guint;
}
unsafe extern "C" {
pub fn g_direct_hash(v: gconstpointer) -> guint;
}
unsafe 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;
unsafe extern "C" {
pub fn g_hmac_new(digest_type: GChecksumType, key: *const guchar, key_len: gsize)
-> *mut GHmac;
}
unsafe extern "C" {
pub fn g_hmac_copy(hmac: *const GHmac) -> *mut GHmac;
}
unsafe extern "C" {
pub fn g_hmac_ref(hmac: *mut GHmac) -> *mut GHmac;
}
unsafe extern "C" {
pub fn g_hmac_unref(hmac: *mut GHmac);
}
unsafe extern "C" {
pub fn g_hmac_update(hmac: *mut GHmac, data: *const guchar, length: gssize);
}
unsafe extern "C" {
pub fn g_hmac_get_string(hmac: *mut GHmac) -> *const gchar;
}
unsafe extern "C" {
pub fn g_hmac_get_digest(hmac: *mut GHmac, buffer: *mut guint8, digest_len: *mut gsize);
}
unsafe 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;
}
unsafe 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;
}
unsafe 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)>;
pub const GHookFlagMask_G_HOOK_FLAG_ACTIVE: GHookFlagMask = 1;
pub const GHookFlagMask_G_HOOK_FLAG_IN_CALL: GHookFlagMask = 2;
pub const GHookFlagMask_G_HOOK_FLAG_MASK: GHookFlagMask = 15;
pub type GHookFlagMask = ::std::os::raw::c_uint;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GHookList {
pub seq_id: gulong,
pub _bitfield_align_1: [u16; 0],
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 3usize]>,
pub hooks: *mut GHook,
pub dummy3: gpointer,
pub finalize_hook: GHookFinalizeFunc,
pub dummy: [gpointer; 2usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GHookList"][::std::mem::size_of::<_GHookList>() - 56usize];
["Alignment of _GHookList"][::std::mem::align_of::<_GHookList>() - 8usize];
["Offset of field: _GHookList::seq_id"][::std::mem::offset_of!(_GHookList, seq_id) - 0usize];
["Offset of field: _GHookList::hooks"][::std::mem::offset_of!(_GHookList, hooks) - 16usize];
["Offset of field: _GHookList::dummy3"][::std::mem::offset_of!(_GHookList, dummy3) - 24usize];
["Offset of field: _GHookList::finalize_hook"]
[::std::mem::offset_of!(_GHookList, finalize_hook) - 32usize];
["Offset of field: _GHookList::dummy"][::std::mem::offset_of!(_GHookList, dummy) - 40usize];
};
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 unsafe fn hook_size_raw(this: *const Self) -> guint {
unsafe {
::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_get(
::std::ptr::addr_of!((*this)._bitfield_1),
0usize,
16u8,
) as u32)
}
}
#[inline]
pub unsafe fn set_hook_size_raw(this: *mut Self, val: guint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_set(
::std::ptr::addr_of_mut!((*this)._bitfield_1),
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 unsafe fn is_setup_raw(this: *const Self) -> guint {
unsafe {
::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_get(
::std::ptr::addr_of!((*this)._bitfield_1),
16usize,
1u8,
) as u32)
}
}
#[inline]
pub unsafe fn set_is_setup_raw(this: *mut Self, val: guint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_set(
::std::ptr::addr_of_mut!((*this)._bitfield_1),
16usize,
1u8,
val as u64,
)
}
}
#[inline]
pub fn new_bitfield_1(
hook_size: guint,
is_setup: guint,
) -> __BindgenBitfieldUnit<[u8; 3usize]> {
let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 3usize]> = 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, PartialEq, Eq)]
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,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GHook"][::std::mem::size_of::<_GHook>() - 64usize];
["Alignment of _GHook"][::std::mem::align_of::<_GHook>() - 8usize];
["Offset of field: _GHook::data"][::std::mem::offset_of!(_GHook, data) - 0usize];
["Offset of field: _GHook::next"][::std::mem::offset_of!(_GHook, next) - 8usize];
["Offset of field: _GHook::prev"][::std::mem::offset_of!(_GHook, prev) - 16usize];
["Offset of field: _GHook::ref_count"][::std::mem::offset_of!(_GHook, ref_count) - 24usize];
["Offset of field: _GHook::hook_id"][::std::mem::offset_of!(_GHook, hook_id) - 32usize];
["Offset of field: _GHook::flags"][::std::mem::offset_of!(_GHook, flags) - 40usize];
["Offset of field: _GHook::func"][::std::mem::offset_of!(_GHook, func) - 48usize];
["Offset of field: _GHook::destroy"][::std::mem::offset_of!(_GHook, destroy) - 56usize];
};
unsafe extern "C" {
pub fn g_hook_list_init(hook_list: *mut GHookList, hook_size: guint);
}
unsafe extern "C" {
pub fn g_hook_list_clear(hook_list: *mut GHookList);
}
unsafe extern "C" {
pub fn g_hook_alloc(hook_list: *mut GHookList) -> *mut GHook;
}
unsafe extern "C" {
pub fn g_hook_free(hook_list: *mut GHookList, hook: *mut GHook);
}
unsafe extern "C" {
pub fn g_hook_ref(hook_list: *mut GHookList, hook: *mut GHook) -> *mut GHook;
}
unsafe extern "C" {
pub fn g_hook_unref(hook_list: *mut GHookList, hook: *mut GHook);
}
unsafe extern "C" {
pub fn g_hook_destroy(hook_list: *mut GHookList, hook_id: gulong) -> gboolean;
}
unsafe extern "C" {
pub fn g_hook_destroy_link(hook_list: *mut GHookList, hook: *mut GHook);
}
unsafe extern "C" {
pub fn g_hook_prepend(hook_list: *mut GHookList, hook: *mut GHook);
}
unsafe extern "C" {
pub fn g_hook_insert_before(hook_list: *mut GHookList, sibling: *mut GHook, hook: *mut GHook);
}
unsafe extern "C" {
pub fn g_hook_insert_sorted(
hook_list: *mut GHookList,
hook: *mut GHook,
func: GHookCompareFunc,
);
}
unsafe extern "C" {
pub fn g_hook_get(hook_list: *mut GHookList, hook_id: gulong) -> *mut GHook;
}
unsafe extern "C" {
pub fn g_hook_find(
hook_list: *mut GHookList,
need_valids: gboolean,
func: GHookFindFunc,
data: gpointer,
) -> *mut GHook;
}
unsafe extern "C" {
pub fn g_hook_find_data(
hook_list: *mut GHookList,
need_valids: gboolean,
data: gpointer,
) -> *mut GHook;
}
unsafe extern "C" {
pub fn g_hook_find_func(
hook_list: *mut GHookList,
need_valids: gboolean,
func: gpointer,
) -> *mut GHook;
}
unsafe extern "C" {
pub fn g_hook_find_func_data(
hook_list: *mut GHookList,
need_valids: gboolean,
func: gpointer,
data: gpointer,
) -> *mut GHook;
}
unsafe extern "C" {
pub fn g_hook_first_valid(hook_list: *mut GHookList, may_be_in_call: gboolean) -> *mut GHook;
}
unsafe extern "C" {
pub fn g_hook_next_valid(
hook_list: *mut GHookList,
hook: *mut GHook,
may_be_in_call: gboolean,
) -> *mut GHook;
}
unsafe extern "C" {
pub fn g_hook_compare_ids(new_hook: *mut GHook, sibling: *mut GHook) -> gint;
}
unsafe extern "C" {
pub fn g_hook_list_invoke(hook_list: *mut GHookList, may_recurse: gboolean);
}
unsafe extern "C" {
pub fn g_hook_list_invoke_check(hook_list: *mut GHookList, may_recurse: gboolean);
}
unsafe extern "C" {
pub fn g_hook_list_marshal(
hook_list: *mut GHookList,
may_recurse: gboolean,
marshaller: GHookMarshaller,
marshal_data: gpointer,
);
}
unsafe extern "C" {
pub fn g_hook_list_marshal_check(
hook_list: *mut GHookList,
may_recurse: gboolean,
marshaller: GHookCheckMarshaller,
marshal_data: gpointer,
);
}
unsafe extern "C" {
pub fn g_hostname_is_non_ascii(hostname: *const gchar) -> gboolean;
}
unsafe extern "C" {
pub fn g_hostname_is_ascii_encoded(hostname: *const gchar) -> gboolean;
}
unsafe extern "C" {
pub fn g_hostname_is_ip_address(hostname: *const gchar) -> gboolean;
}
unsafe extern "C" {
pub fn g_hostname_to_ascii(hostname: *const gchar) -> *mut gchar;
}
unsafe 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, PartialEq, Eq)]
pub struct _GPollFD {
pub fd: gint,
pub events: gushort,
pub revents: gushort,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GPollFD"][::std::mem::size_of::<_GPollFD>() - 8usize];
["Alignment of _GPollFD"][::std::mem::align_of::<_GPollFD>() - 4usize];
["Offset of field: _GPollFD::fd"][::std::mem::offset_of!(_GPollFD, fd) - 0usize];
["Offset of field: _GPollFD::events"][::std::mem::offset_of!(_GPollFD, events) - 4usize];
["Offset of field: _GPollFD::revents"][::std::mem::offset_of!(_GPollFD, revents) - 6usize];
};
unsafe extern "C" {
pub fn g_poll(fds: *mut GPollFD, nfds: guint, timeout: gint) -> gint;
}
pub type GSList = _GSList;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GSList {
pub data: gpointer,
pub next: *mut GSList,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GSList"][::std::mem::size_of::<_GSList>() - 16usize];
["Alignment of _GSList"][::std::mem::align_of::<_GSList>() - 8usize];
["Offset of field: _GSList::data"][::std::mem::offset_of!(_GSList, data) - 0usize];
["Offset of field: _GSList::next"][::std::mem::offset_of!(_GSList, next) - 8usize];
};
unsafe extern "C" {
pub fn g_slist_alloc() -> *mut GSList;
}
unsafe extern "C" {
pub fn g_slist_free(list: *mut GSList);
}
unsafe extern "C" {
pub fn g_slist_free_1(list: *mut GSList);
}
unsafe extern "C" {
pub fn g_slist_free_full(list: *mut GSList, free_func: GDestroyNotify);
}
unsafe extern "C" {
pub fn g_slist_append(list: *mut GSList, data: gpointer) -> *mut GSList;
}
unsafe extern "C" {
pub fn g_slist_prepend(list: *mut GSList, data: gpointer) -> *mut GSList;
}
unsafe extern "C" {
pub fn g_slist_insert(list: *mut GSList, data: gpointer, position: gint) -> *mut GSList;
}
unsafe extern "C" {
pub fn g_slist_insert_sorted(
list: *mut GSList,
data: gpointer,
func: GCompareFunc,
) -> *mut GSList;
}
unsafe extern "C" {
pub fn g_slist_insert_sorted_with_data(
list: *mut GSList,
data: gpointer,
func: GCompareDataFunc,
user_data: gpointer,
) -> *mut GSList;
}
unsafe extern "C" {
pub fn g_slist_insert_before(
slist: *mut GSList,
sibling: *mut GSList,
data: gpointer,
) -> *mut GSList;
}
unsafe extern "C" {
pub fn g_slist_concat(list1: *mut GSList, list2: *mut GSList) -> *mut GSList;
}
unsafe extern "C" {
pub fn g_slist_remove(list: *mut GSList, data: gconstpointer) -> *mut GSList;
}
unsafe extern "C" {
pub fn g_slist_remove_all(list: *mut GSList, data: gconstpointer) -> *mut GSList;
}
unsafe extern "C" {
pub fn g_slist_remove_link(list: *mut GSList, link_: *mut GSList) -> *mut GSList;
}
unsafe extern "C" {
pub fn g_slist_delete_link(list: *mut GSList, link_: *mut GSList) -> *mut GSList;
}
unsafe extern "C" {
pub fn g_slist_reverse(list: *mut GSList) -> *mut GSList;
}
unsafe extern "C" {
pub fn g_slist_copy(list: *mut GSList) -> *mut GSList;
}
unsafe extern "C" {
pub fn g_slist_copy_deep(
list: *mut GSList,
func: GCopyFunc,
user_data: gpointer,
) -> *mut GSList;
}
unsafe extern "C" {
pub fn g_slist_nth(list: *mut GSList, n: guint) -> *mut GSList;
}
unsafe extern "C" {
pub fn g_slist_find(list: *mut GSList, data: gconstpointer) -> *mut GSList;
}
unsafe extern "C" {
pub fn g_slist_find_custom(
list: *mut GSList,
data: gconstpointer,
func: GCompareFunc,
) -> *mut GSList;
}
unsafe extern "C" {
pub fn g_slist_position(list: *mut GSList, llink: *mut GSList) -> gint;
}
unsafe extern "C" {
pub fn g_slist_index(list: *mut GSList, data: gconstpointer) -> gint;
}
unsafe extern "C" {
pub fn g_slist_last(list: *mut GSList) -> *mut GSList;
}
unsafe extern "C" {
pub fn g_slist_length(list: *mut GSList) -> guint;
}
unsafe extern "C" {
pub fn g_slist_foreach(list: *mut GSList, func: GFunc, user_data: gpointer);
}
unsafe extern "C" {
pub fn g_slist_sort(list: *mut GSList, compare_func: GCompareFunc) -> *mut GSList;
}
unsafe extern "C" {
pub fn g_slist_sort_with_data(
list: *mut GSList,
compare_func: GCompareDataFunc,
user_data: gpointer,
) -> *mut GSList;
}
unsafe extern "C" {
pub fn g_slist_nth_data(list: *mut GSList, n: guint) -> gpointer;
}
unsafe extern "C" {
pub fn g_clear_slist(slist_ptr: *mut *mut GSList, destroy: GDestroyNotify);
}
pub const GIOCondition_G_IO_IN: GIOCondition = 1;
pub const GIOCondition_G_IO_OUT: GIOCondition = 4;
pub const GIOCondition_G_IO_PRI: GIOCondition = 2;
pub const GIOCondition_G_IO_ERR: GIOCondition = 8;
pub const GIOCondition_G_IO_HUP: GIOCondition = 16;
pub const GIOCondition_G_IO_NVAL: GIOCondition = 32;
pub type GIOCondition = ::std::os::raw::c_uint;
pub const GMainContextFlags_G_MAIN_CONTEXT_FLAGS_NONE: GMainContextFlags = 0;
pub const GMainContextFlags_G_MAIN_CONTEXT_FLAGS_OWNERLESS_POLLING: GMainContextFlags = 1;
pub type GMainContextFlags = ::std::os::raw::c_uint;
#[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 GSourceOnceFunc = ::std::option::Option<unsafe extern "C" fn(user_data: gpointer)>;
pub type GChildWatchFunc =
::std::option::Option<unsafe extern "C" fn(pid: GPid, wait_status: gint, user_data: gpointer)>;
pub type GSourceDisposeFunc = ::std::option::Option<unsafe extern "C" fn(source: *mut GSource)>;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
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,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GSource"][::std::mem::size_of::<_GSource>() - 96usize];
["Alignment of _GSource"][::std::mem::align_of::<_GSource>() - 8usize];
["Offset of field: _GSource::callback_data"]
[::std::mem::offset_of!(_GSource, callback_data) - 0usize];
["Offset of field: _GSource::callback_funcs"]
[::std::mem::offset_of!(_GSource, callback_funcs) - 8usize];
["Offset of field: _GSource::source_funcs"]
[::std::mem::offset_of!(_GSource, source_funcs) - 16usize];
["Offset of field: _GSource::ref_count"][::std::mem::offset_of!(_GSource, ref_count) - 24usize];
["Offset of field: _GSource::context"][::std::mem::offset_of!(_GSource, context) - 32usize];
["Offset of field: _GSource::priority"][::std::mem::offset_of!(_GSource, priority) - 40usize];
["Offset of field: _GSource::flags"][::std::mem::offset_of!(_GSource, flags) - 44usize];
["Offset of field: _GSource::source_id"][::std::mem::offset_of!(_GSource, source_id) - 48usize];
["Offset of field: _GSource::poll_fds"][::std::mem::offset_of!(_GSource, poll_fds) - 56usize];
["Offset of field: _GSource::prev"][::std::mem::offset_of!(_GSource, prev) - 64usize];
["Offset of field: _GSource::next"][::std::mem::offset_of!(_GSource, next) - 72usize];
["Offset of field: _GSource::name"][::std::mem::offset_of!(_GSource, name) - 80usize];
["Offset of field: _GSource::priv_"][::std::mem::offset_of!(_GSource, priv_) - 88usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
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,
),
>,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GSourceCallbackFuncs"][::std::mem::size_of::<_GSourceCallbackFuncs>() - 24usize];
["Alignment of _GSourceCallbackFuncs"]
[::std::mem::align_of::<_GSourceCallbackFuncs>() - 8usize];
["Offset of field: _GSourceCallbackFuncs::ref_"]
[::std::mem::offset_of!(_GSourceCallbackFuncs, ref_) - 0usize];
["Offset of field: _GSourceCallbackFuncs::unref"]
[::std::mem::offset_of!(_GSourceCallbackFuncs, unref) - 8usize];
["Offset of field: _GSourceCallbackFuncs::get"]
[::std::mem::offset_of!(_GSourceCallbackFuncs, get) - 16usize];
};
pub type GSourceDummyMarshal = ::std::option::Option<unsafe extern "C" fn()>;
pub type GSourceFuncsPrepareFunc = ::std::option::Option<
unsafe extern "C" fn(source: *mut GSource, timeout_: *mut gint) -> gboolean,
>;
pub type GSourceFuncsCheckFunc =
::std::option::Option<unsafe extern "C" fn(source: *mut GSource) -> gboolean>;
pub type GSourceFuncsDispatchFunc = ::std::option::Option<
unsafe extern "C" fn(
source: *mut GSource,
callback: GSourceFunc,
user_data: gpointer,
) -> gboolean,
>;
pub type GSourceFuncsFinalizeFunc =
::std::option::Option<unsafe extern "C" fn(source: *mut GSource)>;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GSourceFuncs {
pub prepare: GSourceFuncsPrepareFunc,
pub check: GSourceFuncsCheckFunc,
pub dispatch: GSourceFuncsDispatchFunc,
pub finalize: GSourceFuncsFinalizeFunc,
pub closure_callback: GSourceFunc,
pub closure_marshal: GSourceDummyMarshal,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GSourceFuncs"][::std::mem::size_of::<_GSourceFuncs>() - 48usize];
["Alignment of _GSourceFuncs"][::std::mem::align_of::<_GSourceFuncs>() - 8usize];
["Offset of field: _GSourceFuncs::prepare"]
[::std::mem::offset_of!(_GSourceFuncs, prepare) - 0usize];
["Offset of field: _GSourceFuncs::check"]
[::std::mem::offset_of!(_GSourceFuncs, check) - 8usize];
["Offset of field: _GSourceFuncs::dispatch"]
[::std::mem::offset_of!(_GSourceFuncs, dispatch) - 16usize];
["Offset of field: _GSourceFuncs::finalize"]
[::std::mem::offset_of!(_GSourceFuncs, finalize) - 24usize];
["Offset of field: _GSourceFuncs::closure_callback"]
[::std::mem::offset_of!(_GSourceFuncs, closure_callback) - 32usize];
["Offset of field: _GSourceFuncs::closure_marshal"]
[::std::mem::offset_of!(_GSourceFuncs, closure_marshal) - 40usize];
};
unsafe extern "C" {
pub fn g_main_context_new() -> *mut GMainContext;
}
unsafe extern "C" {
pub fn g_main_context_new_with_flags(flags: GMainContextFlags) -> *mut GMainContext;
}
unsafe extern "C" {
pub fn g_main_context_ref(context: *mut GMainContext) -> *mut GMainContext;
}
unsafe extern "C" {
pub fn g_main_context_unref(context: *mut GMainContext);
}
unsafe extern "C" {
pub fn g_main_context_default() -> *mut GMainContext;
}
unsafe extern "C" {
pub fn g_main_context_iteration(context: *mut GMainContext, may_block: gboolean) -> gboolean;
}
unsafe extern "C" {
pub fn g_main_context_pending(context: *mut GMainContext) -> gboolean;
}
unsafe extern "C" {
pub fn g_main_context_find_source_by_id(
context: *mut GMainContext,
source_id: guint,
) -> *mut GSource;
}
unsafe extern "C" {
pub fn g_main_context_find_source_by_user_data(
context: *mut GMainContext,
user_data: gpointer,
) -> *mut GSource;
}
unsafe extern "C" {
pub fn g_main_context_find_source_by_funcs_user_data(
context: *mut GMainContext,
funcs: *mut GSourceFuncs,
user_data: gpointer,
) -> *mut GSource;
}
unsafe extern "C" {
pub fn g_main_context_wakeup(context: *mut GMainContext);
}
unsafe extern "C" {
pub fn g_main_context_acquire(context: *mut GMainContext) -> gboolean;
}
unsafe extern "C" {
pub fn g_main_context_release(context: *mut GMainContext);
}
unsafe extern "C" {
pub fn g_main_context_is_owner(context: *mut GMainContext) -> gboolean;
}
unsafe extern "C" {
pub fn g_main_context_wait(
context: *mut GMainContext,
cond: *mut GCond,
mutex: *mut GMutex,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_main_context_prepare(context: *mut GMainContext, priority: *mut gint) -> gboolean;
}
unsafe extern "C" {
pub fn g_main_context_query(
context: *mut GMainContext,
max_priority: gint,
timeout_: *mut gint,
fds: *mut GPollFD,
n_fds: gint,
) -> gint;
}
unsafe extern "C" {
pub fn g_main_context_check(
context: *mut GMainContext,
max_priority: gint,
fds: *mut GPollFD,
n_fds: gint,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_main_context_dispatch(context: *mut GMainContext);
}
unsafe extern "C" {
pub fn g_main_context_set_poll_func(context: *mut GMainContext, func: GPollFunc);
}
unsafe extern "C" {
pub fn g_main_context_get_poll_func(context: *mut GMainContext) -> GPollFunc;
}
unsafe extern "C" {
pub fn g_main_context_add_poll(context: *mut GMainContext, fd: *mut GPollFD, priority: gint);
}
unsafe extern "C" {
pub fn g_main_context_remove_poll(context: *mut GMainContext, fd: *mut GPollFD);
}
unsafe extern "C" {
pub fn g_main_depth() -> gint;
}
unsafe extern "C" {
pub fn g_main_current_source() -> *mut GSource;
}
unsafe extern "C" {
pub fn g_main_context_push_thread_default(context: *mut GMainContext);
}
unsafe extern "C" {
pub fn g_main_context_pop_thread_default(context: *mut GMainContext);
}
unsafe extern "C" {
pub fn g_main_context_get_thread_default() -> *mut GMainContext;
}
unsafe extern "C" {
pub fn g_main_context_ref_thread_default() -> *mut GMainContext;
}
pub type GMainContextPusher = ::std::os::raw::c_void;
unsafe extern "C" {
pub fn g_main_loop_new(context: *mut GMainContext, is_running: gboolean) -> *mut GMainLoop;
}
unsafe extern "C" {
pub fn g_main_loop_run(loop_: *mut GMainLoop);
}
unsafe extern "C" {
pub fn g_main_loop_quit(loop_: *mut GMainLoop);
}
unsafe extern "C" {
pub fn g_main_loop_ref(loop_: *mut GMainLoop) -> *mut GMainLoop;
}
unsafe extern "C" {
pub fn g_main_loop_unref(loop_: *mut GMainLoop);
}
unsafe extern "C" {
pub fn g_main_loop_is_running(loop_: *mut GMainLoop) -> gboolean;
}
unsafe extern "C" {
pub fn g_main_loop_get_context(loop_: *mut GMainLoop) -> *mut GMainContext;
}
unsafe extern "C" {
pub fn g_source_new(source_funcs: *mut GSourceFuncs, struct_size: guint) -> *mut GSource;
}
unsafe extern "C" {
pub fn g_source_set_dispose_function(source: *mut GSource, dispose: GSourceDisposeFunc);
}
unsafe extern "C" {
pub fn g_source_ref(source: *mut GSource) -> *mut GSource;
}
unsafe extern "C" {
pub fn g_source_unref(source: *mut GSource);
}
unsafe extern "C" {
pub fn g_source_attach(source: *mut GSource, context: *mut GMainContext) -> guint;
}
unsafe extern "C" {
pub fn g_source_destroy(source: *mut GSource);
}
unsafe extern "C" {
pub fn g_source_set_priority(source: *mut GSource, priority: gint);
}
unsafe extern "C" {
pub fn g_source_get_priority(source: *mut GSource) -> gint;
}
unsafe extern "C" {
pub fn g_source_set_can_recurse(source: *mut GSource, can_recurse: gboolean);
}
unsafe extern "C" {
pub fn g_source_get_can_recurse(source: *mut GSource) -> gboolean;
}
unsafe extern "C" {
pub fn g_source_get_id(source: *mut GSource) -> guint;
}
unsafe extern "C" {
pub fn g_source_get_context(source: *mut GSource) -> *mut GMainContext;
}
unsafe extern "C" {
pub fn g_source_dup_context(source: *mut GSource) -> *mut GMainContext;
}
unsafe extern "C" {
pub fn g_source_set_callback(
source: *mut GSource,
func: GSourceFunc,
data: gpointer,
notify: GDestroyNotify,
);
}
unsafe extern "C" {
pub fn g_source_set_funcs(source: *mut GSource, funcs: *mut GSourceFuncs);
}
unsafe extern "C" {
pub fn g_source_is_destroyed(source: *mut GSource) -> gboolean;
}
unsafe extern "C" {
pub fn g_source_set_name(source: *mut GSource, name: *const ::std::os::raw::c_char);
}
unsafe extern "C" {
pub fn g_source_set_static_name(source: *mut GSource, name: *const ::std::os::raw::c_char);
}
unsafe extern "C" {
pub fn g_source_get_name(source: *mut GSource) -> *const ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn g_source_set_name_by_id(tag: guint, name: *const ::std::os::raw::c_char);
}
unsafe extern "C" {
pub fn g_source_set_ready_time(source: *mut GSource, ready_time: gint64);
}
unsafe extern "C" {
pub fn g_source_get_ready_time(source: *mut GSource) -> gint64;
}
unsafe extern "C" {
pub fn g_source_add_unix_fd(source: *mut GSource, fd: gint, events: GIOCondition) -> gpointer;
}
unsafe extern "C" {
pub fn g_source_modify_unix_fd(source: *mut GSource, tag: gpointer, new_events: GIOCondition);
}
unsafe extern "C" {
pub fn g_source_remove_unix_fd(source: *mut GSource, tag: gpointer);
}
unsafe extern "C" {
pub fn g_source_query_unix_fd(source: *mut GSource, tag: gpointer) -> GIOCondition;
}
unsafe extern "C" {
pub fn g_source_set_callback_indirect(
source: *mut GSource,
callback_data: gpointer,
callback_funcs: *mut GSourceCallbackFuncs,
);
}
unsafe extern "C" {
pub fn g_source_add_poll(source: *mut GSource, fd: *mut GPollFD);
}
unsafe extern "C" {
pub fn g_source_remove_poll(source: *mut GSource, fd: *mut GPollFD);
}
unsafe extern "C" {
pub fn g_source_add_child_source(source: *mut GSource, child_source: *mut GSource);
}
unsafe extern "C" {
pub fn g_source_remove_child_source(source: *mut GSource, child_source: *mut GSource);
}
unsafe extern "C" {
pub fn g_source_get_current_time(source: *mut GSource, timeval: *mut GTimeVal);
}
unsafe extern "C" {
pub fn g_source_get_time(source: *mut GSource) -> gint64;
}
unsafe extern "C" {
pub fn g_idle_source_new() -> *mut GSource;
}
unsafe extern "C" {
pub fn g_child_watch_source_new(pid: GPid) -> *mut GSource;
}
unsafe extern "C" {
pub fn g_timeout_source_new(interval: guint) -> *mut GSource;
}
unsafe extern "C" {
pub fn g_timeout_source_new_seconds(interval: guint) -> *mut GSource;
}
unsafe extern "C" {
pub fn g_get_current_time(result: *mut GTimeVal);
}
unsafe extern "C" {
pub fn g_get_monotonic_time() -> gint64;
}
unsafe extern "C" {
pub fn g_get_real_time() -> gint64;
}
unsafe extern "C" {
pub fn g_source_remove(tag: guint) -> gboolean;
}
unsafe extern "C" {
pub fn g_source_remove_by_user_data(user_data: gpointer) -> gboolean;
}
unsafe 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)>;
unsafe extern "C" {
pub fn g_clear_handle_id(tag_ptr: *mut guint, clear_func: GClearHandleFunc);
}
unsafe extern "C" {
pub fn g_timeout_add_full(
priority: gint,
interval: guint,
function: GSourceFunc,
data: gpointer,
notify: GDestroyNotify,
) -> guint;
}
unsafe extern "C" {
pub fn g_timeout_add(interval: guint, function: GSourceFunc, data: gpointer) -> guint;
}
unsafe extern "C" {
pub fn g_timeout_add_once(interval: guint, function: GSourceOnceFunc, data: gpointer) -> guint;
}
unsafe extern "C" {
pub fn g_timeout_add_seconds_full(
priority: gint,
interval: guint,
function: GSourceFunc,
data: gpointer,
notify: GDestroyNotify,
) -> guint;
}
unsafe extern "C" {
pub fn g_timeout_add_seconds(interval: guint, function: GSourceFunc, data: gpointer) -> guint;
}
unsafe extern "C" {
pub fn g_timeout_add_seconds_once(
interval: guint,
function: GSourceOnceFunc,
data: gpointer,
) -> guint;
}
unsafe extern "C" {
pub fn g_child_watch_add_full(
priority: gint,
pid: GPid,
function: GChildWatchFunc,
data: gpointer,
notify: GDestroyNotify,
) -> guint;
}
unsafe extern "C" {
pub fn g_child_watch_add(pid: GPid, function: GChildWatchFunc, data: gpointer) -> guint;
}
unsafe extern "C" {
pub fn g_idle_add(function: GSourceFunc, data: gpointer) -> guint;
}
unsafe extern "C" {
pub fn g_idle_add_full(
priority: gint,
function: GSourceFunc,
data: gpointer,
notify: GDestroyNotify,
) -> guint;
}
unsafe extern "C" {
pub fn g_idle_add_once(function: GSourceOnceFunc, data: gpointer) -> guint;
}
unsafe extern "C" {
pub fn g_idle_remove_by_data(data: gpointer) -> gboolean;
}
unsafe extern "C" {
pub fn g_main_context_invoke_full(
context: *mut GMainContext,
priority: gint,
function: GSourceFunc,
data: gpointer,
notify: GDestroyNotify,
);
}
unsafe extern "C" {
pub fn g_main_context_invoke(context: *mut GMainContext, function: GSourceFunc, data: gpointer);
}
unsafe extern "C" {
pub static mut g_timeout_funcs: GSourceFuncs;
}
unsafe extern "C" {
pub static mut g_child_watch_funcs: GSourceFuncs;
}
unsafe extern "C" {
pub static mut g_idle_funcs: GSourceFuncs;
}
unsafe extern "C" {
pub static mut g_unix_signal_funcs: GSourceFuncs;
}
unsafe extern "C" {
pub static mut g_unix_fd_source_funcs: GSourceFuncs;
}
pub type gunichar = guint32;
pub type gunichar2 = guint16;
pub const GUnicodeType_G_UNICODE_CONTROL: GUnicodeType = 0;
pub const GUnicodeType_G_UNICODE_FORMAT: GUnicodeType = 1;
pub const GUnicodeType_G_UNICODE_UNASSIGNED: GUnicodeType = 2;
pub const GUnicodeType_G_UNICODE_PRIVATE_USE: GUnicodeType = 3;
pub const GUnicodeType_G_UNICODE_SURROGATE: GUnicodeType = 4;
pub const GUnicodeType_G_UNICODE_LOWERCASE_LETTER: GUnicodeType = 5;
pub const GUnicodeType_G_UNICODE_MODIFIER_LETTER: GUnicodeType = 6;
pub const GUnicodeType_G_UNICODE_OTHER_LETTER: GUnicodeType = 7;
pub const GUnicodeType_G_UNICODE_TITLECASE_LETTER: GUnicodeType = 8;
pub const GUnicodeType_G_UNICODE_UPPERCASE_LETTER: GUnicodeType = 9;
pub const GUnicodeType_G_UNICODE_SPACING_MARK: GUnicodeType = 10;
pub const GUnicodeType_G_UNICODE_ENCLOSING_MARK: GUnicodeType = 11;
pub const GUnicodeType_G_UNICODE_NON_SPACING_MARK: GUnicodeType = 12;
pub const GUnicodeType_G_UNICODE_DECIMAL_NUMBER: GUnicodeType = 13;
pub const GUnicodeType_G_UNICODE_LETTER_NUMBER: GUnicodeType = 14;
pub const GUnicodeType_G_UNICODE_OTHER_NUMBER: GUnicodeType = 15;
pub const GUnicodeType_G_UNICODE_CONNECT_PUNCTUATION: GUnicodeType = 16;
pub const GUnicodeType_G_UNICODE_DASH_PUNCTUATION: GUnicodeType = 17;
pub const GUnicodeType_G_UNICODE_CLOSE_PUNCTUATION: GUnicodeType = 18;
pub const GUnicodeType_G_UNICODE_FINAL_PUNCTUATION: GUnicodeType = 19;
pub const GUnicodeType_G_UNICODE_INITIAL_PUNCTUATION: GUnicodeType = 20;
pub const GUnicodeType_G_UNICODE_OTHER_PUNCTUATION: GUnicodeType = 21;
pub const GUnicodeType_G_UNICODE_OPEN_PUNCTUATION: GUnicodeType = 22;
pub const GUnicodeType_G_UNICODE_CURRENCY_SYMBOL: GUnicodeType = 23;
pub const GUnicodeType_G_UNICODE_MODIFIER_SYMBOL: GUnicodeType = 24;
pub const GUnicodeType_G_UNICODE_MATH_SYMBOL: GUnicodeType = 25;
pub const GUnicodeType_G_UNICODE_OTHER_SYMBOL: GUnicodeType = 26;
pub const GUnicodeType_G_UNICODE_LINE_SEPARATOR: GUnicodeType = 27;
pub const GUnicodeType_G_UNICODE_PARAGRAPH_SEPARATOR: GUnicodeType = 28;
pub const GUnicodeType_G_UNICODE_SPACE_SEPARATOR: GUnicodeType = 29;
pub type GUnicodeType = ::std::os::raw::c_uint;
pub const GUnicodeBreakType_G_UNICODE_BREAK_MANDATORY: GUnicodeBreakType = 0;
pub const GUnicodeBreakType_G_UNICODE_BREAK_CARRIAGE_RETURN: GUnicodeBreakType = 1;
pub const GUnicodeBreakType_G_UNICODE_BREAK_LINE_FEED: GUnicodeBreakType = 2;
pub const GUnicodeBreakType_G_UNICODE_BREAK_COMBINING_MARK: GUnicodeBreakType = 3;
pub const GUnicodeBreakType_G_UNICODE_BREAK_SURROGATE: GUnicodeBreakType = 4;
pub const GUnicodeBreakType_G_UNICODE_BREAK_ZERO_WIDTH_SPACE: GUnicodeBreakType = 5;
pub const GUnicodeBreakType_G_UNICODE_BREAK_INSEPARABLE: GUnicodeBreakType = 6;
pub const GUnicodeBreakType_G_UNICODE_BREAK_NON_BREAKING_GLUE: GUnicodeBreakType = 7;
pub const GUnicodeBreakType_G_UNICODE_BREAK_CONTINGENT: GUnicodeBreakType = 8;
pub const GUnicodeBreakType_G_UNICODE_BREAK_SPACE: GUnicodeBreakType = 9;
pub const GUnicodeBreakType_G_UNICODE_BREAK_AFTER: GUnicodeBreakType = 10;
pub const GUnicodeBreakType_G_UNICODE_BREAK_BEFORE: GUnicodeBreakType = 11;
pub const GUnicodeBreakType_G_UNICODE_BREAK_BEFORE_AND_AFTER: GUnicodeBreakType = 12;
pub const GUnicodeBreakType_G_UNICODE_BREAK_HYPHEN: GUnicodeBreakType = 13;
pub const GUnicodeBreakType_G_UNICODE_BREAK_NON_STARTER: GUnicodeBreakType = 14;
pub const GUnicodeBreakType_G_UNICODE_BREAK_OPEN_PUNCTUATION: GUnicodeBreakType = 15;
pub const GUnicodeBreakType_G_UNICODE_BREAK_CLOSE_PUNCTUATION: GUnicodeBreakType = 16;
pub const GUnicodeBreakType_G_UNICODE_BREAK_QUOTATION: GUnicodeBreakType = 17;
pub const GUnicodeBreakType_G_UNICODE_BREAK_EXCLAMATION: GUnicodeBreakType = 18;
pub const GUnicodeBreakType_G_UNICODE_BREAK_IDEOGRAPHIC: GUnicodeBreakType = 19;
pub const GUnicodeBreakType_G_UNICODE_BREAK_NUMERIC: GUnicodeBreakType = 20;
pub const GUnicodeBreakType_G_UNICODE_BREAK_INFIX_SEPARATOR: GUnicodeBreakType = 21;
pub const GUnicodeBreakType_G_UNICODE_BREAK_SYMBOL: GUnicodeBreakType = 22;
pub const GUnicodeBreakType_G_UNICODE_BREAK_ALPHABETIC: GUnicodeBreakType = 23;
pub const GUnicodeBreakType_G_UNICODE_BREAK_PREFIX: GUnicodeBreakType = 24;
pub const GUnicodeBreakType_G_UNICODE_BREAK_POSTFIX: GUnicodeBreakType = 25;
pub const GUnicodeBreakType_G_UNICODE_BREAK_COMPLEX_CONTEXT: GUnicodeBreakType = 26;
pub const GUnicodeBreakType_G_UNICODE_BREAK_AMBIGUOUS: GUnicodeBreakType = 27;
pub const GUnicodeBreakType_G_UNICODE_BREAK_UNKNOWN: GUnicodeBreakType = 28;
pub const GUnicodeBreakType_G_UNICODE_BREAK_NEXT_LINE: GUnicodeBreakType = 29;
pub const GUnicodeBreakType_G_UNICODE_BREAK_WORD_JOINER: GUnicodeBreakType = 30;
pub const GUnicodeBreakType_G_UNICODE_BREAK_HANGUL_L_JAMO: GUnicodeBreakType = 31;
pub const GUnicodeBreakType_G_UNICODE_BREAK_HANGUL_V_JAMO: GUnicodeBreakType = 32;
pub const GUnicodeBreakType_G_UNICODE_BREAK_HANGUL_T_JAMO: GUnicodeBreakType = 33;
pub const GUnicodeBreakType_G_UNICODE_BREAK_HANGUL_LV_SYLLABLE: GUnicodeBreakType = 34;
pub const GUnicodeBreakType_G_UNICODE_BREAK_HANGUL_LVT_SYLLABLE: GUnicodeBreakType = 35;
pub const GUnicodeBreakType_G_UNICODE_BREAK_CLOSE_PARANTHESIS: GUnicodeBreakType = 36;
pub const GUnicodeBreakType_G_UNICODE_BREAK_CLOSE_PARENTHESIS: GUnicodeBreakType = 36;
pub const GUnicodeBreakType_G_UNICODE_BREAK_CONDITIONAL_JAPANESE_STARTER: GUnicodeBreakType = 37;
pub const GUnicodeBreakType_G_UNICODE_BREAK_HEBREW_LETTER: GUnicodeBreakType = 38;
pub const GUnicodeBreakType_G_UNICODE_BREAK_REGIONAL_INDICATOR: GUnicodeBreakType = 39;
pub const GUnicodeBreakType_G_UNICODE_BREAK_EMOJI_BASE: GUnicodeBreakType = 40;
pub const GUnicodeBreakType_G_UNICODE_BREAK_EMOJI_MODIFIER: GUnicodeBreakType = 41;
pub const GUnicodeBreakType_G_UNICODE_BREAK_ZERO_WIDTH_JOINER: GUnicodeBreakType = 42;
pub const GUnicodeBreakType_G_UNICODE_BREAK_AKSARA: GUnicodeBreakType = 43;
pub const GUnicodeBreakType_G_UNICODE_BREAK_AKSARA_PRE_BASE: GUnicodeBreakType = 44;
pub const GUnicodeBreakType_G_UNICODE_BREAK_AKSARA_START: GUnicodeBreakType = 45;
pub const GUnicodeBreakType_G_UNICODE_BREAK_VIRAMA_FINAL: GUnicodeBreakType = 46;
pub const GUnicodeBreakType_G_UNICODE_BREAK_VIRAMA: GUnicodeBreakType = 47;
pub type GUnicodeBreakType = ::std::os::raw::c_uint;
pub const GUnicodeScript_G_UNICODE_SCRIPT_INVALID_CODE: GUnicodeScript = -1;
pub const GUnicodeScript_G_UNICODE_SCRIPT_COMMON: GUnicodeScript = 0;
pub const GUnicodeScript_G_UNICODE_SCRIPT_INHERITED: GUnicodeScript = 1;
pub const GUnicodeScript_G_UNICODE_SCRIPT_ARABIC: GUnicodeScript = 2;
pub const GUnicodeScript_G_UNICODE_SCRIPT_ARMENIAN: GUnicodeScript = 3;
pub const GUnicodeScript_G_UNICODE_SCRIPT_BENGALI: GUnicodeScript = 4;
pub const GUnicodeScript_G_UNICODE_SCRIPT_BOPOMOFO: GUnicodeScript = 5;
pub const GUnicodeScript_G_UNICODE_SCRIPT_CHEROKEE: GUnicodeScript = 6;
pub const GUnicodeScript_G_UNICODE_SCRIPT_COPTIC: GUnicodeScript = 7;
pub const GUnicodeScript_G_UNICODE_SCRIPT_CYRILLIC: GUnicodeScript = 8;
pub const GUnicodeScript_G_UNICODE_SCRIPT_DESERET: GUnicodeScript = 9;
pub const GUnicodeScript_G_UNICODE_SCRIPT_DEVANAGARI: GUnicodeScript = 10;
pub const GUnicodeScript_G_UNICODE_SCRIPT_ETHIOPIC: GUnicodeScript = 11;
pub const GUnicodeScript_G_UNICODE_SCRIPT_GEORGIAN: GUnicodeScript = 12;
pub const GUnicodeScript_G_UNICODE_SCRIPT_GOTHIC: GUnicodeScript = 13;
pub const GUnicodeScript_G_UNICODE_SCRIPT_GREEK: GUnicodeScript = 14;
pub const GUnicodeScript_G_UNICODE_SCRIPT_GUJARATI: GUnicodeScript = 15;
pub const GUnicodeScript_G_UNICODE_SCRIPT_GURMUKHI: GUnicodeScript = 16;
pub const GUnicodeScript_G_UNICODE_SCRIPT_HAN: GUnicodeScript = 17;
pub const GUnicodeScript_G_UNICODE_SCRIPT_HANGUL: GUnicodeScript = 18;
pub const GUnicodeScript_G_UNICODE_SCRIPT_HEBREW: GUnicodeScript = 19;
pub const GUnicodeScript_G_UNICODE_SCRIPT_HIRAGANA: GUnicodeScript = 20;
pub const GUnicodeScript_G_UNICODE_SCRIPT_KANNADA: GUnicodeScript = 21;
pub const GUnicodeScript_G_UNICODE_SCRIPT_KATAKANA: GUnicodeScript = 22;
pub const GUnicodeScript_G_UNICODE_SCRIPT_KHMER: GUnicodeScript = 23;
pub const GUnicodeScript_G_UNICODE_SCRIPT_LAO: GUnicodeScript = 24;
pub const GUnicodeScript_G_UNICODE_SCRIPT_LATIN: GUnicodeScript = 25;
pub const GUnicodeScript_G_UNICODE_SCRIPT_MALAYALAM: GUnicodeScript = 26;
pub const GUnicodeScript_G_UNICODE_SCRIPT_MONGOLIAN: GUnicodeScript = 27;
pub const GUnicodeScript_G_UNICODE_SCRIPT_MYANMAR: GUnicodeScript = 28;
pub const GUnicodeScript_G_UNICODE_SCRIPT_OGHAM: GUnicodeScript = 29;
pub const GUnicodeScript_G_UNICODE_SCRIPT_OLD_ITALIC: GUnicodeScript = 30;
pub const GUnicodeScript_G_UNICODE_SCRIPT_ORIYA: GUnicodeScript = 31;
pub const GUnicodeScript_G_UNICODE_SCRIPT_RUNIC: GUnicodeScript = 32;
pub const GUnicodeScript_G_UNICODE_SCRIPT_SINHALA: GUnicodeScript = 33;
pub const GUnicodeScript_G_UNICODE_SCRIPT_SYRIAC: GUnicodeScript = 34;
pub const GUnicodeScript_G_UNICODE_SCRIPT_TAMIL: GUnicodeScript = 35;
pub const GUnicodeScript_G_UNICODE_SCRIPT_TELUGU: GUnicodeScript = 36;
pub const GUnicodeScript_G_UNICODE_SCRIPT_THAANA: GUnicodeScript = 37;
pub const GUnicodeScript_G_UNICODE_SCRIPT_THAI: GUnicodeScript = 38;
pub const GUnicodeScript_G_UNICODE_SCRIPT_TIBETAN: GUnicodeScript = 39;
pub const GUnicodeScript_G_UNICODE_SCRIPT_CANADIAN_ABORIGINAL: GUnicodeScript = 40;
pub const GUnicodeScript_G_UNICODE_SCRIPT_YI: GUnicodeScript = 41;
pub const GUnicodeScript_G_UNICODE_SCRIPT_TAGALOG: GUnicodeScript = 42;
pub const GUnicodeScript_G_UNICODE_SCRIPT_HANUNOO: GUnicodeScript = 43;
pub const GUnicodeScript_G_UNICODE_SCRIPT_BUHID: GUnicodeScript = 44;
pub const GUnicodeScript_G_UNICODE_SCRIPT_TAGBANWA: GUnicodeScript = 45;
pub const GUnicodeScript_G_UNICODE_SCRIPT_BRAILLE: GUnicodeScript = 46;
pub const GUnicodeScript_G_UNICODE_SCRIPT_CYPRIOT: GUnicodeScript = 47;
pub const GUnicodeScript_G_UNICODE_SCRIPT_LIMBU: GUnicodeScript = 48;
pub const GUnicodeScript_G_UNICODE_SCRIPT_OSMANYA: GUnicodeScript = 49;
pub const GUnicodeScript_G_UNICODE_SCRIPT_SHAVIAN: GUnicodeScript = 50;
pub const GUnicodeScript_G_UNICODE_SCRIPT_LINEAR_B: GUnicodeScript = 51;
pub const GUnicodeScript_G_UNICODE_SCRIPT_TAI_LE: GUnicodeScript = 52;
pub const GUnicodeScript_G_UNICODE_SCRIPT_UGARITIC: GUnicodeScript = 53;
pub const GUnicodeScript_G_UNICODE_SCRIPT_NEW_TAI_LUE: GUnicodeScript = 54;
pub const GUnicodeScript_G_UNICODE_SCRIPT_BUGINESE: GUnicodeScript = 55;
pub const GUnicodeScript_G_UNICODE_SCRIPT_GLAGOLITIC: GUnicodeScript = 56;
pub const GUnicodeScript_G_UNICODE_SCRIPT_TIFINAGH: GUnicodeScript = 57;
pub const GUnicodeScript_G_UNICODE_SCRIPT_SYLOTI_NAGRI: GUnicodeScript = 58;
pub const GUnicodeScript_G_UNICODE_SCRIPT_OLD_PERSIAN: GUnicodeScript = 59;
pub const GUnicodeScript_G_UNICODE_SCRIPT_KHAROSHTHI: GUnicodeScript = 60;
pub const GUnicodeScript_G_UNICODE_SCRIPT_UNKNOWN: GUnicodeScript = 61;
pub const GUnicodeScript_G_UNICODE_SCRIPT_BALINESE: GUnicodeScript = 62;
pub const GUnicodeScript_G_UNICODE_SCRIPT_CUNEIFORM: GUnicodeScript = 63;
pub const GUnicodeScript_G_UNICODE_SCRIPT_PHOENICIAN: GUnicodeScript = 64;
pub const GUnicodeScript_G_UNICODE_SCRIPT_PHAGS_PA: GUnicodeScript = 65;
pub const GUnicodeScript_G_UNICODE_SCRIPT_NKO: GUnicodeScript = 66;
pub const GUnicodeScript_G_UNICODE_SCRIPT_KAYAH_LI: GUnicodeScript = 67;
pub const GUnicodeScript_G_UNICODE_SCRIPT_LEPCHA: GUnicodeScript = 68;
pub const GUnicodeScript_G_UNICODE_SCRIPT_REJANG: GUnicodeScript = 69;
pub const GUnicodeScript_G_UNICODE_SCRIPT_SUNDANESE: GUnicodeScript = 70;
pub const GUnicodeScript_G_UNICODE_SCRIPT_SAURASHTRA: GUnicodeScript = 71;
pub const GUnicodeScript_G_UNICODE_SCRIPT_CHAM: GUnicodeScript = 72;
pub const GUnicodeScript_G_UNICODE_SCRIPT_OL_CHIKI: GUnicodeScript = 73;
pub const GUnicodeScript_G_UNICODE_SCRIPT_VAI: GUnicodeScript = 74;
pub const GUnicodeScript_G_UNICODE_SCRIPT_CARIAN: GUnicodeScript = 75;
pub const GUnicodeScript_G_UNICODE_SCRIPT_LYCIAN: GUnicodeScript = 76;
pub const GUnicodeScript_G_UNICODE_SCRIPT_LYDIAN: GUnicodeScript = 77;
pub const GUnicodeScript_G_UNICODE_SCRIPT_AVESTAN: GUnicodeScript = 78;
pub const GUnicodeScript_G_UNICODE_SCRIPT_BAMUM: GUnicodeScript = 79;
pub const GUnicodeScript_G_UNICODE_SCRIPT_EGYPTIAN_HIEROGLYPHS: GUnicodeScript = 80;
pub const GUnicodeScript_G_UNICODE_SCRIPT_IMPERIAL_ARAMAIC: GUnicodeScript = 81;
pub const GUnicodeScript_G_UNICODE_SCRIPT_INSCRIPTIONAL_PAHLAVI: GUnicodeScript = 82;
pub const GUnicodeScript_G_UNICODE_SCRIPT_INSCRIPTIONAL_PARTHIAN: GUnicodeScript = 83;
pub const GUnicodeScript_G_UNICODE_SCRIPT_JAVANESE: GUnicodeScript = 84;
pub const GUnicodeScript_G_UNICODE_SCRIPT_KAITHI: GUnicodeScript = 85;
pub const GUnicodeScript_G_UNICODE_SCRIPT_LISU: GUnicodeScript = 86;
pub const GUnicodeScript_G_UNICODE_SCRIPT_MEETEI_MAYEK: GUnicodeScript = 87;
pub const GUnicodeScript_G_UNICODE_SCRIPT_OLD_SOUTH_ARABIAN: GUnicodeScript = 88;
pub const GUnicodeScript_G_UNICODE_SCRIPT_OLD_TURKIC: GUnicodeScript = 89;
pub const GUnicodeScript_G_UNICODE_SCRIPT_SAMARITAN: GUnicodeScript = 90;
pub const GUnicodeScript_G_UNICODE_SCRIPT_TAI_THAM: GUnicodeScript = 91;
pub const GUnicodeScript_G_UNICODE_SCRIPT_TAI_VIET: GUnicodeScript = 92;
pub const GUnicodeScript_G_UNICODE_SCRIPT_BATAK: GUnicodeScript = 93;
pub const GUnicodeScript_G_UNICODE_SCRIPT_BRAHMI: GUnicodeScript = 94;
pub const GUnicodeScript_G_UNICODE_SCRIPT_MANDAIC: GUnicodeScript = 95;
pub const GUnicodeScript_G_UNICODE_SCRIPT_CHAKMA: GUnicodeScript = 96;
pub const GUnicodeScript_G_UNICODE_SCRIPT_MEROITIC_CURSIVE: GUnicodeScript = 97;
pub const GUnicodeScript_G_UNICODE_SCRIPT_MEROITIC_HIEROGLYPHS: GUnicodeScript = 98;
pub const GUnicodeScript_G_UNICODE_SCRIPT_MIAO: GUnicodeScript = 99;
pub const GUnicodeScript_G_UNICODE_SCRIPT_SHARADA: GUnicodeScript = 100;
pub const GUnicodeScript_G_UNICODE_SCRIPT_SORA_SOMPENG: GUnicodeScript = 101;
pub const GUnicodeScript_G_UNICODE_SCRIPT_TAKRI: GUnicodeScript = 102;
pub const GUnicodeScript_G_UNICODE_SCRIPT_BASSA_VAH: GUnicodeScript = 103;
pub const GUnicodeScript_G_UNICODE_SCRIPT_CAUCASIAN_ALBANIAN: GUnicodeScript = 104;
pub const GUnicodeScript_G_UNICODE_SCRIPT_DUPLOYAN: GUnicodeScript = 105;
pub const GUnicodeScript_G_UNICODE_SCRIPT_ELBASAN: GUnicodeScript = 106;
pub const GUnicodeScript_G_UNICODE_SCRIPT_GRANTHA: GUnicodeScript = 107;
pub const GUnicodeScript_G_UNICODE_SCRIPT_KHOJKI: GUnicodeScript = 108;
pub const GUnicodeScript_G_UNICODE_SCRIPT_KHUDAWADI: GUnicodeScript = 109;
pub const GUnicodeScript_G_UNICODE_SCRIPT_LINEAR_A: GUnicodeScript = 110;
pub const GUnicodeScript_G_UNICODE_SCRIPT_MAHAJANI: GUnicodeScript = 111;
pub const GUnicodeScript_G_UNICODE_SCRIPT_MANICHAEAN: GUnicodeScript = 112;
pub const GUnicodeScript_G_UNICODE_SCRIPT_MENDE_KIKAKUI: GUnicodeScript = 113;
pub const GUnicodeScript_G_UNICODE_SCRIPT_MODI: GUnicodeScript = 114;
pub const GUnicodeScript_G_UNICODE_SCRIPT_MRO: GUnicodeScript = 115;
pub const GUnicodeScript_G_UNICODE_SCRIPT_NABATAEAN: GUnicodeScript = 116;
pub const GUnicodeScript_G_UNICODE_SCRIPT_OLD_NORTH_ARABIAN: GUnicodeScript = 117;
pub const GUnicodeScript_G_UNICODE_SCRIPT_OLD_PERMIC: GUnicodeScript = 118;
pub const GUnicodeScript_G_UNICODE_SCRIPT_PAHAWH_HMONG: GUnicodeScript = 119;
pub const GUnicodeScript_G_UNICODE_SCRIPT_PALMYRENE: GUnicodeScript = 120;
pub const GUnicodeScript_G_UNICODE_SCRIPT_PAU_CIN_HAU: GUnicodeScript = 121;
pub const GUnicodeScript_G_UNICODE_SCRIPT_PSALTER_PAHLAVI: GUnicodeScript = 122;
pub const GUnicodeScript_G_UNICODE_SCRIPT_SIDDHAM: GUnicodeScript = 123;
pub const GUnicodeScript_G_UNICODE_SCRIPT_TIRHUTA: GUnicodeScript = 124;
pub const GUnicodeScript_G_UNICODE_SCRIPT_WARANG_CITI: GUnicodeScript = 125;
pub const GUnicodeScript_G_UNICODE_SCRIPT_AHOM: GUnicodeScript = 126;
pub const GUnicodeScript_G_UNICODE_SCRIPT_ANATOLIAN_HIEROGLYPHS: GUnicodeScript = 127;
pub const GUnicodeScript_G_UNICODE_SCRIPT_HATRAN: GUnicodeScript = 128;
pub const GUnicodeScript_G_UNICODE_SCRIPT_MULTANI: GUnicodeScript = 129;
pub const GUnicodeScript_G_UNICODE_SCRIPT_OLD_HUNGARIAN: GUnicodeScript = 130;
pub const GUnicodeScript_G_UNICODE_SCRIPT_SIGNWRITING: GUnicodeScript = 131;
pub const GUnicodeScript_G_UNICODE_SCRIPT_ADLAM: GUnicodeScript = 132;
pub const GUnicodeScript_G_UNICODE_SCRIPT_BHAIKSUKI: GUnicodeScript = 133;
pub const GUnicodeScript_G_UNICODE_SCRIPT_MARCHEN: GUnicodeScript = 134;
pub const GUnicodeScript_G_UNICODE_SCRIPT_NEWA: GUnicodeScript = 135;
pub const GUnicodeScript_G_UNICODE_SCRIPT_OSAGE: GUnicodeScript = 136;
pub const GUnicodeScript_G_UNICODE_SCRIPT_TANGUT: GUnicodeScript = 137;
pub const GUnicodeScript_G_UNICODE_SCRIPT_MASARAM_GONDI: GUnicodeScript = 138;
pub const GUnicodeScript_G_UNICODE_SCRIPT_NUSHU: GUnicodeScript = 139;
pub const GUnicodeScript_G_UNICODE_SCRIPT_SOYOMBO: GUnicodeScript = 140;
pub const GUnicodeScript_G_UNICODE_SCRIPT_ZANABAZAR_SQUARE: GUnicodeScript = 141;
pub const GUnicodeScript_G_UNICODE_SCRIPT_DOGRA: GUnicodeScript = 142;
pub const GUnicodeScript_G_UNICODE_SCRIPT_GUNJALA_GONDI: GUnicodeScript = 143;
pub const GUnicodeScript_G_UNICODE_SCRIPT_HANIFI_ROHINGYA: GUnicodeScript = 144;
pub const GUnicodeScript_G_UNICODE_SCRIPT_MAKASAR: GUnicodeScript = 145;
pub const GUnicodeScript_G_UNICODE_SCRIPT_MEDEFAIDRIN: GUnicodeScript = 146;
pub const GUnicodeScript_G_UNICODE_SCRIPT_OLD_SOGDIAN: GUnicodeScript = 147;
pub const GUnicodeScript_G_UNICODE_SCRIPT_SOGDIAN: GUnicodeScript = 148;
pub const GUnicodeScript_G_UNICODE_SCRIPT_ELYMAIC: GUnicodeScript = 149;
pub const GUnicodeScript_G_UNICODE_SCRIPT_NANDINAGARI: GUnicodeScript = 150;
pub const GUnicodeScript_G_UNICODE_SCRIPT_NYIAKENG_PUACHUE_HMONG: GUnicodeScript = 151;
pub const GUnicodeScript_G_UNICODE_SCRIPT_WANCHO: GUnicodeScript = 152;
pub const GUnicodeScript_G_UNICODE_SCRIPT_CHORASMIAN: GUnicodeScript = 153;
pub const GUnicodeScript_G_UNICODE_SCRIPT_DIVES_AKURU: GUnicodeScript = 154;
pub const GUnicodeScript_G_UNICODE_SCRIPT_KHITAN_SMALL_SCRIPT: GUnicodeScript = 155;
pub const GUnicodeScript_G_UNICODE_SCRIPT_YEZIDI: GUnicodeScript = 156;
pub const GUnicodeScript_G_UNICODE_SCRIPT_CYPRO_MINOAN: GUnicodeScript = 157;
pub const GUnicodeScript_G_UNICODE_SCRIPT_OLD_UYGHUR: GUnicodeScript = 158;
pub const GUnicodeScript_G_UNICODE_SCRIPT_TANGSA: GUnicodeScript = 159;
pub const GUnicodeScript_G_UNICODE_SCRIPT_TOTO: GUnicodeScript = 160;
pub const GUnicodeScript_G_UNICODE_SCRIPT_VITHKUQI: GUnicodeScript = 161;
pub const GUnicodeScript_G_UNICODE_SCRIPT_MATH: GUnicodeScript = 162;
pub const GUnicodeScript_G_UNICODE_SCRIPT_KAWI: GUnicodeScript = 163;
pub const GUnicodeScript_G_UNICODE_SCRIPT_NAG_MUNDARI: GUnicodeScript = 164;
pub const GUnicodeScript_G_UNICODE_SCRIPT_TODHRI: GUnicodeScript = 165;
pub const GUnicodeScript_G_UNICODE_SCRIPT_GARAY: GUnicodeScript = 166;
pub const GUnicodeScript_G_UNICODE_SCRIPT_TULU_TIGALARI: GUnicodeScript = 167;
pub const GUnicodeScript_G_UNICODE_SCRIPT_SUNUWAR: GUnicodeScript = 168;
pub const GUnicodeScript_G_UNICODE_SCRIPT_GURUNG_KHEMA: GUnicodeScript = 169;
pub const GUnicodeScript_G_UNICODE_SCRIPT_KIRAT_RAI: GUnicodeScript = 170;
pub const GUnicodeScript_G_UNICODE_SCRIPT_OL_ONAL: GUnicodeScript = 171;
pub type GUnicodeScript = ::std::os::raw::c_int;
unsafe extern "C" {
pub fn g_unicode_script_to_iso15924(script: GUnicodeScript) -> guint32;
}
unsafe extern "C" {
pub fn g_unicode_script_from_iso15924(iso15924: guint32) -> GUnicodeScript;
}
unsafe extern "C" {
pub fn g_unichar_isalnum(c: gunichar) -> gboolean;
}
unsafe extern "C" {
pub fn g_unichar_isalpha(c: gunichar) -> gboolean;
}
unsafe extern "C" {
pub fn g_unichar_iscntrl(c: gunichar) -> gboolean;
}
unsafe extern "C" {
pub fn g_unichar_isdigit(c: gunichar) -> gboolean;
}
unsafe extern "C" {
pub fn g_unichar_isgraph(c: gunichar) -> gboolean;
}
unsafe extern "C" {
pub fn g_unichar_islower(c: gunichar) -> gboolean;
}
unsafe extern "C" {
pub fn g_unichar_isprint(c: gunichar) -> gboolean;
}
unsafe extern "C" {
pub fn g_unichar_ispunct(c: gunichar) -> gboolean;
}
unsafe extern "C" {
pub fn g_unichar_isspace(c: gunichar) -> gboolean;
}
unsafe extern "C" {
pub fn g_unichar_isupper(c: gunichar) -> gboolean;
}
unsafe extern "C" {
pub fn g_unichar_isxdigit(c: gunichar) -> gboolean;
}
unsafe extern "C" {
pub fn g_unichar_istitle(c: gunichar) -> gboolean;
}
unsafe extern "C" {
pub fn g_unichar_isdefined(c: gunichar) -> gboolean;
}
unsafe extern "C" {
pub fn g_unichar_iswide(c: gunichar) -> gboolean;
}
unsafe extern "C" {
pub fn g_unichar_iswide_cjk(c: gunichar) -> gboolean;
}
unsafe extern "C" {
pub fn g_unichar_iszerowidth(c: gunichar) -> gboolean;
}
unsafe extern "C" {
pub fn g_unichar_ismark(c: gunichar) -> gboolean;
}
unsafe extern "C" {
pub fn g_unichar_toupper(c: gunichar) -> gunichar;
}
unsafe extern "C" {
pub fn g_unichar_tolower(c: gunichar) -> gunichar;
}
unsafe extern "C" {
pub fn g_unichar_totitle(c: gunichar) -> gunichar;
}
unsafe extern "C" {
pub fn g_unichar_digit_value(c: gunichar) -> gint;
}
unsafe extern "C" {
pub fn g_unichar_xdigit_value(c: gunichar) -> gint;
}
unsafe extern "C" {
pub fn g_unichar_type(c: gunichar) -> GUnicodeType;
}
unsafe extern "C" {
pub fn g_unichar_break_type(c: gunichar) -> GUnicodeBreakType;
}
unsafe extern "C" {
pub fn g_unichar_combining_class(uc: gunichar) -> gint;
}
unsafe extern "C" {
pub fn g_unichar_get_mirror_char(ch: gunichar, mirrored_ch: *mut gunichar) -> gboolean;
}
unsafe extern "C" {
pub fn g_unichar_get_script(ch: gunichar) -> GUnicodeScript;
}
unsafe extern "C" {
pub fn g_unichar_validate(ch: gunichar) -> gboolean;
}
unsafe extern "C" {
pub fn g_unichar_compose(a: gunichar, b: gunichar, ch: *mut gunichar) -> gboolean;
}
unsafe extern "C" {
pub fn g_unichar_decompose(ch: gunichar, a: *mut gunichar, b: *mut gunichar) -> gboolean;
}
unsafe extern "C" {
pub fn g_unichar_fully_decompose(
ch: gunichar,
compat: gboolean,
result: *mut gunichar,
result_len: gsize,
) -> gsize;
}
unsafe extern "C" {
pub fn g_unicode_canonical_ordering(string: *mut gunichar, len: gsize);
}
unsafe extern "C" {
pub fn g_unicode_canonical_decomposition(ch: gunichar, result_len: *mut gsize)
-> *mut gunichar;
}
unsafe extern "C" {
pub static g_utf8_skip: *const gchar;
}
unsafe extern "C" {
pub fn g_utf8_get_char(p: *const gchar) -> gunichar;
}
unsafe extern "C" {
pub fn g_utf8_get_char_validated(p: *const gchar, max_len: gssize) -> gunichar;
}
unsafe extern "C" {
pub fn g_utf8_offset_to_pointer(str_: *const gchar, offset: glong) -> *mut gchar;
}
unsafe extern "C" {
pub fn g_utf8_pointer_to_offset(str_: *const gchar, pos: *const gchar) -> glong;
}
unsafe extern "C" {
pub fn g_utf8_prev_char(p: *const gchar) -> *mut gchar;
}
unsafe extern "C" {
pub fn g_utf8_find_next_char(p: *const gchar, end: *const gchar) -> *mut gchar;
}
unsafe extern "C" {
pub fn g_utf8_find_prev_char(str_: *const gchar, p: *const gchar) -> *mut gchar;
}
unsafe extern "C" {
pub fn g_utf8_strlen(p: *const gchar, max: gssize) -> glong;
}
unsafe extern "C" {
pub fn g_utf8_substring(str_: *const gchar, start_pos: glong, end_pos: glong) -> *mut gchar;
}
unsafe extern "C" {
pub fn g_utf8_strncpy(dest: *mut gchar, src: *const gchar, n: gsize) -> *mut gchar;
}
unsafe extern "C" {
pub fn g_utf8_truncate_middle(string: *const gchar, truncate_length: gsize) -> *mut gchar;
}
unsafe extern "C" {
pub fn g_utf8_strchr(p: *const gchar, len: gssize, c: gunichar) -> *mut gchar;
}
unsafe extern "C" {
pub fn g_utf8_strrchr(p: *const gchar, len: gssize, c: gunichar) -> *mut gchar;
}
unsafe extern "C" {
pub fn g_utf8_strreverse(str_: *const gchar, len: gssize) -> *mut gchar;
}
unsafe 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;
}
unsafe 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;
}
unsafe extern "C" {
pub fn g_utf8_to_ucs4_fast(
str_: *const gchar,
len: glong,
items_written: *mut glong,
) -> *mut gunichar;
}
unsafe 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;
}
unsafe 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;
}
unsafe 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;
}
unsafe 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;
}
unsafe extern "C" {
pub fn g_unichar_to_utf8(c: gunichar, outbuf: *mut gchar) -> gint;
}
unsafe extern "C" {
pub fn g_utf8_validate(str_: *const gchar, max_len: gssize, end: *mut *const gchar)
-> gboolean;
}
unsafe extern "C" {
pub fn g_utf8_validate_len(
str_: *const gchar,
max_len: gsize,
end: *mut *const gchar,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_utf8_strup(str_: *const gchar, len: gssize) -> *mut gchar;
}
unsafe extern "C" {
pub fn g_utf8_strdown(str_: *const gchar, len: gssize) -> *mut gchar;
}
unsafe extern "C" {
pub fn g_utf8_casefold(str_: *const gchar, len: gssize) -> *mut gchar;
}
pub const GNormalizeMode_G_NORMALIZE_DEFAULT: GNormalizeMode = 0;
pub const GNormalizeMode_G_NORMALIZE_NFD: GNormalizeMode = 0;
pub const GNormalizeMode_G_NORMALIZE_DEFAULT_COMPOSE: GNormalizeMode = 1;
pub const GNormalizeMode_G_NORMALIZE_NFC: GNormalizeMode = 1;
pub const GNormalizeMode_G_NORMALIZE_ALL: GNormalizeMode = 2;
pub const GNormalizeMode_G_NORMALIZE_NFKD: GNormalizeMode = 2;
pub const GNormalizeMode_G_NORMALIZE_ALL_COMPOSE: GNormalizeMode = 3;
pub const GNormalizeMode_G_NORMALIZE_NFKC: GNormalizeMode = 3;
pub type GNormalizeMode = ::std::os::raw::c_uint;
unsafe extern "C" {
pub fn g_utf8_normalize(str_: *const gchar, len: gssize, mode: GNormalizeMode) -> *mut gchar;
}
unsafe extern "C" {
pub fn g_utf8_collate(str1: *const gchar, str2: *const gchar) -> gint;
}
unsafe extern "C" {
pub fn g_utf8_collate_key(str_: *const gchar, len: gssize) -> *mut gchar;
}
unsafe extern "C" {
pub fn g_utf8_collate_key_for_filename(str_: *const gchar, len: gssize) -> *mut gchar;
}
unsafe extern "C" {
pub fn g_utf8_make_valid(str_: *const gchar, len: gssize) -> *mut gchar;
}
pub const GAsciiType_G_ASCII_ALNUM: GAsciiType = 1;
pub const GAsciiType_G_ASCII_ALPHA: GAsciiType = 2;
pub const GAsciiType_G_ASCII_CNTRL: GAsciiType = 4;
pub const GAsciiType_G_ASCII_DIGIT: GAsciiType = 8;
pub const GAsciiType_G_ASCII_GRAPH: GAsciiType = 16;
pub const GAsciiType_G_ASCII_LOWER: GAsciiType = 32;
pub const GAsciiType_G_ASCII_PRINT: GAsciiType = 64;
pub const GAsciiType_G_ASCII_PUNCT: GAsciiType = 128;
pub const GAsciiType_G_ASCII_SPACE: GAsciiType = 256;
pub const GAsciiType_G_ASCII_UPPER: GAsciiType = 512;
pub const GAsciiType_G_ASCII_XDIGIT: GAsciiType = 1024;
pub type GAsciiType = ::std::os::raw::c_uint;
unsafe extern "C" {
pub static g_ascii_table: *const guint16;
}
unsafe extern "C" {
pub fn g_ascii_tolower(c: gchar) -> gchar;
}
unsafe extern "C" {
pub fn g_ascii_toupper(c: gchar) -> gchar;
}
unsafe extern "C" {
pub fn g_ascii_digit_value(c: gchar) -> gint;
}
unsafe extern "C" {
pub fn g_ascii_xdigit_value(c: gchar) -> gint;
}
unsafe extern "C" {
pub fn g_strdelimit(
string: *mut gchar,
delimiters: *const gchar,
new_delimiter: gchar,
) -> *mut gchar;
}
unsafe extern "C" {
pub fn g_strcanon(
string: *mut gchar,
valid_chars: *const gchar,
substitutor: gchar,
) -> *mut gchar;
}
unsafe extern "C" {
pub fn g_strerror(errnum: gint) -> *const gchar;
}
unsafe extern "C" {
pub fn g_strsignal(signum: gint) -> *const gchar;
}
unsafe extern "C" {
pub fn g_strreverse(string: *mut gchar) -> *mut gchar;
}
unsafe extern "C" {
pub fn g_strlcpy(dest: *mut gchar, src: *const gchar, dest_size: gsize) -> gsize;
}
unsafe extern "C" {
pub fn g_strlcat(dest: *mut gchar, src: *const gchar, dest_size: gsize) -> gsize;
}
unsafe extern "C" {
pub fn g_strstr_len(
haystack: *const gchar,
haystack_len: gssize,
needle: *const gchar,
) -> *mut gchar;
}
unsafe extern "C" {
pub fn g_strrstr(haystack: *const gchar, needle: *const gchar) -> *mut gchar;
}
unsafe extern "C" {
pub fn g_strrstr_len(
haystack: *const gchar,
haystack_len: gssize,
needle: *const gchar,
) -> *mut gchar;
}
unsafe extern "C" {
pub fn g_str_has_suffix(str_: *const gchar, suffix: *const gchar) -> gboolean;
}
unsafe extern "C" {
pub fn g_str_has_prefix(str_: *const gchar, prefix: *const gchar) -> gboolean;
}
unsafe extern "C" {
pub fn g_strtod(nptr: *const gchar, endptr: *mut *mut gchar) -> gdouble;
}
unsafe extern "C" {
pub fn g_ascii_strtod(nptr: *const gchar, endptr: *mut *mut gchar) -> gdouble;
}
unsafe extern "C" {
pub fn g_ascii_strtoull(nptr: *const gchar, endptr: *mut *mut gchar, base: guint) -> guint64;
}
unsafe extern "C" {
pub fn g_ascii_strtoll(nptr: *const gchar, endptr: *mut *mut gchar, base: guint) -> gint64;
}
unsafe extern "C" {
pub fn g_ascii_dtostr(buffer: *mut gchar, buf_len: gint, d: gdouble) -> *mut gchar;
}
unsafe extern "C" {
pub fn g_ascii_formatd(
buffer: *mut gchar,
buf_len: gint,
format: *const gchar,
d: gdouble,
) -> *mut gchar;
}
unsafe extern "C" {
pub fn g_strchug(string: *mut gchar) -> *mut gchar;
}
unsafe extern "C" {
pub fn g_strchomp(string: *mut gchar) -> *mut gchar;
}
unsafe extern "C" {
pub fn g_ascii_strcasecmp(s1: *const gchar, s2: *const gchar) -> gint;
}
unsafe extern "C" {
pub fn g_ascii_strncasecmp(s1: *const gchar, s2: *const gchar, n: gsize) -> gint;
}
unsafe extern "C" {
pub fn g_ascii_strdown(str_: *const gchar, len: gssize) -> *mut gchar;
}
unsafe extern "C" {
pub fn g_ascii_strup(str_: *const gchar, len: gssize) -> *mut gchar;
}
unsafe extern "C" {
pub fn g_str_is_ascii(str_: *const gchar) -> gboolean;
}
unsafe extern "C" {
pub fn g_strcasecmp(s1: *const gchar, s2: *const gchar) -> gint;
}
unsafe extern "C" {
pub fn g_strncasecmp(s1: *const gchar, s2: *const gchar, n: guint) -> gint;
}
unsafe extern "C" {
pub fn g_strdown(string: *mut gchar) -> *mut gchar;
}
unsafe extern "C" {
pub fn g_strup(string: *mut gchar) -> *mut gchar;
}
unsafe extern "C" {
pub fn g_strdup(str_: *const gchar) -> *mut gchar;
}
unsafe extern "C" {
pub fn g_strdup_printf(format: *const gchar, ...) -> *mut gchar;
}
unsafe extern "C" {
pub fn g_strdup_vprintf(format: *const gchar, args: va_list) -> *mut gchar;
}
unsafe extern "C" {
pub fn g_strndup(str_: *const gchar, n: gsize) -> *mut gchar;
}
unsafe extern "C" {
pub fn g_strnfill(length: gsize, fill_char: gchar) -> *mut gchar;
}
unsafe extern "C" {
pub fn g_strconcat(string1: *const gchar, ...) -> *mut gchar;
}
unsafe extern "C" {
pub fn g_strjoin(separator: *const gchar, ...) -> *mut gchar;
}
unsafe extern "C" {
pub fn g_strcompress(source: *const gchar) -> *mut gchar;
}
unsafe extern "C" {
pub fn g_strescape(source: *const gchar, exceptions: *const gchar) -> *mut gchar;
}
unsafe extern "C" {
pub fn g_memdup(mem: gconstpointer, byte_size: guint) -> gpointer;
}
unsafe extern "C" {
pub fn g_memdup2(mem: gconstpointer, byte_size: gsize) -> gpointer;
}
pub type GStrv = *mut *mut gchar;
unsafe extern "C" {
pub fn g_strsplit(
string: *const gchar,
delimiter: *const gchar,
max_tokens: gint,
) -> *mut *mut gchar;
}
unsafe extern "C" {
pub fn g_strsplit_set(
string: *const gchar,
delimiters: *const gchar,
max_tokens: gint,
) -> *mut *mut gchar;
}
unsafe extern "C" {
pub fn g_strjoinv(separator: *const gchar, str_array: *mut *mut gchar) -> *mut gchar;
}
unsafe extern "C" {
pub fn g_strfreev(str_array: *mut *mut gchar);
}
unsafe extern "C" {
pub fn g_strdupv(str_array: *mut *mut gchar) -> *mut *mut gchar;
}
unsafe extern "C" {
pub fn g_strv_length(str_array: *mut *mut gchar) -> guint;
}
unsafe extern "C" {
pub fn g_stpcpy(dest: *mut gchar, src: *const ::std::os::raw::c_char) -> *mut gchar;
}
unsafe extern "C" {
pub fn g_str_to_ascii(str_: *const gchar, from_locale: *const gchar) -> *mut gchar;
}
unsafe 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;
}
unsafe extern "C" {
pub fn g_str_match_string(
search_term: *const gchar,
potential_hit: *const gchar,
accept_alternates: gboolean,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_strv_contains(strv: *const *const gchar, str_: *const gchar) -> gboolean;
}
unsafe extern "C" {
pub fn g_strv_equal(strv1: *const *const gchar, strv2: *const *const gchar) -> gboolean;
}
pub const GNumberParserError_G_NUMBER_PARSER_ERROR_INVALID: GNumberParserError = 0;
pub const GNumberParserError_G_NUMBER_PARSER_ERROR_OUT_OF_BOUNDS: GNumberParserError = 1;
pub type GNumberParserError = ::std::os::raw::c_uint;
unsafe extern "C" {
pub fn g_number_parser_error_quark() -> GQuark;
}
unsafe 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;
}
unsafe 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;
}
pub type GString = _GString;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GString {
pub str_: *mut gchar,
pub len: gsize,
pub allocated_len: gsize,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GString"][::std::mem::size_of::<_GString>() - 24usize];
["Alignment of _GString"][::std::mem::align_of::<_GString>() - 8usize];
["Offset of field: _GString::str_"][::std::mem::offset_of!(_GString, str_) - 0usize];
["Offset of field: _GString::len"][::std::mem::offset_of!(_GString, len) - 8usize];
["Offset of field: _GString::allocated_len"]
[::std::mem::offset_of!(_GString, allocated_len) - 16usize];
};
unsafe extern "C" {
pub fn g_string_new(init: *const gchar) -> *mut GString;
}
unsafe extern "C" {
pub fn g_string_new_take(init: *mut gchar) -> *mut GString;
}
unsafe extern "C" {
pub fn g_string_new_len(init: *const gchar, len: gssize) -> *mut GString;
}
unsafe extern "C" {
pub fn g_string_sized_new(dfl_size: gsize) -> *mut GString;
}
unsafe extern "C" {
pub fn g_string_copy(string: *mut GString) -> *mut GString;
}
unsafe extern "C" {
pub fn g_string_free(string: *mut GString, free_segment: gboolean) -> *mut gchar;
}
unsafe extern "C" {
pub fn g_string_free_and_steal(string: *mut GString) -> *mut gchar;
}
unsafe extern "C" {
pub fn g_string_free_to_bytes(string: *mut GString) -> *mut GBytes;
}
unsafe extern "C" {
pub fn g_string_equal(v: *const GString, v2: *const GString) -> gboolean;
}
unsafe extern "C" {
pub fn g_string_hash(str_: *const GString) -> guint;
}
unsafe extern "C" {
pub fn g_string_assign(string: *mut GString, rval: *const gchar) -> *mut GString;
}
unsafe extern "C" {
pub fn g_string_truncate(string: *mut GString, len: gsize) -> *mut GString;
}
unsafe extern "C" {
pub fn g_string_set_size(string: *mut GString, len: gsize) -> *mut GString;
}
unsafe extern "C" {
pub fn g_string_insert_len(
string: *mut GString,
pos: gssize,
val: *const gchar,
len: gssize,
) -> *mut GString;
}
unsafe extern "C" {
pub fn g_string_append(string: *mut GString, val: *const gchar) -> *mut GString;
}
unsafe extern "C" {
pub fn g_string_append_len(
string: *mut GString,
val: *const gchar,
len: gssize,
) -> *mut GString;
}
unsafe extern "C" {
pub fn g_string_append_c(string: *mut GString, c: gchar) -> *mut GString;
}
unsafe extern "C" {
pub fn g_string_append_unichar(string: *mut GString, wc: gunichar) -> *mut GString;
}
unsafe extern "C" {
pub fn g_string_prepend(string: *mut GString, val: *const gchar) -> *mut GString;
}
unsafe extern "C" {
pub fn g_string_prepend_c(string: *mut GString, c: gchar) -> *mut GString;
}
unsafe extern "C" {
pub fn g_string_prepend_unichar(string: *mut GString, wc: gunichar) -> *mut GString;
}
unsafe extern "C" {
pub fn g_string_prepend_len(
string: *mut GString,
val: *const gchar,
len: gssize,
) -> *mut GString;
}
unsafe extern "C" {
pub fn g_string_insert(string: *mut GString, pos: gssize, val: *const gchar) -> *mut GString;
}
unsafe extern "C" {
pub fn g_string_insert_c(string: *mut GString, pos: gssize, c: gchar) -> *mut GString;
}
unsafe extern "C" {
pub fn g_string_insert_unichar(string: *mut GString, pos: gssize, wc: gunichar)
-> *mut GString;
}
unsafe extern "C" {
pub fn g_string_overwrite(string: *mut GString, pos: gsize, val: *const gchar) -> *mut GString;
}
unsafe extern "C" {
pub fn g_string_overwrite_len(
string: *mut GString,
pos: gsize,
val: *const gchar,
len: gssize,
) -> *mut GString;
}
unsafe extern "C" {
pub fn g_string_erase(string: *mut GString, pos: gssize, len: gssize) -> *mut GString;
}
unsafe extern "C" {
pub fn g_string_replace(
string: *mut GString,
find: *const gchar,
replace: *const gchar,
limit: guint,
) -> guint;
}
unsafe extern "C" {
pub fn g_string_ascii_down(string: *mut GString) -> *mut GString;
}
unsafe extern "C" {
pub fn g_string_ascii_up(string: *mut GString) -> *mut GString;
}
unsafe extern "C" {
pub fn g_string_vprintf(string: *mut GString, format: *const gchar, args: va_list);
}
unsafe extern "C" {
pub fn g_string_printf(string: *mut GString, format: *const gchar, ...);
}
unsafe extern "C" {
pub fn g_string_append_vprintf(string: *mut GString, format: *const gchar, args: va_list);
}
unsafe extern "C" {
pub fn g_string_append_printf(string: *mut GString, format: *const gchar, ...);
}
unsafe 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;
}
unsafe extern "C" {
pub fn g_string_down(string: *mut GString) -> *mut GString;
}
unsafe extern "C" {
pub fn g_string_up(string: *mut GString) -> *mut GString;
}
pub type GIOChannel = _GIOChannel;
pub type GIOFuncs = _GIOFuncs;
pub const GIOError_G_IO_ERROR_NONE: GIOError = 0;
pub const GIOError_G_IO_ERROR_AGAIN: GIOError = 1;
pub const GIOError_G_IO_ERROR_INVAL: GIOError = 2;
pub const GIOError_G_IO_ERROR_UNKNOWN: GIOError = 3;
pub type GIOError = ::std::os::raw::c_uint;
pub const GIOChannelError_G_IO_CHANNEL_ERROR_FBIG: GIOChannelError = 0;
pub const GIOChannelError_G_IO_CHANNEL_ERROR_INVAL: GIOChannelError = 1;
pub const GIOChannelError_G_IO_CHANNEL_ERROR_IO: GIOChannelError = 2;
pub const GIOChannelError_G_IO_CHANNEL_ERROR_ISDIR: GIOChannelError = 3;
pub const GIOChannelError_G_IO_CHANNEL_ERROR_NOSPC: GIOChannelError = 4;
pub const GIOChannelError_G_IO_CHANNEL_ERROR_NXIO: GIOChannelError = 5;
pub const GIOChannelError_G_IO_CHANNEL_ERROR_OVERFLOW: GIOChannelError = 6;
pub const GIOChannelError_G_IO_CHANNEL_ERROR_PIPE: GIOChannelError = 7;
pub const GIOChannelError_G_IO_CHANNEL_ERROR_FAILED: GIOChannelError = 8;
pub type GIOChannelError = ::std::os::raw::c_uint;
pub const GIOStatus_G_IO_STATUS_ERROR: GIOStatus = 0;
pub const GIOStatus_G_IO_STATUS_NORMAL: GIOStatus = 1;
pub const GIOStatus_G_IO_STATUS_EOF: GIOStatus = 2;
pub const GIOStatus_G_IO_STATUS_AGAIN: GIOStatus = 3;
pub type GIOStatus = ::std::os::raw::c_uint;
pub const GSeekType_G_SEEK_CUR: GSeekType = 0;
pub const GSeekType_G_SEEK_SET: GSeekType = 1;
pub const GSeekType_G_SEEK_END: GSeekType = 2;
pub type GSeekType = ::std::os::raw::c_uint;
pub const GIOFlags_G_IO_FLAG_NONE: GIOFlags = 0;
pub const GIOFlags_G_IO_FLAG_APPEND: GIOFlags = 1;
pub const GIOFlags_G_IO_FLAG_NONBLOCK: GIOFlags = 2;
pub const GIOFlags_G_IO_FLAG_IS_READABLE: GIOFlags = 4;
pub const GIOFlags_G_IO_FLAG_IS_WRITABLE: GIOFlags = 8;
pub const GIOFlags_G_IO_FLAG_IS_WRITEABLE: GIOFlags = 8;
pub const GIOFlags_G_IO_FLAG_IS_SEEKABLE: GIOFlags = 16;
pub const GIOFlags_G_IO_FLAG_MASK: GIOFlags = 31;
pub const GIOFlags_G_IO_FLAG_GET_MASK: GIOFlags = 31;
pub const GIOFlags_G_IO_FLAG_SET_MASK: GIOFlags = 3;
pub type GIOFlags = ::std::os::raw::c_uint;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
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_align_1: [u8; 0],
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>,
pub reserved1: gpointer,
pub reserved2: gpointer,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GIOChannel"][::std::mem::size_of::<_GIOChannel>() - 112usize];
["Alignment of _GIOChannel"][::std::mem::align_of::<_GIOChannel>() - 8usize];
["Offset of field: _GIOChannel::ref_count"]
[::std::mem::offset_of!(_GIOChannel, ref_count) - 0usize];
["Offset of field: _GIOChannel::funcs"][::std::mem::offset_of!(_GIOChannel, funcs) - 8usize];
["Offset of field: _GIOChannel::encoding"]
[::std::mem::offset_of!(_GIOChannel, encoding) - 16usize];
["Offset of field: _GIOChannel::read_cd"]
[::std::mem::offset_of!(_GIOChannel, read_cd) - 24usize];
["Offset of field: _GIOChannel::write_cd"]
[::std::mem::offset_of!(_GIOChannel, write_cd) - 32usize];
["Offset of field: _GIOChannel::line_term"]
[::std::mem::offset_of!(_GIOChannel, line_term) - 40usize];
["Offset of field: _GIOChannel::line_term_len"]
[::std::mem::offset_of!(_GIOChannel, line_term_len) - 48usize];
["Offset of field: _GIOChannel::buf_size"]
[::std::mem::offset_of!(_GIOChannel, buf_size) - 56usize];
["Offset of field: _GIOChannel::read_buf"]
[::std::mem::offset_of!(_GIOChannel, read_buf) - 64usize];
["Offset of field: _GIOChannel::encoded_read_buf"]
[::std::mem::offset_of!(_GIOChannel, encoded_read_buf) - 72usize];
["Offset of field: _GIOChannel::write_buf"]
[::std::mem::offset_of!(_GIOChannel, write_buf) - 80usize];
["Offset of field: _GIOChannel::partial_write_buf"]
[::std::mem::offset_of!(_GIOChannel, partial_write_buf) - 88usize];
["Offset of field: _GIOChannel::reserved1"]
[::std::mem::offset_of!(_GIOChannel, reserved1) - 96usize];
["Offset of field: _GIOChannel::reserved2"]
[::std::mem::offset_of!(_GIOChannel, reserved2) - 104usize];
};
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 unsafe fn use_buffer_raw(this: *const Self) -> guint {
unsafe {
::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
::std::ptr::addr_of!((*this)._bitfield_1),
0usize,
1u8,
) as u32)
}
}
#[inline]
pub unsafe fn set_use_buffer_raw(this: *mut Self, val: guint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
::std::ptr::addr_of_mut!((*this)._bitfield_1),
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 unsafe fn do_encode_raw(this: *const Self) -> guint {
unsafe {
::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
::std::ptr::addr_of!((*this)._bitfield_1),
1usize,
1u8,
) as u32)
}
}
#[inline]
pub unsafe fn set_do_encode_raw(this: *mut Self, val: guint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
::std::ptr::addr_of_mut!((*this)._bitfield_1),
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 unsafe fn close_on_unref_raw(this: *const Self) -> guint {
unsafe {
::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
::std::ptr::addr_of!((*this)._bitfield_1),
2usize,
1u8,
) as u32)
}
}
#[inline]
pub unsafe fn set_close_on_unref_raw(this: *mut Self, val: guint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
::std::ptr::addr_of_mut!((*this)._bitfield_1),
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 unsafe fn is_readable_raw(this: *const Self) -> guint {
unsafe {
::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
::std::ptr::addr_of!((*this)._bitfield_1),
3usize,
1u8,
) as u32)
}
}
#[inline]
pub unsafe fn set_is_readable_raw(this: *mut Self, val: guint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
::std::ptr::addr_of_mut!((*this)._bitfield_1),
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 unsafe fn is_writeable_raw(this: *const Self) -> guint {
unsafe {
::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
::std::ptr::addr_of!((*this)._bitfield_1),
4usize,
1u8,
) as u32)
}
}
#[inline]
pub unsafe fn set_is_writeable_raw(this: *mut Self, val: guint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
::std::ptr::addr_of_mut!((*this)._bitfield_1),
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 unsafe fn is_seekable_raw(this: *const Self) -> guint {
unsafe {
::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
::std::ptr::addr_of!((*this)._bitfield_1),
5usize,
1u8,
) as u32)
}
}
#[inline]
pub unsafe fn set_is_seekable_raw(this: *mut Self, val: guint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
::std::ptr::addr_of_mut!((*this)._bitfield_1),
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]> {
let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = 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, PartialEq, Eq)]
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>,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GIOFuncs"][::std::mem::size_of::<_GIOFuncs>() - 64usize];
["Alignment of _GIOFuncs"][::std::mem::align_of::<_GIOFuncs>() - 8usize];
["Offset of field: _GIOFuncs::io_read"][::std::mem::offset_of!(_GIOFuncs, io_read) - 0usize];
["Offset of field: _GIOFuncs::io_write"][::std::mem::offset_of!(_GIOFuncs, io_write) - 8usize];
["Offset of field: _GIOFuncs::io_seek"][::std::mem::offset_of!(_GIOFuncs, io_seek) - 16usize];
["Offset of field: _GIOFuncs::io_close"][::std::mem::offset_of!(_GIOFuncs, io_close) - 24usize];
["Offset of field: _GIOFuncs::io_create_watch"]
[::std::mem::offset_of!(_GIOFuncs, io_create_watch) - 32usize];
["Offset of field: _GIOFuncs::io_free"][::std::mem::offset_of!(_GIOFuncs, io_free) - 40usize];
["Offset of field: _GIOFuncs::io_set_flags"]
[::std::mem::offset_of!(_GIOFuncs, io_set_flags) - 48usize];
["Offset of field: _GIOFuncs::io_get_flags"]
[::std::mem::offset_of!(_GIOFuncs, io_get_flags) - 56usize];
};
unsafe extern "C" {
pub fn g_io_channel_init(channel: *mut GIOChannel);
}
unsafe extern "C" {
pub fn g_io_channel_ref(channel: *mut GIOChannel) -> *mut GIOChannel;
}
unsafe extern "C" {
pub fn g_io_channel_unref(channel: *mut GIOChannel);
}
unsafe extern "C" {
pub fn g_io_channel_read(
channel: *mut GIOChannel,
buf: *mut gchar,
count: gsize,
bytes_read: *mut gsize,
) -> GIOError;
}
unsafe extern "C" {
pub fn g_io_channel_write(
channel: *mut GIOChannel,
buf: *const gchar,
count: gsize,
bytes_written: *mut gsize,
) -> GIOError;
}
unsafe extern "C" {
pub fn g_io_channel_seek(
channel: *mut GIOChannel,
offset: gint64,
type_: GSeekType,
) -> GIOError;
}
unsafe extern "C" {
pub fn g_io_channel_close(channel: *mut GIOChannel);
}
unsafe extern "C" {
pub fn g_io_channel_shutdown(
channel: *mut GIOChannel,
flush: gboolean,
err: *mut *mut GError,
) -> GIOStatus;
}
unsafe extern "C" {
pub fn g_io_add_watch_full(
channel: *mut GIOChannel,
priority: gint,
condition: GIOCondition,
func: GIOFunc,
user_data: gpointer,
notify: GDestroyNotify,
) -> guint;
}
unsafe extern "C" {
pub fn g_io_create_watch(channel: *mut GIOChannel, condition: GIOCondition) -> *mut GSource;
}
unsafe extern "C" {
pub fn g_io_add_watch(
channel: *mut GIOChannel,
condition: GIOCondition,
func: GIOFunc,
user_data: gpointer,
) -> guint;
}
unsafe extern "C" {
pub fn g_io_channel_set_buffer_size(channel: *mut GIOChannel, size: gsize);
}
unsafe extern "C" {
pub fn g_io_channel_get_buffer_size(channel: *mut GIOChannel) -> gsize;
}
unsafe extern "C" {
pub fn g_io_channel_get_buffer_condition(channel: *mut GIOChannel) -> GIOCondition;
}
unsafe extern "C" {
pub fn g_io_channel_set_flags(
channel: *mut GIOChannel,
flags: GIOFlags,
error: *mut *mut GError,
) -> GIOStatus;
}
unsafe extern "C" {
pub fn g_io_channel_get_flags(channel: *mut GIOChannel) -> GIOFlags;
}
unsafe extern "C" {
pub fn g_io_channel_set_line_term(
channel: *mut GIOChannel,
line_term: *const gchar,
length: gint,
);
}
unsafe extern "C" {
pub fn g_io_channel_get_line_term(channel: *mut GIOChannel, length: *mut gint) -> *const gchar;
}
unsafe extern "C" {
pub fn g_io_channel_set_buffered(channel: *mut GIOChannel, buffered: gboolean);
}
unsafe extern "C" {
pub fn g_io_channel_get_buffered(channel: *mut GIOChannel) -> gboolean;
}
unsafe extern "C" {
pub fn g_io_channel_set_encoding(
channel: *mut GIOChannel,
encoding: *const gchar,
error: *mut *mut GError,
) -> GIOStatus;
}
unsafe extern "C" {
pub fn g_io_channel_get_encoding(channel: *mut GIOChannel) -> *const gchar;
}
unsafe extern "C" {
pub fn g_io_channel_set_close_on_unref(channel: *mut GIOChannel, do_close: gboolean);
}
unsafe extern "C" {
pub fn g_io_channel_get_close_on_unref(channel: *mut GIOChannel) -> gboolean;
}
unsafe extern "C" {
pub fn g_io_channel_flush(channel: *mut GIOChannel, error: *mut *mut GError) -> GIOStatus;
}
unsafe 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;
}
unsafe 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;
}
unsafe 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;
}
unsafe 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;
}
unsafe extern "C" {
pub fn g_io_channel_read_unichar(
channel: *mut GIOChannel,
thechar: *mut gunichar,
error: *mut *mut GError,
) -> GIOStatus;
}
unsafe 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;
}
unsafe extern "C" {
pub fn g_io_channel_write_unichar(
channel: *mut GIOChannel,
thechar: gunichar,
error: *mut *mut GError,
) -> GIOStatus;
}
unsafe extern "C" {
pub fn g_io_channel_seek_position(
channel: *mut GIOChannel,
offset: gint64,
type_: GSeekType,
error: *mut *mut GError,
) -> GIOStatus;
}
unsafe extern "C" {
pub fn g_io_channel_new_file(
filename: *const gchar,
mode: *const gchar,
error: *mut *mut GError,
) -> *mut GIOChannel;
}
unsafe extern "C" {
pub fn g_io_channel_error_quark() -> GQuark;
}
unsafe extern "C" {
pub fn g_io_channel_error_from_errno(en: gint) -> GIOChannelError;
}
unsafe extern "C" {
pub fn g_io_channel_unix_new(fd: ::std::os::raw::c_int) -> *mut GIOChannel;
}
unsafe extern "C" {
pub fn g_io_channel_unix_get_fd(channel: *mut GIOChannel) -> gint;
}
unsafe extern "C" {
pub static mut g_io_watch_funcs: GSourceFuncs;
}
pub const GKeyFileError_G_KEY_FILE_ERROR_UNKNOWN_ENCODING: GKeyFileError = 0;
pub const GKeyFileError_G_KEY_FILE_ERROR_PARSE: GKeyFileError = 1;
pub const GKeyFileError_G_KEY_FILE_ERROR_NOT_FOUND: GKeyFileError = 2;
pub const GKeyFileError_G_KEY_FILE_ERROR_KEY_NOT_FOUND: GKeyFileError = 3;
pub const GKeyFileError_G_KEY_FILE_ERROR_GROUP_NOT_FOUND: GKeyFileError = 4;
pub const GKeyFileError_G_KEY_FILE_ERROR_INVALID_VALUE: GKeyFileError = 5;
pub type GKeyFileError = ::std::os::raw::c_uint;
unsafe 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;
pub const GKeyFileFlags_G_KEY_FILE_NONE: GKeyFileFlags = 0;
pub const GKeyFileFlags_G_KEY_FILE_KEEP_COMMENTS: GKeyFileFlags = 1;
pub const GKeyFileFlags_G_KEY_FILE_KEEP_TRANSLATIONS: GKeyFileFlags = 2;
pub type GKeyFileFlags = ::std::os::raw::c_uint;
unsafe extern "C" {
pub fn g_key_file_new() -> *mut GKeyFile;
}
unsafe extern "C" {
pub fn g_key_file_ref(key_file: *mut GKeyFile) -> *mut GKeyFile;
}
unsafe extern "C" {
pub fn g_key_file_unref(key_file: *mut GKeyFile);
}
unsafe extern "C" {
pub fn g_key_file_free(key_file: *mut GKeyFile);
}
unsafe extern "C" {
pub fn g_key_file_set_list_separator(key_file: *mut GKeyFile, separator: gchar);
}
unsafe extern "C" {
pub fn g_key_file_load_from_file(
key_file: *mut GKeyFile,
file: *const gchar,
flags: GKeyFileFlags,
error: *mut *mut GError,
) -> gboolean;
}
unsafe 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;
}
unsafe extern "C" {
pub fn g_key_file_load_from_bytes(
key_file: *mut GKeyFile,
bytes: *mut GBytes,
flags: GKeyFileFlags,
error: *mut *mut GError,
) -> gboolean;
}
unsafe 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;
}
unsafe 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;
}
unsafe extern "C" {
pub fn g_key_file_to_data(
key_file: *mut GKeyFile,
length: *mut gsize,
error: *mut *mut GError,
) -> *mut gchar;
}
unsafe extern "C" {
pub fn g_key_file_save_to_file(
key_file: *mut GKeyFile,
filename: *const gchar,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_key_file_get_start_group(key_file: *mut GKeyFile) -> *mut gchar;
}
unsafe extern "C" {
pub fn g_key_file_get_groups(key_file: *mut GKeyFile, length: *mut gsize) -> *mut *mut gchar;
}
unsafe 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;
}
unsafe extern "C" {
pub fn g_key_file_has_group(key_file: *mut GKeyFile, group_name: *const gchar) -> gboolean;
}
unsafe 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;
}
unsafe 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;
}
unsafe extern "C" {
pub fn g_key_file_set_value(
key_file: *mut GKeyFile,
group_name: *const gchar,
key: *const gchar,
value: *const gchar,
);
}
unsafe 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;
}
unsafe extern "C" {
pub fn g_key_file_set_string(
key_file: *mut GKeyFile,
group_name: *const gchar,
key: *const gchar,
string: *const gchar,
);
}
unsafe 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;
}
unsafe 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;
}
unsafe 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,
);
}
unsafe 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;
}
unsafe extern "C" {
pub fn g_key_file_set_boolean(
key_file: *mut GKeyFile,
group_name: *const gchar,
key: *const gchar,
value: gboolean,
);
}
unsafe 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;
}
unsafe extern "C" {
pub fn g_key_file_set_integer(
key_file: *mut GKeyFile,
group_name: *const gchar,
key: *const gchar,
value: gint,
);
}
unsafe 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;
}
unsafe extern "C" {
pub fn g_key_file_set_int64(
key_file: *mut GKeyFile,
group_name: *const gchar,
key: *const gchar,
value: gint64,
);
}
unsafe 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;
}
unsafe extern "C" {
pub fn g_key_file_set_uint64(
key_file: *mut GKeyFile,
group_name: *const gchar,
key: *const gchar,
value: guint64,
);
}
unsafe 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;
}
unsafe extern "C" {
pub fn g_key_file_set_double(
key_file: *mut GKeyFile,
group_name: *const gchar,
key: *const gchar,
value: gdouble,
);
}
unsafe 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;
}
unsafe 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,
);
}
unsafe 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;
}
unsafe 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,
);
}
unsafe 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;
}
unsafe 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,
);
}
unsafe 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;
}
unsafe 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,
);
}
unsafe 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;
}
unsafe 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,
);
}
unsafe 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;
}
unsafe 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;
}
unsafe 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;
}
unsafe 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;
}
unsafe 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;
unsafe extern "C" {
pub fn g_mapped_file_new(
filename: *const gchar,
writable: gboolean,
error: *mut *mut GError,
) -> *mut GMappedFile;
}
unsafe extern "C" {
pub fn g_mapped_file_new_from_fd(
fd: gint,
writable: gboolean,
error: *mut *mut GError,
) -> *mut GMappedFile;
}
unsafe extern "C" {
pub fn g_mapped_file_get_length(file: *mut GMappedFile) -> gsize;
}
unsafe extern "C" {
pub fn g_mapped_file_get_contents(file: *mut GMappedFile) -> *mut gchar;
}
unsafe extern "C" {
pub fn g_mapped_file_get_bytes(file: *mut GMappedFile) -> *mut GBytes;
}
unsafe extern "C" {
pub fn g_mapped_file_ref(file: *mut GMappedFile) -> *mut GMappedFile;
}
unsafe extern "C" {
pub fn g_mapped_file_unref(file: *mut GMappedFile);
}
unsafe extern "C" {
pub fn g_mapped_file_free(file: *mut GMappedFile);
}
pub const GMarkupError_G_MARKUP_ERROR_BAD_UTF8: GMarkupError = 0;
pub const GMarkupError_G_MARKUP_ERROR_EMPTY: GMarkupError = 1;
pub const GMarkupError_G_MARKUP_ERROR_PARSE: GMarkupError = 2;
pub const GMarkupError_G_MARKUP_ERROR_UNKNOWN_ELEMENT: GMarkupError = 3;
pub const GMarkupError_G_MARKUP_ERROR_UNKNOWN_ATTRIBUTE: GMarkupError = 4;
pub const GMarkupError_G_MARKUP_ERROR_INVALID_CONTENT: GMarkupError = 5;
pub const GMarkupError_G_MARKUP_ERROR_MISSING_ATTRIBUTE: GMarkupError = 6;
pub type GMarkupError = ::std::os::raw::c_uint;
unsafe extern "C" {
pub fn g_markup_error_quark() -> GQuark;
}
pub const GMarkupParseFlags_G_MARKUP_DEFAULT_FLAGS: GMarkupParseFlags = 0;
pub const GMarkupParseFlags_G_MARKUP_DO_NOT_USE_THIS_UNSUPPORTED_FLAG: GMarkupParseFlags = 1;
pub const GMarkupParseFlags_G_MARKUP_TREAT_CDATA_AS_TEXT: GMarkupParseFlags = 2;
pub const GMarkupParseFlags_G_MARKUP_PREFIX_ERROR_POSITION: GMarkupParseFlags = 4;
pub const GMarkupParseFlags_G_MARKUP_IGNORE_QUALIFIED: GMarkupParseFlags = 8;
pub type GMarkupParseFlags = ::std::os::raw::c_uint;
#[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, PartialEq, Eq)]
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,
),
>,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GMarkupParser"][::std::mem::size_of::<_GMarkupParser>() - 40usize];
["Alignment of _GMarkupParser"][::std::mem::align_of::<_GMarkupParser>() - 8usize];
["Offset of field: _GMarkupParser::start_element"]
[::std::mem::offset_of!(_GMarkupParser, start_element) - 0usize];
["Offset of field: _GMarkupParser::end_element"]
[::std::mem::offset_of!(_GMarkupParser, end_element) - 8usize];
["Offset of field: _GMarkupParser::text"]
[::std::mem::offset_of!(_GMarkupParser, text) - 16usize];
["Offset of field: _GMarkupParser::passthrough"]
[::std::mem::offset_of!(_GMarkupParser, passthrough) - 24usize];
["Offset of field: _GMarkupParser::error"]
[::std::mem::offset_of!(_GMarkupParser, error) - 32usize];
};
unsafe extern "C" {
pub fn g_markup_parse_context_new(
parser: *const GMarkupParser,
flags: GMarkupParseFlags,
user_data: gpointer,
user_data_dnotify: GDestroyNotify,
) -> *mut GMarkupParseContext;
}
unsafe extern "C" {
pub fn g_markup_parse_context_ref(
context: *mut GMarkupParseContext,
) -> *mut GMarkupParseContext;
}
unsafe extern "C" {
pub fn g_markup_parse_context_unref(context: *mut GMarkupParseContext);
}
unsafe extern "C" {
pub fn g_markup_parse_context_free(context: *mut GMarkupParseContext);
}
unsafe extern "C" {
pub fn g_markup_parse_context_parse(
context: *mut GMarkupParseContext,
text: *const gchar,
text_len: gssize,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_markup_parse_context_push(
context: *mut GMarkupParseContext,
parser: *const GMarkupParser,
user_data: gpointer,
);
}
unsafe extern "C" {
pub fn g_markup_parse_context_pop(context: *mut GMarkupParseContext) -> gpointer;
}
unsafe extern "C" {
pub fn g_markup_parse_context_end_parse(
context: *mut GMarkupParseContext,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_markup_parse_context_get_element(context: *mut GMarkupParseContext) -> *const gchar;
}
unsafe extern "C" {
pub fn g_markup_parse_context_get_element_stack(
context: *mut GMarkupParseContext,
) -> *const GSList;
}
unsafe extern "C" {
pub fn g_markup_parse_context_get_position(
context: *mut GMarkupParseContext,
line_number: *mut gint,
char_number: *mut gint,
);
}
unsafe extern "C" {
pub fn g_markup_parse_context_get_user_data(context: *mut GMarkupParseContext) -> gpointer;
}
unsafe extern "C" {
pub fn g_markup_escape_text(text: *const gchar, length: gssize) -> *mut gchar;
}
unsafe extern "C" {
pub fn g_markup_printf_escaped(format: *const ::std::os::raw::c_char, ...) -> *mut gchar;
}
unsafe extern "C" {
pub fn g_markup_vprintf_escaped(
format: *const ::std::os::raw::c_char,
args: va_list,
) -> *mut gchar;
}
pub const GMarkupCollectType_G_MARKUP_COLLECT_INVALID: GMarkupCollectType = 0;
pub const GMarkupCollectType_G_MARKUP_COLLECT_STRING: GMarkupCollectType = 1;
pub const GMarkupCollectType_G_MARKUP_COLLECT_STRDUP: GMarkupCollectType = 2;
pub const GMarkupCollectType_G_MARKUP_COLLECT_BOOLEAN: GMarkupCollectType = 3;
pub const GMarkupCollectType_G_MARKUP_COLLECT_TRISTATE: GMarkupCollectType = 4;
pub const GMarkupCollectType_G_MARKUP_COLLECT_OPTIONAL: GMarkupCollectType = 65536;
pub type GMarkupCollectType = ::std::os::raw::c_uint;
unsafe 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;
unsafe extern "C" {
pub fn g_variant_type_string_is_valid(type_string: *const gchar) -> gboolean;
}
unsafe extern "C" {
pub fn g_variant_type_string_scan(
string: *const gchar,
limit: *const gchar,
endptr: *mut *const gchar,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_variant_type_free(type_: *mut GVariantType);
}
unsafe extern "C" {
pub fn g_variant_type_copy(type_: *const GVariantType) -> *mut GVariantType;
}
unsafe extern "C" {
pub fn g_variant_type_new(type_string: *const gchar) -> *mut GVariantType;
}
unsafe extern "C" {
pub fn g_variant_type_get_string_length(type_: *const GVariantType) -> gsize;
}
unsafe extern "C" {
pub fn g_variant_type_peek_string(type_: *const GVariantType) -> *const gchar;
}
unsafe extern "C" {
pub fn g_variant_type_dup_string(type_: *const GVariantType) -> *mut gchar;
}
unsafe extern "C" {
pub fn g_variant_type_is_definite(type_: *const GVariantType) -> gboolean;
}
unsafe extern "C" {
pub fn g_variant_type_is_container(type_: *const GVariantType) -> gboolean;
}
unsafe extern "C" {
pub fn g_variant_type_is_basic(type_: *const GVariantType) -> gboolean;
}
unsafe extern "C" {
pub fn g_variant_type_is_maybe(type_: *const GVariantType) -> gboolean;
}
unsafe extern "C" {
pub fn g_variant_type_is_array(type_: *const GVariantType) -> gboolean;
}
unsafe extern "C" {
pub fn g_variant_type_is_tuple(type_: *const GVariantType) -> gboolean;
}
unsafe extern "C" {
pub fn g_variant_type_is_dict_entry(type_: *const GVariantType) -> gboolean;
}
unsafe extern "C" {
pub fn g_variant_type_is_variant(type_: *const GVariantType) -> gboolean;
}
unsafe extern "C" {
pub fn g_variant_type_hash(type_: gconstpointer) -> guint;
}
unsafe extern "C" {
pub fn g_variant_type_equal(type1: gconstpointer, type2: gconstpointer) -> gboolean;
}
unsafe extern "C" {
pub fn g_variant_type_is_subtype_of(
type_: *const GVariantType,
supertype: *const GVariantType,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_variant_type_element(type_: *const GVariantType) -> *const GVariantType;
}
unsafe extern "C" {
pub fn g_variant_type_first(type_: *const GVariantType) -> *const GVariantType;
}
unsafe extern "C" {
pub fn g_variant_type_next(type_: *const GVariantType) -> *const GVariantType;
}
unsafe extern "C" {
pub fn g_variant_type_n_items(type_: *const GVariantType) -> gsize;
}
unsafe extern "C" {
pub fn g_variant_type_key(type_: *const GVariantType) -> *const GVariantType;
}
unsafe extern "C" {
pub fn g_variant_type_value(type_: *const GVariantType) -> *const GVariantType;
}
unsafe extern "C" {
pub fn g_variant_type_new_array(element: *const GVariantType) -> *mut GVariantType;
}
unsafe extern "C" {
pub fn g_variant_type_new_maybe(element: *const GVariantType) -> *mut GVariantType;
}
unsafe extern "C" {
pub fn g_variant_type_new_tuple(
items: *const *const GVariantType,
length: gint,
) -> *mut GVariantType;
}
unsafe extern "C" {
pub fn g_variant_type_new_dict_entry(
key: *const GVariantType,
value: *const GVariantType,
) -> *mut GVariantType;
}
unsafe extern "C" {
pub fn g_variant_type_checked_(type_string: *const gchar) -> *const GVariantType;
}
unsafe 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;
pub const GVariantClass_G_VARIANT_CLASS_BOOLEAN: GVariantClass = 98;
pub const GVariantClass_G_VARIANT_CLASS_BYTE: GVariantClass = 121;
pub const GVariantClass_G_VARIANT_CLASS_INT16: GVariantClass = 110;
pub const GVariantClass_G_VARIANT_CLASS_UINT16: GVariantClass = 113;
pub const GVariantClass_G_VARIANT_CLASS_INT32: GVariantClass = 105;
pub const GVariantClass_G_VARIANT_CLASS_UINT32: GVariantClass = 117;
pub const GVariantClass_G_VARIANT_CLASS_INT64: GVariantClass = 120;
pub const GVariantClass_G_VARIANT_CLASS_UINT64: GVariantClass = 116;
pub const GVariantClass_G_VARIANT_CLASS_HANDLE: GVariantClass = 104;
pub const GVariantClass_G_VARIANT_CLASS_DOUBLE: GVariantClass = 100;
pub const GVariantClass_G_VARIANT_CLASS_STRING: GVariantClass = 115;
pub const GVariantClass_G_VARIANT_CLASS_OBJECT_PATH: GVariantClass = 111;
pub const GVariantClass_G_VARIANT_CLASS_SIGNATURE: GVariantClass = 103;
pub const GVariantClass_G_VARIANT_CLASS_VARIANT: GVariantClass = 118;
pub const GVariantClass_G_VARIANT_CLASS_MAYBE: GVariantClass = 109;
pub const GVariantClass_G_VARIANT_CLASS_ARRAY: GVariantClass = 97;
pub const GVariantClass_G_VARIANT_CLASS_TUPLE: GVariantClass = 40;
pub const GVariantClass_G_VARIANT_CLASS_DICT_ENTRY: GVariantClass = 123;
pub type GVariantClass = ::std::os::raw::c_uint;
unsafe extern "C" {
pub fn g_variant_unref(value: *mut GVariant);
}
unsafe extern "C" {
pub fn g_variant_ref(value: *mut GVariant) -> *mut GVariant;
}
unsafe extern "C" {
pub fn g_variant_ref_sink(value: *mut GVariant) -> *mut GVariant;
}
unsafe extern "C" {
pub fn g_variant_is_floating(value: *mut GVariant) -> gboolean;
}
unsafe extern "C" {
pub fn g_variant_take_ref(value: *mut GVariant) -> *mut GVariant;
}
unsafe extern "C" {
pub fn g_variant_get_type(value: *mut GVariant) -> *const GVariantType;
}
unsafe extern "C" {
pub fn g_variant_get_type_string(value: *mut GVariant) -> *const gchar;
}
unsafe extern "C" {
pub fn g_variant_is_of_type(value: *mut GVariant, type_: *const GVariantType) -> gboolean;
}
unsafe extern "C" {
pub fn g_variant_is_container(value: *mut GVariant) -> gboolean;
}
unsafe extern "C" {
pub fn g_variant_classify(value: *mut GVariant) -> GVariantClass;
}
unsafe extern "C" {
pub fn g_variant_new_boolean(value: gboolean) -> *mut GVariant;
}
unsafe extern "C" {
pub fn g_variant_new_byte(value: guint8) -> *mut GVariant;
}
unsafe extern "C" {
pub fn g_variant_new_int16(value: gint16) -> *mut GVariant;
}
unsafe extern "C" {
pub fn g_variant_new_uint16(value: guint16) -> *mut GVariant;
}
unsafe extern "C" {
pub fn g_variant_new_int32(value: gint32) -> *mut GVariant;
}
unsafe extern "C" {
pub fn g_variant_new_uint32(value: guint32) -> *mut GVariant;
}
unsafe extern "C" {
pub fn g_variant_new_int64(value: gint64) -> *mut GVariant;
}
unsafe extern "C" {
pub fn g_variant_new_uint64(value: guint64) -> *mut GVariant;
}
unsafe extern "C" {
pub fn g_variant_new_handle(value: gint32) -> *mut GVariant;
}
unsafe extern "C" {
pub fn g_variant_new_double(value: gdouble) -> *mut GVariant;
}
unsafe extern "C" {
pub fn g_variant_new_string(string: *const gchar) -> *mut GVariant;
}
unsafe extern "C" {
pub fn g_variant_new_take_string(string: *mut gchar) -> *mut GVariant;
}
unsafe extern "C" {
pub fn g_variant_new_printf(format_string: *const gchar, ...) -> *mut GVariant;
}
unsafe extern "C" {
pub fn g_variant_new_object_path(object_path: *const gchar) -> *mut GVariant;
}
unsafe extern "C" {
pub fn g_variant_is_object_path(string: *const gchar) -> gboolean;
}
unsafe extern "C" {
pub fn g_variant_new_signature(signature: *const gchar) -> *mut GVariant;
}
unsafe extern "C" {
pub fn g_variant_is_signature(string: *const gchar) -> gboolean;
}
unsafe extern "C" {
pub fn g_variant_new_variant(value: *mut GVariant) -> *mut GVariant;
}
unsafe extern "C" {
pub fn g_variant_new_strv(strv: *const *const gchar, length: gssize) -> *mut GVariant;
}
unsafe extern "C" {
pub fn g_variant_new_objv(strv: *const *const gchar, length: gssize) -> *mut GVariant;
}
unsafe extern "C" {
pub fn g_variant_new_bytestring(string: *const gchar) -> *mut GVariant;
}
unsafe extern "C" {
pub fn g_variant_new_bytestring_array(
strv: *const *const gchar,
length: gssize,
) -> *mut GVariant;
}
unsafe extern "C" {
pub fn g_variant_new_fixed_array(
element_type: *const GVariantType,
elements: gconstpointer,
n_elements: gsize,
element_size: gsize,
) -> *mut GVariant;
}
unsafe extern "C" {
pub fn g_variant_get_boolean(value: *mut GVariant) -> gboolean;
}
unsafe extern "C" {
pub fn g_variant_get_byte(value: *mut GVariant) -> guint8;
}
unsafe extern "C" {
pub fn g_variant_get_int16(value: *mut GVariant) -> gint16;
}
unsafe extern "C" {
pub fn g_variant_get_uint16(value: *mut GVariant) -> guint16;
}
unsafe extern "C" {
pub fn g_variant_get_int32(value: *mut GVariant) -> gint32;
}
unsafe extern "C" {
pub fn g_variant_get_uint32(value: *mut GVariant) -> guint32;
}
unsafe extern "C" {
pub fn g_variant_get_int64(value: *mut GVariant) -> gint64;
}
unsafe extern "C" {
pub fn g_variant_get_uint64(value: *mut GVariant) -> guint64;
}
unsafe extern "C" {
pub fn g_variant_get_handle(value: *mut GVariant) -> gint32;
}
unsafe extern "C" {
pub fn g_variant_get_double(value: *mut GVariant) -> gdouble;
}
unsafe extern "C" {
pub fn g_variant_get_variant(value: *mut GVariant) -> *mut GVariant;
}
unsafe extern "C" {
pub fn g_variant_get_string(value: *mut GVariant, length: *mut gsize) -> *const gchar;
}
unsafe extern "C" {
pub fn g_variant_dup_string(value: *mut GVariant, length: *mut gsize) -> *mut gchar;
}
unsafe extern "C" {
pub fn g_variant_get_strv(value: *mut GVariant, length: *mut gsize) -> *mut *const gchar;
}
unsafe extern "C" {
pub fn g_variant_dup_strv(value: *mut GVariant, length: *mut gsize) -> *mut *mut gchar;
}
unsafe extern "C" {
pub fn g_variant_get_objv(value: *mut GVariant, length: *mut gsize) -> *mut *const gchar;
}
unsafe extern "C" {
pub fn g_variant_dup_objv(value: *mut GVariant, length: *mut gsize) -> *mut *mut gchar;
}
unsafe extern "C" {
pub fn g_variant_get_bytestring(value: *mut GVariant) -> *const gchar;
}
unsafe extern "C" {
pub fn g_variant_dup_bytestring(value: *mut GVariant, length: *mut gsize) -> *mut gchar;
}
unsafe extern "C" {
pub fn g_variant_get_bytestring_array(
value: *mut GVariant,
length: *mut gsize,
) -> *mut *const gchar;
}
unsafe extern "C" {
pub fn g_variant_dup_bytestring_array(
value: *mut GVariant,
length: *mut gsize,
) -> *mut *mut gchar;
}
unsafe extern "C" {
pub fn g_variant_new_maybe(
child_type: *const GVariantType,
child: *mut GVariant,
) -> *mut GVariant;
}
unsafe extern "C" {
pub fn g_variant_new_array(
child_type: *const GVariantType,
children: *const *mut GVariant,
n_children: gsize,
) -> *mut GVariant;
}
unsafe extern "C" {
pub fn g_variant_new_tuple(children: *const *mut GVariant, n_children: gsize) -> *mut GVariant;
}
unsafe extern "C" {
pub fn g_variant_new_dict_entry(key: *mut GVariant, value: *mut GVariant) -> *mut GVariant;
}
unsafe extern "C" {
pub fn g_variant_get_maybe(value: *mut GVariant) -> *mut GVariant;
}
unsafe extern "C" {
pub fn g_variant_n_children(value: *mut GVariant) -> gsize;
}
unsafe extern "C" {
pub fn g_variant_get_child(
value: *mut GVariant,
index_: gsize,
format_string: *const gchar,
...
);
}
unsafe extern "C" {
pub fn g_variant_get_child_value(value: *mut GVariant, index_: gsize) -> *mut GVariant;
}
unsafe extern "C" {
pub fn g_variant_lookup(
dictionary: *mut GVariant,
key: *const gchar,
format_string: *const gchar,
...
) -> gboolean;
}
unsafe extern "C" {
pub fn g_variant_lookup_value(
dictionary: *mut GVariant,
key: *const gchar,
expected_type: *const GVariantType,
) -> *mut GVariant;
}
unsafe extern "C" {
pub fn g_variant_get_fixed_array(
value: *mut GVariant,
n_elements: *mut gsize,
element_size: gsize,
) -> gconstpointer;
}
unsafe extern "C" {
pub fn g_variant_get_size(value: *mut GVariant) -> gsize;
}
unsafe extern "C" {
pub fn g_variant_get_data(value: *mut GVariant) -> gconstpointer;
}
unsafe extern "C" {
pub fn g_variant_get_data_as_bytes(value: *mut GVariant) -> *mut GBytes;
}
unsafe extern "C" {
pub fn g_variant_store(value: *mut GVariant, data: gpointer);
}
unsafe extern "C" {
pub fn g_variant_print(value: *mut GVariant, type_annotate: gboolean) -> *mut gchar;
}
unsafe extern "C" {
pub fn g_variant_print_string(
value: *mut GVariant,
string: *mut GString,
type_annotate: gboolean,
) -> *mut GString;
}
unsafe extern "C" {
pub fn g_variant_hash(value: gconstpointer) -> guint;
}
unsafe extern "C" {
pub fn g_variant_equal(one: gconstpointer, two: gconstpointer) -> gboolean;
}
unsafe extern "C" {
pub fn g_variant_get_normal_form(value: *mut GVariant) -> *mut GVariant;
}
unsafe extern "C" {
pub fn g_variant_is_normal_form(value: *mut GVariant) -> gboolean;
}
unsafe extern "C" {
pub fn g_variant_byteswap(value: *mut GVariant) -> *mut GVariant;
}
unsafe extern "C" {
pub fn g_variant_new_from_bytes(
type_: *const GVariantType,
bytes: *mut GBytes,
trusted: gboolean,
) -> *mut GVariant;
}
unsafe 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, PartialEq, Eq)]
pub struct _GVariantIter {
pub x: [guintptr; 16usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GVariantIter"][::std::mem::size_of::<_GVariantIter>() - 128usize];
["Alignment of _GVariantIter"][::std::mem::align_of::<_GVariantIter>() - 8usize];
["Offset of field: _GVariantIter::x"][::std::mem::offset_of!(_GVariantIter, x) - 0usize];
};
unsafe extern "C" {
pub fn g_variant_iter_new(value: *mut GVariant) -> *mut GVariantIter;
}
unsafe extern "C" {
pub fn g_variant_iter_init(iter: *mut GVariantIter, value: *mut GVariant) -> gsize;
}
unsafe extern "C" {
pub fn g_variant_iter_copy(iter: *mut GVariantIter) -> *mut GVariantIter;
}
unsafe extern "C" {
pub fn g_variant_iter_n_children(iter: *mut GVariantIter) -> gsize;
}
unsafe extern "C" {
pub fn g_variant_iter_free(iter: *mut GVariantIter);
}
unsafe extern "C" {
pub fn g_variant_iter_next_value(iter: *mut GVariantIter) -> *mut GVariant;
}
unsafe extern "C" {
pub fn g_variant_iter_next(
iter: *mut GVariantIter,
format_string: *const gchar,
...
) -> gboolean;
}
unsafe 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: [guintptr; 16usize],
}
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GVariantBuilder__bindgen_ty_1__bindgen_ty_1 {
pub partial_magic: gsize,
pub type_: *const GVariantType,
pub y: [guintptr; 14usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GVariantBuilder__bindgen_ty_1__bindgen_ty_1"]
[::std::mem::size_of::<_GVariantBuilder__bindgen_ty_1__bindgen_ty_1>() - 128usize];
["Alignment of _GVariantBuilder__bindgen_ty_1__bindgen_ty_1"]
[::std::mem::align_of::<_GVariantBuilder__bindgen_ty_1__bindgen_ty_1>() - 8usize];
["Offset of field: _GVariantBuilder__bindgen_ty_1__bindgen_ty_1::partial_magic"][::std::mem::offset_of!(
_GVariantBuilder__bindgen_ty_1__bindgen_ty_1,
partial_magic
) - 0usize];
["Offset of field: _GVariantBuilder__bindgen_ty_1__bindgen_ty_1::type_"]
[::std::mem::offset_of!(_GVariantBuilder__bindgen_ty_1__bindgen_ty_1, type_) - 8usize];
["Offset of field: _GVariantBuilder__bindgen_ty_1__bindgen_ty_1::y"]
[::std::mem::offset_of!(_GVariantBuilder__bindgen_ty_1__bindgen_ty_1, y) - 16usize];
};
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GVariantBuilder__bindgen_ty_1"]
[::std::mem::size_of::<_GVariantBuilder__bindgen_ty_1>() - 128usize];
["Alignment of _GVariantBuilder__bindgen_ty_1"]
[::std::mem::align_of::<_GVariantBuilder__bindgen_ty_1>() - 8usize];
["Offset of field: _GVariantBuilder__bindgen_ty_1::s"]
[::std::mem::offset_of!(_GVariantBuilder__bindgen_ty_1, s) - 0usize];
["Offset of field: _GVariantBuilder__bindgen_ty_1::x"]
[::std::mem::offset_of!(_GVariantBuilder__bindgen_ty_1, x) - 0usize];
};
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 }}")
}
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GVariantBuilder"][::std::mem::size_of::<_GVariantBuilder>() - 128usize];
["Alignment of _GVariantBuilder"][::std::mem::align_of::<_GVariantBuilder>() - 8usize];
["Offset of field: _GVariantBuilder::u"][::std::mem::offset_of!(_GVariantBuilder, u) - 0usize];
};
impl ::std::fmt::Debug for _GVariantBuilder {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
write!(f, "_GVariantBuilder {{ u: {:?} }}", self.u)
}
}
pub const GVariantParseError_G_VARIANT_PARSE_ERROR_FAILED: GVariantParseError = 0;
pub const GVariantParseError_G_VARIANT_PARSE_ERROR_BASIC_TYPE_EXPECTED: GVariantParseError = 1;
pub const GVariantParseError_G_VARIANT_PARSE_ERROR_CANNOT_INFER_TYPE: GVariantParseError = 2;
pub const GVariantParseError_G_VARIANT_PARSE_ERROR_DEFINITE_TYPE_EXPECTED: GVariantParseError = 3;
pub const GVariantParseError_G_VARIANT_PARSE_ERROR_INPUT_NOT_AT_END: GVariantParseError = 4;
pub const GVariantParseError_G_VARIANT_PARSE_ERROR_INVALID_CHARACTER: GVariantParseError = 5;
pub const GVariantParseError_G_VARIANT_PARSE_ERROR_INVALID_FORMAT_STRING: GVariantParseError = 6;
pub const GVariantParseError_G_VARIANT_PARSE_ERROR_INVALID_OBJECT_PATH: GVariantParseError = 7;
pub const GVariantParseError_G_VARIANT_PARSE_ERROR_INVALID_SIGNATURE: GVariantParseError = 8;
pub const GVariantParseError_G_VARIANT_PARSE_ERROR_INVALID_TYPE_STRING: GVariantParseError = 9;
pub const GVariantParseError_G_VARIANT_PARSE_ERROR_NO_COMMON_TYPE: GVariantParseError = 10;
pub const GVariantParseError_G_VARIANT_PARSE_ERROR_NUMBER_OUT_OF_RANGE: GVariantParseError = 11;
pub const GVariantParseError_G_VARIANT_PARSE_ERROR_NUMBER_TOO_BIG: GVariantParseError = 12;
pub const GVariantParseError_G_VARIANT_PARSE_ERROR_TYPE_ERROR: GVariantParseError = 13;
pub const GVariantParseError_G_VARIANT_PARSE_ERROR_UNEXPECTED_TOKEN: GVariantParseError = 14;
pub const GVariantParseError_G_VARIANT_PARSE_ERROR_UNKNOWN_KEYWORD: GVariantParseError = 15;
pub const GVariantParseError_G_VARIANT_PARSE_ERROR_UNTERMINATED_STRING_CONSTANT:
GVariantParseError = 16;
pub const GVariantParseError_G_VARIANT_PARSE_ERROR_VALUE_EXPECTED: GVariantParseError = 17;
pub const GVariantParseError_G_VARIANT_PARSE_ERROR_RECURSION: GVariantParseError = 18;
pub type GVariantParseError = ::std::os::raw::c_uint;
unsafe extern "C" {
pub fn g_variant_parser_get_error_quark() -> GQuark;
}
unsafe extern "C" {
pub fn g_variant_parse_error_quark() -> GQuark;
}
unsafe extern "C" {
pub fn g_variant_builder_new(type_: *const GVariantType) -> *mut GVariantBuilder;
}
unsafe extern "C" {
pub fn g_variant_builder_unref(builder: *mut GVariantBuilder);
}
unsafe extern "C" {
pub fn g_variant_builder_ref(builder: *mut GVariantBuilder) -> *mut GVariantBuilder;
}
unsafe extern "C" {
pub fn g_variant_builder_init(builder: *mut GVariantBuilder, type_: *const GVariantType);
}
unsafe extern "C" {
pub fn g_variant_builder_init_static(builder: *mut GVariantBuilder, type_: *const GVariantType);
}
unsafe extern "C" {
pub fn g_variant_builder_end(builder: *mut GVariantBuilder) -> *mut GVariant;
}
unsafe extern "C" {
pub fn g_variant_builder_clear(builder: *mut GVariantBuilder);
}
unsafe extern "C" {
pub fn g_variant_builder_open(builder: *mut GVariantBuilder, type_: *const GVariantType);
}
unsafe extern "C" {
pub fn g_variant_builder_close(builder: *mut GVariantBuilder);
}
unsafe extern "C" {
pub fn g_variant_builder_add_value(builder: *mut GVariantBuilder, value: *mut GVariant);
}
unsafe extern "C" {
pub fn g_variant_builder_add(builder: *mut GVariantBuilder, format_string: *const gchar, ...);
}
unsafe extern "C" {
pub fn g_variant_builder_add_parsed(builder: *mut GVariantBuilder, format: *const gchar, ...);
}
unsafe extern "C" {
pub fn g_variant_new(format_string: *const gchar, ...) -> *mut GVariant;
}
unsafe extern "C" {
pub fn g_variant_get(value: *mut GVariant, format_string: *const gchar, ...);
}
unsafe extern "C" {
pub fn g_variant_new_va(
format_string: *const gchar,
endptr: *mut *const gchar,
app: *mut va_list,
) -> *mut GVariant;
}
unsafe extern "C" {
pub fn g_variant_get_va(
value: *mut GVariant,
format_string: *const gchar,
endptr: *mut *const gchar,
app: *mut va_list,
);
}
unsafe extern "C" {
pub fn g_variant_check_format_string(
value: *mut GVariant,
format_string: *const gchar,
copy_only: gboolean,
) -> gboolean;
}
unsafe 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;
}
unsafe extern "C" {
pub fn g_variant_new_parsed(format: *const gchar, ...) -> *mut GVariant;
}
unsafe extern "C" {
pub fn g_variant_new_parsed_va(format: *const gchar, app: *mut va_list) -> *mut GVariant;
}
unsafe extern "C" {
pub fn g_variant_parse_error_print_context(
error: *mut GError,
source_str: *const gchar,
) -> *mut gchar;
}
unsafe 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: [guintptr; 16usize],
}
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GVariantDict__bindgen_ty_1__bindgen_ty_1 {
pub asv: *mut GVariant,
pub partial_magic: gsize,
pub y: [guintptr; 14usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GVariantDict__bindgen_ty_1__bindgen_ty_1"]
[::std::mem::size_of::<_GVariantDict__bindgen_ty_1__bindgen_ty_1>() - 128usize];
["Alignment of _GVariantDict__bindgen_ty_1__bindgen_ty_1"]
[::std::mem::align_of::<_GVariantDict__bindgen_ty_1__bindgen_ty_1>() - 8usize];
["Offset of field: _GVariantDict__bindgen_ty_1__bindgen_ty_1::asv"]
[::std::mem::offset_of!(_GVariantDict__bindgen_ty_1__bindgen_ty_1, asv) - 0usize];
["Offset of field: _GVariantDict__bindgen_ty_1__bindgen_ty_1::partial_magic"]
[::std::mem::offset_of!(_GVariantDict__bindgen_ty_1__bindgen_ty_1, partial_magic) - 8usize];
["Offset of field: _GVariantDict__bindgen_ty_1__bindgen_ty_1::y"]
[::std::mem::offset_of!(_GVariantDict__bindgen_ty_1__bindgen_ty_1, y) - 16usize];
};
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GVariantDict__bindgen_ty_1"]
[::std::mem::size_of::<_GVariantDict__bindgen_ty_1>() - 128usize];
["Alignment of _GVariantDict__bindgen_ty_1"]
[::std::mem::align_of::<_GVariantDict__bindgen_ty_1>() - 8usize];
["Offset of field: _GVariantDict__bindgen_ty_1::s"]
[::std::mem::offset_of!(_GVariantDict__bindgen_ty_1, s) - 0usize];
["Offset of field: _GVariantDict__bindgen_ty_1::x"]
[::std::mem::offset_of!(_GVariantDict__bindgen_ty_1, x) - 0usize];
};
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 }}")
}
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GVariantDict"][::std::mem::size_of::<_GVariantDict>() - 128usize];
["Alignment of _GVariantDict"][::std::mem::align_of::<_GVariantDict>() - 8usize];
["Offset of field: _GVariantDict::u"][::std::mem::offset_of!(_GVariantDict, u) - 0usize];
};
impl ::std::fmt::Debug for _GVariantDict {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
write!(f, "_GVariantDict {{ u: {:?} }}", self.u)
}
}
unsafe extern "C" {
pub fn g_variant_dict_new(from_asv: *mut GVariant) -> *mut GVariantDict;
}
unsafe extern "C" {
pub fn g_variant_dict_init(dict: *mut GVariantDict, from_asv: *mut GVariant);
}
unsafe extern "C" {
pub fn g_variant_dict_lookup(
dict: *mut GVariantDict,
key: *const gchar,
format_string: *const gchar,
...
) -> gboolean;
}
unsafe extern "C" {
pub fn g_variant_dict_lookup_value(
dict: *mut GVariantDict,
key: *const gchar,
expected_type: *const GVariantType,
) -> *mut GVariant;
}
unsafe extern "C" {
pub fn g_variant_dict_contains(dict: *mut GVariantDict, key: *const gchar) -> gboolean;
}
unsafe extern "C" {
pub fn g_variant_dict_insert(
dict: *mut GVariantDict,
key: *const gchar,
format_string: *const gchar,
...
);
}
unsafe extern "C" {
pub fn g_variant_dict_insert_value(
dict: *mut GVariantDict,
key: *const gchar,
value: *mut GVariant,
);
}
unsafe extern "C" {
pub fn g_variant_dict_remove(dict: *mut GVariantDict, key: *const gchar) -> gboolean;
}
unsafe extern "C" {
pub fn g_variant_dict_clear(dict: *mut GVariantDict);
}
unsafe extern "C" {
pub fn g_variant_dict_end(dict: *mut GVariantDict) -> *mut GVariant;
}
unsafe extern "C" {
pub fn g_variant_dict_ref(dict: *mut GVariantDict) -> *mut GVariantDict;
}
unsafe extern "C" {
pub fn g_variant_dict_unref(dict: *mut GVariantDict);
}
unsafe extern "C" {
pub fn g_printf_string_upper_bound(format: *const gchar, args: va_list) -> gsize;
}
pub const GLogLevelFlags_G_LOG_FLAG_RECURSION: GLogLevelFlags = 1;
pub const GLogLevelFlags_G_LOG_FLAG_FATAL: GLogLevelFlags = 2;
pub const GLogLevelFlags_G_LOG_LEVEL_ERROR: GLogLevelFlags = 4;
pub const GLogLevelFlags_G_LOG_LEVEL_CRITICAL: GLogLevelFlags = 8;
pub const GLogLevelFlags_G_LOG_LEVEL_WARNING: GLogLevelFlags = 16;
pub const GLogLevelFlags_G_LOG_LEVEL_MESSAGE: GLogLevelFlags = 32;
pub const GLogLevelFlags_G_LOG_LEVEL_INFO: GLogLevelFlags = 64;
pub const GLogLevelFlags_G_LOG_LEVEL_DEBUG: GLogLevelFlags = 128;
pub const GLogLevelFlags_G_LOG_LEVEL_MASK: GLogLevelFlags = -4;
pub type GLogLevelFlags = ::std::os::raw::c_int;
pub type GLogFunc = ::std::option::Option<
unsafe extern "C" fn(
log_domain: *const gchar,
log_level: GLogLevelFlags,
message: *const gchar,
user_data: gpointer,
),
>;
unsafe extern "C" {
pub fn g_log_set_handler(
log_domain: *const gchar,
log_levels: GLogLevelFlags,
log_func: GLogFunc,
user_data: gpointer,
) -> guint;
}
unsafe 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;
}
unsafe extern "C" {
pub fn g_log_remove_handler(log_domain: *const gchar, handler_id: guint);
}
unsafe extern "C" {
pub fn g_log_default_handler(
log_domain: *const gchar,
log_level: GLogLevelFlags,
message: *const gchar,
unused_data: gpointer,
);
}
unsafe extern "C" {
pub fn g_log_set_default_handler(log_func: GLogFunc, user_data: gpointer) -> GLogFunc;
}
unsafe extern "C" {
pub fn g_log(log_domain: *const gchar, log_level: GLogLevelFlags, format: *const gchar, ...);
}
unsafe extern "C" {
pub fn g_logv(
log_domain: *const gchar,
log_level: GLogLevelFlags,
format: *const gchar,
args: va_list,
);
}
unsafe extern "C" {
pub fn g_log_set_fatal_mask(
log_domain: *const gchar,
fatal_mask: GLogLevelFlags,
) -> GLogLevelFlags;
}
unsafe extern "C" {
pub fn g_log_set_always_fatal(fatal_mask: GLogLevelFlags) -> GLogLevelFlags;
}
unsafe extern "C" {
pub fn g_log_get_always_fatal() -> GLogLevelFlags;
}
pub const GLogWriterOutput_G_LOG_WRITER_HANDLED: GLogWriterOutput = 1;
pub const GLogWriterOutput_G_LOG_WRITER_UNHANDLED: GLogWriterOutput = 0;
pub type GLogWriterOutput = ::std::os::raw::c_uint;
pub type GLogField = _GLogField;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GLogField {
pub key: *const gchar,
pub value: gconstpointer,
pub length: gssize,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GLogField"][::std::mem::size_of::<_GLogField>() - 24usize];
["Alignment of _GLogField"][::std::mem::align_of::<_GLogField>() - 8usize];
["Offset of field: _GLogField::key"][::std::mem::offset_of!(_GLogField, key) - 0usize];
["Offset of field: _GLogField::value"][::std::mem::offset_of!(_GLogField, value) - 8usize];
["Offset of field: _GLogField::length"][::std::mem::offset_of!(_GLogField, length) - 16usize];
};
pub type GLogWriterFunc = ::std::option::Option<
unsafe extern "C" fn(
log_level: GLogLevelFlags,
fields: *const GLogField,
n_fields: gsize,
user_data: gpointer,
) -> GLogWriterOutput,
>;
unsafe extern "C" {
pub fn g_log_structured(log_domain: *const gchar, log_level: GLogLevelFlags, ...);
}
unsafe extern "C" {
pub fn g_log_structured_array(
log_level: GLogLevelFlags,
fields: *const GLogField,
n_fields: gsize,
);
}
unsafe extern "C" {
pub fn g_log_variant(
log_domain: *const gchar,
log_level: GLogLevelFlags,
fields: *mut GVariant,
);
}
unsafe extern "C" {
pub fn g_log_set_writer_func(
func: GLogWriterFunc,
user_data: gpointer,
user_data_free: GDestroyNotify,
);
}
unsafe extern "C" {
pub fn g_log_writer_supports_color(output_fd: gint) -> gboolean;
}
unsafe extern "C" {
pub fn g_log_writer_is_journald(output_fd: gint) -> gboolean;
}
unsafe extern "C" {
pub fn g_log_writer_format_fields(
log_level: GLogLevelFlags,
fields: *const GLogField,
n_fields: gsize,
use_color: gboolean,
) -> *mut gchar;
}
unsafe extern "C" {
pub fn g_log_writer_syslog(
log_level: GLogLevelFlags,
fields: *const GLogField,
n_fields: gsize,
user_data: gpointer,
) -> GLogWriterOutput;
}
unsafe extern "C" {
pub fn g_log_writer_journald(
log_level: GLogLevelFlags,
fields: *const GLogField,
n_fields: gsize,
user_data: gpointer,
) -> GLogWriterOutput;
}
unsafe extern "C" {
pub fn g_log_writer_standard_streams(
log_level: GLogLevelFlags,
fields: *const GLogField,
n_fields: gsize,
user_data: gpointer,
) -> GLogWriterOutput;
}
unsafe extern "C" {
pub fn g_log_writer_default(
log_level: GLogLevelFlags,
fields: *const GLogField,
n_fields: gsize,
user_data: gpointer,
) -> GLogWriterOutput;
}
unsafe extern "C" {
pub fn g_log_writer_default_set_use_stderr(use_stderr: gboolean);
}
unsafe extern "C" {
pub fn g_log_writer_default_would_drop(
log_level: GLogLevelFlags,
log_domain: *const ::std::os::raw::c_char,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_log_writer_default_set_debug_domains(domains: *const *const gchar);
}
unsafe extern "C" {
pub fn g_log_get_debug_enabled() -> gboolean;
}
unsafe extern "C" {
pub fn g_log_set_debug_enabled(enabled: gboolean);
}
unsafe extern "C" {
pub fn _g_log_fallback_handler(
log_domain: *const gchar,
log_level: GLogLevelFlags,
message: *const gchar,
unused_data: gpointer,
);
}
unsafe 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,
);
}
unsafe 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,
);
}
unsafe 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,
) -> !;
}
unsafe 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)>;
unsafe extern "C" {
pub fn g_print(format: *const gchar, ...);
}
unsafe extern "C" {
pub fn g_set_print_handler(func: GPrintFunc) -> GPrintFunc;
}
unsafe extern "C" {
pub fn g_printerr(format: *const gchar, ...);
}
unsafe 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;
pub const GOptionFlags_G_OPTION_FLAG_NONE: GOptionFlags = 0;
pub const GOptionFlags_G_OPTION_FLAG_HIDDEN: GOptionFlags = 1;
pub const GOptionFlags_G_OPTION_FLAG_IN_MAIN: GOptionFlags = 2;
pub const GOptionFlags_G_OPTION_FLAG_REVERSE: GOptionFlags = 4;
pub const GOptionFlags_G_OPTION_FLAG_NO_ARG: GOptionFlags = 8;
pub const GOptionFlags_G_OPTION_FLAG_FILENAME: GOptionFlags = 16;
pub const GOptionFlags_G_OPTION_FLAG_OPTIONAL_ARG: GOptionFlags = 32;
pub const GOptionFlags_G_OPTION_FLAG_NOALIAS: GOptionFlags = 64;
pub const GOptionFlags_G_OPTION_FLAG_DEPRECATED: GOptionFlags = 128;
pub type GOptionFlags = ::std::os::raw::c_uint;
pub const GOptionArg_G_OPTION_ARG_NONE: GOptionArg = 0;
pub const GOptionArg_G_OPTION_ARG_STRING: GOptionArg = 1;
pub const GOptionArg_G_OPTION_ARG_INT: GOptionArg = 2;
pub const GOptionArg_G_OPTION_ARG_CALLBACK: GOptionArg = 3;
pub const GOptionArg_G_OPTION_ARG_FILENAME: GOptionArg = 4;
pub const GOptionArg_G_OPTION_ARG_STRING_ARRAY: GOptionArg = 5;
pub const GOptionArg_G_OPTION_ARG_FILENAME_ARRAY: GOptionArg = 6;
pub const GOptionArg_G_OPTION_ARG_DOUBLE: GOptionArg = 7;
pub const GOptionArg_G_OPTION_ARG_INT64: GOptionArg = 8;
pub type GOptionArg = ::std::os::raw::c_uint;
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,
),
>;
pub const GOptionError_G_OPTION_ERROR_UNKNOWN_OPTION: GOptionError = 0;
pub const GOptionError_G_OPTION_ERROR_BAD_VALUE: GOptionError = 1;
pub const GOptionError_G_OPTION_ERROR_FAILED: GOptionError = 2;
pub type GOptionError = ::std::os::raw::c_uint;
unsafe extern "C" {
pub fn g_option_error_quark() -> GQuark;
}
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
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,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GOptionEntry"][::std::mem::size_of::<_GOptionEntry>() - 48usize];
["Alignment of _GOptionEntry"][::std::mem::align_of::<_GOptionEntry>() - 8usize];
["Offset of field: _GOptionEntry::long_name"]
[::std::mem::offset_of!(_GOptionEntry, long_name) - 0usize];
["Offset of field: _GOptionEntry::short_name"]
[::std::mem::offset_of!(_GOptionEntry, short_name) - 8usize];
["Offset of field: _GOptionEntry::flags"]
[::std::mem::offset_of!(_GOptionEntry, flags) - 12usize];
["Offset of field: _GOptionEntry::arg"][::std::mem::offset_of!(_GOptionEntry, arg) - 16usize];
["Offset of field: _GOptionEntry::arg_data"]
[::std::mem::offset_of!(_GOptionEntry, arg_data) - 24usize];
["Offset of field: _GOptionEntry::description"]
[::std::mem::offset_of!(_GOptionEntry, description) - 32usize];
["Offset of field: _GOptionEntry::arg_description"]
[::std::mem::offset_of!(_GOptionEntry, arg_description) - 40usize];
};
unsafe extern "C" {
pub fn g_option_context_new(parameter_string: *const gchar) -> *mut GOptionContext;
}
unsafe extern "C" {
pub fn g_option_context_set_summary(context: *mut GOptionContext, summary: *const gchar);
}
unsafe extern "C" {
pub fn g_option_context_get_summary(context: *mut GOptionContext) -> *const gchar;
}
unsafe extern "C" {
pub fn g_option_context_set_description(
context: *mut GOptionContext,
description: *const gchar,
);
}
unsafe extern "C" {
pub fn g_option_context_get_description(context: *mut GOptionContext) -> *const gchar;
}
unsafe extern "C" {
pub fn g_option_context_free(context: *mut GOptionContext);
}
unsafe extern "C" {
pub fn g_option_context_set_help_enabled(context: *mut GOptionContext, help_enabled: gboolean);
}
unsafe extern "C" {
pub fn g_option_context_get_help_enabled(context: *mut GOptionContext) -> gboolean;
}
unsafe extern "C" {
pub fn g_option_context_set_ignore_unknown_options(
context: *mut GOptionContext,
ignore_unknown: gboolean,
);
}
unsafe extern "C" {
pub fn g_option_context_get_ignore_unknown_options(context: *mut GOptionContext) -> gboolean;
}
unsafe extern "C" {
pub fn g_option_context_set_strict_posix(context: *mut GOptionContext, strict_posix: gboolean);
}
unsafe extern "C" {
pub fn g_option_context_get_strict_posix(context: *mut GOptionContext) -> gboolean;
}
unsafe extern "C" {
pub fn g_option_context_add_main_entries(
context: *mut GOptionContext,
entries: *const GOptionEntry,
translation_domain: *const gchar,
);
}
unsafe extern "C" {
pub fn g_option_context_parse(
context: *mut GOptionContext,
argc: *mut gint,
argv: *mut *mut *mut gchar,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_option_context_parse_strv(
context: *mut GOptionContext,
arguments: *mut *mut *mut gchar,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_option_context_set_translate_func(
context: *mut GOptionContext,
func: GTranslateFunc,
data: gpointer,
destroy_notify: GDestroyNotify,
);
}
unsafe extern "C" {
pub fn g_option_context_set_translation_domain(
context: *mut GOptionContext,
domain: *const gchar,
);
}
unsafe extern "C" {
pub fn g_option_context_add_group(context: *mut GOptionContext, group: *mut GOptionGroup);
}
unsafe extern "C" {
pub fn g_option_context_set_main_group(context: *mut GOptionContext, group: *mut GOptionGroup);
}
unsafe extern "C" {
pub fn g_option_context_get_main_group(context: *mut GOptionContext) -> *mut GOptionGroup;
}
unsafe extern "C" {
pub fn g_option_context_get_help(
context: *mut GOptionContext,
main_help: gboolean,
group: *mut GOptionGroup,
) -> *mut gchar;
}
unsafe 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;
}
unsafe extern "C" {
pub fn g_option_group_set_parse_hooks(
group: *mut GOptionGroup,
pre_parse_func: GOptionParseFunc,
post_parse_func: GOptionParseFunc,
);
}
unsafe extern "C" {
pub fn g_option_group_set_error_hook(group: *mut GOptionGroup, error_func: GOptionErrorFunc);
}
unsafe extern "C" {
pub fn g_option_group_free(group: *mut GOptionGroup);
}
unsafe extern "C" {
pub fn g_option_group_ref(group: *mut GOptionGroup) -> *mut GOptionGroup;
}
unsafe extern "C" {
pub fn g_option_group_unref(group: *mut GOptionGroup);
}
unsafe extern "C" {
pub fn g_option_group_add_entries(group: *mut GOptionGroup, entries: *const GOptionEntry);
}
unsafe extern "C" {
pub fn g_option_group_set_translate_func(
group: *mut GOptionGroup,
func: GTranslateFunc,
data: gpointer,
destroy_notify: GDestroyNotify,
);
}
unsafe extern "C" {
pub fn g_option_group_set_translation_domain(group: *mut GOptionGroup, domain: *const gchar);
}
pub type GPathBuf = _GPathBuf;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GPathBuf {
pub dummy: [gpointer; 8usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GPathBuf"][::std::mem::size_of::<_GPathBuf>() - 64usize];
["Alignment of _GPathBuf"][::std::mem::align_of::<_GPathBuf>() - 8usize];
["Offset of field: _GPathBuf::dummy"][::std::mem::offset_of!(_GPathBuf, dummy) - 0usize];
};
unsafe extern "C" {
pub fn g_path_buf_new() -> *mut GPathBuf;
}
unsafe extern "C" {
pub fn g_path_buf_new_from_path(path: *const ::std::os::raw::c_char) -> *mut GPathBuf;
}
unsafe extern "C" {
pub fn g_path_buf_init(buf: *mut GPathBuf) -> *mut GPathBuf;
}
unsafe extern "C" {
pub fn g_path_buf_init_from_path(
buf: *mut GPathBuf,
path: *const ::std::os::raw::c_char,
) -> *mut GPathBuf;
}
unsafe extern "C" {
pub fn g_path_buf_clear(buf: *mut GPathBuf);
}
unsafe extern "C" {
pub fn g_path_buf_clear_to_path(buf: *mut GPathBuf) -> *mut ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn g_path_buf_free(buf: *mut GPathBuf);
}
unsafe extern "C" {
pub fn g_path_buf_free_to_path(buf: *mut GPathBuf) -> *mut ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn g_path_buf_copy(buf: *mut GPathBuf) -> *mut GPathBuf;
}
unsafe extern "C" {
pub fn g_path_buf_push(
buf: *mut GPathBuf,
path: *const ::std::os::raw::c_char,
) -> *mut GPathBuf;
}
unsafe extern "C" {
pub fn g_path_buf_pop(buf: *mut GPathBuf) -> gboolean;
}
unsafe extern "C" {
pub fn g_path_buf_set_filename(
buf: *mut GPathBuf,
file_name: *const ::std::os::raw::c_char,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_path_buf_set_extension(
buf: *mut GPathBuf,
extension: *const ::std::os::raw::c_char,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_path_buf_to_path(buf: *mut GPathBuf) -> *mut ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn g_path_buf_equal(v1: gconstpointer, v2: gconstpointer) -> gboolean;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GPatternSpec {
_unused: [u8; 0],
}
pub type GPatternSpec = _GPatternSpec;
unsafe extern "C" {
pub fn g_pattern_spec_new(pattern: *const gchar) -> *mut GPatternSpec;
}
unsafe extern "C" {
pub fn g_pattern_spec_free(pspec: *mut GPatternSpec);
}
unsafe extern "C" {
pub fn g_pattern_spec_copy(pspec: *mut GPatternSpec) -> *mut GPatternSpec;
}
unsafe extern "C" {
pub fn g_pattern_spec_equal(pspec1: *mut GPatternSpec, pspec2: *mut GPatternSpec) -> gboolean;
}
unsafe extern "C" {
pub fn g_pattern_spec_match(
pspec: *mut GPatternSpec,
string_length: gsize,
string: *const gchar,
string_reversed: *const gchar,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_pattern_spec_match_string(pspec: *mut GPatternSpec, string: *const gchar) -> gboolean;
}
unsafe extern "C" {
pub fn g_pattern_match(
pspec: *mut GPatternSpec,
string_length: guint,
string: *const gchar,
string_reversed: *const gchar,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_pattern_match_string(pspec: *mut GPatternSpec, string: *const gchar) -> gboolean;
}
unsafe extern "C" {
pub fn g_pattern_match_simple(pattern: *const gchar, string: *const gchar) -> gboolean;
}
unsafe extern "C" {
pub fn g_spaced_primes_closest(num: guint) -> guint;
}
unsafe extern "C" {
pub fn g_qsort_with_data(
pbase: gconstpointer,
total_elems: gint,
size: gsize,
compare_func: GCompareDataFunc,
user_data: gpointer,
);
}
unsafe extern "C" {
pub fn g_sort_array(
array: *const ::std::os::raw::c_void,
n_elements: size_t,
element_size: size_t,
compare_func: GCompareDataFunc,
user_data: *mut ::std::os::raw::c_void,
);
}
pub type GQueue = _GQueue;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GQueue {
pub head: *mut GList,
pub tail: *mut GList,
pub length: guint,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GQueue"][::std::mem::size_of::<_GQueue>() - 24usize];
["Alignment of _GQueue"][::std::mem::align_of::<_GQueue>() - 8usize];
["Offset of field: _GQueue::head"][::std::mem::offset_of!(_GQueue, head) - 0usize];
["Offset of field: _GQueue::tail"][::std::mem::offset_of!(_GQueue, tail) - 8usize];
["Offset of field: _GQueue::length"][::std::mem::offset_of!(_GQueue, length) - 16usize];
};
unsafe extern "C" {
pub fn g_queue_new() -> *mut GQueue;
}
unsafe extern "C" {
pub fn g_queue_free(queue: *mut GQueue);
}
unsafe extern "C" {
pub fn g_queue_free_full(queue: *mut GQueue, free_func: GDestroyNotify);
}
unsafe extern "C" {
pub fn g_queue_init(queue: *mut GQueue);
}
unsafe extern "C" {
pub fn g_queue_clear(queue: *mut GQueue);
}
unsafe extern "C" {
pub fn g_queue_is_empty(queue: *mut GQueue) -> gboolean;
}
unsafe extern "C" {
pub fn g_queue_clear_full(queue: *mut GQueue, free_func: GDestroyNotify);
}
unsafe extern "C" {
pub fn g_queue_get_length(queue: *mut GQueue) -> guint;
}
unsafe extern "C" {
pub fn g_queue_reverse(queue: *mut GQueue);
}
unsafe extern "C" {
pub fn g_queue_copy(queue: *mut GQueue) -> *mut GQueue;
}
unsafe extern "C" {
pub fn g_queue_foreach(queue: *mut GQueue, func: GFunc, user_data: gpointer);
}
unsafe extern "C" {
pub fn g_queue_find(queue: *mut GQueue, data: gconstpointer) -> *mut GList;
}
unsafe extern "C" {
pub fn g_queue_find_custom(
queue: *mut GQueue,
data: gconstpointer,
func: GCompareFunc,
) -> *mut GList;
}
unsafe extern "C" {
pub fn g_queue_sort(queue: *mut GQueue, compare_func: GCompareDataFunc, user_data: gpointer);
}
unsafe extern "C" {
pub fn g_queue_push_head(queue: *mut GQueue, data: gpointer);
}
unsafe extern "C" {
pub fn g_queue_push_tail(queue: *mut GQueue, data: gpointer);
}
unsafe extern "C" {
pub fn g_queue_push_nth(queue: *mut GQueue, data: gpointer, n: gint);
}
unsafe extern "C" {
pub fn g_queue_pop_head(queue: *mut GQueue) -> gpointer;
}
unsafe extern "C" {
pub fn g_queue_pop_tail(queue: *mut GQueue) -> gpointer;
}
unsafe extern "C" {
pub fn g_queue_pop_nth(queue: *mut GQueue, n: guint) -> gpointer;
}
unsafe extern "C" {
pub fn g_queue_peek_head(queue: *mut GQueue) -> gpointer;
}
unsafe extern "C" {
pub fn g_queue_peek_tail(queue: *mut GQueue) -> gpointer;
}
unsafe extern "C" {
pub fn g_queue_peek_nth(queue: *mut GQueue, n: guint) -> gpointer;
}
unsafe extern "C" {
pub fn g_queue_index(queue: *mut GQueue, data: gconstpointer) -> gint;
}
unsafe extern "C" {
pub fn g_queue_remove(queue: *mut GQueue, data: gconstpointer) -> gboolean;
}
unsafe extern "C" {
pub fn g_queue_remove_all(queue: *mut GQueue, data: gconstpointer) -> guint;
}
unsafe extern "C" {
pub fn g_queue_insert_before(queue: *mut GQueue, sibling: *mut GList, data: gpointer);
}
unsafe extern "C" {
pub fn g_queue_insert_before_link(queue: *mut GQueue, sibling: *mut GList, link_: *mut GList);
}
unsafe extern "C" {
pub fn g_queue_insert_after(queue: *mut GQueue, sibling: *mut GList, data: gpointer);
}
unsafe extern "C" {
pub fn g_queue_insert_after_link(queue: *mut GQueue, sibling: *mut GList, link_: *mut GList);
}
unsafe extern "C" {
pub fn g_queue_insert_sorted(
queue: *mut GQueue,
data: gpointer,
func: GCompareDataFunc,
user_data: gpointer,
);
}
unsafe extern "C" {
pub fn g_queue_push_head_link(queue: *mut GQueue, link_: *mut GList);
}
unsafe extern "C" {
pub fn g_queue_push_tail_link(queue: *mut GQueue, link_: *mut GList);
}
unsafe extern "C" {
pub fn g_queue_push_nth_link(queue: *mut GQueue, n: gint, link_: *mut GList);
}
unsafe extern "C" {
pub fn g_queue_pop_head_link(queue: *mut GQueue) -> *mut GList;
}
unsafe extern "C" {
pub fn g_queue_pop_tail_link(queue: *mut GQueue) -> *mut GList;
}
unsafe extern "C" {
pub fn g_queue_pop_nth_link(queue: *mut GQueue, n: guint) -> *mut GList;
}
unsafe extern "C" {
pub fn g_queue_peek_head_link(queue: *mut GQueue) -> *mut GList;
}
unsafe extern "C" {
pub fn g_queue_peek_tail_link(queue: *mut GQueue) -> *mut GList;
}
unsafe extern "C" {
pub fn g_queue_peek_nth_link(queue: *mut GQueue, n: guint) -> *mut GList;
}
unsafe extern "C" {
pub fn g_queue_link_index(queue: *mut GQueue, link_: *mut GList) -> gint;
}
unsafe extern "C" {
pub fn g_queue_unlink(queue: *mut GQueue, link_: *mut GList);
}
unsafe 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;
unsafe extern "C" {
pub fn g_rand_new_with_seed(seed: guint32) -> *mut GRand;
}
unsafe extern "C" {
pub fn g_rand_new_with_seed_array(seed: *const guint32, seed_length: guint) -> *mut GRand;
}
unsafe extern "C" {
pub fn g_rand_new() -> *mut GRand;
}
unsafe extern "C" {
pub fn g_rand_free(rand_: *mut GRand);
}
unsafe extern "C" {
pub fn g_rand_copy(rand_: *mut GRand) -> *mut GRand;
}
unsafe extern "C" {
pub fn g_rand_set_seed(rand_: *mut GRand, seed: guint32);
}
unsafe extern "C" {
pub fn g_rand_set_seed_array(rand_: *mut GRand, seed: *const guint32, seed_length: guint);
}
unsafe extern "C" {
pub fn g_rand_int(rand_: *mut GRand) -> guint32;
}
unsafe extern "C" {
pub fn g_rand_int_range(rand_: *mut GRand, begin: gint32, end: gint32) -> gint32;
}
unsafe extern "C" {
pub fn g_rand_double(rand_: *mut GRand) -> gdouble;
}
unsafe extern "C" {
pub fn g_rand_double_range(rand_: *mut GRand, begin: gdouble, end: gdouble) -> gdouble;
}
unsafe extern "C" {
pub fn g_random_set_seed(seed: guint32);
}
unsafe extern "C" {
pub fn g_random_int() -> guint32;
}
unsafe extern "C" {
pub fn g_random_int_range(begin: gint32, end: gint32) -> gint32;
}
unsafe extern "C" {
pub fn g_random_double() -> gdouble;
}
unsafe extern "C" {
pub fn g_random_double_range(begin: gdouble, end: gdouble) -> gdouble;
}
unsafe extern "C" {
pub fn g_rc_box_alloc(block_size: gsize) -> gpointer;
}
unsafe extern "C" {
pub fn g_rc_box_alloc0(block_size: gsize) -> gpointer;
}
unsafe extern "C" {
pub fn g_rc_box_dup(block_size: gsize, mem_block: gconstpointer) -> gpointer;
}
unsafe extern "C" {
pub fn g_rc_box_acquire(mem_block: gpointer) -> gpointer;
}
unsafe extern "C" {
pub fn g_rc_box_release(mem_block: gpointer);
}
unsafe extern "C" {
pub fn g_rc_box_release_full(mem_block: gpointer, clear_func: GDestroyNotify);
}
unsafe extern "C" {
pub fn g_rc_box_get_size(mem_block: gpointer) -> gsize;
}
unsafe extern "C" {
pub fn g_atomic_rc_box_alloc(block_size: gsize) -> gpointer;
}
unsafe extern "C" {
pub fn g_atomic_rc_box_alloc0(block_size: gsize) -> gpointer;
}
unsafe extern "C" {
pub fn g_atomic_rc_box_dup(block_size: gsize, mem_block: gconstpointer) -> gpointer;
}
unsafe extern "C" {
pub fn g_atomic_rc_box_acquire(mem_block: gpointer) -> gpointer;
}
unsafe extern "C" {
pub fn g_atomic_rc_box_release(mem_block: gpointer);
}
unsafe extern "C" {
pub fn g_atomic_rc_box_release_full(mem_block: gpointer, clear_func: GDestroyNotify);
}
unsafe extern "C" {
pub fn g_atomic_rc_box_get_size(mem_block: gpointer) -> gsize;
}
unsafe extern "C" {
pub fn g_ref_count_init(rc: *mut grefcount);
}
unsafe extern "C" {
pub fn g_ref_count_inc(rc: *mut grefcount);
}
unsafe extern "C" {
pub fn g_ref_count_dec(rc: *mut grefcount) -> gboolean;
}
unsafe extern "C" {
pub fn g_ref_count_compare(rc: *mut grefcount, val: gint) -> gboolean;
}
unsafe extern "C" {
pub fn g_atomic_ref_count_init(arc: *mut gatomicrefcount);
}
unsafe extern "C" {
pub fn g_atomic_ref_count_inc(arc: *mut gatomicrefcount);
}
unsafe extern "C" {
pub fn g_atomic_ref_count_dec(arc: *mut gatomicrefcount) -> gboolean;
}
unsafe extern "C" {
pub fn g_atomic_ref_count_compare(arc: *mut gatomicrefcount, val: gint) -> gboolean;
}
unsafe extern "C" {
pub fn g_ref_string_new(str_: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn g_ref_string_new_len(
str_: *const ::std::os::raw::c_char,
len: gssize,
) -> *mut ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn g_ref_string_new_intern(
str_: *const ::std::os::raw::c_char,
) -> *mut ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn g_ref_string_acquire(str_: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn g_ref_string_release(str_: *mut ::std::os::raw::c_char);
}
unsafe extern "C" {
pub fn g_ref_string_length(str_: *mut ::std::os::raw::c_char) -> gsize;
}
pub type GRefString = ::std::os::raw::c_char;
unsafe extern "C" {
pub fn g_ref_string_equal(
str1: *const ::std::os::raw::c_char,
str2: *const ::std::os::raw::c_char,
) -> gboolean;
}
pub const GRegexError_G_REGEX_ERROR_COMPILE: GRegexError = 0;
pub const GRegexError_G_REGEX_ERROR_OPTIMIZE: GRegexError = 1;
pub const GRegexError_G_REGEX_ERROR_REPLACE: GRegexError = 2;
pub const GRegexError_G_REGEX_ERROR_MATCH: GRegexError = 3;
pub const GRegexError_G_REGEX_ERROR_INTERNAL: GRegexError = 4;
pub const GRegexError_G_REGEX_ERROR_STRAY_BACKSLASH: GRegexError = 101;
pub const GRegexError_G_REGEX_ERROR_MISSING_CONTROL_CHAR: GRegexError = 102;
pub const GRegexError_G_REGEX_ERROR_UNRECOGNIZED_ESCAPE: GRegexError = 103;
pub const GRegexError_G_REGEX_ERROR_QUANTIFIERS_OUT_OF_ORDER: GRegexError = 104;
pub const GRegexError_G_REGEX_ERROR_QUANTIFIER_TOO_BIG: GRegexError = 105;
pub const GRegexError_G_REGEX_ERROR_UNTERMINATED_CHARACTER_CLASS: GRegexError = 106;
pub const GRegexError_G_REGEX_ERROR_INVALID_ESCAPE_IN_CHARACTER_CLASS: GRegexError = 107;
pub const GRegexError_G_REGEX_ERROR_RANGE_OUT_OF_ORDER: GRegexError = 108;
pub const GRegexError_G_REGEX_ERROR_NOTHING_TO_REPEAT: GRegexError = 109;
pub const GRegexError_G_REGEX_ERROR_UNRECOGNIZED_CHARACTER: GRegexError = 112;
pub const GRegexError_G_REGEX_ERROR_POSIX_NAMED_CLASS_OUTSIDE_CLASS: GRegexError = 113;
pub const GRegexError_G_REGEX_ERROR_UNMATCHED_PARENTHESIS: GRegexError = 114;
pub const GRegexError_G_REGEX_ERROR_INEXISTENT_SUBPATTERN_REFERENCE: GRegexError = 115;
pub const GRegexError_G_REGEX_ERROR_UNTERMINATED_COMMENT: GRegexError = 118;
pub const GRegexError_G_REGEX_ERROR_EXPRESSION_TOO_LARGE: GRegexError = 120;
pub const GRegexError_G_REGEX_ERROR_MEMORY_ERROR: GRegexError = 121;
pub const GRegexError_G_REGEX_ERROR_VARIABLE_LENGTH_LOOKBEHIND: GRegexError = 125;
pub const GRegexError_G_REGEX_ERROR_MALFORMED_CONDITION: GRegexError = 126;
pub const GRegexError_G_REGEX_ERROR_TOO_MANY_CONDITIONAL_BRANCHES: GRegexError = 127;
pub const GRegexError_G_REGEX_ERROR_ASSERTION_EXPECTED: GRegexError = 128;
pub const GRegexError_G_REGEX_ERROR_UNKNOWN_POSIX_CLASS_NAME: GRegexError = 130;
pub const GRegexError_G_REGEX_ERROR_POSIX_COLLATING_ELEMENTS_NOT_SUPPORTED: GRegexError = 131;
pub const GRegexError_G_REGEX_ERROR_HEX_CODE_TOO_LARGE: GRegexError = 134;
pub const GRegexError_G_REGEX_ERROR_INVALID_CONDITION: GRegexError = 135;
pub const GRegexError_G_REGEX_ERROR_SINGLE_BYTE_MATCH_IN_LOOKBEHIND: GRegexError = 136;
pub const GRegexError_G_REGEX_ERROR_INFINITE_LOOP: GRegexError = 140;
pub const GRegexError_G_REGEX_ERROR_MISSING_SUBPATTERN_NAME_TERMINATOR: GRegexError = 142;
pub const GRegexError_G_REGEX_ERROR_DUPLICATE_SUBPATTERN_NAME: GRegexError = 143;
pub const GRegexError_G_REGEX_ERROR_MALFORMED_PROPERTY: GRegexError = 146;
pub const GRegexError_G_REGEX_ERROR_UNKNOWN_PROPERTY: GRegexError = 147;
pub const GRegexError_G_REGEX_ERROR_SUBPATTERN_NAME_TOO_LONG: GRegexError = 148;
pub const GRegexError_G_REGEX_ERROR_TOO_MANY_SUBPATTERNS: GRegexError = 149;
pub const GRegexError_G_REGEX_ERROR_INVALID_OCTAL_VALUE: GRegexError = 151;
pub const GRegexError_G_REGEX_ERROR_TOO_MANY_BRANCHES_IN_DEFINE: GRegexError = 154;
pub const GRegexError_G_REGEX_ERROR_DEFINE_REPETION: GRegexError = 155;
pub const GRegexError_G_REGEX_ERROR_INCONSISTENT_NEWLINE_OPTIONS: GRegexError = 156;
pub const GRegexError_G_REGEX_ERROR_MISSING_BACK_REFERENCE: GRegexError = 157;
pub const GRegexError_G_REGEX_ERROR_INVALID_RELATIVE_REFERENCE: GRegexError = 158;
pub const GRegexError_G_REGEX_ERROR_BACKTRACKING_CONTROL_VERB_ARGUMENT_FORBIDDEN: GRegexError = 159;
pub const GRegexError_G_REGEX_ERROR_UNKNOWN_BACKTRACKING_CONTROL_VERB: GRegexError = 160;
pub const GRegexError_G_REGEX_ERROR_NUMBER_TOO_BIG: GRegexError = 161;
pub const GRegexError_G_REGEX_ERROR_MISSING_SUBPATTERN_NAME: GRegexError = 162;
pub const GRegexError_G_REGEX_ERROR_MISSING_DIGIT: GRegexError = 163;
pub const GRegexError_G_REGEX_ERROR_INVALID_DATA_CHARACTER: GRegexError = 164;
pub const GRegexError_G_REGEX_ERROR_EXTRA_SUBPATTERN_NAME: GRegexError = 165;
pub const GRegexError_G_REGEX_ERROR_BACKTRACKING_CONTROL_VERB_ARGUMENT_REQUIRED: GRegexError = 166;
pub const GRegexError_G_REGEX_ERROR_INVALID_CONTROL_CHAR: GRegexError = 168;
pub const GRegexError_G_REGEX_ERROR_MISSING_NAME: GRegexError = 169;
pub const GRegexError_G_REGEX_ERROR_NOT_SUPPORTED_IN_CLASS: GRegexError = 171;
pub const GRegexError_G_REGEX_ERROR_TOO_MANY_FORWARD_REFERENCES: GRegexError = 172;
pub const GRegexError_G_REGEX_ERROR_NAME_TOO_LONG: GRegexError = 175;
pub const GRegexError_G_REGEX_ERROR_CHARACTER_VALUE_TOO_LARGE: GRegexError = 176;
pub type GRegexError = ::std::os::raw::c_uint;
unsafe extern "C" {
pub fn g_regex_error_quark() -> GQuark;
}
pub const GRegexCompileFlags_G_REGEX_DEFAULT: GRegexCompileFlags = 0;
pub const GRegexCompileFlags_G_REGEX_CASELESS: GRegexCompileFlags = 1;
pub const GRegexCompileFlags_G_REGEX_MULTILINE: GRegexCompileFlags = 2;
pub const GRegexCompileFlags_G_REGEX_DOTALL: GRegexCompileFlags = 4;
pub const GRegexCompileFlags_G_REGEX_EXTENDED: GRegexCompileFlags = 8;
pub const GRegexCompileFlags_G_REGEX_ANCHORED: GRegexCompileFlags = 16;
pub const GRegexCompileFlags_G_REGEX_DOLLAR_ENDONLY: GRegexCompileFlags = 32;
pub const GRegexCompileFlags_G_REGEX_UNGREEDY: GRegexCompileFlags = 512;
pub const GRegexCompileFlags_G_REGEX_RAW: GRegexCompileFlags = 2048;
pub const GRegexCompileFlags_G_REGEX_NO_AUTO_CAPTURE: GRegexCompileFlags = 4096;
pub const GRegexCompileFlags_G_REGEX_OPTIMIZE: GRegexCompileFlags = 8192;
pub const GRegexCompileFlags_G_REGEX_FIRSTLINE: GRegexCompileFlags = 262144;
pub const GRegexCompileFlags_G_REGEX_DUPNAMES: GRegexCompileFlags = 524288;
pub const GRegexCompileFlags_G_REGEX_NEWLINE_CR: GRegexCompileFlags = 1048576;
pub const GRegexCompileFlags_G_REGEX_NEWLINE_LF: GRegexCompileFlags = 2097152;
pub const GRegexCompileFlags_G_REGEX_NEWLINE_CRLF: GRegexCompileFlags = 3145728;
pub const GRegexCompileFlags_G_REGEX_NEWLINE_ANYCRLF: GRegexCompileFlags = 5242880;
pub const GRegexCompileFlags_G_REGEX_BSR_ANYCRLF: GRegexCompileFlags = 8388608;
pub const GRegexCompileFlags_G_REGEX_JAVASCRIPT_COMPAT: GRegexCompileFlags = 33554432;
pub type GRegexCompileFlags = ::std::os::raw::c_uint;
pub const GRegexMatchFlags_G_REGEX_MATCH_DEFAULT: GRegexMatchFlags = 0;
pub const GRegexMatchFlags_G_REGEX_MATCH_ANCHORED: GRegexMatchFlags = 16;
pub const GRegexMatchFlags_G_REGEX_MATCH_NOTBOL: GRegexMatchFlags = 128;
pub const GRegexMatchFlags_G_REGEX_MATCH_NOTEOL: GRegexMatchFlags = 256;
pub const GRegexMatchFlags_G_REGEX_MATCH_NOTEMPTY: GRegexMatchFlags = 1024;
pub const GRegexMatchFlags_G_REGEX_MATCH_PARTIAL: GRegexMatchFlags = 32768;
pub const GRegexMatchFlags_G_REGEX_MATCH_NEWLINE_CR: GRegexMatchFlags = 1048576;
pub const GRegexMatchFlags_G_REGEX_MATCH_NEWLINE_LF: GRegexMatchFlags = 2097152;
pub const GRegexMatchFlags_G_REGEX_MATCH_NEWLINE_CRLF: GRegexMatchFlags = 3145728;
pub const GRegexMatchFlags_G_REGEX_MATCH_NEWLINE_ANY: GRegexMatchFlags = 4194304;
pub const GRegexMatchFlags_G_REGEX_MATCH_NEWLINE_ANYCRLF: GRegexMatchFlags = 5242880;
pub const GRegexMatchFlags_G_REGEX_MATCH_BSR_ANYCRLF: GRegexMatchFlags = 8388608;
pub const GRegexMatchFlags_G_REGEX_MATCH_BSR_ANY: GRegexMatchFlags = 16777216;
pub const GRegexMatchFlags_G_REGEX_MATCH_PARTIAL_SOFT: GRegexMatchFlags = 32768;
pub const GRegexMatchFlags_G_REGEX_MATCH_PARTIAL_HARD: GRegexMatchFlags = 134217728;
pub const GRegexMatchFlags_G_REGEX_MATCH_NOTEMPTY_ATSTART: GRegexMatchFlags = 268435456;
pub type GRegexMatchFlags = ::std::os::raw::c_uint;
#[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,
>;
unsafe extern "C" {
pub fn g_regex_new(
pattern: *const gchar,
compile_options: GRegexCompileFlags,
match_options: GRegexMatchFlags,
error: *mut *mut GError,
) -> *mut GRegex;
}
unsafe extern "C" {
pub fn g_regex_ref(regex: *mut GRegex) -> *mut GRegex;
}
unsafe extern "C" {
pub fn g_regex_unref(regex: *mut GRegex);
}
unsafe extern "C" {
pub fn g_regex_get_pattern(regex: *const GRegex) -> *const gchar;
}
unsafe extern "C" {
pub fn g_regex_get_max_backref(regex: *const GRegex) -> gint;
}
unsafe extern "C" {
pub fn g_regex_get_capture_count(regex: *const GRegex) -> gint;
}
unsafe extern "C" {
pub fn g_regex_get_has_cr_or_lf(regex: *const GRegex) -> gboolean;
}
unsafe extern "C" {
pub fn g_regex_get_max_lookbehind(regex: *const GRegex) -> gint;
}
unsafe extern "C" {
pub fn g_regex_get_string_number(regex: *const GRegex, name: *const gchar) -> gint;
}
unsafe extern "C" {
pub fn g_regex_escape_string(string: *const gchar, length: gint) -> *mut gchar;
}
unsafe extern "C" {
pub fn g_regex_escape_nul(string: *const gchar, length: gint) -> *mut gchar;
}
unsafe extern "C" {
pub fn g_regex_get_compile_flags(regex: *const GRegex) -> GRegexCompileFlags;
}
unsafe extern "C" {
pub fn g_regex_get_match_flags(regex: *const GRegex) -> GRegexMatchFlags;
}
unsafe extern "C" {
pub fn g_regex_match_simple(
pattern: *const gchar,
string: *const gchar,
compile_options: GRegexCompileFlags,
match_options: GRegexMatchFlags,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_regex_match(
regex: *const GRegex,
string: *const gchar,
match_options: GRegexMatchFlags,
match_info: *mut *mut GMatchInfo,
) -> gboolean;
}
unsafe 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;
}
unsafe extern "C" {
pub fn g_regex_match_all(
regex: *const GRegex,
string: *const gchar,
match_options: GRegexMatchFlags,
match_info: *mut *mut GMatchInfo,
) -> gboolean;
}
unsafe 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;
}
unsafe extern "C" {
pub fn g_regex_split_simple(
pattern: *const gchar,
string: *const gchar,
compile_options: GRegexCompileFlags,
match_options: GRegexMatchFlags,
) -> *mut *mut gchar;
}
unsafe extern "C" {
pub fn g_regex_split(
regex: *const GRegex,
string: *const gchar,
match_options: GRegexMatchFlags,
) -> *mut *mut gchar;
}
unsafe 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;
}
unsafe 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;
}
unsafe 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;
}
unsafe 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;
}
unsafe extern "C" {
pub fn g_regex_check_replacement(
replacement: *const gchar,
has_references: *mut gboolean,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_match_info_get_regex(match_info: *const GMatchInfo) -> *mut GRegex;
}
unsafe extern "C" {
pub fn g_match_info_get_string(match_info: *const GMatchInfo) -> *const gchar;
}
unsafe extern "C" {
pub fn g_match_info_ref(match_info: *mut GMatchInfo) -> *mut GMatchInfo;
}
unsafe extern "C" {
pub fn g_match_info_unref(match_info: *mut GMatchInfo);
}
unsafe extern "C" {
pub fn g_match_info_free(match_info: *mut GMatchInfo);
}
unsafe extern "C" {
pub fn g_match_info_next(match_info: *mut GMatchInfo, error: *mut *mut GError) -> gboolean;
}
unsafe extern "C" {
pub fn g_match_info_matches(match_info: *const GMatchInfo) -> gboolean;
}
unsafe extern "C" {
pub fn g_match_info_get_match_count(match_info: *const GMatchInfo) -> gint;
}
unsafe extern "C" {
pub fn g_match_info_is_partial_match(match_info: *const GMatchInfo) -> gboolean;
}
unsafe extern "C" {
pub fn g_match_info_expand_references(
match_info: *const GMatchInfo,
string_to_expand: *const gchar,
error: *mut *mut GError,
) -> *mut gchar;
}
unsafe extern "C" {
pub fn g_match_info_fetch(match_info: *const GMatchInfo, match_num: gint) -> *mut gchar;
}
unsafe 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;
}
unsafe extern "C" {
pub fn g_match_info_fetch_named(
match_info: *const GMatchInfo,
name: *const gchar,
) -> *mut gchar;
}
unsafe 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;
}
unsafe 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),
>;
pub const GErrorType_G_ERR_UNKNOWN: GErrorType = 0;
pub const GErrorType_G_ERR_UNEXP_EOF: GErrorType = 1;
pub const GErrorType_G_ERR_UNEXP_EOF_IN_STRING: GErrorType = 2;
pub const GErrorType_G_ERR_UNEXP_EOF_IN_COMMENT: GErrorType = 3;
pub const GErrorType_G_ERR_NON_DIGIT_IN_CONST: GErrorType = 4;
pub const GErrorType_G_ERR_DIGIT_RADIX: GErrorType = 5;
pub const GErrorType_G_ERR_FLOAT_RADIX: GErrorType = 6;
pub const GErrorType_G_ERR_FLOAT_MALFORMED: GErrorType = 7;
pub type GErrorType = ::std::os::raw::c_uint;
pub const GTokenType_G_TOKEN_EOF: GTokenType = 0;
pub const GTokenType_G_TOKEN_LEFT_PAREN: GTokenType = 40;
pub const GTokenType_G_TOKEN_RIGHT_PAREN: GTokenType = 41;
pub const GTokenType_G_TOKEN_LEFT_CURLY: GTokenType = 123;
pub const GTokenType_G_TOKEN_RIGHT_CURLY: GTokenType = 125;
pub const GTokenType_G_TOKEN_LEFT_BRACE: GTokenType = 91;
pub const GTokenType_G_TOKEN_RIGHT_BRACE: GTokenType = 93;
pub const GTokenType_G_TOKEN_EQUAL_SIGN: GTokenType = 61;
pub const GTokenType_G_TOKEN_COMMA: GTokenType = 44;
pub const GTokenType_G_TOKEN_NONE: GTokenType = 256;
pub const GTokenType_G_TOKEN_ERROR: GTokenType = 257;
pub const GTokenType_G_TOKEN_CHAR: GTokenType = 258;
pub const GTokenType_G_TOKEN_BINARY: GTokenType = 259;
pub const GTokenType_G_TOKEN_OCTAL: GTokenType = 260;
pub const GTokenType_G_TOKEN_INT: GTokenType = 261;
pub const GTokenType_G_TOKEN_HEX: GTokenType = 262;
pub const GTokenType_G_TOKEN_FLOAT: GTokenType = 263;
pub const GTokenType_G_TOKEN_STRING: GTokenType = 264;
pub const GTokenType_G_TOKEN_SYMBOL: GTokenType = 265;
pub const GTokenType_G_TOKEN_IDENTIFIER: GTokenType = 266;
pub const GTokenType_G_TOKEN_IDENTIFIER_NULL: GTokenType = 267;
pub const GTokenType_G_TOKEN_COMMENT_SINGLE: GTokenType = 268;
pub const GTokenType_G_TOKEN_COMMENT_MULTI: GTokenType = 269;
pub const GTokenType_G_TOKEN_LAST: GTokenType = 270;
pub type GTokenType = ::std::os::raw::c_uint;
#[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,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GTokenValue"][::std::mem::size_of::<_GTokenValue>() - 8usize];
["Alignment of _GTokenValue"][::std::mem::align_of::<_GTokenValue>() - 8usize];
["Offset of field: _GTokenValue::v_symbol"]
[::std::mem::offset_of!(_GTokenValue, v_symbol) - 0usize];
["Offset of field: _GTokenValue::v_identifier"]
[::std::mem::offset_of!(_GTokenValue, v_identifier) - 0usize];
["Offset of field: _GTokenValue::v_binary"]
[::std::mem::offset_of!(_GTokenValue, v_binary) - 0usize];
["Offset of field: _GTokenValue::v_octal"]
[::std::mem::offset_of!(_GTokenValue, v_octal) - 0usize];
["Offset of field: _GTokenValue::v_int"][::std::mem::offset_of!(_GTokenValue, v_int) - 0usize];
["Offset of field: _GTokenValue::v_int64"]
[::std::mem::offset_of!(_GTokenValue, v_int64) - 0usize];
["Offset of field: _GTokenValue::v_float"]
[::std::mem::offset_of!(_GTokenValue, v_float) - 0usize];
["Offset of field: _GTokenValue::v_hex"][::std::mem::offset_of!(_GTokenValue, v_hex) - 0usize];
["Offset of field: _GTokenValue::v_string"]
[::std::mem::offset_of!(_GTokenValue, v_string) - 0usize];
["Offset of field: _GTokenValue::v_comment"]
[::std::mem::offset_of!(_GTokenValue, v_comment) - 0usize];
["Offset of field: _GTokenValue::v_char"]
[::std::mem::offset_of!(_GTokenValue, v_char) - 0usize];
["Offset of field: _GTokenValue::v_error"]
[::std::mem::offset_of!(_GTokenValue, v_error) - 0usize];
};
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, PartialEq, Eq)]
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_align_1: [u8; 0],
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 3usize]>,
pub padding_dummy: guint,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GScannerConfig"][::std::mem::size_of::<_GScannerConfig>() - 40usize];
["Alignment of _GScannerConfig"][::std::mem::align_of::<_GScannerConfig>() - 8usize];
["Offset of field: _GScannerConfig::cset_skip_characters"]
[::std::mem::offset_of!(_GScannerConfig, cset_skip_characters) - 0usize];
["Offset of field: _GScannerConfig::cset_identifier_first"]
[::std::mem::offset_of!(_GScannerConfig, cset_identifier_first) - 8usize];
["Offset of field: _GScannerConfig::cset_identifier_nth"]
[::std::mem::offset_of!(_GScannerConfig, cset_identifier_nth) - 16usize];
["Offset of field: _GScannerConfig::cpair_comment_single"]
[::std::mem::offset_of!(_GScannerConfig, cpair_comment_single) - 24usize];
["Offset of field: _GScannerConfig::padding_dummy"]
[::std::mem::offset_of!(_GScannerConfig, padding_dummy) - 36usize];
};
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 unsafe fn case_sensitive_raw(this: *const Self) -> guint {
unsafe {
::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_get(
::std::ptr::addr_of!((*this)._bitfield_1),
0usize,
1u8,
) as u32)
}
}
#[inline]
pub unsafe fn set_case_sensitive_raw(this: *mut Self, val: guint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_set(
::std::ptr::addr_of_mut!((*this)._bitfield_1),
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 unsafe fn skip_comment_multi_raw(this: *const Self) -> guint {
unsafe {
::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_get(
::std::ptr::addr_of!((*this)._bitfield_1),
1usize,
1u8,
) as u32)
}
}
#[inline]
pub unsafe fn set_skip_comment_multi_raw(this: *mut Self, val: guint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_set(
::std::ptr::addr_of_mut!((*this)._bitfield_1),
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 unsafe fn skip_comment_single_raw(this: *const Self) -> guint {
unsafe {
::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_get(
::std::ptr::addr_of!((*this)._bitfield_1),
2usize,
1u8,
) as u32)
}
}
#[inline]
pub unsafe fn set_skip_comment_single_raw(this: *mut Self, val: guint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_set(
::std::ptr::addr_of_mut!((*this)._bitfield_1),
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 unsafe fn scan_comment_multi_raw(this: *const Self) -> guint {
unsafe {
::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_get(
::std::ptr::addr_of!((*this)._bitfield_1),
3usize,
1u8,
) as u32)
}
}
#[inline]
pub unsafe fn set_scan_comment_multi_raw(this: *mut Self, val: guint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_set(
::std::ptr::addr_of_mut!((*this)._bitfield_1),
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 unsafe fn scan_identifier_raw(this: *const Self) -> guint {
unsafe {
::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_get(
::std::ptr::addr_of!((*this)._bitfield_1),
4usize,
1u8,
) as u32)
}
}
#[inline]
pub unsafe fn set_scan_identifier_raw(this: *mut Self, val: guint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_set(
::std::ptr::addr_of_mut!((*this)._bitfield_1),
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 unsafe fn scan_identifier_1char_raw(this: *const Self) -> guint {
unsafe {
::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_get(
::std::ptr::addr_of!((*this)._bitfield_1),
5usize,
1u8,
) as u32)
}
}
#[inline]
pub unsafe fn set_scan_identifier_1char_raw(this: *mut Self, val: guint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_set(
::std::ptr::addr_of_mut!((*this)._bitfield_1),
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 unsafe fn scan_identifier_NULL_raw(this: *const Self) -> guint {
unsafe {
::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_get(
::std::ptr::addr_of!((*this)._bitfield_1),
6usize,
1u8,
) as u32)
}
}
#[inline]
pub unsafe fn set_scan_identifier_NULL_raw(this: *mut Self, val: guint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_set(
::std::ptr::addr_of_mut!((*this)._bitfield_1),
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 unsafe fn scan_symbols_raw(this: *const Self) -> guint {
unsafe {
::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_get(
::std::ptr::addr_of!((*this)._bitfield_1),
7usize,
1u8,
) as u32)
}
}
#[inline]
pub unsafe fn set_scan_symbols_raw(this: *mut Self, val: guint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_set(
::std::ptr::addr_of_mut!((*this)._bitfield_1),
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 unsafe fn scan_binary_raw(this: *const Self) -> guint {
unsafe {
::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_get(
::std::ptr::addr_of!((*this)._bitfield_1),
8usize,
1u8,
) as u32)
}
}
#[inline]
pub unsafe fn set_scan_binary_raw(this: *mut Self, val: guint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_set(
::std::ptr::addr_of_mut!((*this)._bitfield_1),
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 unsafe fn scan_octal_raw(this: *const Self) -> guint {
unsafe {
::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_get(
::std::ptr::addr_of!((*this)._bitfield_1),
9usize,
1u8,
) as u32)
}
}
#[inline]
pub unsafe fn set_scan_octal_raw(this: *mut Self, val: guint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_set(
::std::ptr::addr_of_mut!((*this)._bitfield_1),
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 unsafe fn scan_float_raw(this: *const Self) -> guint {
unsafe {
::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_get(
::std::ptr::addr_of!((*this)._bitfield_1),
10usize,
1u8,
) as u32)
}
}
#[inline]
pub unsafe fn set_scan_float_raw(this: *mut Self, val: guint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_set(
::std::ptr::addr_of_mut!((*this)._bitfield_1),
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 unsafe fn scan_hex_raw(this: *const Self) -> guint {
unsafe {
::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_get(
::std::ptr::addr_of!((*this)._bitfield_1),
11usize,
1u8,
) as u32)
}
}
#[inline]
pub unsafe fn set_scan_hex_raw(this: *mut Self, val: guint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_set(
::std::ptr::addr_of_mut!((*this)._bitfield_1),
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 unsafe fn scan_hex_dollar_raw(this: *const Self) -> guint {
unsafe {
::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_get(
::std::ptr::addr_of!((*this)._bitfield_1),
12usize,
1u8,
) as u32)
}
}
#[inline]
pub unsafe fn set_scan_hex_dollar_raw(this: *mut Self, val: guint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_set(
::std::ptr::addr_of_mut!((*this)._bitfield_1),
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 unsafe fn scan_string_sq_raw(this: *const Self) -> guint {
unsafe {
::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_get(
::std::ptr::addr_of!((*this)._bitfield_1),
13usize,
1u8,
) as u32)
}
}
#[inline]
pub unsafe fn set_scan_string_sq_raw(this: *mut Self, val: guint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_set(
::std::ptr::addr_of_mut!((*this)._bitfield_1),
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 unsafe fn scan_string_dq_raw(this: *const Self) -> guint {
unsafe {
::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_get(
::std::ptr::addr_of!((*this)._bitfield_1),
14usize,
1u8,
) as u32)
}
}
#[inline]
pub unsafe fn set_scan_string_dq_raw(this: *mut Self, val: guint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_set(
::std::ptr::addr_of_mut!((*this)._bitfield_1),
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 unsafe fn numbers_2_int_raw(this: *const Self) -> guint {
unsafe {
::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_get(
::std::ptr::addr_of!((*this)._bitfield_1),
15usize,
1u8,
) as u32)
}
}
#[inline]
pub unsafe fn set_numbers_2_int_raw(this: *mut Self, val: guint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_set(
::std::ptr::addr_of_mut!((*this)._bitfield_1),
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 unsafe fn int_2_float_raw(this: *const Self) -> guint {
unsafe {
::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_get(
::std::ptr::addr_of!((*this)._bitfield_1),
16usize,
1u8,
) as u32)
}
}
#[inline]
pub unsafe fn set_int_2_float_raw(this: *mut Self, val: guint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_set(
::std::ptr::addr_of_mut!((*this)._bitfield_1),
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 unsafe fn identifier_2_string_raw(this: *const Self) -> guint {
unsafe {
::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_get(
::std::ptr::addr_of!((*this)._bitfield_1),
17usize,
1u8,
) as u32)
}
}
#[inline]
pub unsafe fn set_identifier_2_string_raw(this: *mut Self, val: guint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_set(
::std::ptr::addr_of_mut!((*this)._bitfield_1),
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 unsafe fn char_2_token_raw(this: *const Self) -> guint {
unsafe {
::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_get(
::std::ptr::addr_of!((*this)._bitfield_1),
18usize,
1u8,
) as u32)
}
}
#[inline]
pub unsafe fn set_char_2_token_raw(this: *mut Self, val: guint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_set(
::std::ptr::addr_of_mut!((*this)._bitfield_1),
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 unsafe fn symbol_2_token_raw(this: *const Self) -> guint {
unsafe {
::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_get(
::std::ptr::addr_of!((*this)._bitfield_1),
19usize,
1u8,
) as u32)
}
}
#[inline]
pub unsafe fn set_symbol_2_token_raw(this: *mut Self, val: guint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_set(
::std::ptr::addr_of_mut!((*this)._bitfield_1),
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 unsafe fn scope_0_fallback_raw(this: *const Self) -> guint {
unsafe {
::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_get(
::std::ptr::addr_of!((*this)._bitfield_1),
20usize,
1u8,
) as u32)
}
}
#[inline]
pub unsafe fn set_scope_0_fallback_raw(this: *mut Self, val: guint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_set(
::std::ptr::addr_of_mut!((*this)._bitfield_1),
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 unsafe fn store_int64_raw(this: *const Self) -> guint {
unsafe {
::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_get(
::std::ptr::addr_of!((*this)._bitfield_1),
21usize,
1u8,
) as u32)
}
}
#[inline]
pub unsafe fn set_store_int64_raw(this: *mut Self, val: guint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_set(
::std::ptr::addr_of_mut!((*this)._bitfield_1),
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]> {
let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 3usize]> = 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,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GScanner"][::std::mem::size_of::<_GScanner>() - 144usize];
["Alignment of _GScanner"][::std::mem::align_of::<_GScanner>() - 8usize];
["Offset of field: _GScanner::user_data"]
[::std::mem::offset_of!(_GScanner, user_data) - 0usize];
["Offset of field: _GScanner::max_parse_errors"]
[::std::mem::offset_of!(_GScanner, max_parse_errors) - 8usize];
["Offset of field: _GScanner::parse_errors"]
[::std::mem::offset_of!(_GScanner, parse_errors) - 12usize];
["Offset of field: _GScanner::input_name"]
[::std::mem::offset_of!(_GScanner, input_name) - 16usize];
["Offset of field: _GScanner::qdata"][::std::mem::offset_of!(_GScanner, qdata) - 24usize];
["Offset of field: _GScanner::config"][::std::mem::offset_of!(_GScanner, config) - 32usize];
["Offset of field: _GScanner::token"][::std::mem::offset_of!(_GScanner, token) - 40usize];
["Offset of field: _GScanner::value"][::std::mem::offset_of!(_GScanner, value) - 48usize];
["Offset of field: _GScanner::line"][::std::mem::offset_of!(_GScanner, line) - 56usize];
["Offset of field: _GScanner::position"][::std::mem::offset_of!(_GScanner, position) - 60usize];
["Offset of field: _GScanner::next_token"]
[::std::mem::offset_of!(_GScanner, next_token) - 64usize];
["Offset of field: _GScanner::next_value"]
[::std::mem::offset_of!(_GScanner, next_value) - 72usize];
["Offset of field: _GScanner::next_line"]
[::std::mem::offset_of!(_GScanner, next_line) - 80usize];
["Offset of field: _GScanner::next_position"]
[::std::mem::offset_of!(_GScanner, next_position) - 84usize];
["Offset of field: _GScanner::symbol_table"]
[::std::mem::offset_of!(_GScanner, symbol_table) - 88usize];
["Offset of field: _GScanner::input_fd"][::std::mem::offset_of!(_GScanner, input_fd) - 96usize];
["Offset of field: _GScanner::text"][::std::mem::offset_of!(_GScanner, text) - 104usize];
["Offset of field: _GScanner::text_end"]
[::std::mem::offset_of!(_GScanner, text_end) - 112usize];
["Offset of field: _GScanner::buffer"][::std::mem::offset_of!(_GScanner, buffer) - 120usize];
["Offset of field: _GScanner::scope_id"]
[::std::mem::offset_of!(_GScanner, scope_id) - 128usize];
["Offset of field: _GScanner::msg_handler"]
[::std::mem::offset_of!(_GScanner, msg_handler) - 136usize];
};
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
)
}
}
unsafe extern "C" {
pub fn g_scanner_new(config_templ: *const GScannerConfig) -> *mut GScanner;
}
unsafe extern "C" {
pub fn g_scanner_destroy(scanner: *mut GScanner);
}
unsafe extern "C" {
pub fn g_scanner_input_file(scanner: *mut GScanner, input_fd: gint);
}
unsafe extern "C" {
pub fn g_scanner_sync_file_offset(scanner: *mut GScanner);
}
unsafe extern "C" {
pub fn g_scanner_input_text(scanner: *mut GScanner, text: *const gchar, text_len: guint);
}
unsafe extern "C" {
pub fn g_scanner_get_next_token(scanner: *mut GScanner) -> GTokenType;
}
unsafe extern "C" {
pub fn g_scanner_peek_next_token(scanner: *mut GScanner) -> GTokenType;
}
unsafe extern "C" {
pub fn g_scanner_cur_token(scanner: *mut GScanner) -> GTokenType;
}
unsafe extern "C" {
pub fn g_scanner_cur_value(scanner: *mut GScanner) -> GTokenValue;
}
unsafe extern "C" {
pub fn g_scanner_cur_line(scanner: *mut GScanner) -> guint;
}
unsafe extern "C" {
pub fn g_scanner_cur_position(scanner: *mut GScanner) -> guint;
}
unsafe extern "C" {
pub fn g_scanner_eof(scanner: *mut GScanner) -> gboolean;
}
unsafe extern "C" {
pub fn g_scanner_set_scope(scanner: *mut GScanner, scope_id: guint) -> guint;
}
unsafe extern "C" {
pub fn g_scanner_scope_add_symbol(
scanner: *mut GScanner,
scope_id: guint,
symbol: *const gchar,
value: gpointer,
);
}
unsafe extern "C" {
pub fn g_scanner_scope_remove_symbol(
scanner: *mut GScanner,
scope_id: guint,
symbol: *const gchar,
);
}
unsafe extern "C" {
pub fn g_scanner_scope_lookup_symbol(
scanner: *mut GScanner,
scope_id: guint,
symbol: *const gchar,
) -> gpointer;
}
unsafe extern "C" {
pub fn g_scanner_scope_foreach_symbol(
scanner: *mut GScanner,
scope_id: guint,
func: GHFunc,
user_data: gpointer,
);
}
unsafe extern "C" {
pub fn g_scanner_lookup_symbol(scanner: *mut GScanner, symbol: *const gchar) -> gpointer;
}
unsafe 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,
);
}
unsafe extern "C" {
pub fn g_scanner_error(scanner: *mut GScanner, format: *const gchar, ...);
}
unsafe 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,
>;
unsafe extern "C" {
pub fn g_sequence_new(data_destroy: GDestroyNotify) -> *mut GSequence;
}
unsafe extern "C" {
pub fn g_sequence_free(seq: *mut GSequence);
}
unsafe extern "C" {
pub fn g_sequence_get_length(seq: *mut GSequence) -> gint;
}
unsafe extern "C" {
pub fn g_sequence_foreach(seq: *mut GSequence, func: GFunc, user_data: gpointer);
}
unsafe extern "C" {
pub fn g_sequence_foreach_range(
begin: *mut GSequenceIter,
end: *mut GSequenceIter,
func: GFunc,
user_data: gpointer,
);
}
unsafe extern "C" {
pub fn g_sequence_sort(seq: *mut GSequence, cmp_func: GCompareDataFunc, cmp_data: gpointer);
}
unsafe extern "C" {
pub fn g_sequence_sort_iter(
seq: *mut GSequence,
cmp_func: GSequenceIterCompareFunc,
cmp_data: gpointer,
);
}
unsafe extern "C" {
pub fn g_sequence_is_empty(seq: *mut GSequence) -> gboolean;
}
unsafe extern "C" {
pub fn g_sequence_get_begin_iter(seq: *mut GSequence) -> *mut GSequenceIter;
}
unsafe extern "C" {
pub fn g_sequence_get_end_iter(seq: *mut GSequence) -> *mut GSequenceIter;
}
unsafe extern "C" {
pub fn g_sequence_get_iter_at_pos(seq: *mut GSequence, pos: gint) -> *mut GSequenceIter;
}
unsafe extern "C" {
pub fn g_sequence_append(seq: *mut GSequence, data: gpointer) -> *mut GSequenceIter;
}
unsafe extern "C" {
pub fn g_sequence_prepend(seq: *mut GSequence, data: gpointer) -> *mut GSequenceIter;
}
unsafe extern "C" {
pub fn g_sequence_insert_before(iter: *mut GSequenceIter, data: gpointer)
-> *mut GSequenceIter;
}
unsafe extern "C" {
pub fn g_sequence_move(src: *mut GSequenceIter, dest: *mut GSequenceIter);
}
unsafe extern "C" {
pub fn g_sequence_swap(a: *mut GSequenceIter, b: *mut GSequenceIter);
}
unsafe extern "C" {
pub fn g_sequence_insert_sorted(
seq: *mut GSequence,
data: gpointer,
cmp_func: GCompareDataFunc,
cmp_data: gpointer,
) -> *mut GSequenceIter;
}
unsafe extern "C" {
pub fn g_sequence_insert_sorted_iter(
seq: *mut GSequence,
data: gpointer,
iter_cmp: GSequenceIterCompareFunc,
cmp_data: gpointer,
) -> *mut GSequenceIter;
}
unsafe extern "C" {
pub fn g_sequence_sort_changed(
iter: *mut GSequenceIter,
cmp_func: GCompareDataFunc,
cmp_data: gpointer,
);
}
unsafe extern "C" {
pub fn g_sequence_sort_changed_iter(
iter: *mut GSequenceIter,
iter_cmp: GSequenceIterCompareFunc,
cmp_data: gpointer,
);
}
unsafe extern "C" {
pub fn g_sequence_remove(iter: *mut GSequenceIter);
}
unsafe extern "C" {
pub fn g_sequence_remove_range(begin: *mut GSequenceIter, end: *mut GSequenceIter);
}
unsafe extern "C" {
pub fn g_sequence_move_range(
dest: *mut GSequenceIter,
begin: *mut GSequenceIter,
end: *mut GSequenceIter,
);
}
unsafe extern "C" {
pub fn g_sequence_search(
seq: *mut GSequence,
data: gpointer,
cmp_func: GCompareDataFunc,
cmp_data: gpointer,
) -> *mut GSequenceIter;
}
unsafe extern "C" {
pub fn g_sequence_search_iter(
seq: *mut GSequence,
data: gpointer,
iter_cmp: GSequenceIterCompareFunc,
cmp_data: gpointer,
) -> *mut GSequenceIter;
}
unsafe extern "C" {
pub fn g_sequence_lookup(
seq: *mut GSequence,
data: gpointer,
cmp_func: GCompareDataFunc,
cmp_data: gpointer,
) -> *mut GSequenceIter;
}
unsafe extern "C" {
pub fn g_sequence_lookup_iter(
seq: *mut GSequence,
data: gpointer,
iter_cmp: GSequenceIterCompareFunc,
cmp_data: gpointer,
) -> *mut GSequenceIter;
}
unsafe extern "C" {
pub fn g_sequence_get(iter: *mut GSequenceIter) -> gpointer;
}
unsafe extern "C" {
pub fn g_sequence_set(iter: *mut GSequenceIter, data: gpointer);
}
unsafe extern "C" {
pub fn g_sequence_iter_is_begin(iter: *mut GSequenceIter) -> gboolean;
}
unsafe extern "C" {
pub fn g_sequence_iter_is_end(iter: *mut GSequenceIter) -> gboolean;
}
unsafe extern "C" {
pub fn g_sequence_iter_next(iter: *mut GSequenceIter) -> *mut GSequenceIter;
}
unsafe extern "C" {
pub fn g_sequence_iter_prev(iter: *mut GSequenceIter) -> *mut GSequenceIter;
}
unsafe extern "C" {
pub fn g_sequence_iter_get_position(iter: *mut GSequenceIter) -> gint;
}
unsafe extern "C" {
pub fn g_sequence_iter_move(iter: *mut GSequenceIter, delta: gint) -> *mut GSequenceIter;
}
unsafe extern "C" {
pub fn g_sequence_iter_get_sequence(iter: *mut GSequenceIter) -> *mut GSequence;
}
unsafe extern "C" {
pub fn g_sequence_iter_compare(a: *mut GSequenceIter, b: *mut GSequenceIter) -> gint;
}
unsafe extern "C" {
pub fn g_sequence_range_get_midpoint(
begin: *mut GSequenceIter,
end: *mut GSequenceIter,
) -> *mut GSequenceIter;
}
pub const GShellError_G_SHELL_ERROR_BAD_QUOTING: GShellError = 0;
pub const GShellError_G_SHELL_ERROR_EMPTY_STRING: GShellError = 1;
pub const GShellError_G_SHELL_ERROR_FAILED: GShellError = 2;
pub type GShellError = ::std::os::raw::c_uint;
unsafe extern "C" {
pub fn g_shell_error_quark() -> GQuark;
}
unsafe extern "C" {
pub fn g_shell_quote(unquoted_string: *const gchar) -> *mut gchar;
}
unsafe extern "C" {
pub fn g_shell_unquote(quoted_string: *const gchar, error: *mut *mut GError) -> *mut gchar;
}
unsafe 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;
}
unsafe extern "C" {
pub fn g_slice_alloc(block_size: gsize) -> gpointer;
}
unsafe extern "C" {
pub fn g_slice_alloc0(block_size: gsize) -> gpointer;
}
unsafe extern "C" {
pub fn g_slice_copy(block_size: gsize, mem_block: gconstpointer) -> gpointer;
}
unsafe extern "C" {
pub fn g_slice_free1(block_size: gsize, mem_block: gpointer);
}
unsafe extern "C" {
pub fn g_slice_free_chain_with_offset(
block_size: gsize,
mem_chain: gpointer,
next_offset: gsize,
);
}
pub const GSliceConfig_G_SLICE_CONFIG_ALWAYS_MALLOC: GSliceConfig = 1;
pub const GSliceConfig_G_SLICE_CONFIG_BYPASS_MAGAZINES: GSliceConfig = 2;
pub const GSliceConfig_G_SLICE_CONFIG_WORKING_SET_MSECS: GSliceConfig = 3;
pub const GSliceConfig_G_SLICE_CONFIG_COLOR_INCREMENT: GSliceConfig = 4;
pub const GSliceConfig_G_SLICE_CONFIG_CHUNK_SIZES: GSliceConfig = 5;
pub const GSliceConfig_G_SLICE_CONFIG_CONTENTION_COUNTER: GSliceConfig = 6;
pub type GSliceConfig = ::std::os::raw::c_uint;
unsafe extern "C" {
pub fn g_slice_set_config(ckey: GSliceConfig, value: gint64);
}
unsafe extern "C" {
pub fn g_slice_get_config(ckey: GSliceConfig) -> gint64;
}
unsafe extern "C" {
pub fn g_slice_get_config_state(
ckey: GSliceConfig,
address: gint64,
n_values: *mut guint,
) -> *mut gint64;
}
pub const GSpawnError_G_SPAWN_ERROR_FORK: GSpawnError = 0;
pub const GSpawnError_G_SPAWN_ERROR_READ: GSpawnError = 1;
pub const GSpawnError_G_SPAWN_ERROR_CHDIR: GSpawnError = 2;
pub const GSpawnError_G_SPAWN_ERROR_ACCES: GSpawnError = 3;
pub const GSpawnError_G_SPAWN_ERROR_PERM: GSpawnError = 4;
pub const GSpawnError_G_SPAWN_ERROR_TOO_BIG: GSpawnError = 5;
pub const GSpawnError_G_SPAWN_ERROR_2BIG: GSpawnError = 5;
pub const GSpawnError_G_SPAWN_ERROR_NOEXEC: GSpawnError = 6;
pub const GSpawnError_G_SPAWN_ERROR_NAMETOOLONG: GSpawnError = 7;
pub const GSpawnError_G_SPAWN_ERROR_NOENT: GSpawnError = 8;
pub const GSpawnError_G_SPAWN_ERROR_NOMEM: GSpawnError = 9;
pub const GSpawnError_G_SPAWN_ERROR_NOTDIR: GSpawnError = 10;
pub const GSpawnError_G_SPAWN_ERROR_LOOP: GSpawnError = 11;
pub const GSpawnError_G_SPAWN_ERROR_TXTBUSY: GSpawnError = 12;
pub const GSpawnError_G_SPAWN_ERROR_IO: GSpawnError = 13;
pub const GSpawnError_G_SPAWN_ERROR_NFILE: GSpawnError = 14;
pub const GSpawnError_G_SPAWN_ERROR_MFILE: GSpawnError = 15;
pub const GSpawnError_G_SPAWN_ERROR_INVAL: GSpawnError = 16;
pub const GSpawnError_G_SPAWN_ERROR_ISDIR: GSpawnError = 17;
pub const GSpawnError_G_SPAWN_ERROR_LIBBAD: GSpawnError = 18;
pub const GSpawnError_G_SPAWN_ERROR_FAILED: GSpawnError = 19;
pub type GSpawnError = ::std::os::raw::c_uint;
pub type GSpawnChildSetupFunc = ::std::option::Option<unsafe extern "C" fn(data: gpointer)>;
pub const GSpawnFlags_G_SPAWN_DEFAULT: GSpawnFlags = 0;
pub const GSpawnFlags_G_SPAWN_LEAVE_DESCRIPTORS_OPEN: GSpawnFlags = 1;
pub const GSpawnFlags_G_SPAWN_DO_NOT_REAP_CHILD: GSpawnFlags = 2;
pub const GSpawnFlags_G_SPAWN_SEARCH_PATH: GSpawnFlags = 4;
pub const GSpawnFlags_G_SPAWN_STDOUT_TO_DEV_NULL: GSpawnFlags = 8;
pub const GSpawnFlags_G_SPAWN_STDERR_TO_DEV_NULL: GSpawnFlags = 16;
pub const GSpawnFlags_G_SPAWN_CHILD_INHERITS_STDIN: GSpawnFlags = 32;
pub const GSpawnFlags_G_SPAWN_FILE_AND_ARGV_ZERO: GSpawnFlags = 64;
pub const GSpawnFlags_G_SPAWN_SEARCH_PATH_FROM_ENVP: GSpawnFlags = 128;
pub const GSpawnFlags_G_SPAWN_CLOEXEC_PIPES: GSpawnFlags = 256;
pub const GSpawnFlags_G_SPAWN_CHILD_INHERITS_STDOUT: GSpawnFlags = 512;
pub const GSpawnFlags_G_SPAWN_CHILD_INHERITS_STDERR: GSpawnFlags = 1024;
pub const GSpawnFlags_G_SPAWN_STDIN_FROM_DEV_NULL: GSpawnFlags = 2048;
pub type GSpawnFlags = ::std::os::raw::c_uint;
unsafe extern "C" {
pub fn g_spawn_error_quark() -> GQuark;
}
unsafe extern "C" {
pub fn g_spawn_exit_error_quark() -> GQuark;
}
unsafe 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;
}
unsafe 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;
}
unsafe extern "C" {
pub fn g_spawn_async_with_pipes_and_fds(
working_directory: *const gchar,
argv: *const *const gchar,
envp: *const *const gchar,
flags: GSpawnFlags,
child_setup: GSpawnChildSetupFunc,
user_data: gpointer,
stdin_fd: gint,
stdout_fd: gint,
stderr_fd: gint,
source_fds: *const gint,
target_fds: *const gint,
n_fds: gsize,
child_pid_out: *mut GPid,
stdin_pipe_out: *mut gint,
stdout_pipe_out: *mut gint,
stderr_pipe_out: *mut gint,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_spawn_async_with_fds(
working_directory: *const gchar,
argv: *mut *mut gchar,
envp: *mut *mut gchar,
flags: GSpawnFlags,
child_setup: GSpawnChildSetupFunc,
user_data: gpointer,
child_pid: *mut GPid,
stdin_fd: gint,
stdout_fd: gint,
stderr_fd: gint,
error: *mut *mut GError,
) -> gboolean;
}
unsafe 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,
wait_status: *mut gint,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_spawn_command_line_sync(
command_line: *const gchar,
standard_output: *mut *mut gchar,
standard_error: *mut *mut gchar,
wait_status: *mut gint,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_spawn_command_line_async(
command_line: *const gchar,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_spawn_check_wait_status(wait_status: gint, error: *mut *mut GError) -> gboolean;
}
unsafe extern "C" {
pub fn g_spawn_check_exit_status(wait_status: gint, error: *mut *mut GError) -> gboolean;
}
unsafe extern "C" {
pub fn g_spawn_close_pid(pid: GPid);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GStringChunk {
_unused: [u8; 0],
}
pub type GStringChunk = _GStringChunk;
unsafe extern "C" {
pub fn g_string_chunk_new(size: gsize) -> *mut GStringChunk;
}
unsafe extern "C" {
pub fn g_string_chunk_free(chunk: *mut GStringChunk);
}
unsafe extern "C" {
pub fn g_string_chunk_clear(chunk: *mut GStringChunk);
}
unsafe extern "C" {
pub fn g_string_chunk_insert(chunk: *mut GStringChunk, string: *const gchar) -> *mut gchar;
}
unsafe extern "C" {
pub fn g_string_chunk_insert_len(
chunk: *mut GStringChunk,
string: *const gchar,
len: gssize,
) -> *mut gchar;
}
unsafe extern "C" {
pub fn g_string_chunk_insert_const(
chunk: *mut GStringChunk,
string: *const gchar,
) -> *mut gchar;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GStrvBuilder {
_unused: [u8; 0],
}
pub type GStrvBuilder = _GStrvBuilder;
unsafe extern "C" {
pub fn g_strv_builder_new() -> *mut GStrvBuilder;
}
unsafe extern "C" {
pub fn g_strv_builder_unref(builder: *mut GStrvBuilder);
}
unsafe extern "C" {
pub fn g_strv_builder_unref_to_strv(builder: *mut GStrvBuilder) -> GStrv;
}
unsafe extern "C" {
pub fn g_strv_builder_ref(builder: *mut GStrvBuilder) -> *mut GStrvBuilder;
}
unsafe extern "C" {
pub fn g_strv_builder_add(builder: *mut GStrvBuilder, value: *const ::std::os::raw::c_char);
}
unsafe extern "C" {
pub fn g_strv_builder_addv(
builder: *mut GStrvBuilder,
value: *mut *const ::std::os::raw::c_char,
);
}
unsafe extern "C" {
pub fn g_strv_builder_add_many(builder: *mut GStrvBuilder, ...);
}
unsafe extern "C" {
pub fn g_strv_builder_take(builder: *mut GStrvBuilder, value: *mut ::std::os::raw::c_char);
}
unsafe extern "C" {
pub fn g_strv_builder_end(builder: *mut GStrvBuilder) -> GStrv;
}
unsafe extern "C" {
pub fn __errno_location() -> *mut ::std::os::raw::c_int;
}
#[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)>;
unsafe 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;
}
unsafe extern "C" {
pub fn g_test_minimized_result(
minimized_quantity: f64,
format: *const ::std::os::raw::c_char,
...
);
}
unsafe extern "C" {
pub fn g_test_maximized_result(
maximized_quantity: f64,
format: *const ::std::os::raw::c_char,
...
);
}
unsafe extern "C" {
pub fn g_test_init(
argc: *mut ::std::os::raw::c_int,
argv: *mut *mut *mut ::std::os::raw::c_char,
...
);
}
unsafe extern "C" {
pub fn g_test_subprocess() -> gboolean;
}
unsafe extern "C" {
pub fn g_test_run() -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn g_test_add_func(testpath: *const ::std::os::raw::c_char, test_func: GTestFunc);
}
unsafe extern "C" {
pub fn g_test_add_data_func(
testpath: *const ::std::os::raw::c_char,
test_data: gconstpointer,
test_func: GTestDataFunc,
);
}
unsafe 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,
);
}
unsafe extern "C" {
pub fn g_test_get_path() -> *const ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn g_test_fail();
}
unsafe extern "C" {
pub fn g_test_fail_printf(format: *const ::std::os::raw::c_char, ...);
}
unsafe extern "C" {
pub fn g_test_incomplete(msg: *const gchar);
}
unsafe extern "C" {
pub fn g_test_incomplete_printf(format: *const ::std::os::raw::c_char, ...);
}
unsafe extern "C" {
pub fn g_test_skip(msg: *const gchar);
}
unsafe extern "C" {
pub fn g_test_skip_printf(format: *const ::std::os::raw::c_char, ...);
}
unsafe extern "C" {
pub fn g_test_failed() -> gboolean;
}
unsafe extern "C" {
pub fn g_test_set_nonfatal_assertions();
}
unsafe extern "C" {
pub fn g_test_disable_crash_reporting();
}
unsafe extern "C" {
pub fn g_test_message(format: *const ::std::os::raw::c_char, ...);
}
unsafe extern "C" {
pub fn g_test_bug_base(uri_pattern: *const ::std::os::raw::c_char);
}
unsafe extern "C" {
pub fn g_test_bug(bug_uri_snippet: *const ::std::os::raw::c_char);
}
unsafe extern "C" {
pub fn g_test_summary(summary: *const ::std::os::raw::c_char);
}
unsafe extern "C" {
pub fn g_test_timer_start();
}
unsafe extern "C" {
pub fn g_test_timer_elapsed() -> f64;
}
unsafe extern "C" {
pub fn g_test_timer_last() -> f64;
}
unsafe extern "C" {
pub fn g_test_queue_free(gfree_pointer: gpointer);
}
unsafe extern "C" {
pub fn g_test_queue_destroy(destroy_func: GDestroyNotify, destroy_data: gpointer);
}
pub const GTestTrapFlags_G_TEST_TRAP_DEFAULT: GTestTrapFlags = 0;
pub const GTestTrapFlags_G_TEST_TRAP_SILENCE_STDOUT: GTestTrapFlags = 128;
pub const GTestTrapFlags_G_TEST_TRAP_SILENCE_STDERR: GTestTrapFlags = 256;
pub const GTestTrapFlags_G_TEST_TRAP_INHERIT_STDIN: GTestTrapFlags = 512;
pub type GTestTrapFlags = ::std::os::raw::c_uint;
unsafe extern "C" {
pub fn g_test_trap_fork(usec_timeout: guint64, test_trap_flags: GTestTrapFlags) -> gboolean;
}
pub const GTestSubprocessFlags_G_TEST_SUBPROCESS_DEFAULT: GTestSubprocessFlags = 0;
pub const GTestSubprocessFlags_G_TEST_SUBPROCESS_INHERIT_STDIN: GTestSubprocessFlags = 1;
pub const GTestSubprocessFlags_G_TEST_SUBPROCESS_INHERIT_STDOUT: GTestSubprocessFlags = 2;
pub const GTestSubprocessFlags_G_TEST_SUBPROCESS_INHERIT_STDERR: GTestSubprocessFlags = 4;
pub type GTestSubprocessFlags = ::std::os::raw::c_uint;
unsafe extern "C" {
pub fn g_test_trap_subprocess(
test_path: *const ::std::os::raw::c_char,
usec_timeout: guint64,
test_flags: GTestSubprocessFlags,
);
}
unsafe extern "C" {
pub fn g_test_trap_subprocess_with_envp(
test_path: *const ::std::os::raw::c_char,
envp: *const *const ::std::os::raw::c_char,
usec_timeout: guint64,
test_flags: GTestSubprocessFlags,
);
}
unsafe extern "C" {
pub fn g_test_trap_has_passed() -> gboolean;
}
unsafe extern "C" {
pub fn g_test_trap_reached_timeout() -> gboolean;
}
unsafe extern "C" {
pub fn g_test_rand_int() -> gint32;
}
unsafe extern "C" {
pub fn g_test_rand_int_range(begin: gint32, end: gint32) -> gint32;
}
unsafe extern "C" {
pub fn g_test_rand_double() -> f64;
}
unsafe extern "C" {
pub fn g_test_rand_double_range(range_start: f64, range_end: f64) -> f64;
}
unsafe 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;
}
unsafe extern "C" {
pub fn g_test_create_suite(suite_name: *const ::std::os::raw::c_char) -> *mut GTestSuite;
}
unsafe extern "C" {
pub fn g_test_get_root() -> *mut GTestSuite;
}
unsafe extern "C" {
pub fn g_test_suite_add(suite: *mut GTestSuite, test_case: *mut GTestCase);
}
unsafe extern "C" {
pub fn g_test_suite_add_suite(suite: *mut GTestSuite, nestedsuite: *mut GTestSuite);
}
unsafe extern "C" {
pub fn g_test_run_suite(suite: *mut GTestSuite) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn g_test_case_free(test_case: *mut GTestCase);
}
unsafe extern "C" {
pub fn g_test_suite_free(suite: *mut GTestSuite);
}
unsafe 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,
);
}
unsafe 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,
);
}
unsafe 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,
) -> !;
}
unsafe 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,
);
}
unsafe extern "C" {
pub fn g_assertion_message_cmpstrv(
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 *const ::std::os::raw::c_char,
arg2: *const *const ::std::os::raw::c_char,
first_wrong_idx: gsize,
);
}
unsafe extern "C" {
pub fn g_assertion_message_cmpint(
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: guint64,
cmp: *const ::std::os::raw::c_char,
arg2: guint64,
numtype: ::std::os::raw::c_char,
);
}
unsafe 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,
);
}
unsafe 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,
);
}
unsafe 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, PartialEq, Eq)]
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,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of GTestConfig"][::std::mem::size_of::<GTestConfig>() - 24usize];
["Alignment of GTestConfig"][::std::mem::align_of::<GTestConfig>() - 4usize];
["Offset of field: GTestConfig::test_initialized"]
[::std::mem::offset_of!(GTestConfig, test_initialized) - 0usize];
["Offset of field: GTestConfig::test_quick"]
[::std::mem::offset_of!(GTestConfig, test_quick) - 4usize];
["Offset of field: GTestConfig::test_perf"]
[::std::mem::offset_of!(GTestConfig, test_perf) - 8usize];
["Offset of field: GTestConfig::test_verbose"]
[::std::mem::offset_of!(GTestConfig, test_verbose) - 12usize];
["Offset of field: GTestConfig::test_quiet"]
[::std::mem::offset_of!(GTestConfig, test_quiet) - 16usize];
["Offset of field: GTestConfig::test_undefined"]
[::std::mem::offset_of!(GTestConfig, test_undefined) - 20usize];
};
unsafe extern "C" {
pub static g_test_config_vars: *const GTestConfig;
}
pub const GTestResult_G_TEST_RUN_SUCCESS: GTestResult = 0;
pub const GTestResult_G_TEST_RUN_SKIPPED: GTestResult = 1;
pub const GTestResult_G_TEST_RUN_FAILURE: GTestResult = 2;
pub const GTestResult_G_TEST_RUN_INCOMPLETE: GTestResult = 3;
pub type GTestResult = ::std::os::raw::c_uint;
pub const GTestLogType_G_TEST_LOG_NONE: GTestLogType = 0;
pub const GTestLogType_G_TEST_LOG_ERROR: GTestLogType = 1;
pub const GTestLogType_G_TEST_LOG_START_BINARY: GTestLogType = 2;
pub const GTestLogType_G_TEST_LOG_LIST_CASE: GTestLogType = 3;
pub const GTestLogType_G_TEST_LOG_SKIP_CASE: GTestLogType = 4;
pub const GTestLogType_G_TEST_LOG_START_CASE: GTestLogType = 5;
pub const GTestLogType_G_TEST_LOG_STOP_CASE: GTestLogType = 6;
pub const GTestLogType_G_TEST_LOG_MIN_RESULT: GTestLogType = 7;
pub const GTestLogType_G_TEST_LOG_MAX_RESULT: GTestLogType = 8;
pub const GTestLogType_G_TEST_LOG_MESSAGE: GTestLogType = 9;
pub const GTestLogType_G_TEST_LOG_START_SUITE: GTestLogType = 10;
pub const GTestLogType_G_TEST_LOG_STOP_SUITE: GTestLogType = 11;
pub type GTestLogType = ::std::os::raw::c_uint;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct GTestLogMsg {
pub log_type: GTestLogType,
pub n_strings: guint,
pub strings: *mut *mut gchar,
pub n_nums: guint,
pub nums: *mut u128,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of GTestLogMsg"][::std::mem::size_of::<GTestLogMsg>() - 32usize];
["Alignment of GTestLogMsg"][::std::mem::align_of::<GTestLogMsg>() - 8usize];
["Offset of field: GTestLogMsg::log_type"]
[::std::mem::offset_of!(GTestLogMsg, log_type) - 0usize];
["Offset of field: GTestLogMsg::n_strings"]
[::std::mem::offset_of!(GTestLogMsg, n_strings) - 4usize];
["Offset of field: GTestLogMsg::strings"]
[::std::mem::offset_of!(GTestLogMsg, strings) - 8usize];
["Offset of field: GTestLogMsg::n_nums"][::std::mem::offset_of!(GTestLogMsg, n_nums) - 16usize];
["Offset of field: GTestLogMsg::nums"][::std::mem::offset_of!(GTestLogMsg, nums) - 24usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct GTestLogBuffer {
pub data: *mut GString,
pub msgs: *mut GSList,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of GTestLogBuffer"][::std::mem::size_of::<GTestLogBuffer>() - 16usize];
["Alignment of GTestLogBuffer"][::std::mem::align_of::<GTestLogBuffer>() - 8usize];
["Offset of field: GTestLogBuffer::data"]
[::std::mem::offset_of!(GTestLogBuffer, data) - 0usize];
["Offset of field: GTestLogBuffer::msgs"]
[::std::mem::offset_of!(GTestLogBuffer, msgs) - 8usize];
};
unsafe extern "C" {
pub fn g_test_log_type_name(log_type: GTestLogType) -> *const ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn g_test_log_buffer_new() -> *mut GTestLogBuffer;
}
unsafe extern "C" {
pub fn g_test_log_buffer_free(tbuffer: *mut GTestLogBuffer);
}
unsafe extern "C" {
pub fn g_test_log_buffer_push(
tbuffer: *mut GTestLogBuffer,
n_bytes: guint,
bytes: *const guint8,
);
}
unsafe extern "C" {
pub fn g_test_log_buffer_pop(tbuffer: *mut GTestLogBuffer) -> *mut GTestLogMsg;
}
unsafe 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,
>;
unsafe extern "C" {
pub fn g_test_log_set_fatal_handler(log_func: GTestLogFatalFunc, user_data: gpointer);
}
unsafe extern "C" {
pub fn g_test_expect_message(
log_domain: *const gchar,
log_level: GLogLevelFlags,
pattern: *const gchar,
);
}
unsafe 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,
);
}
pub const GTestFileType_G_TEST_DIST: GTestFileType = 0;
pub const GTestFileType_G_TEST_BUILT: GTestFileType = 1;
pub type GTestFileType = ::std::os::raw::c_uint;
unsafe extern "C" {
pub fn g_test_build_filename(
file_type: GTestFileType,
first_path: *const gchar,
...
) -> *mut gchar;
}
unsafe extern "C" {
pub fn g_test_get_dir(file_type: GTestFileType) -> *const gchar;
}
unsafe 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, PartialEq, Eq)]
pub struct _GThreadPool {
pub func: GFunc,
pub user_data: gpointer,
pub exclusive: gboolean,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GThreadPool"][::std::mem::size_of::<_GThreadPool>() - 24usize];
["Alignment of _GThreadPool"][::std::mem::align_of::<_GThreadPool>() - 8usize];
["Offset of field: _GThreadPool::func"][::std::mem::offset_of!(_GThreadPool, func) - 0usize];
["Offset of field: _GThreadPool::user_data"]
[::std::mem::offset_of!(_GThreadPool, user_data) - 8usize];
["Offset of field: _GThreadPool::exclusive"]
[::std::mem::offset_of!(_GThreadPool, exclusive) - 16usize];
};
unsafe extern "C" {
pub fn g_thread_pool_new(
func: GFunc,
user_data: gpointer,
max_threads: gint,
exclusive: gboolean,
error: *mut *mut GError,
) -> *mut GThreadPool;
}
unsafe extern "C" {
pub fn g_thread_pool_new_full(
func: GFunc,
user_data: gpointer,
item_free_func: GDestroyNotify,
max_threads: gint,
exclusive: gboolean,
error: *mut *mut GError,
) -> *mut GThreadPool;
}
unsafe extern "C" {
pub fn g_thread_pool_free(pool: *mut GThreadPool, immediate: gboolean, wait_: gboolean);
}
unsafe extern "C" {
pub fn g_thread_pool_push(
pool: *mut GThreadPool,
data: gpointer,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_thread_pool_unprocessed(pool: *mut GThreadPool) -> guint;
}
unsafe extern "C" {
pub fn g_thread_pool_set_sort_function(
pool: *mut GThreadPool,
func: GCompareDataFunc,
user_data: gpointer,
);
}
unsafe extern "C" {
pub fn g_thread_pool_move_to_front(pool: *mut GThreadPool, data: gpointer) -> gboolean;
}
unsafe extern "C" {
pub fn g_thread_pool_set_max_threads(
pool: *mut GThreadPool,
max_threads: gint,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_thread_pool_get_max_threads(pool: *mut GThreadPool) -> gint;
}
unsafe extern "C" {
pub fn g_thread_pool_get_num_threads(pool: *mut GThreadPool) -> guint;
}
unsafe extern "C" {
pub fn g_thread_pool_set_max_unused_threads(max_threads: gint);
}
unsafe extern "C" {
pub fn g_thread_pool_get_max_unused_threads() -> gint;
}
unsafe extern "C" {
pub fn g_thread_pool_get_num_unused_threads() -> guint;
}
unsafe extern "C" {
pub fn g_thread_pool_stop_unused_threads();
}
unsafe extern "C" {
pub fn g_thread_pool_set_max_idle_time(interval: guint);
}
unsafe 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;
unsafe extern "C" {
pub fn g_timer_new() -> *mut GTimer;
}
unsafe extern "C" {
pub fn g_timer_destroy(timer: *mut GTimer);
}
unsafe extern "C" {
pub fn g_timer_start(timer: *mut GTimer);
}
unsafe extern "C" {
pub fn g_timer_stop(timer: *mut GTimer);
}
unsafe extern "C" {
pub fn g_timer_reset(timer: *mut GTimer);
}
unsafe extern "C" {
pub fn g_timer_continue(timer: *mut GTimer);
}
unsafe extern "C" {
pub fn g_timer_elapsed(timer: *mut GTimer, microseconds: *mut gulong) -> gdouble;
}
unsafe extern "C" {
pub fn g_timer_is_active(timer: *mut GTimer) -> gboolean;
}
unsafe extern "C" {
pub fn g_usleep(microseconds: gulong);
}
unsafe extern "C" {
pub fn g_time_val_add(time_: *mut GTimeVal, microseconds: glong);
}
unsafe extern "C" {
pub fn g_time_val_from_iso8601(iso_date: *const gchar, time_: *mut GTimeVal) -> gboolean;
}
unsafe extern "C" {
pub fn g_time_val_to_iso8601(time_: *mut GTimeVal) -> *mut gchar;
}
pub type GTrashStack = _GTrashStack;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GTrashStack {
pub next: *mut GTrashStack,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GTrashStack"][::std::mem::size_of::<_GTrashStack>() - 8usize];
["Alignment of _GTrashStack"][::std::mem::align_of::<_GTrashStack>() - 8usize];
["Offset of field: _GTrashStack::next"][::std::mem::offset_of!(_GTrashStack, next) - 0usize];
};
unsafe extern "C" {
pub fn g_trash_stack_push(stack_p: *mut *mut GTrashStack, data_p: gpointer);
}
unsafe extern "C" {
pub fn g_trash_stack_pop(stack_p: *mut *mut GTrashStack) -> gpointer;
}
unsafe extern "C" {
pub fn g_trash_stack_peek(stack_p: *mut *mut GTrashStack) -> gpointer;
}
unsafe 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;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GTreeNode {
_unused: [u8; 0],
}
pub type GTreeNode = _GTreeNode;
pub type GTraverseFunc = ::std::option::Option<
unsafe extern "C" fn(key: gpointer, value: gpointer, data: gpointer) -> gboolean,
>;
pub type GTraverseNodeFunc =
::std::option::Option<unsafe extern "C" fn(node: *mut GTreeNode, data: gpointer) -> gboolean>;
unsafe extern "C" {
pub fn g_tree_new(key_compare_func: GCompareFunc) -> *mut GTree;
}
unsafe extern "C" {
pub fn g_tree_new_with_data(
key_compare_func: GCompareDataFunc,
key_compare_data: gpointer,
) -> *mut GTree;
}
unsafe 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;
}
unsafe extern "C" {
pub fn g_tree_node_first(tree: *mut GTree) -> *mut GTreeNode;
}
unsafe extern "C" {
pub fn g_tree_node_last(tree: *mut GTree) -> *mut GTreeNode;
}
unsafe extern "C" {
pub fn g_tree_node_previous(node: *mut GTreeNode) -> *mut GTreeNode;
}
unsafe extern "C" {
pub fn g_tree_node_next(node: *mut GTreeNode) -> *mut GTreeNode;
}
unsafe extern "C" {
pub fn g_tree_ref(tree: *mut GTree) -> *mut GTree;
}
unsafe extern "C" {
pub fn g_tree_unref(tree: *mut GTree);
}
unsafe extern "C" {
pub fn g_tree_destroy(tree: *mut GTree);
}
unsafe extern "C" {
pub fn g_tree_insert_node(tree: *mut GTree, key: gpointer, value: gpointer) -> *mut GTreeNode;
}
unsafe extern "C" {
pub fn g_tree_insert(tree: *mut GTree, key: gpointer, value: gpointer);
}
unsafe extern "C" {
pub fn g_tree_replace_node(tree: *mut GTree, key: gpointer, value: gpointer) -> *mut GTreeNode;
}
unsafe extern "C" {
pub fn g_tree_replace(tree: *mut GTree, key: gpointer, value: gpointer);
}
unsafe extern "C" {
pub fn g_tree_remove(tree: *mut GTree, key: gconstpointer) -> gboolean;
}
unsafe extern "C" {
pub fn g_tree_remove_all(tree: *mut GTree);
}
unsafe extern "C" {
pub fn g_tree_steal(tree: *mut GTree, key: gconstpointer) -> gboolean;
}
unsafe extern "C" {
pub fn g_tree_node_key(node: *mut GTreeNode) -> gpointer;
}
unsafe extern "C" {
pub fn g_tree_node_value(node: *mut GTreeNode) -> gpointer;
}
unsafe extern "C" {
pub fn g_tree_lookup_node(tree: *mut GTree, key: gconstpointer) -> *mut GTreeNode;
}
unsafe extern "C" {
pub fn g_tree_lookup(tree: *mut GTree, key: gconstpointer) -> gpointer;
}
unsafe extern "C" {
pub fn g_tree_lookup_extended(
tree: *mut GTree,
lookup_key: gconstpointer,
orig_key: *mut gpointer,
value: *mut gpointer,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_tree_foreach(tree: *mut GTree, func: GTraverseFunc, user_data: gpointer);
}
unsafe extern "C" {
pub fn g_tree_foreach_node(tree: *mut GTree, func: GTraverseNodeFunc, user_data: gpointer);
}
unsafe extern "C" {
pub fn g_tree_traverse(
tree: *mut GTree,
traverse_func: GTraverseFunc,
traverse_type: GTraverseType,
user_data: gpointer,
);
}
unsafe extern "C" {
pub fn g_tree_search_node(
tree: *mut GTree,
search_func: GCompareFunc,
user_data: gconstpointer,
) -> *mut GTreeNode;
}
unsafe extern "C" {
pub fn g_tree_search(
tree: *mut GTree,
search_func: GCompareFunc,
user_data: gconstpointer,
) -> gpointer;
}
unsafe extern "C" {
pub fn g_tree_lower_bound(tree: *mut GTree, key: gconstpointer) -> *mut GTreeNode;
}
unsafe extern "C" {
pub fn g_tree_upper_bound(tree: *mut GTree, key: gconstpointer) -> *mut GTreeNode;
}
unsafe extern "C" {
pub fn g_tree_height(tree: *mut GTree) -> gint;
}
unsafe extern "C" {
pub fn g_tree_nnodes(tree: *mut GTree) -> gint;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GUri {
_unused: [u8; 0],
}
pub type GUri = _GUri;
unsafe extern "C" {
pub fn g_uri_ref(uri: *mut GUri) -> *mut GUri;
}
unsafe extern "C" {
pub fn g_uri_unref(uri: *mut GUri);
}
pub const GUriFlags_G_URI_FLAGS_NONE: GUriFlags = 0;
pub const GUriFlags_G_URI_FLAGS_PARSE_RELAXED: GUriFlags = 1;
pub const GUriFlags_G_URI_FLAGS_HAS_PASSWORD: GUriFlags = 2;
pub const GUriFlags_G_URI_FLAGS_HAS_AUTH_PARAMS: GUriFlags = 4;
pub const GUriFlags_G_URI_FLAGS_ENCODED: GUriFlags = 8;
pub const GUriFlags_G_URI_FLAGS_NON_DNS: GUriFlags = 16;
pub const GUriFlags_G_URI_FLAGS_ENCODED_QUERY: GUriFlags = 32;
pub const GUriFlags_G_URI_FLAGS_ENCODED_PATH: GUriFlags = 64;
pub const GUriFlags_G_URI_FLAGS_ENCODED_FRAGMENT: GUriFlags = 128;
pub const GUriFlags_G_URI_FLAGS_SCHEME_NORMALIZE: GUriFlags = 256;
pub type GUriFlags = ::std::os::raw::c_uint;
unsafe extern "C" {
pub fn g_uri_split(
uri_ref: *const gchar,
flags: GUriFlags,
scheme: *mut *mut gchar,
userinfo: *mut *mut gchar,
host: *mut *mut gchar,
port: *mut gint,
path: *mut *mut gchar,
query: *mut *mut gchar,
fragment: *mut *mut gchar,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_uri_split_with_user(
uri_ref: *const gchar,
flags: GUriFlags,
scheme: *mut *mut gchar,
user: *mut *mut gchar,
password: *mut *mut gchar,
auth_params: *mut *mut gchar,
host: *mut *mut gchar,
port: *mut gint,
path: *mut *mut gchar,
query: *mut *mut gchar,
fragment: *mut *mut gchar,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_uri_split_network(
uri_string: *const gchar,
flags: GUriFlags,
scheme: *mut *mut gchar,
host: *mut *mut gchar,
port: *mut gint,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_uri_is_valid(
uri_string: *const gchar,
flags: GUriFlags,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_uri_join(
flags: GUriFlags,
scheme: *const gchar,
userinfo: *const gchar,
host: *const gchar,
port: gint,
path: *const gchar,
query: *const gchar,
fragment: *const gchar,
) -> *mut gchar;
}
unsafe extern "C" {
pub fn g_uri_join_with_user(
flags: GUriFlags,
scheme: *const gchar,
user: *const gchar,
password: *const gchar,
auth_params: *const gchar,
host: *const gchar,
port: gint,
path: *const gchar,
query: *const gchar,
fragment: *const gchar,
) -> *mut gchar;
}
unsafe extern "C" {
pub fn g_uri_parse(
uri_string: *const gchar,
flags: GUriFlags,
error: *mut *mut GError,
) -> *mut GUri;
}
unsafe extern "C" {
pub fn g_uri_parse_relative(
base_uri: *mut GUri,
uri_ref: *const gchar,
flags: GUriFlags,
error: *mut *mut GError,
) -> *mut GUri;
}
unsafe extern "C" {
pub fn g_uri_resolve_relative(
base_uri_string: *const gchar,
uri_ref: *const gchar,
flags: GUriFlags,
error: *mut *mut GError,
) -> *mut gchar;
}
unsafe extern "C" {
pub fn g_uri_build(
flags: GUriFlags,
scheme: *const gchar,
userinfo: *const gchar,
host: *const gchar,
port: gint,
path: *const gchar,
query: *const gchar,
fragment: *const gchar,
) -> *mut GUri;
}
unsafe extern "C" {
pub fn g_uri_build_with_user(
flags: GUriFlags,
scheme: *const gchar,
user: *const gchar,
password: *const gchar,
auth_params: *const gchar,
host: *const gchar,
port: gint,
path: *const gchar,
query: *const gchar,
fragment: *const gchar,
) -> *mut GUri;
}
pub const GUriHideFlags_G_URI_HIDE_NONE: GUriHideFlags = 0;
pub const GUriHideFlags_G_URI_HIDE_USERINFO: GUriHideFlags = 1;
pub const GUriHideFlags_G_URI_HIDE_PASSWORD: GUriHideFlags = 2;
pub const GUriHideFlags_G_URI_HIDE_AUTH_PARAMS: GUriHideFlags = 4;
pub const GUriHideFlags_G_URI_HIDE_QUERY: GUriHideFlags = 8;
pub const GUriHideFlags_G_URI_HIDE_FRAGMENT: GUriHideFlags = 16;
pub type GUriHideFlags = ::std::os::raw::c_uint;
unsafe extern "C" {
pub fn g_uri_to_string(uri: *mut GUri) -> *mut ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn g_uri_to_string_partial(
uri: *mut GUri,
flags: GUriHideFlags,
) -> *mut ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn g_uri_get_scheme(uri: *mut GUri) -> *const gchar;
}
unsafe extern "C" {
pub fn g_uri_get_userinfo(uri: *mut GUri) -> *const gchar;
}
unsafe extern "C" {
pub fn g_uri_get_user(uri: *mut GUri) -> *const gchar;
}
unsafe extern "C" {
pub fn g_uri_get_password(uri: *mut GUri) -> *const gchar;
}
unsafe extern "C" {
pub fn g_uri_get_auth_params(uri: *mut GUri) -> *const gchar;
}
unsafe extern "C" {
pub fn g_uri_get_host(uri: *mut GUri) -> *const gchar;
}
unsafe extern "C" {
pub fn g_uri_get_port(uri: *mut GUri) -> gint;
}
unsafe extern "C" {
pub fn g_uri_get_path(uri: *mut GUri) -> *const gchar;
}
unsafe extern "C" {
pub fn g_uri_get_query(uri: *mut GUri) -> *const gchar;
}
unsafe extern "C" {
pub fn g_uri_get_fragment(uri: *mut GUri) -> *const gchar;
}
unsafe extern "C" {
pub fn g_uri_get_flags(uri: *mut GUri) -> GUriFlags;
}
pub const GUriParamsFlags_G_URI_PARAMS_NONE: GUriParamsFlags = 0;
pub const GUriParamsFlags_G_URI_PARAMS_CASE_INSENSITIVE: GUriParamsFlags = 1;
pub const GUriParamsFlags_G_URI_PARAMS_WWW_FORM: GUriParamsFlags = 2;
pub const GUriParamsFlags_G_URI_PARAMS_PARSE_RELAXED: GUriParamsFlags = 4;
pub type GUriParamsFlags = ::std::os::raw::c_uint;
unsafe extern "C" {
pub fn g_uri_parse_params(
params: *const gchar,
length: gssize,
separators: *const gchar,
flags: GUriParamsFlags,
error: *mut *mut GError,
) -> *mut GHashTable;
}
pub type GUriParamsIter = _GUriParamsIter;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GUriParamsIter {
pub dummy0: gint,
pub dummy1: gpointer,
pub dummy2: gpointer,
pub dummy3: [guint8; 256usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GUriParamsIter"][::std::mem::size_of::<_GUriParamsIter>() - 280usize];
["Alignment of _GUriParamsIter"][::std::mem::align_of::<_GUriParamsIter>() - 8usize];
["Offset of field: _GUriParamsIter::dummy0"]
[::std::mem::offset_of!(_GUriParamsIter, dummy0) - 0usize];
["Offset of field: _GUriParamsIter::dummy1"]
[::std::mem::offset_of!(_GUriParamsIter, dummy1) - 8usize];
["Offset of field: _GUriParamsIter::dummy2"]
[::std::mem::offset_of!(_GUriParamsIter, dummy2) - 16usize];
["Offset of field: _GUriParamsIter::dummy3"]
[::std::mem::offset_of!(_GUriParamsIter, dummy3) - 24usize];
};
unsafe extern "C" {
pub fn g_uri_params_iter_init(
iter: *mut GUriParamsIter,
params: *const gchar,
length: gssize,
separators: *const gchar,
flags: GUriParamsFlags,
);
}
unsafe extern "C" {
pub fn g_uri_params_iter_next(
iter: *mut GUriParamsIter,
attribute: *mut *mut gchar,
value: *mut *mut gchar,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_uri_error_quark() -> GQuark;
}
pub const GUriError_G_URI_ERROR_FAILED: GUriError = 0;
pub const GUriError_G_URI_ERROR_BAD_SCHEME: GUriError = 1;
pub const GUriError_G_URI_ERROR_BAD_USER: GUriError = 2;
pub const GUriError_G_URI_ERROR_BAD_PASSWORD: GUriError = 3;
pub const GUriError_G_URI_ERROR_BAD_AUTH_PARAMS: GUriError = 4;
pub const GUriError_G_URI_ERROR_BAD_HOST: GUriError = 5;
pub const GUriError_G_URI_ERROR_BAD_PORT: GUriError = 6;
pub const GUriError_G_URI_ERROR_BAD_PATH: GUriError = 7;
pub const GUriError_G_URI_ERROR_BAD_QUERY: GUriError = 8;
pub const GUriError_G_URI_ERROR_BAD_FRAGMENT: GUriError = 9;
pub type GUriError = ::std::os::raw::c_uint;
unsafe 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;
}
unsafe 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;
}
unsafe extern "C" {
pub fn g_uri_parse_scheme(uri: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn g_uri_peek_scheme(uri: *const ::std::os::raw::c_char) -> *const ::std::os::raw::c_char;
}
unsafe 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;
}
unsafe extern "C" {
pub fn g_uri_unescape_bytes(
escaped_string: *const ::std::os::raw::c_char,
length: gssize,
illegal_characters: *const ::std::os::raw::c_char,
error: *mut *mut GError,
) -> *mut GBytes;
}
unsafe extern "C" {
pub fn g_uri_escape_bytes(
unescaped: *const guint8,
length: gsize,
reserved_chars_allowed: *const ::std::os::raw::c_char,
) -> *mut ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn g_uuid_string_is_valid(str_: *const gchar) -> gboolean;
}
unsafe extern "C" {
pub fn g_uuid_string_random() -> *mut gchar;
}
unsafe extern "C" {
pub static glib_major_version: guint;
}
unsafe extern "C" {
pub static glib_minor_version: guint;
}
unsafe extern "C" {
pub static glib_micro_version: guint;
}
unsafe extern "C" {
pub static glib_interface_age: guint;
}
unsafe extern "C" {
pub static glib_binary_age: guint;
}
unsafe 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;
unsafe extern "C" {
pub fn g_mem_chunk_new(
name: *const gchar,
atom_size: gint,
area_size: gsize,
type_: gint,
) -> *mut GMemChunk;
}
unsafe extern "C" {
pub fn g_mem_chunk_destroy(mem_chunk: *mut GMemChunk);
}
unsafe extern "C" {
pub fn g_mem_chunk_alloc(mem_chunk: *mut GMemChunk) -> gpointer;
}
unsafe extern "C" {
pub fn g_mem_chunk_alloc0(mem_chunk: *mut GMemChunk) -> gpointer;
}
unsafe extern "C" {
pub fn g_mem_chunk_free(mem_chunk: *mut GMemChunk, mem: gpointer);
}
unsafe extern "C" {
pub fn g_mem_chunk_clean(mem_chunk: *mut GMemChunk);
}
unsafe extern "C" {
pub fn g_mem_chunk_reset(mem_chunk: *mut GMemChunk);
}
unsafe extern "C" {
pub fn g_mem_chunk_print(mem_chunk: *mut GMemChunk);
}
unsafe extern "C" {
pub fn g_mem_chunk_info();
}
unsafe extern "C" {
pub fn g_blow_chunks();
}
unsafe extern "C" {
pub fn g_allocator_new(name: *const gchar, n_preallocs: guint) -> *mut GAllocator;
}
unsafe extern "C" {
pub fn g_allocator_free(allocator: *mut GAllocator);
}
unsafe extern "C" {
pub fn g_list_push_allocator(allocator: *mut GAllocator);
}
unsafe extern "C" {
pub fn g_list_pop_allocator();
}
unsafe extern "C" {
pub fn g_slist_push_allocator(allocator: *mut GAllocator);
}
unsafe extern "C" {
pub fn g_slist_pop_allocator();
}
unsafe extern "C" {
pub fn g_node_push_allocator(allocator: *mut GAllocator);
}
unsafe 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)>;
unsafe 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;
}
unsafe extern "C" {
pub fn g_cache_destroy(cache: *mut GCache);
}
unsafe extern "C" {
pub fn g_cache_insert(cache: *mut GCache, key: gpointer) -> gpointer;
}
unsafe extern "C" {
pub fn g_cache_remove(cache: *mut GCache, value: gconstpointer);
}
unsafe extern "C" {
pub fn g_cache_key_foreach(cache: *mut GCache, func: GHFunc, user_data: gpointer);
}
unsafe 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(item: 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, PartialEq, Eq)]
pub struct _GCompletion {
pub items: *mut GList,
pub func: GCompletionFunc,
pub prefix: *mut gchar,
pub cache: *mut GList,
pub strncmp_func: GCompletionStrncmpFunc,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GCompletion"][::std::mem::size_of::<_GCompletion>() - 40usize];
["Alignment of _GCompletion"][::std::mem::align_of::<_GCompletion>() - 8usize];
["Offset of field: _GCompletion::items"][::std::mem::offset_of!(_GCompletion, items) - 0usize];
["Offset of field: _GCompletion::func"][::std::mem::offset_of!(_GCompletion, func) - 8usize];
["Offset of field: _GCompletion::prefix"]
[::std::mem::offset_of!(_GCompletion, prefix) - 16usize];
["Offset of field: _GCompletion::cache"][::std::mem::offset_of!(_GCompletion, cache) - 24usize];
["Offset of field: _GCompletion::strncmp_func"]
[::std::mem::offset_of!(_GCompletion, strncmp_func) - 32usize];
};
unsafe extern "C" {
pub fn g_completion_new(func: GCompletionFunc) -> *mut GCompletion;
}
unsafe extern "C" {
pub fn g_completion_add_items(cmp: *mut GCompletion, items: *mut GList);
}
unsafe extern "C" {
pub fn g_completion_remove_items(cmp: *mut GCompletion, items: *mut GList);
}
unsafe extern "C" {
pub fn g_completion_clear_items(cmp: *mut GCompletion);
}
unsafe extern "C" {
pub fn g_completion_complete(
cmp: *mut GCompletion,
prefix: *const gchar,
new_prefix: *mut *mut gchar,
) -> *mut GList;
}
unsafe extern "C" {
pub fn g_completion_complete_utf8(
cmp: *mut GCompletion,
prefix: *const gchar,
new_prefix: *mut *mut gchar,
) -> *mut GList;
}
unsafe extern "C" {
pub fn g_completion_set_compare(cmp: *mut GCompletion, strncmp_func: GCompletionStrncmpFunc);
}
unsafe 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, PartialEq, Eq)]
pub struct _GTuples {
pub len: guint,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GTuples"][::std::mem::size_of::<_GTuples>() - 4usize];
["Alignment of _GTuples"][::std::mem::align_of::<_GTuples>() - 4usize];
["Offset of field: _GTuples::len"][::std::mem::offset_of!(_GTuples, len) - 0usize];
};
unsafe extern "C" {
pub fn g_relation_new(fields: gint) -> *mut GRelation;
}
unsafe extern "C" {
pub fn g_relation_destroy(relation: *mut GRelation);
}
unsafe extern "C" {
pub fn g_relation_index(
relation: *mut GRelation,
field: gint,
hash_func: GHashFunc,
key_equal_func: GEqualFunc,
);
}
unsafe extern "C" {
pub fn g_relation_insert(relation: *mut GRelation, ...);
}
unsafe extern "C" {
pub fn g_relation_delete(relation: *mut GRelation, key: gconstpointer, field: gint) -> gint;
}
unsafe extern "C" {
pub fn g_relation_select(
relation: *mut GRelation,
key: gconstpointer,
field: gint,
) -> *mut GTuples;
}
unsafe extern "C" {
pub fn g_relation_count(relation: *mut GRelation, key: gconstpointer, field: gint) -> gint;
}
unsafe extern "C" {
pub fn g_relation_exists(relation: *mut GRelation, ...) -> gboolean;
}
unsafe extern "C" {
pub fn g_relation_print(relation: *mut GRelation);
}
unsafe extern "C" {
pub fn g_tuples_destroy(tuples: *mut GTuples);
}
unsafe extern "C" {
pub fn g_tuples_index(tuples: *mut GTuples, index_: gint, field: gint) -> gpointer;
}
pub const GThreadPriority_G_THREAD_PRIORITY_LOW: GThreadPriority = 0;
pub const GThreadPriority_G_THREAD_PRIORITY_NORMAL: GThreadPriority = 1;
pub const GThreadPriority_G_THREAD_PRIORITY_HIGH: GThreadPriority = 2;
pub const GThreadPriority_G_THREAD_PRIORITY_URGENT: GThreadPriority = 3;
pub type GThreadPriority = ::std::os::raw::c_uint;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GThread {
pub func: GThreadFunc,
pub data: gpointer,
pub joinable: gboolean,
pub priority: GThreadPriority,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GThread"][::std::mem::size_of::<_GThread>() - 24usize];
["Alignment of _GThread"][::std::mem::align_of::<_GThread>() - 8usize];
["Offset of field: _GThread::func"][::std::mem::offset_of!(_GThread, func) - 0usize];
["Offset of field: _GThread::data"][::std::mem::offset_of!(_GThread, data) - 8usize];
["Offset of field: _GThread::joinable"][::std::mem::offset_of!(_GThread, joinable) - 16usize];
["Offset of field: _GThread::priority"][::std::mem::offset_of!(_GThread, priority) - 20usize];
};
pub type GThreadFunctions = _GThreadFunctions;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
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,
>,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GThreadFunctions"][::std::mem::size_of::<_GThreadFunctions>() - 168usize];
["Alignment of _GThreadFunctions"][::std::mem::align_of::<_GThreadFunctions>() - 8usize];
["Offset of field: _GThreadFunctions::mutex_new"]
[::std::mem::offset_of!(_GThreadFunctions, mutex_new) - 0usize];
["Offset of field: _GThreadFunctions::mutex_lock"]
[::std::mem::offset_of!(_GThreadFunctions, mutex_lock) - 8usize];
["Offset of field: _GThreadFunctions::mutex_trylock"]
[::std::mem::offset_of!(_GThreadFunctions, mutex_trylock) - 16usize];
["Offset of field: _GThreadFunctions::mutex_unlock"]
[::std::mem::offset_of!(_GThreadFunctions, mutex_unlock) - 24usize];
["Offset of field: _GThreadFunctions::mutex_free"]
[::std::mem::offset_of!(_GThreadFunctions, mutex_free) - 32usize];
["Offset of field: _GThreadFunctions::cond_new"]
[::std::mem::offset_of!(_GThreadFunctions, cond_new) - 40usize];
["Offset of field: _GThreadFunctions::cond_signal"]
[::std::mem::offset_of!(_GThreadFunctions, cond_signal) - 48usize];
["Offset of field: _GThreadFunctions::cond_broadcast"]
[::std::mem::offset_of!(_GThreadFunctions, cond_broadcast) - 56usize];
["Offset of field: _GThreadFunctions::cond_wait"]
[::std::mem::offset_of!(_GThreadFunctions, cond_wait) - 64usize];
["Offset of field: _GThreadFunctions::cond_timed_wait"]
[::std::mem::offset_of!(_GThreadFunctions, cond_timed_wait) - 72usize];
["Offset of field: _GThreadFunctions::cond_free"]
[::std::mem::offset_of!(_GThreadFunctions, cond_free) - 80usize];
["Offset of field: _GThreadFunctions::private_new"]
[::std::mem::offset_of!(_GThreadFunctions, private_new) - 88usize];
["Offset of field: _GThreadFunctions::private_get"]
[::std::mem::offset_of!(_GThreadFunctions, private_get) - 96usize];
["Offset of field: _GThreadFunctions::private_set"]
[::std::mem::offset_of!(_GThreadFunctions, private_set) - 104usize];
["Offset of field: _GThreadFunctions::thread_create"]
[::std::mem::offset_of!(_GThreadFunctions, thread_create) - 112usize];
["Offset of field: _GThreadFunctions::thread_yield"]
[::std::mem::offset_of!(_GThreadFunctions, thread_yield) - 120usize];
["Offset of field: _GThreadFunctions::thread_join"]
[::std::mem::offset_of!(_GThreadFunctions, thread_join) - 128usize];
["Offset of field: _GThreadFunctions::thread_exit"]
[::std::mem::offset_of!(_GThreadFunctions, thread_exit) - 136usize];
["Offset of field: _GThreadFunctions::thread_set_priority"]
[::std::mem::offset_of!(_GThreadFunctions, thread_set_priority) - 144usize];
["Offset of field: _GThreadFunctions::thread_self"]
[::std::mem::offset_of!(_GThreadFunctions, thread_self) - 152usize];
["Offset of field: _GThreadFunctions::thread_equal"]
[::std::mem::offset_of!(_GThreadFunctions, thread_equal) - 160usize];
};
unsafe extern "C" {
pub static mut g_thread_functions_for_glib_use: GThreadFunctions;
}
unsafe extern "C" {
pub static mut g_thread_use_default_impl: gboolean;
}
unsafe extern "C" {
pub static mut g_thread_gettime: ::std::option::Option<unsafe extern "C" fn() -> guint64>;
}
unsafe extern "C" {
pub fn g_thread_create(
func: GThreadFunc,
data: gpointer,
joinable: gboolean,
error: *mut *mut GError,
) -> *mut GThread;
}
unsafe 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;
}
unsafe extern "C" {
pub fn g_thread_set_priority(thread: *mut GThread, priority: GThreadPriority);
}
unsafe extern "C" {
pub fn g_thread_foreach(thread_func: GFunc, user_data: gpointer);
}
pub type blksize_t = ::std::os::raw::c_int;
pub type nlink_t = ::std::os::raw::c_uint;
pub type register_t = ::std::os::raw::c_long;
pub type suseconds_t = ::std::os::raw::c_long;
pub type u_int64_t = ::std::os::raw::c_ulong;
pub type mode_t = ::std::os::raw::c_uint;
pub type dev_t = ::std::os::raw::c_ulong;
pub type blkcnt_t = ::std::os::raw::c_long;
pub type fsblkcnt_t = ::std::os::raw::c_ulong;
pub type fsfilcnt_t = ::std::os::raw::c_ulong;
pub type id_t = ::std::os::raw::c_uint;
pub type gid_t = ::std::os::raw::c_uint;
pub type key_t = ::std::os::raw::c_int;
pub type useconds_t = ::std::os::raw::c_uint;
pub type pthread_once_t = ::std::os::raw::c_int;
pub type pthread_key_t = ::std::os::raw::c_uint;
pub type pthread_spinlock_t = ::std::os::raw::c_int;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct pthread_mutexattr_t {
pub __attr: ::std::os::raw::c_uint,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of pthread_mutexattr_t"][::std::mem::size_of::<pthread_mutexattr_t>() - 4usize];
["Alignment of pthread_mutexattr_t"][::std::mem::align_of::<pthread_mutexattr_t>() - 4usize];
["Offset of field: pthread_mutexattr_t::__attr"]
[::std::mem::offset_of!(pthread_mutexattr_t, __attr) - 0usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct pthread_condattr_t {
pub __attr: ::std::os::raw::c_uint,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of pthread_condattr_t"][::std::mem::size_of::<pthread_condattr_t>() - 4usize];
["Alignment of pthread_condattr_t"][::std::mem::align_of::<pthread_condattr_t>() - 4usize];
["Offset of field: pthread_condattr_t::__attr"]
[::std::mem::offset_of!(pthread_condattr_t, __attr) - 0usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct pthread_barrierattr_t {
pub __attr: ::std::os::raw::c_uint,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of pthread_barrierattr_t"][::std::mem::size_of::<pthread_barrierattr_t>() - 4usize];
["Alignment of pthread_barrierattr_t"]
[::std::mem::align_of::<pthread_barrierattr_t>() - 4usize];
["Offset of field: pthread_barrierattr_t::__attr"]
[::std::mem::offset_of!(pthread_barrierattr_t, __attr) - 0usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct pthread_rwlockattr_t {
pub __attr: [::std::os::raw::c_uint; 2usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of pthread_rwlockattr_t"][::std::mem::size_of::<pthread_rwlockattr_t>() - 8usize];
["Alignment of pthread_rwlockattr_t"][::std::mem::align_of::<pthread_rwlockattr_t>() - 4usize];
["Offset of field: pthread_rwlockattr_t::__attr"]
[::std::mem::offset_of!(pthread_rwlockattr_t, __attr) - 0usize];
};
#[repr(C)]
#[derive(Copy, Clone)]
pub struct pthread_mutex_t {
pub __u: pthread_mutex_t__bindgen_ty_1,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union pthread_mutex_t__bindgen_ty_1 {
pub __i: [::std::os::raw::c_int; 10usize],
pub __vi: [::std::os::raw::c_int; 10usize],
pub __p: [*mut ::std::os::raw::c_void; 5usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of pthread_mutex_t__bindgen_ty_1"]
[::std::mem::size_of::<pthread_mutex_t__bindgen_ty_1>() - 40usize];
["Alignment of pthread_mutex_t__bindgen_ty_1"]
[::std::mem::align_of::<pthread_mutex_t__bindgen_ty_1>() - 8usize];
["Offset of field: pthread_mutex_t__bindgen_ty_1::__i"]
[::std::mem::offset_of!(pthread_mutex_t__bindgen_ty_1, __i) - 0usize];
["Offset of field: pthread_mutex_t__bindgen_ty_1::__vi"]
[::std::mem::offset_of!(pthread_mutex_t__bindgen_ty_1, __vi) - 0usize];
["Offset of field: pthread_mutex_t__bindgen_ty_1::__p"]
[::std::mem::offset_of!(pthread_mutex_t__bindgen_ty_1, __p) - 0usize];
};
impl ::std::fmt::Debug for pthread_mutex_t__bindgen_ty_1 {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
write!(f, "pthread_mutex_t__bindgen_ty_1 {{ union }}")
}
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of pthread_mutex_t"][::std::mem::size_of::<pthread_mutex_t>() - 40usize];
["Alignment of pthread_mutex_t"][::std::mem::align_of::<pthread_mutex_t>() - 8usize];
["Offset of field: pthread_mutex_t::__u"]
[::std::mem::offset_of!(pthread_mutex_t, __u) - 0usize];
};
impl ::std::fmt::Debug for pthread_mutex_t {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
write!(f, "pthread_mutex_t {{ __u: {:?} }}", self.__u)
}
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct pthread_cond_t {
pub __u: pthread_cond_t__bindgen_ty_1,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union pthread_cond_t__bindgen_ty_1 {
pub __i: [::std::os::raw::c_int; 12usize],
pub __vi: [::std::os::raw::c_int; 12usize],
pub __p: [*mut ::std::os::raw::c_void; 6usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of pthread_cond_t__bindgen_ty_1"]
[::std::mem::size_of::<pthread_cond_t__bindgen_ty_1>() - 48usize];
["Alignment of pthread_cond_t__bindgen_ty_1"]
[::std::mem::align_of::<pthread_cond_t__bindgen_ty_1>() - 8usize];
["Offset of field: pthread_cond_t__bindgen_ty_1::__i"]
[::std::mem::offset_of!(pthread_cond_t__bindgen_ty_1, __i) - 0usize];
["Offset of field: pthread_cond_t__bindgen_ty_1::__vi"]
[::std::mem::offset_of!(pthread_cond_t__bindgen_ty_1, __vi) - 0usize];
["Offset of field: pthread_cond_t__bindgen_ty_1::__p"]
[::std::mem::offset_of!(pthread_cond_t__bindgen_ty_1, __p) - 0usize];
};
impl ::std::fmt::Debug for pthread_cond_t__bindgen_ty_1 {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
write!(f, "pthread_cond_t__bindgen_ty_1 {{ union }}")
}
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of pthread_cond_t"][::std::mem::size_of::<pthread_cond_t>() - 48usize];
["Alignment of pthread_cond_t"][::std::mem::align_of::<pthread_cond_t>() - 8usize];
["Offset of field: pthread_cond_t::__u"][::std::mem::offset_of!(pthread_cond_t, __u) - 0usize];
};
impl ::std::fmt::Debug for pthread_cond_t {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
write!(f, "pthread_cond_t {{ __u: {:?} }}", self.__u)
}
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct pthread_rwlock_t {
pub __u: pthread_rwlock_t__bindgen_ty_1,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union pthread_rwlock_t__bindgen_ty_1 {
pub __i: [::std::os::raw::c_int; 14usize],
pub __vi: [::std::os::raw::c_int; 14usize],
pub __p: [*mut ::std::os::raw::c_void; 7usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of pthread_rwlock_t__bindgen_ty_1"]
[::std::mem::size_of::<pthread_rwlock_t__bindgen_ty_1>() - 56usize];
["Alignment of pthread_rwlock_t__bindgen_ty_1"]
[::std::mem::align_of::<pthread_rwlock_t__bindgen_ty_1>() - 8usize];
["Offset of field: pthread_rwlock_t__bindgen_ty_1::__i"]
[::std::mem::offset_of!(pthread_rwlock_t__bindgen_ty_1, __i) - 0usize];
["Offset of field: pthread_rwlock_t__bindgen_ty_1::__vi"]
[::std::mem::offset_of!(pthread_rwlock_t__bindgen_ty_1, __vi) - 0usize];
["Offset of field: pthread_rwlock_t__bindgen_ty_1::__p"]
[::std::mem::offset_of!(pthread_rwlock_t__bindgen_ty_1, __p) - 0usize];
};
impl ::std::fmt::Debug for pthread_rwlock_t__bindgen_ty_1 {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
write!(f, "pthread_rwlock_t__bindgen_ty_1 {{ union }}")
}
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of pthread_rwlock_t"][::std::mem::size_of::<pthread_rwlock_t>() - 56usize];
["Alignment of pthread_rwlock_t"][::std::mem::align_of::<pthread_rwlock_t>() - 8usize];
["Offset of field: pthread_rwlock_t::__u"]
[::std::mem::offset_of!(pthread_rwlock_t, __u) - 0usize];
};
impl ::std::fmt::Debug for pthread_rwlock_t {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
write!(f, "pthread_rwlock_t {{ __u: {:?} }}", self.__u)
}
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct pthread_barrier_t {
pub __u: pthread_barrier_t__bindgen_ty_1,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union pthread_barrier_t__bindgen_ty_1 {
pub __i: [::std::os::raw::c_int; 8usize],
pub __vi: [::std::os::raw::c_int; 8usize],
pub __p: [*mut ::std::os::raw::c_void; 4usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of pthread_barrier_t__bindgen_ty_1"]
[::std::mem::size_of::<pthread_barrier_t__bindgen_ty_1>() - 32usize];
["Alignment of pthread_barrier_t__bindgen_ty_1"]
[::std::mem::align_of::<pthread_barrier_t__bindgen_ty_1>() - 8usize];
["Offset of field: pthread_barrier_t__bindgen_ty_1::__i"]
[::std::mem::offset_of!(pthread_barrier_t__bindgen_ty_1, __i) - 0usize];
["Offset of field: pthread_barrier_t__bindgen_ty_1::__vi"]
[::std::mem::offset_of!(pthread_barrier_t__bindgen_ty_1, __vi) - 0usize];
["Offset of field: pthread_barrier_t__bindgen_ty_1::__p"]
[::std::mem::offset_of!(pthread_barrier_t__bindgen_ty_1, __p) - 0usize];
};
impl ::std::fmt::Debug for pthread_barrier_t__bindgen_ty_1 {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
write!(f, "pthread_barrier_t__bindgen_ty_1 {{ union }}")
}
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of pthread_barrier_t"][::std::mem::size_of::<pthread_barrier_t>() - 32usize];
["Alignment of pthread_barrier_t"][::std::mem::align_of::<pthread_barrier_t>() - 8usize];
["Offset of field: pthread_barrier_t::__u"]
[::std::mem::offset_of!(pthread_barrier_t, __u) - 0usize];
};
impl ::std::fmt::Debug for pthread_barrier_t {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
write!(f, "pthread_barrier_t {{ __u: {:?} }}", self.__u)
}
}
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 caddr_t = *mut ::std::os::raw::c_char;
pub type u_char = ::std::os::raw::c_uchar;
pub type u_short = ::std::os::raw::c_ushort;
pub type ushort = ::std::os::raw::c_ushort;
pub type u_int = ::std::os::raw::c_uint;
pub type uint = ::std::os::raw::c_uint;
pub type u_long = ::std::os::raw::c_ulong;
pub type ulong = ::std::os::raw::c_ulong;
pub type quad_t = ::std::os::raw::c_longlong;
pub type u_quad_t = ::std::os::raw::c_ulonglong;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct timeval {
pub tv_sec: time_t,
pub tv_usec: suseconds_t,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of timeval"][::std::mem::size_of::<timeval>() - 16usize];
["Alignment of timeval"][::std::mem::align_of::<timeval>() - 8usize];
["Offset of field: timeval::tv_sec"][::std::mem::offset_of!(timeval, tv_sec) - 0usize];
["Offset of field: timeval::tv_usec"][::std::mem::offset_of!(timeval, tv_usec) - 8usize];
};
pub type fd_mask = ::std::os::raw::c_ulong;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct fd_set {
pub fds_bits: [::std::os::raw::c_ulong; 16usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of fd_set"][::std::mem::size_of::<fd_set>() - 128usize];
["Alignment of fd_set"][::std::mem::align_of::<fd_set>() - 8usize];
["Offset of field: fd_set::fds_bits"][::std::mem::offset_of!(fd_set, fds_bits) - 0usize];
};
unsafe extern "C" {
pub fn select(
arg1: ::std::os::raw::c_int,
arg2: *mut fd_set,
arg3: *mut fd_set,
arg4: *mut fd_set,
arg5: *mut timeval,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn pselect(
arg1: ::std::os::raw::c_int,
arg2: *mut fd_set,
arg3: *mut fd_set,
arg4: *mut fd_set,
arg5: *const timespec,
arg6: *const sigset_t,
) -> ::std::os::raw::c_int;
}
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct sched_param {
pub sched_priority: ::std::os::raw::c_int,
pub __reserved1: ::std::os::raw::c_int,
pub __reserved2: [sched_param__bindgen_ty_1; 2usize],
pub __reserved3: ::std::os::raw::c_int,
}
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct sched_param__bindgen_ty_1 {
pub __reserved1: time_t,
pub __reserved2: ::std::os::raw::c_long,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of sched_param__bindgen_ty_1"]
[::std::mem::size_of::<sched_param__bindgen_ty_1>() - 16usize];
["Alignment of sched_param__bindgen_ty_1"]
[::std::mem::align_of::<sched_param__bindgen_ty_1>() - 8usize];
["Offset of field: sched_param__bindgen_ty_1::__reserved1"]
[::std::mem::offset_of!(sched_param__bindgen_ty_1, __reserved1) - 0usize];
["Offset of field: sched_param__bindgen_ty_1::__reserved2"]
[::std::mem::offset_of!(sched_param__bindgen_ty_1, __reserved2) - 8usize];
};
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of sched_param"][::std::mem::size_of::<sched_param>() - 48usize];
["Alignment of sched_param"][::std::mem::align_of::<sched_param>() - 8usize];
["Offset of field: sched_param::sched_priority"]
[::std::mem::offset_of!(sched_param, sched_priority) - 0usize];
["Offset of field: sched_param::__reserved1"]
[::std::mem::offset_of!(sched_param, __reserved1) - 4usize];
["Offset of field: sched_param::__reserved2"]
[::std::mem::offset_of!(sched_param, __reserved2) - 8usize];
["Offset of field: sched_param::__reserved3"]
[::std::mem::offset_of!(sched_param, __reserved3) - 40usize];
};
unsafe extern "C" {
pub fn sched_get_priority_max(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn sched_get_priority_min(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn sched_getparam(arg1: pid_t, arg2: *mut sched_param) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn sched_getscheduler(arg1: pid_t) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn sched_rr_get_interval(arg1: pid_t, arg2: *mut timespec) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn sched_setparam(arg1: pid_t, arg2: *const sched_param) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn sched_setscheduler(
arg1: pid_t,
arg2: ::std::os::raw::c_int,
arg3: *const sched_param,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn sched_yield() -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn pthread_create(
arg1: *mut pthread_t,
arg2: *const pthread_attr_t,
arg3: ::std::option::Option<
unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void) -> *mut ::std::os::raw::c_void,
>,
arg4: *mut ::std::os::raw::c_void,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn pthread_detach(arg1: pthread_t) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn pthread_exit(arg1: *mut ::std::os::raw::c_void);
}
unsafe extern "C" {
pub fn pthread_join(
arg1: pthread_t,
arg2: *mut *mut ::std::os::raw::c_void,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn pthread_self() -> pthread_t;
}
unsafe extern "C" {
pub fn pthread_equal(arg1: pthread_t, arg2: pthread_t) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn pthread_setcancelstate(
arg1: ::std::os::raw::c_int,
arg2: *mut ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn pthread_setcanceltype(
arg1: ::std::os::raw::c_int,
arg2: *mut ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn pthread_testcancel();
}
unsafe extern "C" {
pub fn pthread_cancel(arg1: pthread_t) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn pthread_getschedparam(
arg1: pthread_t,
arg2: *mut ::std::os::raw::c_int,
arg3: *mut sched_param,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn pthread_setschedparam(
arg1: pthread_t,
arg2: ::std::os::raw::c_int,
arg3: *const sched_param,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn pthread_setschedprio(
arg1: pthread_t,
arg2: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn pthread_once(
arg1: *mut pthread_once_t,
arg2: ::std::option::Option<unsafe extern "C" fn()>,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn pthread_mutex_init(
arg1: *mut pthread_mutex_t,
arg2: *const pthread_mutexattr_t,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn pthread_mutex_lock(arg1: *mut pthread_mutex_t) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn pthread_mutex_unlock(arg1: *mut pthread_mutex_t) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn pthread_mutex_trylock(arg1: *mut pthread_mutex_t) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn pthread_mutex_timedlock(
arg1: *mut pthread_mutex_t,
arg2: *const timespec,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn pthread_mutex_destroy(arg1: *mut pthread_mutex_t) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn pthread_mutex_consistent(arg1: *mut pthread_mutex_t) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn pthread_mutex_getprioceiling(
arg1: *const pthread_mutex_t,
arg2: *mut ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn pthread_mutex_setprioceiling(
arg1: *mut pthread_mutex_t,
arg2: ::std::os::raw::c_int,
arg3: *mut ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn pthread_cond_init(
arg1: *mut pthread_cond_t,
arg2: *const pthread_condattr_t,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn pthread_cond_destroy(arg1: *mut pthread_cond_t) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn pthread_cond_wait(
arg1: *mut pthread_cond_t,
arg2: *mut pthread_mutex_t,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn pthread_cond_timedwait(
arg1: *mut pthread_cond_t,
arg2: *mut pthread_mutex_t,
arg3: *const timespec,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn pthread_cond_broadcast(arg1: *mut pthread_cond_t) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn pthread_cond_signal(arg1: *mut pthread_cond_t) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn pthread_rwlock_init(
arg1: *mut pthread_rwlock_t,
arg2: *const pthread_rwlockattr_t,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn pthread_rwlock_destroy(arg1: *mut pthread_rwlock_t) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn pthread_rwlock_rdlock(arg1: *mut pthread_rwlock_t) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn pthread_rwlock_tryrdlock(arg1: *mut pthread_rwlock_t) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn pthread_rwlock_timedrdlock(
arg1: *mut pthread_rwlock_t,
arg2: *const timespec,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn pthread_rwlock_wrlock(arg1: *mut pthread_rwlock_t) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn pthread_rwlock_trywrlock(arg1: *mut pthread_rwlock_t) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn pthread_rwlock_timedwrlock(
arg1: *mut pthread_rwlock_t,
arg2: *const timespec,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn pthread_rwlock_unlock(arg1: *mut pthread_rwlock_t) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn pthread_spin_init(
arg1: *mut pthread_spinlock_t,
arg2: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn pthread_spin_destroy(arg1: *mut pthread_spinlock_t) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn pthread_spin_lock(arg1: *mut pthread_spinlock_t) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn pthread_spin_trylock(arg1: *mut pthread_spinlock_t) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn pthread_spin_unlock(arg1: *mut pthread_spinlock_t) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn pthread_barrier_init(
arg1: *mut pthread_barrier_t,
arg2: *const pthread_barrierattr_t,
arg3: ::std::os::raw::c_uint,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn pthread_barrier_destroy(arg1: *mut pthread_barrier_t) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn pthread_barrier_wait(arg1: *mut pthread_barrier_t) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn pthread_key_create(
arg1: *mut pthread_key_t,
arg2: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn pthread_key_delete(arg1: pthread_key_t) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn pthread_getspecific(arg1: pthread_key_t) -> *mut ::std::os::raw::c_void;
}
unsafe extern "C" {
pub fn pthread_setspecific(
arg1: pthread_key_t,
arg2: *const ::std::os::raw::c_void,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn pthread_attr_init(arg1: *mut pthread_attr_t) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn pthread_attr_destroy(arg1: *mut pthread_attr_t) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn pthread_attr_getguardsize(
arg1: *const pthread_attr_t,
arg2: *mut size_t,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn pthread_attr_setguardsize(
arg1: *mut pthread_attr_t,
arg2: size_t,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn pthread_attr_getstacksize(
arg1: *const pthread_attr_t,
arg2: *mut size_t,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn pthread_attr_setstacksize(
arg1: *mut pthread_attr_t,
arg2: size_t,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn pthread_attr_getdetachstate(
arg1: *const pthread_attr_t,
arg2: *mut ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn pthread_attr_setdetachstate(
arg1: *mut pthread_attr_t,
arg2: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn pthread_attr_getstack(
arg1: *const pthread_attr_t,
arg2: *mut *mut ::std::os::raw::c_void,
arg3: *mut size_t,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn pthread_attr_setstack(
arg1: *mut pthread_attr_t,
arg2: *mut ::std::os::raw::c_void,
arg3: size_t,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn pthread_attr_getscope(
arg1: *const pthread_attr_t,
arg2: *mut ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn pthread_attr_setscope(
arg1: *mut pthread_attr_t,
arg2: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn pthread_attr_getschedpolicy(
arg1: *const pthread_attr_t,
arg2: *mut ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn pthread_attr_setschedpolicy(
arg1: *mut pthread_attr_t,
arg2: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn pthread_attr_getschedparam(
arg1: *const pthread_attr_t,
arg2: *mut sched_param,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn pthread_attr_setschedparam(
arg1: *mut pthread_attr_t,
arg2: *const sched_param,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn pthread_attr_getinheritsched(
arg1: *const pthread_attr_t,
arg2: *mut ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn pthread_attr_setinheritsched(
arg1: *mut pthread_attr_t,
arg2: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn pthread_mutexattr_destroy(arg1: *mut pthread_mutexattr_t) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn pthread_mutexattr_getprioceiling(
arg1: *const pthread_mutexattr_t,
arg2: *mut ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn pthread_mutexattr_getprotocol(
arg1: *const pthread_mutexattr_t,
arg2: *mut ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn pthread_mutexattr_getpshared(
arg1: *const pthread_mutexattr_t,
arg2: *mut ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn pthread_mutexattr_getrobust(
arg1: *const pthread_mutexattr_t,
arg2: *mut ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn pthread_mutexattr_gettype(
arg1: *const pthread_mutexattr_t,
arg2: *mut ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn pthread_mutexattr_init(arg1: *mut pthread_mutexattr_t) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn pthread_mutexattr_setprioceiling(
arg1: *mut pthread_mutexattr_t,
arg2: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn pthread_mutexattr_setprotocol(
arg1: *mut pthread_mutexattr_t,
arg2: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn pthread_mutexattr_setpshared(
arg1: *mut pthread_mutexattr_t,
arg2: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn pthread_mutexattr_setrobust(
arg1: *mut pthread_mutexattr_t,
arg2: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn pthread_mutexattr_settype(
arg1: *mut pthread_mutexattr_t,
arg2: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn pthread_condattr_init(arg1: *mut pthread_condattr_t) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn pthread_condattr_destroy(arg1: *mut pthread_condattr_t) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn pthread_condattr_setclock(
arg1: *mut pthread_condattr_t,
arg2: clockid_t,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn pthread_condattr_setpshared(
arg1: *mut pthread_condattr_t,
arg2: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn pthread_condattr_getclock(
arg1: *const pthread_condattr_t,
arg2: *mut clockid_t,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn pthread_condattr_getpshared(
arg1: *const pthread_condattr_t,
arg2: *mut ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn pthread_rwlockattr_init(arg1: *mut pthread_rwlockattr_t) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn pthread_rwlockattr_destroy(arg1: *mut pthread_rwlockattr_t) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn pthread_rwlockattr_setpshared(
arg1: *mut pthread_rwlockattr_t,
arg2: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn pthread_rwlockattr_getpshared(
arg1: *const pthread_rwlockattr_t,
arg2: *mut ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn pthread_barrierattr_destroy(arg1: *mut pthread_barrierattr_t) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn pthread_barrierattr_getpshared(
arg1: *const pthread_barrierattr_t,
arg2: *mut ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn pthread_barrierattr_init(arg1: *mut pthread_barrierattr_t) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn pthread_barrierattr_setpshared(
arg1: *mut pthread_barrierattr_t,
arg2: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn pthread_atfork(
arg1: ::std::option::Option<unsafe extern "C" fn()>,
arg2: ::std::option::Option<unsafe extern "C" fn()>,
arg3: ::std::option::Option<unsafe extern "C" fn()>,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn pthread_getconcurrency() -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn pthread_setconcurrency(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn pthread_getcpuclockid(arg1: pthread_t, arg2: *mut clockid_t) -> ::std::os::raw::c_int;
}
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct __ptcb {
pub __f: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>,
pub __x: *mut ::std::os::raw::c_void,
pub __next: *mut __ptcb,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of __ptcb"][::std::mem::size_of::<__ptcb>() - 24usize];
["Alignment of __ptcb"][::std::mem::align_of::<__ptcb>() - 8usize];
["Offset of field: __ptcb::__f"][::std::mem::offset_of!(__ptcb, __f) - 0usize];
["Offset of field: __ptcb::__x"][::std::mem::offset_of!(__ptcb, __x) - 8usize];
["Offset of field: __ptcb::__next"][::std::mem::offset_of!(__ptcb, __next) - 16usize];
};
unsafe extern "C" {
pub fn _pthread_cleanup_push(
arg1: *mut __ptcb,
arg2: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>,
arg3: *mut ::std::os::raw::c_void,
);
}
unsafe extern "C" {
pub fn _pthread_cleanup_pop(arg1: *mut __ptcb, arg2: ::std::os::raw::c_int);
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct GStaticMutex {
pub mutex: *mut GMutex,
pub unused: pthread_mutex_t,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of GStaticMutex"][::std::mem::size_of::<GStaticMutex>() - 48usize];
["Alignment of GStaticMutex"][::std::mem::align_of::<GStaticMutex>() - 8usize];
["Offset of field: GStaticMutex::mutex"][::std::mem::offset_of!(GStaticMutex, mutex) - 0usize];
["Offset of field: GStaticMutex::unused"]
[::std::mem::offset_of!(GStaticMutex, unused) - 8usize];
};
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
)
}
}
unsafe extern "C" {
pub fn g_static_mutex_init(mutex: *mut GStaticMutex);
}
unsafe extern "C" {
pub fn g_static_mutex_free(mutex: *mut GStaticMutex);
}
unsafe 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,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GStaticRecMutex__bindgen_ty_1"]
[::std::mem::size_of::<_GStaticRecMutex__bindgen_ty_1>() - 8usize];
["Alignment of _GStaticRecMutex__bindgen_ty_1"]
[::std::mem::align_of::<_GStaticRecMutex__bindgen_ty_1>() - 8usize];
["Offset of field: _GStaticRecMutex__bindgen_ty_1::owner"]
[::std::mem::offset_of!(_GStaticRecMutex__bindgen_ty_1, owner) - 0usize];
["Offset of field: _GStaticRecMutex__bindgen_ty_1::dummy"]
[::std::mem::offset_of!(_GStaticRecMutex__bindgen_ty_1, dummy) - 0usize];
};
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 }}")
}
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GStaticRecMutex"][::std::mem::size_of::<_GStaticRecMutex>() - 64usize];
["Alignment of _GStaticRecMutex"][::std::mem::align_of::<_GStaticRecMutex>() - 8usize];
["Offset of field: _GStaticRecMutex::mutex"]
[::std::mem::offset_of!(_GStaticRecMutex, mutex) - 0usize];
["Offset of field: _GStaticRecMutex::depth"]
[::std::mem::offset_of!(_GStaticRecMutex, depth) - 48usize];
["Offset of field: _GStaticRecMutex::unused"]
[::std::mem::offset_of!(_GStaticRecMutex, unused) - 56usize];
};
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
)
}
}
unsafe extern "C" {
pub fn g_static_rec_mutex_init(mutex: *mut GStaticRecMutex);
}
unsafe extern "C" {
pub fn g_static_rec_mutex_lock(mutex: *mut GStaticRecMutex);
}
unsafe extern "C" {
pub fn g_static_rec_mutex_trylock(mutex: *mut GStaticRecMutex) -> gboolean;
}
unsafe extern "C" {
pub fn g_static_rec_mutex_unlock(mutex: *mut GStaticRecMutex);
}
unsafe extern "C" {
pub fn g_static_rec_mutex_lock_full(mutex: *mut GStaticRecMutex, depth: guint);
}
unsafe extern "C" {
pub fn g_static_rec_mutex_unlock_full(mutex: *mut GStaticRecMutex) -> guint;
}
unsafe 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,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GStaticRWLock"][::std::mem::size_of::<_GStaticRWLock>() - 80usize];
["Alignment of _GStaticRWLock"][::std::mem::align_of::<_GStaticRWLock>() - 8usize];
["Offset of field: _GStaticRWLock::mutex"]
[::std::mem::offset_of!(_GStaticRWLock, mutex) - 0usize];
["Offset of field: _GStaticRWLock::read_cond"]
[::std::mem::offset_of!(_GStaticRWLock, read_cond) - 48usize];
["Offset of field: _GStaticRWLock::write_cond"]
[::std::mem::offset_of!(_GStaticRWLock, write_cond) - 56usize];
["Offset of field: _GStaticRWLock::read_counter"]
[::std::mem::offset_of!(_GStaticRWLock, read_counter) - 64usize];
["Offset of field: _GStaticRWLock::have_writer"]
[::std::mem::offset_of!(_GStaticRWLock, have_writer) - 68usize];
["Offset of field: _GStaticRWLock::want_to_read"]
[::std::mem::offset_of!(_GStaticRWLock, want_to_read) - 72usize];
["Offset of field: _GStaticRWLock::want_to_write"]
[::std::mem::offset_of!(_GStaticRWLock, want_to_write) - 76usize];
};
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
)
}
}
unsafe extern "C" {
pub fn g_static_rw_lock_init(lock: *mut GStaticRWLock);
}
unsafe extern "C" {
pub fn g_static_rw_lock_reader_lock(lock: *mut GStaticRWLock);
}
unsafe extern "C" {
pub fn g_static_rw_lock_reader_trylock(lock: *mut GStaticRWLock) -> gboolean;
}
unsafe extern "C" {
pub fn g_static_rw_lock_reader_unlock(lock: *mut GStaticRWLock);
}
unsafe extern "C" {
pub fn g_static_rw_lock_writer_lock(lock: *mut GStaticRWLock);
}
unsafe extern "C" {
pub fn g_static_rw_lock_writer_trylock(lock: *mut GStaticRWLock) -> gboolean;
}
unsafe extern "C" {
pub fn g_static_rw_lock_writer_unlock(lock: *mut GStaticRWLock);
}
unsafe extern "C" {
pub fn g_static_rw_lock_free(lock: *mut GStaticRWLock);
}
unsafe extern "C" {
pub fn g_private_new(notify: GDestroyNotify) -> *mut GPrivate;
}
pub type GStaticPrivate = _GStaticPrivate;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GStaticPrivate {
pub index: guint,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GStaticPrivate"][::std::mem::size_of::<_GStaticPrivate>() - 4usize];
["Alignment of _GStaticPrivate"][::std::mem::align_of::<_GStaticPrivate>() - 4usize];
["Offset of field: _GStaticPrivate::index"]
[::std::mem::offset_of!(_GStaticPrivate, index) - 0usize];
};
unsafe extern "C" {
pub fn g_static_private_init(private_key: *mut GStaticPrivate);
}
unsafe extern "C" {
pub fn g_static_private_get(private_key: *mut GStaticPrivate) -> gpointer;
}
unsafe extern "C" {
pub fn g_static_private_set(
private_key: *mut GStaticPrivate,
data: gpointer,
notify: GDestroyNotify,
);
}
unsafe extern "C" {
pub fn g_static_private_free(private_key: *mut GStaticPrivate);
}
unsafe extern "C" {
pub fn g_once_init_enter_impl(location: *mut gsize) -> gboolean;
}
unsafe extern "C" {
pub fn g_thread_init(vtable: gpointer);
}
unsafe extern "C" {
pub fn g_thread_init_with_errorcheck_mutexes(vtable: gpointer);
}
unsafe extern "C" {
pub fn g_thread_get_initialized() -> gboolean;
}
unsafe extern "C" {
pub static mut g_threads_got_initialized: gboolean;
}
unsafe extern "C" {
pub fn g_mutex_new() -> *mut GMutex;
}
unsafe extern "C" {
pub fn g_mutex_free(mutex: *mut GMutex);
}
unsafe extern "C" {
pub fn g_cond_new() -> *mut GCond;
}
unsafe extern "C" {
pub fn g_cond_free(cond: *mut GCond);
}
unsafe extern "C" {
pub fn g_cond_timed_wait(
cond: *mut GCond,
mutex: *mut GMutex,
abs_time: *mut GTimeVal,
) -> gboolean;
}
pub type GAsyncQueue_autoptr = *mut GAsyncQueue;
pub type GAsyncQueue_listautoptr = *mut GList;
pub type GAsyncQueue_slistautoptr = *mut GSList;
pub type GAsyncQueue_queueautoptr = *mut GQueue;
pub type GBookmarkFile_autoptr = *mut GBookmarkFile;
pub type GBookmarkFile_listautoptr = *mut GList;
pub type GBookmarkFile_slistautoptr = *mut GSList;
pub type GBookmarkFile_queueautoptr = *mut GQueue;
pub type GBytes_autoptr = *mut GBytes;
pub type GBytes_listautoptr = *mut GList;
pub type GBytes_slistautoptr = *mut GSList;
pub type GBytes_queueautoptr = *mut GQueue;
pub type GChecksum_autoptr = *mut GChecksum;
pub type GChecksum_listautoptr = *mut GList;
pub type GChecksum_slistautoptr = *mut GSList;
pub type GChecksum_queueautoptr = *mut GQueue;
pub type GDateTime_autoptr = *mut GDateTime;
pub type GDateTime_listautoptr = *mut GList;
pub type GDateTime_slistautoptr = *mut GSList;
pub type GDateTime_queueautoptr = *mut GQueue;
pub type GDate_autoptr = *mut GDate;
pub type GDate_listautoptr = *mut GList;
pub type GDate_slistautoptr = *mut GSList;
pub type GDate_queueautoptr = *mut GQueue;
pub type GDir_autoptr = *mut GDir;
pub type GDir_listautoptr = *mut GList;
pub type GDir_slistautoptr = *mut GSList;
pub type GDir_queueautoptr = *mut GQueue;
pub type GError_autoptr = *mut GError;
pub type GError_listautoptr = *mut GList;
pub type GError_slistautoptr = *mut GSList;
pub type GError_queueautoptr = *mut GQueue;
pub type GHashTable_autoptr = *mut GHashTable;
pub type GHashTable_listautoptr = *mut GList;
pub type GHashTable_slistautoptr = *mut GSList;
pub type GHashTable_queueautoptr = *mut GQueue;
pub type GHmac_autoptr = *mut GHmac;
pub type GHmac_listautoptr = *mut GList;
pub type GHmac_slistautoptr = *mut GSList;
pub type GHmac_queueautoptr = *mut GQueue;
pub type GIOChannel_autoptr = *mut GIOChannel;
pub type GIOChannel_listautoptr = *mut GList;
pub type GIOChannel_slistautoptr = *mut GSList;
pub type GIOChannel_queueautoptr = *mut GQueue;
pub type GKeyFile_autoptr = *mut GKeyFile;
pub type GKeyFile_listautoptr = *mut GList;
pub type GKeyFile_slistautoptr = *mut GSList;
pub type GKeyFile_queueautoptr = *mut GQueue;
pub type GList_autoptr = *mut GList;
pub type GList_listautoptr = *mut GList;
pub type GList_slistautoptr = *mut GSList;
pub type GList_queueautoptr = *mut GQueue;
pub type GArray_autoptr = *mut GArray;
pub type GArray_listautoptr = *mut GList;
pub type GArray_slistautoptr = *mut GSList;
pub type GArray_queueautoptr = *mut GQueue;
pub type GPtrArray_autoptr = *mut GPtrArray;
pub type GPtrArray_listautoptr = *mut GList;
pub type GPtrArray_slistautoptr = *mut GSList;
pub type GPtrArray_queueautoptr = *mut GQueue;
pub type GByteArray_autoptr = *mut GByteArray;
pub type GByteArray_listautoptr = *mut GList;
pub type GByteArray_slistautoptr = *mut GSList;
pub type GByteArray_queueautoptr = *mut GQueue;
pub type GMainContext_autoptr = *mut GMainContext;
pub type GMainContext_listautoptr = *mut GList;
pub type GMainContext_slistautoptr = *mut GSList;
pub type GMainContext_queueautoptr = *mut GQueue;
pub type GMainContextPusher_autoptr = *mut GMainContextPusher;
pub type GMainContextPusher_listautoptr = *mut GList;
pub type GMainContextPusher_slistautoptr = *mut GSList;
pub type GMainContextPusher_queueautoptr = *mut GQueue;
pub type GMainLoop_autoptr = *mut GMainLoop;
pub type GMainLoop_listautoptr = *mut GList;
pub type GMainLoop_slistautoptr = *mut GSList;
pub type GMainLoop_queueautoptr = *mut GQueue;
pub type GSource_autoptr = *mut GSource;
pub type GSource_listautoptr = *mut GList;
pub type GSource_slistautoptr = *mut GSList;
pub type GSource_queueautoptr = *mut GQueue;
pub type GMappedFile_autoptr = *mut GMappedFile;
pub type GMappedFile_listautoptr = *mut GList;
pub type GMappedFile_slistautoptr = *mut GSList;
pub type GMappedFile_queueautoptr = *mut GQueue;
pub type GMarkupParseContext_autoptr = *mut GMarkupParseContext;
pub type GMarkupParseContext_listautoptr = *mut GList;
pub type GMarkupParseContext_slistautoptr = *mut GSList;
pub type GMarkupParseContext_queueautoptr = *mut GQueue;
pub type GNode_autoptr = *mut GNode;
pub type GNode_listautoptr = *mut GList;
pub type GNode_slistautoptr = *mut GSList;
pub type GNode_queueautoptr = *mut GQueue;
pub type GOptionContext_autoptr = *mut GOptionContext;
pub type GOptionContext_listautoptr = *mut GList;
pub type GOptionContext_slistautoptr = *mut GSList;
pub type GOptionContext_queueautoptr = *mut GQueue;
pub type GOptionGroup_autoptr = *mut GOptionGroup;
pub type GOptionGroup_listautoptr = *mut GList;
pub type GOptionGroup_slistautoptr = *mut GSList;
pub type GOptionGroup_queueautoptr = *mut GQueue;
pub type GPatternSpec_autoptr = *mut GPatternSpec;
pub type GPatternSpec_listautoptr = *mut GList;
pub type GPatternSpec_slistautoptr = *mut GSList;
pub type GPatternSpec_queueautoptr = *mut GQueue;
pub type GQueue_autoptr = *mut GQueue;
pub type GQueue_listautoptr = *mut GList;
pub type GQueue_slistautoptr = *mut GSList;
pub type GQueue_queueautoptr = *mut GQueue;
pub type GRand_autoptr = *mut GRand;
pub type GRand_listautoptr = *mut GList;
pub type GRand_slistautoptr = *mut GSList;
pub type GRand_queueautoptr = *mut GQueue;
pub type GRegex_autoptr = *mut GRegex;
pub type GRegex_listautoptr = *mut GList;
pub type GRegex_slistautoptr = *mut GSList;
pub type GRegex_queueautoptr = *mut GQueue;
pub type GMatchInfo_autoptr = *mut GMatchInfo;
pub type GMatchInfo_listautoptr = *mut GList;
pub type GMatchInfo_slistautoptr = *mut GSList;
pub type GMatchInfo_queueautoptr = *mut GQueue;
pub type GScanner_autoptr = *mut GScanner;
pub type GScanner_listautoptr = *mut GList;
pub type GScanner_slistautoptr = *mut GSList;
pub type GScanner_queueautoptr = *mut GQueue;
pub type GSequence_autoptr = *mut GSequence;
pub type GSequence_listautoptr = *mut GList;
pub type GSequence_slistautoptr = *mut GSList;
pub type GSequence_queueautoptr = *mut GQueue;
pub type GSList_autoptr = *mut GSList;
pub type GSList_listautoptr = *mut GList;
pub type GSList_slistautoptr = *mut GSList;
pub type GSList_queueautoptr = *mut GQueue;
pub type GString_autoptr = *mut GString;
pub type GString_listautoptr = *mut GList;
pub type GString_slistautoptr = *mut GSList;
pub type GString_queueautoptr = *mut GQueue;
pub type GStringChunk_autoptr = *mut GStringChunk;
pub type GStringChunk_listautoptr = *mut GList;
pub type GStringChunk_slistautoptr = *mut GSList;
pub type GStringChunk_queueautoptr = *mut GQueue;
pub type GStrvBuilder_autoptr = *mut GStrvBuilder;
pub type GStrvBuilder_listautoptr = *mut GList;
pub type GStrvBuilder_slistautoptr = *mut GSList;
pub type GStrvBuilder_queueautoptr = *mut GQueue;
pub type GThread_autoptr = *mut GThread;
pub type GThread_listautoptr = *mut GList;
pub type GThread_slistautoptr = *mut GSList;
pub type GThread_queueautoptr = *mut GQueue;
pub type GMutexLocker_autoptr = *mut GMutexLocker;
pub type GMutexLocker_listautoptr = *mut GList;
pub type GMutexLocker_slistautoptr = *mut GSList;
pub type GMutexLocker_queueautoptr = *mut GQueue;
pub type GRecMutexLocker_autoptr = *mut GRecMutexLocker;
pub type GRecMutexLocker_listautoptr = *mut GList;
pub type GRecMutexLocker_slistautoptr = *mut GSList;
pub type GRecMutexLocker_queueautoptr = *mut GQueue;
pub type GRWLockWriterLocker_autoptr = *mut GRWLockWriterLocker;
pub type GRWLockWriterLocker_listautoptr = *mut GList;
pub type GRWLockWriterLocker_slistautoptr = *mut GSList;
pub type GRWLockWriterLocker_queueautoptr = *mut GQueue;
pub type GRWLockReaderLocker_autoptr = *mut GRWLockReaderLocker;
pub type GRWLockReaderLocker_listautoptr = *mut GList;
pub type GRWLockReaderLocker_slistautoptr = *mut GSList;
pub type GRWLockReaderLocker_queueautoptr = *mut GQueue;
pub type GTimer_autoptr = *mut GTimer;
pub type GTimer_listautoptr = *mut GList;
pub type GTimer_slistautoptr = *mut GSList;
pub type GTimer_queueautoptr = *mut GQueue;
pub type GTimeZone_autoptr = *mut GTimeZone;
pub type GTimeZone_listautoptr = *mut GList;
pub type GTimeZone_slistautoptr = *mut GSList;
pub type GTimeZone_queueautoptr = *mut GQueue;
pub type GTree_autoptr = *mut GTree;
pub type GTree_listautoptr = *mut GList;
pub type GTree_slistautoptr = *mut GSList;
pub type GTree_queueautoptr = *mut GQueue;
pub type GVariant_autoptr = *mut GVariant;
pub type GVariant_listautoptr = *mut GList;
pub type GVariant_slistautoptr = *mut GSList;
pub type GVariant_queueautoptr = *mut GQueue;
pub type GVariantBuilder_autoptr = *mut GVariantBuilder;
pub type GVariantBuilder_listautoptr = *mut GList;
pub type GVariantBuilder_slistautoptr = *mut GSList;
pub type GVariantBuilder_queueautoptr = *mut GQueue;
pub type GVariantIter_autoptr = *mut GVariantIter;
pub type GVariantIter_listautoptr = *mut GList;
pub type GVariantIter_slistautoptr = *mut GSList;
pub type GVariantIter_queueautoptr = *mut GQueue;
pub type GVariantDict_autoptr = *mut GVariantDict;
pub type GVariantDict_listautoptr = *mut GList;
pub type GVariantDict_slistautoptr = *mut GSList;
pub type GVariantDict_queueautoptr = *mut GQueue;
pub type GVariantType_autoptr = *mut GVariantType;
pub type GVariantType_listautoptr = *mut GList;
pub type GVariantType_slistautoptr = *mut GSList;
pub type GVariantType_queueautoptr = *mut GQueue;
pub type GRefString_autoptr = *mut GRefString;
pub type GRefString_listautoptr = *mut GList;
pub type GRefString_slistautoptr = *mut GSList;
pub type GRefString_queueautoptr = *mut GQueue;
pub type GUri_autoptr = *mut GUri;
pub type GUri_listautoptr = *mut GList;
pub type GUri_slistautoptr = *mut GSList;
pub type GUri_queueautoptr = *mut GQueue;
pub type GPathBuf_autoptr = *mut GPathBuf;
pub type GPathBuf_listautoptr = *mut GList;
pub type GPathBuf_slistautoptr = *mut GSList;
pub type GPathBuf_queueautoptr = *mut GQueue;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _IO_FILE {
_unused: [u8; 0],
}
pub type FILE = _IO_FILE;
pub type __isoc_va_list = __BindgenOpaqueArray<u64, 4usize>;
#[repr(C)]
#[derive(Copy, Clone)]
pub union _G_fpos64_t {
pub __opaque: [::std::os::raw::c_char; 16usize],
pub __lldata: ::std::os::raw::c_longlong,
pub __align: f64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _G_fpos64_t"][::std::mem::size_of::<_G_fpos64_t>() - 16usize];
["Alignment of _G_fpos64_t"][::std::mem::align_of::<_G_fpos64_t>() - 8usize];
["Offset of field: _G_fpos64_t::__opaque"]
[::std::mem::offset_of!(_G_fpos64_t, __opaque) - 0usize];
["Offset of field: _G_fpos64_t::__lldata"]
[::std::mem::offset_of!(_G_fpos64_t, __lldata) - 0usize];
["Offset of field: _G_fpos64_t::__align"]
[::std::mem::offset_of!(_G_fpos64_t, __align) - 0usize];
};
impl ::std::fmt::Debug for _G_fpos64_t {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
write!(f, "_G_fpos64_t {{ union }}")
}
}
pub type fpos_t = _G_fpos64_t;
unsafe extern "C" {
pub static stdin: *mut FILE;
}
unsafe extern "C" {
pub static stdout: *mut FILE;
}
unsafe extern "C" {
pub static stderr: *mut FILE;
}
unsafe extern "C" {
pub fn fopen(
arg1: *const ::std::os::raw::c_char,
arg2: *const ::std::os::raw::c_char,
) -> *mut FILE;
}
unsafe extern "C" {
pub fn freopen(
arg1: *const ::std::os::raw::c_char,
arg2: *const ::std::os::raw::c_char,
arg3: *mut FILE,
) -> *mut FILE;
}
unsafe extern "C" {
pub fn fclose(arg1: *mut FILE) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn remove(arg1: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn rename(
arg1: *const ::std::os::raw::c_char,
arg2: *const ::std::os::raw::c_char,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn feof(arg1: *mut FILE) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn ferror(arg1: *mut FILE) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn fflush(arg1: *mut FILE) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn clearerr(arg1: *mut FILE);
}
unsafe extern "C" {
pub fn fseek(
arg1: *mut FILE,
arg2: ::std::os::raw::c_long,
arg3: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn ftell(arg1: *mut FILE) -> ::std::os::raw::c_long;
}
unsafe extern "C" {
pub fn rewind(arg1: *mut FILE);
}
unsafe extern "C" {
pub fn fgetpos(arg1: *mut FILE, arg2: *mut fpos_t) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn fsetpos(arg1: *mut FILE, arg2: *const fpos_t) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn fread(
arg1: *mut ::std::os::raw::c_void,
arg2: ::std::os::raw::c_ulong,
arg3: ::std::os::raw::c_ulong,
arg4: *mut FILE,
) -> ::std::os::raw::c_ulong;
}
unsafe extern "C" {
pub fn fwrite(
arg1: *const ::std::os::raw::c_void,
arg2: ::std::os::raw::c_ulong,
arg3: ::std::os::raw::c_ulong,
arg4: *mut FILE,
) -> ::std::os::raw::c_ulong;
}
unsafe extern "C" {
pub fn fgetc(arg1: *mut FILE) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn getc(arg1: *mut FILE) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn getchar() -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn ungetc(arg1: ::std::os::raw::c_int, arg2: *mut FILE) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn fputc(arg1: ::std::os::raw::c_int, arg2: *mut FILE) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn putc(arg1: ::std::os::raw::c_int, arg2: *mut FILE) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn putchar(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn fgets(
arg1: *mut ::std::os::raw::c_char,
arg2: ::std::os::raw::c_int,
arg3: *mut FILE,
) -> *mut ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn fputs(arg1: *const ::std::os::raw::c_char, arg2: *mut FILE) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn puts(arg1: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn printf(arg1: *const ::std::os::raw::c_char, ...) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn fprintf(
arg1: *mut FILE,
arg2: *const ::std::os::raw::c_char,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn sprintf(
arg1: *mut ::std::os::raw::c_char,
arg2: *const ::std::os::raw::c_char,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn snprintf(
arg1: *mut ::std::os::raw::c_char,
arg2: ::std::os::raw::c_ulong,
arg3: *const ::std::os::raw::c_char,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vprintf(
arg1: *const ::std::os::raw::c_char,
arg2: __BindgenOpaqueArray<u64, 4usize>,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vfprintf(
arg1: *mut FILE,
arg2: *const ::std::os::raw::c_char,
arg3: __BindgenOpaqueArray<u64, 4usize>,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vsprintf(
arg1: *mut ::std::os::raw::c_char,
arg2: *const ::std::os::raw::c_char,
arg3: __BindgenOpaqueArray<u64, 4usize>,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vsnprintf(
arg1: *mut ::std::os::raw::c_char,
arg2: ::std::os::raw::c_ulong,
arg3: *const ::std::os::raw::c_char,
arg4: __BindgenOpaqueArray<u64, 4usize>,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn scanf(arg1: *const ::std::os::raw::c_char, ...) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn fscanf(
arg1: *mut FILE,
arg2: *const ::std::os::raw::c_char,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn sscanf(
arg1: *const ::std::os::raw::c_char,
arg2: *const ::std::os::raw::c_char,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vscanf(
arg1: *const ::std::os::raw::c_char,
arg2: __BindgenOpaqueArray<u64, 4usize>,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vfscanf(
arg1: *mut FILE,
arg2: *const ::std::os::raw::c_char,
arg3: __BindgenOpaqueArray<u64, 4usize>,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vsscanf(
arg1: *const ::std::os::raw::c_char,
arg2: *const ::std::os::raw::c_char,
arg3: __BindgenOpaqueArray<u64, 4usize>,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn perror(arg1: *const ::std::os::raw::c_char);
}
unsafe extern "C" {
pub fn setvbuf(
arg1: *mut FILE,
arg2: *mut ::std::os::raw::c_char,
arg3: ::std::os::raw::c_int,
arg4: size_t,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn setbuf(arg1: *mut FILE, arg2: *mut ::std::os::raw::c_char);
}
unsafe extern "C" {
pub fn tmpnam(arg1: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn tmpfile() -> *mut FILE;
}
unsafe extern "C" {
pub fn fmemopen(
arg1: *mut ::std::os::raw::c_void,
arg2: size_t,
arg3: *const ::std::os::raw::c_char,
) -> *mut FILE;
}
unsafe extern "C" {
pub fn open_memstream(arg1: *mut *mut ::std::os::raw::c_char, arg2: *mut size_t) -> *mut FILE;
}
unsafe extern "C" {
pub fn fdopen(arg1: ::std::os::raw::c_int, arg2: *const ::std::os::raw::c_char) -> *mut FILE;
}
unsafe extern "C" {
pub fn popen(
arg1: *const ::std::os::raw::c_char,
arg2: *const ::std::os::raw::c_char,
) -> *mut FILE;
}
unsafe extern "C" {
pub fn pclose(arg1: *mut FILE) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn fileno(arg1: *mut FILE) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn fseeko(
arg1: *mut FILE,
arg2: off_t,
arg3: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn ftello(arg1: *mut FILE) -> off_t;
}
unsafe extern "C" {
pub fn dprintf(
arg1: ::std::os::raw::c_int,
arg2: *const ::std::os::raw::c_char,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vdprintf(
arg1: ::std::os::raw::c_int,
arg2: *const ::std::os::raw::c_char,
arg3: __isoc_va_list,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn flockfile(arg1: *mut FILE);
}
unsafe extern "C" {
pub fn ftrylockfile(arg1: *mut FILE) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn funlockfile(arg1: *mut FILE);
}
unsafe extern "C" {
pub fn getc_unlocked(arg1: *mut FILE) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn getchar_unlocked() -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn putc_unlocked(arg1: ::std::os::raw::c_int, arg2: *mut FILE) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn putchar_unlocked(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn getdelim(
arg1: *mut *mut ::std::os::raw::c_char,
arg2: *mut size_t,
arg3: ::std::os::raw::c_int,
arg4: *mut FILE,
) -> ssize_t;
}
unsafe extern "C" {
pub fn getline(
arg1: *mut *mut ::std::os::raw::c_char,
arg2: *mut size_t,
arg3: *mut FILE,
) -> ssize_t;
}
unsafe extern "C" {
pub fn renameat(
arg1: ::std::os::raw::c_int,
arg2: *const ::std::os::raw::c_char,
arg3: ::std::os::raw::c_int,
arg4: *const ::std::os::raw::c_char,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn ctermid(arg1: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn tempnam(
arg1: *const ::std::os::raw::c_char,
arg2: *const ::std::os::raw::c_char,
) -> *mut ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn cuserid(arg1: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn setlinebuf(arg1: *mut FILE);
}
unsafe extern "C" {
pub fn setbuffer(arg1: *mut FILE, arg2: *mut ::std::os::raw::c_char, arg3: size_t);
}
unsafe extern "C" {
pub fn fgetc_unlocked(arg1: *mut FILE) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn fputc_unlocked(arg1: ::std::os::raw::c_int, arg2: *mut FILE) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn fflush_unlocked(arg1: *mut FILE) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn fread_unlocked(
arg1: *mut ::std::os::raw::c_void,
arg2: size_t,
arg3: size_t,
arg4: *mut FILE,
) -> size_t;
}
unsafe extern "C" {
pub fn fwrite_unlocked(
arg1: *const ::std::os::raw::c_void,
arg2: size_t,
arg3: size_t,
arg4: *mut FILE,
) -> size_t;
}
unsafe extern "C" {
pub fn clearerr_unlocked(arg1: *mut FILE);
}
unsafe extern "C" {
pub fn feof_unlocked(arg1: *mut FILE) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn ferror_unlocked(arg1: *mut FILE) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn fileno_unlocked(arg1: *mut FILE) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn getw(arg1: *mut FILE) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn putw(arg1: ::std::os::raw::c_int, arg2: *mut FILE) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn fgetln(arg1: *mut FILE, arg2: *mut size_t) -> *mut ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn asprintf(
arg1: *mut *mut ::std::os::raw::c_char,
arg2: *const ::std::os::raw::c_char,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vasprintf(
arg1: *mut *mut ::std::os::raw::c_char,
arg2: *const ::std::os::raw::c_char,
arg3: __isoc_va_list,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn g_printf(format: *const gchar, ...) -> gint;
}
unsafe extern "C" {
pub fn g_fprintf(file: *mut FILE, format: *const gchar, ...) -> gint;
}
unsafe extern "C" {
pub fn g_sprintf(string: *mut gchar, format: *const gchar, ...) -> gint;
}
unsafe extern "C" {
pub fn g_vprintf(format: *const gchar, args: va_list) -> gint;
}
unsafe extern "C" {
pub fn g_vfprintf(file: *mut FILE, format: *const gchar, args: va_list) -> gint;
}
unsafe extern "C" {
pub fn g_vsprintf(string: *mut gchar, format: *const gchar, args: va_list) -> gint;
}
unsafe extern "C" {
pub fn g_vasprintf(string: *mut *mut gchar, format: *const gchar, args: va_list) -> gint;
}
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct stat {
pub st_dev: dev_t,
pub st_ino: ino_t,
pub st_mode: mode_t,
pub st_nlink: nlink_t,
pub st_uid: uid_t,
pub st_gid: gid_t,
pub st_rdev: dev_t,
pub __pad: ::std::os::raw::c_ulong,
pub st_size: off_t,
pub st_blksize: blksize_t,
pub __pad2: ::std::os::raw::c_int,
pub st_blocks: blkcnt_t,
pub st_atim: timespec,
pub st_mtim: timespec,
pub st_ctim: timespec,
pub __unused: [::std::os::raw::c_uint; 2usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of stat"][::std::mem::size_of::<stat>() - 128usize];
["Alignment of stat"][::std::mem::align_of::<stat>() - 8usize];
["Offset of field: stat::st_dev"][::std::mem::offset_of!(stat, st_dev) - 0usize];
["Offset of field: stat::st_ino"][::std::mem::offset_of!(stat, st_ino) - 8usize];
["Offset of field: stat::st_mode"][::std::mem::offset_of!(stat, st_mode) - 16usize];
["Offset of field: stat::st_nlink"][::std::mem::offset_of!(stat, st_nlink) - 20usize];
["Offset of field: stat::st_uid"][::std::mem::offset_of!(stat, st_uid) - 24usize];
["Offset of field: stat::st_gid"][::std::mem::offset_of!(stat, st_gid) - 28usize];
["Offset of field: stat::st_rdev"][::std::mem::offset_of!(stat, st_rdev) - 32usize];
["Offset of field: stat::__pad"][::std::mem::offset_of!(stat, __pad) - 40usize];
["Offset of field: stat::st_size"][::std::mem::offset_of!(stat, st_size) - 48usize];
["Offset of field: stat::st_blksize"][::std::mem::offset_of!(stat, st_blksize) - 56usize];
["Offset of field: stat::__pad2"][::std::mem::offset_of!(stat, __pad2) - 60usize];
["Offset of field: stat::st_blocks"][::std::mem::offset_of!(stat, st_blocks) - 64usize];
["Offset of field: stat::st_atim"][::std::mem::offset_of!(stat, st_atim) - 72usize];
["Offset of field: stat::st_mtim"][::std::mem::offset_of!(stat, st_mtim) - 88usize];
["Offset of field: stat::st_ctim"][::std::mem::offset_of!(stat, st_ctim) - 104usize];
["Offset of field: stat::__unused"][::std::mem::offset_of!(stat, __unused) - 120usize];
};
unsafe extern "C" {
pub fn stat(arg1: *const ::std::os::raw::c_char, arg2: *mut stat) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn fstat(arg1: ::std::os::raw::c_int, arg2: *mut stat) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn lstat(arg1: *const ::std::os::raw::c_char, arg2: *mut stat) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn fstatat(
arg1: ::std::os::raw::c_int,
arg2: *const ::std::os::raw::c_char,
arg3: *mut stat,
arg4: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn chmod(arg1: *const ::std::os::raw::c_char, arg2: mode_t) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn fchmod(arg1: ::std::os::raw::c_int, arg2: mode_t) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn fchmodat(
arg1: ::std::os::raw::c_int,
arg2: *const ::std::os::raw::c_char,
arg3: mode_t,
arg4: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn umask(arg1: mode_t) -> mode_t;
}
unsafe extern "C" {
pub fn mkdir(arg1: *const ::std::os::raw::c_char, arg2: mode_t) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn mkfifo(arg1: *const ::std::os::raw::c_char, arg2: mode_t) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn mkdirat(
arg1: ::std::os::raw::c_int,
arg2: *const ::std::os::raw::c_char,
arg3: mode_t,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn mkfifoat(
arg1: ::std::os::raw::c_int,
arg2: *const ::std::os::raw::c_char,
arg3: mode_t,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn mknod(
arg1: *const ::std::os::raw::c_char,
arg2: mode_t,
arg3: dev_t,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn mknodat(
arg1: ::std::os::raw::c_int,
arg2: *const ::std::os::raw::c_char,
arg3: mode_t,
arg4: dev_t,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn futimens(arg1: ::std::os::raw::c_int, arg2: *const timespec) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn utimensat(
arg1: ::std::os::raw::c_int,
arg2: *const ::std::os::raw::c_char,
arg3: *const timespec,
arg4: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn lchmod(arg1: *const ::std::os::raw::c_char, arg2: mode_t) -> ::std::os::raw::c_int;
}
pub type GStatBuf = stat;
unsafe extern "C" {
pub fn g_access(filename: *const gchar, mode: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn g_chdir(path: *const gchar) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn g_unlink(filename: *const gchar) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn g_rmdir(filename: *const gchar) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn g_close(fd: gint, error: *mut *mut GError) -> gboolean;
}
pub const GModuleFlags_G_MODULE_BIND_LAZY: GModuleFlags = 1;
pub const GModuleFlags_G_MODULE_BIND_LOCAL: GModuleFlags = 2;
pub const GModuleFlags_G_MODULE_BIND_MASK: GModuleFlags = 3;
pub type GModuleFlags = ::std::os::raw::c_uint;
#[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)>;
unsafe extern "C" {
pub fn g_module_error_quark() -> GQuark;
}
pub const GModuleError_G_MODULE_ERROR_FAILED: GModuleError = 0;
pub const GModuleError_G_MODULE_ERROR_CHECK_FAILED: GModuleError = 1;
pub type GModuleError = ::std::os::raw::c_uint;
unsafe extern "C" {
pub fn g_module_supported() -> gboolean;
}
unsafe extern "C" {
pub fn g_module_open(file_name: *const gchar, flags: GModuleFlags) -> *mut GModule;
}
unsafe extern "C" {
pub fn g_module_open_full(
file_name: *const gchar,
flags: GModuleFlags,
error: *mut *mut GError,
) -> *mut GModule;
}
unsafe extern "C" {
pub fn g_module_close(module: *mut GModule) -> gboolean;
}
unsafe extern "C" {
pub fn g_module_make_resident(module: *mut GModule);
}
unsafe extern "C" {
pub fn g_module_error() -> *const gchar;
}
unsafe extern "C" {
pub fn g_module_symbol(
module: *mut GModule,
symbol_name: *const gchar,
symbol: *mut gpointer,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_module_name(module: *mut GModule) -> *const gchar;
}
unsafe 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, PartialEq, Eq)]
pub struct _GTypeClass {
pub g_type: GType,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GTypeClass"][::std::mem::size_of::<_GTypeClass>() - 8usize];
["Alignment of _GTypeClass"][::std::mem::align_of::<_GTypeClass>() - 8usize];
["Offset of field: _GTypeClass::g_type"][::std::mem::offset_of!(_GTypeClass, g_type) - 0usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GTypeInstance {
pub g_class: *mut GTypeClass,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GTypeInstance"][::std::mem::size_of::<_GTypeInstance>() - 8usize];
["Alignment of _GTypeInstance"][::std::mem::align_of::<_GTypeInstance>() - 8usize];
["Offset of field: _GTypeInstance::g_class"]
[::std::mem::offset_of!(_GTypeInstance, g_class) - 0usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GTypeInterface {
pub g_type: GType,
pub g_instance_type: GType,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GTypeInterface"][::std::mem::size_of::<_GTypeInterface>() - 16usize];
["Alignment of _GTypeInterface"][::std::mem::align_of::<_GTypeInterface>() - 8usize];
["Offset of field: _GTypeInterface::g_type"]
[::std::mem::offset_of!(_GTypeInterface, g_type) - 0usize];
["Offset of field: _GTypeInterface::g_instance_type"]
[::std::mem::offset_of!(_GTypeInterface, g_instance_type) - 8usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GTypeQuery {
pub type_: GType,
pub type_name: *const gchar,
pub class_size: guint,
pub instance_size: guint,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GTypeQuery"][::std::mem::size_of::<_GTypeQuery>() - 24usize];
["Alignment of _GTypeQuery"][::std::mem::align_of::<_GTypeQuery>() - 8usize];
["Offset of field: _GTypeQuery::type_"][::std::mem::offset_of!(_GTypeQuery, type_) - 0usize];
["Offset of field: _GTypeQuery::type_name"]
[::std::mem::offset_of!(_GTypeQuery, type_name) - 8usize];
["Offset of field: _GTypeQuery::class_size"]
[::std::mem::offset_of!(_GTypeQuery, class_size) - 16usize];
["Offset of field: _GTypeQuery::instance_size"]
[::std::mem::offset_of!(_GTypeQuery, instance_size) - 20usize];
};
pub const GTypeDebugFlags_G_TYPE_DEBUG_NONE: GTypeDebugFlags = 0;
pub const GTypeDebugFlags_G_TYPE_DEBUG_OBJECTS: GTypeDebugFlags = 1;
pub const GTypeDebugFlags_G_TYPE_DEBUG_SIGNALS: GTypeDebugFlags = 2;
pub const GTypeDebugFlags_G_TYPE_DEBUG_INSTANCE_COUNT: GTypeDebugFlags = 4;
pub const GTypeDebugFlags_G_TYPE_DEBUG_MASK: GTypeDebugFlags = 7;
pub type GTypeDebugFlags = ::std::os::raw::c_uint;
unsafe extern "C" {
pub fn g_type_init();
}
unsafe extern "C" {
pub fn g_type_init_with_debug_flags(debug_flags: GTypeDebugFlags);
}
unsafe extern "C" {
pub fn g_type_name(type_: GType) -> *const gchar;
}
unsafe extern "C" {
pub fn g_type_qname(type_: GType) -> GQuark;
}
unsafe extern "C" {
pub fn g_type_from_name(name: *const gchar) -> GType;
}
unsafe extern "C" {
pub fn g_type_parent(type_: GType) -> GType;
}
unsafe extern "C" {
pub fn g_type_depth(type_: GType) -> guint;
}
unsafe extern "C" {
pub fn g_type_next_base(leaf_type: GType, root_type: GType) -> GType;
}
unsafe extern "C" {
pub fn g_type_is_a(type_: GType, is_a_type: GType) -> gboolean;
}
unsafe extern "C" {
pub fn g_type_class_get(type_: GType) -> gpointer;
}
unsafe extern "C" {
pub fn g_type_class_ref(type_: GType) -> gpointer;
}
unsafe extern "C" {
pub fn g_type_class_peek(type_: GType) -> gpointer;
}
unsafe extern "C" {
pub fn g_type_class_peek_static(type_: GType) -> gpointer;
}
unsafe extern "C" {
pub fn g_type_class_unref(g_class: gpointer);
}
unsafe extern "C" {
pub fn g_type_class_peek_parent(g_class: gpointer) -> gpointer;
}
unsafe extern "C" {
pub fn g_type_interface_peek(instance_class: gpointer, iface_type: GType) -> gpointer;
}
unsafe extern "C" {
pub fn g_type_interface_peek_parent(g_iface: gpointer) -> gpointer;
}
unsafe extern "C" {
pub fn g_type_default_interface_get(g_type: GType) -> gpointer;
}
unsafe extern "C" {
pub fn g_type_default_interface_ref(g_type: GType) -> gpointer;
}
unsafe extern "C" {
pub fn g_type_default_interface_peek(g_type: GType) -> gpointer;
}
unsafe extern "C" {
pub fn g_type_default_interface_unref(g_iface: gpointer);
}
unsafe extern "C" {
pub fn g_type_children(type_: GType, n_children: *mut guint) -> *mut GType;
}
unsafe extern "C" {
pub fn g_type_interfaces(type_: GType, n_interfaces: *mut guint) -> *mut GType;
}
unsafe extern "C" {
pub fn g_type_set_qdata(type_: GType, quark: GQuark, data: gpointer);
}
unsafe extern "C" {
pub fn g_type_get_qdata(type_: GType, quark: GQuark) -> gpointer;
}
unsafe extern "C" {
pub fn g_type_query(type_: GType, query: *mut GTypeQuery);
}
unsafe 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)>;
pub const GTypeFundamentalFlags_G_TYPE_FLAG_CLASSED: GTypeFundamentalFlags = 1;
pub const GTypeFundamentalFlags_G_TYPE_FLAG_INSTANTIATABLE: GTypeFundamentalFlags = 2;
pub const GTypeFundamentalFlags_G_TYPE_FLAG_DERIVABLE: GTypeFundamentalFlags = 4;
pub const GTypeFundamentalFlags_G_TYPE_FLAG_DEEP_DERIVABLE: GTypeFundamentalFlags = 8;
pub type GTypeFundamentalFlags = ::std::os::raw::c_uint;
pub const GTypeFlags_G_TYPE_FLAG_NONE: GTypeFlags = 0;
pub const GTypeFlags_G_TYPE_FLAG_ABSTRACT: GTypeFlags = 16;
pub const GTypeFlags_G_TYPE_FLAG_VALUE_ABSTRACT: GTypeFlags = 32;
pub const GTypeFlags_G_TYPE_FLAG_FINAL: GTypeFlags = 64;
pub const GTypeFlags_G_TYPE_FLAG_DEPRECATED: GTypeFlags = 128;
pub type GTypeFlags = ::std::os::raw::c_uint;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
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,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GTypeInfo"][::std::mem::size_of::<_GTypeInfo>() - 72usize];
["Alignment of _GTypeInfo"][::std::mem::align_of::<_GTypeInfo>() - 8usize];
["Offset of field: _GTypeInfo::class_size"]
[::std::mem::offset_of!(_GTypeInfo, class_size) - 0usize];
["Offset of field: _GTypeInfo::base_init"]
[::std::mem::offset_of!(_GTypeInfo, base_init) - 8usize];
["Offset of field: _GTypeInfo::base_finalize"]
[::std::mem::offset_of!(_GTypeInfo, base_finalize) - 16usize];
["Offset of field: _GTypeInfo::class_init"]
[::std::mem::offset_of!(_GTypeInfo, class_init) - 24usize];
["Offset of field: _GTypeInfo::class_finalize"]
[::std::mem::offset_of!(_GTypeInfo, class_finalize) - 32usize];
["Offset of field: _GTypeInfo::class_data"]
[::std::mem::offset_of!(_GTypeInfo, class_data) - 40usize];
["Offset of field: _GTypeInfo::instance_size"]
[::std::mem::offset_of!(_GTypeInfo, instance_size) - 48usize];
["Offset of field: _GTypeInfo::n_preallocs"]
[::std::mem::offset_of!(_GTypeInfo, n_preallocs) - 50usize];
["Offset of field: _GTypeInfo::instance_init"]
[::std::mem::offset_of!(_GTypeInfo, instance_init) - 56usize];
["Offset of field: _GTypeInfo::value_table"]
[::std::mem::offset_of!(_GTypeInfo, value_table) - 64usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GTypeFundamentalInfo {
pub type_flags: GTypeFundamentalFlags,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GTypeFundamentalInfo"][::std::mem::size_of::<_GTypeFundamentalInfo>() - 4usize];
["Alignment of _GTypeFundamentalInfo"]
[::std::mem::align_of::<_GTypeFundamentalInfo>() - 4usize];
["Offset of field: _GTypeFundamentalInfo::type_flags"]
[::std::mem::offset_of!(_GTypeFundamentalInfo, type_flags) - 0usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GInterfaceInfo {
pub interface_init: GInterfaceInitFunc,
pub interface_finalize: GInterfaceFinalizeFunc,
pub interface_data: gpointer,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GInterfaceInfo"][::std::mem::size_of::<_GInterfaceInfo>() - 24usize];
["Alignment of _GInterfaceInfo"][::std::mem::align_of::<_GInterfaceInfo>() - 8usize];
["Offset of field: _GInterfaceInfo::interface_init"]
[::std::mem::offset_of!(_GInterfaceInfo, interface_init) - 0usize];
["Offset of field: _GInterfaceInfo::interface_finalize"]
[::std::mem::offset_of!(_GInterfaceInfo, interface_finalize) - 8usize];
["Offset of field: _GInterfaceInfo::interface_data"]
[::std::mem::offset_of!(_GInterfaceInfo, interface_data) - 16usize];
};
pub type GTypeValueInitFunc = ::std::option::Option<unsafe extern "C" fn(value: *mut GValue)>;
pub type GTypeValueFreeFunc = ::std::option::Option<unsafe extern "C" fn(value: *mut GValue)>;
pub type GTypeValueCopyFunc =
::std::option::Option<unsafe extern "C" fn(src_value: *const GValue, dest_value: *mut GValue)>;
pub type GTypeValuePeekPointerFunc =
::std::option::Option<unsafe extern "C" fn(value: *const GValue) -> gpointer>;
pub type GTypeValueCollectFunc = ::std::option::Option<
unsafe extern "C" fn(
value: *mut GValue,
n_collect_values: guint,
collect_values: *mut GTypeCValue,
collect_flags: guint,
) -> *mut gchar,
>;
pub type GTypeValueLCopyFunc = ::std::option::Option<
unsafe extern "C" fn(
value: *const GValue,
n_collect_values: guint,
collect_values: *mut GTypeCValue,
collect_flags: guint,
) -> *mut gchar,
>;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GTypeValueTable {
pub value_init: GTypeValueInitFunc,
pub value_free: GTypeValueFreeFunc,
pub value_copy: GTypeValueCopyFunc,
pub value_peek_pointer: GTypeValuePeekPointerFunc,
pub collect_format: *const gchar,
pub collect_value: GTypeValueCollectFunc,
pub lcopy_format: *const gchar,
pub lcopy_value: GTypeValueLCopyFunc,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GTypeValueTable"][::std::mem::size_of::<_GTypeValueTable>() - 64usize];
["Alignment of _GTypeValueTable"][::std::mem::align_of::<_GTypeValueTable>() - 8usize];
["Offset of field: _GTypeValueTable::value_init"]
[::std::mem::offset_of!(_GTypeValueTable, value_init) - 0usize];
["Offset of field: _GTypeValueTable::value_free"]
[::std::mem::offset_of!(_GTypeValueTable, value_free) - 8usize];
["Offset of field: _GTypeValueTable::value_copy"]
[::std::mem::offset_of!(_GTypeValueTable, value_copy) - 16usize];
["Offset of field: _GTypeValueTable::value_peek_pointer"]
[::std::mem::offset_of!(_GTypeValueTable, value_peek_pointer) - 24usize];
["Offset of field: _GTypeValueTable::collect_format"]
[::std::mem::offset_of!(_GTypeValueTable, collect_format) - 32usize];
["Offset of field: _GTypeValueTable::collect_value"]
[::std::mem::offset_of!(_GTypeValueTable, collect_value) - 40usize];
["Offset of field: _GTypeValueTable::lcopy_format"]
[::std::mem::offset_of!(_GTypeValueTable, lcopy_format) - 48usize];
["Offset of field: _GTypeValueTable::lcopy_value"]
[::std::mem::offset_of!(_GTypeValueTable, lcopy_value) - 56usize];
};
unsafe extern "C" {
pub fn g_type_register_static(
parent_type: GType,
type_name: *const gchar,
info: *const GTypeInfo,
flags: GTypeFlags,
) -> GType;
}
unsafe 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;
}
unsafe extern "C" {
pub fn g_type_register_dynamic(
parent_type: GType,
type_name: *const gchar,
plugin: *mut GTypePlugin,
flags: GTypeFlags,
) -> GType;
}
unsafe extern "C" {
pub fn g_type_register_fundamental(
type_id: GType,
type_name: *const gchar,
info: *const GTypeInfo,
finfo: *const GTypeFundamentalInfo,
flags: GTypeFlags,
) -> GType;
}
unsafe extern "C" {
pub fn g_type_add_interface_static(
instance_type: GType,
interface_type: GType,
info: *const GInterfaceInfo,
);
}
unsafe extern "C" {
pub fn g_type_add_interface_dynamic(
instance_type: GType,
interface_type: GType,
plugin: *mut GTypePlugin,
);
}
unsafe extern "C" {
pub fn g_type_interface_add_prerequisite(interface_type: GType, prerequisite_type: GType);
}
unsafe extern "C" {
pub fn g_type_interface_prerequisites(
interface_type: GType,
n_prerequisites: *mut guint,
) -> *mut GType;
}
unsafe extern "C" {
pub fn g_type_interface_instantiatable_prerequisite(interface_type: GType) -> GType;
}
unsafe extern "C" {
pub fn g_type_class_add_private(g_class: gpointer, private_size: gsize);
}
unsafe extern "C" {
pub fn g_type_add_instance_private(class_type: GType, private_size: gsize) -> gint;
}
unsafe extern "C" {
pub fn g_type_instance_get_private(
instance: *mut GTypeInstance,
private_type: GType,
) -> gpointer;
}
unsafe extern "C" {
pub fn g_type_class_adjust_private_offset(g_class: gpointer, private_size_or_offset: *mut gint);
}
unsafe extern "C" {
pub fn g_type_add_class_private(class_type: GType, private_size: gsize);
}
unsafe extern "C" {
pub fn g_type_class_get_private(klass: *mut GTypeClass, private_type: GType) -> gpointer;
}
unsafe extern "C" {
pub fn g_type_class_get_instance_private_offset(g_class: gpointer) -> gint;
}
unsafe extern "C" {
pub fn g_type_ensure(type_: GType);
}
unsafe extern "C" {
pub fn g_type_get_type_registration_serial() -> guint;
}
unsafe extern "C" {
pub fn g_type_get_plugin(type_: GType) -> *mut GTypePlugin;
}
unsafe extern "C" {
pub fn g_type_interface_get_plugin(
instance_type: GType,
interface_type: GType,
) -> *mut GTypePlugin;
}
unsafe extern "C" {
pub fn g_type_fundamental_next() -> GType;
}
unsafe extern "C" {
pub fn g_type_fundamental(type_id: GType) -> GType;
}
unsafe extern "C" {
pub fn g_type_create_instance(type_: GType) -> *mut GTypeInstance;
}
unsafe extern "C" {
pub fn g_type_free_instance(instance: *mut GTypeInstance);
}
unsafe extern "C" {
pub fn g_type_add_class_cache_func(cache_data: gpointer, cache_func: GTypeClassCacheFunc);
}
unsafe extern "C" {
pub fn g_type_remove_class_cache_func(cache_data: gpointer, cache_func: GTypeClassCacheFunc);
}
unsafe extern "C" {
pub fn g_type_class_unref_uncached(g_class: gpointer);
}
unsafe extern "C" {
pub fn g_type_add_interface_check(check_data: gpointer, check_func: GTypeInterfaceCheckFunc);
}
unsafe extern "C" {
pub fn g_type_remove_interface_check(check_data: gpointer, check_func: GTypeInterfaceCheckFunc);
}
unsafe extern "C" {
pub fn g_type_value_table_peek(type_: GType) -> *mut GTypeValueTable;
}
unsafe extern "C" {
pub fn g_type_check_instance(instance: *mut GTypeInstance) -> gboolean;
}
unsafe extern "C" {
pub fn g_type_check_instance_cast(
instance: *mut GTypeInstance,
iface_type: GType,
) -> *mut GTypeInstance;
}
unsafe extern "C" {
pub fn g_type_check_instance_is_a(instance: *mut GTypeInstance, iface_type: GType) -> gboolean;
}
unsafe extern "C" {
pub fn g_type_check_instance_is_fundamentally_a(
instance: *mut GTypeInstance,
fundamental_type: GType,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_type_check_class_cast(g_class: *mut GTypeClass, is_a_type: GType) -> *mut GTypeClass;
}
unsafe extern "C" {
pub fn g_type_check_class_is_a(g_class: *mut GTypeClass, is_a_type: GType) -> gboolean;
}
unsafe extern "C" {
pub fn g_type_check_is_value_type(type_: GType) -> gboolean;
}
unsafe extern "C" {
pub fn g_type_check_value(value: *const GValue) -> gboolean;
}
unsafe extern "C" {
pub fn g_type_check_value_holds(value: *const GValue, type_: GType) -> gboolean;
}
unsafe extern "C" {
pub fn g_type_test_flags(type_: GType, flags: guint) -> gboolean;
}
unsafe extern "C" {
pub fn g_type_name_from_instance(instance: *mut GTypeInstance) -> *const gchar;
}
unsafe 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,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GValue__bindgen_ty_1"][::std::mem::size_of::<_GValue__bindgen_ty_1>() - 8usize];
["Alignment of _GValue__bindgen_ty_1"]
[::std::mem::align_of::<_GValue__bindgen_ty_1>() - 8usize];
["Offset of field: _GValue__bindgen_ty_1::v_int"]
[::std::mem::offset_of!(_GValue__bindgen_ty_1, v_int) - 0usize];
["Offset of field: _GValue__bindgen_ty_1::v_uint"]
[::std::mem::offset_of!(_GValue__bindgen_ty_1, v_uint) - 0usize];
["Offset of field: _GValue__bindgen_ty_1::v_long"]
[::std::mem::offset_of!(_GValue__bindgen_ty_1, v_long) - 0usize];
["Offset of field: _GValue__bindgen_ty_1::v_ulong"]
[::std::mem::offset_of!(_GValue__bindgen_ty_1, v_ulong) - 0usize];
["Offset of field: _GValue__bindgen_ty_1::v_int64"]
[::std::mem::offset_of!(_GValue__bindgen_ty_1, v_int64) - 0usize];
["Offset of field: _GValue__bindgen_ty_1::v_uint64"]
[::std::mem::offset_of!(_GValue__bindgen_ty_1, v_uint64) - 0usize];
["Offset of field: _GValue__bindgen_ty_1::v_float"]
[::std::mem::offset_of!(_GValue__bindgen_ty_1, v_float) - 0usize];
["Offset of field: _GValue__bindgen_ty_1::v_double"]
[::std::mem::offset_of!(_GValue__bindgen_ty_1, v_double) - 0usize];
["Offset of field: _GValue__bindgen_ty_1::v_pointer"]
[::std::mem::offset_of!(_GValue__bindgen_ty_1, v_pointer) - 0usize];
};
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 }}")
}
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GValue"][::std::mem::size_of::<_GValue>() - 24usize];
["Alignment of _GValue"][::std::mem::align_of::<_GValue>() - 8usize];
["Offset of field: _GValue::g_type"][::std::mem::offset_of!(_GValue, g_type) - 0usize];
["Offset of field: _GValue::data"][::std::mem::offset_of!(_GValue, data) - 8usize];
};
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
)
}
}
unsafe extern "C" {
pub fn g_value_init(value: *mut GValue, g_type: GType) -> *mut GValue;
}
unsafe extern "C" {
pub fn g_value_copy(src_value: *const GValue, dest_value: *mut GValue);
}
unsafe extern "C" {
pub fn g_value_reset(value: *mut GValue) -> *mut GValue;
}
unsafe extern "C" {
pub fn g_value_unset(value: *mut GValue);
}
unsafe extern "C" {
pub fn g_value_set_instance(value: *mut GValue, instance: gpointer);
}
unsafe extern "C" {
pub fn g_value_init_from_instance(value: *mut GValue, instance: gpointer);
}
unsafe extern "C" {
pub fn g_value_fits_pointer(value: *const GValue) -> gboolean;
}
unsafe extern "C" {
pub fn g_value_peek_pointer(value: *const GValue) -> gpointer;
}
unsafe extern "C" {
pub fn g_value_type_compatible(src_type: GType, dest_type: GType) -> gboolean;
}
unsafe extern "C" {
pub fn g_value_type_transformable(src_type: GType, dest_type: GType) -> gboolean;
}
unsafe extern "C" {
pub fn g_value_transform(src_value: *const GValue, dest_value: *mut GValue) -> gboolean;
}
unsafe extern "C" {
pub fn g_value_register_transform_func(
src_type: GType,
dest_type: GType,
transform_func: GValueTransform,
);
}
pub const GParamFlags_G_PARAM_READABLE: GParamFlags = 1;
pub const GParamFlags_G_PARAM_WRITABLE: GParamFlags = 2;
pub const GParamFlags_G_PARAM_READWRITE: GParamFlags = 3;
pub const GParamFlags_G_PARAM_CONSTRUCT: GParamFlags = 4;
pub const GParamFlags_G_PARAM_CONSTRUCT_ONLY: GParamFlags = 8;
pub const GParamFlags_G_PARAM_LAX_VALIDATION: GParamFlags = 16;
pub const GParamFlags_G_PARAM_STATIC_NAME: GParamFlags = 32;
pub const GParamFlags_G_PARAM_PRIVATE: GParamFlags = 32;
pub const GParamFlags_G_PARAM_STATIC_NICK: GParamFlags = 64;
pub const GParamFlags_G_PARAM_STATIC_BLURB: GParamFlags = 128;
pub const GParamFlags_G_PARAM_EXPLICIT_NOTIFY: GParamFlags = 1073741824;
pub const GParamFlags_G_PARAM_DEPRECATED: GParamFlags = -2147483648;
pub type GParamFlags = ::std::os::raw::c_int;
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, PartialEq, Eq)]
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,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GParamSpec"][::std::mem::size_of::<_GParamSpec>() - 72usize];
["Alignment of _GParamSpec"][::std::mem::align_of::<_GParamSpec>() - 8usize];
["Offset of field: _GParamSpec::g_type_instance"]
[::std::mem::offset_of!(_GParamSpec, g_type_instance) - 0usize];
["Offset of field: _GParamSpec::name"][::std::mem::offset_of!(_GParamSpec, name) - 8usize];
["Offset of field: _GParamSpec::flags"][::std::mem::offset_of!(_GParamSpec, flags) - 16usize];
["Offset of field: _GParamSpec::value_type"]
[::std::mem::offset_of!(_GParamSpec, value_type) - 24usize];
["Offset of field: _GParamSpec::owner_type"]
[::std::mem::offset_of!(_GParamSpec, owner_type) - 32usize];
["Offset of field: _GParamSpec::_nick"][::std::mem::offset_of!(_GParamSpec, _nick) - 40usize];
["Offset of field: _GParamSpec::_blurb"][::std::mem::offset_of!(_GParamSpec, _blurb) - 48usize];
["Offset of field: _GParamSpec::qdata"][::std::mem::offset_of!(_GParamSpec, qdata) - 56usize];
["Offset of field: _GParamSpec::ref_count"]
[::std::mem::offset_of!(_GParamSpec, ref_count) - 64usize];
["Offset of field: _GParamSpec::param_id"]
[::std::mem::offset_of!(_GParamSpec, param_id) - 68usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
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 value_is_valid: ::std::option::Option<
unsafe extern "C" fn(pspec: *mut GParamSpec, value: *const GValue) -> gboolean,
>,
pub dummy: [gpointer; 3usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GParamSpecClass"][::std::mem::size_of::<_GParamSpecClass>() - 80usize];
["Alignment of _GParamSpecClass"][::std::mem::align_of::<_GParamSpecClass>() - 8usize];
["Offset of field: _GParamSpecClass::g_type_class"]
[::std::mem::offset_of!(_GParamSpecClass, g_type_class) - 0usize];
["Offset of field: _GParamSpecClass::value_type"]
[::std::mem::offset_of!(_GParamSpecClass, value_type) - 8usize];
["Offset of field: _GParamSpecClass::finalize"]
[::std::mem::offset_of!(_GParamSpecClass, finalize) - 16usize];
["Offset of field: _GParamSpecClass::value_set_default"]
[::std::mem::offset_of!(_GParamSpecClass, value_set_default) - 24usize];
["Offset of field: _GParamSpecClass::value_validate"]
[::std::mem::offset_of!(_GParamSpecClass, value_validate) - 32usize];
["Offset of field: _GParamSpecClass::values_cmp"]
[::std::mem::offset_of!(_GParamSpecClass, values_cmp) - 40usize];
["Offset of field: _GParamSpecClass::value_is_valid"]
[::std::mem::offset_of!(_GParamSpecClass, value_is_valid) - 48usize];
["Offset of field: _GParamSpecClass::dummy"]
[::std::mem::offset_of!(_GParamSpecClass, dummy) - 56usize];
};
#[repr(C)]
#[derive(Copy, Clone)]
pub struct _GParameter {
pub name: *const gchar,
pub value: GValue,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GParameter"][::std::mem::size_of::<_GParameter>() - 32usize];
["Alignment of _GParameter"][::std::mem::align_of::<_GParameter>() - 8usize];
["Offset of field: _GParameter::name"][::std::mem::offset_of!(_GParameter, name) - 0usize];
["Offset of field: _GParameter::value"][::std::mem::offset_of!(_GParameter, value) - 8usize];
};
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
)
}
}
unsafe extern "C" {
pub fn g_param_spec_ref(pspec: *mut GParamSpec) -> *mut GParamSpec;
}
unsafe extern "C" {
pub fn g_param_spec_unref(pspec: *mut GParamSpec);
}
unsafe extern "C" {
pub fn g_param_spec_sink(pspec: *mut GParamSpec);
}
unsafe extern "C" {
pub fn g_param_spec_ref_sink(pspec: *mut GParamSpec) -> *mut GParamSpec;
}
unsafe extern "C" {
pub fn g_param_spec_get_qdata(pspec: *mut GParamSpec, quark: GQuark) -> gpointer;
}
unsafe extern "C" {
pub fn g_param_spec_set_qdata(pspec: *mut GParamSpec, quark: GQuark, data: gpointer);
}
unsafe extern "C" {
pub fn g_param_spec_set_qdata_full(
pspec: *mut GParamSpec,
quark: GQuark,
data: gpointer,
destroy: GDestroyNotify,
);
}
unsafe extern "C" {
pub fn g_param_spec_steal_qdata(pspec: *mut GParamSpec, quark: GQuark) -> gpointer;
}
unsafe extern "C" {
pub fn g_param_spec_get_redirect_target(pspec: *mut GParamSpec) -> *mut GParamSpec;
}
unsafe extern "C" {
pub fn g_param_value_set_default(pspec: *mut GParamSpec, value: *mut GValue);
}
unsafe extern "C" {
pub fn g_param_value_defaults(pspec: *mut GParamSpec, value: *const GValue) -> gboolean;
}
unsafe extern "C" {
pub fn g_param_value_validate(pspec: *mut GParamSpec, value: *mut GValue) -> gboolean;
}
unsafe extern "C" {
pub fn g_param_value_is_valid(pspec: *mut GParamSpec, value: *const GValue) -> gboolean;
}
unsafe extern "C" {
pub fn g_param_value_convert(
pspec: *mut GParamSpec,
src_value: *const GValue,
dest_value: *mut GValue,
strict_validation: gboolean,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_param_values_cmp(
pspec: *mut GParamSpec,
value1: *const GValue,
value2: *const GValue,
) -> gint;
}
unsafe extern "C" {
pub fn g_param_spec_get_name(pspec: *mut GParamSpec) -> *const gchar;
}
unsafe extern "C" {
pub fn g_param_spec_get_nick(pspec: *mut GParamSpec) -> *const gchar;
}
unsafe extern "C" {
pub fn g_param_spec_get_blurb(pspec: *mut GParamSpec) -> *const gchar;
}
unsafe extern "C" {
pub fn g_value_set_param(value: *mut GValue, param: *mut GParamSpec);
}
unsafe extern "C" {
pub fn g_value_get_param(value: *const GValue) -> *mut GParamSpec;
}
unsafe extern "C" {
pub fn g_value_dup_param(value: *const GValue) -> *mut GParamSpec;
}
unsafe extern "C" {
pub fn g_value_take_param(value: *mut GValue, param: *mut GParamSpec);
}
unsafe extern "C" {
pub fn g_value_set_param_take_ownership(value: *mut GValue, param: *mut GParamSpec);
}
unsafe extern "C" {
pub fn g_param_spec_get_default_value(pspec: *mut GParamSpec) -> *const GValue;
}
unsafe extern "C" {
pub fn g_param_spec_get_name_quark(pspec: *mut GParamSpec) -> GQuark;
}
pub type GParamSpecTypeInfo = _GParamSpecTypeInfo;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
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,
>,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GParamSpecTypeInfo"][::std::mem::size_of::<_GParamSpecTypeInfo>() - 56usize];
["Alignment of _GParamSpecTypeInfo"][::std::mem::align_of::<_GParamSpecTypeInfo>() - 8usize];
["Offset of field: _GParamSpecTypeInfo::instance_size"]
[::std::mem::offset_of!(_GParamSpecTypeInfo, instance_size) - 0usize];
["Offset of field: _GParamSpecTypeInfo::n_preallocs"]
[::std::mem::offset_of!(_GParamSpecTypeInfo, n_preallocs) - 2usize];
["Offset of field: _GParamSpecTypeInfo::instance_init"]
[::std::mem::offset_of!(_GParamSpecTypeInfo, instance_init) - 8usize];
["Offset of field: _GParamSpecTypeInfo::value_type"]
[::std::mem::offset_of!(_GParamSpecTypeInfo, value_type) - 16usize];
["Offset of field: _GParamSpecTypeInfo::finalize"]
[::std::mem::offset_of!(_GParamSpecTypeInfo, finalize) - 24usize];
["Offset of field: _GParamSpecTypeInfo::value_set_default"]
[::std::mem::offset_of!(_GParamSpecTypeInfo, value_set_default) - 32usize];
["Offset of field: _GParamSpecTypeInfo::value_validate"]
[::std::mem::offset_of!(_GParamSpecTypeInfo, value_validate) - 40usize];
["Offset of field: _GParamSpecTypeInfo::values_cmp"]
[::std::mem::offset_of!(_GParamSpecTypeInfo, values_cmp) - 48usize];
};
unsafe extern "C" {
pub fn g_param_type_register_static(
name: *const gchar,
pspec_info: *const GParamSpecTypeInfo,
) -> GType;
}
unsafe extern "C" {
pub fn g_param_spec_is_valid_name(name: *const gchar) -> gboolean;
}
unsafe extern "C" {
pub fn _g_param_type_register_static_constant(
name: *const gchar,
pspec_info: *const GParamSpecTypeInfo,
opt_type: GType,
) -> GType;
}
unsafe extern "C" {
pub fn g_param_spec_internal(
param_type: GType,
name: *const gchar,
nick: *const gchar,
blurb: *const gchar,
flags: GParamFlags,
) -> gpointer;
}
unsafe extern "C" {
pub fn g_param_spec_pool_new(type_prefixing: gboolean) -> *mut GParamSpecPool;
}
unsafe extern "C" {
pub fn g_param_spec_pool_insert(
pool: *mut GParamSpecPool,
pspec: *mut GParamSpec,
owner_type: GType,
);
}
unsafe extern "C" {
pub fn g_param_spec_pool_remove(pool: *mut GParamSpecPool, pspec: *mut GParamSpec);
}
unsafe extern "C" {
pub fn g_param_spec_pool_lookup(
pool: *mut GParamSpecPool,
param_name: *const gchar,
owner_type: GType,
walk_ancestors: gboolean,
) -> *mut GParamSpec;
}
unsafe extern "C" {
pub fn g_param_spec_pool_list_owned(pool: *mut GParamSpecPool, owner_type: GType)
-> *mut GList;
}
unsafe extern "C" {
pub fn g_param_spec_pool_list(
pool: *mut GParamSpecPool,
owner_type: GType,
n_pspecs_p: *mut guint,
) -> *mut *mut GParamSpec;
}
unsafe extern "C" {
pub fn g_param_spec_pool_free(pool: *mut GParamSpecPool);
}
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: va_list,
marshal_data: gpointer,
n_params: ::std::os::raw::c_int,
param_types: *mut GType,
),
>;
pub type GCClosure = _GCClosure;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GClosureNotifyData {
pub data: gpointer,
pub notify: GClosureNotify,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GClosureNotifyData"][::std::mem::size_of::<_GClosureNotifyData>() - 16usize];
["Alignment of _GClosureNotifyData"][::std::mem::align_of::<_GClosureNotifyData>() - 8usize];
["Offset of field: _GClosureNotifyData::data"]
[::std::mem::offset_of!(_GClosureNotifyData, data) - 0usize];
["Offset of field: _GClosureNotifyData::notify"]
[::std::mem::offset_of!(_GClosureNotifyData, notify) - 8usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GClosure {
pub _bitfield_align_1: [u16; 0],
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>,
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,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GClosure"][::std::mem::size_of::<_GClosure>() - 32usize];
["Alignment of _GClosure"][::std::mem::align_of::<_GClosure>() - 8usize];
["Offset of field: _GClosure::marshal"][::std::mem::offset_of!(_GClosure, marshal) - 8usize];
["Offset of field: _GClosure::data"][::std::mem::offset_of!(_GClosure, data) - 16usize];
["Offset of field: _GClosure::notifiers"]
[::std::mem::offset_of!(_GClosure, notifiers) - 24usize];
};
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 unsafe fn ref_count_raw(this: *const Self) -> guint {
unsafe {
::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
::std::ptr::addr_of!((*this)._bitfield_1),
0usize,
15u8,
) as u32)
}
}
#[inline]
pub unsafe fn set_ref_count_raw(this: *mut Self, val: guint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
::std::ptr::addr_of_mut!((*this)._bitfield_1),
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 unsafe fn meta_marshal_nouse_raw(this: *const Self) -> guint {
unsafe {
::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
::std::ptr::addr_of!((*this)._bitfield_1),
15usize,
1u8,
) as u32)
}
}
#[inline]
pub unsafe fn set_meta_marshal_nouse_raw(this: *mut Self, val: guint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
::std::ptr::addr_of_mut!((*this)._bitfield_1),
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 unsafe fn n_guards_raw(this: *const Self) -> guint {
unsafe {
::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
::std::ptr::addr_of!((*this)._bitfield_1),
16usize,
1u8,
) as u32)
}
}
#[inline]
pub unsafe fn set_n_guards_raw(this: *mut Self, val: guint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
::std::ptr::addr_of_mut!((*this)._bitfield_1),
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 unsafe fn n_fnotifiers_raw(this: *const Self) -> guint {
unsafe {
::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
::std::ptr::addr_of!((*this)._bitfield_1),
17usize,
2u8,
) as u32)
}
}
#[inline]
pub unsafe fn set_n_fnotifiers_raw(this: *mut Self, val: guint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
::std::ptr::addr_of_mut!((*this)._bitfield_1),
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 unsafe fn n_inotifiers_raw(this: *const Self) -> guint {
unsafe {
::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
::std::ptr::addr_of!((*this)._bitfield_1),
19usize,
8u8,
) as u32)
}
}
#[inline]
pub unsafe fn set_n_inotifiers_raw(this: *mut Self, val: guint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
::std::ptr::addr_of_mut!((*this)._bitfield_1),
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 unsafe fn in_inotify_raw(this: *const Self) -> guint {
unsafe {
::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
::std::ptr::addr_of!((*this)._bitfield_1),
27usize,
1u8,
) as u32)
}
}
#[inline]
pub unsafe fn set_in_inotify_raw(this: *mut Self, val: guint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
::std::ptr::addr_of_mut!((*this)._bitfield_1),
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 unsafe fn floating_raw(this: *const Self) -> guint {
unsafe {
::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
::std::ptr::addr_of!((*this)._bitfield_1),
28usize,
1u8,
) as u32)
}
}
#[inline]
pub unsafe fn set_floating_raw(this: *mut Self, val: guint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
::std::ptr::addr_of_mut!((*this)._bitfield_1),
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 unsafe fn derivative_flag_raw(this: *const Self) -> guint {
unsafe {
::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
::std::ptr::addr_of!((*this)._bitfield_1),
29usize,
1u8,
) as u32)
}
}
#[inline]
pub unsafe fn set_derivative_flag_raw(this: *mut Self, val: guint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
::std::ptr::addr_of_mut!((*this)._bitfield_1),
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 unsafe fn in_marshal_raw(this: *const Self) -> guint {
unsafe {
::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
::std::ptr::addr_of!((*this)._bitfield_1),
30usize,
1u8,
) as u32)
}
}
#[inline]
pub unsafe fn set_in_marshal_raw(this: *mut Self, val: guint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
::std::ptr::addr_of_mut!((*this)._bitfield_1),
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 unsafe fn is_invalid_raw(this: *const Self) -> guint {
unsafe {
::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
::std::ptr::addr_of!((*this)._bitfield_1),
31usize,
1u8,
) as u32)
}
}
#[inline]
pub unsafe fn set_is_invalid_raw(this: *mut Self, val: guint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
::std::ptr::addr_of_mut!((*this)._bitfield_1),
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]> {
let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = 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, PartialEq, Eq)]
pub struct _GCClosure {
pub closure: GClosure,
pub callback: gpointer,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GCClosure"][::std::mem::size_of::<_GCClosure>() - 40usize];
["Alignment of _GCClosure"][::std::mem::align_of::<_GCClosure>() - 8usize];
["Offset of field: _GCClosure::closure"][::std::mem::offset_of!(_GCClosure, closure) - 0usize];
["Offset of field: _GCClosure::callback"]
[::std::mem::offset_of!(_GCClosure, callback) - 32usize];
};
unsafe extern "C" {
pub fn g_cclosure_new(
callback_func: GCallback,
user_data: gpointer,
destroy_data: GClosureNotify,
) -> *mut GClosure;
}
unsafe extern "C" {
pub fn g_cclosure_new_swap(
callback_func: GCallback,
user_data: gpointer,
destroy_data: GClosureNotify,
) -> *mut GClosure;
}
unsafe extern "C" {
pub fn g_signal_type_cclosure_new(itype: GType, struct_offset: guint) -> *mut GClosure;
}
unsafe extern "C" {
pub fn g_closure_ref(closure: *mut GClosure) -> *mut GClosure;
}
unsafe extern "C" {
pub fn g_closure_sink(closure: *mut GClosure);
}
unsafe extern "C" {
pub fn g_closure_unref(closure: *mut GClosure);
}
unsafe extern "C" {
pub fn g_closure_new_simple(sizeof_closure: guint, data: gpointer) -> *mut GClosure;
}
unsafe extern "C" {
pub fn g_closure_add_finalize_notifier(
closure: *mut GClosure,
notify_data: gpointer,
notify_func: GClosureNotify,
);
}
unsafe extern "C" {
pub fn g_closure_remove_finalize_notifier(
closure: *mut GClosure,
notify_data: gpointer,
notify_func: GClosureNotify,
);
}
unsafe extern "C" {
pub fn g_closure_add_invalidate_notifier(
closure: *mut GClosure,
notify_data: gpointer,
notify_func: GClosureNotify,
);
}
unsafe extern "C" {
pub fn g_closure_remove_invalidate_notifier(
closure: *mut GClosure,
notify_data: gpointer,
notify_func: GClosureNotify,
);
}
unsafe 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,
);
}
unsafe extern "C" {
pub fn g_closure_set_marshal(closure: *mut GClosure, marshal: GClosureMarshal);
}
unsafe extern "C" {
pub fn g_closure_set_meta_marshal(
closure: *mut GClosure,
marshal_data: gpointer,
meta_marshal: GClosureMarshal,
);
}
unsafe extern "C" {
pub fn g_closure_invalidate(closure: *mut GClosure);
}
unsafe 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,
);
}
unsafe 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,
);
}
unsafe extern "C" {
pub fn g_cclosure_marshal_generic_va(
closure: *mut GClosure,
return_value: *mut GValue,
instance: gpointer,
args_list: va_list,
marshal_data: gpointer,
n_params: ::std::os::raw::c_int,
param_types: *mut GType,
);
}
unsafe 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,
);
}
unsafe extern "C" {
pub fn g_cclosure_marshal_VOID__VOIDv(
closure: *mut GClosure,
return_value: *mut GValue,
instance: gpointer,
args: va_list,
marshal_data: gpointer,
n_params: ::std::os::raw::c_int,
param_types: *mut GType,
);
}
unsafe 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,
);
}
unsafe extern "C" {
pub fn g_cclosure_marshal_VOID__BOOLEANv(
closure: *mut GClosure,
return_value: *mut GValue,
instance: gpointer,
args: va_list,
marshal_data: gpointer,
n_params: ::std::os::raw::c_int,
param_types: *mut GType,
);
}
unsafe 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,
);
}
unsafe extern "C" {
pub fn g_cclosure_marshal_VOID__CHARv(
closure: *mut GClosure,
return_value: *mut GValue,
instance: gpointer,
args: va_list,
marshal_data: gpointer,
n_params: ::std::os::raw::c_int,
param_types: *mut GType,
);
}
unsafe 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,
);
}
unsafe extern "C" {
pub fn g_cclosure_marshal_VOID__UCHARv(
closure: *mut GClosure,
return_value: *mut GValue,
instance: gpointer,
args: va_list,
marshal_data: gpointer,
n_params: ::std::os::raw::c_int,
param_types: *mut GType,
);
}
unsafe 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,
);
}
unsafe extern "C" {
pub fn g_cclosure_marshal_VOID__INTv(
closure: *mut GClosure,
return_value: *mut GValue,
instance: gpointer,
args: va_list,
marshal_data: gpointer,
n_params: ::std::os::raw::c_int,
param_types: *mut GType,
);
}
unsafe 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,
);
}
unsafe extern "C" {
pub fn g_cclosure_marshal_VOID__UINTv(
closure: *mut GClosure,
return_value: *mut GValue,
instance: gpointer,
args: va_list,
marshal_data: gpointer,
n_params: ::std::os::raw::c_int,
param_types: *mut GType,
);
}
unsafe 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,
);
}
unsafe extern "C" {
pub fn g_cclosure_marshal_VOID__LONGv(
closure: *mut GClosure,
return_value: *mut GValue,
instance: gpointer,
args: va_list,
marshal_data: gpointer,
n_params: ::std::os::raw::c_int,
param_types: *mut GType,
);
}
unsafe 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,
);
}
unsafe extern "C" {
pub fn g_cclosure_marshal_VOID__ULONGv(
closure: *mut GClosure,
return_value: *mut GValue,
instance: gpointer,
args: va_list,
marshal_data: gpointer,
n_params: ::std::os::raw::c_int,
param_types: *mut GType,
);
}
unsafe 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,
);
}
unsafe extern "C" {
pub fn g_cclosure_marshal_VOID__ENUMv(
closure: *mut GClosure,
return_value: *mut GValue,
instance: gpointer,
args: va_list,
marshal_data: gpointer,
n_params: ::std::os::raw::c_int,
param_types: *mut GType,
);
}
unsafe 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,
);
}
unsafe extern "C" {
pub fn g_cclosure_marshal_VOID__FLAGSv(
closure: *mut GClosure,
return_value: *mut GValue,
instance: gpointer,
args: va_list,
marshal_data: gpointer,
n_params: ::std::os::raw::c_int,
param_types: *mut GType,
);
}
unsafe 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,
);
}
unsafe extern "C" {
pub fn g_cclosure_marshal_VOID__FLOATv(
closure: *mut GClosure,
return_value: *mut GValue,
instance: gpointer,
args: va_list,
marshal_data: gpointer,
n_params: ::std::os::raw::c_int,
param_types: *mut GType,
);
}
unsafe 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,
);
}
unsafe extern "C" {
pub fn g_cclosure_marshal_VOID__DOUBLEv(
closure: *mut GClosure,
return_value: *mut GValue,
instance: gpointer,
args: va_list,
marshal_data: gpointer,
n_params: ::std::os::raw::c_int,
param_types: *mut GType,
);
}
unsafe 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,
);
}
unsafe extern "C" {
pub fn g_cclosure_marshal_VOID__STRINGv(
closure: *mut GClosure,
return_value: *mut GValue,
instance: gpointer,
args: va_list,
marshal_data: gpointer,
n_params: ::std::os::raw::c_int,
param_types: *mut GType,
);
}
unsafe 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,
);
}
unsafe extern "C" {
pub fn g_cclosure_marshal_VOID__PARAMv(
closure: *mut GClosure,
return_value: *mut GValue,
instance: gpointer,
args: va_list,
marshal_data: gpointer,
n_params: ::std::os::raw::c_int,
param_types: *mut GType,
);
}
unsafe 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,
);
}
unsafe extern "C" {
pub fn g_cclosure_marshal_VOID__BOXEDv(
closure: *mut GClosure,
return_value: *mut GValue,
instance: gpointer,
args: va_list,
marshal_data: gpointer,
n_params: ::std::os::raw::c_int,
param_types: *mut GType,
);
}
unsafe 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,
);
}
unsafe extern "C" {
pub fn g_cclosure_marshal_VOID__POINTERv(
closure: *mut GClosure,
return_value: *mut GValue,
instance: gpointer,
args: va_list,
marshal_data: gpointer,
n_params: ::std::os::raw::c_int,
param_types: *mut GType,
);
}
unsafe 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,
);
}
unsafe extern "C" {
pub fn g_cclosure_marshal_VOID__OBJECTv(
closure: *mut GClosure,
return_value: *mut GValue,
instance: gpointer,
args: va_list,
marshal_data: gpointer,
n_params: ::std::os::raw::c_int,
param_types: *mut GType,
);
}
unsafe 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,
);
}
unsafe extern "C" {
pub fn g_cclosure_marshal_VOID__VARIANTv(
closure: *mut GClosure,
return_value: *mut GValue,
instance: gpointer,
args: va_list,
marshal_data: gpointer,
n_params: ::std::os::raw::c_int,
param_types: *mut GType,
);
}
unsafe 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,
);
}
unsafe extern "C" {
pub fn g_cclosure_marshal_VOID__UINT_POINTERv(
closure: *mut GClosure,
return_value: *mut GValue,
instance: gpointer,
args: va_list,
marshal_data: gpointer,
n_params: ::std::os::raw::c_int,
param_types: *mut GType,
);
}
unsafe 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,
);
}
unsafe extern "C" {
pub fn g_cclosure_marshal_BOOLEAN__FLAGSv(
closure: *mut GClosure,
return_value: *mut GValue,
instance: gpointer,
args: va_list,
marshal_data: gpointer,
n_params: ::std::os::raw::c_int,
param_types: *mut GType,
);
}
unsafe 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,
);
}
unsafe extern "C" {
pub fn g_cclosure_marshal_STRING__OBJECT_POINTERv(
closure: *mut GClosure,
return_value: *mut GValue,
instance: gpointer,
args: va_list,
marshal_data: gpointer,
n_params: ::std::os::raw::c_int,
param_types: *mut GType,
);
}
unsafe 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,
);
}
unsafe extern "C" {
pub fn g_cclosure_marshal_BOOLEAN__BOXED_BOXEDv(
closure: *mut GClosure,
return_value: *mut GValue,
instance: gpointer,
args: va_list,
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,
>;
pub const GSignalFlags_G_SIGNAL_RUN_FIRST: GSignalFlags = 1;
pub const GSignalFlags_G_SIGNAL_RUN_LAST: GSignalFlags = 2;
pub const GSignalFlags_G_SIGNAL_RUN_CLEANUP: GSignalFlags = 4;
pub const GSignalFlags_G_SIGNAL_NO_RECURSE: GSignalFlags = 8;
pub const GSignalFlags_G_SIGNAL_DETAILED: GSignalFlags = 16;
pub const GSignalFlags_G_SIGNAL_ACTION: GSignalFlags = 32;
pub const GSignalFlags_G_SIGNAL_NO_HOOKS: GSignalFlags = 64;
pub const GSignalFlags_G_SIGNAL_MUST_COLLECT: GSignalFlags = 128;
pub const GSignalFlags_G_SIGNAL_DEPRECATED: GSignalFlags = 256;
pub const GSignalFlags_G_SIGNAL_ACCUMULATOR_FIRST_RUN: GSignalFlags = 131072;
pub type GSignalFlags = ::std::os::raw::c_uint;
pub const GConnectFlags_G_CONNECT_DEFAULT: GConnectFlags = 0;
pub const GConnectFlags_G_CONNECT_AFTER: GConnectFlags = 1;
pub const GConnectFlags_G_CONNECT_SWAPPED: GConnectFlags = 2;
pub type GConnectFlags = ::std::os::raw::c_uint;
pub const GSignalMatchType_G_SIGNAL_MATCH_ID: GSignalMatchType = 1;
pub const GSignalMatchType_G_SIGNAL_MATCH_DETAIL: GSignalMatchType = 2;
pub const GSignalMatchType_G_SIGNAL_MATCH_CLOSURE: GSignalMatchType = 4;
pub const GSignalMatchType_G_SIGNAL_MATCH_FUNC: GSignalMatchType = 8;
pub const GSignalMatchType_G_SIGNAL_MATCH_DATA: GSignalMatchType = 16;
pub const GSignalMatchType_G_SIGNAL_MATCH_UNBLOCKED: GSignalMatchType = 32;
pub type GSignalMatchType = ::std::os::raw::c_uint;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GSignalInvocationHint {
pub signal_id: guint,
pub detail: GQuark,
pub run_type: GSignalFlags,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GSignalInvocationHint"][::std::mem::size_of::<_GSignalInvocationHint>() - 12usize];
["Alignment of _GSignalInvocationHint"]
[::std::mem::align_of::<_GSignalInvocationHint>() - 4usize];
["Offset of field: _GSignalInvocationHint::signal_id"]
[::std::mem::offset_of!(_GSignalInvocationHint, signal_id) - 0usize];
["Offset of field: _GSignalInvocationHint::detail"]
[::std::mem::offset_of!(_GSignalInvocationHint, detail) - 4usize];
["Offset of field: _GSignalInvocationHint::run_type"]
[::std::mem::offset_of!(_GSignalInvocationHint, run_type) - 8usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
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,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GSignalQuery"][::std::mem::size_of::<_GSignalQuery>() - 56usize];
["Alignment of _GSignalQuery"][::std::mem::align_of::<_GSignalQuery>() - 8usize];
["Offset of field: _GSignalQuery::signal_id"]
[::std::mem::offset_of!(_GSignalQuery, signal_id) - 0usize];
["Offset of field: _GSignalQuery::signal_name"]
[::std::mem::offset_of!(_GSignalQuery, signal_name) - 8usize];
["Offset of field: _GSignalQuery::itype"]
[::std::mem::offset_of!(_GSignalQuery, itype) - 16usize];
["Offset of field: _GSignalQuery::signal_flags"]
[::std::mem::offset_of!(_GSignalQuery, signal_flags) - 24usize];
["Offset of field: _GSignalQuery::return_type"]
[::std::mem::offset_of!(_GSignalQuery, return_type) - 32usize];
["Offset of field: _GSignalQuery::n_params"]
[::std::mem::offset_of!(_GSignalQuery, n_params) - 40usize];
["Offset of field: _GSignalQuery::param_types"]
[::std::mem::offset_of!(_GSignalQuery, param_types) - 48usize];
};
unsafe 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;
}
unsafe 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: va_list,
) -> guint;
}
unsafe 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;
}
unsafe 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;
}
unsafe extern "C" {
pub fn g_signal_set_va_marshaller(
signal_id: guint,
instance_type: GType,
va_marshaller: GSignalCVaMarshaller,
);
}
unsafe extern "C" {
pub fn g_signal_emitv(
instance_and_params: *const GValue,
signal_id: guint,
detail: GQuark,
return_value: *mut GValue,
);
}
unsafe extern "C" {
pub fn g_signal_emit_valist(
instance: gpointer,
signal_id: guint,
detail: GQuark,
var_args: va_list,
);
}
unsafe extern "C" {
pub fn g_signal_emit(instance: gpointer, signal_id: guint, detail: GQuark, ...);
}
unsafe extern "C" {
pub fn g_signal_emit_by_name(instance: gpointer, detailed_signal: *const gchar, ...);
}
unsafe extern "C" {
pub fn g_signal_lookup(name: *const gchar, itype: GType) -> guint;
}
unsafe extern "C" {
pub fn g_signal_name(signal_id: guint) -> *const gchar;
}
unsafe extern "C" {
pub fn g_signal_query(signal_id: guint, query: *mut GSignalQuery);
}
unsafe extern "C" {
pub fn g_signal_list_ids(itype: GType, n_ids: *mut guint) -> *mut guint;
}
unsafe extern "C" {
pub fn g_signal_is_valid_name(name: *const gchar) -> gboolean;
}
unsafe 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;
}
unsafe extern "C" {
pub fn g_signal_get_invocation_hint(instance: gpointer) -> *mut GSignalInvocationHint;
}
unsafe extern "C" {
pub fn g_signal_stop_emission(instance: gpointer, signal_id: guint, detail: GQuark);
}
unsafe extern "C" {
pub fn g_signal_stop_emission_by_name(instance: gpointer, detailed_signal: *const gchar);
}
unsafe extern "C" {
pub fn g_signal_add_emission_hook(
signal_id: guint,
detail: GQuark,
hook_func: GSignalEmissionHook,
hook_data: gpointer,
data_destroy: GDestroyNotify,
) -> gulong;
}
unsafe extern "C" {
pub fn g_signal_remove_emission_hook(signal_id: guint, hook_id: gulong);
}
unsafe extern "C" {
pub fn g_signal_has_handler_pending(
instance: gpointer,
signal_id: guint,
detail: GQuark,
may_be_blocked: gboolean,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_signal_connect_closure_by_id(
instance: gpointer,
signal_id: guint,
detail: GQuark,
closure: *mut GClosure,
after: gboolean,
) -> gulong;
}
unsafe extern "C" {
pub fn g_signal_connect_closure(
instance: gpointer,
detailed_signal: *const gchar,
closure: *mut GClosure,
after: gboolean,
) -> gulong;
}
unsafe 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;
}
unsafe extern "C" {
pub fn g_signal_handler_block(instance: gpointer, handler_id: gulong);
}
unsafe extern "C" {
pub fn g_signal_handler_unblock(instance: gpointer, handler_id: gulong);
}
unsafe extern "C" {
pub fn g_signal_handler_disconnect(instance: gpointer, handler_id: gulong);
}
unsafe extern "C" {
pub fn g_signal_handler_is_connected(instance: gpointer, handler_id: gulong) -> gboolean;
}
unsafe 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;
}
unsafe 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;
}
unsafe 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;
}
unsafe 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;
}
unsafe extern "C" {
pub fn g_clear_signal_handler(handler_id_ptr: *mut gulong, instance: gpointer);
}
unsafe extern "C" {
pub fn g_signal_override_class_closure(
signal_id: guint,
instance_type: GType,
class_closure: *mut GClosure,
);
}
unsafe extern "C" {
pub fn g_signal_override_class_handler(
signal_name: *const gchar,
instance_type: GType,
class_handler: GCallback,
);
}
unsafe extern "C" {
pub fn g_signal_chain_from_overridden(
instance_and_params: *const GValue,
return_value: *mut GValue,
);
}
unsafe extern "C" {
pub fn g_signal_chain_from_overridden_handler(instance: gpointer, ...);
}
unsafe extern "C" {
pub fn g_signal_accumulator_true_handled(
ihint: *mut GSignalInvocationHint,
return_accu: *mut GValue,
handler_return: *const GValue,
dummy: gpointer,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_signal_accumulator_first_wins(
ihint: *mut GSignalInvocationHint,
return_accu: *mut GValue,
handler_return: *const GValue,
dummy: gpointer,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_signal_handlers_destroy(instance: gpointer);
}
unsafe extern "C" {
pub fn _g_signals_destroy(itype: GType);
}
unsafe extern "C" {
pub fn g_date_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_strv_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_gstring_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_hash_table_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_array_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_byte_array_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_ptr_array_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_bytes_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_variant_type_get_gtype() -> GType;
}
unsafe extern "C" {
pub fn g_regex_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_match_info_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_error_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_date_time_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_time_zone_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_io_channel_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_io_condition_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_variant_builder_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_variant_dict_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_key_file_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_main_loop_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_main_context_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_source_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_pollfd_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_thread_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_checksum_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_markup_parse_context_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_mapped_file_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_option_group_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_uri_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_tree_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_pattern_spec_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_bookmark_file_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_hmac_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_dir_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_rand_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_strv_builder_get_type() -> GType;
}
unsafe 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)>;
unsafe extern "C" {
pub fn g_boxed_copy(boxed_type: GType, src_boxed: gconstpointer) -> gpointer;
}
unsafe extern "C" {
pub fn g_boxed_free(boxed_type: GType, boxed: gpointer);
}
unsafe extern "C" {
pub fn g_value_set_boxed(value: *mut GValue, v_boxed: gconstpointer);
}
unsafe extern "C" {
pub fn g_value_set_static_boxed(value: *mut GValue, v_boxed: gconstpointer);
}
unsafe extern "C" {
pub fn g_value_take_boxed(value: *mut GValue, v_boxed: gconstpointer);
}
unsafe extern "C" {
pub fn g_value_set_boxed_take_ownership(value: *mut GValue, v_boxed: gconstpointer);
}
unsafe extern "C" {
pub fn g_value_get_boxed(value: *const GValue) -> gpointer;
}
unsafe extern "C" {
pub fn g_value_dup_boxed(value: *const GValue) -> gpointer;
}
unsafe extern "C" {
pub fn g_boxed_type_register_static(
name: *const gchar,
boxed_copy: GBoxedCopyFunc,
boxed_free: GBoxedFreeFunc,
) -> GType;
}
unsafe extern "C" {
pub fn g_closure_get_type() -> GType;
}
unsafe 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, PartialEq, Eq)]
pub struct _GObject {
pub g_type_instance: GTypeInstance,
pub ref_count: guint,
pub qdata: *mut GData,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GObject"][::std::mem::size_of::<_GObject>() - 24usize];
["Alignment of _GObject"][::std::mem::align_of::<_GObject>() - 8usize];
["Offset of field: _GObject::g_type_instance"]
[::std::mem::offset_of!(_GObject, g_type_instance) - 0usize];
["Offset of field: _GObject::ref_count"][::std::mem::offset_of!(_GObject, ref_count) - 8usize];
["Offset of field: _GObject::qdata"][::std::mem::offset_of!(_GObject, qdata) - 16usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
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 n_construct_properties: gsize,
pub pspecs: gpointer,
pub n_pspecs: gsize,
pub pdummy: [gpointer; 3usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GObjectClass"][::std::mem::size_of::<_GObjectClass>() - 136usize];
["Alignment of _GObjectClass"][::std::mem::align_of::<_GObjectClass>() - 8usize];
["Offset of field: _GObjectClass::g_type_class"]
[::std::mem::offset_of!(_GObjectClass, g_type_class) - 0usize];
["Offset of field: _GObjectClass::construct_properties"]
[::std::mem::offset_of!(_GObjectClass, construct_properties) - 8usize];
["Offset of field: _GObjectClass::constructor"]
[::std::mem::offset_of!(_GObjectClass, constructor) - 16usize];
["Offset of field: _GObjectClass::set_property"]
[::std::mem::offset_of!(_GObjectClass, set_property) - 24usize];
["Offset of field: _GObjectClass::get_property"]
[::std::mem::offset_of!(_GObjectClass, get_property) - 32usize];
["Offset of field: _GObjectClass::dispose"]
[::std::mem::offset_of!(_GObjectClass, dispose) - 40usize];
["Offset of field: _GObjectClass::finalize"]
[::std::mem::offset_of!(_GObjectClass, finalize) - 48usize];
["Offset of field: _GObjectClass::dispatch_properties_changed"]
[::std::mem::offset_of!(_GObjectClass, dispatch_properties_changed) - 56usize];
["Offset of field: _GObjectClass::notify"]
[::std::mem::offset_of!(_GObjectClass, notify) - 64usize];
["Offset of field: _GObjectClass::constructed"]
[::std::mem::offset_of!(_GObjectClass, constructed) - 72usize];
["Offset of field: _GObjectClass::flags"]
[::std::mem::offset_of!(_GObjectClass, flags) - 80usize];
["Offset of field: _GObjectClass::n_construct_properties"]
[::std::mem::offset_of!(_GObjectClass, n_construct_properties) - 88usize];
["Offset of field: _GObjectClass::pspecs"]
[::std::mem::offset_of!(_GObjectClass, pspecs) - 96usize];
["Offset of field: _GObjectClass::n_pspecs"]
[::std::mem::offset_of!(_GObjectClass, n_pspecs) - 104usize];
["Offset of field: _GObjectClass::pdummy"]
[::std::mem::offset_of!(_GObjectClass, pdummy) - 112usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GObjectConstructParam {
pub pspec: *mut GParamSpec,
pub value: *mut GValue,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GObjectConstructParam"][::std::mem::size_of::<_GObjectConstructParam>() - 16usize];
["Alignment of _GObjectConstructParam"]
[::std::mem::align_of::<_GObjectConstructParam>() - 8usize];
["Offset of field: _GObjectConstructParam::pspec"]
[::std::mem::offset_of!(_GObjectConstructParam, pspec) - 0usize];
["Offset of field: _GObjectConstructParam::value"]
[::std::mem::offset_of!(_GObjectConstructParam, value) - 8usize];
};
unsafe extern "C" {
pub fn g_initially_unowned_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_object_class_install_property(
oclass: *mut GObjectClass,
property_id: guint,
pspec: *mut GParamSpec,
);
}
unsafe extern "C" {
pub fn g_object_class_find_property(
oclass: *mut GObjectClass,
property_name: *const gchar,
) -> *mut GParamSpec;
}
unsafe extern "C" {
pub fn g_object_class_list_properties(
oclass: *mut GObjectClass,
n_properties: *mut guint,
) -> *mut *mut GParamSpec;
}
unsafe extern "C" {
pub fn g_object_class_override_property(
oclass: *mut GObjectClass,
property_id: guint,
name: *const gchar,
);
}
unsafe extern "C" {
pub fn g_object_class_install_properties(
oclass: *mut GObjectClass,
n_pspecs: guint,
pspecs: *mut *mut GParamSpec,
);
}
unsafe extern "C" {
pub fn g_object_interface_install_property(g_iface: gpointer, pspec: *mut GParamSpec);
}
unsafe extern "C" {
pub fn g_object_interface_find_property(
g_iface: gpointer,
property_name: *const gchar,
) -> *mut GParamSpec;
}
unsafe extern "C" {
pub fn g_object_interface_list_properties(
g_iface: gpointer,
n_properties_p: *mut guint,
) -> *mut *mut GParamSpec;
}
unsafe extern "C" {
pub fn g_object_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_object_new(object_type: GType, first_property_name: *const gchar, ...) -> gpointer;
}
unsafe 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;
}
unsafe extern "C" {
pub fn g_object_newv(
object_type: GType,
n_parameters: guint,
parameters: *mut GParameter,
) -> gpointer;
}
unsafe extern "C" {
pub fn g_object_new_valist(
object_type: GType,
first_property_name: *const gchar,
var_args: va_list,
) -> *mut GObject;
}
unsafe extern "C" {
pub fn g_object_set(object: gpointer, first_property_name: *const gchar, ...);
}
unsafe extern "C" {
pub fn g_object_get(object: gpointer, first_property_name: *const gchar, ...);
}
unsafe extern "C" {
pub fn g_object_connect(object: gpointer, signal_spec: *const gchar, ...) -> gpointer;
}
unsafe extern "C" {
pub fn g_object_disconnect(object: gpointer, signal_spec: *const gchar, ...);
}
unsafe extern "C" {
pub fn g_object_setv(
object: *mut GObject,
n_properties: guint,
names: *mut *const gchar,
values: *const GValue,
);
}
unsafe extern "C" {
pub fn g_object_set_valist(
object: *mut GObject,
first_property_name: *const gchar,
var_args: va_list,
);
}
unsafe extern "C" {
pub fn g_object_getv(
object: *mut GObject,
n_properties: guint,
names: *mut *const gchar,
values: *mut GValue,
);
}
unsafe extern "C" {
pub fn g_object_get_valist(
object: *mut GObject,
first_property_name: *const gchar,
var_args: va_list,
);
}
unsafe extern "C" {
pub fn g_object_set_property(
object: *mut GObject,
property_name: *const gchar,
value: *const GValue,
);
}
unsafe extern "C" {
pub fn g_object_get_property(
object: *mut GObject,
property_name: *const gchar,
value: *mut GValue,
);
}
unsafe extern "C" {
pub fn g_object_freeze_notify(object: *mut GObject);
}
unsafe extern "C" {
pub fn g_object_notify(object: *mut GObject, property_name: *const gchar);
}
unsafe extern "C" {
pub fn g_object_notify_by_pspec(object: *mut GObject, pspec: *mut GParamSpec);
}
unsafe extern "C" {
pub fn g_object_thaw_notify(object: *mut GObject);
}
unsafe extern "C" {
pub fn g_object_is_floating(object: gpointer) -> gboolean;
}
unsafe extern "C" {
pub fn g_object_ref_sink(object: gpointer) -> gpointer;
}
unsafe extern "C" {
pub fn g_object_take_ref(object: gpointer) -> gpointer;
}
unsafe extern "C" {
pub fn g_object_ref(object: gpointer) -> gpointer;
}
unsafe extern "C" {
pub fn g_object_unref(object: gpointer);
}
unsafe extern "C" {
pub fn g_object_weak_ref(object: *mut GObject, notify: GWeakNotify, data: gpointer);
}
unsafe extern "C" {
pub fn g_object_weak_unref(object: *mut GObject, notify: GWeakNotify, data: gpointer);
}
unsafe extern "C" {
pub fn g_object_add_weak_pointer(object: *mut GObject, weak_pointer_location: *mut gpointer);
}
unsafe 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),
>;
unsafe extern "C" {
pub fn g_object_add_toggle_ref(object: *mut GObject, notify: GToggleNotify, data: gpointer);
}
unsafe extern "C" {
pub fn g_object_remove_toggle_ref(object: *mut GObject, notify: GToggleNotify, data: gpointer);
}
unsafe extern "C" {
pub fn g_object_get_qdata(object: *mut GObject, quark: GQuark) -> gpointer;
}
unsafe extern "C" {
pub fn g_object_set_qdata(object: *mut GObject, quark: GQuark, data: gpointer);
}
unsafe extern "C" {
pub fn g_object_set_qdata_full(
object: *mut GObject,
quark: GQuark,
data: gpointer,
destroy: GDestroyNotify,
);
}
unsafe extern "C" {
pub fn g_object_steal_qdata(object: *mut GObject, quark: GQuark) -> gpointer;
}
unsafe extern "C" {
pub fn g_object_dup_qdata(
object: *mut GObject,
quark: GQuark,
dup_func: GDuplicateFunc,
user_data: gpointer,
) -> gpointer;
}
unsafe extern "C" {
pub fn g_object_replace_qdata(
object: *mut GObject,
quark: GQuark,
oldval: gpointer,
newval: gpointer,
destroy: GDestroyNotify,
old_destroy: *mut GDestroyNotify,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_object_get_data(object: *mut GObject, key: *const gchar) -> gpointer;
}
unsafe extern "C" {
pub fn g_object_set_data(object: *mut GObject, key: *const gchar, data: gpointer);
}
unsafe extern "C" {
pub fn g_object_set_data_full(
object: *mut GObject,
key: *const gchar,
data: gpointer,
destroy: GDestroyNotify,
);
}
unsafe extern "C" {
pub fn g_object_steal_data(object: *mut GObject, key: *const gchar) -> gpointer;
}
unsafe extern "C" {
pub fn g_object_dup_data(
object: *mut GObject,
key: *const gchar,
dup_func: GDuplicateFunc,
user_data: gpointer,
) -> gpointer;
}
unsafe 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;
}
unsafe extern "C" {
pub fn g_object_watch_closure(object: *mut GObject, closure: *mut GClosure);
}
unsafe extern "C" {
pub fn g_cclosure_new_object(callback_func: GCallback, object: *mut GObject) -> *mut GClosure;
}
unsafe extern "C" {
pub fn g_cclosure_new_object_swap(
callback_func: GCallback,
object: *mut GObject,
) -> *mut GClosure;
}
unsafe extern "C" {
pub fn g_closure_new_object(sizeof_closure: guint, object: *mut GObject) -> *mut GClosure;
}
unsafe extern "C" {
pub fn g_value_set_object(value: *mut GValue, v_object: gpointer);
}
unsafe extern "C" {
pub fn g_value_get_object(value: *const GValue) -> gpointer;
}
unsafe extern "C" {
pub fn g_value_dup_object(value: *const GValue) -> gpointer;
}
unsafe extern "C" {
pub fn g_signal_connect_object(
instance: gpointer,
detailed_signal: *const gchar,
c_handler: GCallback,
gobject: gpointer,
connect_flags: GConnectFlags,
) -> gulong;
}
unsafe extern "C" {
pub fn g_object_force_floating(object: *mut GObject);
}
unsafe extern "C" {
pub fn g_object_run_dispose(object: *mut GObject);
}
unsafe extern "C" {
pub fn g_value_take_object(value: *mut GValue, v_object: gpointer);
}
unsafe extern "C" {
pub fn g_value_set_object_take_ownership(value: *mut GValue, v_object: gpointer);
}
unsafe extern "C" {
pub fn g_object_compat_control(what: gsize, data: gpointer) -> gsize;
}
unsafe 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,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of GWeakRef__bindgen_ty_1"][::std::mem::size_of::<GWeakRef__bindgen_ty_1>() - 8usize];
["Alignment of GWeakRef__bindgen_ty_1"]
[::std::mem::align_of::<GWeakRef__bindgen_ty_1>() - 8usize];
["Offset of field: GWeakRef__bindgen_ty_1::p"]
[::std::mem::offset_of!(GWeakRef__bindgen_ty_1, p) - 0usize];
};
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 }}")
}
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of GWeakRef"][::std::mem::size_of::<GWeakRef>() - 8usize];
["Alignment of GWeakRef"][::std::mem::align_of::<GWeakRef>() - 8usize];
["Offset of field: GWeakRef::priv_"][::std::mem::offset_of!(GWeakRef, priv_) - 0usize];
};
impl ::std::fmt::Debug for GWeakRef {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
write!(f, "GWeakRef {{ priv: {:?} }}", self.priv_)
}
}
unsafe extern "C" {
pub fn g_weak_ref_init(weak_ref: *mut GWeakRef, object: gpointer);
}
unsafe extern "C" {
pub fn g_weak_ref_clear(weak_ref: *mut GWeakRef);
}
unsafe extern "C" {
pub fn g_weak_ref_get(weak_ref: *mut GWeakRef) -> gpointer;
}
unsafe 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,
>;
pub const GBindingFlags_G_BINDING_DEFAULT: GBindingFlags = 0;
pub const GBindingFlags_G_BINDING_BIDIRECTIONAL: GBindingFlags = 1;
pub const GBindingFlags_G_BINDING_SYNC_CREATE: GBindingFlags = 2;
pub const GBindingFlags_G_BINDING_INVERT_BOOLEAN: GBindingFlags = 4;
pub type GBindingFlags = ::std::os::raw::c_uint;
unsafe extern "C" {
pub fn g_binding_flags_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_binding_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_binding_get_flags(binding: *mut GBinding) -> GBindingFlags;
}
unsafe extern "C" {
pub fn g_binding_get_source(binding: *mut GBinding) -> *mut GObject;
}
unsafe extern "C" {
pub fn g_binding_dup_source(binding: *mut GBinding) -> *mut GObject;
}
unsafe extern "C" {
pub fn g_binding_get_target(binding: *mut GBinding) -> *mut GObject;
}
unsafe extern "C" {
pub fn g_binding_dup_target(binding: *mut GBinding) -> *mut GObject;
}
unsafe extern "C" {
pub fn g_binding_get_source_property(binding: *mut GBinding) -> *const gchar;
}
unsafe extern "C" {
pub fn g_binding_get_target_property(binding: *mut GBinding) -> *const gchar;
}
unsafe extern "C" {
pub fn g_binding_unbind(binding: *mut GBinding);
}
unsafe extern "C" {
pub fn g_object_bind_property(
source: gpointer,
source_property: *const gchar,
target: gpointer,
target_property: *const gchar,
flags: GBindingFlags,
) -> *mut GBinding;
}
unsafe 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;
}
unsafe 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;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GBindingGroup {
_unused: [u8; 0],
}
pub type GBindingGroup = _GBindingGroup;
unsafe extern "C" {
pub fn g_binding_group_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_binding_group_new() -> *mut GBindingGroup;
}
unsafe extern "C" {
pub fn g_binding_group_dup_source(self_: *mut GBindingGroup) -> gpointer;
}
unsafe extern "C" {
pub fn g_binding_group_set_source(self_: *mut GBindingGroup, source: gpointer);
}
unsafe extern "C" {
pub fn g_binding_group_bind(
self_: *mut GBindingGroup,
source_property: *const gchar,
target: gpointer,
target_property: *const gchar,
flags: GBindingFlags,
);
}
unsafe extern "C" {
pub fn g_binding_group_bind_full(
self_: *mut GBindingGroup,
source_property: *const gchar,
target: gpointer,
target_property: *const gchar,
flags: GBindingFlags,
transform_to: GBindingTransformFunc,
transform_from: GBindingTransformFunc,
user_data: gpointer,
user_data_destroy: GDestroyNotify,
);
}
unsafe extern "C" {
pub fn g_binding_group_bind_with_closures(
self_: *mut GBindingGroup,
source_property: *const gchar,
target: gpointer,
target_property: *const gchar,
flags: GBindingFlags,
transform_to: *mut GClosure,
transform_from: *mut GClosure,
);
}
pub type GEnumClass = _GEnumClass;
pub type GFlagsClass = _GFlagsClass;
pub type GEnumValue = _GEnumValue;
pub type GFlagsValue = _GFlagsValue;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GEnumClass {
pub g_type_class: GTypeClass,
pub minimum: gint,
pub maximum: gint,
pub n_values: guint,
pub values: *mut GEnumValue,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GEnumClass"][::std::mem::size_of::<_GEnumClass>() - 32usize];
["Alignment of _GEnumClass"][::std::mem::align_of::<_GEnumClass>() - 8usize];
["Offset of field: _GEnumClass::g_type_class"]
[::std::mem::offset_of!(_GEnumClass, g_type_class) - 0usize];
["Offset of field: _GEnumClass::minimum"]
[::std::mem::offset_of!(_GEnumClass, minimum) - 8usize];
["Offset of field: _GEnumClass::maximum"]
[::std::mem::offset_of!(_GEnumClass, maximum) - 12usize];
["Offset of field: _GEnumClass::n_values"]
[::std::mem::offset_of!(_GEnumClass, n_values) - 16usize];
["Offset of field: _GEnumClass::values"][::std::mem::offset_of!(_GEnumClass, values) - 24usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GFlagsClass {
pub g_type_class: GTypeClass,
pub mask: guint,
pub n_values: guint,
pub values: *mut GFlagsValue,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GFlagsClass"][::std::mem::size_of::<_GFlagsClass>() - 24usize];
["Alignment of _GFlagsClass"][::std::mem::align_of::<_GFlagsClass>() - 8usize];
["Offset of field: _GFlagsClass::g_type_class"]
[::std::mem::offset_of!(_GFlagsClass, g_type_class) - 0usize];
["Offset of field: _GFlagsClass::mask"][::std::mem::offset_of!(_GFlagsClass, mask) - 8usize];
["Offset of field: _GFlagsClass::n_values"]
[::std::mem::offset_of!(_GFlagsClass, n_values) - 12usize];
["Offset of field: _GFlagsClass::values"]
[::std::mem::offset_of!(_GFlagsClass, values) - 16usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GEnumValue {
pub value: gint,
pub value_name: *const gchar,
pub value_nick: *const gchar,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GEnumValue"][::std::mem::size_of::<_GEnumValue>() - 24usize];
["Alignment of _GEnumValue"][::std::mem::align_of::<_GEnumValue>() - 8usize];
["Offset of field: _GEnumValue::value"][::std::mem::offset_of!(_GEnumValue, value) - 0usize];
["Offset of field: _GEnumValue::value_name"]
[::std::mem::offset_of!(_GEnumValue, value_name) - 8usize];
["Offset of field: _GEnumValue::value_nick"]
[::std::mem::offset_of!(_GEnumValue, value_nick) - 16usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GFlagsValue {
pub value: guint,
pub value_name: *const gchar,
pub value_nick: *const gchar,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GFlagsValue"][::std::mem::size_of::<_GFlagsValue>() - 24usize];
["Alignment of _GFlagsValue"][::std::mem::align_of::<_GFlagsValue>() - 8usize];
["Offset of field: _GFlagsValue::value"][::std::mem::offset_of!(_GFlagsValue, value) - 0usize];
["Offset of field: _GFlagsValue::value_name"]
[::std::mem::offset_of!(_GFlagsValue, value_name) - 8usize];
["Offset of field: _GFlagsValue::value_nick"]
[::std::mem::offset_of!(_GFlagsValue, value_nick) - 16usize];
};
unsafe extern "C" {
pub fn g_enum_get_value(enum_class: *mut GEnumClass, value: gint) -> *mut GEnumValue;
}
unsafe extern "C" {
pub fn g_enum_get_value_by_name(
enum_class: *mut GEnumClass,
name: *const gchar,
) -> *mut GEnumValue;
}
unsafe extern "C" {
pub fn g_enum_get_value_by_nick(
enum_class: *mut GEnumClass,
nick: *const gchar,
) -> *mut GEnumValue;
}
unsafe extern "C" {
pub fn g_flags_get_first_value(flags_class: *mut GFlagsClass, value: guint)
-> *mut GFlagsValue;
}
unsafe extern "C" {
pub fn g_flags_get_value_by_name(
flags_class: *mut GFlagsClass,
name: *const gchar,
) -> *mut GFlagsValue;
}
unsafe extern "C" {
pub fn g_flags_get_value_by_nick(
flags_class: *mut GFlagsClass,
nick: *const gchar,
) -> *mut GFlagsValue;
}
unsafe extern "C" {
pub fn g_enum_to_string(g_enum_type: GType, value: gint) -> *mut gchar;
}
unsafe extern "C" {
pub fn g_flags_to_string(flags_type: GType, value: guint) -> *mut gchar;
}
unsafe extern "C" {
pub fn g_value_set_enum(value: *mut GValue, v_enum: gint);
}
unsafe extern "C" {
pub fn g_value_get_enum(value: *const GValue) -> gint;
}
unsafe extern "C" {
pub fn g_value_set_flags(value: *mut GValue, v_flags: guint);
}
unsafe extern "C" {
pub fn g_value_get_flags(value: *const GValue) -> guint;
}
unsafe extern "C" {
pub fn g_enum_register_static(
name: *const gchar,
const_static_values: *const GEnumValue,
) -> GType;
}
unsafe extern "C" {
pub fn g_flags_register_static(
name: *const gchar,
const_static_values: *const GFlagsValue,
) -> GType;
}
unsafe extern "C" {
pub fn g_enum_complete_type_info(
g_enum_type: GType,
info: *mut GTypeInfo,
const_values: *const GEnumValue,
);
}
unsafe extern "C" {
pub fn g_flags_complete_type_info(
g_flags_type: GType,
info: *mut GTypeInfo,
const_values: *const GFlagsValue,
);
}
unsafe extern "C" {
pub fn g_unicode_type_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_unicode_break_type_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_unicode_script_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_normalize_mode_get_type() -> GType;
}
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, PartialEq, Eq)]
pub struct _GParamSpecChar {
pub parent_instance: GParamSpec,
pub minimum: gint8,
pub maximum: gint8,
pub default_value: gint8,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GParamSpecChar"][::std::mem::size_of::<_GParamSpecChar>() - 80usize];
["Alignment of _GParamSpecChar"][::std::mem::align_of::<_GParamSpecChar>() - 8usize];
["Offset of field: _GParamSpecChar::parent_instance"]
[::std::mem::offset_of!(_GParamSpecChar, parent_instance) - 0usize];
["Offset of field: _GParamSpecChar::minimum"]
[::std::mem::offset_of!(_GParamSpecChar, minimum) - 72usize];
["Offset of field: _GParamSpecChar::maximum"]
[::std::mem::offset_of!(_GParamSpecChar, maximum) - 73usize];
["Offset of field: _GParamSpecChar::default_value"]
[::std::mem::offset_of!(_GParamSpecChar, default_value) - 74usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GParamSpecUChar {
pub parent_instance: GParamSpec,
pub minimum: guint8,
pub maximum: guint8,
pub default_value: guint8,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GParamSpecUChar"][::std::mem::size_of::<_GParamSpecUChar>() - 80usize];
["Alignment of _GParamSpecUChar"][::std::mem::align_of::<_GParamSpecUChar>() - 8usize];
["Offset of field: _GParamSpecUChar::parent_instance"]
[::std::mem::offset_of!(_GParamSpecUChar, parent_instance) - 0usize];
["Offset of field: _GParamSpecUChar::minimum"]
[::std::mem::offset_of!(_GParamSpecUChar, minimum) - 72usize];
["Offset of field: _GParamSpecUChar::maximum"]
[::std::mem::offset_of!(_GParamSpecUChar, maximum) - 73usize];
["Offset of field: _GParamSpecUChar::default_value"]
[::std::mem::offset_of!(_GParamSpecUChar, default_value) - 74usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GParamSpecBoolean {
pub parent_instance: GParamSpec,
pub default_value: gboolean,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GParamSpecBoolean"][::std::mem::size_of::<_GParamSpecBoolean>() - 80usize];
["Alignment of _GParamSpecBoolean"][::std::mem::align_of::<_GParamSpecBoolean>() - 8usize];
["Offset of field: _GParamSpecBoolean::parent_instance"]
[::std::mem::offset_of!(_GParamSpecBoolean, parent_instance) - 0usize];
["Offset of field: _GParamSpecBoolean::default_value"]
[::std::mem::offset_of!(_GParamSpecBoolean, default_value) - 72usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GParamSpecInt {
pub parent_instance: GParamSpec,
pub minimum: gint,
pub maximum: gint,
pub default_value: gint,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GParamSpecInt"][::std::mem::size_of::<_GParamSpecInt>() - 88usize];
["Alignment of _GParamSpecInt"][::std::mem::align_of::<_GParamSpecInt>() - 8usize];
["Offset of field: _GParamSpecInt::parent_instance"]
[::std::mem::offset_of!(_GParamSpecInt, parent_instance) - 0usize];
["Offset of field: _GParamSpecInt::minimum"]
[::std::mem::offset_of!(_GParamSpecInt, minimum) - 72usize];
["Offset of field: _GParamSpecInt::maximum"]
[::std::mem::offset_of!(_GParamSpecInt, maximum) - 76usize];
["Offset of field: _GParamSpecInt::default_value"]
[::std::mem::offset_of!(_GParamSpecInt, default_value) - 80usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GParamSpecUInt {
pub parent_instance: GParamSpec,
pub minimum: guint,
pub maximum: guint,
pub default_value: guint,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GParamSpecUInt"][::std::mem::size_of::<_GParamSpecUInt>() - 88usize];
["Alignment of _GParamSpecUInt"][::std::mem::align_of::<_GParamSpecUInt>() - 8usize];
["Offset of field: _GParamSpecUInt::parent_instance"]
[::std::mem::offset_of!(_GParamSpecUInt, parent_instance) - 0usize];
["Offset of field: _GParamSpecUInt::minimum"]
[::std::mem::offset_of!(_GParamSpecUInt, minimum) - 72usize];
["Offset of field: _GParamSpecUInt::maximum"]
[::std::mem::offset_of!(_GParamSpecUInt, maximum) - 76usize];
["Offset of field: _GParamSpecUInt::default_value"]
[::std::mem::offset_of!(_GParamSpecUInt, default_value) - 80usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GParamSpecLong {
pub parent_instance: GParamSpec,
pub minimum: glong,
pub maximum: glong,
pub default_value: glong,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GParamSpecLong"][::std::mem::size_of::<_GParamSpecLong>() - 96usize];
["Alignment of _GParamSpecLong"][::std::mem::align_of::<_GParamSpecLong>() - 8usize];
["Offset of field: _GParamSpecLong::parent_instance"]
[::std::mem::offset_of!(_GParamSpecLong, parent_instance) - 0usize];
["Offset of field: _GParamSpecLong::minimum"]
[::std::mem::offset_of!(_GParamSpecLong, minimum) - 72usize];
["Offset of field: _GParamSpecLong::maximum"]
[::std::mem::offset_of!(_GParamSpecLong, maximum) - 80usize];
["Offset of field: _GParamSpecLong::default_value"]
[::std::mem::offset_of!(_GParamSpecLong, default_value) - 88usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GParamSpecULong {
pub parent_instance: GParamSpec,
pub minimum: gulong,
pub maximum: gulong,
pub default_value: gulong,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GParamSpecULong"][::std::mem::size_of::<_GParamSpecULong>() - 96usize];
["Alignment of _GParamSpecULong"][::std::mem::align_of::<_GParamSpecULong>() - 8usize];
["Offset of field: _GParamSpecULong::parent_instance"]
[::std::mem::offset_of!(_GParamSpecULong, parent_instance) - 0usize];
["Offset of field: _GParamSpecULong::minimum"]
[::std::mem::offset_of!(_GParamSpecULong, minimum) - 72usize];
["Offset of field: _GParamSpecULong::maximum"]
[::std::mem::offset_of!(_GParamSpecULong, maximum) - 80usize];
["Offset of field: _GParamSpecULong::default_value"]
[::std::mem::offset_of!(_GParamSpecULong, default_value) - 88usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GParamSpecInt64 {
pub parent_instance: GParamSpec,
pub minimum: gint64,
pub maximum: gint64,
pub default_value: gint64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GParamSpecInt64"][::std::mem::size_of::<_GParamSpecInt64>() - 96usize];
["Alignment of _GParamSpecInt64"][::std::mem::align_of::<_GParamSpecInt64>() - 8usize];
["Offset of field: _GParamSpecInt64::parent_instance"]
[::std::mem::offset_of!(_GParamSpecInt64, parent_instance) - 0usize];
["Offset of field: _GParamSpecInt64::minimum"]
[::std::mem::offset_of!(_GParamSpecInt64, minimum) - 72usize];
["Offset of field: _GParamSpecInt64::maximum"]
[::std::mem::offset_of!(_GParamSpecInt64, maximum) - 80usize];
["Offset of field: _GParamSpecInt64::default_value"]
[::std::mem::offset_of!(_GParamSpecInt64, default_value) - 88usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GParamSpecUInt64 {
pub parent_instance: GParamSpec,
pub minimum: guint64,
pub maximum: guint64,
pub default_value: guint64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GParamSpecUInt64"][::std::mem::size_of::<_GParamSpecUInt64>() - 96usize];
["Alignment of _GParamSpecUInt64"][::std::mem::align_of::<_GParamSpecUInt64>() - 8usize];
["Offset of field: _GParamSpecUInt64::parent_instance"]
[::std::mem::offset_of!(_GParamSpecUInt64, parent_instance) - 0usize];
["Offset of field: _GParamSpecUInt64::minimum"]
[::std::mem::offset_of!(_GParamSpecUInt64, minimum) - 72usize];
["Offset of field: _GParamSpecUInt64::maximum"]
[::std::mem::offset_of!(_GParamSpecUInt64, maximum) - 80usize];
["Offset of field: _GParamSpecUInt64::default_value"]
[::std::mem::offset_of!(_GParamSpecUInt64, default_value) - 88usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GParamSpecUnichar {
pub parent_instance: GParamSpec,
pub default_value: gunichar,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GParamSpecUnichar"][::std::mem::size_of::<_GParamSpecUnichar>() - 80usize];
["Alignment of _GParamSpecUnichar"][::std::mem::align_of::<_GParamSpecUnichar>() - 8usize];
["Offset of field: _GParamSpecUnichar::parent_instance"]
[::std::mem::offset_of!(_GParamSpecUnichar, parent_instance) - 0usize];
["Offset of field: _GParamSpecUnichar::default_value"]
[::std::mem::offset_of!(_GParamSpecUnichar, default_value) - 72usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GParamSpecEnum {
pub parent_instance: GParamSpec,
pub enum_class: *mut GEnumClass,
pub default_value: gint,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GParamSpecEnum"][::std::mem::size_of::<_GParamSpecEnum>() - 88usize];
["Alignment of _GParamSpecEnum"][::std::mem::align_of::<_GParamSpecEnum>() - 8usize];
["Offset of field: _GParamSpecEnum::parent_instance"]
[::std::mem::offset_of!(_GParamSpecEnum, parent_instance) - 0usize];
["Offset of field: _GParamSpecEnum::enum_class"]
[::std::mem::offset_of!(_GParamSpecEnum, enum_class) - 72usize];
["Offset of field: _GParamSpecEnum::default_value"]
[::std::mem::offset_of!(_GParamSpecEnum, default_value) - 80usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GParamSpecFlags {
pub parent_instance: GParamSpec,
pub flags_class: *mut GFlagsClass,
pub default_value: guint,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GParamSpecFlags"][::std::mem::size_of::<_GParamSpecFlags>() - 88usize];
["Alignment of _GParamSpecFlags"][::std::mem::align_of::<_GParamSpecFlags>() - 8usize];
["Offset of field: _GParamSpecFlags::parent_instance"]
[::std::mem::offset_of!(_GParamSpecFlags, parent_instance) - 0usize];
["Offset of field: _GParamSpecFlags::flags_class"]
[::std::mem::offset_of!(_GParamSpecFlags, flags_class) - 72usize];
["Offset of field: _GParamSpecFlags::default_value"]
[::std::mem::offset_of!(_GParamSpecFlags, default_value) - 80usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq)]
pub struct _GParamSpecFloat {
pub parent_instance: GParamSpec,
pub minimum: gfloat,
pub maximum: gfloat,
pub default_value: gfloat,
pub epsilon: gfloat,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GParamSpecFloat"][::std::mem::size_of::<_GParamSpecFloat>() - 88usize];
["Alignment of _GParamSpecFloat"][::std::mem::align_of::<_GParamSpecFloat>() - 8usize];
["Offset of field: _GParamSpecFloat::parent_instance"]
[::std::mem::offset_of!(_GParamSpecFloat, parent_instance) - 0usize];
["Offset of field: _GParamSpecFloat::minimum"]
[::std::mem::offset_of!(_GParamSpecFloat, minimum) - 72usize];
["Offset of field: _GParamSpecFloat::maximum"]
[::std::mem::offset_of!(_GParamSpecFloat, maximum) - 76usize];
["Offset of field: _GParamSpecFloat::default_value"]
[::std::mem::offset_of!(_GParamSpecFloat, default_value) - 80usize];
["Offset of field: _GParamSpecFloat::epsilon"]
[::std::mem::offset_of!(_GParamSpecFloat, epsilon) - 84usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq)]
pub struct _GParamSpecDouble {
pub parent_instance: GParamSpec,
pub minimum: gdouble,
pub maximum: gdouble,
pub default_value: gdouble,
pub epsilon: gdouble,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GParamSpecDouble"][::std::mem::size_of::<_GParamSpecDouble>() - 104usize];
["Alignment of _GParamSpecDouble"][::std::mem::align_of::<_GParamSpecDouble>() - 8usize];
["Offset of field: _GParamSpecDouble::parent_instance"]
[::std::mem::offset_of!(_GParamSpecDouble, parent_instance) - 0usize];
["Offset of field: _GParamSpecDouble::minimum"]
[::std::mem::offset_of!(_GParamSpecDouble, minimum) - 72usize];
["Offset of field: _GParamSpecDouble::maximum"]
[::std::mem::offset_of!(_GParamSpecDouble, maximum) - 80usize];
["Offset of field: _GParamSpecDouble::default_value"]
[::std::mem::offset_of!(_GParamSpecDouble, default_value) - 88usize];
["Offset of field: _GParamSpecDouble::epsilon"]
[::std::mem::offset_of!(_GParamSpecDouble, epsilon) - 96usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
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_align_1: [u8; 0],
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>,
pub __bindgen_padding_0: [u16; 3usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GParamSpecString"][::std::mem::size_of::<_GParamSpecString>() - 104usize];
["Alignment of _GParamSpecString"][::std::mem::align_of::<_GParamSpecString>() - 8usize];
["Offset of field: _GParamSpecString::parent_instance"]
[::std::mem::offset_of!(_GParamSpecString, parent_instance) - 0usize];
["Offset of field: _GParamSpecString::default_value"]
[::std::mem::offset_of!(_GParamSpecString, default_value) - 72usize];
["Offset of field: _GParamSpecString::cset_first"]
[::std::mem::offset_of!(_GParamSpecString, cset_first) - 80usize];
["Offset of field: _GParamSpecString::cset_nth"]
[::std::mem::offset_of!(_GParamSpecString, cset_nth) - 88usize];
["Offset of field: _GParamSpecString::substitutor"]
[::std::mem::offset_of!(_GParamSpecString, substitutor) - 96usize];
};
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 unsafe fn null_fold_if_empty_raw(this: *const Self) -> guint {
unsafe {
::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
::std::ptr::addr_of!((*this)._bitfield_1),
0usize,
1u8,
) as u32)
}
}
#[inline]
pub unsafe fn set_null_fold_if_empty_raw(this: *mut Self, val: guint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
::std::ptr::addr_of_mut!((*this)._bitfield_1),
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 unsafe fn ensure_non_null_raw(this: *const Self) -> guint {
unsafe {
::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
::std::ptr::addr_of!((*this)._bitfield_1),
1usize,
1u8,
) as u32)
}
}
#[inline]
pub unsafe fn set_ensure_non_null_raw(this: *mut Self, val: guint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
::std::ptr::addr_of_mut!((*this)._bitfield_1),
1usize,
1u8,
val as u64,
)
}
}
#[inline]
pub fn new_bitfield_1(
null_fold_if_empty: guint,
ensure_non_null: guint,
) -> __BindgenBitfieldUnit<[u8; 1usize]> {
let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = 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, PartialEq, Eq)]
pub struct _GParamSpecParam {
pub parent_instance: GParamSpec,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GParamSpecParam"][::std::mem::size_of::<_GParamSpecParam>() - 72usize];
["Alignment of _GParamSpecParam"][::std::mem::align_of::<_GParamSpecParam>() - 8usize];
["Offset of field: _GParamSpecParam::parent_instance"]
[::std::mem::offset_of!(_GParamSpecParam, parent_instance) - 0usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GParamSpecBoxed {
pub parent_instance: GParamSpec,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GParamSpecBoxed"][::std::mem::size_of::<_GParamSpecBoxed>() - 72usize];
["Alignment of _GParamSpecBoxed"][::std::mem::align_of::<_GParamSpecBoxed>() - 8usize];
["Offset of field: _GParamSpecBoxed::parent_instance"]
[::std::mem::offset_of!(_GParamSpecBoxed, parent_instance) - 0usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GParamSpecPointer {
pub parent_instance: GParamSpec,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GParamSpecPointer"][::std::mem::size_of::<_GParamSpecPointer>() - 72usize];
["Alignment of _GParamSpecPointer"][::std::mem::align_of::<_GParamSpecPointer>() - 8usize];
["Offset of field: _GParamSpecPointer::parent_instance"]
[::std::mem::offset_of!(_GParamSpecPointer, parent_instance) - 0usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GParamSpecValueArray {
pub parent_instance: GParamSpec,
pub element_spec: *mut GParamSpec,
pub fixed_n_elements: guint,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GParamSpecValueArray"][::std::mem::size_of::<_GParamSpecValueArray>() - 88usize];
["Alignment of _GParamSpecValueArray"]
[::std::mem::align_of::<_GParamSpecValueArray>() - 8usize];
["Offset of field: _GParamSpecValueArray::parent_instance"]
[::std::mem::offset_of!(_GParamSpecValueArray, parent_instance) - 0usize];
["Offset of field: _GParamSpecValueArray::element_spec"]
[::std::mem::offset_of!(_GParamSpecValueArray, element_spec) - 72usize];
["Offset of field: _GParamSpecValueArray::fixed_n_elements"]
[::std::mem::offset_of!(_GParamSpecValueArray, fixed_n_elements) - 80usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GParamSpecObject {
pub parent_instance: GParamSpec,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GParamSpecObject"][::std::mem::size_of::<_GParamSpecObject>() - 72usize];
["Alignment of _GParamSpecObject"][::std::mem::align_of::<_GParamSpecObject>() - 8usize];
["Offset of field: _GParamSpecObject::parent_instance"]
[::std::mem::offset_of!(_GParamSpecObject, parent_instance) - 0usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GParamSpecOverride {
pub parent_instance: GParamSpec,
pub overridden: *mut GParamSpec,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GParamSpecOverride"][::std::mem::size_of::<_GParamSpecOverride>() - 80usize];
["Alignment of _GParamSpecOverride"][::std::mem::align_of::<_GParamSpecOverride>() - 8usize];
["Offset of field: _GParamSpecOverride::parent_instance"]
[::std::mem::offset_of!(_GParamSpecOverride, parent_instance) - 0usize];
["Offset of field: _GParamSpecOverride::overridden"]
[::std::mem::offset_of!(_GParamSpecOverride, overridden) - 72usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GParamSpecGType {
pub parent_instance: GParamSpec,
pub is_a_type: GType,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GParamSpecGType"][::std::mem::size_of::<_GParamSpecGType>() - 80usize];
["Alignment of _GParamSpecGType"][::std::mem::align_of::<_GParamSpecGType>() - 8usize];
["Offset of field: _GParamSpecGType::parent_instance"]
[::std::mem::offset_of!(_GParamSpecGType, parent_instance) - 0usize];
["Offset of field: _GParamSpecGType::is_a_type"]
[::std::mem::offset_of!(_GParamSpecGType, is_a_type) - 72usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GParamSpecVariant {
pub parent_instance: GParamSpec,
pub type_: *mut GVariantType,
pub default_value: *mut GVariant,
pub padding: [gpointer; 4usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GParamSpecVariant"][::std::mem::size_of::<_GParamSpecVariant>() - 120usize];
["Alignment of _GParamSpecVariant"][::std::mem::align_of::<_GParamSpecVariant>() - 8usize];
["Offset of field: _GParamSpecVariant::parent_instance"]
[::std::mem::offset_of!(_GParamSpecVariant, parent_instance) - 0usize];
["Offset of field: _GParamSpecVariant::type_"]
[::std::mem::offset_of!(_GParamSpecVariant, type_) - 72usize];
["Offset of field: _GParamSpecVariant::default_value"]
[::std::mem::offset_of!(_GParamSpecVariant, default_value) - 80usize];
["Offset of field: _GParamSpecVariant::padding"]
[::std::mem::offset_of!(_GParamSpecVariant, padding) - 88usize];
};
unsafe 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;
}
unsafe 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;
}
unsafe extern "C" {
pub fn g_param_spec_boolean(
name: *const gchar,
nick: *const gchar,
blurb: *const gchar,
default_value: gboolean,
flags: GParamFlags,
) -> *mut GParamSpec;
}
unsafe 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;
}
unsafe 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;
}
unsafe 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;
}
unsafe 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;
}
unsafe 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;
}
unsafe 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;
}
unsafe extern "C" {
pub fn g_param_spec_unichar(
name: *const gchar,
nick: *const gchar,
blurb: *const gchar,
default_value: gunichar,
flags: GParamFlags,
) -> *mut GParamSpec;
}
unsafe 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;
}
unsafe 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;
}
unsafe 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;
}
unsafe 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;
}
unsafe 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;
}
unsafe extern "C" {
pub fn g_param_spec_param(
name: *const gchar,
nick: *const gchar,
blurb: *const gchar,
param_type: GType,
flags: GParamFlags,
) -> *mut GParamSpec;
}
unsafe extern "C" {
pub fn g_param_spec_boxed(
name: *const gchar,
nick: *const gchar,
blurb: *const gchar,
boxed_type: GType,
flags: GParamFlags,
) -> *mut GParamSpec;
}
unsafe extern "C" {
pub fn g_param_spec_pointer(
name: *const gchar,
nick: *const gchar,
blurb: *const gchar,
flags: GParamFlags,
) -> *mut GParamSpec;
}
unsafe 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;
}
unsafe extern "C" {
pub fn g_param_spec_object(
name: *const gchar,
nick: *const gchar,
blurb: *const gchar,
object_type: GType,
flags: GParamFlags,
) -> *mut GParamSpec;
}
unsafe extern "C" {
pub fn g_param_spec_override(
name: *const gchar,
overridden: *mut GParamSpec,
) -> *mut GParamSpec;
}
unsafe 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;
}
unsafe 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;
}
unsafe extern "C" {
pub static mut g_param_spec_types: *mut GType;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GSignalGroup {
_unused: [u8; 0],
}
pub type GSignalGroup = _GSignalGroup;
unsafe extern "C" {
pub fn g_signal_group_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_signal_group_new(target_type: GType) -> *mut GSignalGroup;
}
unsafe extern "C" {
pub fn g_signal_group_set_target(self_: *mut GSignalGroup, target: gpointer);
}
unsafe extern "C" {
pub fn g_signal_group_dup_target(self_: *mut GSignalGroup) -> gpointer;
}
unsafe extern "C" {
pub fn g_signal_group_block(self_: *mut GSignalGroup);
}
unsafe extern "C" {
pub fn g_signal_group_unblock(self_: *mut GSignalGroup);
}
unsafe extern "C" {
pub fn g_signal_group_connect_closure(
self_: *mut GSignalGroup,
detailed_signal: *const gchar,
closure: *mut GClosure,
after: gboolean,
);
}
unsafe extern "C" {
pub fn g_signal_group_connect_object(
self_: *mut GSignalGroup,
detailed_signal: *const gchar,
c_handler: GCallback,
object: gpointer,
flags: GConnectFlags,
);
}
unsafe extern "C" {
pub fn g_signal_group_connect_data(
self_: *mut GSignalGroup,
detailed_signal: *const gchar,
c_handler: GCallback,
data: gpointer,
notify: GClosureNotify,
flags: GConnectFlags,
);
}
unsafe extern "C" {
pub fn g_signal_group_connect(
self_: *mut GSignalGroup,
detailed_signal: *const gchar,
c_handler: GCallback,
data: gpointer,
);
}
unsafe extern "C" {
pub fn g_signal_group_connect_after(
self_: *mut GSignalGroup,
detailed_signal: *const gchar,
c_handler: GCallback,
data: gpointer,
);
}
unsafe extern "C" {
pub fn g_signal_group_connect_swapped(
self_: *mut GSignalGroup,
detailed_signal: *const gchar,
c_handler: GCallback,
data: gpointer,
);
}
unsafe extern "C" {
pub fn g_source_set_closure(source: *mut GSource, closure: *mut GClosure);
}
unsafe 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;
pub type GTypeModule_queueautoptr = *mut GQueue;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
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,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GTypeModule"][::std::mem::size_of::<_GTypeModule>() - 56usize];
["Alignment of _GTypeModule"][::std::mem::align_of::<_GTypeModule>() - 8usize];
["Offset of field: _GTypeModule::parent_instance"]
[::std::mem::offset_of!(_GTypeModule, parent_instance) - 0usize];
["Offset of field: _GTypeModule::use_count"]
[::std::mem::offset_of!(_GTypeModule, use_count) - 24usize];
["Offset of field: _GTypeModule::type_infos"]
[::std::mem::offset_of!(_GTypeModule, type_infos) - 32usize];
["Offset of field: _GTypeModule::interface_infos"]
[::std::mem::offset_of!(_GTypeModule, interface_infos) - 40usize];
["Offset of field: _GTypeModule::name"][::std::mem::offset_of!(_GTypeModule, name) - 48usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
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()>,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GTypeModuleClass"][::std::mem::size_of::<_GTypeModuleClass>() - 184usize];
["Alignment of _GTypeModuleClass"][::std::mem::align_of::<_GTypeModuleClass>() - 8usize];
["Offset of field: _GTypeModuleClass::parent_class"]
[::std::mem::offset_of!(_GTypeModuleClass, parent_class) - 0usize];
["Offset of field: _GTypeModuleClass::load"]
[::std::mem::offset_of!(_GTypeModuleClass, load) - 136usize];
["Offset of field: _GTypeModuleClass::unload"]
[::std::mem::offset_of!(_GTypeModuleClass, unload) - 144usize];
["Offset of field: _GTypeModuleClass::reserved1"]
[::std::mem::offset_of!(_GTypeModuleClass, reserved1) - 152usize];
["Offset of field: _GTypeModuleClass::reserved2"]
[::std::mem::offset_of!(_GTypeModuleClass, reserved2) - 160usize];
["Offset of field: _GTypeModuleClass::reserved3"]
[::std::mem::offset_of!(_GTypeModuleClass, reserved3) - 168usize];
["Offset of field: _GTypeModuleClass::reserved4"]
[::std::mem::offset_of!(_GTypeModuleClass, reserved4) - 176usize];
};
unsafe extern "C" {
pub fn g_type_module_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_type_module_use(module: *mut GTypeModule) -> gboolean;
}
unsafe extern "C" {
pub fn g_type_module_unuse(module: *mut GTypeModule);
}
unsafe extern "C" {
pub fn g_type_module_set_name(module: *mut GTypeModule, name: *const gchar);
}
unsafe 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;
}
unsafe extern "C" {
pub fn g_type_module_add_interface(
module: *mut GTypeModule,
instance_type: GType,
interface_type: GType,
interface_info: *const GInterfaceInfo,
);
}
unsafe extern "C" {
pub fn g_type_module_register_enum(
module: *mut GTypeModule,
name: *const gchar,
const_static_values: *const GEnumValue,
) -> GType;
}
unsafe 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, PartialEq, Eq)]
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,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GTypePluginClass"][::std::mem::size_of::<_GTypePluginClass>() - 48usize];
["Alignment of _GTypePluginClass"][::std::mem::align_of::<_GTypePluginClass>() - 8usize];
["Offset of field: _GTypePluginClass::base_iface"]
[::std::mem::offset_of!(_GTypePluginClass, base_iface) - 0usize];
["Offset of field: _GTypePluginClass::use_plugin"]
[::std::mem::offset_of!(_GTypePluginClass, use_plugin) - 16usize];
["Offset of field: _GTypePluginClass::unuse_plugin"]
[::std::mem::offset_of!(_GTypePluginClass, unuse_plugin) - 24usize];
["Offset of field: _GTypePluginClass::complete_type_info"]
[::std::mem::offset_of!(_GTypePluginClass, complete_type_info) - 32usize];
["Offset of field: _GTypePluginClass::complete_interface_info"]
[::std::mem::offset_of!(_GTypePluginClass, complete_interface_info) - 40usize];
};
unsafe extern "C" {
pub fn g_type_plugin_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_type_plugin_use(plugin: *mut GTypePlugin);
}
unsafe extern "C" {
pub fn g_type_plugin_unuse(plugin: *mut GTypePlugin);
}
unsafe extern "C" {
pub fn g_type_plugin_complete_type_info(
plugin: *mut GTypePlugin,
g_type: GType,
info: *mut GTypeInfo,
value_table: *mut GTypeValueTable,
);
}
unsafe 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, PartialEq, Eq)]
pub struct _GValueArray {
pub n_values: guint,
pub values: *mut GValue,
pub n_prealloced: guint,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GValueArray"][::std::mem::size_of::<_GValueArray>() - 24usize];
["Alignment of _GValueArray"][::std::mem::align_of::<_GValueArray>() - 8usize];
["Offset of field: _GValueArray::n_values"]
[::std::mem::offset_of!(_GValueArray, n_values) - 0usize];
["Offset of field: _GValueArray::values"]
[::std::mem::offset_of!(_GValueArray, values) - 8usize];
["Offset of field: _GValueArray::n_prealloced"]
[::std::mem::offset_of!(_GValueArray, n_prealloced) - 16usize];
};
unsafe extern "C" {
pub fn g_value_array_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_value_array_get_nth(value_array: *mut GValueArray, index_: guint) -> *mut GValue;
}
unsafe extern "C" {
pub fn g_value_array_new(n_prealloced: guint) -> *mut GValueArray;
}
unsafe extern "C" {
pub fn g_value_array_free(value_array: *mut GValueArray);
}
unsafe extern "C" {
pub fn g_value_array_copy(value_array: *const GValueArray) -> *mut GValueArray;
}
unsafe extern "C" {
pub fn g_value_array_prepend(
value_array: *mut GValueArray,
value: *const GValue,
) -> *mut GValueArray;
}
unsafe extern "C" {
pub fn g_value_array_append(
value_array: *mut GValueArray,
value: *const GValue,
) -> *mut GValueArray;
}
unsafe extern "C" {
pub fn g_value_array_insert(
value_array: *mut GValueArray,
index_: guint,
value: *const GValue,
) -> *mut GValueArray;
}
unsafe extern "C" {
pub fn g_value_array_remove(value_array: *mut GValueArray, index_: guint) -> *mut GValueArray;
}
unsafe extern "C" {
pub fn g_value_array_sort(
value_array: *mut GValueArray,
compare_func: GCompareFunc,
) -> *mut GValueArray;
}
unsafe extern "C" {
pub fn g_value_array_sort_with_data(
value_array: *mut GValueArray,
compare_func: GCompareDataFunc,
user_data: gpointer,
) -> *mut GValueArray;
}
unsafe extern "C" {
pub fn g_value_set_char(value: *mut GValue, v_char: gchar);
}
unsafe extern "C" {
pub fn g_value_get_char(value: *const GValue) -> gchar;
}
unsafe extern "C" {
pub fn g_value_set_schar(value: *mut GValue, v_char: gint8);
}
unsafe extern "C" {
pub fn g_value_get_schar(value: *const GValue) -> gint8;
}
unsafe extern "C" {
pub fn g_value_set_uchar(value: *mut GValue, v_uchar: guchar);
}
unsafe extern "C" {
pub fn g_value_get_uchar(value: *const GValue) -> guchar;
}
unsafe extern "C" {
pub fn g_value_set_boolean(value: *mut GValue, v_boolean: gboolean);
}
unsafe extern "C" {
pub fn g_value_get_boolean(value: *const GValue) -> gboolean;
}
unsafe extern "C" {
pub fn g_value_set_int(value: *mut GValue, v_int: gint);
}
unsafe extern "C" {
pub fn g_value_get_int(value: *const GValue) -> gint;
}
unsafe extern "C" {
pub fn g_value_set_uint(value: *mut GValue, v_uint: guint);
}
unsafe extern "C" {
pub fn g_value_get_uint(value: *const GValue) -> guint;
}
unsafe extern "C" {
pub fn g_value_set_long(value: *mut GValue, v_long: glong);
}
unsafe extern "C" {
pub fn g_value_get_long(value: *const GValue) -> glong;
}
unsafe extern "C" {
pub fn g_value_set_ulong(value: *mut GValue, v_ulong: gulong);
}
unsafe extern "C" {
pub fn g_value_get_ulong(value: *const GValue) -> gulong;
}
unsafe extern "C" {
pub fn g_value_set_int64(value: *mut GValue, v_int64: gint64);
}
unsafe extern "C" {
pub fn g_value_get_int64(value: *const GValue) -> gint64;
}
unsafe extern "C" {
pub fn g_value_set_uint64(value: *mut GValue, v_uint64: guint64);
}
unsafe extern "C" {
pub fn g_value_get_uint64(value: *const GValue) -> guint64;
}
unsafe extern "C" {
pub fn g_value_set_float(value: *mut GValue, v_float: gfloat);
}
unsafe extern "C" {
pub fn g_value_get_float(value: *const GValue) -> gfloat;
}
unsafe extern "C" {
pub fn g_value_set_double(value: *mut GValue, v_double: gdouble);
}
unsafe extern "C" {
pub fn g_value_get_double(value: *const GValue) -> gdouble;
}
unsafe extern "C" {
pub fn g_value_set_string(value: *mut GValue, v_string: *const gchar);
}
unsafe extern "C" {
pub fn g_value_set_static_string(value: *mut GValue, v_string: *const gchar);
}
unsafe extern "C" {
pub fn g_value_set_interned_string(value: *mut GValue, v_string: *const gchar);
}
unsafe extern "C" {
pub fn g_value_get_string(value: *const GValue) -> *const gchar;
}
unsafe extern "C" {
pub fn g_value_dup_string(value: *const GValue) -> *mut gchar;
}
unsafe extern "C" {
pub fn g_value_steal_string(value: *mut GValue) -> *mut gchar;
}
unsafe extern "C" {
pub fn g_value_set_pointer(value: *mut GValue, v_pointer: gpointer);
}
unsafe extern "C" {
pub fn g_value_get_pointer(value: *const GValue) -> gpointer;
}
unsafe extern "C" {
pub fn g_gtype_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_value_set_gtype(value: *mut GValue, v_gtype: GType);
}
unsafe extern "C" {
pub fn g_value_get_gtype(value: *const GValue) -> GType;
}
unsafe extern "C" {
pub fn g_value_set_variant(value: *mut GValue, variant: *mut GVariant);
}
unsafe extern "C" {
pub fn g_value_take_variant(value: *mut GValue, variant: *mut GVariant);
}
unsafe extern "C" {
pub fn g_value_get_variant(value: *const GValue) -> *mut GVariant;
}
unsafe extern "C" {
pub fn g_value_dup_variant(value: *const GValue) -> *mut GVariant;
}
unsafe extern "C" {
pub fn g_pointer_type_register_static(name: *const gchar) -> GType;
}
unsafe extern "C" {
pub fn g_strdup_value_contents(value: *const GValue) -> *mut gchar;
}
unsafe extern "C" {
pub fn g_value_take_string(value: *mut GValue, v_string: *mut gchar);
}
unsafe 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 GClosure_queueautoptr = *mut GQueue;
pub type GEnumClass_autoptr = *mut GEnumClass;
pub type GEnumClass_listautoptr = *mut GList;
pub type GEnumClass_slistautoptr = *mut GSList;
pub type GEnumClass_queueautoptr = *mut GQueue;
pub type GFlagsClass_autoptr = *mut GFlagsClass;
pub type GFlagsClass_listautoptr = *mut GList;
pub type GFlagsClass_slistautoptr = *mut GSList;
pub type GFlagsClass_queueautoptr = *mut GQueue;
pub type GObject_autoptr = *mut GObject;
pub type GObject_listautoptr = *mut GList;
pub type GObject_slistautoptr = *mut GSList;
pub type GObject_queueautoptr = *mut GQueue;
pub type GInitiallyUnowned_autoptr = *mut GInitiallyUnowned;
pub type GInitiallyUnowned_listautoptr = *mut GList;
pub type GInitiallyUnowned_slistautoptr = *mut GSList;
pub type GInitiallyUnowned_queueautoptr = *mut GQueue;
pub type GParamSpec_autoptr = *mut GParamSpec;
pub type GParamSpec_listautoptr = *mut GList;
pub type GParamSpec_slistautoptr = *mut GSList;
pub type GParamSpec_queueautoptr = *mut GQueue;
pub type GTypeClass_autoptr = *mut GTypeClass;
pub type GTypeClass_listautoptr = *mut GList;
pub type GTypeClass_slistautoptr = *mut GSList;
pub type GTypeClass_queueautoptr = *mut GQueue;
pub const GAppInfoCreateFlags_G_APP_INFO_CREATE_NONE: GAppInfoCreateFlags = 0;
pub const GAppInfoCreateFlags_G_APP_INFO_CREATE_NEEDS_TERMINAL: GAppInfoCreateFlags = 1;
pub const GAppInfoCreateFlags_G_APP_INFO_CREATE_SUPPORTS_URIS: GAppInfoCreateFlags = 2;
pub const GAppInfoCreateFlags_G_APP_INFO_CREATE_SUPPORTS_STARTUP_NOTIFICATION: GAppInfoCreateFlags =
4;
pub type GAppInfoCreateFlags = ::std::os::raw::c_uint;
pub const GConverterFlags_G_CONVERTER_NO_FLAGS: GConverterFlags = 0;
pub const GConverterFlags_G_CONVERTER_INPUT_AT_END: GConverterFlags = 1;
pub const GConverterFlags_G_CONVERTER_FLUSH: GConverterFlags = 2;
pub type GConverterFlags = ::std::os::raw::c_uint;
pub const GConverterResult_G_CONVERTER_ERROR: GConverterResult = 0;
pub const GConverterResult_G_CONVERTER_CONVERTED: GConverterResult = 1;
pub const GConverterResult_G_CONVERTER_FINISHED: GConverterResult = 2;
pub const GConverterResult_G_CONVERTER_FLUSHED: GConverterResult = 3;
pub type GConverterResult = ::std::os::raw::c_uint;
pub const GDataStreamByteOrder_G_DATA_STREAM_BYTE_ORDER_BIG_ENDIAN: GDataStreamByteOrder = 0;
pub const GDataStreamByteOrder_G_DATA_STREAM_BYTE_ORDER_LITTLE_ENDIAN: GDataStreamByteOrder = 1;
pub const GDataStreamByteOrder_G_DATA_STREAM_BYTE_ORDER_HOST_ENDIAN: GDataStreamByteOrder = 2;
pub type GDataStreamByteOrder = ::std::os::raw::c_uint;
pub const GDataStreamNewlineType_G_DATA_STREAM_NEWLINE_TYPE_LF: GDataStreamNewlineType = 0;
pub const GDataStreamNewlineType_G_DATA_STREAM_NEWLINE_TYPE_CR: GDataStreamNewlineType = 1;
pub const GDataStreamNewlineType_G_DATA_STREAM_NEWLINE_TYPE_CR_LF: GDataStreamNewlineType = 2;
pub const GDataStreamNewlineType_G_DATA_STREAM_NEWLINE_TYPE_ANY: GDataStreamNewlineType = 3;
pub type GDataStreamNewlineType = ::std::os::raw::c_uint;
pub const GFileAttributeType_G_FILE_ATTRIBUTE_TYPE_INVALID: GFileAttributeType = 0;
pub const GFileAttributeType_G_FILE_ATTRIBUTE_TYPE_STRING: GFileAttributeType = 1;
pub const GFileAttributeType_G_FILE_ATTRIBUTE_TYPE_BYTE_STRING: GFileAttributeType = 2;
pub const GFileAttributeType_G_FILE_ATTRIBUTE_TYPE_BOOLEAN: GFileAttributeType = 3;
pub const GFileAttributeType_G_FILE_ATTRIBUTE_TYPE_UINT32: GFileAttributeType = 4;
pub const GFileAttributeType_G_FILE_ATTRIBUTE_TYPE_INT32: GFileAttributeType = 5;
pub const GFileAttributeType_G_FILE_ATTRIBUTE_TYPE_UINT64: GFileAttributeType = 6;
pub const GFileAttributeType_G_FILE_ATTRIBUTE_TYPE_INT64: GFileAttributeType = 7;
pub const GFileAttributeType_G_FILE_ATTRIBUTE_TYPE_OBJECT: GFileAttributeType = 8;
pub const GFileAttributeType_G_FILE_ATTRIBUTE_TYPE_STRINGV: GFileAttributeType = 9;
pub type GFileAttributeType = ::std::os::raw::c_uint;
pub const GFileAttributeInfoFlags_G_FILE_ATTRIBUTE_INFO_NONE: GFileAttributeInfoFlags = 0;
pub const GFileAttributeInfoFlags_G_FILE_ATTRIBUTE_INFO_COPY_WITH_FILE: GFileAttributeInfoFlags = 1;
pub const GFileAttributeInfoFlags_G_FILE_ATTRIBUTE_INFO_COPY_WHEN_MOVED: GFileAttributeInfoFlags =
2;
pub type GFileAttributeInfoFlags = ::std::os::raw::c_uint;
pub const GFileAttributeStatus_G_FILE_ATTRIBUTE_STATUS_UNSET: GFileAttributeStatus = 0;
pub const GFileAttributeStatus_G_FILE_ATTRIBUTE_STATUS_SET: GFileAttributeStatus = 1;
pub const GFileAttributeStatus_G_FILE_ATTRIBUTE_STATUS_ERROR_SETTING: GFileAttributeStatus = 2;
pub type GFileAttributeStatus = ::std::os::raw::c_uint;
pub const GFileQueryInfoFlags_G_FILE_QUERY_INFO_NONE: GFileQueryInfoFlags = 0;
pub const GFileQueryInfoFlags_G_FILE_QUERY_INFO_NOFOLLOW_SYMLINKS: GFileQueryInfoFlags = 1;
pub type GFileQueryInfoFlags = ::std::os::raw::c_uint;
pub const GFileCreateFlags_G_FILE_CREATE_NONE: GFileCreateFlags = 0;
pub const GFileCreateFlags_G_FILE_CREATE_PRIVATE: GFileCreateFlags = 1;
pub const GFileCreateFlags_G_FILE_CREATE_REPLACE_DESTINATION: GFileCreateFlags = 2;
pub type GFileCreateFlags = ::std::os::raw::c_uint;
pub const GFileMeasureFlags_G_FILE_MEASURE_NONE: GFileMeasureFlags = 0;
pub const GFileMeasureFlags_G_FILE_MEASURE_REPORT_ANY_ERROR: GFileMeasureFlags = 2;
pub const GFileMeasureFlags_G_FILE_MEASURE_APPARENT_SIZE: GFileMeasureFlags = 4;
pub const GFileMeasureFlags_G_FILE_MEASURE_NO_XDEV: GFileMeasureFlags = 8;
pub type GFileMeasureFlags = ::std::os::raw::c_uint;
pub const GMountMountFlags_G_MOUNT_MOUNT_NONE: GMountMountFlags = 0;
pub type GMountMountFlags = ::std::os::raw::c_uint;
pub const GMountUnmountFlags_G_MOUNT_UNMOUNT_NONE: GMountUnmountFlags = 0;
pub const GMountUnmountFlags_G_MOUNT_UNMOUNT_FORCE: GMountUnmountFlags = 1;
pub type GMountUnmountFlags = ::std::os::raw::c_uint;
pub const GDriveStartFlags_G_DRIVE_START_NONE: GDriveStartFlags = 0;
pub type GDriveStartFlags = ::std::os::raw::c_uint;
pub const GDriveStartStopType_G_DRIVE_START_STOP_TYPE_UNKNOWN: GDriveStartStopType = 0;
pub const GDriveStartStopType_G_DRIVE_START_STOP_TYPE_SHUTDOWN: GDriveStartStopType = 1;
pub const GDriveStartStopType_G_DRIVE_START_STOP_TYPE_NETWORK: GDriveStartStopType = 2;
pub const GDriveStartStopType_G_DRIVE_START_STOP_TYPE_MULTIDISK: GDriveStartStopType = 3;
pub const GDriveStartStopType_G_DRIVE_START_STOP_TYPE_PASSWORD: GDriveStartStopType = 4;
pub type GDriveStartStopType = ::std::os::raw::c_uint;
pub const GFileCopyFlags_G_FILE_COPY_NONE: GFileCopyFlags = 0;
pub const GFileCopyFlags_G_FILE_COPY_OVERWRITE: GFileCopyFlags = 1;
pub const GFileCopyFlags_G_FILE_COPY_BACKUP: GFileCopyFlags = 2;
pub const GFileCopyFlags_G_FILE_COPY_NOFOLLOW_SYMLINKS: GFileCopyFlags = 4;
pub const GFileCopyFlags_G_FILE_COPY_ALL_METADATA: GFileCopyFlags = 8;
pub const GFileCopyFlags_G_FILE_COPY_NO_FALLBACK_FOR_MOVE: GFileCopyFlags = 16;
pub const GFileCopyFlags_G_FILE_COPY_TARGET_DEFAULT_PERMS: GFileCopyFlags = 32;
pub const GFileCopyFlags_G_FILE_COPY_TARGET_DEFAULT_MODIFIED_TIME: GFileCopyFlags = 64;
pub type GFileCopyFlags = ::std::os::raw::c_uint;
pub const GFileMonitorFlags_G_FILE_MONITOR_NONE: GFileMonitorFlags = 0;
pub const GFileMonitorFlags_G_FILE_MONITOR_WATCH_MOUNTS: GFileMonitorFlags = 1;
pub const GFileMonitorFlags_G_FILE_MONITOR_SEND_MOVED: GFileMonitorFlags = 2;
pub const GFileMonitorFlags_G_FILE_MONITOR_WATCH_HARD_LINKS: GFileMonitorFlags = 4;
pub const GFileMonitorFlags_G_FILE_MONITOR_WATCH_MOVES: GFileMonitorFlags = 8;
pub type GFileMonitorFlags = ::std::os::raw::c_uint;
pub const GFileType_G_FILE_TYPE_UNKNOWN: GFileType = 0;
pub const GFileType_G_FILE_TYPE_REGULAR: GFileType = 1;
pub const GFileType_G_FILE_TYPE_DIRECTORY: GFileType = 2;
pub const GFileType_G_FILE_TYPE_SYMBOLIC_LINK: GFileType = 3;
pub const GFileType_G_FILE_TYPE_SPECIAL: GFileType = 4;
pub const GFileType_G_FILE_TYPE_SHORTCUT: GFileType = 5;
pub const GFileType_G_FILE_TYPE_MOUNTABLE: GFileType = 6;
pub type GFileType = ::std::os::raw::c_uint;
pub const GFilesystemPreviewType_G_FILESYSTEM_PREVIEW_TYPE_IF_ALWAYS: GFilesystemPreviewType = 0;
pub const GFilesystemPreviewType_G_FILESYSTEM_PREVIEW_TYPE_IF_LOCAL: GFilesystemPreviewType = 1;
pub const GFilesystemPreviewType_G_FILESYSTEM_PREVIEW_TYPE_NEVER: GFilesystemPreviewType = 2;
pub type GFilesystemPreviewType = ::std::os::raw::c_uint;
pub const GFileMonitorEvent_G_FILE_MONITOR_EVENT_CHANGED: GFileMonitorEvent = 0;
pub const GFileMonitorEvent_G_FILE_MONITOR_EVENT_CHANGES_DONE_HINT: GFileMonitorEvent = 1;
pub const GFileMonitorEvent_G_FILE_MONITOR_EVENT_DELETED: GFileMonitorEvent = 2;
pub const GFileMonitorEvent_G_FILE_MONITOR_EVENT_CREATED: GFileMonitorEvent = 3;
pub const GFileMonitorEvent_G_FILE_MONITOR_EVENT_ATTRIBUTE_CHANGED: GFileMonitorEvent = 4;
pub const GFileMonitorEvent_G_FILE_MONITOR_EVENT_PRE_UNMOUNT: GFileMonitorEvent = 5;
pub const GFileMonitorEvent_G_FILE_MONITOR_EVENT_UNMOUNTED: GFileMonitorEvent = 6;
pub const GFileMonitorEvent_G_FILE_MONITOR_EVENT_MOVED: GFileMonitorEvent = 7;
pub const GFileMonitorEvent_G_FILE_MONITOR_EVENT_RENAMED: GFileMonitorEvent = 8;
pub const GFileMonitorEvent_G_FILE_MONITOR_EVENT_MOVED_IN: GFileMonitorEvent = 9;
pub const GFileMonitorEvent_G_FILE_MONITOR_EVENT_MOVED_OUT: GFileMonitorEvent = 10;
pub type GFileMonitorEvent = ::std::os::raw::c_uint;
pub const GIOErrorEnum_G_IO_ERROR_FAILED: GIOErrorEnum = 0;
pub const GIOErrorEnum_G_IO_ERROR_NOT_FOUND: GIOErrorEnum = 1;
pub const GIOErrorEnum_G_IO_ERROR_EXISTS: GIOErrorEnum = 2;
pub const GIOErrorEnum_G_IO_ERROR_IS_DIRECTORY: GIOErrorEnum = 3;
pub const GIOErrorEnum_G_IO_ERROR_NOT_DIRECTORY: GIOErrorEnum = 4;
pub const GIOErrorEnum_G_IO_ERROR_NOT_EMPTY: GIOErrorEnum = 5;
pub const GIOErrorEnum_G_IO_ERROR_NOT_REGULAR_FILE: GIOErrorEnum = 6;
pub const GIOErrorEnum_G_IO_ERROR_NOT_SYMBOLIC_LINK: GIOErrorEnum = 7;
pub const GIOErrorEnum_G_IO_ERROR_NOT_MOUNTABLE_FILE: GIOErrorEnum = 8;
pub const GIOErrorEnum_G_IO_ERROR_FILENAME_TOO_LONG: GIOErrorEnum = 9;
pub const GIOErrorEnum_G_IO_ERROR_INVALID_FILENAME: GIOErrorEnum = 10;
pub const GIOErrorEnum_G_IO_ERROR_TOO_MANY_LINKS: GIOErrorEnum = 11;
pub const GIOErrorEnum_G_IO_ERROR_NO_SPACE: GIOErrorEnum = 12;
pub const GIOErrorEnum_G_IO_ERROR_INVALID_ARGUMENT: GIOErrorEnum = 13;
pub const GIOErrorEnum_G_IO_ERROR_PERMISSION_DENIED: GIOErrorEnum = 14;
pub const GIOErrorEnum_G_IO_ERROR_NOT_SUPPORTED: GIOErrorEnum = 15;
pub const GIOErrorEnum_G_IO_ERROR_NOT_MOUNTED: GIOErrorEnum = 16;
pub const GIOErrorEnum_G_IO_ERROR_ALREADY_MOUNTED: GIOErrorEnum = 17;
pub const GIOErrorEnum_G_IO_ERROR_CLOSED: GIOErrorEnum = 18;
pub const GIOErrorEnum_G_IO_ERROR_CANCELLED: GIOErrorEnum = 19;
pub const GIOErrorEnum_G_IO_ERROR_PENDING: GIOErrorEnum = 20;
pub const GIOErrorEnum_G_IO_ERROR_READ_ONLY: GIOErrorEnum = 21;
pub const GIOErrorEnum_G_IO_ERROR_CANT_CREATE_BACKUP: GIOErrorEnum = 22;
pub const GIOErrorEnum_G_IO_ERROR_WRONG_ETAG: GIOErrorEnum = 23;
pub const GIOErrorEnum_G_IO_ERROR_TIMED_OUT: GIOErrorEnum = 24;
pub const GIOErrorEnum_G_IO_ERROR_WOULD_RECURSE: GIOErrorEnum = 25;
pub const GIOErrorEnum_G_IO_ERROR_BUSY: GIOErrorEnum = 26;
pub const GIOErrorEnum_G_IO_ERROR_WOULD_BLOCK: GIOErrorEnum = 27;
pub const GIOErrorEnum_G_IO_ERROR_HOST_NOT_FOUND: GIOErrorEnum = 28;
pub const GIOErrorEnum_G_IO_ERROR_WOULD_MERGE: GIOErrorEnum = 29;
pub const GIOErrorEnum_G_IO_ERROR_FAILED_HANDLED: GIOErrorEnum = 30;
pub const GIOErrorEnum_G_IO_ERROR_TOO_MANY_OPEN_FILES: GIOErrorEnum = 31;
pub const GIOErrorEnum_G_IO_ERROR_NOT_INITIALIZED: GIOErrorEnum = 32;
pub const GIOErrorEnum_G_IO_ERROR_ADDRESS_IN_USE: GIOErrorEnum = 33;
pub const GIOErrorEnum_G_IO_ERROR_PARTIAL_INPUT: GIOErrorEnum = 34;
pub const GIOErrorEnum_G_IO_ERROR_INVALID_DATA: GIOErrorEnum = 35;
pub const GIOErrorEnum_G_IO_ERROR_DBUS_ERROR: GIOErrorEnum = 36;
pub const GIOErrorEnum_G_IO_ERROR_HOST_UNREACHABLE: GIOErrorEnum = 37;
pub const GIOErrorEnum_G_IO_ERROR_NETWORK_UNREACHABLE: GIOErrorEnum = 38;
pub const GIOErrorEnum_G_IO_ERROR_CONNECTION_REFUSED: GIOErrorEnum = 39;
pub const GIOErrorEnum_G_IO_ERROR_PROXY_FAILED: GIOErrorEnum = 40;
pub const GIOErrorEnum_G_IO_ERROR_PROXY_AUTH_FAILED: GIOErrorEnum = 41;
pub const GIOErrorEnum_G_IO_ERROR_PROXY_NEED_AUTH: GIOErrorEnum = 42;
pub const GIOErrorEnum_G_IO_ERROR_PROXY_NOT_ALLOWED: GIOErrorEnum = 43;
pub const GIOErrorEnum_G_IO_ERROR_BROKEN_PIPE: GIOErrorEnum = 44;
pub const GIOErrorEnum_G_IO_ERROR_CONNECTION_CLOSED: GIOErrorEnum = 44;
pub const GIOErrorEnum_G_IO_ERROR_NOT_CONNECTED: GIOErrorEnum = 45;
pub const GIOErrorEnum_G_IO_ERROR_MESSAGE_TOO_LARGE: GIOErrorEnum = 46;
pub const GIOErrorEnum_G_IO_ERROR_NO_SUCH_DEVICE: GIOErrorEnum = 47;
pub const GIOErrorEnum_G_IO_ERROR_DESTINATION_UNSET: GIOErrorEnum = 48;
pub type GIOErrorEnum = ::std::os::raw::c_uint;
pub const GAskPasswordFlags_G_ASK_PASSWORD_NEED_PASSWORD: GAskPasswordFlags = 1;
pub const GAskPasswordFlags_G_ASK_PASSWORD_NEED_USERNAME: GAskPasswordFlags = 2;
pub const GAskPasswordFlags_G_ASK_PASSWORD_NEED_DOMAIN: GAskPasswordFlags = 4;
pub const GAskPasswordFlags_G_ASK_PASSWORD_SAVING_SUPPORTED: GAskPasswordFlags = 8;
pub const GAskPasswordFlags_G_ASK_PASSWORD_ANONYMOUS_SUPPORTED: GAskPasswordFlags = 16;
pub const GAskPasswordFlags_G_ASK_PASSWORD_TCRYPT: GAskPasswordFlags = 32;
pub type GAskPasswordFlags = ::std::os::raw::c_uint;
pub const GPasswordSave_G_PASSWORD_SAVE_NEVER: GPasswordSave = 0;
pub const GPasswordSave_G_PASSWORD_SAVE_FOR_SESSION: GPasswordSave = 1;
pub const GPasswordSave_G_PASSWORD_SAVE_PERMANENTLY: GPasswordSave = 2;
pub type GPasswordSave = ::std::os::raw::c_uint;
pub const GMountOperationResult_G_MOUNT_OPERATION_HANDLED: GMountOperationResult = 0;
pub const GMountOperationResult_G_MOUNT_OPERATION_ABORTED: GMountOperationResult = 1;
pub const GMountOperationResult_G_MOUNT_OPERATION_UNHANDLED: GMountOperationResult = 2;
pub type GMountOperationResult = ::std::os::raw::c_uint;
pub const GOutputStreamSpliceFlags_G_OUTPUT_STREAM_SPLICE_NONE: GOutputStreamSpliceFlags = 0;
pub const GOutputStreamSpliceFlags_G_OUTPUT_STREAM_SPLICE_CLOSE_SOURCE: GOutputStreamSpliceFlags =
1;
pub const GOutputStreamSpliceFlags_G_OUTPUT_STREAM_SPLICE_CLOSE_TARGET: GOutputStreamSpliceFlags =
2;
pub type GOutputStreamSpliceFlags = ::std::os::raw::c_uint;
pub const GIOStreamSpliceFlags_G_IO_STREAM_SPLICE_NONE: GIOStreamSpliceFlags = 0;
pub const GIOStreamSpliceFlags_G_IO_STREAM_SPLICE_CLOSE_STREAM1: GIOStreamSpliceFlags = 1;
pub const GIOStreamSpliceFlags_G_IO_STREAM_SPLICE_CLOSE_STREAM2: GIOStreamSpliceFlags = 2;
pub const GIOStreamSpliceFlags_G_IO_STREAM_SPLICE_WAIT_FOR_BOTH: GIOStreamSpliceFlags = 4;
pub type GIOStreamSpliceFlags = ::std::os::raw::c_uint;
pub const GEmblemOrigin_G_EMBLEM_ORIGIN_UNKNOWN: GEmblemOrigin = 0;
pub const GEmblemOrigin_G_EMBLEM_ORIGIN_DEVICE: GEmblemOrigin = 1;
pub const GEmblemOrigin_G_EMBLEM_ORIGIN_LIVEMETADATA: GEmblemOrigin = 2;
pub const GEmblemOrigin_G_EMBLEM_ORIGIN_TAG: GEmblemOrigin = 3;
pub type GEmblemOrigin = ::std::os::raw::c_uint;
pub const GResolverError_G_RESOLVER_ERROR_NOT_FOUND: GResolverError = 0;
pub const GResolverError_G_RESOLVER_ERROR_TEMPORARY_FAILURE: GResolverError = 1;
pub const GResolverError_G_RESOLVER_ERROR_INTERNAL: GResolverError = 2;
pub type GResolverError = ::std::os::raw::c_uint;
pub const GResolverRecordType_G_RESOLVER_RECORD_SRV: GResolverRecordType = 1;
pub const GResolverRecordType_G_RESOLVER_RECORD_MX: GResolverRecordType = 2;
pub const GResolverRecordType_G_RESOLVER_RECORD_TXT: GResolverRecordType = 3;
pub const GResolverRecordType_G_RESOLVER_RECORD_SOA: GResolverRecordType = 4;
pub const GResolverRecordType_G_RESOLVER_RECORD_NS: GResolverRecordType = 5;
pub type GResolverRecordType = ::std::os::raw::c_uint;
pub const GResourceError_G_RESOURCE_ERROR_NOT_FOUND: GResourceError = 0;
pub const GResourceError_G_RESOURCE_ERROR_INTERNAL: GResourceError = 1;
pub type GResourceError = ::std::os::raw::c_uint;
pub const GResourceFlags_G_RESOURCE_FLAGS_NONE: GResourceFlags = 0;
pub const GResourceFlags_G_RESOURCE_FLAGS_COMPRESSED: GResourceFlags = 1;
pub type GResourceFlags = ::std::os::raw::c_uint;
pub const GResourceLookupFlags_G_RESOURCE_LOOKUP_FLAGS_NONE: GResourceLookupFlags = 0;
pub type GResourceLookupFlags = ::std::os::raw::c_uint;
pub const GSocketFamily_G_SOCKET_FAMILY_INVALID: GSocketFamily = 0;
pub const GSocketFamily_G_SOCKET_FAMILY_UNIX: GSocketFamily = 1;
pub const GSocketFamily_G_SOCKET_FAMILY_IPV4: GSocketFamily = 2;
pub const GSocketFamily_G_SOCKET_FAMILY_IPV6: GSocketFamily = 10;
pub type GSocketFamily = ::std::os::raw::c_uint;
pub const GSocketType_G_SOCKET_TYPE_INVALID: GSocketType = 0;
pub const GSocketType_G_SOCKET_TYPE_STREAM: GSocketType = 1;
pub const GSocketType_G_SOCKET_TYPE_DATAGRAM: GSocketType = 2;
pub const GSocketType_G_SOCKET_TYPE_SEQPACKET: GSocketType = 3;
pub type GSocketType = ::std::os::raw::c_uint;
pub const GSocketMsgFlags_G_SOCKET_MSG_NONE: GSocketMsgFlags = 0;
pub const GSocketMsgFlags_G_SOCKET_MSG_OOB: GSocketMsgFlags = 1;
pub const GSocketMsgFlags_G_SOCKET_MSG_PEEK: GSocketMsgFlags = 2;
pub const GSocketMsgFlags_G_SOCKET_MSG_DONTROUTE: GSocketMsgFlags = 4;
pub type GSocketMsgFlags = ::std::os::raw::c_uint;
pub const GSocketProtocol_G_SOCKET_PROTOCOL_UNKNOWN: GSocketProtocol = -1;
pub const GSocketProtocol_G_SOCKET_PROTOCOL_DEFAULT: GSocketProtocol = 0;
pub const GSocketProtocol_G_SOCKET_PROTOCOL_TCP: GSocketProtocol = 6;
pub const GSocketProtocol_G_SOCKET_PROTOCOL_UDP: GSocketProtocol = 17;
pub const GSocketProtocol_G_SOCKET_PROTOCOL_SCTP: GSocketProtocol = 132;
pub type GSocketProtocol = ::std::os::raw::c_int;
pub const GZlibCompressorFormat_G_ZLIB_COMPRESSOR_FORMAT_ZLIB: GZlibCompressorFormat = 0;
pub const GZlibCompressorFormat_G_ZLIB_COMPRESSOR_FORMAT_GZIP: GZlibCompressorFormat = 1;
pub const GZlibCompressorFormat_G_ZLIB_COMPRESSOR_FORMAT_RAW: GZlibCompressorFormat = 2;
pub type GZlibCompressorFormat = ::std::os::raw::c_uint;
pub const GUnixSocketAddressType_G_UNIX_SOCKET_ADDRESS_INVALID: GUnixSocketAddressType = 0;
pub const GUnixSocketAddressType_G_UNIX_SOCKET_ADDRESS_ANONYMOUS: GUnixSocketAddressType = 1;
pub const GUnixSocketAddressType_G_UNIX_SOCKET_ADDRESS_PATH: GUnixSocketAddressType = 2;
pub const GUnixSocketAddressType_G_UNIX_SOCKET_ADDRESS_ABSTRACT: GUnixSocketAddressType = 3;
pub const GUnixSocketAddressType_G_UNIX_SOCKET_ADDRESS_ABSTRACT_PADDED: GUnixSocketAddressType = 4;
pub type GUnixSocketAddressType = ::std::os::raw::c_uint;
pub const GBusType_G_BUS_TYPE_STARTER: GBusType = -1;
pub const GBusType_G_BUS_TYPE_NONE: GBusType = 0;
pub const GBusType_G_BUS_TYPE_SYSTEM: GBusType = 1;
pub const GBusType_G_BUS_TYPE_SESSION: GBusType = 2;
pub type GBusType = ::std::os::raw::c_int;
pub const GBusNameOwnerFlags_G_BUS_NAME_OWNER_FLAGS_NONE: GBusNameOwnerFlags = 0;
pub const GBusNameOwnerFlags_G_BUS_NAME_OWNER_FLAGS_ALLOW_REPLACEMENT: GBusNameOwnerFlags = 1;
pub const GBusNameOwnerFlags_G_BUS_NAME_OWNER_FLAGS_REPLACE: GBusNameOwnerFlags = 2;
pub const GBusNameOwnerFlags_G_BUS_NAME_OWNER_FLAGS_DO_NOT_QUEUE: GBusNameOwnerFlags = 4;
pub type GBusNameOwnerFlags = ::std::os::raw::c_uint;
pub const GBusNameWatcherFlags_G_BUS_NAME_WATCHER_FLAGS_NONE: GBusNameWatcherFlags = 0;
pub const GBusNameWatcherFlags_G_BUS_NAME_WATCHER_FLAGS_AUTO_START: GBusNameWatcherFlags = 1;
pub type GBusNameWatcherFlags = ::std::os::raw::c_uint;
pub const GDBusProxyFlags_G_DBUS_PROXY_FLAGS_NONE: GDBusProxyFlags = 0;
pub const GDBusProxyFlags_G_DBUS_PROXY_FLAGS_DO_NOT_LOAD_PROPERTIES: GDBusProxyFlags = 1;
pub const GDBusProxyFlags_G_DBUS_PROXY_FLAGS_DO_NOT_CONNECT_SIGNALS: GDBusProxyFlags = 2;
pub const GDBusProxyFlags_G_DBUS_PROXY_FLAGS_DO_NOT_AUTO_START: GDBusProxyFlags = 4;
pub const GDBusProxyFlags_G_DBUS_PROXY_FLAGS_GET_INVALIDATED_PROPERTIES: GDBusProxyFlags = 8;
pub const GDBusProxyFlags_G_DBUS_PROXY_FLAGS_DO_NOT_AUTO_START_AT_CONSTRUCTION: GDBusProxyFlags =
16;
pub const GDBusProxyFlags_G_DBUS_PROXY_FLAGS_NO_MATCH_RULE: GDBusProxyFlags = 32;
pub type GDBusProxyFlags = ::std::os::raw::c_uint;
pub const GDBusError_G_DBUS_ERROR_FAILED: GDBusError = 0;
pub const GDBusError_G_DBUS_ERROR_NO_MEMORY: GDBusError = 1;
pub const GDBusError_G_DBUS_ERROR_SERVICE_UNKNOWN: GDBusError = 2;
pub const GDBusError_G_DBUS_ERROR_NAME_HAS_NO_OWNER: GDBusError = 3;
pub const GDBusError_G_DBUS_ERROR_NO_REPLY: GDBusError = 4;
pub const GDBusError_G_DBUS_ERROR_IO_ERROR: GDBusError = 5;
pub const GDBusError_G_DBUS_ERROR_BAD_ADDRESS: GDBusError = 6;
pub const GDBusError_G_DBUS_ERROR_NOT_SUPPORTED: GDBusError = 7;
pub const GDBusError_G_DBUS_ERROR_LIMITS_EXCEEDED: GDBusError = 8;
pub const GDBusError_G_DBUS_ERROR_ACCESS_DENIED: GDBusError = 9;
pub const GDBusError_G_DBUS_ERROR_AUTH_FAILED: GDBusError = 10;
pub const GDBusError_G_DBUS_ERROR_NO_SERVER: GDBusError = 11;
pub const GDBusError_G_DBUS_ERROR_TIMEOUT: GDBusError = 12;
pub const GDBusError_G_DBUS_ERROR_NO_NETWORK: GDBusError = 13;
pub const GDBusError_G_DBUS_ERROR_ADDRESS_IN_USE: GDBusError = 14;
pub const GDBusError_G_DBUS_ERROR_DISCONNECTED: GDBusError = 15;
pub const GDBusError_G_DBUS_ERROR_INVALID_ARGS: GDBusError = 16;
pub const GDBusError_G_DBUS_ERROR_FILE_NOT_FOUND: GDBusError = 17;
pub const GDBusError_G_DBUS_ERROR_FILE_EXISTS: GDBusError = 18;
pub const GDBusError_G_DBUS_ERROR_UNKNOWN_METHOD: GDBusError = 19;
pub const GDBusError_G_DBUS_ERROR_TIMED_OUT: GDBusError = 20;
pub const GDBusError_G_DBUS_ERROR_MATCH_RULE_NOT_FOUND: GDBusError = 21;
pub const GDBusError_G_DBUS_ERROR_MATCH_RULE_INVALID: GDBusError = 22;
pub const GDBusError_G_DBUS_ERROR_SPAWN_EXEC_FAILED: GDBusError = 23;
pub const GDBusError_G_DBUS_ERROR_SPAWN_FORK_FAILED: GDBusError = 24;
pub const GDBusError_G_DBUS_ERROR_SPAWN_CHILD_EXITED: GDBusError = 25;
pub const GDBusError_G_DBUS_ERROR_SPAWN_CHILD_SIGNALED: GDBusError = 26;
pub const GDBusError_G_DBUS_ERROR_SPAWN_FAILED: GDBusError = 27;
pub const GDBusError_G_DBUS_ERROR_SPAWN_SETUP_FAILED: GDBusError = 28;
pub const GDBusError_G_DBUS_ERROR_SPAWN_CONFIG_INVALID: GDBusError = 29;
pub const GDBusError_G_DBUS_ERROR_SPAWN_SERVICE_INVALID: GDBusError = 30;
pub const GDBusError_G_DBUS_ERROR_SPAWN_SERVICE_NOT_FOUND: GDBusError = 31;
pub const GDBusError_G_DBUS_ERROR_SPAWN_PERMISSIONS_INVALID: GDBusError = 32;
pub const GDBusError_G_DBUS_ERROR_SPAWN_FILE_INVALID: GDBusError = 33;
pub const GDBusError_G_DBUS_ERROR_SPAWN_NO_MEMORY: GDBusError = 34;
pub const GDBusError_G_DBUS_ERROR_UNIX_PROCESS_ID_UNKNOWN: GDBusError = 35;
pub const GDBusError_G_DBUS_ERROR_INVALID_SIGNATURE: GDBusError = 36;
pub const GDBusError_G_DBUS_ERROR_INVALID_FILE_CONTENT: GDBusError = 37;
pub const GDBusError_G_DBUS_ERROR_SELINUX_SECURITY_CONTEXT_UNKNOWN: GDBusError = 38;
pub const GDBusError_G_DBUS_ERROR_ADT_AUDIT_DATA_UNKNOWN: GDBusError = 39;
pub const GDBusError_G_DBUS_ERROR_OBJECT_PATH_IN_USE: GDBusError = 40;
pub const GDBusError_G_DBUS_ERROR_UNKNOWN_OBJECT: GDBusError = 41;
pub const GDBusError_G_DBUS_ERROR_UNKNOWN_INTERFACE: GDBusError = 42;
pub const GDBusError_G_DBUS_ERROR_UNKNOWN_PROPERTY: GDBusError = 43;
pub const GDBusError_G_DBUS_ERROR_PROPERTY_READ_ONLY: GDBusError = 44;
pub type GDBusError = ::std::os::raw::c_uint;
pub const GDBusConnectionFlags_G_DBUS_CONNECTION_FLAGS_NONE: GDBusConnectionFlags = 0;
pub const GDBusConnectionFlags_G_DBUS_CONNECTION_FLAGS_AUTHENTICATION_CLIENT: GDBusConnectionFlags =
1;
pub const GDBusConnectionFlags_G_DBUS_CONNECTION_FLAGS_AUTHENTICATION_SERVER: GDBusConnectionFlags =
2;
pub const GDBusConnectionFlags_G_DBUS_CONNECTION_FLAGS_AUTHENTICATION_ALLOW_ANONYMOUS:
GDBusConnectionFlags = 4;
pub const GDBusConnectionFlags_G_DBUS_CONNECTION_FLAGS_MESSAGE_BUS_CONNECTION:
GDBusConnectionFlags = 8;
pub const GDBusConnectionFlags_G_DBUS_CONNECTION_FLAGS_DELAY_MESSAGE_PROCESSING:
GDBusConnectionFlags = 16;
pub const GDBusConnectionFlags_G_DBUS_CONNECTION_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER:
GDBusConnectionFlags = 32;
pub const GDBusConnectionFlags_G_DBUS_CONNECTION_FLAGS_CROSS_NAMESPACE: GDBusConnectionFlags = 64;
pub type GDBusConnectionFlags = ::std::os::raw::c_uint;
pub const GDBusCapabilityFlags_G_DBUS_CAPABILITY_FLAGS_NONE: GDBusCapabilityFlags = 0;
pub const GDBusCapabilityFlags_G_DBUS_CAPABILITY_FLAGS_UNIX_FD_PASSING: GDBusCapabilityFlags = 1;
pub type GDBusCapabilityFlags = ::std::os::raw::c_uint;
pub const GDBusCallFlags_G_DBUS_CALL_FLAGS_NONE: GDBusCallFlags = 0;
pub const GDBusCallFlags_G_DBUS_CALL_FLAGS_NO_AUTO_START: GDBusCallFlags = 1;
pub const GDBusCallFlags_G_DBUS_CALL_FLAGS_ALLOW_INTERACTIVE_AUTHORIZATION: GDBusCallFlags = 2;
pub type GDBusCallFlags = ::std::os::raw::c_uint;
pub const GDBusMessageType_G_DBUS_MESSAGE_TYPE_INVALID: GDBusMessageType = 0;
pub const GDBusMessageType_G_DBUS_MESSAGE_TYPE_METHOD_CALL: GDBusMessageType = 1;
pub const GDBusMessageType_G_DBUS_MESSAGE_TYPE_METHOD_RETURN: GDBusMessageType = 2;
pub const GDBusMessageType_G_DBUS_MESSAGE_TYPE_ERROR: GDBusMessageType = 3;
pub const GDBusMessageType_G_DBUS_MESSAGE_TYPE_SIGNAL: GDBusMessageType = 4;
pub type GDBusMessageType = ::std::os::raw::c_uint;
pub const GDBusMessageFlags_G_DBUS_MESSAGE_FLAGS_NONE: GDBusMessageFlags = 0;
pub const GDBusMessageFlags_G_DBUS_MESSAGE_FLAGS_NO_REPLY_EXPECTED: GDBusMessageFlags = 1;
pub const GDBusMessageFlags_G_DBUS_MESSAGE_FLAGS_NO_AUTO_START: GDBusMessageFlags = 2;
pub const GDBusMessageFlags_G_DBUS_MESSAGE_FLAGS_ALLOW_INTERACTIVE_AUTHORIZATION:
GDBusMessageFlags = 4;
pub type GDBusMessageFlags = ::std::os::raw::c_uint;
pub const GDBusMessageHeaderField_G_DBUS_MESSAGE_HEADER_FIELD_INVALID: GDBusMessageHeaderField = 0;
pub const GDBusMessageHeaderField_G_DBUS_MESSAGE_HEADER_FIELD_PATH: GDBusMessageHeaderField = 1;
pub const GDBusMessageHeaderField_G_DBUS_MESSAGE_HEADER_FIELD_INTERFACE: GDBusMessageHeaderField =
2;
pub const GDBusMessageHeaderField_G_DBUS_MESSAGE_HEADER_FIELD_MEMBER: GDBusMessageHeaderField = 3;
pub const GDBusMessageHeaderField_G_DBUS_MESSAGE_HEADER_FIELD_ERROR_NAME: GDBusMessageHeaderField =
4;
pub const GDBusMessageHeaderField_G_DBUS_MESSAGE_HEADER_FIELD_REPLY_SERIAL:
GDBusMessageHeaderField = 5;
pub const GDBusMessageHeaderField_G_DBUS_MESSAGE_HEADER_FIELD_DESTINATION: GDBusMessageHeaderField =
6;
pub const GDBusMessageHeaderField_G_DBUS_MESSAGE_HEADER_FIELD_SENDER: GDBusMessageHeaderField = 7;
pub const GDBusMessageHeaderField_G_DBUS_MESSAGE_HEADER_FIELD_SIGNATURE: GDBusMessageHeaderField =
8;
pub const GDBusMessageHeaderField_G_DBUS_MESSAGE_HEADER_FIELD_NUM_UNIX_FDS:
GDBusMessageHeaderField = 9;
pub type GDBusMessageHeaderField = ::std::os::raw::c_uint;
pub const GDBusPropertyInfoFlags_G_DBUS_PROPERTY_INFO_FLAGS_NONE: GDBusPropertyInfoFlags = 0;
pub const GDBusPropertyInfoFlags_G_DBUS_PROPERTY_INFO_FLAGS_READABLE: GDBusPropertyInfoFlags = 1;
pub const GDBusPropertyInfoFlags_G_DBUS_PROPERTY_INFO_FLAGS_WRITABLE: GDBusPropertyInfoFlags = 2;
pub type GDBusPropertyInfoFlags = ::std::os::raw::c_uint;
pub const GDBusSubtreeFlags_G_DBUS_SUBTREE_FLAGS_NONE: GDBusSubtreeFlags = 0;
pub const GDBusSubtreeFlags_G_DBUS_SUBTREE_FLAGS_DISPATCH_TO_UNENUMERATED_NODES: GDBusSubtreeFlags =
1;
pub type GDBusSubtreeFlags = ::std::os::raw::c_uint;
pub const GDBusServerFlags_G_DBUS_SERVER_FLAGS_NONE: GDBusServerFlags = 0;
pub const GDBusServerFlags_G_DBUS_SERVER_FLAGS_RUN_IN_THREAD: GDBusServerFlags = 1;
pub const GDBusServerFlags_G_DBUS_SERVER_FLAGS_AUTHENTICATION_ALLOW_ANONYMOUS: GDBusServerFlags = 2;
pub const GDBusServerFlags_G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER: GDBusServerFlags =
4;
pub type GDBusServerFlags = ::std::os::raw::c_uint;
pub const GDBusSignalFlags_G_DBUS_SIGNAL_FLAGS_NONE: GDBusSignalFlags = 0;
pub const GDBusSignalFlags_G_DBUS_SIGNAL_FLAGS_NO_MATCH_RULE: GDBusSignalFlags = 1;
pub const GDBusSignalFlags_G_DBUS_SIGNAL_FLAGS_MATCH_ARG0_NAMESPACE: GDBusSignalFlags = 2;
pub const GDBusSignalFlags_G_DBUS_SIGNAL_FLAGS_MATCH_ARG0_PATH: GDBusSignalFlags = 4;
pub type GDBusSignalFlags = ::std::os::raw::c_uint;
pub const GDBusSendMessageFlags_G_DBUS_SEND_MESSAGE_FLAGS_NONE: GDBusSendMessageFlags = 0;
pub const GDBusSendMessageFlags_G_DBUS_SEND_MESSAGE_FLAGS_PRESERVE_SERIAL: GDBusSendMessageFlags =
1;
pub type GDBusSendMessageFlags = ::std::os::raw::c_uint;
pub const GCredentialsType_G_CREDENTIALS_TYPE_INVALID: GCredentialsType = 0;
pub const GCredentialsType_G_CREDENTIALS_TYPE_LINUX_UCRED: GCredentialsType = 1;
pub const GCredentialsType_G_CREDENTIALS_TYPE_FREEBSD_CMSGCRED: GCredentialsType = 2;
pub const GCredentialsType_G_CREDENTIALS_TYPE_OPENBSD_SOCKPEERCRED: GCredentialsType = 3;
pub const GCredentialsType_G_CREDENTIALS_TYPE_SOLARIS_UCRED: GCredentialsType = 4;
pub const GCredentialsType_G_CREDENTIALS_TYPE_NETBSD_UNPCBID: GCredentialsType = 5;
pub const GCredentialsType_G_CREDENTIALS_TYPE_APPLE_XUCRED: GCredentialsType = 6;
pub const GCredentialsType_G_CREDENTIALS_TYPE_WIN32_PID: GCredentialsType = 7;
pub type GCredentialsType = ::std::os::raw::c_uint;
pub const GDBusMessageByteOrder_G_DBUS_MESSAGE_BYTE_ORDER_BIG_ENDIAN: GDBusMessageByteOrder = 66;
pub const GDBusMessageByteOrder_G_DBUS_MESSAGE_BYTE_ORDER_LITTLE_ENDIAN: GDBusMessageByteOrder =
108;
pub type GDBusMessageByteOrder = ::std::os::raw::c_uint;
pub const GApplicationFlags_G_APPLICATION_FLAGS_NONE: GApplicationFlags = 0;
pub const GApplicationFlags_G_APPLICATION_DEFAULT_FLAGS: GApplicationFlags = 0;
pub const GApplicationFlags_G_APPLICATION_IS_SERVICE: GApplicationFlags = 1;
pub const GApplicationFlags_G_APPLICATION_IS_LAUNCHER: GApplicationFlags = 2;
pub const GApplicationFlags_G_APPLICATION_HANDLES_OPEN: GApplicationFlags = 4;
pub const GApplicationFlags_G_APPLICATION_HANDLES_COMMAND_LINE: GApplicationFlags = 8;
pub const GApplicationFlags_G_APPLICATION_SEND_ENVIRONMENT: GApplicationFlags = 16;
pub const GApplicationFlags_G_APPLICATION_NON_UNIQUE: GApplicationFlags = 32;
pub const GApplicationFlags_G_APPLICATION_CAN_OVERRIDE_APP_ID: GApplicationFlags = 64;
pub const GApplicationFlags_G_APPLICATION_ALLOW_REPLACEMENT: GApplicationFlags = 128;
pub const GApplicationFlags_G_APPLICATION_REPLACE: GApplicationFlags = 256;
pub type GApplicationFlags = ::std::os::raw::c_uint;
pub const GTlsError_G_TLS_ERROR_UNAVAILABLE: GTlsError = 0;
pub const GTlsError_G_TLS_ERROR_MISC: GTlsError = 1;
pub const GTlsError_G_TLS_ERROR_BAD_CERTIFICATE: GTlsError = 2;
pub const GTlsError_G_TLS_ERROR_NOT_TLS: GTlsError = 3;
pub const GTlsError_G_TLS_ERROR_HANDSHAKE: GTlsError = 4;
pub const GTlsError_G_TLS_ERROR_CERTIFICATE_REQUIRED: GTlsError = 5;
pub const GTlsError_G_TLS_ERROR_EOF: GTlsError = 6;
pub const GTlsError_G_TLS_ERROR_INAPPROPRIATE_FALLBACK: GTlsError = 7;
pub const GTlsError_G_TLS_ERROR_BAD_CERTIFICATE_PASSWORD: GTlsError = 8;
pub type GTlsError = ::std::os::raw::c_uint;
pub const GTlsCertificateFlags_G_TLS_CERTIFICATE_NO_FLAGS: GTlsCertificateFlags = 0;
pub const GTlsCertificateFlags_G_TLS_CERTIFICATE_UNKNOWN_CA: GTlsCertificateFlags = 1;
pub const GTlsCertificateFlags_G_TLS_CERTIFICATE_BAD_IDENTITY: GTlsCertificateFlags = 2;
pub const GTlsCertificateFlags_G_TLS_CERTIFICATE_NOT_ACTIVATED: GTlsCertificateFlags = 4;
pub const GTlsCertificateFlags_G_TLS_CERTIFICATE_EXPIRED: GTlsCertificateFlags = 8;
pub const GTlsCertificateFlags_G_TLS_CERTIFICATE_REVOKED: GTlsCertificateFlags = 16;
pub const GTlsCertificateFlags_G_TLS_CERTIFICATE_INSECURE: GTlsCertificateFlags = 32;
pub const GTlsCertificateFlags_G_TLS_CERTIFICATE_GENERIC_ERROR: GTlsCertificateFlags = 64;
pub const GTlsCertificateFlags_G_TLS_CERTIFICATE_VALIDATE_ALL: GTlsCertificateFlags = 127;
pub type GTlsCertificateFlags = ::std::os::raw::c_uint;
pub const GTlsAuthenticationMode_G_TLS_AUTHENTICATION_NONE: GTlsAuthenticationMode = 0;
pub const GTlsAuthenticationMode_G_TLS_AUTHENTICATION_REQUESTED: GTlsAuthenticationMode = 1;
pub const GTlsAuthenticationMode_G_TLS_AUTHENTICATION_REQUIRED: GTlsAuthenticationMode = 2;
pub type GTlsAuthenticationMode = ::std::os::raw::c_uint;
pub const GTlsChannelBindingType_G_TLS_CHANNEL_BINDING_TLS_UNIQUE: GTlsChannelBindingType = 0;
pub const GTlsChannelBindingType_G_TLS_CHANNEL_BINDING_TLS_SERVER_END_POINT:
GTlsChannelBindingType = 1;
pub const GTlsChannelBindingType_G_TLS_CHANNEL_BINDING_TLS_EXPORTER: GTlsChannelBindingType = 2;
pub type GTlsChannelBindingType = ::std::os::raw::c_uint;
pub const GTlsChannelBindingError_G_TLS_CHANNEL_BINDING_ERROR_NOT_IMPLEMENTED:
GTlsChannelBindingError = 0;
pub const GTlsChannelBindingError_G_TLS_CHANNEL_BINDING_ERROR_INVALID_STATE:
GTlsChannelBindingError = 1;
pub const GTlsChannelBindingError_G_TLS_CHANNEL_BINDING_ERROR_NOT_AVAILABLE:
GTlsChannelBindingError = 2;
pub const GTlsChannelBindingError_G_TLS_CHANNEL_BINDING_ERROR_NOT_SUPPORTED:
GTlsChannelBindingError = 3;
pub const GTlsChannelBindingError_G_TLS_CHANNEL_BINDING_ERROR_GENERAL_ERROR:
GTlsChannelBindingError = 4;
pub type GTlsChannelBindingError = ::std::os::raw::c_uint;
pub const GTlsRehandshakeMode_G_TLS_REHANDSHAKE_NEVER: GTlsRehandshakeMode = 0;
pub const GTlsRehandshakeMode_G_TLS_REHANDSHAKE_SAFELY: GTlsRehandshakeMode = 1;
pub const GTlsRehandshakeMode_G_TLS_REHANDSHAKE_UNSAFELY: GTlsRehandshakeMode = 2;
pub type GTlsRehandshakeMode = ::std::os::raw::c_uint;
pub const _GTlsPasswordFlags_G_TLS_PASSWORD_NONE: _GTlsPasswordFlags = 0;
pub const _GTlsPasswordFlags_G_TLS_PASSWORD_RETRY: _GTlsPasswordFlags = 2;
pub const _GTlsPasswordFlags_G_TLS_PASSWORD_MANY_TRIES: _GTlsPasswordFlags = 4;
pub const _GTlsPasswordFlags_G_TLS_PASSWORD_FINAL_TRY: _GTlsPasswordFlags = 8;
pub const _GTlsPasswordFlags_G_TLS_PASSWORD_PKCS11_USER: _GTlsPasswordFlags = 16;
pub const _GTlsPasswordFlags_G_TLS_PASSWORD_PKCS11_SECURITY_OFFICER: _GTlsPasswordFlags = 32;
pub const _GTlsPasswordFlags_G_TLS_PASSWORD_PKCS11_CONTEXT_SPECIFIC: _GTlsPasswordFlags = 64;
pub type _GTlsPasswordFlags = ::std::os::raw::c_uint;
pub use self::_GTlsPasswordFlags as GTlsPasswordFlags;
pub const GTlsInteractionResult_G_TLS_INTERACTION_UNHANDLED: GTlsInteractionResult = 0;
pub const GTlsInteractionResult_G_TLS_INTERACTION_HANDLED: GTlsInteractionResult = 1;
pub const GTlsInteractionResult_G_TLS_INTERACTION_FAILED: GTlsInteractionResult = 2;
pub type GTlsInteractionResult = ::std::os::raw::c_uint;
pub const GDBusInterfaceSkeletonFlags_G_DBUS_INTERFACE_SKELETON_FLAGS_NONE:
GDBusInterfaceSkeletonFlags = 0;
pub const GDBusInterfaceSkeletonFlags_G_DBUS_INTERFACE_SKELETON_FLAGS_HANDLE_METHOD_INVOCATIONS_IN_THREAD : GDBusInterfaceSkeletonFlags = 1 ;
pub type GDBusInterfaceSkeletonFlags = ::std::os::raw::c_uint;
pub const GDBusObjectManagerClientFlags_G_DBUS_OBJECT_MANAGER_CLIENT_FLAGS_NONE:
GDBusObjectManagerClientFlags = 0;
pub const GDBusObjectManagerClientFlags_G_DBUS_OBJECT_MANAGER_CLIENT_FLAGS_DO_NOT_AUTO_START:
GDBusObjectManagerClientFlags = 1;
pub type GDBusObjectManagerClientFlags = ::std::os::raw::c_uint;
pub const GTlsDatabaseVerifyFlags_G_TLS_DATABASE_VERIFY_NONE: GTlsDatabaseVerifyFlags = 0;
pub type GTlsDatabaseVerifyFlags = ::std::os::raw::c_uint;
pub const GTlsDatabaseLookupFlags_G_TLS_DATABASE_LOOKUP_NONE: GTlsDatabaseLookupFlags = 0;
pub const GTlsDatabaseLookupFlags_G_TLS_DATABASE_LOOKUP_KEYPAIR: GTlsDatabaseLookupFlags = 1;
pub type GTlsDatabaseLookupFlags = ::std::os::raw::c_uint;
pub const GTlsCertificateRequestFlags_G_TLS_CERTIFICATE_REQUEST_NONE: GTlsCertificateRequestFlags =
0;
pub type GTlsCertificateRequestFlags = ::std::os::raw::c_uint;
pub const GTlsProtocolVersion_G_TLS_PROTOCOL_VERSION_UNKNOWN: GTlsProtocolVersion = 0;
pub const GTlsProtocolVersion_G_TLS_PROTOCOL_VERSION_SSL_3_0: GTlsProtocolVersion = 1;
pub const GTlsProtocolVersion_G_TLS_PROTOCOL_VERSION_TLS_1_0: GTlsProtocolVersion = 2;
pub const GTlsProtocolVersion_G_TLS_PROTOCOL_VERSION_TLS_1_1: GTlsProtocolVersion = 3;
pub const GTlsProtocolVersion_G_TLS_PROTOCOL_VERSION_TLS_1_2: GTlsProtocolVersion = 4;
pub const GTlsProtocolVersion_G_TLS_PROTOCOL_VERSION_TLS_1_3: GTlsProtocolVersion = 5;
pub const GTlsProtocolVersion_G_TLS_PROTOCOL_VERSION_DTLS_1_0: GTlsProtocolVersion = 201;
pub const GTlsProtocolVersion_G_TLS_PROTOCOL_VERSION_DTLS_1_2: GTlsProtocolVersion = 202;
pub type GTlsProtocolVersion = ::std::os::raw::c_uint;
pub const GIOModuleScopeFlags_G_IO_MODULE_SCOPE_NONE: GIOModuleScopeFlags = 0;
pub const GIOModuleScopeFlags_G_IO_MODULE_SCOPE_BLOCK_DUPLICATES: GIOModuleScopeFlags = 1;
pub type GIOModuleScopeFlags = ::std::os::raw::c_uint;
pub const GSocketClientEvent_G_SOCKET_CLIENT_RESOLVING: GSocketClientEvent = 0;
pub const GSocketClientEvent_G_SOCKET_CLIENT_RESOLVED: GSocketClientEvent = 1;
pub const GSocketClientEvent_G_SOCKET_CLIENT_CONNECTING: GSocketClientEvent = 2;
pub const GSocketClientEvent_G_SOCKET_CLIENT_CONNECTED: GSocketClientEvent = 3;
pub const GSocketClientEvent_G_SOCKET_CLIENT_PROXY_NEGOTIATING: GSocketClientEvent = 4;
pub const GSocketClientEvent_G_SOCKET_CLIENT_PROXY_NEGOTIATED: GSocketClientEvent = 5;
pub const GSocketClientEvent_G_SOCKET_CLIENT_TLS_HANDSHAKING: GSocketClientEvent = 6;
pub const GSocketClientEvent_G_SOCKET_CLIENT_TLS_HANDSHAKED: GSocketClientEvent = 7;
pub const GSocketClientEvent_G_SOCKET_CLIENT_COMPLETE: GSocketClientEvent = 8;
pub type GSocketClientEvent = ::std::os::raw::c_uint;
pub const GSocketListenerEvent_G_SOCKET_LISTENER_BINDING: GSocketListenerEvent = 0;
pub const GSocketListenerEvent_G_SOCKET_LISTENER_BOUND: GSocketListenerEvent = 1;
pub const GSocketListenerEvent_G_SOCKET_LISTENER_LISTENING: GSocketListenerEvent = 2;
pub const GSocketListenerEvent_G_SOCKET_LISTENER_LISTENED: GSocketListenerEvent = 3;
pub type GSocketListenerEvent = ::std::os::raw::c_uint;
pub const GTestDBusFlags_G_TEST_DBUS_NONE: GTestDBusFlags = 0;
pub type GTestDBusFlags = ::std::os::raw::c_uint;
pub const GSubprocessFlags_G_SUBPROCESS_FLAGS_NONE: GSubprocessFlags = 0;
pub const GSubprocessFlags_G_SUBPROCESS_FLAGS_STDIN_PIPE: GSubprocessFlags = 1;
pub const GSubprocessFlags_G_SUBPROCESS_FLAGS_STDIN_INHERIT: GSubprocessFlags = 2;
pub const GSubprocessFlags_G_SUBPROCESS_FLAGS_STDOUT_PIPE: GSubprocessFlags = 4;
pub const GSubprocessFlags_G_SUBPROCESS_FLAGS_STDOUT_SILENCE: GSubprocessFlags = 8;
pub const GSubprocessFlags_G_SUBPROCESS_FLAGS_STDERR_PIPE: GSubprocessFlags = 16;
pub const GSubprocessFlags_G_SUBPROCESS_FLAGS_STDERR_SILENCE: GSubprocessFlags = 32;
pub const GSubprocessFlags_G_SUBPROCESS_FLAGS_STDERR_MERGE: GSubprocessFlags = 64;
pub const GSubprocessFlags_G_SUBPROCESS_FLAGS_INHERIT_FDS: GSubprocessFlags = 128;
pub const GSubprocessFlags_G_SUBPROCESS_FLAGS_SEARCH_PATH_FROM_ENVP: GSubprocessFlags = 256;
pub type GSubprocessFlags = ::std::os::raw::c_uint;
pub const GNotificationPriority_G_NOTIFICATION_PRIORITY_NORMAL: GNotificationPriority = 0;
pub const GNotificationPriority_G_NOTIFICATION_PRIORITY_LOW: GNotificationPriority = 1;
pub const GNotificationPriority_G_NOTIFICATION_PRIORITY_HIGH: GNotificationPriority = 2;
pub const GNotificationPriority_G_NOTIFICATION_PRIORITY_URGENT: GNotificationPriority = 3;
pub type GNotificationPriority = ::std::os::raw::c_uint;
pub const GNetworkConnectivity_G_NETWORK_CONNECTIVITY_LOCAL: GNetworkConnectivity = 1;
pub const GNetworkConnectivity_G_NETWORK_CONNECTIVITY_LIMITED: GNetworkConnectivity = 2;
pub const GNetworkConnectivity_G_NETWORK_CONNECTIVITY_PORTAL: GNetworkConnectivity = 3;
pub const GNetworkConnectivity_G_NETWORK_CONNECTIVITY_FULL: GNetworkConnectivity = 4;
pub type GNetworkConnectivity = ::std::os::raw::c_uint;
pub const GPollableReturn_G_POLLABLE_RETURN_FAILED: GPollableReturn = 0;
pub const GPollableReturn_G_POLLABLE_RETURN_OK: GPollableReturn = 1;
pub const GPollableReturn_G_POLLABLE_RETURN_WOULD_BLOCK: GPollableReturn = -27;
pub type GPollableReturn = ::std::os::raw::c_int;
pub const GMemoryMonitorWarningLevel_G_MEMORY_MONITOR_WARNING_LEVEL_LOW:
GMemoryMonitorWarningLevel = 50;
pub const GMemoryMonitorWarningLevel_G_MEMORY_MONITOR_WARNING_LEVEL_MEDIUM:
GMemoryMonitorWarningLevel = 100;
pub const GMemoryMonitorWarningLevel_G_MEMORY_MONITOR_WARNING_LEVEL_CRITICAL:
GMemoryMonitorWarningLevel = 255;
pub type GMemoryMonitorWarningLevel = ::std::os::raw::c_uint;
pub type GAppLaunchContext = _GAppLaunchContext;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GAppInfo {
_unused: [u8; 0],
}
pub type GAppInfo = _GAppInfo;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GAsyncResult {
_unused: [u8; 0],
}
pub type GAsyncResult = _GAsyncResult;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GAsyncInitable {
_unused: [u8; 0],
}
pub type GAsyncInitable = _GAsyncInitable;
pub type GBufferedInputStream = _GBufferedInputStream;
pub type GBufferedOutputStream = _GBufferedOutputStream;
pub type GCancellable = _GCancellable;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GCharsetConverter {
_unused: [u8; 0],
}
pub type GCharsetConverter = _GCharsetConverter;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GConverter {
_unused: [u8; 0],
}
pub type GConverter = _GConverter;
pub type GConverterInputStream = _GConverterInputStream;
pub type GConverterOutputStream = _GConverterOutputStream;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GDatagramBased {
_unused: [u8; 0],
}
pub type GDatagramBased = _GDatagramBased;
pub type GDataInputStream = _GDataInputStream;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GSimplePermission {
_unused: [u8; 0],
}
pub type GSimplePermission = _GSimplePermission;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GZlibCompressor {
_unused: [u8; 0],
}
pub type GZlibCompressor = _GZlibCompressor;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GZlibDecompressor {
_unused: [u8; 0],
}
pub type GZlibDecompressor = _GZlibDecompressor;
pub type GSimpleActionGroup = _GSimpleActionGroup;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GRemoteActionGroup {
_unused: [u8; 0],
}
pub type GRemoteActionGroup = _GRemoteActionGroup;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GDBusActionGroup {
_unused: [u8; 0],
}
pub type GDBusActionGroup = _GDBusActionGroup;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GActionMap {
_unused: [u8; 0],
}
pub type GActionMap = _GActionMap;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GActionGroup {
_unused: [u8; 0],
}
pub type GActionGroup = _GActionGroup;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GPropertyAction {
_unused: [u8; 0],
}
pub type GPropertyAction = _GPropertyAction;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GSimpleAction {
_unused: [u8; 0],
}
pub type GSimpleAction = _GSimpleAction;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GAction {
_unused: [u8; 0],
}
pub type GAction = _GAction;
pub type GApplication = _GApplication;
pub type GApplicationCommandLine = _GApplicationCommandLine;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GSettingsBackend {
_unused: [u8; 0],
}
pub type GSettingsBackend = _GSettingsBackend;
pub type GSettings = _GSettings;
pub type GPermission = _GPermission;
pub type GMenuModel = _GMenuModel;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GNotification {
_unused: [u8; 0],
}
pub type GNotification = _GNotification;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GDrive {
_unused: [u8; 0],
}
pub type GDrive = _GDrive;
pub type GFileEnumerator = _GFileEnumerator;
pub type GFileMonitor = _GFileMonitor;
pub type GFilterInputStream = _GFilterInputStream;
pub type GFilterOutputStream = _GFilterOutputStream;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GFile {
_unused: [u8; 0],
}
pub type GFile = _GFile;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GFileInfo {
_unused: [u8; 0],
}
pub type GFileInfo = _GFileInfo;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GFileAttributeMatcher {
_unused: [u8; 0],
}
pub type GFileAttributeMatcher = _GFileAttributeMatcher;
pub type GFileAttributeInfo = _GFileAttributeInfo;
pub type GFileAttributeInfoList = _GFileAttributeInfoList;
pub type GFileInputStream = _GFileInputStream;
pub type GFileOutputStream = _GFileOutputStream;
pub type GFileIOStream = _GFileIOStream;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GFileIcon {
_unused: [u8; 0],
}
pub type GFileIcon = _GFileIcon;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GFilenameCompleter {
_unused: [u8; 0],
}
pub type GFilenameCompleter = _GFilenameCompleter;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GIcon {
_unused: [u8; 0],
}
pub type GIcon = _GIcon;
pub type GInetAddress = _GInetAddress;
pub type GInetAddressMask = _GInetAddressMask;
pub type GInetSocketAddress = _GInetSocketAddress;
pub type GNativeSocketAddress = _GNativeSocketAddress;
pub type GInputStream = _GInputStream;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GInitable {
_unused: [u8; 0],
}
pub type GInitable = _GInitable;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GIOModule {
_unused: [u8; 0],
}
pub type GIOModule = _GIOModule;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GIOExtensionPoint {
_unused: [u8; 0],
}
pub type GIOExtensionPoint = _GIOExtensionPoint;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GIOExtension {
_unused: [u8; 0],
}
pub type GIOExtension = _GIOExtension;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GIOSchedulerJob {
_unused: [u8; 0],
}
pub type GIOSchedulerJob = _GIOSchedulerJob;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GIOStreamAdapter {
_unused: [u8; 0],
}
pub type GIOStreamAdapter = _GIOStreamAdapter;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GLoadableIcon {
_unused: [u8; 0],
}
pub type GLoadableIcon = _GLoadableIcon;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GBytesIcon {
_unused: [u8; 0],
}
pub type GBytesIcon = _GBytesIcon;
pub type GMemoryInputStream = _GMemoryInputStream;
pub type GMemoryOutputStream = _GMemoryOutputStream;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GMount {
_unused: [u8; 0],
}
pub type GMount = _GMount;
pub type GMountOperation = _GMountOperation;
pub type GNetworkAddress = _GNetworkAddress;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GNetworkMonitor {
_unused: [u8; 0],
}
pub type GNetworkMonitor = _GNetworkMonitor;
pub type GNetworkService = _GNetworkService;
pub type GOutputStream = _GOutputStream;
pub type GIOStream = _GIOStream;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GSimpleIOStream {
_unused: [u8; 0],
}
pub type GSimpleIOStream = _GSimpleIOStream;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GPollableInputStream {
_unused: [u8; 0],
}
pub type GPollableInputStream = _GPollableInputStream;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GPollableOutputStream {
_unused: [u8; 0],
}
pub type GPollableOutputStream = _GPollableOutputStream;
pub type GResolver = _GResolver;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GResource {
_unused: [u8; 0],
}
pub type GResource = _GResource;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GSeekable {
_unused: [u8; 0],
}
pub type GSeekable = _GSeekable;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GSimpleAsyncResult {
_unused: [u8; 0],
}
pub type GSimpleAsyncResult = _GSimpleAsyncResult;
pub type GSocket = _GSocket;
pub type GSocketControlMessage = _GSocketControlMessage;
pub type GSocketClient = _GSocketClient;
pub type GSocketConnection = _GSocketConnection;
pub type GSocketListener = _GSocketListener;
pub type GSocketService = _GSocketService;
pub type GSocketAddress = _GSocketAddress;
pub type GSocketAddressEnumerator = _GSocketAddressEnumerator;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GSocketConnectable {
_unused: [u8; 0],
}
pub type GSocketConnectable = _GSocketConnectable;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GSrvTarget {
_unused: [u8; 0],
}
pub type GSrvTarget = _GSrvTarget;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GTask {
_unused: [u8; 0],
}
pub type GTask = _GTask;
pub type GTcpConnection = _GTcpConnection;
pub type GTcpWrapperConnection = _GTcpWrapperConnection;
pub type GThreadedSocketService = _GThreadedSocketService;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GDtlsConnection {
_unused: [u8; 0],
}
pub type GDtlsConnection = _GDtlsConnection;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GDtlsClientConnection {
_unused: [u8; 0],
}
pub type GDtlsClientConnection = _GDtlsClientConnection;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GDtlsServerConnection {
_unused: [u8; 0],
}
pub type GDtlsServerConnection = _GDtlsServerConnection;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GThemedIcon {
_unused: [u8; 0],
}
pub type GThemedIcon = _GThemedIcon;
pub type GTlsCertificate = _GTlsCertificate;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GTlsClientConnection {
_unused: [u8; 0],
}
pub type GTlsClientConnection = _GTlsClientConnection;
pub type GTlsConnection = _GTlsConnection;
pub type GTlsDatabase = _GTlsDatabase;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GTlsFileDatabase {
_unused: [u8; 0],
}
pub type GTlsFileDatabase = _GTlsFileDatabase;
pub type GTlsInteraction = _GTlsInteraction;
pub type GTlsPassword = _GTlsPassword;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GTlsServerConnection {
_unused: [u8; 0],
}
pub type GTlsServerConnection = _GTlsServerConnection;
pub type GVfs = _GVfs;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GProxyResolver {
_unused: [u8; 0],
}
pub type GProxyResolver = _GProxyResolver;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GProxy {
_unused: [u8; 0],
}
pub type GProxy = _GProxy;
pub type GProxyAddress = _GProxyAddress;
pub type GProxyAddressEnumerator = _GProxyAddressEnumerator;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GVolume {
_unused: [u8; 0],
}
pub type GVolume = _GVolume;
pub type GVolumeMonitor = _GVolumeMonitor;
pub type GAsyncReadyCallback = ::std::option::Option<
unsafe extern "C" fn(source_object: *mut GObject, res: *mut GAsyncResult, data: gpointer),
>;
pub type GFileProgressCallback = ::std::option::Option<
unsafe extern "C" fn(current_num_bytes: goffset, total_num_bytes: goffset, data: gpointer),
>;
pub type GFileReadMoreCallback = ::std::option::Option<
unsafe extern "C" fn(
file_contents: *const ::std::os::raw::c_char,
file_size: goffset,
callback_data: gpointer,
) -> gboolean,
>;
pub type GFileMeasureProgressCallback = ::std::option::Option<
unsafe extern "C" fn(
reporting: gboolean,
current_size: guint64,
num_dirs: guint64,
num_files: guint64,
data: gpointer,
),
>;
pub type GIOSchedulerJobFunc = ::std::option::Option<
unsafe extern "C" fn(
job: *mut GIOSchedulerJob,
cancellable: *mut GCancellable,
data: gpointer,
) -> gboolean,
>;
pub type GSimpleAsyncThreadFunc = ::std::option::Option<
unsafe extern "C" fn(
res: *mut GSimpleAsyncResult,
object: *mut GObject,
cancellable: *mut GCancellable,
),
>;
pub type GSocketSourceFunc = ::std::option::Option<
unsafe extern "C" fn(socket: *mut GSocket, condition: GIOCondition, data: gpointer) -> gboolean,
>;
pub type GDatagramBasedSourceFunc = ::std::option::Option<
unsafe extern "C" fn(
datagram_based: *mut GDatagramBased,
condition: GIOCondition,
data: gpointer,
) -> gboolean,
>;
pub type GInputVector = _GInputVector;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GInputVector {
pub buffer: gpointer,
pub size: gsize,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GInputVector"][::std::mem::size_of::<_GInputVector>() - 16usize];
["Alignment of _GInputVector"][::std::mem::align_of::<_GInputVector>() - 8usize];
["Offset of field: _GInputVector::buffer"]
[::std::mem::offset_of!(_GInputVector, buffer) - 0usize];
["Offset of field: _GInputVector::size"][::std::mem::offset_of!(_GInputVector, size) - 8usize];
};
pub type GInputMessage = _GInputMessage;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GInputMessage {
pub address: *mut *mut GSocketAddress,
pub vectors: *mut GInputVector,
pub num_vectors: guint,
pub bytes_received: gsize,
pub flags: gint,
pub control_messages: *mut *mut *mut GSocketControlMessage,
pub num_control_messages: *mut guint,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GInputMessage"][::std::mem::size_of::<_GInputMessage>() - 56usize];
["Alignment of _GInputMessage"][::std::mem::align_of::<_GInputMessage>() - 8usize];
["Offset of field: _GInputMessage::address"]
[::std::mem::offset_of!(_GInputMessage, address) - 0usize];
["Offset of field: _GInputMessage::vectors"]
[::std::mem::offset_of!(_GInputMessage, vectors) - 8usize];
["Offset of field: _GInputMessage::num_vectors"]
[::std::mem::offset_of!(_GInputMessage, num_vectors) - 16usize];
["Offset of field: _GInputMessage::bytes_received"]
[::std::mem::offset_of!(_GInputMessage, bytes_received) - 24usize];
["Offset of field: _GInputMessage::flags"]
[::std::mem::offset_of!(_GInputMessage, flags) - 32usize];
["Offset of field: _GInputMessage::control_messages"]
[::std::mem::offset_of!(_GInputMessage, control_messages) - 40usize];
["Offset of field: _GInputMessage::num_control_messages"]
[::std::mem::offset_of!(_GInputMessage, num_control_messages) - 48usize];
};
pub type GOutputVector = _GOutputVector;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GOutputVector {
pub buffer: gconstpointer,
pub size: gsize,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GOutputVector"][::std::mem::size_of::<_GOutputVector>() - 16usize];
["Alignment of _GOutputVector"][::std::mem::align_of::<_GOutputVector>() - 8usize];
["Offset of field: _GOutputVector::buffer"]
[::std::mem::offset_of!(_GOutputVector, buffer) - 0usize];
["Offset of field: _GOutputVector::size"]
[::std::mem::offset_of!(_GOutputVector, size) - 8usize];
};
pub type GOutputMessage = _GOutputMessage;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GOutputMessage {
pub address: *mut GSocketAddress,
pub vectors: *mut GOutputVector,
pub num_vectors: guint,
pub bytes_sent: guint,
pub control_messages: *mut *mut GSocketControlMessage,
pub num_control_messages: guint,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GOutputMessage"][::std::mem::size_of::<_GOutputMessage>() - 40usize];
["Alignment of _GOutputMessage"][::std::mem::align_of::<_GOutputMessage>() - 8usize];
["Offset of field: _GOutputMessage::address"]
[::std::mem::offset_of!(_GOutputMessage, address) - 0usize];
["Offset of field: _GOutputMessage::vectors"]
[::std::mem::offset_of!(_GOutputMessage, vectors) - 8usize];
["Offset of field: _GOutputMessage::num_vectors"]
[::std::mem::offset_of!(_GOutputMessage, num_vectors) - 16usize];
["Offset of field: _GOutputMessage::bytes_sent"]
[::std::mem::offset_of!(_GOutputMessage, bytes_sent) - 20usize];
["Offset of field: _GOutputMessage::control_messages"]
[::std::mem::offset_of!(_GOutputMessage, control_messages) - 24usize];
["Offset of field: _GOutputMessage::num_control_messages"]
[::std::mem::offset_of!(_GOutputMessage, num_control_messages) - 32usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GCredentials {
_unused: [u8; 0],
}
pub type GCredentials = _GCredentials;
pub type GUnixCredentialsMessage = _GUnixCredentialsMessage;
pub type GUnixFDList = _GUnixFDList;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GDBusMessage {
_unused: [u8; 0],
}
pub type GDBusMessage = _GDBusMessage;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GDBusConnection {
_unused: [u8; 0],
}
pub type GDBusConnection = _GDBusConnection;
pub type GDBusProxy = _GDBusProxy;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GDBusMethodInvocation {
_unused: [u8; 0],
}
pub type GDBusMethodInvocation = _GDBusMethodInvocation;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GDBusServer {
_unused: [u8; 0],
}
pub type GDBusServer = _GDBusServer;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GDBusAuthObserver {
_unused: [u8; 0],
}
pub type GDBusAuthObserver = _GDBusAuthObserver;
pub type GDBusErrorEntry = _GDBusErrorEntry;
pub type GDBusInterfaceVTable = _GDBusInterfaceVTable;
pub type GDBusSubtreeVTable = _GDBusSubtreeVTable;
pub type GDBusAnnotationInfo = _GDBusAnnotationInfo;
pub type GDBusArgInfo = _GDBusArgInfo;
pub type GDBusMethodInfo = _GDBusMethodInfo;
pub type GDBusSignalInfo = _GDBusSignalInfo;
pub type GDBusPropertyInfo = _GDBusPropertyInfo;
pub type GDBusInterfaceInfo = _GDBusInterfaceInfo;
pub type GDBusNodeInfo = _GDBusNodeInfo;
pub type GCancellableSourceFunc = ::std::option::Option<
unsafe extern "C" fn(cancellable: *mut GCancellable, data: gpointer) -> gboolean,
>;
pub type GPollableSourceFunc = ::std::option::Option<
unsafe extern "C" fn(pollable_stream: *mut GObject, data: gpointer) -> gboolean,
>;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GDBusInterface {
_unused: [u8; 0],
}
pub type GDBusInterface = _GDBusInterface;
pub type GDBusInterfaceSkeleton = _GDBusInterfaceSkeleton;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GDBusObject {
_unused: [u8; 0],
}
pub type GDBusObject = _GDBusObject;
pub type GDBusObjectSkeleton = _GDBusObjectSkeleton;
pub type GDBusObjectProxy = _GDBusObjectProxy;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GDBusObjectManager {
_unused: [u8; 0],
}
pub type GDBusObjectManager = _GDBusObjectManager;
pub type GDBusObjectManagerClient = _GDBusObjectManagerClient;
pub type GDBusObjectManagerServer = _GDBusObjectManagerServer;
pub type GDBusProxyTypeFunc = ::std::option::Option<
unsafe extern "C" fn(
manager: *mut GDBusObjectManagerClient,
object_path: *const gchar,
interface_name: *const gchar,
data: gpointer,
) -> GType,
>;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GTestDBus {
_unused: [u8; 0],
}
pub type GTestDBus = _GTestDBus;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GSubprocess {
_unused: [u8; 0],
}
pub type GSubprocess = _GSubprocess;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GSubprocessLauncher {
_unused: [u8; 0],
}
pub type GSubprocessLauncher = _GSubprocessLauncher;
pub type GActionInterface = _GActionInterface;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GActionInterface {
pub g_iface: GTypeInterface,
pub get_name: ::std::option::Option<unsafe extern "C" fn(action: *mut GAction) -> *const gchar>,
pub get_parameter_type:
::std::option::Option<unsafe extern "C" fn(action: *mut GAction) -> *const GVariantType>,
pub get_state_type:
::std::option::Option<unsafe extern "C" fn(action: *mut GAction) -> *const GVariantType>,
pub get_state_hint:
::std::option::Option<unsafe extern "C" fn(action: *mut GAction) -> *mut GVariant>,
pub get_enabled: ::std::option::Option<unsafe extern "C" fn(action: *mut GAction) -> gboolean>,
pub get_state:
::std::option::Option<unsafe extern "C" fn(action: *mut GAction) -> *mut GVariant>,
pub change_state:
::std::option::Option<unsafe extern "C" fn(action: *mut GAction, value: *mut GVariant)>,
pub activate:
::std::option::Option<unsafe extern "C" fn(action: *mut GAction, parameter: *mut GVariant)>,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GActionInterface"][::std::mem::size_of::<_GActionInterface>() - 80usize];
["Alignment of _GActionInterface"][::std::mem::align_of::<_GActionInterface>() - 8usize];
["Offset of field: _GActionInterface::g_iface"]
[::std::mem::offset_of!(_GActionInterface, g_iface) - 0usize];
["Offset of field: _GActionInterface::get_name"]
[::std::mem::offset_of!(_GActionInterface, get_name) - 16usize];
["Offset of field: _GActionInterface::get_parameter_type"]
[::std::mem::offset_of!(_GActionInterface, get_parameter_type) - 24usize];
["Offset of field: _GActionInterface::get_state_type"]
[::std::mem::offset_of!(_GActionInterface, get_state_type) - 32usize];
["Offset of field: _GActionInterface::get_state_hint"]
[::std::mem::offset_of!(_GActionInterface, get_state_hint) - 40usize];
["Offset of field: _GActionInterface::get_enabled"]
[::std::mem::offset_of!(_GActionInterface, get_enabled) - 48usize];
["Offset of field: _GActionInterface::get_state"]
[::std::mem::offset_of!(_GActionInterface, get_state) - 56usize];
["Offset of field: _GActionInterface::change_state"]
[::std::mem::offset_of!(_GActionInterface, change_state) - 64usize];
["Offset of field: _GActionInterface::activate"]
[::std::mem::offset_of!(_GActionInterface, activate) - 72usize];
};
unsafe extern "C" {
pub fn g_action_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_action_get_name(action: *mut GAction) -> *const gchar;
}
unsafe extern "C" {
pub fn g_action_get_parameter_type(action: *mut GAction) -> *const GVariantType;
}
unsafe extern "C" {
pub fn g_action_get_state_type(action: *mut GAction) -> *const GVariantType;
}
unsafe extern "C" {
pub fn g_action_get_state_hint(action: *mut GAction) -> *mut GVariant;
}
unsafe extern "C" {
pub fn g_action_get_enabled(action: *mut GAction) -> gboolean;
}
unsafe extern "C" {
pub fn g_action_get_state(action: *mut GAction) -> *mut GVariant;
}
unsafe extern "C" {
pub fn g_action_change_state(action: *mut GAction, value: *mut GVariant);
}
unsafe extern "C" {
pub fn g_action_activate(action: *mut GAction, parameter: *mut GVariant);
}
unsafe extern "C" {
pub fn g_action_name_is_valid(action_name: *const gchar) -> gboolean;
}
unsafe extern "C" {
pub fn g_action_parse_detailed_name(
detailed_name: *const gchar,
action_name: *mut *mut gchar,
target_value: *mut *mut GVariant,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_action_print_detailed_name(
action_name: *const gchar,
target_value: *mut GVariant,
) -> *mut gchar;
}
pub type GActionGroupInterface = _GActionGroupInterface;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GActionGroupInterface {
pub g_iface: GTypeInterface,
pub has_action: ::std::option::Option<
unsafe extern "C" fn(
action_group: *mut GActionGroup,
action_name: *const gchar,
) -> gboolean,
>,
pub list_actions: ::std::option::Option<
unsafe extern "C" fn(action_group: *mut GActionGroup) -> *mut *mut gchar,
>,
pub get_action_enabled: ::std::option::Option<
unsafe extern "C" fn(
action_group: *mut GActionGroup,
action_name: *const gchar,
) -> gboolean,
>,
pub get_action_parameter_type: ::std::option::Option<
unsafe extern "C" fn(
action_group: *mut GActionGroup,
action_name: *const gchar,
) -> *const GVariantType,
>,
pub get_action_state_type: ::std::option::Option<
unsafe extern "C" fn(
action_group: *mut GActionGroup,
action_name: *const gchar,
) -> *const GVariantType,
>,
pub get_action_state_hint: ::std::option::Option<
unsafe extern "C" fn(
action_group: *mut GActionGroup,
action_name: *const gchar,
) -> *mut GVariant,
>,
pub get_action_state: ::std::option::Option<
unsafe extern "C" fn(
action_group: *mut GActionGroup,
action_name: *const gchar,
) -> *mut GVariant,
>,
pub change_action_state: ::std::option::Option<
unsafe extern "C" fn(
action_group: *mut GActionGroup,
action_name: *const gchar,
value: *mut GVariant,
),
>,
pub activate_action: ::std::option::Option<
unsafe extern "C" fn(
action_group: *mut GActionGroup,
action_name: *const gchar,
parameter: *mut GVariant,
),
>,
pub action_added: ::std::option::Option<
unsafe extern "C" fn(action_group: *mut GActionGroup, action_name: *const gchar),
>,
pub action_removed: ::std::option::Option<
unsafe extern "C" fn(action_group: *mut GActionGroup, action_name: *const gchar),
>,
pub action_enabled_changed: ::std::option::Option<
unsafe extern "C" fn(
action_group: *mut GActionGroup,
action_name: *const gchar,
enabled: gboolean,
),
>,
pub action_state_changed: ::std::option::Option<
unsafe extern "C" fn(
action_group: *mut GActionGroup,
action_name: *const gchar,
state: *mut GVariant,
),
>,
pub query_action: ::std::option::Option<
unsafe extern "C" fn(
action_group: *mut GActionGroup,
action_name: *const gchar,
enabled: *mut gboolean,
parameter_type: *mut *const GVariantType,
state_type: *mut *const GVariantType,
state_hint: *mut *mut GVariant,
state: *mut *mut GVariant,
) -> gboolean,
>,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GActionGroupInterface"][::std::mem::size_of::<_GActionGroupInterface>() - 128usize];
["Alignment of _GActionGroupInterface"]
[::std::mem::align_of::<_GActionGroupInterface>() - 8usize];
["Offset of field: _GActionGroupInterface::g_iface"]
[::std::mem::offset_of!(_GActionGroupInterface, g_iface) - 0usize];
["Offset of field: _GActionGroupInterface::has_action"]
[::std::mem::offset_of!(_GActionGroupInterface, has_action) - 16usize];
["Offset of field: _GActionGroupInterface::list_actions"]
[::std::mem::offset_of!(_GActionGroupInterface, list_actions) - 24usize];
["Offset of field: _GActionGroupInterface::get_action_enabled"]
[::std::mem::offset_of!(_GActionGroupInterface, get_action_enabled) - 32usize];
["Offset of field: _GActionGroupInterface::get_action_parameter_type"]
[::std::mem::offset_of!(_GActionGroupInterface, get_action_parameter_type) - 40usize];
["Offset of field: _GActionGroupInterface::get_action_state_type"]
[::std::mem::offset_of!(_GActionGroupInterface, get_action_state_type) - 48usize];
["Offset of field: _GActionGroupInterface::get_action_state_hint"]
[::std::mem::offset_of!(_GActionGroupInterface, get_action_state_hint) - 56usize];
["Offset of field: _GActionGroupInterface::get_action_state"]
[::std::mem::offset_of!(_GActionGroupInterface, get_action_state) - 64usize];
["Offset of field: _GActionGroupInterface::change_action_state"]
[::std::mem::offset_of!(_GActionGroupInterface, change_action_state) - 72usize];
["Offset of field: _GActionGroupInterface::activate_action"]
[::std::mem::offset_of!(_GActionGroupInterface, activate_action) - 80usize];
["Offset of field: _GActionGroupInterface::action_added"]
[::std::mem::offset_of!(_GActionGroupInterface, action_added) - 88usize];
["Offset of field: _GActionGroupInterface::action_removed"]
[::std::mem::offset_of!(_GActionGroupInterface, action_removed) - 96usize];
["Offset of field: _GActionGroupInterface::action_enabled_changed"]
[::std::mem::offset_of!(_GActionGroupInterface, action_enabled_changed) - 104usize];
["Offset of field: _GActionGroupInterface::action_state_changed"]
[::std::mem::offset_of!(_GActionGroupInterface, action_state_changed) - 112usize];
["Offset of field: _GActionGroupInterface::query_action"]
[::std::mem::offset_of!(_GActionGroupInterface, query_action) - 120usize];
};
unsafe extern "C" {
pub fn g_action_group_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_action_group_has_action(
action_group: *mut GActionGroup,
action_name: *const gchar,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_action_group_list_actions(action_group: *mut GActionGroup) -> *mut *mut gchar;
}
unsafe extern "C" {
pub fn g_action_group_get_action_parameter_type(
action_group: *mut GActionGroup,
action_name: *const gchar,
) -> *const GVariantType;
}
unsafe extern "C" {
pub fn g_action_group_get_action_state_type(
action_group: *mut GActionGroup,
action_name: *const gchar,
) -> *const GVariantType;
}
unsafe extern "C" {
pub fn g_action_group_get_action_state_hint(
action_group: *mut GActionGroup,
action_name: *const gchar,
) -> *mut GVariant;
}
unsafe extern "C" {
pub fn g_action_group_get_action_enabled(
action_group: *mut GActionGroup,
action_name: *const gchar,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_action_group_get_action_state(
action_group: *mut GActionGroup,
action_name: *const gchar,
) -> *mut GVariant;
}
unsafe extern "C" {
pub fn g_action_group_change_action_state(
action_group: *mut GActionGroup,
action_name: *const gchar,
value: *mut GVariant,
);
}
unsafe extern "C" {
pub fn g_action_group_activate_action(
action_group: *mut GActionGroup,
action_name: *const gchar,
parameter: *mut GVariant,
);
}
unsafe extern "C" {
pub fn g_action_group_action_added(action_group: *mut GActionGroup, action_name: *const gchar);
}
unsafe extern "C" {
pub fn g_action_group_action_removed(
action_group: *mut GActionGroup,
action_name: *const gchar,
);
}
unsafe extern "C" {
pub fn g_action_group_action_enabled_changed(
action_group: *mut GActionGroup,
action_name: *const gchar,
enabled: gboolean,
);
}
unsafe extern "C" {
pub fn g_action_group_action_state_changed(
action_group: *mut GActionGroup,
action_name: *const gchar,
state: *mut GVariant,
);
}
unsafe extern "C" {
pub fn g_action_group_query_action(
action_group: *mut GActionGroup,
action_name: *const gchar,
enabled: *mut gboolean,
parameter_type: *mut *const GVariantType,
state_type: *mut *const GVariantType,
state_hint: *mut *mut GVariant,
state: *mut *mut GVariant,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_dbus_connection_export_action_group(
connection: *mut GDBusConnection,
object_path: *const gchar,
action_group: *mut GActionGroup,
error: *mut *mut GError,
) -> guint;
}
unsafe extern "C" {
pub fn g_dbus_connection_unexport_action_group(
connection: *mut GDBusConnection,
export_id: guint,
);
}
pub type GActionMapInterface = _GActionMapInterface;
pub type GActionEntry = _GActionEntry;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GActionMapInterface {
pub g_iface: GTypeInterface,
pub lookup_action: ::std::option::Option<
unsafe extern "C" fn(
action_map: *mut GActionMap,
action_name: *const gchar,
) -> *mut GAction,
>,
pub add_action: ::std::option::Option<
unsafe extern "C" fn(action_map: *mut GActionMap, action: *mut GAction),
>,
pub remove_action: ::std::option::Option<
unsafe extern "C" fn(action_map: *mut GActionMap, action_name: *const gchar),
>,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GActionMapInterface"][::std::mem::size_of::<_GActionMapInterface>() - 40usize];
["Alignment of _GActionMapInterface"][::std::mem::align_of::<_GActionMapInterface>() - 8usize];
["Offset of field: _GActionMapInterface::g_iface"]
[::std::mem::offset_of!(_GActionMapInterface, g_iface) - 0usize];
["Offset of field: _GActionMapInterface::lookup_action"]
[::std::mem::offset_of!(_GActionMapInterface, lookup_action) - 16usize];
["Offset of field: _GActionMapInterface::add_action"]
[::std::mem::offset_of!(_GActionMapInterface, add_action) - 24usize];
["Offset of field: _GActionMapInterface::remove_action"]
[::std::mem::offset_of!(_GActionMapInterface, remove_action) - 32usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GActionEntry {
pub name: *const gchar,
pub activate: ::std::option::Option<
unsafe extern "C" fn(
action: *mut GSimpleAction,
parameter: *mut GVariant,
user_data: gpointer,
),
>,
pub parameter_type: *const gchar,
pub state: *const gchar,
pub change_state: ::std::option::Option<
unsafe extern "C" fn(action: *mut GSimpleAction, value: *mut GVariant, user_data: gpointer),
>,
pub padding: [gsize; 3usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GActionEntry"][::std::mem::size_of::<_GActionEntry>() - 64usize];
["Alignment of _GActionEntry"][::std::mem::align_of::<_GActionEntry>() - 8usize];
["Offset of field: _GActionEntry::name"][::std::mem::offset_of!(_GActionEntry, name) - 0usize];
["Offset of field: _GActionEntry::activate"]
[::std::mem::offset_of!(_GActionEntry, activate) - 8usize];
["Offset of field: _GActionEntry::parameter_type"]
[::std::mem::offset_of!(_GActionEntry, parameter_type) - 16usize];
["Offset of field: _GActionEntry::state"]
[::std::mem::offset_of!(_GActionEntry, state) - 24usize];
["Offset of field: _GActionEntry::change_state"]
[::std::mem::offset_of!(_GActionEntry, change_state) - 32usize];
["Offset of field: _GActionEntry::padding"]
[::std::mem::offset_of!(_GActionEntry, padding) - 40usize];
};
unsafe extern "C" {
pub fn g_action_map_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_action_map_lookup_action(
action_map: *mut GActionMap,
action_name: *const gchar,
) -> *mut GAction;
}
unsafe extern "C" {
pub fn g_action_map_add_action(action_map: *mut GActionMap, action: *mut GAction);
}
unsafe extern "C" {
pub fn g_action_map_remove_action(action_map: *mut GActionMap, action_name: *const gchar);
}
unsafe extern "C" {
pub fn g_action_map_add_action_entries(
action_map: *mut GActionMap,
entries: *const GActionEntry,
n_entries: gint,
user_data: gpointer,
);
}
unsafe extern "C" {
pub fn g_action_map_remove_action_entries(
action_map: *mut GActionMap,
entries: *const GActionEntry,
n_entries: gint,
);
}
pub type GAppLaunchContextClass = _GAppLaunchContextClass;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GAppLaunchContextPrivate {
_unused: [u8; 0],
}
pub type GAppLaunchContextPrivate = _GAppLaunchContextPrivate;
pub type GAppInfoIface = _GAppInfoIface;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GAppInfoIface {
pub g_iface: GTypeInterface,
pub dup: ::std::option::Option<unsafe extern "C" fn(appinfo: *mut GAppInfo) -> *mut GAppInfo>,
pub equal: ::std::option::Option<
unsafe extern "C" fn(appinfo1: *mut GAppInfo, appinfo2: *mut GAppInfo) -> gboolean,
>,
pub get_id: ::std::option::Option<
unsafe extern "C" fn(appinfo: *mut GAppInfo) -> *const ::std::os::raw::c_char,
>,
pub get_name: ::std::option::Option<
unsafe extern "C" fn(appinfo: *mut GAppInfo) -> *const ::std::os::raw::c_char,
>,
pub get_description: ::std::option::Option<
unsafe extern "C" fn(appinfo: *mut GAppInfo) -> *const ::std::os::raw::c_char,
>,
pub get_executable: ::std::option::Option<
unsafe extern "C" fn(appinfo: *mut GAppInfo) -> *const ::std::os::raw::c_char,
>,
pub get_icon: ::std::option::Option<unsafe extern "C" fn(appinfo: *mut GAppInfo) -> *mut GIcon>,
pub launch: ::std::option::Option<
unsafe extern "C" fn(
appinfo: *mut GAppInfo,
files: *mut GList,
context: *mut GAppLaunchContext,
error: *mut *mut GError,
) -> gboolean,
>,
pub supports_uris:
::std::option::Option<unsafe extern "C" fn(appinfo: *mut GAppInfo) -> gboolean>,
pub supports_files:
::std::option::Option<unsafe extern "C" fn(appinfo: *mut GAppInfo) -> gboolean>,
pub launch_uris: ::std::option::Option<
unsafe extern "C" fn(
appinfo: *mut GAppInfo,
uris: *mut GList,
context: *mut GAppLaunchContext,
error: *mut *mut GError,
) -> gboolean,
>,
pub should_show:
::std::option::Option<unsafe extern "C" fn(appinfo: *mut GAppInfo) -> gboolean>,
pub set_as_default_for_type: ::std::option::Option<
unsafe extern "C" fn(
appinfo: *mut GAppInfo,
content_type: *const ::std::os::raw::c_char,
error: *mut *mut GError,
) -> gboolean,
>,
pub set_as_default_for_extension: ::std::option::Option<
unsafe extern "C" fn(
appinfo: *mut GAppInfo,
extension: *const ::std::os::raw::c_char,
error: *mut *mut GError,
) -> gboolean,
>,
pub add_supports_type: ::std::option::Option<
unsafe extern "C" fn(
appinfo: *mut GAppInfo,
content_type: *const ::std::os::raw::c_char,
error: *mut *mut GError,
) -> gboolean,
>,
pub can_remove_supports_type:
::std::option::Option<unsafe extern "C" fn(appinfo: *mut GAppInfo) -> gboolean>,
pub remove_supports_type: ::std::option::Option<
unsafe extern "C" fn(
appinfo: *mut GAppInfo,
content_type: *const ::std::os::raw::c_char,
error: *mut *mut GError,
) -> gboolean,
>,
pub can_delete: ::std::option::Option<unsafe extern "C" fn(appinfo: *mut GAppInfo) -> gboolean>,
pub do_delete: ::std::option::Option<unsafe extern "C" fn(appinfo: *mut GAppInfo) -> gboolean>,
pub get_commandline: ::std::option::Option<
unsafe extern "C" fn(appinfo: *mut GAppInfo) -> *const ::std::os::raw::c_char,
>,
pub get_display_name: ::std::option::Option<
unsafe extern "C" fn(appinfo: *mut GAppInfo) -> *const ::std::os::raw::c_char,
>,
pub set_as_last_used_for_type: ::std::option::Option<
unsafe extern "C" fn(
appinfo: *mut GAppInfo,
content_type: *const ::std::os::raw::c_char,
error: *mut *mut GError,
) -> gboolean,
>,
pub get_supported_types: ::std::option::Option<
unsafe extern "C" fn(appinfo: *mut GAppInfo) -> *mut *const ::std::os::raw::c_char,
>,
pub launch_uris_async: ::std::option::Option<
unsafe extern "C" fn(
appinfo: *mut GAppInfo,
uris: *mut GList,
context: *mut GAppLaunchContext,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
),
>,
pub launch_uris_finish: ::std::option::Option<
unsafe extern "C" fn(
appinfo: *mut GAppInfo,
result: *mut GAsyncResult,
error: *mut *mut GError,
) -> gboolean,
>,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GAppInfoIface"][::std::mem::size_of::<_GAppInfoIface>() - 216usize];
["Alignment of _GAppInfoIface"][::std::mem::align_of::<_GAppInfoIface>() - 8usize];
["Offset of field: _GAppInfoIface::g_iface"]
[::std::mem::offset_of!(_GAppInfoIface, g_iface) - 0usize];
["Offset of field: _GAppInfoIface::dup"][::std::mem::offset_of!(_GAppInfoIface, dup) - 16usize];
["Offset of field: _GAppInfoIface::equal"]
[::std::mem::offset_of!(_GAppInfoIface, equal) - 24usize];
["Offset of field: _GAppInfoIface::get_id"]
[::std::mem::offset_of!(_GAppInfoIface, get_id) - 32usize];
["Offset of field: _GAppInfoIface::get_name"]
[::std::mem::offset_of!(_GAppInfoIface, get_name) - 40usize];
["Offset of field: _GAppInfoIface::get_description"]
[::std::mem::offset_of!(_GAppInfoIface, get_description) - 48usize];
["Offset of field: _GAppInfoIface::get_executable"]
[::std::mem::offset_of!(_GAppInfoIface, get_executable) - 56usize];
["Offset of field: _GAppInfoIface::get_icon"]
[::std::mem::offset_of!(_GAppInfoIface, get_icon) - 64usize];
["Offset of field: _GAppInfoIface::launch"]
[::std::mem::offset_of!(_GAppInfoIface, launch) - 72usize];
["Offset of field: _GAppInfoIface::supports_uris"]
[::std::mem::offset_of!(_GAppInfoIface, supports_uris) - 80usize];
["Offset of field: _GAppInfoIface::supports_files"]
[::std::mem::offset_of!(_GAppInfoIface, supports_files) - 88usize];
["Offset of field: _GAppInfoIface::launch_uris"]
[::std::mem::offset_of!(_GAppInfoIface, launch_uris) - 96usize];
["Offset of field: _GAppInfoIface::should_show"]
[::std::mem::offset_of!(_GAppInfoIface, should_show) - 104usize];
["Offset of field: _GAppInfoIface::set_as_default_for_type"]
[::std::mem::offset_of!(_GAppInfoIface, set_as_default_for_type) - 112usize];
["Offset of field: _GAppInfoIface::set_as_default_for_extension"]
[::std::mem::offset_of!(_GAppInfoIface, set_as_default_for_extension) - 120usize];
["Offset of field: _GAppInfoIface::add_supports_type"]
[::std::mem::offset_of!(_GAppInfoIface, add_supports_type) - 128usize];
["Offset of field: _GAppInfoIface::can_remove_supports_type"]
[::std::mem::offset_of!(_GAppInfoIface, can_remove_supports_type) - 136usize];
["Offset of field: _GAppInfoIface::remove_supports_type"]
[::std::mem::offset_of!(_GAppInfoIface, remove_supports_type) - 144usize];
["Offset of field: _GAppInfoIface::can_delete"]
[::std::mem::offset_of!(_GAppInfoIface, can_delete) - 152usize];
["Offset of field: _GAppInfoIface::do_delete"]
[::std::mem::offset_of!(_GAppInfoIface, do_delete) - 160usize];
["Offset of field: _GAppInfoIface::get_commandline"]
[::std::mem::offset_of!(_GAppInfoIface, get_commandline) - 168usize];
["Offset of field: _GAppInfoIface::get_display_name"]
[::std::mem::offset_of!(_GAppInfoIface, get_display_name) - 176usize];
["Offset of field: _GAppInfoIface::set_as_last_used_for_type"]
[::std::mem::offset_of!(_GAppInfoIface, set_as_last_used_for_type) - 184usize];
["Offset of field: _GAppInfoIface::get_supported_types"]
[::std::mem::offset_of!(_GAppInfoIface, get_supported_types) - 192usize];
["Offset of field: _GAppInfoIface::launch_uris_async"]
[::std::mem::offset_of!(_GAppInfoIface, launch_uris_async) - 200usize];
["Offset of field: _GAppInfoIface::launch_uris_finish"]
[::std::mem::offset_of!(_GAppInfoIface, launch_uris_finish) - 208usize];
};
unsafe extern "C" {
pub fn g_app_info_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_app_info_create_from_commandline(
commandline: *const ::std::os::raw::c_char,
application_name: *const ::std::os::raw::c_char,
flags: GAppInfoCreateFlags,
error: *mut *mut GError,
) -> *mut GAppInfo;
}
unsafe extern "C" {
pub fn g_app_info_dup(appinfo: *mut GAppInfo) -> *mut GAppInfo;
}
unsafe extern "C" {
pub fn g_app_info_equal(appinfo1: *mut GAppInfo, appinfo2: *mut GAppInfo) -> gboolean;
}
unsafe extern "C" {
pub fn g_app_info_get_id(appinfo: *mut GAppInfo) -> *const ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn g_app_info_get_name(appinfo: *mut GAppInfo) -> *const ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn g_app_info_get_display_name(appinfo: *mut GAppInfo) -> *const ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn g_app_info_get_description(appinfo: *mut GAppInfo) -> *const ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn g_app_info_get_executable(appinfo: *mut GAppInfo) -> *const ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn g_app_info_get_commandline(appinfo: *mut GAppInfo) -> *const ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn g_app_info_get_icon(appinfo: *mut GAppInfo) -> *mut GIcon;
}
unsafe extern "C" {
pub fn g_app_info_launch(
appinfo: *mut GAppInfo,
files: *mut GList,
context: *mut GAppLaunchContext,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_app_info_supports_uris(appinfo: *mut GAppInfo) -> gboolean;
}
unsafe extern "C" {
pub fn g_app_info_supports_files(appinfo: *mut GAppInfo) -> gboolean;
}
unsafe extern "C" {
pub fn g_app_info_launch_uris(
appinfo: *mut GAppInfo,
uris: *mut GList,
context: *mut GAppLaunchContext,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_app_info_launch_uris_async(
appinfo: *mut GAppInfo,
uris: *mut GList,
context: *mut GAppLaunchContext,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
);
}
unsafe extern "C" {
pub fn g_app_info_launch_uris_finish(
appinfo: *mut GAppInfo,
result: *mut GAsyncResult,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_app_info_should_show(appinfo: *mut GAppInfo) -> gboolean;
}
unsafe extern "C" {
pub fn g_app_info_set_as_default_for_type(
appinfo: *mut GAppInfo,
content_type: *const ::std::os::raw::c_char,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_app_info_set_as_default_for_extension(
appinfo: *mut GAppInfo,
extension: *const ::std::os::raw::c_char,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_app_info_add_supports_type(
appinfo: *mut GAppInfo,
content_type: *const ::std::os::raw::c_char,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_app_info_can_remove_supports_type(appinfo: *mut GAppInfo) -> gboolean;
}
unsafe extern "C" {
pub fn g_app_info_remove_supports_type(
appinfo: *mut GAppInfo,
content_type: *const ::std::os::raw::c_char,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_app_info_get_supported_types(
appinfo: *mut GAppInfo,
) -> *mut *const ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn g_app_info_can_delete(appinfo: *mut GAppInfo) -> gboolean;
}
unsafe extern "C" {
pub fn g_app_info_delete(appinfo: *mut GAppInfo) -> gboolean;
}
unsafe extern "C" {
pub fn g_app_info_set_as_last_used_for_type(
appinfo: *mut GAppInfo,
content_type: *const ::std::os::raw::c_char,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_app_info_get_all() -> *mut GList;
}
unsafe extern "C" {
pub fn g_app_info_get_all_for_type(content_type: *const ::std::os::raw::c_char) -> *mut GList;
}
unsafe extern "C" {
pub fn g_app_info_get_recommended_for_type(content_type: *const gchar) -> *mut GList;
}
unsafe extern "C" {
pub fn g_app_info_get_fallback_for_type(content_type: *const gchar) -> *mut GList;
}
unsafe extern "C" {
pub fn g_app_info_reset_type_associations(content_type: *const ::std::os::raw::c_char);
}
unsafe extern "C" {
pub fn g_app_info_get_default_for_type(
content_type: *const ::std::os::raw::c_char,
must_support_uris: gboolean,
) -> *mut GAppInfo;
}
unsafe extern "C" {
pub fn g_app_info_get_default_for_type_async(
content_type: *const ::std::os::raw::c_char,
must_support_uris: gboolean,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
);
}
unsafe extern "C" {
pub fn g_app_info_get_default_for_type_finish(
result: *mut GAsyncResult,
error: *mut *mut GError,
) -> *mut GAppInfo;
}
unsafe extern "C" {
pub fn g_app_info_get_default_for_uri_scheme(
uri_scheme: *const ::std::os::raw::c_char,
) -> *mut GAppInfo;
}
unsafe extern "C" {
pub fn g_app_info_get_default_for_uri_scheme_async(
uri_scheme: *const ::std::os::raw::c_char,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
);
}
unsafe extern "C" {
pub fn g_app_info_get_default_for_uri_scheme_finish(
result: *mut GAsyncResult,
error: *mut *mut GError,
) -> *mut GAppInfo;
}
unsafe extern "C" {
pub fn g_app_info_launch_default_for_uri(
uri: *const ::std::os::raw::c_char,
context: *mut GAppLaunchContext,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_app_info_launch_default_for_uri_async(
uri: *const ::std::os::raw::c_char,
context: *mut GAppLaunchContext,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
);
}
unsafe extern "C" {
pub fn g_app_info_launch_default_for_uri_finish(
result: *mut GAsyncResult,
error: *mut *mut GError,
) -> gboolean;
}
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GAppLaunchContext {
pub parent_instance: GObject,
pub priv_: *mut GAppLaunchContextPrivate,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GAppLaunchContext"][::std::mem::size_of::<_GAppLaunchContext>() - 32usize];
["Alignment of _GAppLaunchContext"][::std::mem::align_of::<_GAppLaunchContext>() - 8usize];
["Offset of field: _GAppLaunchContext::parent_instance"]
[::std::mem::offset_of!(_GAppLaunchContext, parent_instance) - 0usize];
["Offset of field: _GAppLaunchContext::priv_"]
[::std::mem::offset_of!(_GAppLaunchContext, priv_) - 24usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GAppLaunchContextClass {
pub parent_class: GObjectClass,
pub get_display: ::std::option::Option<
unsafe extern "C" fn(
context: *mut GAppLaunchContext,
info: *mut GAppInfo,
files: *mut GList,
) -> *mut ::std::os::raw::c_char,
>,
pub get_startup_notify_id: ::std::option::Option<
unsafe extern "C" fn(
context: *mut GAppLaunchContext,
info: *mut GAppInfo,
files: *mut GList,
) -> *mut ::std::os::raw::c_char,
>,
pub launch_failed: ::std::option::Option<
unsafe extern "C" fn(
context: *mut GAppLaunchContext,
startup_notify_id: *const ::std::os::raw::c_char,
),
>,
pub launched: ::std::option::Option<
unsafe extern "C" fn(
context: *mut GAppLaunchContext,
info: *mut GAppInfo,
platform_data: *mut GVariant,
),
>,
pub launch_started: ::std::option::Option<
unsafe extern "C" fn(
context: *mut GAppLaunchContext,
info: *mut GAppInfo,
platform_data: *mut GVariant,
),
>,
pub _g_reserved1: ::std::option::Option<unsafe extern "C" fn()>,
pub _g_reserved2: ::std::option::Option<unsafe extern "C" fn()>,
pub _g_reserved3: ::std::option::Option<unsafe extern "C" fn()>,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GAppLaunchContextClass"]
[::std::mem::size_of::<_GAppLaunchContextClass>() - 200usize];
["Alignment of _GAppLaunchContextClass"]
[::std::mem::align_of::<_GAppLaunchContextClass>() - 8usize];
["Offset of field: _GAppLaunchContextClass::parent_class"]
[::std::mem::offset_of!(_GAppLaunchContextClass, parent_class) - 0usize];
["Offset of field: _GAppLaunchContextClass::get_display"]
[::std::mem::offset_of!(_GAppLaunchContextClass, get_display) - 136usize];
["Offset of field: _GAppLaunchContextClass::get_startup_notify_id"]
[::std::mem::offset_of!(_GAppLaunchContextClass, get_startup_notify_id) - 144usize];
["Offset of field: _GAppLaunchContextClass::launch_failed"]
[::std::mem::offset_of!(_GAppLaunchContextClass, launch_failed) - 152usize];
["Offset of field: _GAppLaunchContextClass::launched"]
[::std::mem::offset_of!(_GAppLaunchContextClass, launched) - 160usize];
["Offset of field: _GAppLaunchContextClass::launch_started"]
[::std::mem::offset_of!(_GAppLaunchContextClass, launch_started) - 168usize];
["Offset of field: _GAppLaunchContextClass::_g_reserved1"]
[::std::mem::offset_of!(_GAppLaunchContextClass, _g_reserved1) - 176usize];
["Offset of field: _GAppLaunchContextClass::_g_reserved2"]
[::std::mem::offset_of!(_GAppLaunchContextClass, _g_reserved2) - 184usize];
["Offset of field: _GAppLaunchContextClass::_g_reserved3"]
[::std::mem::offset_of!(_GAppLaunchContextClass, _g_reserved3) - 192usize];
};
unsafe extern "C" {
pub fn g_app_launch_context_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_app_launch_context_new() -> *mut GAppLaunchContext;
}
unsafe extern "C" {
pub fn g_app_launch_context_setenv(
context: *mut GAppLaunchContext,
variable: *const ::std::os::raw::c_char,
value: *const ::std::os::raw::c_char,
);
}
unsafe extern "C" {
pub fn g_app_launch_context_unsetenv(
context: *mut GAppLaunchContext,
variable: *const ::std::os::raw::c_char,
);
}
unsafe extern "C" {
pub fn g_app_launch_context_get_environment(
context: *mut GAppLaunchContext,
) -> *mut *mut ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn g_app_launch_context_get_display(
context: *mut GAppLaunchContext,
info: *mut GAppInfo,
files: *mut GList,
) -> *mut ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn g_app_launch_context_get_startup_notify_id(
context: *mut GAppLaunchContext,
info: *mut GAppInfo,
files: *mut GList,
) -> *mut ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn g_app_launch_context_launch_failed(
context: *mut GAppLaunchContext,
startup_notify_id: *const ::std::os::raw::c_char,
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GAppInfoMonitor {
_unused: [u8; 0],
}
pub type GAppInfoMonitor = _GAppInfoMonitor;
unsafe extern "C" {
pub fn g_app_info_monitor_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_app_info_monitor_get() -> *mut GAppInfoMonitor;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GApplicationPrivate {
_unused: [u8; 0],
}
pub type GApplicationPrivate = _GApplicationPrivate;
pub type GApplicationClass = _GApplicationClass;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GApplication {
pub parent_instance: GObject,
pub priv_: *mut GApplicationPrivate,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GApplication"][::std::mem::size_of::<_GApplication>() - 32usize];
["Alignment of _GApplication"][::std::mem::align_of::<_GApplication>() - 8usize];
["Offset of field: _GApplication::parent_instance"]
[::std::mem::offset_of!(_GApplication, parent_instance) - 0usize];
["Offset of field: _GApplication::priv_"]
[::std::mem::offset_of!(_GApplication, priv_) - 24usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GApplicationClass {
pub parent_class: GObjectClass,
pub startup: ::std::option::Option<unsafe extern "C" fn(application: *mut GApplication)>,
pub activate: ::std::option::Option<unsafe extern "C" fn(application: *mut GApplication)>,
pub open: ::std::option::Option<
unsafe extern "C" fn(
application: *mut GApplication,
files: *mut *mut GFile,
n_files: gint,
hint: *const gchar,
),
>,
pub command_line: ::std::option::Option<
unsafe extern "C" fn(
application: *mut GApplication,
command_line: *mut GApplicationCommandLine,
) -> ::std::os::raw::c_int,
>,
pub local_command_line: ::std::option::Option<
unsafe extern "C" fn(
application: *mut GApplication,
arguments: *mut *mut *mut gchar,
exit_status: *mut ::std::os::raw::c_int,
) -> gboolean,
>,
pub before_emit: ::std::option::Option<
unsafe extern "C" fn(application: *mut GApplication, platform_data: *mut GVariant),
>,
pub after_emit: ::std::option::Option<
unsafe extern "C" fn(application: *mut GApplication, platform_data: *mut GVariant),
>,
pub add_platform_data: ::std::option::Option<
unsafe extern "C" fn(application: *mut GApplication, builder: *mut GVariantBuilder),
>,
pub quit_mainloop: ::std::option::Option<unsafe extern "C" fn(application: *mut GApplication)>,
pub run_mainloop: ::std::option::Option<unsafe extern "C" fn(application: *mut GApplication)>,
pub shutdown: ::std::option::Option<unsafe extern "C" fn(application: *mut GApplication)>,
pub dbus_register: ::std::option::Option<
unsafe extern "C" fn(
application: *mut GApplication,
connection: *mut GDBusConnection,
object_path: *const gchar,
error: *mut *mut GError,
) -> gboolean,
>,
pub dbus_unregister: ::std::option::Option<
unsafe extern "C" fn(
application: *mut GApplication,
connection: *mut GDBusConnection,
object_path: *const gchar,
),
>,
pub handle_local_options: ::std::option::Option<
unsafe extern "C" fn(application: *mut GApplication, options: *mut GVariantDict) -> gint,
>,
pub name_lost:
::std::option::Option<unsafe extern "C" fn(application: *mut GApplication) -> gboolean>,
pub padding: [gpointer; 7usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GApplicationClass"][::std::mem::size_of::<_GApplicationClass>() - 312usize];
["Alignment of _GApplicationClass"][::std::mem::align_of::<_GApplicationClass>() - 8usize];
["Offset of field: _GApplicationClass::parent_class"]
[::std::mem::offset_of!(_GApplicationClass, parent_class) - 0usize];
["Offset of field: _GApplicationClass::startup"]
[::std::mem::offset_of!(_GApplicationClass, startup) - 136usize];
["Offset of field: _GApplicationClass::activate"]
[::std::mem::offset_of!(_GApplicationClass, activate) - 144usize];
["Offset of field: _GApplicationClass::open"]
[::std::mem::offset_of!(_GApplicationClass, open) - 152usize];
["Offset of field: _GApplicationClass::command_line"]
[::std::mem::offset_of!(_GApplicationClass, command_line) - 160usize];
["Offset of field: _GApplicationClass::local_command_line"]
[::std::mem::offset_of!(_GApplicationClass, local_command_line) - 168usize];
["Offset of field: _GApplicationClass::before_emit"]
[::std::mem::offset_of!(_GApplicationClass, before_emit) - 176usize];
["Offset of field: _GApplicationClass::after_emit"]
[::std::mem::offset_of!(_GApplicationClass, after_emit) - 184usize];
["Offset of field: _GApplicationClass::add_platform_data"]
[::std::mem::offset_of!(_GApplicationClass, add_platform_data) - 192usize];
["Offset of field: _GApplicationClass::quit_mainloop"]
[::std::mem::offset_of!(_GApplicationClass, quit_mainloop) - 200usize];
["Offset of field: _GApplicationClass::run_mainloop"]
[::std::mem::offset_of!(_GApplicationClass, run_mainloop) - 208usize];
["Offset of field: _GApplicationClass::shutdown"]
[::std::mem::offset_of!(_GApplicationClass, shutdown) - 216usize];
["Offset of field: _GApplicationClass::dbus_register"]
[::std::mem::offset_of!(_GApplicationClass, dbus_register) - 224usize];
["Offset of field: _GApplicationClass::dbus_unregister"]
[::std::mem::offset_of!(_GApplicationClass, dbus_unregister) - 232usize];
["Offset of field: _GApplicationClass::handle_local_options"]
[::std::mem::offset_of!(_GApplicationClass, handle_local_options) - 240usize];
["Offset of field: _GApplicationClass::name_lost"]
[::std::mem::offset_of!(_GApplicationClass, name_lost) - 248usize];
["Offset of field: _GApplicationClass::padding"]
[::std::mem::offset_of!(_GApplicationClass, padding) - 256usize];
};
unsafe extern "C" {
pub fn g_application_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_application_id_is_valid(application_id: *const gchar) -> gboolean;
}
unsafe extern "C" {
pub fn g_application_new(
application_id: *const gchar,
flags: GApplicationFlags,
) -> *mut GApplication;
}
unsafe extern "C" {
pub fn g_application_get_application_id(application: *mut GApplication) -> *const gchar;
}
unsafe extern "C" {
pub fn g_application_set_application_id(
application: *mut GApplication,
application_id: *const gchar,
);
}
unsafe extern "C" {
pub fn g_application_get_version(application: *mut GApplication) -> *const gchar;
}
unsafe extern "C" {
pub fn g_application_set_version(application: *mut GApplication, version: *const gchar);
}
unsafe extern "C" {
pub fn g_application_get_dbus_connection(
application: *mut GApplication,
) -> *mut GDBusConnection;
}
unsafe extern "C" {
pub fn g_application_get_dbus_object_path(application: *mut GApplication) -> *const gchar;
}
unsafe extern "C" {
pub fn g_application_get_inactivity_timeout(application: *mut GApplication) -> guint;
}
unsafe extern "C" {
pub fn g_application_set_inactivity_timeout(
application: *mut GApplication,
inactivity_timeout: guint,
);
}
unsafe extern "C" {
pub fn g_application_get_flags(application: *mut GApplication) -> GApplicationFlags;
}
unsafe extern "C" {
pub fn g_application_set_flags(application: *mut GApplication, flags: GApplicationFlags);
}
unsafe extern "C" {
pub fn g_application_get_resource_base_path(application: *mut GApplication) -> *const gchar;
}
unsafe extern "C" {
pub fn g_application_set_resource_base_path(
application: *mut GApplication,
resource_path: *const gchar,
);
}
unsafe extern "C" {
pub fn g_application_set_action_group(
application: *mut GApplication,
action_group: *mut GActionGroup,
);
}
unsafe extern "C" {
pub fn g_application_add_main_option_entries(
application: *mut GApplication,
entries: *const GOptionEntry,
);
}
unsafe extern "C" {
pub fn g_application_add_main_option(
application: *mut GApplication,
long_name: *const ::std::os::raw::c_char,
short_name: ::std::os::raw::c_char,
flags: GOptionFlags,
arg: GOptionArg,
description: *const ::std::os::raw::c_char,
arg_description: *const ::std::os::raw::c_char,
);
}
unsafe extern "C" {
pub fn g_application_add_option_group(application: *mut GApplication, group: *mut GOptionGroup);
}
unsafe extern "C" {
pub fn g_application_set_option_context_parameter_string(
application: *mut GApplication,
parameter_string: *const gchar,
);
}
unsafe extern "C" {
pub fn g_application_set_option_context_summary(
application: *mut GApplication,
summary: *const gchar,
);
}
unsafe extern "C" {
pub fn g_application_set_option_context_description(
application: *mut GApplication,
description: *const gchar,
);
}
unsafe extern "C" {
pub fn g_application_get_is_registered(application: *mut GApplication) -> gboolean;
}
unsafe extern "C" {
pub fn g_application_get_is_remote(application: *mut GApplication) -> gboolean;
}
unsafe extern "C" {
pub fn g_application_register(
application: *mut GApplication,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_application_hold(application: *mut GApplication);
}
unsafe extern "C" {
pub fn g_application_release(application: *mut GApplication);
}
unsafe extern "C" {
pub fn g_application_activate(application: *mut GApplication);
}
unsafe extern "C" {
pub fn g_application_open(
application: *mut GApplication,
files: *mut *mut GFile,
n_files: gint,
hint: *const gchar,
);
}
unsafe extern "C" {
pub fn g_application_run(
application: *mut GApplication,
argc: ::std::os::raw::c_int,
argv: *mut *mut ::std::os::raw::c_char,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn g_application_quit(application: *mut GApplication);
}
unsafe extern "C" {
pub fn g_application_get_default() -> *mut GApplication;
}
unsafe extern "C" {
pub fn g_application_set_default(application: *mut GApplication);
}
unsafe extern "C" {
pub fn g_application_mark_busy(application: *mut GApplication);
}
unsafe extern "C" {
pub fn g_application_unmark_busy(application: *mut GApplication);
}
unsafe extern "C" {
pub fn g_application_get_is_busy(application: *mut GApplication) -> gboolean;
}
unsafe extern "C" {
pub fn g_application_send_notification(
application: *mut GApplication,
id: *const gchar,
notification: *mut GNotification,
);
}
unsafe extern "C" {
pub fn g_application_withdraw_notification(application: *mut GApplication, id: *const gchar);
}
unsafe extern "C" {
pub fn g_application_bind_busy_property(
application: *mut GApplication,
object: gpointer,
property: *const gchar,
);
}
unsafe extern "C" {
pub fn g_application_unbind_busy_property(
application: *mut GApplication,
object: gpointer,
property: *const gchar,
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GApplicationCommandLinePrivate {
_unused: [u8; 0],
}
pub type GApplicationCommandLinePrivate = _GApplicationCommandLinePrivate;
pub type GApplicationCommandLineClass = _GApplicationCommandLineClass;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GApplicationCommandLine {
pub parent_instance: GObject,
pub priv_: *mut GApplicationCommandLinePrivate,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GApplicationCommandLine"]
[::std::mem::size_of::<_GApplicationCommandLine>() - 32usize];
["Alignment of _GApplicationCommandLine"]
[::std::mem::align_of::<_GApplicationCommandLine>() - 8usize];
["Offset of field: _GApplicationCommandLine::parent_instance"]
[::std::mem::offset_of!(_GApplicationCommandLine, parent_instance) - 0usize];
["Offset of field: _GApplicationCommandLine::priv_"]
[::std::mem::offset_of!(_GApplicationCommandLine, priv_) - 24usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GApplicationCommandLineClass {
pub parent_class: GObjectClass,
pub print_literal: ::std::option::Option<
unsafe extern "C" fn(cmdline: *mut GApplicationCommandLine, message: *const gchar),
>,
pub printerr_literal: ::std::option::Option<
unsafe extern "C" fn(cmdline: *mut GApplicationCommandLine, message: *const gchar),
>,
pub get_stdin: ::std::option::Option<
unsafe extern "C" fn(cmdline: *mut GApplicationCommandLine) -> *mut GInputStream,
>,
pub done: ::std::option::Option<unsafe extern "C" fn(cmdline: *mut GApplicationCommandLine)>,
pub padding: [gpointer; 10usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GApplicationCommandLineClass"]
[::std::mem::size_of::<_GApplicationCommandLineClass>() - 248usize];
["Alignment of _GApplicationCommandLineClass"]
[::std::mem::align_of::<_GApplicationCommandLineClass>() - 8usize];
["Offset of field: _GApplicationCommandLineClass::parent_class"]
[::std::mem::offset_of!(_GApplicationCommandLineClass, parent_class) - 0usize];
["Offset of field: _GApplicationCommandLineClass::print_literal"]
[::std::mem::offset_of!(_GApplicationCommandLineClass, print_literal) - 136usize];
["Offset of field: _GApplicationCommandLineClass::printerr_literal"]
[::std::mem::offset_of!(_GApplicationCommandLineClass, printerr_literal) - 144usize];
["Offset of field: _GApplicationCommandLineClass::get_stdin"]
[::std::mem::offset_of!(_GApplicationCommandLineClass, get_stdin) - 152usize];
["Offset of field: _GApplicationCommandLineClass::done"]
[::std::mem::offset_of!(_GApplicationCommandLineClass, done) - 160usize];
["Offset of field: _GApplicationCommandLineClass::padding"]
[::std::mem::offset_of!(_GApplicationCommandLineClass, padding) - 168usize];
};
unsafe extern "C" {
pub fn g_application_command_line_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_application_command_line_get_arguments(
cmdline: *mut GApplicationCommandLine,
argc: *mut ::std::os::raw::c_int,
) -> *mut *mut gchar;
}
unsafe extern "C" {
pub fn g_application_command_line_get_options_dict(
cmdline: *mut GApplicationCommandLine,
) -> *mut GVariantDict;
}
unsafe extern "C" {
pub fn g_application_command_line_get_stdin(
cmdline: *mut GApplicationCommandLine,
) -> *mut GInputStream;
}
unsafe extern "C" {
pub fn g_application_command_line_get_environ(
cmdline: *mut GApplicationCommandLine,
) -> *const *const gchar;
}
unsafe extern "C" {
pub fn g_application_command_line_getenv(
cmdline: *mut GApplicationCommandLine,
name: *const gchar,
) -> *const gchar;
}
unsafe extern "C" {
pub fn g_application_command_line_get_cwd(
cmdline: *mut GApplicationCommandLine,
) -> *const gchar;
}
unsafe extern "C" {
pub fn g_application_command_line_get_is_remote(
cmdline: *mut GApplicationCommandLine,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_application_command_line_print_literal(
cmdline: *mut GApplicationCommandLine,
message: *const gchar,
);
}
unsafe extern "C" {
pub fn g_application_command_line_printerr_literal(
cmdline: *mut GApplicationCommandLine,
message: *const gchar,
);
}
unsafe extern "C" {
pub fn g_application_command_line_print(
cmdline: *mut GApplicationCommandLine,
format: *const gchar,
...
);
}
unsafe extern "C" {
pub fn g_application_command_line_printerr(
cmdline: *mut GApplicationCommandLine,
format: *const gchar,
...
);
}
unsafe extern "C" {
pub fn g_application_command_line_get_exit_status(
cmdline: *mut GApplicationCommandLine,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn g_application_command_line_set_exit_status(
cmdline: *mut GApplicationCommandLine,
exit_status: ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn g_application_command_line_get_platform_data(
cmdline: *mut GApplicationCommandLine,
) -> *mut GVariant;
}
unsafe extern "C" {
pub fn g_application_command_line_create_file_for_arg(
cmdline: *mut GApplicationCommandLine,
arg: *const gchar,
) -> *mut GFile;
}
unsafe extern "C" {
pub fn g_application_command_line_done(cmdline: *mut GApplicationCommandLine);
}
pub type GInitableIface = _GInitableIface;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GInitableIface {
pub g_iface: GTypeInterface,
pub init: ::std::option::Option<
unsafe extern "C" fn(
initable: *mut GInitable,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> gboolean,
>,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GInitableIface"][::std::mem::size_of::<_GInitableIface>() - 24usize];
["Alignment of _GInitableIface"][::std::mem::align_of::<_GInitableIface>() - 8usize];
["Offset of field: _GInitableIface::g_iface"]
[::std::mem::offset_of!(_GInitableIface, g_iface) - 0usize];
["Offset of field: _GInitableIface::init"]
[::std::mem::offset_of!(_GInitableIface, init) - 16usize];
};
unsafe extern "C" {
pub fn g_initable_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_initable_init(
initable: *mut GInitable,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_initable_new(
object_type: GType,
cancellable: *mut GCancellable,
error: *mut *mut GError,
first_property_name: *const gchar,
...
) -> gpointer;
}
unsafe extern "C" {
pub fn g_initable_newv(
object_type: GType,
n_parameters: guint,
parameters: *mut GParameter,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> gpointer;
}
unsafe extern "C" {
pub fn g_initable_new_valist(
object_type: GType,
first_property_name: *const gchar,
var_args: va_list,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> *mut GObject;
}
pub type GAsyncInitableIface = _GAsyncInitableIface;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GAsyncInitableIface {
pub g_iface: GTypeInterface,
pub init_async: ::std::option::Option<
unsafe extern "C" fn(
initable: *mut GAsyncInitable,
io_priority: ::std::os::raw::c_int,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
),
>,
pub init_finish: ::std::option::Option<
unsafe extern "C" fn(
initable: *mut GAsyncInitable,
res: *mut GAsyncResult,
error: *mut *mut GError,
) -> gboolean,
>,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GAsyncInitableIface"][::std::mem::size_of::<_GAsyncInitableIface>() - 32usize];
["Alignment of _GAsyncInitableIface"][::std::mem::align_of::<_GAsyncInitableIface>() - 8usize];
["Offset of field: _GAsyncInitableIface::g_iface"]
[::std::mem::offset_of!(_GAsyncInitableIface, g_iface) - 0usize];
["Offset of field: _GAsyncInitableIface::init_async"]
[::std::mem::offset_of!(_GAsyncInitableIface, init_async) - 16usize];
["Offset of field: _GAsyncInitableIface::init_finish"]
[::std::mem::offset_of!(_GAsyncInitableIface, init_finish) - 24usize];
};
unsafe extern "C" {
pub fn g_async_initable_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_async_initable_init_async(
initable: *mut GAsyncInitable,
io_priority: ::std::os::raw::c_int,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
);
}
unsafe extern "C" {
pub fn g_async_initable_init_finish(
initable: *mut GAsyncInitable,
res: *mut GAsyncResult,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_async_initable_new_async(
object_type: GType,
io_priority: ::std::os::raw::c_int,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
first_property_name: *const gchar,
...
);
}
unsafe extern "C" {
pub fn g_async_initable_newv_async(
object_type: GType,
n_parameters: guint,
parameters: *mut GParameter,
io_priority: ::std::os::raw::c_int,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
);
}
unsafe extern "C" {
pub fn g_async_initable_new_valist_async(
object_type: GType,
first_property_name: *const gchar,
var_args: va_list,
io_priority: ::std::os::raw::c_int,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
);
}
unsafe extern "C" {
pub fn g_async_initable_new_finish(
initable: *mut GAsyncInitable,
res: *mut GAsyncResult,
error: *mut *mut GError,
) -> *mut GObject;
}
pub type GAsyncResultIface = _GAsyncResultIface;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GAsyncResultIface {
pub g_iface: GTypeInterface,
pub get_user_data:
::std::option::Option<unsafe extern "C" fn(res: *mut GAsyncResult) -> gpointer>,
pub get_source_object:
::std::option::Option<unsafe extern "C" fn(res: *mut GAsyncResult) -> *mut GObject>,
pub is_tagged: ::std::option::Option<
unsafe extern "C" fn(res: *mut GAsyncResult, source_tag: gpointer) -> gboolean,
>,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GAsyncResultIface"][::std::mem::size_of::<_GAsyncResultIface>() - 40usize];
["Alignment of _GAsyncResultIface"][::std::mem::align_of::<_GAsyncResultIface>() - 8usize];
["Offset of field: _GAsyncResultIface::g_iface"]
[::std::mem::offset_of!(_GAsyncResultIface, g_iface) - 0usize];
["Offset of field: _GAsyncResultIface::get_user_data"]
[::std::mem::offset_of!(_GAsyncResultIface, get_user_data) - 16usize];
["Offset of field: _GAsyncResultIface::get_source_object"]
[::std::mem::offset_of!(_GAsyncResultIface, get_source_object) - 24usize];
["Offset of field: _GAsyncResultIface::is_tagged"]
[::std::mem::offset_of!(_GAsyncResultIface, is_tagged) - 32usize];
};
unsafe extern "C" {
pub fn g_async_result_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_async_result_get_user_data(res: *mut GAsyncResult) -> gpointer;
}
unsafe extern "C" {
pub fn g_async_result_get_source_object(res: *mut GAsyncResult) -> *mut GObject;
}
unsafe extern "C" {
pub fn g_async_result_legacy_propagate_error(
res: *mut GAsyncResult,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_async_result_is_tagged(res: *mut GAsyncResult, source_tag: gpointer) -> gboolean;
}
pub type GInputStreamClass = _GInputStreamClass;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GInputStreamPrivate {
_unused: [u8; 0],
}
pub type GInputStreamPrivate = _GInputStreamPrivate;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GInputStream {
pub parent_instance: GObject,
pub priv_: *mut GInputStreamPrivate,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GInputStream"][::std::mem::size_of::<_GInputStream>() - 32usize];
["Alignment of _GInputStream"][::std::mem::align_of::<_GInputStream>() - 8usize];
["Offset of field: _GInputStream::parent_instance"]
[::std::mem::offset_of!(_GInputStream, parent_instance) - 0usize];
["Offset of field: _GInputStream::priv_"]
[::std::mem::offset_of!(_GInputStream, priv_) - 24usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GInputStreamClass {
pub parent_class: GObjectClass,
pub read_fn: ::std::option::Option<
unsafe extern "C" fn(
stream: *mut GInputStream,
buffer: *mut ::std::os::raw::c_void,
count: gsize,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> gssize,
>,
pub skip: ::std::option::Option<
unsafe extern "C" fn(
stream: *mut GInputStream,
count: gsize,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> gssize,
>,
pub close_fn: ::std::option::Option<
unsafe extern "C" fn(
stream: *mut GInputStream,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> gboolean,
>,
pub read_async: ::std::option::Option<
unsafe extern "C" fn(
stream: *mut GInputStream,
buffer: *mut ::std::os::raw::c_void,
count: gsize,
io_priority: ::std::os::raw::c_int,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
),
>,
pub read_finish: ::std::option::Option<
unsafe extern "C" fn(
stream: *mut GInputStream,
result: *mut GAsyncResult,
error: *mut *mut GError,
) -> gssize,
>,
pub skip_async: ::std::option::Option<
unsafe extern "C" fn(
stream: *mut GInputStream,
count: gsize,
io_priority: ::std::os::raw::c_int,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
),
>,
pub skip_finish: ::std::option::Option<
unsafe extern "C" fn(
stream: *mut GInputStream,
result: *mut GAsyncResult,
error: *mut *mut GError,
) -> gssize,
>,
pub close_async: ::std::option::Option<
unsafe extern "C" fn(
stream: *mut GInputStream,
io_priority: ::std::os::raw::c_int,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
),
>,
pub close_finish: ::std::option::Option<
unsafe extern "C" fn(
stream: *mut GInputStream,
result: *mut GAsyncResult,
error: *mut *mut GError,
) -> gboolean,
>,
pub _g_reserved1: ::std::option::Option<unsafe extern "C" fn()>,
pub _g_reserved2: ::std::option::Option<unsafe extern "C" fn()>,
pub _g_reserved3: ::std::option::Option<unsafe extern "C" fn()>,
pub _g_reserved4: ::std::option::Option<unsafe extern "C" fn()>,
pub _g_reserved5: ::std::option::Option<unsafe extern "C" fn()>,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GInputStreamClass"][::std::mem::size_of::<_GInputStreamClass>() - 248usize];
["Alignment of _GInputStreamClass"][::std::mem::align_of::<_GInputStreamClass>() - 8usize];
["Offset of field: _GInputStreamClass::parent_class"]
[::std::mem::offset_of!(_GInputStreamClass, parent_class) - 0usize];
["Offset of field: _GInputStreamClass::read_fn"]
[::std::mem::offset_of!(_GInputStreamClass, read_fn) - 136usize];
["Offset of field: _GInputStreamClass::skip"]
[::std::mem::offset_of!(_GInputStreamClass, skip) - 144usize];
["Offset of field: _GInputStreamClass::close_fn"]
[::std::mem::offset_of!(_GInputStreamClass, close_fn) - 152usize];
["Offset of field: _GInputStreamClass::read_async"]
[::std::mem::offset_of!(_GInputStreamClass, read_async) - 160usize];
["Offset of field: _GInputStreamClass::read_finish"]
[::std::mem::offset_of!(_GInputStreamClass, read_finish) - 168usize];
["Offset of field: _GInputStreamClass::skip_async"]
[::std::mem::offset_of!(_GInputStreamClass, skip_async) - 176usize];
["Offset of field: _GInputStreamClass::skip_finish"]
[::std::mem::offset_of!(_GInputStreamClass, skip_finish) - 184usize];
["Offset of field: _GInputStreamClass::close_async"]
[::std::mem::offset_of!(_GInputStreamClass, close_async) - 192usize];
["Offset of field: _GInputStreamClass::close_finish"]
[::std::mem::offset_of!(_GInputStreamClass, close_finish) - 200usize];
["Offset of field: _GInputStreamClass::_g_reserved1"]
[::std::mem::offset_of!(_GInputStreamClass, _g_reserved1) - 208usize];
["Offset of field: _GInputStreamClass::_g_reserved2"]
[::std::mem::offset_of!(_GInputStreamClass, _g_reserved2) - 216usize];
["Offset of field: _GInputStreamClass::_g_reserved3"]
[::std::mem::offset_of!(_GInputStreamClass, _g_reserved3) - 224usize];
["Offset of field: _GInputStreamClass::_g_reserved4"]
[::std::mem::offset_of!(_GInputStreamClass, _g_reserved4) - 232usize];
["Offset of field: _GInputStreamClass::_g_reserved5"]
[::std::mem::offset_of!(_GInputStreamClass, _g_reserved5) - 240usize];
};
unsafe extern "C" {
pub fn g_input_stream_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_input_stream_read(
stream: *mut GInputStream,
buffer: *mut ::std::os::raw::c_void,
count: gsize,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> gssize;
}
unsafe extern "C" {
pub fn g_input_stream_read_all(
stream: *mut GInputStream,
buffer: *mut ::std::os::raw::c_void,
count: gsize,
bytes_read: *mut gsize,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_input_stream_read_bytes(
stream: *mut GInputStream,
count: gsize,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> *mut GBytes;
}
unsafe extern "C" {
pub fn g_input_stream_skip(
stream: *mut GInputStream,
count: gsize,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> gssize;
}
unsafe extern "C" {
pub fn g_input_stream_close(
stream: *mut GInputStream,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_input_stream_read_async(
stream: *mut GInputStream,
buffer: *mut ::std::os::raw::c_void,
count: gsize,
io_priority: ::std::os::raw::c_int,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
);
}
unsafe extern "C" {
pub fn g_input_stream_read_finish(
stream: *mut GInputStream,
result: *mut GAsyncResult,
error: *mut *mut GError,
) -> gssize;
}
unsafe extern "C" {
pub fn g_input_stream_read_all_async(
stream: *mut GInputStream,
buffer: *mut ::std::os::raw::c_void,
count: gsize,
io_priority: ::std::os::raw::c_int,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
);
}
unsafe extern "C" {
pub fn g_input_stream_read_all_finish(
stream: *mut GInputStream,
result: *mut GAsyncResult,
bytes_read: *mut gsize,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_input_stream_read_bytes_async(
stream: *mut GInputStream,
count: gsize,
io_priority: ::std::os::raw::c_int,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
);
}
unsafe extern "C" {
pub fn g_input_stream_read_bytes_finish(
stream: *mut GInputStream,
result: *mut GAsyncResult,
error: *mut *mut GError,
) -> *mut GBytes;
}
unsafe extern "C" {
pub fn g_input_stream_skip_async(
stream: *mut GInputStream,
count: gsize,
io_priority: ::std::os::raw::c_int,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
);
}
unsafe extern "C" {
pub fn g_input_stream_skip_finish(
stream: *mut GInputStream,
result: *mut GAsyncResult,
error: *mut *mut GError,
) -> gssize;
}
unsafe extern "C" {
pub fn g_input_stream_close_async(
stream: *mut GInputStream,
io_priority: ::std::os::raw::c_int,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
);
}
unsafe extern "C" {
pub fn g_input_stream_close_finish(
stream: *mut GInputStream,
result: *mut GAsyncResult,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_input_stream_is_closed(stream: *mut GInputStream) -> gboolean;
}
unsafe extern "C" {
pub fn g_input_stream_has_pending(stream: *mut GInputStream) -> gboolean;
}
unsafe extern "C" {
pub fn g_input_stream_set_pending(
stream: *mut GInputStream,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_input_stream_clear_pending(stream: *mut GInputStream);
}
pub type GFilterInputStreamClass = _GFilterInputStreamClass;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GFilterInputStream {
pub parent_instance: GInputStream,
pub base_stream: *mut GInputStream,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GFilterInputStream"][::std::mem::size_of::<_GFilterInputStream>() - 40usize];
["Alignment of _GFilterInputStream"][::std::mem::align_of::<_GFilterInputStream>() - 8usize];
["Offset of field: _GFilterInputStream::parent_instance"]
[::std::mem::offset_of!(_GFilterInputStream, parent_instance) - 0usize];
["Offset of field: _GFilterInputStream::base_stream"]
[::std::mem::offset_of!(_GFilterInputStream, base_stream) - 32usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GFilterInputStreamClass {
pub parent_class: GInputStreamClass,
pub _g_reserved1: ::std::option::Option<unsafe extern "C" fn()>,
pub _g_reserved2: ::std::option::Option<unsafe extern "C" fn()>,
pub _g_reserved3: ::std::option::Option<unsafe extern "C" fn()>,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GFilterInputStreamClass"]
[::std::mem::size_of::<_GFilterInputStreamClass>() - 272usize];
["Alignment of _GFilterInputStreamClass"]
[::std::mem::align_of::<_GFilterInputStreamClass>() - 8usize];
["Offset of field: _GFilterInputStreamClass::parent_class"]
[::std::mem::offset_of!(_GFilterInputStreamClass, parent_class) - 0usize];
["Offset of field: _GFilterInputStreamClass::_g_reserved1"]
[::std::mem::offset_of!(_GFilterInputStreamClass, _g_reserved1) - 248usize];
["Offset of field: _GFilterInputStreamClass::_g_reserved2"]
[::std::mem::offset_of!(_GFilterInputStreamClass, _g_reserved2) - 256usize];
["Offset of field: _GFilterInputStreamClass::_g_reserved3"]
[::std::mem::offset_of!(_GFilterInputStreamClass, _g_reserved3) - 264usize];
};
unsafe extern "C" {
pub fn g_filter_input_stream_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_filter_input_stream_get_base_stream(
stream: *mut GFilterInputStream,
) -> *mut GInputStream;
}
unsafe extern "C" {
pub fn g_filter_input_stream_get_close_base_stream(stream: *mut GFilterInputStream)
-> gboolean;
}
unsafe extern "C" {
pub fn g_filter_input_stream_set_close_base_stream(
stream: *mut GFilterInputStream,
close_base: gboolean,
);
}
pub type GBufferedInputStreamClass = _GBufferedInputStreamClass;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GBufferedInputStreamPrivate {
_unused: [u8; 0],
}
pub type GBufferedInputStreamPrivate = _GBufferedInputStreamPrivate;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GBufferedInputStream {
pub parent_instance: GFilterInputStream,
pub priv_: *mut GBufferedInputStreamPrivate,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GBufferedInputStream"][::std::mem::size_of::<_GBufferedInputStream>() - 48usize];
["Alignment of _GBufferedInputStream"]
[::std::mem::align_of::<_GBufferedInputStream>() - 8usize];
["Offset of field: _GBufferedInputStream::parent_instance"]
[::std::mem::offset_of!(_GBufferedInputStream, parent_instance) - 0usize];
["Offset of field: _GBufferedInputStream::priv_"]
[::std::mem::offset_of!(_GBufferedInputStream, priv_) - 40usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GBufferedInputStreamClass {
pub parent_class: GFilterInputStreamClass,
pub fill: ::std::option::Option<
unsafe extern "C" fn(
stream: *mut GBufferedInputStream,
count: gssize,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> gssize,
>,
pub fill_async: ::std::option::Option<
unsafe extern "C" fn(
stream: *mut GBufferedInputStream,
count: gssize,
io_priority: ::std::os::raw::c_int,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
),
>,
pub fill_finish: ::std::option::Option<
unsafe extern "C" fn(
stream: *mut GBufferedInputStream,
result: *mut GAsyncResult,
error: *mut *mut GError,
) -> gssize,
>,
pub _g_reserved1: ::std::option::Option<unsafe extern "C" fn()>,
pub _g_reserved2: ::std::option::Option<unsafe extern "C" fn()>,
pub _g_reserved3: ::std::option::Option<unsafe extern "C" fn()>,
pub _g_reserved4: ::std::option::Option<unsafe extern "C" fn()>,
pub _g_reserved5: ::std::option::Option<unsafe extern "C" fn()>,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GBufferedInputStreamClass"]
[::std::mem::size_of::<_GBufferedInputStreamClass>() - 336usize];
["Alignment of _GBufferedInputStreamClass"]
[::std::mem::align_of::<_GBufferedInputStreamClass>() - 8usize];
["Offset of field: _GBufferedInputStreamClass::parent_class"]
[::std::mem::offset_of!(_GBufferedInputStreamClass, parent_class) - 0usize];
["Offset of field: _GBufferedInputStreamClass::fill"]
[::std::mem::offset_of!(_GBufferedInputStreamClass, fill) - 272usize];
["Offset of field: _GBufferedInputStreamClass::fill_async"]
[::std::mem::offset_of!(_GBufferedInputStreamClass, fill_async) - 280usize];
["Offset of field: _GBufferedInputStreamClass::fill_finish"]
[::std::mem::offset_of!(_GBufferedInputStreamClass, fill_finish) - 288usize];
["Offset of field: _GBufferedInputStreamClass::_g_reserved1"]
[::std::mem::offset_of!(_GBufferedInputStreamClass, _g_reserved1) - 296usize];
["Offset of field: _GBufferedInputStreamClass::_g_reserved2"]
[::std::mem::offset_of!(_GBufferedInputStreamClass, _g_reserved2) - 304usize];
["Offset of field: _GBufferedInputStreamClass::_g_reserved3"]
[::std::mem::offset_of!(_GBufferedInputStreamClass, _g_reserved3) - 312usize];
["Offset of field: _GBufferedInputStreamClass::_g_reserved4"]
[::std::mem::offset_of!(_GBufferedInputStreamClass, _g_reserved4) - 320usize];
["Offset of field: _GBufferedInputStreamClass::_g_reserved5"]
[::std::mem::offset_of!(_GBufferedInputStreamClass, _g_reserved5) - 328usize];
};
unsafe extern "C" {
pub fn g_buffered_input_stream_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_buffered_input_stream_new(base_stream: *mut GInputStream) -> *mut GInputStream;
}
unsafe extern "C" {
pub fn g_buffered_input_stream_new_sized(
base_stream: *mut GInputStream,
size: gsize,
) -> *mut GInputStream;
}
unsafe extern "C" {
pub fn g_buffered_input_stream_get_buffer_size(stream: *mut GBufferedInputStream) -> gsize;
}
unsafe extern "C" {
pub fn g_buffered_input_stream_set_buffer_size(stream: *mut GBufferedInputStream, size: gsize);
}
unsafe extern "C" {
pub fn g_buffered_input_stream_get_available(stream: *mut GBufferedInputStream) -> gsize;
}
unsafe extern "C" {
pub fn g_buffered_input_stream_peek(
stream: *mut GBufferedInputStream,
buffer: *mut ::std::os::raw::c_void,
offset: gsize,
count: gsize,
) -> gsize;
}
unsafe extern "C" {
pub fn g_buffered_input_stream_peek_buffer(
stream: *mut GBufferedInputStream,
count: *mut gsize,
) -> *const ::std::os::raw::c_void;
}
unsafe extern "C" {
pub fn g_buffered_input_stream_fill(
stream: *mut GBufferedInputStream,
count: gssize,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> gssize;
}
unsafe extern "C" {
pub fn g_buffered_input_stream_fill_async(
stream: *mut GBufferedInputStream,
count: gssize,
io_priority: ::std::os::raw::c_int,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
);
}
unsafe extern "C" {
pub fn g_buffered_input_stream_fill_finish(
stream: *mut GBufferedInputStream,
result: *mut GAsyncResult,
error: *mut *mut GError,
) -> gssize;
}
unsafe extern "C" {
pub fn g_buffered_input_stream_read_byte(
stream: *mut GBufferedInputStream,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> ::std::os::raw::c_int;
}
pub type GOutputStreamClass = _GOutputStreamClass;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GOutputStreamPrivate {
_unused: [u8; 0],
}
pub type GOutputStreamPrivate = _GOutputStreamPrivate;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GOutputStream {
pub parent_instance: GObject,
pub priv_: *mut GOutputStreamPrivate,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GOutputStream"][::std::mem::size_of::<_GOutputStream>() - 32usize];
["Alignment of _GOutputStream"][::std::mem::align_of::<_GOutputStream>() - 8usize];
["Offset of field: _GOutputStream::parent_instance"]
[::std::mem::offset_of!(_GOutputStream, parent_instance) - 0usize];
["Offset of field: _GOutputStream::priv_"]
[::std::mem::offset_of!(_GOutputStream, priv_) - 24usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GOutputStreamClass {
pub parent_class: GObjectClass,
pub write_fn: ::std::option::Option<
unsafe extern "C" fn(
stream: *mut GOutputStream,
buffer: *const ::std::os::raw::c_void,
count: gsize,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> gssize,
>,
pub splice: ::std::option::Option<
unsafe extern "C" fn(
stream: *mut GOutputStream,
source: *mut GInputStream,
flags: GOutputStreamSpliceFlags,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> gssize,
>,
pub flush: ::std::option::Option<
unsafe extern "C" fn(
stream: *mut GOutputStream,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> gboolean,
>,
pub close_fn: ::std::option::Option<
unsafe extern "C" fn(
stream: *mut GOutputStream,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> gboolean,
>,
pub write_async: ::std::option::Option<
unsafe extern "C" fn(
stream: *mut GOutputStream,
buffer: *const ::std::os::raw::c_void,
count: gsize,
io_priority: ::std::os::raw::c_int,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
),
>,
pub write_finish: ::std::option::Option<
unsafe extern "C" fn(
stream: *mut GOutputStream,
result: *mut GAsyncResult,
error: *mut *mut GError,
) -> gssize,
>,
pub splice_async: ::std::option::Option<
unsafe extern "C" fn(
stream: *mut GOutputStream,
source: *mut GInputStream,
flags: GOutputStreamSpliceFlags,
io_priority: ::std::os::raw::c_int,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
),
>,
pub splice_finish: ::std::option::Option<
unsafe extern "C" fn(
stream: *mut GOutputStream,
result: *mut GAsyncResult,
error: *mut *mut GError,
) -> gssize,
>,
pub flush_async: ::std::option::Option<
unsafe extern "C" fn(
stream: *mut GOutputStream,
io_priority: ::std::os::raw::c_int,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
),
>,
pub flush_finish: ::std::option::Option<
unsafe extern "C" fn(
stream: *mut GOutputStream,
result: *mut GAsyncResult,
error: *mut *mut GError,
) -> gboolean,
>,
pub close_async: ::std::option::Option<
unsafe extern "C" fn(
stream: *mut GOutputStream,
io_priority: ::std::os::raw::c_int,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
),
>,
pub close_finish: ::std::option::Option<
unsafe extern "C" fn(
stream: *mut GOutputStream,
result: *mut GAsyncResult,
error: *mut *mut GError,
) -> gboolean,
>,
pub writev_fn: ::std::option::Option<
unsafe extern "C" fn(
stream: *mut GOutputStream,
vectors: *const GOutputVector,
n_vectors: gsize,
bytes_written: *mut gsize,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> gboolean,
>,
pub writev_async: ::std::option::Option<
unsafe extern "C" fn(
stream: *mut GOutputStream,
vectors: *const GOutputVector,
n_vectors: gsize,
io_priority: ::std::os::raw::c_int,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
),
>,
pub writev_finish: ::std::option::Option<
unsafe extern "C" fn(
stream: *mut GOutputStream,
result: *mut GAsyncResult,
bytes_written: *mut gsize,
error: *mut *mut GError,
) -> gboolean,
>,
pub _g_reserved4: ::std::option::Option<unsafe extern "C" fn()>,
pub _g_reserved5: ::std::option::Option<unsafe extern "C" fn()>,
pub _g_reserved6: ::std::option::Option<unsafe extern "C" fn()>,
pub _g_reserved7: ::std::option::Option<unsafe extern "C" fn()>,
pub _g_reserved8: ::std::option::Option<unsafe extern "C" fn()>,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GOutputStreamClass"][::std::mem::size_of::<_GOutputStreamClass>() - 296usize];
["Alignment of _GOutputStreamClass"][::std::mem::align_of::<_GOutputStreamClass>() - 8usize];
["Offset of field: _GOutputStreamClass::parent_class"]
[::std::mem::offset_of!(_GOutputStreamClass, parent_class) - 0usize];
["Offset of field: _GOutputStreamClass::write_fn"]
[::std::mem::offset_of!(_GOutputStreamClass, write_fn) - 136usize];
["Offset of field: _GOutputStreamClass::splice"]
[::std::mem::offset_of!(_GOutputStreamClass, splice) - 144usize];
["Offset of field: _GOutputStreamClass::flush"]
[::std::mem::offset_of!(_GOutputStreamClass, flush) - 152usize];
["Offset of field: _GOutputStreamClass::close_fn"]
[::std::mem::offset_of!(_GOutputStreamClass, close_fn) - 160usize];
["Offset of field: _GOutputStreamClass::write_async"]
[::std::mem::offset_of!(_GOutputStreamClass, write_async) - 168usize];
["Offset of field: _GOutputStreamClass::write_finish"]
[::std::mem::offset_of!(_GOutputStreamClass, write_finish) - 176usize];
["Offset of field: _GOutputStreamClass::splice_async"]
[::std::mem::offset_of!(_GOutputStreamClass, splice_async) - 184usize];
["Offset of field: _GOutputStreamClass::splice_finish"]
[::std::mem::offset_of!(_GOutputStreamClass, splice_finish) - 192usize];
["Offset of field: _GOutputStreamClass::flush_async"]
[::std::mem::offset_of!(_GOutputStreamClass, flush_async) - 200usize];
["Offset of field: _GOutputStreamClass::flush_finish"]
[::std::mem::offset_of!(_GOutputStreamClass, flush_finish) - 208usize];
["Offset of field: _GOutputStreamClass::close_async"]
[::std::mem::offset_of!(_GOutputStreamClass, close_async) - 216usize];
["Offset of field: _GOutputStreamClass::close_finish"]
[::std::mem::offset_of!(_GOutputStreamClass, close_finish) - 224usize];
["Offset of field: _GOutputStreamClass::writev_fn"]
[::std::mem::offset_of!(_GOutputStreamClass, writev_fn) - 232usize];
["Offset of field: _GOutputStreamClass::writev_async"]
[::std::mem::offset_of!(_GOutputStreamClass, writev_async) - 240usize];
["Offset of field: _GOutputStreamClass::writev_finish"]
[::std::mem::offset_of!(_GOutputStreamClass, writev_finish) - 248usize];
["Offset of field: _GOutputStreamClass::_g_reserved4"]
[::std::mem::offset_of!(_GOutputStreamClass, _g_reserved4) - 256usize];
["Offset of field: _GOutputStreamClass::_g_reserved5"]
[::std::mem::offset_of!(_GOutputStreamClass, _g_reserved5) - 264usize];
["Offset of field: _GOutputStreamClass::_g_reserved6"]
[::std::mem::offset_of!(_GOutputStreamClass, _g_reserved6) - 272usize];
["Offset of field: _GOutputStreamClass::_g_reserved7"]
[::std::mem::offset_of!(_GOutputStreamClass, _g_reserved7) - 280usize];
["Offset of field: _GOutputStreamClass::_g_reserved8"]
[::std::mem::offset_of!(_GOutputStreamClass, _g_reserved8) - 288usize];
};
unsafe extern "C" {
pub fn g_output_stream_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_output_stream_write(
stream: *mut GOutputStream,
buffer: *const ::std::os::raw::c_void,
count: gsize,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> gssize;
}
unsafe extern "C" {
pub fn g_output_stream_write_all(
stream: *mut GOutputStream,
buffer: *const ::std::os::raw::c_void,
count: gsize,
bytes_written: *mut gsize,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_output_stream_writev(
stream: *mut GOutputStream,
vectors: *const GOutputVector,
n_vectors: gsize,
bytes_written: *mut gsize,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_output_stream_writev_all(
stream: *mut GOutputStream,
vectors: *mut GOutputVector,
n_vectors: gsize,
bytes_written: *mut gsize,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_output_stream_printf(
stream: *mut GOutputStream,
bytes_written: *mut gsize,
cancellable: *mut GCancellable,
error: *mut *mut GError,
format: *const gchar,
...
) -> gboolean;
}
unsafe extern "C" {
pub fn g_output_stream_vprintf(
stream: *mut GOutputStream,
bytes_written: *mut gsize,
cancellable: *mut GCancellable,
error: *mut *mut GError,
format: *const gchar,
args: va_list,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_output_stream_write_bytes(
stream: *mut GOutputStream,
bytes: *mut GBytes,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> gssize;
}
unsafe extern "C" {
pub fn g_output_stream_splice(
stream: *mut GOutputStream,
source: *mut GInputStream,
flags: GOutputStreamSpliceFlags,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> gssize;
}
unsafe extern "C" {
pub fn g_output_stream_flush(
stream: *mut GOutputStream,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_output_stream_close(
stream: *mut GOutputStream,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_output_stream_write_async(
stream: *mut GOutputStream,
buffer: *const ::std::os::raw::c_void,
count: gsize,
io_priority: ::std::os::raw::c_int,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
);
}
unsafe extern "C" {
pub fn g_output_stream_write_finish(
stream: *mut GOutputStream,
result: *mut GAsyncResult,
error: *mut *mut GError,
) -> gssize;
}
unsafe extern "C" {
pub fn g_output_stream_write_all_async(
stream: *mut GOutputStream,
buffer: *const ::std::os::raw::c_void,
count: gsize,
io_priority: ::std::os::raw::c_int,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
);
}
unsafe extern "C" {
pub fn g_output_stream_write_all_finish(
stream: *mut GOutputStream,
result: *mut GAsyncResult,
bytes_written: *mut gsize,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_output_stream_writev_async(
stream: *mut GOutputStream,
vectors: *const GOutputVector,
n_vectors: gsize,
io_priority: ::std::os::raw::c_int,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
);
}
unsafe extern "C" {
pub fn g_output_stream_writev_finish(
stream: *mut GOutputStream,
result: *mut GAsyncResult,
bytes_written: *mut gsize,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_output_stream_writev_all_async(
stream: *mut GOutputStream,
vectors: *mut GOutputVector,
n_vectors: gsize,
io_priority: ::std::os::raw::c_int,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
);
}
unsafe extern "C" {
pub fn g_output_stream_writev_all_finish(
stream: *mut GOutputStream,
result: *mut GAsyncResult,
bytes_written: *mut gsize,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_output_stream_write_bytes_async(
stream: *mut GOutputStream,
bytes: *mut GBytes,
io_priority: ::std::os::raw::c_int,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
);
}
unsafe extern "C" {
pub fn g_output_stream_write_bytes_finish(
stream: *mut GOutputStream,
result: *mut GAsyncResult,
error: *mut *mut GError,
) -> gssize;
}
unsafe extern "C" {
pub fn g_output_stream_splice_async(
stream: *mut GOutputStream,
source: *mut GInputStream,
flags: GOutputStreamSpliceFlags,
io_priority: ::std::os::raw::c_int,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
);
}
unsafe extern "C" {
pub fn g_output_stream_splice_finish(
stream: *mut GOutputStream,
result: *mut GAsyncResult,
error: *mut *mut GError,
) -> gssize;
}
unsafe extern "C" {
pub fn g_output_stream_flush_async(
stream: *mut GOutputStream,
io_priority: ::std::os::raw::c_int,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
);
}
unsafe extern "C" {
pub fn g_output_stream_flush_finish(
stream: *mut GOutputStream,
result: *mut GAsyncResult,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_output_stream_close_async(
stream: *mut GOutputStream,
io_priority: ::std::os::raw::c_int,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
);
}
unsafe extern "C" {
pub fn g_output_stream_close_finish(
stream: *mut GOutputStream,
result: *mut GAsyncResult,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_output_stream_is_closed(stream: *mut GOutputStream) -> gboolean;
}
unsafe extern "C" {
pub fn g_output_stream_is_closing(stream: *mut GOutputStream) -> gboolean;
}
unsafe extern "C" {
pub fn g_output_stream_has_pending(stream: *mut GOutputStream) -> gboolean;
}
unsafe extern "C" {
pub fn g_output_stream_set_pending(
stream: *mut GOutputStream,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_output_stream_clear_pending(stream: *mut GOutputStream);
}
pub type GFilterOutputStreamClass = _GFilterOutputStreamClass;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GFilterOutputStream {
pub parent_instance: GOutputStream,
pub base_stream: *mut GOutputStream,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GFilterOutputStream"][::std::mem::size_of::<_GFilterOutputStream>() - 40usize];
["Alignment of _GFilterOutputStream"][::std::mem::align_of::<_GFilterOutputStream>() - 8usize];
["Offset of field: _GFilterOutputStream::parent_instance"]
[::std::mem::offset_of!(_GFilterOutputStream, parent_instance) - 0usize];
["Offset of field: _GFilterOutputStream::base_stream"]
[::std::mem::offset_of!(_GFilterOutputStream, base_stream) - 32usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GFilterOutputStreamClass {
pub parent_class: GOutputStreamClass,
pub _g_reserved1: ::std::option::Option<unsafe extern "C" fn()>,
pub _g_reserved2: ::std::option::Option<unsafe extern "C" fn()>,
pub _g_reserved3: ::std::option::Option<unsafe extern "C" fn()>,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GFilterOutputStreamClass"]
[::std::mem::size_of::<_GFilterOutputStreamClass>() - 320usize];
["Alignment of _GFilterOutputStreamClass"]
[::std::mem::align_of::<_GFilterOutputStreamClass>() - 8usize];
["Offset of field: _GFilterOutputStreamClass::parent_class"]
[::std::mem::offset_of!(_GFilterOutputStreamClass, parent_class) - 0usize];
["Offset of field: _GFilterOutputStreamClass::_g_reserved1"]
[::std::mem::offset_of!(_GFilterOutputStreamClass, _g_reserved1) - 296usize];
["Offset of field: _GFilterOutputStreamClass::_g_reserved2"]
[::std::mem::offset_of!(_GFilterOutputStreamClass, _g_reserved2) - 304usize];
["Offset of field: _GFilterOutputStreamClass::_g_reserved3"]
[::std::mem::offset_of!(_GFilterOutputStreamClass, _g_reserved3) - 312usize];
};
unsafe extern "C" {
pub fn g_filter_output_stream_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_filter_output_stream_get_base_stream(
stream: *mut GFilterOutputStream,
) -> *mut GOutputStream;
}
unsafe extern "C" {
pub fn g_filter_output_stream_get_close_base_stream(
stream: *mut GFilterOutputStream,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_filter_output_stream_set_close_base_stream(
stream: *mut GFilterOutputStream,
close_base: gboolean,
);
}
pub type GBufferedOutputStreamClass = _GBufferedOutputStreamClass;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GBufferedOutputStreamPrivate {
_unused: [u8; 0],
}
pub type GBufferedOutputStreamPrivate = _GBufferedOutputStreamPrivate;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GBufferedOutputStream {
pub parent_instance: GFilterOutputStream,
pub priv_: *mut GBufferedOutputStreamPrivate,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GBufferedOutputStream"][::std::mem::size_of::<_GBufferedOutputStream>() - 48usize];
["Alignment of _GBufferedOutputStream"]
[::std::mem::align_of::<_GBufferedOutputStream>() - 8usize];
["Offset of field: _GBufferedOutputStream::parent_instance"]
[::std::mem::offset_of!(_GBufferedOutputStream, parent_instance) - 0usize];
["Offset of field: _GBufferedOutputStream::priv_"]
[::std::mem::offset_of!(_GBufferedOutputStream, priv_) - 40usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GBufferedOutputStreamClass {
pub parent_class: GFilterOutputStreamClass,
pub _g_reserved1: ::std::option::Option<unsafe extern "C" fn()>,
pub _g_reserved2: ::std::option::Option<unsafe extern "C" fn()>,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GBufferedOutputStreamClass"]
[::std::mem::size_of::<_GBufferedOutputStreamClass>() - 336usize];
["Alignment of _GBufferedOutputStreamClass"]
[::std::mem::align_of::<_GBufferedOutputStreamClass>() - 8usize];
["Offset of field: _GBufferedOutputStreamClass::parent_class"]
[::std::mem::offset_of!(_GBufferedOutputStreamClass, parent_class) - 0usize];
["Offset of field: _GBufferedOutputStreamClass::_g_reserved1"]
[::std::mem::offset_of!(_GBufferedOutputStreamClass, _g_reserved1) - 320usize];
["Offset of field: _GBufferedOutputStreamClass::_g_reserved2"]
[::std::mem::offset_of!(_GBufferedOutputStreamClass, _g_reserved2) - 328usize];
};
unsafe extern "C" {
pub fn g_buffered_output_stream_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_buffered_output_stream_new(base_stream: *mut GOutputStream) -> *mut GOutputStream;
}
unsafe extern "C" {
pub fn g_buffered_output_stream_new_sized(
base_stream: *mut GOutputStream,
size: gsize,
) -> *mut GOutputStream;
}
unsafe extern "C" {
pub fn g_buffered_output_stream_get_buffer_size(stream: *mut GBufferedOutputStream) -> gsize;
}
unsafe extern "C" {
pub fn g_buffered_output_stream_set_buffer_size(
stream: *mut GBufferedOutputStream,
size: gsize,
);
}
unsafe extern "C" {
pub fn g_buffered_output_stream_get_auto_grow(stream: *mut GBufferedOutputStream) -> gboolean;
}
unsafe extern "C" {
pub fn g_buffered_output_stream_set_auto_grow(
stream: *mut GBufferedOutputStream,
auto_grow: gboolean,
);
}
unsafe extern "C" {
pub fn g_bytes_icon_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_bytes_icon_new(bytes: *mut GBytes) -> *mut GIcon;
}
unsafe extern "C" {
pub fn g_bytes_icon_get_bytes(icon: *mut GBytesIcon) -> *mut GBytes;
}
pub type GCancellableClass = _GCancellableClass;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GCancellablePrivate {
_unused: [u8; 0],
}
pub type GCancellablePrivate = _GCancellablePrivate;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GCancellable {
pub parent_instance: GObject,
pub priv_: *mut GCancellablePrivate,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GCancellable"][::std::mem::size_of::<_GCancellable>() - 32usize];
["Alignment of _GCancellable"][::std::mem::align_of::<_GCancellable>() - 8usize];
["Offset of field: _GCancellable::parent_instance"]
[::std::mem::offset_of!(_GCancellable, parent_instance) - 0usize];
["Offset of field: _GCancellable::priv_"]
[::std::mem::offset_of!(_GCancellable, priv_) - 24usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GCancellableClass {
pub parent_class: GObjectClass,
pub cancelled: ::std::option::Option<unsafe extern "C" fn(cancellable: *mut GCancellable)>,
pub _g_reserved1: ::std::option::Option<unsafe extern "C" fn()>,
pub _g_reserved2: ::std::option::Option<unsafe extern "C" fn()>,
pub _g_reserved3: ::std::option::Option<unsafe extern "C" fn()>,
pub _g_reserved4: ::std::option::Option<unsafe extern "C" fn()>,
pub _g_reserved5: ::std::option::Option<unsafe extern "C" fn()>,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GCancellableClass"][::std::mem::size_of::<_GCancellableClass>() - 184usize];
["Alignment of _GCancellableClass"][::std::mem::align_of::<_GCancellableClass>() - 8usize];
["Offset of field: _GCancellableClass::parent_class"]
[::std::mem::offset_of!(_GCancellableClass, parent_class) - 0usize];
["Offset of field: _GCancellableClass::cancelled"]
[::std::mem::offset_of!(_GCancellableClass, cancelled) - 136usize];
["Offset of field: _GCancellableClass::_g_reserved1"]
[::std::mem::offset_of!(_GCancellableClass, _g_reserved1) - 144usize];
["Offset of field: _GCancellableClass::_g_reserved2"]
[::std::mem::offset_of!(_GCancellableClass, _g_reserved2) - 152usize];
["Offset of field: _GCancellableClass::_g_reserved3"]
[::std::mem::offset_of!(_GCancellableClass, _g_reserved3) - 160usize];
["Offset of field: _GCancellableClass::_g_reserved4"]
[::std::mem::offset_of!(_GCancellableClass, _g_reserved4) - 168usize];
["Offset of field: _GCancellableClass::_g_reserved5"]
[::std::mem::offset_of!(_GCancellableClass, _g_reserved5) - 176usize];
};
unsafe extern "C" {
pub fn g_cancellable_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_cancellable_new() -> *mut GCancellable;
}
unsafe extern "C" {
pub fn g_cancellable_is_cancelled(cancellable: *mut GCancellable) -> gboolean;
}
unsafe extern "C" {
pub fn g_cancellable_set_error_if_cancelled(
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_cancellable_get_fd(cancellable: *mut GCancellable) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn g_cancellable_make_pollfd(
cancellable: *mut GCancellable,
pollfd: *mut GPollFD,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_cancellable_release_fd(cancellable: *mut GCancellable);
}
unsafe extern "C" {
pub fn g_cancellable_source_new(cancellable: *mut GCancellable) -> *mut GSource;
}
unsafe extern "C" {
pub fn g_cancellable_get_current() -> *mut GCancellable;
}
unsafe extern "C" {
pub fn g_cancellable_push_current(cancellable: *mut GCancellable);
}
unsafe extern "C" {
pub fn g_cancellable_pop_current(cancellable: *mut GCancellable);
}
unsafe extern "C" {
pub fn g_cancellable_reset(cancellable: *mut GCancellable);
}
unsafe extern "C" {
pub fn g_cancellable_connect(
cancellable: *mut GCancellable,
callback: GCallback,
data: gpointer,
data_destroy_func: GDestroyNotify,
) -> gulong;
}
unsafe extern "C" {
pub fn g_cancellable_disconnect(cancellable: *mut GCancellable, handler_id: gulong);
}
unsafe extern "C" {
pub fn g_cancellable_cancel(cancellable: *mut GCancellable);
}
pub type GConverterIface = _GConverterIface;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GConverterIface {
pub g_iface: GTypeInterface,
pub convert: ::std::option::Option<
unsafe extern "C" fn(
converter: *mut GConverter,
inbuf: *const ::std::os::raw::c_void,
inbuf_size: gsize,
outbuf: *mut ::std::os::raw::c_void,
outbuf_size: gsize,
flags: GConverterFlags,
bytes_read: *mut gsize,
bytes_written: *mut gsize,
error: *mut *mut GError,
) -> GConverterResult,
>,
pub reset: ::std::option::Option<unsafe extern "C" fn(converter: *mut GConverter)>,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GConverterIface"][::std::mem::size_of::<_GConverterIface>() - 32usize];
["Alignment of _GConverterIface"][::std::mem::align_of::<_GConverterIface>() - 8usize];
["Offset of field: _GConverterIface::g_iface"]
[::std::mem::offset_of!(_GConverterIface, g_iface) - 0usize];
["Offset of field: _GConverterIface::convert"]
[::std::mem::offset_of!(_GConverterIface, convert) - 16usize];
["Offset of field: _GConverterIface::reset"]
[::std::mem::offset_of!(_GConverterIface, reset) - 24usize];
};
unsafe extern "C" {
pub fn g_converter_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_converter_convert(
converter: *mut GConverter,
inbuf: *const ::std::os::raw::c_void,
inbuf_size: gsize,
outbuf: *mut ::std::os::raw::c_void,
outbuf_size: gsize,
flags: GConverterFlags,
bytes_read: *mut gsize,
bytes_written: *mut gsize,
error: *mut *mut GError,
) -> GConverterResult;
}
unsafe extern "C" {
pub fn g_converter_reset(converter: *mut GConverter);
}
unsafe extern "C" {
pub fn g_converter_convert_bytes(
converter: *mut GConverter,
bytes: *mut GBytes,
error: *mut *mut GError,
) -> *mut GBytes;
}
pub type GCharsetConverterClass = _GCharsetConverterClass;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GCharsetConverterClass {
pub parent_class: GObjectClass,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GCharsetConverterClass"]
[::std::mem::size_of::<_GCharsetConverterClass>() - 136usize];
["Alignment of _GCharsetConverterClass"]
[::std::mem::align_of::<_GCharsetConverterClass>() - 8usize];
["Offset of field: _GCharsetConverterClass::parent_class"]
[::std::mem::offset_of!(_GCharsetConverterClass, parent_class) - 0usize];
};
unsafe extern "C" {
pub fn g_charset_converter_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_charset_converter_new(
to_charset: *const gchar,
from_charset: *const gchar,
error: *mut *mut GError,
) -> *mut GCharsetConverter;
}
unsafe extern "C" {
pub fn g_charset_converter_set_use_fallback(
converter: *mut GCharsetConverter,
use_fallback: gboolean,
);
}
unsafe extern "C" {
pub fn g_charset_converter_get_use_fallback(converter: *mut GCharsetConverter) -> gboolean;
}
unsafe extern "C" {
pub fn g_charset_converter_get_num_fallbacks(converter: *mut GCharsetConverter) -> guint;
}
unsafe extern "C" {
pub fn g_content_type_equals(type1: *const gchar, type2: *const gchar) -> gboolean;
}
unsafe extern "C" {
pub fn g_content_type_is_a(type_: *const gchar, supertype: *const gchar) -> gboolean;
}
unsafe extern "C" {
pub fn g_content_type_is_mime_type(type_: *const gchar, mime_type: *const gchar) -> gboolean;
}
unsafe extern "C" {
pub fn g_content_type_is_unknown(type_: *const gchar) -> gboolean;
}
unsafe extern "C" {
pub fn g_content_type_get_description(type_: *const gchar) -> *mut gchar;
}
unsafe extern "C" {
pub fn g_content_type_get_mime_type(type_: *const gchar) -> *mut gchar;
}
unsafe extern "C" {
pub fn g_content_type_get_icon(type_: *const gchar) -> *mut GIcon;
}
unsafe extern "C" {
pub fn g_content_type_get_symbolic_icon(type_: *const gchar) -> *mut GIcon;
}
unsafe extern "C" {
pub fn g_content_type_get_generic_icon_name(type_: *const gchar) -> *mut gchar;
}
unsafe extern "C" {
pub fn g_content_type_can_be_executable(type_: *const gchar) -> gboolean;
}
unsafe extern "C" {
pub fn g_content_type_from_mime_type(mime_type: *const gchar) -> *mut gchar;
}
unsafe extern "C" {
pub fn g_content_type_guess(
filename: *const gchar,
data: *const guchar,
data_size: gsize,
result_uncertain: *mut gboolean,
) -> *mut gchar;
}
unsafe extern "C" {
pub fn g_content_type_guess_for_tree(root: *mut GFile) -> *mut *mut gchar;
}
unsafe extern "C" {
pub fn g_content_types_get_registered() -> *mut GList;
}
unsafe extern "C" {
pub fn g_content_type_get_mime_dirs() -> *const *const gchar;
}
unsafe extern "C" {
pub fn g_content_type_set_mime_dirs(dirs: *const *const gchar);
}
pub type GConverterInputStreamClass = _GConverterInputStreamClass;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GConverterInputStreamPrivate {
_unused: [u8; 0],
}
pub type GConverterInputStreamPrivate = _GConverterInputStreamPrivate;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GConverterInputStream {
pub parent_instance: GFilterInputStream,
pub priv_: *mut GConverterInputStreamPrivate,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GConverterInputStream"][::std::mem::size_of::<_GConverterInputStream>() - 48usize];
["Alignment of _GConverterInputStream"]
[::std::mem::align_of::<_GConverterInputStream>() - 8usize];
["Offset of field: _GConverterInputStream::parent_instance"]
[::std::mem::offset_of!(_GConverterInputStream, parent_instance) - 0usize];
["Offset of field: _GConverterInputStream::priv_"]
[::std::mem::offset_of!(_GConverterInputStream, priv_) - 40usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GConverterInputStreamClass {
pub parent_class: GFilterInputStreamClass,
pub _g_reserved1: ::std::option::Option<unsafe extern "C" fn()>,
pub _g_reserved2: ::std::option::Option<unsafe extern "C" fn()>,
pub _g_reserved3: ::std::option::Option<unsafe extern "C" fn()>,
pub _g_reserved4: ::std::option::Option<unsafe extern "C" fn()>,
pub _g_reserved5: ::std::option::Option<unsafe extern "C" fn()>,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GConverterInputStreamClass"]
[::std::mem::size_of::<_GConverterInputStreamClass>() - 312usize];
["Alignment of _GConverterInputStreamClass"]
[::std::mem::align_of::<_GConverterInputStreamClass>() - 8usize];
["Offset of field: _GConverterInputStreamClass::parent_class"]
[::std::mem::offset_of!(_GConverterInputStreamClass, parent_class) - 0usize];
["Offset of field: _GConverterInputStreamClass::_g_reserved1"]
[::std::mem::offset_of!(_GConverterInputStreamClass, _g_reserved1) - 272usize];
["Offset of field: _GConverterInputStreamClass::_g_reserved2"]
[::std::mem::offset_of!(_GConverterInputStreamClass, _g_reserved2) - 280usize];
["Offset of field: _GConverterInputStreamClass::_g_reserved3"]
[::std::mem::offset_of!(_GConverterInputStreamClass, _g_reserved3) - 288usize];
["Offset of field: _GConverterInputStreamClass::_g_reserved4"]
[::std::mem::offset_of!(_GConverterInputStreamClass, _g_reserved4) - 296usize];
["Offset of field: _GConverterInputStreamClass::_g_reserved5"]
[::std::mem::offset_of!(_GConverterInputStreamClass, _g_reserved5) - 304usize];
};
unsafe extern "C" {
pub fn g_converter_input_stream_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_converter_input_stream_new(
base_stream: *mut GInputStream,
converter: *mut GConverter,
) -> *mut GInputStream;
}
unsafe extern "C" {
pub fn g_converter_input_stream_get_converter(
converter_stream: *mut GConverterInputStream,
) -> *mut GConverter;
}
pub type GConverterOutputStreamClass = _GConverterOutputStreamClass;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GConverterOutputStreamPrivate {
_unused: [u8; 0],
}
pub type GConverterOutputStreamPrivate = _GConverterOutputStreamPrivate;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GConverterOutputStream {
pub parent_instance: GFilterOutputStream,
pub priv_: *mut GConverterOutputStreamPrivate,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GConverterOutputStream"][::std::mem::size_of::<_GConverterOutputStream>() - 48usize];
["Alignment of _GConverterOutputStream"]
[::std::mem::align_of::<_GConverterOutputStream>() - 8usize];
["Offset of field: _GConverterOutputStream::parent_instance"]
[::std::mem::offset_of!(_GConverterOutputStream, parent_instance) - 0usize];
["Offset of field: _GConverterOutputStream::priv_"]
[::std::mem::offset_of!(_GConverterOutputStream, priv_) - 40usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GConverterOutputStreamClass {
pub parent_class: GFilterOutputStreamClass,
pub _g_reserved1: ::std::option::Option<unsafe extern "C" fn()>,
pub _g_reserved2: ::std::option::Option<unsafe extern "C" fn()>,
pub _g_reserved3: ::std::option::Option<unsafe extern "C" fn()>,
pub _g_reserved4: ::std::option::Option<unsafe extern "C" fn()>,
pub _g_reserved5: ::std::option::Option<unsafe extern "C" fn()>,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GConverterOutputStreamClass"]
[::std::mem::size_of::<_GConverterOutputStreamClass>() - 360usize];
["Alignment of _GConverterOutputStreamClass"]
[::std::mem::align_of::<_GConverterOutputStreamClass>() - 8usize];
["Offset of field: _GConverterOutputStreamClass::parent_class"]
[::std::mem::offset_of!(_GConverterOutputStreamClass, parent_class) - 0usize];
["Offset of field: _GConverterOutputStreamClass::_g_reserved1"]
[::std::mem::offset_of!(_GConverterOutputStreamClass, _g_reserved1) - 320usize];
["Offset of field: _GConverterOutputStreamClass::_g_reserved2"]
[::std::mem::offset_of!(_GConverterOutputStreamClass, _g_reserved2) - 328usize];
["Offset of field: _GConverterOutputStreamClass::_g_reserved3"]
[::std::mem::offset_of!(_GConverterOutputStreamClass, _g_reserved3) - 336usize];
["Offset of field: _GConverterOutputStreamClass::_g_reserved4"]
[::std::mem::offset_of!(_GConverterOutputStreamClass, _g_reserved4) - 344usize];
["Offset of field: _GConverterOutputStreamClass::_g_reserved5"]
[::std::mem::offset_of!(_GConverterOutputStreamClass, _g_reserved5) - 352usize];
};
unsafe extern "C" {
pub fn g_converter_output_stream_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_converter_output_stream_new(
base_stream: *mut GOutputStream,
converter: *mut GConverter,
) -> *mut GOutputStream;
}
unsafe extern "C" {
pub fn g_converter_output_stream_get_converter(
converter_stream: *mut GConverterOutputStream,
) -> *mut GConverter;
}
unsafe extern "C" {
pub fn pipe(arg1: *mut ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn pipe2(
arg1: *mut ::std::os::raw::c_int,
arg2: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn close(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn posix_close(
arg1: ::std::os::raw::c_int,
arg2: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn dup(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn dup2(arg1: ::std::os::raw::c_int, arg2: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn dup3(
arg1: ::std::os::raw::c_int,
arg2: ::std::os::raw::c_int,
arg3: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn lseek(arg1: ::std::os::raw::c_int, arg2: off_t, arg3: ::std::os::raw::c_int) -> off_t;
}
unsafe extern "C" {
pub fn fsync(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn fdatasync(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn read(
arg1: ::std::os::raw::c_int,
arg2: *mut ::std::os::raw::c_void,
arg3: size_t,
) -> ssize_t;
}
unsafe extern "C" {
pub fn write(
arg1: ::std::os::raw::c_int,
arg2: *const ::std::os::raw::c_void,
arg3: size_t,
) -> ssize_t;
}
unsafe extern "C" {
pub fn pread(
arg1: ::std::os::raw::c_int,
arg2: *mut ::std::os::raw::c_void,
arg3: size_t,
arg4: off_t,
) -> ssize_t;
}
unsafe extern "C" {
pub fn pwrite(
arg1: ::std::os::raw::c_int,
arg2: *const ::std::os::raw::c_void,
arg3: size_t,
arg4: off_t,
) -> ssize_t;
}
unsafe extern "C" {
pub fn chown(
arg1: *const ::std::os::raw::c_char,
arg2: uid_t,
arg3: gid_t,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn fchown(arg1: ::std::os::raw::c_int, arg2: uid_t, arg3: gid_t) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn lchown(
arg1: *const ::std::os::raw::c_char,
arg2: uid_t,
arg3: gid_t,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn fchownat(
arg1: ::std::os::raw::c_int,
arg2: *const ::std::os::raw::c_char,
arg3: uid_t,
arg4: gid_t,
arg5: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn link(
arg1: *const ::std::os::raw::c_char,
arg2: *const ::std::os::raw::c_char,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn linkat(
arg1: ::std::os::raw::c_int,
arg2: *const ::std::os::raw::c_char,
arg3: ::std::os::raw::c_int,
arg4: *const ::std::os::raw::c_char,
arg5: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn symlink(
arg1: *const ::std::os::raw::c_char,
arg2: *const ::std::os::raw::c_char,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn symlinkat(
arg1: *const ::std::os::raw::c_char,
arg2: ::std::os::raw::c_int,
arg3: *const ::std::os::raw::c_char,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn readlink(
arg1: *const ::std::os::raw::c_char,
arg2: *mut ::std::os::raw::c_char,
arg3: size_t,
) -> ssize_t;
}
unsafe extern "C" {
pub fn readlinkat(
arg1: ::std::os::raw::c_int,
arg2: *const ::std::os::raw::c_char,
arg3: *mut ::std::os::raw::c_char,
arg4: size_t,
) -> ssize_t;
}
unsafe extern "C" {
pub fn unlink(arg1: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn unlinkat(
arg1: ::std::os::raw::c_int,
arg2: *const ::std::os::raw::c_char,
arg3: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn rmdir(arg1: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn truncate(arg1: *const ::std::os::raw::c_char, arg2: off_t) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn ftruncate(arg1: ::std::os::raw::c_int, arg2: off_t) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn access(
arg1: *const ::std::os::raw::c_char,
arg2: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn faccessat(
arg1: ::std::os::raw::c_int,
arg2: *const ::std::os::raw::c_char,
arg3: ::std::os::raw::c_int,
arg4: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn chdir(arg1: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn fchdir(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn getcwd(arg1: *mut ::std::os::raw::c_char, arg2: size_t) -> *mut ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn alarm(arg1: ::std::os::raw::c_uint) -> ::std::os::raw::c_uint;
}
unsafe extern "C" {
pub fn sleep(arg1: ::std::os::raw::c_uint) -> ::std::os::raw::c_uint;
}
unsafe extern "C" {
pub fn pause() -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn fork() -> pid_t;
}
unsafe extern "C" {
pub fn _Fork() -> pid_t;
}
unsafe extern "C" {
pub fn execve(
arg1: *const ::std::os::raw::c_char,
arg2: *const *mut ::std::os::raw::c_char,
arg3: *const *mut ::std::os::raw::c_char,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn execv(
arg1: *const ::std::os::raw::c_char,
arg2: *const *mut ::std::os::raw::c_char,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn execle(
arg1: *const ::std::os::raw::c_char,
arg2: *const ::std::os::raw::c_char,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn execl(
arg1: *const ::std::os::raw::c_char,
arg2: *const ::std::os::raw::c_char,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn execvp(
arg1: *const ::std::os::raw::c_char,
arg2: *const *mut ::std::os::raw::c_char,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn execlp(
arg1: *const ::std::os::raw::c_char,
arg2: *const ::std::os::raw::c_char,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn fexecve(
arg1: ::std::os::raw::c_int,
arg2: *const *mut ::std::os::raw::c_char,
arg3: *const *mut ::std::os::raw::c_char,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn _exit(arg1: ::std::os::raw::c_int) -> !;
}
unsafe extern "C" {
pub fn getpid() -> pid_t;
}
unsafe extern "C" {
pub fn getppid() -> pid_t;
}
unsafe extern "C" {
pub fn getpgrp() -> pid_t;
}
unsafe extern "C" {
pub fn getpgid(arg1: pid_t) -> pid_t;
}
unsafe extern "C" {
pub fn setpgid(arg1: pid_t, arg2: pid_t) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn setsid() -> pid_t;
}
unsafe extern "C" {
pub fn getsid(arg1: pid_t) -> pid_t;
}
unsafe extern "C" {
pub fn ttyname(arg1: ::std::os::raw::c_int) -> *mut ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn ttyname_r(
arg1: ::std::os::raw::c_int,
arg2: *mut ::std::os::raw::c_char,
arg3: size_t,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn isatty(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn tcgetpgrp(arg1: ::std::os::raw::c_int) -> pid_t;
}
unsafe extern "C" {
pub fn tcsetpgrp(arg1: ::std::os::raw::c_int, arg2: pid_t) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn getuid() -> uid_t;
}
unsafe extern "C" {
pub fn geteuid() -> uid_t;
}
unsafe extern "C" {
pub fn getgid() -> gid_t;
}
unsafe extern "C" {
pub fn getegid() -> gid_t;
}
unsafe extern "C" {
pub fn getgroups(arg1: ::std::os::raw::c_int, arg2: *mut gid_t) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn setuid(arg1: uid_t) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn seteuid(arg1: uid_t) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn setgid(arg1: gid_t) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn setegid(arg1: gid_t) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn getlogin() -> *mut ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn getlogin_r(arg1: *mut ::std::os::raw::c_char, arg2: size_t) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn gethostname(arg1: *mut ::std::os::raw::c_char, arg2: size_t) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn getopt(
arg1: ::std::os::raw::c_int,
arg2: *const *mut ::std::os::raw::c_char,
arg3: *const ::std::os::raw::c_char,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub static mut optarg: *mut ::std::os::raw::c_char;
}
unsafe extern "C" {
pub static mut optind: ::std::os::raw::c_int;
}
unsafe extern "C" {
pub static mut opterr: ::std::os::raw::c_int;
}
unsafe extern "C" {
pub static mut optopt: ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn pathconf(
arg1: *const ::std::os::raw::c_char,
arg2: ::std::os::raw::c_int,
) -> ::std::os::raw::c_long;
}
unsafe extern "C" {
pub fn fpathconf(
arg1: ::std::os::raw::c_int,
arg2: ::std::os::raw::c_int,
) -> ::std::os::raw::c_long;
}
unsafe extern "C" {
pub fn sysconf(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_long;
}
unsafe extern "C" {
pub fn confstr(
arg1: ::std::os::raw::c_int,
arg2: *mut ::std::os::raw::c_char,
arg3: size_t,
) -> size_t;
}
unsafe extern "C" {
pub fn setreuid(arg1: uid_t, arg2: uid_t) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn setregid(arg1: gid_t, arg2: gid_t) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn lockf(
arg1: ::std::os::raw::c_int,
arg2: ::std::os::raw::c_int,
arg3: off_t,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn gethostid() -> ::std::os::raw::c_long;
}
unsafe extern "C" {
pub fn nice(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn sync();
}
unsafe extern "C" {
pub fn setpgrp() -> pid_t;
}
unsafe extern "C" {
pub fn crypt(
arg1: *const ::std::os::raw::c_char,
arg2: *const ::std::os::raw::c_char,
) -> *mut ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn encrypt(arg1: *mut ::std::os::raw::c_char, arg2: ::std::os::raw::c_int);
}
unsafe extern "C" {
pub fn swab(
arg1: *const ::std::os::raw::c_void,
arg2: *mut ::std::os::raw::c_void,
arg3: ssize_t,
);
}
unsafe extern "C" {
pub fn usleep(arg1: ::std::os::raw::c_uint) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn ualarm(
arg1: ::std::os::raw::c_uint,
arg2: ::std::os::raw::c_uint,
) -> ::std::os::raw::c_uint;
}
unsafe extern "C" {
pub fn brk(arg1: *mut ::std::os::raw::c_void) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn sbrk(arg1: isize) -> *mut ::std::os::raw::c_void;
}
unsafe extern "C" {
pub fn vfork() -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vhangup() -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn chroot(arg1: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn getpagesize() -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn getdtablesize() -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn sethostname(arg1: *const ::std::os::raw::c_char, arg2: size_t) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn getdomainname(arg1: *mut ::std::os::raw::c_char, arg2: size_t) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn setdomainname(
arg1: *const ::std::os::raw::c_char,
arg2: size_t,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn setgroups(arg1: size_t, arg2: *const gid_t) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn getpass(arg1: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn daemon(
arg1: ::std::os::raw::c_int,
arg2: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn setusershell();
}
unsafe extern "C" {
pub fn endusershell();
}
unsafe extern "C" {
pub fn getusershell() -> *mut ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn acct(arg1: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn syscall(arg1: ::std::os::raw::c_long, ...) -> ::std::os::raw::c_long;
}
unsafe extern "C" {
pub fn execvpe(
arg1: *const ::std::os::raw::c_char,
arg2: *const *mut ::std::os::raw::c_char,
arg3: *const *mut ::std::os::raw::c_char,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn issetugid() -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn getentropy(arg1: *mut ::std::os::raw::c_void, arg2: size_t) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub static mut optreset: ::std::os::raw::c_int;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GCredentialsClass {
_unused: [u8; 0],
}
pub type GCredentialsClass = _GCredentialsClass;
unsafe extern "C" {
pub fn g_credentials_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_credentials_new() -> *mut GCredentials;
}
unsafe extern "C" {
pub fn g_credentials_to_string(credentials: *mut GCredentials) -> *mut gchar;
}
unsafe extern "C" {
pub fn g_credentials_get_native(
credentials: *mut GCredentials,
native_type: GCredentialsType,
) -> gpointer;
}
unsafe extern "C" {
pub fn g_credentials_set_native(
credentials: *mut GCredentials,
native_type: GCredentialsType,
native: gpointer,
);
}
unsafe extern "C" {
pub fn g_credentials_is_same_user(
credentials: *mut GCredentials,
other_credentials: *mut GCredentials,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_credentials_get_unix_pid(
credentials: *mut GCredentials,
error: *mut *mut GError,
) -> pid_t;
}
unsafe extern "C" {
pub fn g_credentials_get_unix_user(
credentials: *mut GCredentials,
error: *mut *mut GError,
) -> uid_t;
}
unsafe extern "C" {
pub fn g_credentials_set_unix_user(
credentials: *mut GCredentials,
uid: uid_t,
error: *mut *mut GError,
) -> gboolean;
}
pub type GDatagramBasedInterface = _GDatagramBasedInterface;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GDatagramBasedInterface {
pub g_iface: GTypeInterface,
pub receive_messages: ::std::option::Option<
unsafe extern "C" fn(
datagram_based: *mut GDatagramBased,
messages: *mut GInputMessage,
num_messages: guint,
flags: gint,
timeout: gint64,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> gint,
>,
pub send_messages: ::std::option::Option<
unsafe extern "C" fn(
datagram_based: *mut GDatagramBased,
messages: *mut GOutputMessage,
num_messages: guint,
flags: gint,
timeout: gint64,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> gint,
>,
pub create_source: ::std::option::Option<
unsafe extern "C" fn(
datagram_based: *mut GDatagramBased,
condition: GIOCondition,
cancellable: *mut GCancellable,
) -> *mut GSource,
>,
pub condition_check: ::std::option::Option<
unsafe extern "C" fn(
datagram_based: *mut GDatagramBased,
condition: GIOCondition,
) -> GIOCondition,
>,
pub condition_wait: ::std::option::Option<
unsafe extern "C" fn(
datagram_based: *mut GDatagramBased,
condition: GIOCondition,
timeout: gint64,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> gboolean,
>,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GDatagramBasedInterface"]
[::std::mem::size_of::<_GDatagramBasedInterface>() - 56usize];
["Alignment of _GDatagramBasedInterface"]
[::std::mem::align_of::<_GDatagramBasedInterface>() - 8usize];
["Offset of field: _GDatagramBasedInterface::g_iface"]
[::std::mem::offset_of!(_GDatagramBasedInterface, g_iface) - 0usize];
["Offset of field: _GDatagramBasedInterface::receive_messages"]
[::std::mem::offset_of!(_GDatagramBasedInterface, receive_messages) - 16usize];
["Offset of field: _GDatagramBasedInterface::send_messages"]
[::std::mem::offset_of!(_GDatagramBasedInterface, send_messages) - 24usize];
["Offset of field: _GDatagramBasedInterface::create_source"]
[::std::mem::offset_of!(_GDatagramBasedInterface, create_source) - 32usize];
["Offset of field: _GDatagramBasedInterface::condition_check"]
[::std::mem::offset_of!(_GDatagramBasedInterface, condition_check) - 40usize];
["Offset of field: _GDatagramBasedInterface::condition_wait"]
[::std::mem::offset_of!(_GDatagramBasedInterface, condition_wait) - 48usize];
};
unsafe extern "C" {
pub fn g_datagram_based_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_datagram_based_receive_messages(
datagram_based: *mut GDatagramBased,
messages: *mut GInputMessage,
num_messages: guint,
flags: gint,
timeout: gint64,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> gint;
}
unsafe extern "C" {
pub fn g_datagram_based_send_messages(
datagram_based: *mut GDatagramBased,
messages: *mut GOutputMessage,
num_messages: guint,
flags: gint,
timeout: gint64,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> gint;
}
unsafe extern "C" {
pub fn g_datagram_based_create_source(
datagram_based: *mut GDatagramBased,
condition: GIOCondition,
cancellable: *mut GCancellable,
) -> *mut GSource;
}
unsafe extern "C" {
pub fn g_datagram_based_condition_check(
datagram_based: *mut GDatagramBased,
condition: GIOCondition,
) -> GIOCondition;
}
unsafe extern "C" {
pub fn g_datagram_based_condition_wait(
datagram_based: *mut GDatagramBased,
condition: GIOCondition,
timeout: gint64,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> gboolean;
}
pub type GDataInputStreamClass = _GDataInputStreamClass;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GDataInputStreamPrivate {
_unused: [u8; 0],
}
pub type GDataInputStreamPrivate = _GDataInputStreamPrivate;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GDataInputStream {
pub parent_instance: GBufferedInputStream,
pub priv_: *mut GDataInputStreamPrivate,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GDataInputStream"][::std::mem::size_of::<_GDataInputStream>() - 56usize];
["Alignment of _GDataInputStream"][::std::mem::align_of::<_GDataInputStream>() - 8usize];
["Offset of field: _GDataInputStream::parent_instance"]
[::std::mem::offset_of!(_GDataInputStream, parent_instance) - 0usize];
["Offset of field: _GDataInputStream::priv_"]
[::std::mem::offset_of!(_GDataInputStream, priv_) - 48usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GDataInputStreamClass {
pub parent_class: GBufferedInputStreamClass,
pub _g_reserved1: ::std::option::Option<unsafe extern "C" fn()>,
pub _g_reserved2: ::std::option::Option<unsafe extern "C" fn()>,
pub _g_reserved3: ::std::option::Option<unsafe extern "C" fn()>,
pub _g_reserved4: ::std::option::Option<unsafe extern "C" fn()>,
pub _g_reserved5: ::std::option::Option<unsafe extern "C" fn()>,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GDataInputStreamClass"][::std::mem::size_of::<_GDataInputStreamClass>() - 376usize];
["Alignment of _GDataInputStreamClass"]
[::std::mem::align_of::<_GDataInputStreamClass>() - 8usize];
["Offset of field: _GDataInputStreamClass::parent_class"]
[::std::mem::offset_of!(_GDataInputStreamClass, parent_class) - 0usize];
["Offset of field: _GDataInputStreamClass::_g_reserved1"]
[::std::mem::offset_of!(_GDataInputStreamClass, _g_reserved1) - 336usize];
["Offset of field: _GDataInputStreamClass::_g_reserved2"]
[::std::mem::offset_of!(_GDataInputStreamClass, _g_reserved2) - 344usize];
["Offset of field: _GDataInputStreamClass::_g_reserved3"]
[::std::mem::offset_of!(_GDataInputStreamClass, _g_reserved3) - 352usize];
["Offset of field: _GDataInputStreamClass::_g_reserved4"]
[::std::mem::offset_of!(_GDataInputStreamClass, _g_reserved4) - 360usize];
["Offset of field: _GDataInputStreamClass::_g_reserved5"]
[::std::mem::offset_of!(_GDataInputStreamClass, _g_reserved5) - 368usize];
};
unsafe extern "C" {
pub fn g_data_input_stream_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_data_input_stream_new(base_stream: *mut GInputStream) -> *mut GDataInputStream;
}
unsafe extern "C" {
pub fn g_data_input_stream_set_byte_order(
stream: *mut GDataInputStream,
order: GDataStreamByteOrder,
);
}
unsafe extern "C" {
pub fn g_data_input_stream_get_byte_order(
stream: *mut GDataInputStream,
) -> GDataStreamByteOrder;
}
unsafe extern "C" {
pub fn g_data_input_stream_set_newline_type(
stream: *mut GDataInputStream,
type_: GDataStreamNewlineType,
);
}
unsafe extern "C" {
pub fn g_data_input_stream_get_newline_type(
stream: *mut GDataInputStream,
) -> GDataStreamNewlineType;
}
unsafe extern "C" {
pub fn g_data_input_stream_read_byte(
stream: *mut GDataInputStream,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> guchar;
}
unsafe extern "C" {
pub fn g_data_input_stream_read_int16(
stream: *mut GDataInputStream,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> gint16;
}
unsafe extern "C" {
pub fn g_data_input_stream_read_uint16(
stream: *mut GDataInputStream,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> guint16;
}
unsafe extern "C" {
pub fn g_data_input_stream_read_int32(
stream: *mut GDataInputStream,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> gint32;
}
unsafe extern "C" {
pub fn g_data_input_stream_read_uint32(
stream: *mut GDataInputStream,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> guint32;
}
unsafe extern "C" {
pub fn g_data_input_stream_read_int64(
stream: *mut GDataInputStream,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> gint64;
}
unsafe extern "C" {
pub fn g_data_input_stream_read_uint64(
stream: *mut GDataInputStream,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> guint64;
}
unsafe extern "C" {
pub fn g_data_input_stream_read_line(
stream: *mut GDataInputStream,
length: *mut gsize,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> *mut ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn g_data_input_stream_read_line_utf8(
stream: *mut GDataInputStream,
length: *mut gsize,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> *mut ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn g_data_input_stream_read_line_async(
stream: *mut GDataInputStream,
io_priority: gint,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
);
}
unsafe extern "C" {
pub fn g_data_input_stream_read_line_finish(
stream: *mut GDataInputStream,
result: *mut GAsyncResult,
length: *mut gsize,
error: *mut *mut GError,
) -> *mut ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn g_data_input_stream_read_line_finish_utf8(
stream: *mut GDataInputStream,
result: *mut GAsyncResult,
length: *mut gsize,
error: *mut *mut GError,
) -> *mut ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn g_data_input_stream_read_until(
stream: *mut GDataInputStream,
stop_chars: *const gchar,
length: *mut gsize,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> *mut ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn g_data_input_stream_read_until_async(
stream: *mut GDataInputStream,
stop_chars: *const gchar,
io_priority: gint,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
);
}
unsafe extern "C" {
pub fn g_data_input_stream_read_until_finish(
stream: *mut GDataInputStream,
result: *mut GAsyncResult,
length: *mut gsize,
error: *mut *mut GError,
) -> *mut ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn g_data_input_stream_read_upto(
stream: *mut GDataInputStream,
stop_chars: *const gchar,
stop_chars_len: gssize,
length: *mut gsize,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> *mut ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn g_data_input_stream_read_upto_async(
stream: *mut GDataInputStream,
stop_chars: *const gchar,
stop_chars_len: gssize,
io_priority: gint,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
);
}
unsafe extern "C" {
pub fn g_data_input_stream_read_upto_finish(
stream: *mut GDataInputStream,
result: *mut GAsyncResult,
length: *mut gsize,
error: *mut *mut GError,
) -> *mut ::std::os::raw::c_char;
}
pub type GDataOutputStream = _GDataOutputStream;
pub type GDataOutputStreamClass = _GDataOutputStreamClass;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GDataOutputStreamPrivate {
_unused: [u8; 0],
}
pub type GDataOutputStreamPrivate = _GDataOutputStreamPrivate;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GDataOutputStream {
pub parent_instance: GFilterOutputStream,
pub priv_: *mut GDataOutputStreamPrivate,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GDataOutputStream"][::std::mem::size_of::<_GDataOutputStream>() - 48usize];
["Alignment of _GDataOutputStream"][::std::mem::align_of::<_GDataOutputStream>() - 8usize];
["Offset of field: _GDataOutputStream::parent_instance"]
[::std::mem::offset_of!(_GDataOutputStream, parent_instance) - 0usize];
["Offset of field: _GDataOutputStream::priv_"]
[::std::mem::offset_of!(_GDataOutputStream, priv_) - 40usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GDataOutputStreamClass {
pub parent_class: GFilterOutputStreamClass,
pub _g_reserved1: ::std::option::Option<unsafe extern "C" fn()>,
pub _g_reserved2: ::std::option::Option<unsafe extern "C" fn()>,
pub _g_reserved3: ::std::option::Option<unsafe extern "C" fn()>,
pub _g_reserved4: ::std::option::Option<unsafe extern "C" fn()>,
pub _g_reserved5: ::std::option::Option<unsafe extern "C" fn()>,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GDataOutputStreamClass"]
[::std::mem::size_of::<_GDataOutputStreamClass>() - 360usize];
["Alignment of _GDataOutputStreamClass"]
[::std::mem::align_of::<_GDataOutputStreamClass>() - 8usize];
["Offset of field: _GDataOutputStreamClass::parent_class"]
[::std::mem::offset_of!(_GDataOutputStreamClass, parent_class) - 0usize];
["Offset of field: _GDataOutputStreamClass::_g_reserved1"]
[::std::mem::offset_of!(_GDataOutputStreamClass, _g_reserved1) - 320usize];
["Offset of field: _GDataOutputStreamClass::_g_reserved2"]
[::std::mem::offset_of!(_GDataOutputStreamClass, _g_reserved2) - 328usize];
["Offset of field: _GDataOutputStreamClass::_g_reserved3"]
[::std::mem::offset_of!(_GDataOutputStreamClass, _g_reserved3) - 336usize];
["Offset of field: _GDataOutputStreamClass::_g_reserved4"]
[::std::mem::offset_of!(_GDataOutputStreamClass, _g_reserved4) - 344usize];
["Offset of field: _GDataOutputStreamClass::_g_reserved5"]
[::std::mem::offset_of!(_GDataOutputStreamClass, _g_reserved5) - 352usize];
};
unsafe extern "C" {
pub fn g_data_output_stream_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_data_output_stream_new(base_stream: *mut GOutputStream) -> *mut GDataOutputStream;
}
unsafe extern "C" {
pub fn g_data_output_stream_set_byte_order(
stream: *mut GDataOutputStream,
order: GDataStreamByteOrder,
);
}
unsafe extern "C" {
pub fn g_data_output_stream_get_byte_order(
stream: *mut GDataOutputStream,
) -> GDataStreamByteOrder;
}
unsafe extern "C" {
pub fn g_data_output_stream_put_byte(
stream: *mut GDataOutputStream,
data: guchar,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_data_output_stream_put_int16(
stream: *mut GDataOutputStream,
data: gint16,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_data_output_stream_put_uint16(
stream: *mut GDataOutputStream,
data: guint16,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_data_output_stream_put_int32(
stream: *mut GDataOutputStream,
data: gint32,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_data_output_stream_put_uint32(
stream: *mut GDataOutputStream,
data: guint32,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_data_output_stream_put_int64(
stream: *mut GDataOutputStream,
data: gint64,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_data_output_stream_put_uint64(
stream: *mut GDataOutputStream,
data: guint64,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_data_output_stream_put_string(
stream: *mut GDataOutputStream,
str_: *const ::std::os::raw::c_char,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_dbus_action_group_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_dbus_action_group_get(
connection: *mut GDBusConnection,
bus_name: *const gchar,
object_path: *const gchar,
) -> *mut GDBusActionGroup;
}
unsafe extern "C" {
pub fn g_dbus_address_escape_value(string: *const gchar) -> *mut gchar;
}
unsafe extern "C" {
pub fn g_dbus_is_address(string: *const gchar) -> gboolean;
}
unsafe extern "C" {
pub fn g_dbus_is_supported_address(string: *const gchar, error: *mut *mut GError) -> gboolean;
}
unsafe extern "C" {
pub fn g_dbus_address_get_stream(
address: *const gchar,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
);
}
unsafe extern "C" {
pub fn g_dbus_address_get_stream_finish(
res: *mut GAsyncResult,
out_guid: *mut *mut gchar,
error: *mut *mut GError,
) -> *mut GIOStream;
}
unsafe extern "C" {
pub fn g_dbus_address_get_stream_sync(
address: *const gchar,
out_guid: *mut *mut gchar,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> *mut GIOStream;
}
unsafe extern "C" {
pub fn g_dbus_address_get_for_bus_sync(
bus_type: GBusType,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> *mut gchar;
}
unsafe extern "C" {
pub fn g_dbus_auth_observer_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_dbus_auth_observer_new() -> *mut GDBusAuthObserver;
}
unsafe extern "C" {
pub fn g_dbus_auth_observer_authorize_authenticated_peer(
observer: *mut GDBusAuthObserver,
stream: *mut GIOStream,
credentials: *mut GCredentials,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_dbus_auth_observer_allow_mechanism(
observer: *mut GDBusAuthObserver,
mechanism: *const gchar,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_dbus_connection_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_bus_get(
bus_type: GBusType,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
);
}
unsafe extern "C" {
pub fn g_bus_get_finish(
res: *mut GAsyncResult,
error: *mut *mut GError,
) -> *mut GDBusConnection;
}
unsafe extern "C" {
pub fn g_bus_get_sync(
bus_type: GBusType,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> *mut GDBusConnection;
}
unsafe extern "C" {
pub fn g_dbus_connection_new(
stream: *mut GIOStream,
guid: *const gchar,
flags: GDBusConnectionFlags,
observer: *mut GDBusAuthObserver,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
);
}
unsafe extern "C" {
pub fn g_dbus_connection_new_finish(
res: *mut GAsyncResult,
error: *mut *mut GError,
) -> *mut GDBusConnection;
}
unsafe extern "C" {
pub fn g_dbus_connection_new_sync(
stream: *mut GIOStream,
guid: *const gchar,
flags: GDBusConnectionFlags,
observer: *mut GDBusAuthObserver,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> *mut GDBusConnection;
}
unsafe extern "C" {
pub fn g_dbus_connection_new_for_address(
address: *const gchar,
flags: GDBusConnectionFlags,
observer: *mut GDBusAuthObserver,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
);
}
unsafe extern "C" {
pub fn g_dbus_connection_new_for_address_finish(
res: *mut GAsyncResult,
error: *mut *mut GError,
) -> *mut GDBusConnection;
}
unsafe extern "C" {
pub fn g_dbus_connection_new_for_address_sync(
address: *const gchar,
flags: GDBusConnectionFlags,
observer: *mut GDBusAuthObserver,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> *mut GDBusConnection;
}
unsafe extern "C" {
pub fn g_dbus_connection_start_message_processing(connection: *mut GDBusConnection);
}
unsafe extern "C" {
pub fn g_dbus_connection_is_closed(connection: *mut GDBusConnection) -> gboolean;
}
unsafe extern "C" {
pub fn g_dbus_connection_get_stream(connection: *mut GDBusConnection) -> *mut GIOStream;
}
unsafe extern "C" {
pub fn g_dbus_connection_get_guid(connection: *mut GDBusConnection) -> *const gchar;
}
unsafe extern "C" {
pub fn g_dbus_connection_get_unique_name(connection: *mut GDBusConnection) -> *const gchar;
}
unsafe extern "C" {
pub fn g_dbus_connection_get_peer_credentials(
connection: *mut GDBusConnection,
) -> *mut GCredentials;
}
unsafe extern "C" {
pub fn g_dbus_connection_get_last_serial(connection: *mut GDBusConnection) -> guint32;
}
unsafe extern "C" {
pub fn g_dbus_connection_get_exit_on_close(connection: *mut GDBusConnection) -> gboolean;
}
unsafe extern "C" {
pub fn g_dbus_connection_set_exit_on_close(
connection: *mut GDBusConnection,
exit_on_close: gboolean,
);
}
unsafe extern "C" {
pub fn g_dbus_connection_get_capabilities(
connection: *mut GDBusConnection,
) -> GDBusCapabilityFlags;
}
unsafe extern "C" {
pub fn g_dbus_connection_get_flags(connection: *mut GDBusConnection) -> GDBusConnectionFlags;
}
unsafe extern "C" {
pub fn g_dbus_connection_close(
connection: *mut GDBusConnection,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
);
}
unsafe extern "C" {
pub fn g_dbus_connection_close_finish(
connection: *mut GDBusConnection,
res: *mut GAsyncResult,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_dbus_connection_close_sync(
connection: *mut GDBusConnection,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_dbus_connection_flush(
connection: *mut GDBusConnection,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
);
}
unsafe extern "C" {
pub fn g_dbus_connection_flush_finish(
connection: *mut GDBusConnection,
res: *mut GAsyncResult,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_dbus_connection_flush_sync(
connection: *mut GDBusConnection,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_dbus_connection_send_message(
connection: *mut GDBusConnection,
message: *mut GDBusMessage,
flags: GDBusSendMessageFlags,
out_serial: *mut guint32,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_dbus_connection_send_message_with_reply(
connection: *mut GDBusConnection,
message: *mut GDBusMessage,
flags: GDBusSendMessageFlags,
timeout_msec: gint,
out_serial: *mut guint32,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
);
}
unsafe extern "C" {
pub fn g_dbus_connection_send_message_with_reply_finish(
connection: *mut GDBusConnection,
res: *mut GAsyncResult,
error: *mut *mut GError,
) -> *mut GDBusMessage;
}
unsafe extern "C" {
pub fn g_dbus_connection_send_message_with_reply_sync(
connection: *mut GDBusConnection,
message: *mut GDBusMessage,
flags: GDBusSendMessageFlags,
timeout_msec: gint,
out_serial: *mut guint32,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> *mut GDBusMessage;
}
unsafe extern "C" {
pub fn g_dbus_connection_emit_signal(
connection: *mut GDBusConnection,
destination_bus_name: *const gchar,
object_path: *const gchar,
interface_name: *const gchar,
signal_name: *const gchar,
parameters: *mut GVariant,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_dbus_connection_call(
connection: *mut GDBusConnection,
bus_name: *const gchar,
object_path: *const gchar,
interface_name: *const gchar,
method_name: *const gchar,
parameters: *mut GVariant,
reply_type: *const GVariantType,
flags: GDBusCallFlags,
timeout_msec: gint,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
);
}
unsafe extern "C" {
pub fn g_dbus_connection_call_finish(
connection: *mut GDBusConnection,
res: *mut GAsyncResult,
error: *mut *mut GError,
) -> *mut GVariant;
}
unsafe extern "C" {
pub fn g_dbus_connection_call_sync(
connection: *mut GDBusConnection,
bus_name: *const gchar,
object_path: *const gchar,
interface_name: *const gchar,
method_name: *const gchar,
parameters: *mut GVariant,
reply_type: *const GVariantType,
flags: GDBusCallFlags,
timeout_msec: gint,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> *mut GVariant;
}
unsafe extern "C" {
pub fn g_dbus_connection_call_with_unix_fd_list(
connection: *mut GDBusConnection,
bus_name: *const gchar,
object_path: *const gchar,
interface_name: *const gchar,
method_name: *const gchar,
parameters: *mut GVariant,
reply_type: *const GVariantType,
flags: GDBusCallFlags,
timeout_msec: gint,
fd_list: *mut GUnixFDList,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
);
}
unsafe extern "C" {
pub fn g_dbus_connection_call_with_unix_fd_list_finish(
connection: *mut GDBusConnection,
out_fd_list: *mut *mut GUnixFDList,
res: *mut GAsyncResult,
error: *mut *mut GError,
) -> *mut GVariant;
}
unsafe extern "C" {
pub fn g_dbus_connection_call_with_unix_fd_list_sync(
connection: *mut GDBusConnection,
bus_name: *const gchar,
object_path: *const gchar,
interface_name: *const gchar,
method_name: *const gchar,
parameters: *mut GVariant,
reply_type: *const GVariantType,
flags: GDBusCallFlags,
timeout_msec: gint,
fd_list: *mut GUnixFDList,
out_fd_list: *mut *mut GUnixFDList,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> *mut GVariant;
}
pub type GDBusInterfaceMethodCallFunc = ::std::option::Option<
unsafe extern "C" fn(
connection: *mut GDBusConnection,
sender: *const gchar,
object_path: *const gchar,
interface_name: *const gchar,
method_name: *const gchar,
parameters: *mut GVariant,
invocation: *mut GDBusMethodInvocation,
user_data: gpointer,
),
>;
pub type GDBusInterfaceGetPropertyFunc = ::std::option::Option<
unsafe extern "C" fn(
connection: *mut GDBusConnection,
sender: *const gchar,
object_path: *const gchar,
interface_name: *const gchar,
property_name: *const gchar,
error: *mut *mut GError,
user_data: gpointer,
) -> *mut GVariant,
>;
pub type GDBusInterfaceSetPropertyFunc = ::std::option::Option<
unsafe extern "C" fn(
connection: *mut GDBusConnection,
sender: *const gchar,
object_path: *const gchar,
interface_name: *const gchar,
property_name: *const gchar,
value: *mut GVariant,
error: *mut *mut GError,
user_data: gpointer,
) -> gboolean,
>;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GDBusInterfaceVTable {
pub method_call: GDBusInterfaceMethodCallFunc,
pub get_property: GDBusInterfaceGetPropertyFunc,
pub set_property: GDBusInterfaceSetPropertyFunc,
pub padding: [gpointer; 8usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GDBusInterfaceVTable"][::std::mem::size_of::<_GDBusInterfaceVTable>() - 88usize];
["Alignment of _GDBusInterfaceVTable"]
[::std::mem::align_of::<_GDBusInterfaceVTable>() - 8usize];
["Offset of field: _GDBusInterfaceVTable::method_call"]
[::std::mem::offset_of!(_GDBusInterfaceVTable, method_call) - 0usize];
["Offset of field: _GDBusInterfaceVTable::get_property"]
[::std::mem::offset_of!(_GDBusInterfaceVTable, get_property) - 8usize];
["Offset of field: _GDBusInterfaceVTable::set_property"]
[::std::mem::offset_of!(_GDBusInterfaceVTable, set_property) - 16usize];
["Offset of field: _GDBusInterfaceVTable::padding"]
[::std::mem::offset_of!(_GDBusInterfaceVTable, padding) - 24usize];
};
unsafe extern "C" {
pub fn g_dbus_connection_register_object(
connection: *mut GDBusConnection,
object_path: *const gchar,
interface_info: *mut GDBusInterfaceInfo,
vtable: *const GDBusInterfaceVTable,
user_data: gpointer,
user_data_free_func: GDestroyNotify,
error: *mut *mut GError,
) -> guint;
}
unsafe extern "C" {
pub fn g_dbus_connection_register_object_with_closures(
connection: *mut GDBusConnection,
object_path: *const gchar,
interface_info: *mut GDBusInterfaceInfo,
method_call_closure: *mut GClosure,
get_property_closure: *mut GClosure,
set_property_closure: *mut GClosure,
error: *mut *mut GError,
) -> guint;
}
unsafe extern "C" {
pub fn g_dbus_connection_register_object_with_closures2(
connection: *mut GDBusConnection,
object_path: *const gchar,
interface_info: *mut GDBusInterfaceInfo,
method_call_closure: *mut GClosure,
get_property_closure: *mut GClosure,
set_property_closure: *mut GClosure,
error: *mut *mut GError,
) -> guint;
}
unsafe extern "C" {
pub fn g_dbus_connection_unregister_object(
connection: *mut GDBusConnection,
registration_id: guint,
) -> gboolean;
}
pub type GDBusSubtreeEnumerateFunc = ::std::option::Option<
unsafe extern "C" fn(
connection: *mut GDBusConnection,
sender: *const gchar,
object_path: *const gchar,
user_data: gpointer,
) -> *mut *mut gchar,
>;
pub type GDBusSubtreeIntrospectFunc = ::std::option::Option<
unsafe extern "C" fn(
connection: *mut GDBusConnection,
sender: *const gchar,
object_path: *const gchar,
node: *const gchar,
user_data: gpointer,
) -> *mut *mut GDBusInterfaceInfo,
>;
pub type GDBusSubtreeDispatchFunc = ::std::option::Option<
unsafe extern "C" fn(
connection: *mut GDBusConnection,
sender: *const gchar,
object_path: *const gchar,
interface_name: *const gchar,
node: *const gchar,
out_user_data: *mut gpointer,
user_data: gpointer,
) -> *const GDBusInterfaceVTable,
>;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GDBusSubtreeVTable {
pub enumerate: GDBusSubtreeEnumerateFunc,
pub introspect: GDBusSubtreeIntrospectFunc,
pub dispatch: GDBusSubtreeDispatchFunc,
pub padding: [gpointer; 8usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GDBusSubtreeVTable"][::std::mem::size_of::<_GDBusSubtreeVTable>() - 88usize];
["Alignment of _GDBusSubtreeVTable"][::std::mem::align_of::<_GDBusSubtreeVTable>() - 8usize];
["Offset of field: _GDBusSubtreeVTable::enumerate"]
[::std::mem::offset_of!(_GDBusSubtreeVTable, enumerate) - 0usize];
["Offset of field: _GDBusSubtreeVTable::introspect"]
[::std::mem::offset_of!(_GDBusSubtreeVTable, introspect) - 8usize];
["Offset of field: _GDBusSubtreeVTable::dispatch"]
[::std::mem::offset_of!(_GDBusSubtreeVTable, dispatch) - 16usize];
["Offset of field: _GDBusSubtreeVTable::padding"]
[::std::mem::offset_of!(_GDBusSubtreeVTable, padding) - 24usize];
};
unsafe extern "C" {
pub fn g_dbus_connection_register_subtree(
connection: *mut GDBusConnection,
object_path: *const gchar,
vtable: *const GDBusSubtreeVTable,
flags: GDBusSubtreeFlags,
user_data: gpointer,
user_data_free_func: GDestroyNotify,
error: *mut *mut GError,
) -> guint;
}
unsafe extern "C" {
pub fn g_dbus_connection_unregister_subtree(
connection: *mut GDBusConnection,
registration_id: guint,
) -> gboolean;
}
pub type GDBusSignalCallback = ::std::option::Option<
unsafe extern "C" fn(
connection: *mut GDBusConnection,
sender_name: *const gchar,
object_path: *const gchar,
interface_name: *const gchar,
signal_name: *const gchar,
parameters: *mut GVariant,
user_data: gpointer,
),
>;
unsafe extern "C" {
pub fn g_dbus_connection_signal_subscribe(
connection: *mut GDBusConnection,
sender: *const gchar,
interface_name: *const gchar,
member: *const gchar,
object_path: *const gchar,
arg0: *const gchar,
flags: GDBusSignalFlags,
callback: GDBusSignalCallback,
user_data: gpointer,
user_data_free_func: GDestroyNotify,
) -> guint;
}
unsafe extern "C" {
pub fn g_dbus_connection_signal_unsubscribe(
connection: *mut GDBusConnection,
subscription_id: guint,
);
}
pub type GDBusMessageFilterFunction = ::std::option::Option<
unsafe extern "C" fn(
connection: *mut GDBusConnection,
message: *mut GDBusMessage,
incoming: gboolean,
user_data: gpointer,
) -> *mut GDBusMessage,
>;
unsafe extern "C" {
pub fn g_dbus_connection_add_filter(
connection: *mut GDBusConnection,
filter_function: GDBusMessageFilterFunction,
user_data: gpointer,
user_data_free_func: GDestroyNotify,
) -> guint;
}
unsafe extern "C" {
pub fn g_dbus_connection_remove_filter(connection: *mut GDBusConnection, filter_id: guint);
}
unsafe extern "C" {
pub fn g_dbus_error_quark() -> GQuark;
}
unsafe extern "C" {
pub fn g_dbus_error_is_remote_error(error: *const GError) -> gboolean;
}
unsafe extern "C" {
pub fn g_dbus_error_get_remote_error(error: *const GError) -> *mut gchar;
}
unsafe extern "C" {
pub fn g_dbus_error_strip_remote_error(error: *mut GError) -> gboolean;
}
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GDBusErrorEntry {
pub error_code: gint,
pub dbus_error_name: *const gchar,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GDBusErrorEntry"][::std::mem::size_of::<_GDBusErrorEntry>() - 16usize];
["Alignment of _GDBusErrorEntry"][::std::mem::align_of::<_GDBusErrorEntry>() - 8usize];
["Offset of field: _GDBusErrorEntry::error_code"]
[::std::mem::offset_of!(_GDBusErrorEntry, error_code) - 0usize];
["Offset of field: _GDBusErrorEntry::dbus_error_name"]
[::std::mem::offset_of!(_GDBusErrorEntry, dbus_error_name) - 8usize];
};
unsafe extern "C" {
pub fn g_dbus_error_register_error(
error_domain: GQuark,
error_code: gint,
dbus_error_name: *const gchar,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_dbus_error_unregister_error(
error_domain: GQuark,
error_code: gint,
dbus_error_name: *const gchar,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_dbus_error_register_error_domain(
error_domain_quark_name: *const gchar,
quark_volatile: *mut gsize,
entries: *const GDBusErrorEntry,
num_entries: guint,
);
}
unsafe extern "C" {
pub fn g_dbus_error_new_for_dbus_error(
dbus_error_name: *const gchar,
dbus_error_message: *const gchar,
) -> *mut GError;
}
unsafe extern "C" {
pub fn g_dbus_error_set_dbus_error(
error: *mut *mut GError,
dbus_error_name: *const gchar,
dbus_error_message: *const gchar,
format: *const gchar,
...
);
}
unsafe extern "C" {
pub fn g_dbus_error_set_dbus_error_valist(
error: *mut *mut GError,
dbus_error_name: *const gchar,
dbus_error_message: *const gchar,
format: *const gchar,
var_args: va_list,
);
}
unsafe extern "C" {
pub fn g_dbus_error_encode_gerror(error: *const GError) -> *mut gchar;
}
pub type GDBusInterfaceIface = _GDBusInterfaceIface;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GDBusInterfaceIface {
pub parent_iface: GTypeInterface,
pub get_info: ::std::option::Option<
unsafe extern "C" fn(interface_: *mut GDBusInterface) -> *mut GDBusInterfaceInfo,
>,
pub get_object: ::std::option::Option<
unsafe extern "C" fn(interface_: *mut GDBusInterface) -> *mut GDBusObject,
>,
pub set_object: ::std::option::Option<
unsafe extern "C" fn(interface_: *mut GDBusInterface, object: *mut GDBusObject),
>,
pub dup_object: ::std::option::Option<
unsafe extern "C" fn(interface_: *mut GDBusInterface) -> *mut GDBusObject,
>,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GDBusInterfaceIface"][::std::mem::size_of::<_GDBusInterfaceIface>() - 48usize];
["Alignment of _GDBusInterfaceIface"][::std::mem::align_of::<_GDBusInterfaceIface>() - 8usize];
["Offset of field: _GDBusInterfaceIface::parent_iface"]
[::std::mem::offset_of!(_GDBusInterfaceIface, parent_iface) - 0usize];
["Offset of field: _GDBusInterfaceIface::get_info"]
[::std::mem::offset_of!(_GDBusInterfaceIface, get_info) - 16usize];
["Offset of field: _GDBusInterfaceIface::get_object"]
[::std::mem::offset_of!(_GDBusInterfaceIface, get_object) - 24usize];
["Offset of field: _GDBusInterfaceIface::set_object"]
[::std::mem::offset_of!(_GDBusInterfaceIface, set_object) - 32usize];
["Offset of field: _GDBusInterfaceIface::dup_object"]
[::std::mem::offset_of!(_GDBusInterfaceIface, dup_object) - 40usize];
};
unsafe extern "C" {
pub fn g_dbus_interface_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_dbus_interface_get_info(interface_: *mut GDBusInterface) -> *mut GDBusInterfaceInfo;
}
unsafe extern "C" {
pub fn g_dbus_interface_get_object(interface_: *mut GDBusInterface) -> *mut GDBusObject;
}
unsafe extern "C" {
pub fn g_dbus_interface_set_object(interface_: *mut GDBusInterface, object: *mut GDBusObject);
}
unsafe extern "C" {
pub fn g_dbus_interface_dup_object(interface_: *mut GDBusInterface) -> *mut GDBusObject;
}
pub type GDBusInterfaceSkeletonClass = _GDBusInterfaceSkeletonClass;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GDBusInterfaceSkeletonPrivate {
_unused: [u8; 0],
}
pub type GDBusInterfaceSkeletonPrivate = _GDBusInterfaceSkeletonPrivate;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GDBusInterfaceSkeleton {
pub parent_instance: GObject,
pub priv_: *mut GDBusInterfaceSkeletonPrivate,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GDBusInterfaceSkeleton"][::std::mem::size_of::<_GDBusInterfaceSkeleton>() - 32usize];
["Alignment of _GDBusInterfaceSkeleton"]
[::std::mem::align_of::<_GDBusInterfaceSkeleton>() - 8usize];
["Offset of field: _GDBusInterfaceSkeleton::parent_instance"]
[::std::mem::offset_of!(_GDBusInterfaceSkeleton, parent_instance) - 0usize];
["Offset of field: _GDBusInterfaceSkeleton::priv_"]
[::std::mem::offset_of!(_GDBusInterfaceSkeleton, priv_) - 24usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GDBusInterfaceSkeletonClass {
pub parent_class: GObjectClass,
pub get_info: ::std::option::Option<
unsafe extern "C" fn(interface_: *mut GDBusInterfaceSkeleton) -> *mut GDBusInterfaceInfo,
>,
pub get_vtable: ::std::option::Option<
unsafe extern "C" fn(interface_: *mut GDBusInterfaceSkeleton) -> *mut GDBusInterfaceVTable,
>,
pub get_properties: ::std::option::Option<
unsafe extern "C" fn(interface_: *mut GDBusInterfaceSkeleton) -> *mut GVariant,
>,
pub flush: ::std::option::Option<unsafe extern "C" fn(interface_: *mut GDBusInterfaceSkeleton)>,
pub vfunc_padding: [gpointer; 8usize],
pub g_authorize_method: ::std::option::Option<
unsafe extern "C" fn(
interface_: *mut GDBusInterfaceSkeleton,
invocation: *mut GDBusMethodInvocation,
) -> gboolean,
>,
pub signal_padding: [gpointer; 8usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GDBusInterfaceSkeletonClass"]
[::std::mem::size_of::<_GDBusInterfaceSkeletonClass>() - 304usize];
["Alignment of _GDBusInterfaceSkeletonClass"]
[::std::mem::align_of::<_GDBusInterfaceSkeletonClass>() - 8usize];
["Offset of field: _GDBusInterfaceSkeletonClass::parent_class"]
[::std::mem::offset_of!(_GDBusInterfaceSkeletonClass, parent_class) - 0usize];
["Offset of field: _GDBusInterfaceSkeletonClass::get_info"]
[::std::mem::offset_of!(_GDBusInterfaceSkeletonClass, get_info) - 136usize];
["Offset of field: _GDBusInterfaceSkeletonClass::get_vtable"]
[::std::mem::offset_of!(_GDBusInterfaceSkeletonClass, get_vtable) - 144usize];
["Offset of field: _GDBusInterfaceSkeletonClass::get_properties"]
[::std::mem::offset_of!(_GDBusInterfaceSkeletonClass, get_properties) - 152usize];
["Offset of field: _GDBusInterfaceSkeletonClass::flush"]
[::std::mem::offset_of!(_GDBusInterfaceSkeletonClass, flush) - 160usize];
["Offset of field: _GDBusInterfaceSkeletonClass::vfunc_padding"]
[::std::mem::offset_of!(_GDBusInterfaceSkeletonClass, vfunc_padding) - 168usize];
["Offset of field: _GDBusInterfaceSkeletonClass::g_authorize_method"]
[::std::mem::offset_of!(_GDBusInterfaceSkeletonClass, g_authorize_method) - 232usize];
["Offset of field: _GDBusInterfaceSkeletonClass::signal_padding"]
[::std::mem::offset_of!(_GDBusInterfaceSkeletonClass, signal_padding) - 240usize];
};
unsafe extern "C" {
pub fn g_dbus_interface_skeleton_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_dbus_interface_skeleton_get_flags(
interface_: *mut GDBusInterfaceSkeleton,
) -> GDBusInterfaceSkeletonFlags;
}
unsafe extern "C" {
pub fn g_dbus_interface_skeleton_set_flags(
interface_: *mut GDBusInterfaceSkeleton,
flags: GDBusInterfaceSkeletonFlags,
);
}
unsafe extern "C" {
pub fn g_dbus_interface_skeleton_get_info(
interface_: *mut GDBusInterfaceSkeleton,
) -> *mut GDBusInterfaceInfo;
}
unsafe extern "C" {
pub fn g_dbus_interface_skeleton_get_vtable(
interface_: *mut GDBusInterfaceSkeleton,
) -> *mut GDBusInterfaceVTable;
}
unsafe extern "C" {
pub fn g_dbus_interface_skeleton_get_properties(
interface_: *mut GDBusInterfaceSkeleton,
) -> *mut GVariant;
}
unsafe extern "C" {
pub fn g_dbus_interface_skeleton_flush(interface_: *mut GDBusInterfaceSkeleton);
}
unsafe extern "C" {
pub fn g_dbus_interface_skeleton_export(
interface_: *mut GDBusInterfaceSkeleton,
connection: *mut GDBusConnection,
object_path: *const gchar,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_dbus_interface_skeleton_unexport(interface_: *mut GDBusInterfaceSkeleton);
}
unsafe extern "C" {
pub fn g_dbus_interface_skeleton_unexport_from_connection(
interface_: *mut GDBusInterfaceSkeleton,
connection: *mut GDBusConnection,
);
}
unsafe extern "C" {
pub fn g_dbus_interface_skeleton_get_connection(
interface_: *mut GDBusInterfaceSkeleton,
) -> *mut GDBusConnection;
}
unsafe extern "C" {
pub fn g_dbus_interface_skeleton_get_connections(
interface_: *mut GDBusInterfaceSkeleton,
) -> *mut GList;
}
unsafe extern "C" {
pub fn g_dbus_interface_skeleton_has_connection(
interface_: *mut GDBusInterfaceSkeleton,
connection: *mut GDBusConnection,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_dbus_interface_skeleton_get_object_path(
interface_: *mut GDBusInterfaceSkeleton,
) -> *const gchar;
}
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GDBusAnnotationInfo {
pub ref_count: gint,
pub key: *mut gchar,
pub value: *mut gchar,
pub annotations: *mut *mut GDBusAnnotationInfo,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GDBusAnnotationInfo"][::std::mem::size_of::<_GDBusAnnotationInfo>() - 32usize];
["Alignment of _GDBusAnnotationInfo"][::std::mem::align_of::<_GDBusAnnotationInfo>() - 8usize];
["Offset of field: _GDBusAnnotationInfo::ref_count"]
[::std::mem::offset_of!(_GDBusAnnotationInfo, ref_count) - 0usize];
["Offset of field: _GDBusAnnotationInfo::key"]
[::std::mem::offset_of!(_GDBusAnnotationInfo, key) - 8usize];
["Offset of field: _GDBusAnnotationInfo::value"]
[::std::mem::offset_of!(_GDBusAnnotationInfo, value) - 16usize];
["Offset of field: _GDBusAnnotationInfo::annotations"]
[::std::mem::offset_of!(_GDBusAnnotationInfo, annotations) - 24usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GDBusArgInfo {
pub ref_count: gint,
pub name: *mut gchar,
pub signature: *mut gchar,
pub annotations: *mut *mut GDBusAnnotationInfo,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GDBusArgInfo"][::std::mem::size_of::<_GDBusArgInfo>() - 32usize];
["Alignment of _GDBusArgInfo"][::std::mem::align_of::<_GDBusArgInfo>() - 8usize];
["Offset of field: _GDBusArgInfo::ref_count"]
[::std::mem::offset_of!(_GDBusArgInfo, ref_count) - 0usize];
["Offset of field: _GDBusArgInfo::name"][::std::mem::offset_of!(_GDBusArgInfo, name) - 8usize];
["Offset of field: _GDBusArgInfo::signature"]
[::std::mem::offset_of!(_GDBusArgInfo, signature) - 16usize];
["Offset of field: _GDBusArgInfo::annotations"]
[::std::mem::offset_of!(_GDBusArgInfo, annotations) - 24usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GDBusMethodInfo {
pub ref_count: gint,
pub name: *mut gchar,
pub in_args: *mut *mut GDBusArgInfo,
pub out_args: *mut *mut GDBusArgInfo,
pub annotations: *mut *mut GDBusAnnotationInfo,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GDBusMethodInfo"][::std::mem::size_of::<_GDBusMethodInfo>() - 40usize];
["Alignment of _GDBusMethodInfo"][::std::mem::align_of::<_GDBusMethodInfo>() - 8usize];
["Offset of field: _GDBusMethodInfo::ref_count"]
[::std::mem::offset_of!(_GDBusMethodInfo, ref_count) - 0usize];
["Offset of field: _GDBusMethodInfo::name"]
[::std::mem::offset_of!(_GDBusMethodInfo, name) - 8usize];
["Offset of field: _GDBusMethodInfo::in_args"]
[::std::mem::offset_of!(_GDBusMethodInfo, in_args) - 16usize];
["Offset of field: _GDBusMethodInfo::out_args"]
[::std::mem::offset_of!(_GDBusMethodInfo, out_args) - 24usize];
["Offset of field: _GDBusMethodInfo::annotations"]
[::std::mem::offset_of!(_GDBusMethodInfo, annotations) - 32usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GDBusSignalInfo {
pub ref_count: gint,
pub name: *mut gchar,
pub args: *mut *mut GDBusArgInfo,
pub annotations: *mut *mut GDBusAnnotationInfo,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GDBusSignalInfo"][::std::mem::size_of::<_GDBusSignalInfo>() - 32usize];
["Alignment of _GDBusSignalInfo"][::std::mem::align_of::<_GDBusSignalInfo>() - 8usize];
["Offset of field: _GDBusSignalInfo::ref_count"]
[::std::mem::offset_of!(_GDBusSignalInfo, ref_count) - 0usize];
["Offset of field: _GDBusSignalInfo::name"]
[::std::mem::offset_of!(_GDBusSignalInfo, name) - 8usize];
["Offset of field: _GDBusSignalInfo::args"]
[::std::mem::offset_of!(_GDBusSignalInfo, args) - 16usize];
["Offset of field: _GDBusSignalInfo::annotations"]
[::std::mem::offset_of!(_GDBusSignalInfo, annotations) - 24usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GDBusPropertyInfo {
pub ref_count: gint,
pub name: *mut gchar,
pub signature: *mut gchar,
pub flags: GDBusPropertyInfoFlags,
pub annotations: *mut *mut GDBusAnnotationInfo,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GDBusPropertyInfo"][::std::mem::size_of::<_GDBusPropertyInfo>() - 40usize];
["Alignment of _GDBusPropertyInfo"][::std::mem::align_of::<_GDBusPropertyInfo>() - 8usize];
["Offset of field: _GDBusPropertyInfo::ref_count"]
[::std::mem::offset_of!(_GDBusPropertyInfo, ref_count) - 0usize];
["Offset of field: _GDBusPropertyInfo::name"]
[::std::mem::offset_of!(_GDBusPropertyInfo, name) - 8usize];
["Offset of field: _GDBusPropertyInfo::signature"]
[::std::mem::offset_of!(_GDBusPropertyInfo, signature) - 16usize];
["Offset of field: _GDBusPropertyInfo::flags"]
[::std::mem::offset_of!(_GDBusPropertyInfo, flags) - 24usize];
["Offset of field: _GDBusPropertyInfo::annotations"]
[::std::mem::offset_of!(_GDBusPropertyInfo, annotations) - 32usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GDBusInterfaceInfo {
pub ref_count: gint,
pub name: *mut gchar,
pub methods: *mut *mut GDBusMethodInfo,
pub signals: *mut *mut GDBusSignalInfo,
pub properties: *mut *mut GDBusPropertyInfo,
pub annotations: *mut *mut GDBusAnnotationInfo,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GDBusInterfaceInfo"][::std::mem::size_of::<_GDBusInterfaceInfo>() - 48usize];
["Alignment of _GDBusInterfaceInfo"][::std::mem::align_of::<_GDBusInterfaceInfo>() - 8usize];
["Offset of field: _GDBusInterfaceInfo::ref_count"]
[::std::mem::offset_of!(_GDBusInterfaceInfo, ref_count) - 0usize];
["Offset of field: _GDBusInterfaceInfo::name"]
[::std::mem::offset_of!(_GDBusInterfaceInfo, name) - 8usize];
["Offset of field: _GDBusInterfaceInfo::methods"]
[::std::mem::offset_of!(_GDBusInterfaceInfo, methods) - 16usize];
["Offset of field: _GDBusInterfaceInfo::signals"]
[::std::mem::offset_of!(_GDBusInterfaceInfo, signals) - 24usize];
["Offset of field: _GDBusInterfaceInfo::properties"]
[::std::mem::offset_of!(_GDBusInterfaceInfo, properties) - 32usize];
["Offset of field: _GDBusInterfaceInfo::annotations"]
[::std::mem::offset_of!(_GDBusInterfaceInfo, annotations) - 40usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GDBusNodeInfo {
pub ref_count: gint,
pub path: *mut gchar,
pub interfaces: *mut *mut GDBusInterfaceInfo,
pub nodes: *mut *mut GDBusNodeInfo,
pub annotations: *mut *mut GDBusAnnotationInfo,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GDBusNodeInfo"][::std::mem::size_of::<_GDBusNodeInfo>() - 40usize];
["Alignment of _GDBusNodeInfo"][::std::mem::align_of::<_GDBusNodeInfo>() - 8usize];
["Offset of field: _GDBusNodeInfo::ref_count"]
[::std::mem::offset_of!(_GDBusNodeInfo, ref_count) - 0usize];
["Offset of field: _GDBusNodeInfo::path"]
[::std::mem::offset_of!(_GDBusNodeInfo, path) - 8usize];
["Offset of field: _GDBusNodeInfo::interfaces"]
[::std::mem::offset_of!(_GDBusNodeInfo, interfaces) - 16usize];
["Offset of field: _GDBusNodeInfo::nodes"]
[::std::mem::offset_of!(_GDBusNodeInfo, nodes) - 24usize];
["Offset of field: _GDBusNodeInfo::annotations"]
[::std::mem::offset_of!(_GDBusNodeInfo, annotations) - 32usize];
};
unsafe extern "C" {
pub fn g_dbus_annotation_info_lookup(
annotations: *mut *mut GDBusAnnotationInfo,
name: *const gchar,
) -> *const gchar;
}
unsafe extern "C" {
pub fn g_dbus_interface_info_lookup_method(
info: *mut GDBusInterfaceInfo,
name: *const gchar,
) -> *mut GDBusMethodInfo;
}
unsafe extern "C" {
pub fn g_dbus_interface_info_lookup_signal(
info: *mut GDBusInterfaceInfo,
name: *const gchar,
) -> *mut GDBusSignalInfo;
}
unsafe extern "C" {
pub fn g_dbus_interface_info_lookup_property(
info: *mut GDBusInterfaceInfo,
name: *const gchar,
) -> *mut GDBusPropertyInfo;
}
unsafe extern "C" {
pub fn g_dbus_interface_info_cache_build(info: *mut GDBusInterfaceInfo);
}
unsafe extern "C" {
pub fn g_dbus_interface_info_cache_release(info: *mut GDBusInterfaceInfo);
}
unsafe extern "C" {
pub fn g_dbus_interface_info_generate_xml(
info: *mut GDBusInterfaceInfo,
indent: guint,
string_builder: *mut GString,
);
}
unsafe extern "C" {
pub fn g_dbus_node_info_new_for_xml(
xml_data: *const gchar,
error: *mut *mut GError,
) -> *mut GDBusNodeInfo;
}
unsafe extern "C" {
pub fn g_dbus_node_info_lookup_interface(
info: *mut GDBusNodeInfo,
name: *const gchar,
) -> *mut GDBusInterfaceInfo;
}
unsafe extern "C" {
pub fn g_dbus_node_info_generate_xml(
info: *mut GDBusNodeInfo,
indent: guint,
string_builder: *mut GString,
);
}
unsafe extern "C" {
pub fn g_dbus_node_info_ref(info: *mut GDBusNodeInfo) -> *mut GDBusNodeInfo;
}
unsafe extern "C" {
pub fn g_dbus_interface_info_ref(info: *mut GDBusInterfaceInfo) -> *mut GDBusInterfaceInfo;
}
unsafe extern "C" {
pub fn g_dbus_method_info_ref(info: *mut GDBusMethodInfo) -> *mut GDBusMethodInfo;
}
unsafe extern "C" {
pub fn g_dbus_signal_info_ref(info: *mut GDBusSignalInfo) -> *mut GDBusSignalInfo;
}
unsafe extern "C" {
pub fn g_dbus_property_info_ref(info: *mut GDBusPropertyInfo) -> *mut GDBusPropertyInfo;
}
unsafe extern "C" {
pub fn g_dbus_arg_info_ref(info: *mut GDBusArgInfo) -> *mut GDBusArgInfo;
}
unsafe extern "C" {
pub fn g_dbus_annotation_info_ref(info: *mut GDBusAnnotationInfo) -> *mut GDBusAnnotationInfo;
}
unsafe extern "C" {
pub fn g_dbus_node_info_unref(info: *mut GDBusNodeInfo);
}
unsafe extern "C" {
pub fn g_dbus_interface_info_unref(info: *mut GDBusInterfaceInfo);
}
unsafe extern "C" {
pub fn g_dbus_method_info_unref(info: *mut GDBusMethodInfo);
}
unsafe extern "C" {
pub fn g_dbus_signal_info_unref(info: *mut GDBusSignalInfo);
}
unsafe extern "C" {
pub fn g_dbus_property_info_unref(info: *mut GDBusPropertyInfo);
}
unsafe extern "C" {
pub fn g_dbus_arg_info_unref(info: *mut GDBusArgInfo);
}
unsafe extern "C" {
pub fn g_dbus_annotation_info_unref(info: *mut GDBusAnnotationInfo);
}
unsafe extern "C" {
pub fn g_dbus_node_info_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_dbus_interface_info_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_dbus_method_info_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_dbus_signal_info_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_dbus_property_info_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_dbus_arg_info_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_dbus_annotation_info_get_type() -> GType;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GDBusMenuModel {
_unused: [u8; 0],
}
pub type GDBusMenuModel = _GDBusMenuModel;
unsafe extern "C" {
pub fn g_dbus_menu_model_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_dbus_menu_model_get(
connection: *mut GDBusConnection,
bus_name: *const gchar,
object_path: *const gchar,
) -> *mut GDBusMenuModel;
}
unsafe extern "C" {
pub fn g_dbus_message_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_dbus_message_new() -> *mut GDBusMessage;
}
unsafe extern "C" {
pub fn g_dbus_message_new_signal(
path: *const gchar,
interface_: *const gchar,
signal: *const gchar,
) -> *mut GDBusMessage;
}
unsafe extern "C" {
pub fn g_dbus_message_new_method_call(
name: *const gchar,
path: *const gchar,
interface_: *const gchar,
method: *const gchar,
) -> *mut GDBusMessage;
}
unsafe extern "C" {
pub fn g_dbus_message_new_method_reply(
method_call_message: *mut GDBusMessage,
) -> *mut GDBusMessage;
}
unsafe extern "C" {
pub fn g_dbus_message_new_method_error(
method_call_message: *mut GDBusMessage,
error_name: *const gchar,
error_message_format: *const gchar,
...
) -> *mut GDBusMessage;
}
unsafe extern "C" {
pub fn g_dbus_message_new_method_error_valist(
method_call_message: *mut GDBusMessage,
error_name: *const gchar,
error_message_format: *const gchar,
var_args: va_list,
) -> *mut GDBusMessage;
}
unsafe extern "C" {
pub fn g_dbus_message_new_method_error_literal(
method_call_message: *mut GDBusMessage,
error_name: *const gchar,
error_message: *const gchar,
) -> *mut GDBusMessage;
}
unsafe extern "C" {
pub fn g_dbus_message_print(message: *mut GDBusMessage, indent: guint) -> *mut gchar;
}
unsafe extern "C" {
pub fn g_dbus_message_get_locked(message: *mut GDBusMessage) -> gboolean;
}
unsafe extern "C" {
pub fn g_dbus_message_lock(message: *mut GDBusMessage);
}
unsafe extern "C" {
pub fn g_dbus_message_copy(
message: *mut GDBusMessage,
error: *mut *mut GError,
) -> *mut GDBusMessage;
}
unsafe extern "C" {
pub fn g_dbus_message_get_byte_order(message: *mut GDBusMessage) -> GDBusMessageByteOrder;
}
unsafe extern "C" {
pub fn g_dbus_message_set_byte_order(
message: *mut GDBusMessage,
byte_order: GDBusMessageByteOrder,
);
}
unsafe extern "C" {
pub fn g_dbus_message_get_message_type(message: *mut GDBusMessage) -> GDBusMessageType;
}
unsafe extern "C" {
pub fn g_dbus_message_set_message_type(message: *mut GDBusMessage, type_: GDBusMessageType);
}
unsafe extern "C" {
pub fn g_dbus_message_get_flags(message: *mut GDBusMessage) -> GDBusMessageFlags;
}
unsafe extern "C" {
pub fn g_dbus_message_set_flags(message: *mut GDBusMessage, flags: GDBusMessageFlags);
}
unsafe extern "C" {
pub fn g_dbus_message_get_serial(message: *mut GDBusMessage) -> guint32;
}
unsafe extern "C" {
pub fn g_dbus_message_set_serial(message: *mut GDBusMessage, serial: guint32);
}
unsafe extern "C" {
pub fn g_dbus_message_get_header(
message: *mut GDBusMessage,
header_field: GDBusMessageHeaderField,
) -> *mut GVariant;
}
unsafe extern "C" {
pub fn g_dbus_message_set_header(
message: *mut GDBusMessage,
header_field: GDBusMessageHeaderField,
value: *mut GVariant,
);
}
unsafe extern "C" {
pub fn g_dbus_message_get_header_fields(message: *mut GDBusMessage) -> *mut guchar;
}
unsafe extern "C" {
pub fn g_dbus_message_get_body(message: *mut GDBusMessage) -> *mut GVariant;
}
unsafe extern "C" {
pub fn g_dbus_message_set_body(message: *mut GDBusMessage, body: *mut GVariant);
}
unsafe extern "C" {
pub fn g_dbus_message_get_unix_fd_list(message: *mut GDBusMessage) -> *mut GUnixFDList;
}
unsafe extern "C" {
pub fn g_dbus_message_set_unix_fd_list(message: *mut GDBusMessage, fd_list: *mut GUnixFDList);
}
unsafe extern "C" {
pub fn g_dbus_message_get_reply_serial(message: *mut GDBusMessage) -> guint32;
}
unsafe extern "C" {
pub fn g_dbus_message_set_reply_serial(message: *mut GDBusMessage, value: guint32);
}
unsafe extern "C" {
pub fn g_dbus_message_get_interface(message: *mut GDBusMessage) -> *const gchar;
}
unsafe extern "C" {
pub fn g_dbus_message_set_interface(message: *mut GDBusMessage, value: *const gchar);
}
unsafe extern "C" {
pub fn g_dbus_message_get_member(message: *mut GDBusMessage) -> *const gchar;
}
unsafe extern "C" {
pub fn g_dbus_message_set_member(message: *mut GDBusMessage, value: *const gchar);
}
unsafe extern "C" {
pub fn g_dbus_message_get_path(message: *mut GDBusMessage) -> *const gchar;
}
unsafe extern "C" {
pub fn g_dbus_message_set_path(message: *mut GDBusMessage, value: *const gchar);
}
unsafe extern "C" {
pub fn g_dbus_message_get_sender(message: *mut GDBusMessage) -> *const gchar;
}
unsafe extern "C" {
pub fn g_dbus_message_set_sender(message: *mut GDBusMessage, value: *const gchar);
}
unsafe extern "C" {
pub fn g_dbus_message_get_destination(message: *mut GDBusMessage) -> *const gchar;
}
unsafe extern "C" {
pub fn g_dbus_message_set_destination(message: *mut GDBusMessage, value: *const gchar);
}
unsafe extern "C" {
pub fn g_dbus_message_get_error_name(message: *mut GDBusMessage) -> *const gchar;
}
unsafe extern "C" {
pub fn g_dbus_message_set_error_name(message: *mut GDBusMessage, value: *const gchar);
}
unsafe extern "C" {
pub fn g_dbus_message_get_signature(message: *mut GDBusMessage) -> *const gchar;
}
unsafe extern "C" {
pub fn g_dbus_message_set_signature(message: *mut GDBusMessage, value: *const gchar);
}
unsafe extern "C" {
pub fn g_dbus_message_get_num_unix_fds(message: *mut GDBusMessage) -> guint32;
}
unsafe extern "C" {
pub fn g_dbus_message_set_num_unix_fds(message: *mut GDBusMessage, value: guint32);
}
unsafe extern "C" {
pub fn g_dbus_message_get_arg0(message: *mut GDBusMessage) -> *const gchar;
}
unsafe extern "C" {
pub fn g_dbus_message_get_arg0_path(message: *mut GDBusMessage) -> *const gchar;
}
unsafe extern "C" {
pub fn g_dbus_message_new_from_blob(
blob: *mut guchar,
blob_len: gsize,
capabilities: GDBusCapabilityFlags,
error: *mut *mut GError,
) -> *mut GDBusMessage;
}
unsafe extern "C" {
pub fn g_dbus_message_bytes_needed(
blob: *mut guchar,
blob_len: gsize,
error: *mut *mut GError,
) -> gssize;
}
unsafe extern "C" {
pub fn g_dbus_message_to_blob(
message: *mut GDBusMessage,
out_size: *mut gsize,
capabilities: GDBusCapabilityFlags,
error: *mut *mut GError,
) -> *mut guchar;
}
unsafe extern "C" {
pub fn g_dbus_message_to_gerror(
message: *mut GDBusMessage,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_dbus_method_invocation_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_dbus_method_invocation_get_sender(
invocation: *mut GDBusMethodInvocation,
) -> *const gchar;
}
unsafe extern "C" {
pub fn g_dbus_method_invocation_get_object_path(
invocation: *mut GDBusMethodInvocation,
) -> *const gchar;
}
unsafe extern "C" {
pub fn g_dbus_method_invocation_get_interface_name(
invocation: *mut GDBusMethodInvocation,
) -> *const gchar;
}
unsafe extern "C" {
pub fn g_dbus_method_invocation_get_method_name(
invocation: *mut GDBusMethodInvocation,
) -> *const gchar;
}
unsafe extern "C" {
pub fn g_dbus_method_invocation_get_method_info(
invocation: *mut GDBusMethodInvocation,
) -> *const GDBusMethodInfo;
}
unsafe extern "C" {
pub fn g_dbus_method_invocation_get_property_info(
invocation: *mut GDBusMethodInvocation,
) -> *const GDBusPropertyInfo;
}
unsafe extern "C" {
pub fn g_dbus_method_invocation_get_connection(
invocation: *mut GDBusMethodInvocation,
) -> *mut GDBusConnection;
}
unsafe extern "C" {
pub fn g_dbus_method_invocation_get_message(
invocation: *mut GDBusMethodInvocation,
) -> *mut GDBusMessage;
}
unsafe extern "C" {
pub fn g_dbus_method_invocation_get_parameters(
invocation: *mut GDBusMethodInvocation,
) -> *mut GVariant;
}
unsafe extern "C" {
pub fn g_dbus_method_invocation_get_user_data(
invocation: *mut GDBusMethodInvocation,
) -> gpointer;
}
unsafe extern "C" {
pub fn g_dbus_method_invocation_return_value(
invocation: *mut GDBusMethodInvocation,
parameters: *mut GVariant,
);
}
unsafe extern "C" {
pub fn g_dbus_method_invocation_return_value_with_unix_fd_list(
invocation: *mut GDBusMethodInvocation,
parameters: *mut GVariant,
fd_list: *mut GUnixFDList,
);
}
unsafe extern "C" {
pub fn g_dbus_method_invocation_return_error(
invocation: *mut GDBusMethodInvocation,
domain: GQuark,
code: gint,
format: *const gchar,
...
);
}
unsafe extern "C" {
pub fn g_dbus_method_invocation_return_error_valist(
invocation: *mut GDBusMethodInvocation,
domain: GQuark,
code: gint,
format: *const gchar,
var_args: va_list,
);
}
unsafe extern "C" {
pub fn g_dbus_method_invocation_return_error_literal(
invocation: *mut GDBusMethodInvocation,
domain: GQuark,
code: gint,
message: *const gchar,
);
}
unsafe extern "C" {
pub fn g_dbus_method_invocation_return_gerror(
invocation: *mut GDBusMethodInvocation,
error: *const GError,
);
}
unsafe extern "C" {
pub fn g_dbus_method_invocation_take_error(
invocation: *mut GDBusMethodInvocation,
error: *mut GError,
);
}
unsafe extern "C" {
pub fn g_dbus_method_invocation_return_dbus_error(
invocation: *mut GDBusMethodInvocation,
error_name: *const gchar,
error_message: *const gchar,
);
}
pub type GBusAcquiredCallback = ::std::option::Option<
unsafe extern "C" fn(connection: *mut GDBusConnection, name: *const gchar, user_data: gpointer),
>;
pub type GBusNameAcquiredCallback = ::std::option::Option<
unsafe extern "C" fn(connection: *mut GDBusConnection, name: *const gchar, user_data: gpointer),
>;
pub type GBusNameLostCallback = ::std::option::Option<
unsafe extern "C" fn(connection: *mut GDBusConnection, name: *const gchar, user_data: gpointer),
>;
unsafe extern "C" {
pub fn g_bus_own_name(
bus_type: GBusType,
name: *const gchar,
flags: GBusNameOwnerFlags,
bus_acquired_handler: GBusAcquiredCallback,
name_acquired_handler: GBusNameAcquiredCallback,
name_lost_handler: GBusNameLostCallback,
user_data: gpointer,
user_data_free_func: GDestroyNotify,
) -> guint;
}
unsafe extern "C" {
pub fn g_bus_own_name_on_connection(
connection: *mut GDBusConnection,
name: *const gchar,
flags: GBusNameOwnerFlags,
name_acquired_handler: GBusNameAcquiredCallback,
name_lost_handler: GBusNameLostCallback,
user_data: gpointer,
user_data_free_func: GDestroyNotify,
) -> guint;
}
unsafe extern "C" {
pub fn g_bus_own_name_with_closures(
bus_type: GBusType,
name: *const gchar,
flags: GBusNameOwnerFlags,
bus_acquired_closure: *mut GClosure,
name_acquired_closure: *mut GClosure,
name_lost_closure: *mut GClosure,
) -> guint;
}
unsafe extern "C" {
pub fn g_bus_own_name_on_connection_with_closures(
connection: *mut GDBusConnection,
name: *const gchar,
flags: GBusNameOwnerFlags,
name_acquired_closure: *mut GClosure,
name_lost_closure: *mut GClosure,
) -> guint;
}
unsafe extern "C" {
pub fn g_bus_unown_name(owner_id: guint);
}
pub type GBusNameAppearedCallback = ::std::option::Option<
unsafe extern "C" fn(
connection: *mut GDBusConnection,
name: *const gchar,
name_owner: *const gchar,
user_data: gpointer,
),
>;
pub type GBusNameVanishedCallback = ::std::option::Option<
unsafe extern "C" fn(connection: *mut GDBusConnection, name: *const gchar, user_data: gpointer),
>;
unsafe extern "C" {
pub fn g_bus_watch_name(
bus_type: GBusType,
name: *const gchar,
flags: GBusNameWatcherFlags,
name_appeared_handler: GBusNameAppearedCallback,
name_vanished_handler: GBusNameVanishedCallback,
user_data: gpointer,
user_data_free_func: GDestroyNotify,
) -> guint;
}
unsafe extern "C" {
pub fn g_bus_watch_name_on_connection(
connection: *mut GDBusConnection,
name: *const gchar,
flags: GBusNameWatcherFlags,
name_appeared_handler: GBusNameAppearedCallback,
name_vanished_handler: GBusNameVanishedCallback,
user_data: gpointer,
user_data_free_func: GDestroyNotify,
) -> guint;
}
unsafe extern "C" {
pub fn g_bus_watch_name_with_closures(
bus_type: GBusType,
name: *const gchar,
flags: GBusNameWatcherFlags,
name_appeared_closure: *mut GClosure,
name_vanished_closure: *mut GClosure,
) -> guint;
}
unsafe extern "C" {
pub fn g_bus_watch_name_on_connection_with_closures(
connection: *mut GDBusConnection,
name: *const gchar,
flags: GBusNameWatcherFlags,
name_appeared_closure: *mut GClosure,
name_vanished_closure: *mut GClosure,
) -> guint;
}
unsafe extern "C" {
pub fn g_bus_unwatch_name(watcher_id: guint);
}
pub type GDBusObjectIface = _GDBusObjectIface;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GDBusObjectIface {
pub parent_iface: GTypeInterface,
pub get_object_path:
::std::option::Option<unsafe extern "C" fn(object: *mut GDBusObject) -> *const gchar>,
pub get_interfaces:
::std::option::Option<unsafe extern "C" fn(object: *mut GDBusObject) -> *mut GList>,
pub get_interface: ::std::option::Option<
unsafe extern "C" fn(
object: *mut GDBusObject,
interface_name: *const gchar,
) -> *mut GDBusInterface,
>,
pub interface_added: ::std::option::Option<
unsafe extern "C" fn(object: *mut GDBusObject, interface_: *mut GDBusInterface),
>,
pub interface_removed: ::std::option::Option<
unsafe extern "C" fn(object: *mut GDBusObject, interface_: *mut GDBusInterface),
>,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GDBusObjectIface"][::std::mem::size_of::<_GDBusObjectIface>() - 56usize];
["Alignment of _GDBusObjectIface"][::std::mem::align_of::<_GDBusObjectIface>() - 8usize];
["Offset of field: _GDBusObjectIface::parent_iface"]
[::std::mem::offset_of!(_GDBusObjectIface, parent_iface) - 0usize];
["Offset of field: _GDBusObjectIface::get_object_path"]
[::std::mem::offset_of!(_GDBusObjectIface, get_object_path) - 16usize];
["Offset of field: _GDBusObjectIface::get_interfaces"]
[::std::mem::offset_of!(_GDBusObjectIface, get_interfaces) - 24usize];
["Offset of field: _GDBusObjectIface::get_interface"]
[::std::mem::offset_of!(_GDBusObjectIface, get_interface) - 32usize];
["Offset of field: _GDBusObjectIface::interface_added"]
[::std::mem::offset_of!(_GDBusObjectIface, interface_added) - 40usize];
["Offset of field: _GDBusObjectIface::interface_removed"]
[::std::mem::offset_of!(_GDBusObjectIface, interface_removed) - 48usize];
};
unsafe extern "C" {
pub fn g_dbus_object_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_dbus_object_get_object_path(object: *mut GDBusObject) -> *const gchar;
}
unsafe extern "C" {
pub fn g_dbus_object_get_interfaces(object: *mut GDBusObject) -> *mut GList;
}
unsafe extern "C" {
pub fn g_dbus_object_get_interface(
object: *mut GDBusObject,
interface_name: *const gchar,
) -> *mut GDBusInterface;
}
pub type GDBusObjectManagerIface = _GDBusObjectManagerIface;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GDBusObjectManagerIface {
pub parent_iface: GTypeInterface,
pub get_object_path: ::std::option::Option<
unsafe extern "C" fn(manager: *mut GDBusObjectManager) -> *const gchar,
>,
pub get_objects:
::std::option::Option<unsafe extern "C" fn(manager: *mut GDBusObjectManager) -> *mut GList>,
pub get_object: ::std::option::Option<
unsafe extern "C" fn(
manager: *mut GDBusObjectManager,
object_path: *const gchar,
) -> *mut GDBusObject,
>,
pub get_interface: ::std::option::Option<
unsafe extern "C" fn(
manager: *mut GDBusObjectManager,
object_path: *const gchar,
interface_name: *const gchar,
) -> *mut GDBusInterface,
>,
pub object_added: ::std::option::Option<
unsafe extern "C" fn(manager: *mut GDBusObjectManager, object: *mut GDBusObject),
>,
pub object_removed: ::std::option::Option<
unsafe extern "C" fn(manager: *mut GDBusObjectManager, object: *mut GDBusObject),
>,
pub interface_added: ::std::option::Option<
unsafe extern "C" fn(
manager: *mut GDBusObjectManager,
object: *mut GDBusObject,
interface_: *mut GDBusInterface,
),
>,
pub interface_removed: ::std::option::Option<
unsafe extern "C" fn(
manager: *mut GDBusObjectManager,
object: *mut GDBusObject,
interface_: *mut GDBusInterface,
),
>,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GDBusObjectManagerIface"]
[::std::mem::size_of::<_GDBusObjectManagerIface>() - 80usize];
["Alignment of _GDBusObjectManagerIface"]
[::std::mem::align_of::<_GDBusObjectManagerIface>() - 8usize];
["Offset of field: _GDBusObjectManagerIface::parent_iface"]
[::std::mem::offset_of!(_GDBusObjectManagerIface, parent_iface) - 0usize];
["Offset of field: _GDBusObjectManagerIface::get_object_path"]
[::std::mem::offset_of!(_GDBusObjectManagerIface, get_object_path) - 16usize];
["Offset of field: _GDBusObjectManagerIface::get_objects"]
[::std::mem::offset_of!(_GDBusObjectManagerIface, get_objects) - 24usize];
["Offset of field: _GDBusObjectManagerIface::get_object"]
[::std::mem::offset_of!(_GDBusObjectManagerIface, get_object) - 32usize];
["Offset of field: _GDBusObjectManagerIface::get_interface"]
[::std::mem::offset_of!(_GDBusObjectManagerIface, get_interface) - 40usize];
["Offset of field: _GDBusObjectManagerIface::object_added"]
[::std::mem::offset_of!(_GDBusObjectManagerIface, object_added) - 48usize];
["Offset of field: _GDBusObjectManagerIface::object_removed"]
[::std::mem::offset_of!(_GDBusObjectManagerIface, object_removed) - 56usize];
["Offset of field: _GDBusObjectManagerIface::interface_added"]
[::std::mem::offset_of!(_GDBusObjectManagerIface, interface_added) - 64usize];
["Offset of field: _GDBusObjectManagerIface::interface_removed"]
[::std::mem::offset_of!(_GDBusObjectManagerIface, interface_removed) - 72usize];
};
unsafe extern "C" {
pub fn g_dbus_object_manager_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_dbus_object_manager_get_object_path(manager: *mut GDBusObjectManager) -> *const gchar;
}
unsafe extern "C" {
pub fn g_dbus_object_manager_get_objects(manager: *mut GDBusObjectManager) -> *mut GList;
}
unsafe extern "C" {
pub fn g_dbus_object_manager_get_object(
manager: *mut GDBusObjectManager,
object_path: *const gchar,
) -> *mut GDBusObject;
}
unsafe extern "C" {
pub fn g_dbus_object_manager_get_interface(
manager: *mut GDBusObjectManager,
object_path: *const gchar,
interface_name: *const gchar,
) -> *mut GDBusInterface;
}
pub type GDBusObjectManagerClientClass = _GDBusObjectManagerClientClass;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GDBusObjectManagerClientPrivate {
_unused: [u8; 0],
}
pub type GDBusObjectManagerClientPrivate = _GDBusObjectManagerClientPrivate;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GDBusObjectManagerClient {
pub parent_instance: GObject,
pub priv_: *mut GDBusObjectManagerClientPrivate,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GDBusObjectManagerClient"]
[::std::mem::size_of::<_GDBusObjectManagerClient>() - 32usize];
["Alignment of _GDBusObjectManagerClient"]
[::std::mem::align_of::<_GDBusObjectManagerClient>() - 8usize];
["Offset of field: _GDBusObjectManagerClient::parent_instance"]
[::std::mem::offset_of!(_GDBusObjectManagerClient, parent_instance) - 0usize];
["Offset of field: _GDBusObjectManagerClient::priv_"]
[::std::mem::offset_of!(_GDBusObjectManagerClient, priv_) - 24usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GDBusObjectManagerClientClass {
pub parent_class: GObjectClass,
pub interface_proxy_signal: ::std::option::Option<
unsafe extern "C" fn(
manager: *mut GDBusObjectManagerClient,
object_proxy: *mut GDBusObjectProxy,
interface_proxy: *mut GDBusProxy,
sender_name: *const gchar,
signal_name: *const gchar,
parameters: *mut GVariant,
),
>,
pub interface_proxy_properties_changed: ::std::option::Option<
unsafe extern "C" fn(
manager: *mut GDBusObjectManagerClient,
object_proxy: *mut GDBusObjectProxy,
interface_proxy: *mut GDBusProxy,
changed_properties: *mut GVariant,
invalidated_properties: *const *const gchar,
),
>,
pub padding: [gpointer; 8usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GDBusObjectManagerClientClass"]
[::std::mem::size_of::<_GDBusObjectManagerClientClass>() - 216usize];
["Alignment of _GDBusObjectManagerClientClass"]
[::std::mem::align_of::<_GDBusObjectManagerClientClass>() - 8usize];
["Offset of field: _GDBusObjectManagerClientClass::parent_class"]
[::std::mem::offset_of!(_GDBusObjectManagerClientClass, parent_class) - 0usize];
["Offset of field: _GDBusObjectManagerClientClass::interface_proxy_signal"]
[::std::mem::offset_of!(_GDBusObjectManagerClientClass, interface_proxy_signal) - 136usize];
["Offset of field: _GDBusObjectManagerClientClass::interface_proxy_properties_changed"][::std::mem::offset_of!(
_GDBusObjectManagerClientClass,
interface_proxy_properties_changed
)
- 144usize];
["Offset of field: _GDBusObjectManagerClientClass::padding"]
[::std::mem::offset_of!(_GDBusObjectManagerClientClass, padding) - 152usize];
};
unsafe extern "C" {
pub fn g_dbus_object_manager_client_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_dbus_object_manager_client_new(
connection: *mut GDBusConnection,
flags: GDBusObjectManagerClientFlags,
name: *const gchar,
object_path: *const gchar,
get_proxy_type_func: GDBusProxyTypeFunc,
get_proxy_type_user_data: gpointer,
get_proxy_type_destroy_notify: GDestroyNotify,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
);
}
unsafe extern "C" {
pub fn g_dbus_object_manager_client_new_finish(
res: *mut GAsyncResult,
error: *mut *mut GError,
) -> *mut GDBusObjectManager;
}
unsafe extern "C" {
pub fn g_dbus_object_manager_client_new_sync(
connection: *mut GDBusConnection,
flags: GDBusObjectManagerClientFlags,
name: *const gchar,
object_path: *const gchar,
get_proxy_type_func: GDBusProxyTypeFunc,
get_proxy_type_user_data: gpointer,
get_proxy_type_destroy_notify: GDestroyNotify,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> *mut GDBusObjectManager;
}
unsafe extern "C" {
pub fn g_dbus_object_manager_client_new_for_bus(
bus_type: GBusType,
flags: GDBusObjectManagerClientFlags,
name: *const gchar,
object_path: *const gchar,
get_proxy_type_func: GDBusProxyTypeFunc,
get_proxy_type_user_data: gpointer,
get_proxy_type_destroy_notify: GDestroyNotify,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
);
}
unsafe extern "C" {
pub fn g_dbus_object_manager_client_new_for_bus_finish(
res: *mut GAsyncResult,
error: *mut *mut GError,
) -> *mut GDBusObjectManager;
}
unsafe extern "C" {
pub fn g_dbus_object_manager_client_new_for_bus_sync(
bus_type: GBusType,
flags: GDBusObjectManagerClientFlags,
name: *const gchar,
object_path: *const gchar,
get_proxy_type_func: GDBusProxyTypeFunc,
get_proxy_type_user_data: gpointer,
get_proxy_type_destroy_notify: GDestroyNotify,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> *mut GDBusObjectManager;
}
unsafe extern "C" {
pub fn g_dbus_object_manager_client_get_connection(
manager: *mut GDBusObjectManagerClient,
) -> *mut GDBusConnection;
}
unsafe extern "C" {
pub fn g_dbus_object_manager_client_get_flags(
manager: *mut GDBusObjectManagerClient,
) -> GDBusObjectManagerClientFlags;
}
unsafe extern "C" {
pub fn g_dbus_object_manager_client_get_name(
manager: *mut GDBusObjectManagerClient,
) -> *const gchar;
}
unsafe extern "C" {
pub fn g_dbus_object_manager_client_get_name_owner(
manager: *mut GDBusObjectManagerClient,
) -> *mut gchar;
}
pub type GDBusObjectManagerServerClass = _GDBusObjectManagerServerClass;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GDBusObjectManagerServerPrivate {
_unused: [u8; 0],
}
pub type GDBusObjectManagerServerPrivate = _GDBusObjectManagerServerPrivate;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GDBusObjectManagerServer {
pub parent_instance: GObject,
pub priv_: *mut GDBusObjectManagerServerPrivate,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GDBusObjectManagerServer"]
[::std::mem::size_of::<_GDBusObjectManagerServer>() - 32usize];
["Alignment of _GDBusObjectManagerServer"]
[::std::mem::align_of::<_GDBusObjectManagerServer>() - 8usize];
["Offset of field: _GDBusObjectManagerServer::parent_instance"]
[::std::mem::offset_of!(_GDBusObjectManagerServer, parent_instance) - 0usize];
["Offset of field: _GDBusObjectManagerServer::priv_"]
[::std::mem::offset_of!(_GDBusObjectManagerServer, priv_) - 24usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GDBusObjectManagerServerClass {
pub parent_class: GObjectClass,
pub padding: [gpointer; 8usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GDBusObjectManagerServerClass"]
[::std::mem::size_of::<_GDBusObjectManagerServerClass>() - 200usize];
["Alignment of _GDBusObjectManagerServerClass"]
[::std::mem::align_of::<_GDBusObjectManagerServerClass>() - 8usize];
["Offset of field: _GDBusObjectManagerServerClass::parent_class"]
[::std::mem::offset_of!(_GDBusObjectManagerServerClass, parent_class) - 0usize];
["Offset of field: _GDBusObjectManagerServerClass::padding"]
[::std::mem::offset_of!(_GDBusObjectManagerServerClass, padding) - 136usize];
};
unsafe extern "C" {
pub fn g_dbus_object_manager_server_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_dbus_object_manager_server_new(
object_path: *const gchar,
) -> *mut GDBusObjectManagerServer;
}
unsafe extern "C" {
pub fn g_dbus_object_manager_server_get_connection(
manager: *mut GDBusObjectManagerServer,
) -> *mut GDBusConnection;
}
unsafe extern "C" {
pub fn g_dbus_object_manager_server_set_connection(
manager: *mut GDBusObjectManagerServer,
connection: *mut GDBusConnection,
);
}
unsafe extern "C" {
pub fn g_dbus_object_manager_server_export(
manager: *mut GDBusObjectManagerServer,
object: *mut GDBusObjectSkeleton,
);
}
unsafe extern "C" {
pub fn g_dbus_object_manager_server_export_uniquely(
manager: *mut GDBusObjectManagerServer,
object: *mut GDBusObjectSkeleton,
);
}
unsafe extern "C" {
pub fn g_dbus_object_manager_server_is_exported(
manager: *mut GDBusObjectManagerServer,
object: *mut GDBusObjectSkeleton,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_dbus_object_manager_server_unexport(
manager: *mut GDBusObjectManagerServer,
object_path: *const gchar,
) -> gboolean;
}
pub type GDBusObjectProxyClass = _GDBusObjectProxyClass;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GDBusObjectProxyPrivate {
_unused: [u8; 0],
}
pub type GDBusObjectProxyPrivate = _GDBusObjectProxyPrivate;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GDBusObjectProxy {
pub parent_instance: GObject,
pub priv_: *mut GDBusObjectProxyPrivate,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GDBusObjectProxy"][::std::mem::size_of::<_GDBusObjectProxy>() - 32usize];
["Alignment of _GDBusObjectProxy"][::std::mem::align_of::<_GDBusObjectProxy>() - 8usize];
["Offset of field: _GDBusObjectProxy::parent_instance"]
[::std::mem::offset_of!(_GDBusObjectProxy, parent_instance) - 0usize];
["Offset of field: _GDBusObjectProxy::priv_"]
[::std::mem::offset_of!(_GDBusObjectProxy, priv_) - 24usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GDBusObjectProxyClass {
pub parent_class: GObjectClass,
pub padding: [gpointer; 8usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GDBusObjectProxyClass"][::std::mem::size_of::<_GDBusObjectProxyClass>() - 200usize];
["Alignment of _GDBusObjectProxyClass"]
[::std::mem::align_of::<_GDBusObjectProxyClass>() - 8usize];
["Offset of field: _GDBusObjectProxyClass::parent_class"]
[::std::mem::offset_of!(_GDBusObjectProxyClass, parent_class) - 0usize];
["Offset of field: _GDBusObjectProxyClass::padding"]
[::std::mem::offset_of!(_GDBusObjectProxyClass, padding) - 136usize];
};
unsafe extern "C" {
pub fn g_dbus_object_proxy_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_dbus_object_proxy_new(
connection: *mut GDBusConnection,
object_path: *const gchar,
) -> *mut GDBusObjectProxy;
}
unsafe extern "C" {
pub fn g_dbus_object_proxy_get_connection(proxy: *mut GDBusObjectProxy)
-> *mut GDBusConnection;
}
pub type GDBusObjectSkeletonClass = _GDBusObjectSkeletonClass;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GDBusObjectSkeletonPrivate {
_unused: [u8; 0],
}
pub type GDBusObjectSkeletonPrivate = _GDBusObjectSkeletonPrivate;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GDBusObjectSkeleton {
pub parent_instance: GObject,
pub priv_: *mut GDBusObjectSkeletonPrivate,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GDBusObjectSkeleton"][::std::mem::size_of::<_GDBusObjectSkeleton>() - 32usize];
["Alignment of _GDBusObjectSkeleton"][::std::mem::align_of::<_GDBusObjectSkeleton>() - 8usize];
["Offset of field: _GDBusObjectSkeleton::parent_instance"]
[::std::mem::offset_of!(_GDBusObjectSkeleton, parent_instance) - 0usize];
["Offset of field: _GDBusObjectSkeleton::priv_"]
[::std::mem::offset_of!(_GDBusObjectSkeleton, priv_) - 24usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GDBusObjectSkeletonClass {
pub parent_class: GObjectClass,
pub authorize_method: ::std::option::Option<
unsafe extern "C" fn(
object: *mut GDBusObjectSkeleton,
interface_: *mut GDBusInterfaceSkeleton,
invocation: *mut GDBusMethodInvocation,
) -> gboolean,
>,
pub padding: [gpointer; 8usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GDBusObjectSkeletonClass"]
[::std::mem::size_of::<_GDBusObjectSkeletonClass>() - 208usize];
["Alignment of _GDBusObjectSkeletonClass"]
[::std::mem::align_of::<_GDBusObjectSkeletonClass>() - 8usize];
["Offset of field: _GDBusObjectSkeletonClass::parent_class"]
[::std::mem::offset_of!(_GDBusObjectSkeletonClass, parent_class) - 0usize];
["Offset of field: _GDBusObjectSkeletonClass::authorize_method"]
[::std::mem::offset_of!(_GDBusObjectSkeletonClass, authorize_method) - 136usize];
["Offset of field: _GDBusObjectSkeletonClass::padding"]
[::std::mem::offset_of!(_GDBusObjectSkeletonClass, padding) - 144usize];
};
unsafe extern "C" {
pub fn g_dbus_object_skeleton_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_dbus_object_skeleton_new(object_path: *const gchar) -> *mut GDBusObjectSkeleton;
}
unsafe extern "C" {
pub fn g_dbus_object_skeleton_flush(object: *mut GDBusObjectSkeleton);
}
unsafe extern "C" {
pub fn g_dbus_object_skeleton_add_interface(
object: *mut GDBusObjectSkeleton,
interface_: *mut GDBusInterfaceSkeleton,
);
}
unsafe extern "C" {
pub fn g_dbus_object_skeleton_remove_interface(
object: *mut GDBusObjectSkeleton,
interface_: *mut GDBusInterfaceSkeleton,
);
}
unsafe extern "C" {
pub fn g_dbus_object_skeleton_remove_interface_by_name(
object: *mut GDBusObjectSkeleton,
interface_name: *const gchar,
);
}
unsafe extern "C" {
pub fn g_dbus_object_skeleton_set_object_path(
object: *mut GDBusObjectSkeleton,
object_path: *const gchar,
);
}
pub type GDBusProxyClass = _GDBusProxyClass;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GDBusProxyPrivate {
_unused: [u8; 0],
}
pub type GDBusProxyPrivate = _GDBusProxyPrivate;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GDBusProxy {
pub parent_instance: GObject,
pub priv_: *mut GDBusProxyPrivate,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GDBusProxy"][::std::mem::size_of::<_GDBusProxy>() - 32usize];
["Alignment of _GDBusProxy"][::std::mem::align_of::<_GDBusProxy>() - 8usize];
["Offset of field: _GDBusProxy::parent_instance"]
[::std::mem::offset_of!(_GDBusProxy, parent_instance) - 0usize];
["Offset of field: _GDBusProxy::priv_"][::std::mem::offset_of!(_GDBusProxy, priv_) - 24usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GDBusProxyClass {
pub parent_class: GObjectClass,
pub g_properties_changed: ::std::option::Option<
unsafe extern "C" fn(
proxy: *mut GDBusProxy,
changed_properties: *mut GVariant,
invalidated_properties: *const *const gchar,
),
>,
pub g_signal: ::std::option::Option<
unsafe extern "C" fn(
proxy: *mut GDBusProxy,
sender_name: *const gchar,
signal_name: *const gchar,
parameters: *mut GVariant,
),
>,
pub padding: [gpointer; 32usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GDBusProxyClass"][::std::mem::size_of::<_GDBusProxyClass>() - 408usize];
["Alignment of _GDBusProxyClass"][::std::mem::align_of::<_GDBusProxyClass>() - 8usize];
["Offset of field: _GDBusProxyClass::parent_class"]
[::std::mem::offset_of!(_GDBusProxyClass, parent_class) - 0usize];
["Offset of field: _GDBusProxyClass::g_properties_changed"]
[::std::mem::offset_of!(_GDBusProxyClass, g_properties_changed) - 136usize];
["Offset of field: _GDBusProxyClass::g_signal"]
[::std::mem::offset_of!(_GDBusProxyClass, g_signal) - 144usize];
["Offset of field: _GDBusProxyClass::padding"]
[::std::mem::offset_of!(_GDBusProxyClass, padding) - 152usize];
};
unsafe extern "C" {
pub fn g_dbus_proxy_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_dbus_proxy_new(
connection: *mut GDBusConnection,
flags: GDBusProxyFlags,
info: *mut GDBusInterfaceInfo,
name: *const gchar,
object_path: *const gchar,
interface_name: *const gchar,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
);
}
unsafe extern "C" {
pub fn g_dbus_proxy_new_finish(
res: *mut GAsyncResult,
error: *mut *mut GError,
) -> *mut GDBusProxy;
}
unsafe extern "C" {
pub fn g_dbus_proxy_new_sync(
connection: *mut GDBusConnection,
flags: GDBusProxyFlags,
info: *mut GDBusInterfaceInfo,
name: *const gchar,
object_path: *const gchar,
interface_name: *const gchar,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> *mut GDBusProxy;
}
unsafe extern "C" {
pub fn g_dbus_proxy_new_for_bus(
bus_type: GBusType,
flags: GDBusProxyFlags,
info: *mut GDBusInterfaceInfo,
name: *const gchar,
object_path: *const gchar,
interface_name: *const gchar,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
);
}
unsafe extern "C" {
pub fn g_dbus_proxy_new_for_bus_finish(
res: *mut GAsyncResult,
error: *mut *mut GError,
) -> *mut GDBusProxy;
}
unsafe extern "C" {
pub fn g_dbus_proxy_new_for_bus_sync(
bus_type: GBusType,
flags: GDBusProxyFlags,
info: *mut GDBusInterfaceInfo,
name: *const gchar,
object_path: *const gchar,
interface_name: *const gchar,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> *mut GDBusProxy;
}
unsafe extern "C" {
pub fn g_dbus_proxy_get_connection(proxy: *mut GDBusProxy) -> *mut GDBusConnection;
}
unsafe extern "C" {
pub fn g_dbus_proxy_get_flags(proxy: *mut GDBusProxy) -> GDBusProxyFlags;
}
unsafe extern "C" {
pub fn g_dbus_proxy_get_name(proxy: *mut GDBusProxy) -> *const gchar;
}
unsafe extern "C" {
pub fn g_dbus_proxy_get_name_owner(proxy: *mut GDBusProxy) -> *mut gchar;
}
unsafe extern "C" {
pub fn g_dbus_proxy_get_object_path(proxy: *mut GDBusProxy) -> *const gchar;
}
unsafe extern "C" {
pub fn g_dbus_proxy_get_interface_name(proxy: *mut GDBusProxy) -> *const gchar;
}
unsafe extern "C" {
pub fn g_dbus_proxy_get_default_timeout(proxy: *mut GDBusProxy) -> gint;
}
unsafe extern "C" {
pub fn g_dbus_proxy_set_default_timeout(proxy: *mut GDBusProxy, timeout_msec: gint);
}
unsafe extern "C" {
pub fn g_dbus_proxy_get_interface_info(proxy: *mut GDBusProxy) -> *mut GDBusInterfaceInfo;
}
unsafe extern "C" {
pub fn g_dbus_proxy_set_interface_info(proxy: *mut GDBusProxy, info: *mut GDBusInterfaceInfo);
}
unsafe extern "C" {
pub fn g_dbus_proxy_get_cached_property(
proxy: *mut GDBusProxy,
property_name: *const gchar,
) -> *mut GVariant;
}
unsafe extern "C" {
pub fn g_dbus_proxy_set_cached_property(
proxy: *mut GDBusProxy,
property_name: *const gchar,
value: *mut GVariant,
);
}
unsafe extern "C" {
pub fn g_dbus_proxy_get_cached_property_names(proxy: *mut GDBusProxy) -> *mut *mut gchar;
}
unsafe extern "C" {
pub fn g_dbus_proxy_call(
proxy: *mut GDBusProxy,
method_name: *const gchar,
parameters: *mut GVariant,
flags: GDBusCallFlags,
timeout_msec: gint,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
);
}
unsafe extern "C" {
pub fn g_dbus_proxy_call_finish(
proxy: *mut GDBusProxy,
res: *mut GAsyncResult,
error: *mut *mut GError,
) -> *mut GVariant;
}
unsafe extern "C" {
pub fn g_dbus_proxy_call_sync(
proxy: *mut GDBusProxy,
method_name: *const gchar,
parameters: *mut GVariant,
flags: GDBusCallFlags,
timeout_msec: gint,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> *mut GVariant;
}
unsafe extern "C" {
pub fn g_dbus_proxy_call_with_unix_fd_list(
proxy: *mut GDBusProxy,
method_name: *const gchar,
parameters: *mut GVariant,
flags: GDBusCallFlags,
timeout_msec: gint,
fd_list: *mut GUnixFDList,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
);
}
unsafe extern "C" {
pub fn g_dbus_proxy_call_with_unix_fd_list_finish(
proxy: *mut GDBusProxy,
out_fd_list: *mut *mut GUnixFDList,
res: *mut GAsyncResult,
error: *mut *mut GError,
) -> *mut GVariant;
}
unsafe extern "C" {
pub fn g_dbus_proxy_call_with_unix_fd_list_sync(
proxy: *mut GDBusProxy,
method_name: *const gchar,
parameters: *mut GVariant,
flags: GDBusCallFlags,
timeout_msec: gint,
fd_list: *mut GUnixFDList,
out_fd_list: *mut *mut GUnixFDList,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> *mut GVariant;
}
unsafe extern "C" {
pub fn g_dbus_server_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_dbus_server_new_sync(
address: *const gchar,
flags: GDBusServerFlags,
guid: *const gchar,
observer: *mut GDBusAuthObserver,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> *mut GDBusServer;
}
unsafe extern "C" {
pub fn g_dbus_server_get_client_address(server: *mut GDBusServer) -> *const gchar;
}
unsafe extern "C" {
pub fn g_dbus_server_get_guid(server: *mut GDBusServer) -> *const gchar;
}
unsafe extern "C" {
pub fn g_dbus_server_get_flags(server: *mut GDBusServer) -> GDBusServerFlags;
}
unsafe extern "C" {
pub fn g_dbus_server_start(server: *mut GDBusServer);
}
unsafe extern "C" {
pub fn g_dbus_server_stop(server: *mut GDBusServer);
}
unsafe extern "C" {
pub fn g_dbus_server_is_active(server: *mut GDBusServer) -> gboolean;
}
unsafe extern "C" {
pub fn g_dbus_is_guid(string: *const gchar) -> gboolean;
}
unsafe extern "C" {
pub fn g_dbus_generate_guid() -> *mut gchar;
}
unsafe extern "C" {
pub fn g_dbus_is_name(string: *const gchar) -> gboolean;
}
unsafe extern "C" {
pub fn g_dbus_is_unique_name(string: *const gchar) -> gboolean;
}
unsafe extern "C" {
pub fn g_dbus_is_member_name(string: *const gchar) -> gboolean;
}
unsafe extern "C" {
pub fn g_dbus_is_interface_name(string: *const gchar) -> gboolean;
}
unsafe extern "C" {
pub fn g_dbus_is_error_name(string: *const gchar) -> gboolean;
}
unsafe extern "C" {
pub fn g_dbus_gvariant_to_gvalue(value: *mut GVariant, out_gvalue: *mut GValue);
}
unsafe extern "C" {
pub fn g_dbus_gvalue_to_gvariant(
gvalue: *const GValue,
type_: *const GVariantType,
) -> *mut GVariant;
}
unsafe extern "C" {
pub fn g_dbus_escape_object_path_bytestring(bytes: *const guint8) -> *mut gchar;
}
unsafe extern "C" {
pub fn g_dbus_escape_object_path(s: *const gchar) -> *mut gchar;
}
unsafe extern "C" {
pub fn g_dbus_unescape_object_path(s: *const gchar) -> *mut guint8;
}
unsafe extern "C" {
pub fn g_debug_controller_get_type() -> GType;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GDebugController {
_unused: [u8; 0],
}
pub type GDebugController = _GDebugController;
pub type GDebugControllerInterface = _GDebugControllerInterface;
pub type GDebugController_autoptr = *mut GDebugController;
pub type GDebugController_listautoptr = *mut GList;
pub type GDebugController_slistautoptr = *mut GSList;
pub type GDebugController_queueautoptr = *mut GQueue;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GDebugControllerInterface {
pub g_iface: GTypeInterface,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GDebugControllerInterface"]
[::std::mem::size_of::<_GDebugControllerInterface>() - 16usize];
["Alignment of _GDebugControllerInterface"]
[::std::mem::align_of::<_GDebugControllerInterface>() - 8usize];
["Offset of field: _GDebugControllerInterface::g_iface"]
[::std::mem::offset_of!(_GDebugControllerInterface, g_iface) - 0usize];
};
unsafe extern "C" {
pub fn g_debug_controller_get_debug_enabled(self_: *mut GDebugController) -> gboolean;
}
unsafe extern "C" {
pub fn g_debug_controller_set_debug_enabled(
self_: *mut GDebugController,
debug_enabled: gboolean,
);
}
unsafe extern "C" {
pub fn g_debug_controller_dbus_get_type() -> GType;
}
pub type GDebugControllerDBus = _GDebugControllerDBus;
pub type GDebugControllerDBusClass = _GDebugControllerDBusClass;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GDebugControllerDBus {
pub parent_instance: GObject,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GDebugControllerDBus"][::std::mem::size_of::<_GDebugControllerDBus>() - 24usize];
["Alignment of _GDebugControllerDBus"]
[::std::mem::align_of::<_GDebugControllerDBus>() - 8usize];
["Offset of field: _GDebugControllerDBus::parent_instance"]
[::std::mem::offset_of!(_GDebugControllerDBus, parent_instance) - 0usize];
};
pub type GDebugControllerDBus_autoptr = *mut GDebugControllerDBus;
pub type GDebugControllerDBus_listautoptr = *mut GList;
pub type GDebugControllerDBus_slistautoptr = *mut GSList;
pub type GDebugControllerDBus_queueautoptr = *mut GQueue;
pub type GDebugControllerDBusClass_autoptr = *mut GDebugControllerDBusClass;
pub type GDebugControllerDBusClass_listautoptr = *mut GList;
pub type GDebugControllerDBusClass_slistautoptr = *mut GSList;
pub type GDebugControllerDBusClass_queueautoptr = *mut GQueue;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GDebugControllerDBusClass {
pub parent_class: GObjectClass,
pub authorize: ::std::option::Option<
unsafe extern "C" fn(
controller: *mut GDebugControllerDBus,
invocation: *mut GDBusMethodInvocation,
) -> gboolean,
>,
pub padding: [gpointer; 12usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GDebugControllerDBusClass"]
[::std::mem::size_of::<_GDebugControllerDBusClass>() - 240usize];
["Alignment of _GDebugControllerDBusClass"]
[::std::mem::align_of::<_GDebugControllerDBusClass>() - 8usize];
["Offset of field: _GDebugControllerDBusClass::parent_class"]
[::std::mem::offset_of!(_GDebugControllerDBusClass, parent_class) - 0usize];
["Offset of field: _GDebugControllerDBusClass::authorize"]
[::std::mem::offset_of!(_GDebugControllerDBusClass, authorize) - 136usize];
["Offset of field: _GDebugControllerDBusClass::padding"]
[::std::mem::offset_of!(_GDebugControllerDBusClass, padding) - 144usize];
};
unsafe extern "C" {
pub fn g_debug_controller_dbus_new(
connection: *mut GDBusConnection,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> *mut GDebugControllerDBus;
}
unsafe extern "C" {
pub fn g_debug_controller_dbus_stop(self_: *mut GDebugControllerDBus);
}
pub type GDriveIface = _GDriveIface;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GDriveIface {
pub g_iface: GTypeInterface,
pub changed: ::std::option::Option<unsafe extern "C" fn(drive: *mut GDrive)>,
pub disconnected: ::std::option::Option<unsafe extern "C" fn(drive: *mut GDrive)>,
pub eject_button: ::std::option::Option<unsafe extern "C" fn(drive: *mut GDrive)>,
pub get_name: ::std::option::Option<
unsafe extern "C" fn(drive: *mut GDrive) -> *mut ::std::os::raw::c_char,
>,
pub get_icon: ::std::option::Option<unsafe extern "C" fn(drive: *mut GDrive) -> *mut GIcon>,
pub has_volumes: ::std::option::Option<unsafe extern "C" fn(drive: *mut GDrive) -> gboolean>,
pub get_volumes: ::std::option::Option<unsafe extern "C" fn(drive: *mut GDrive) -> *mut GList>,
pub is_media_removable:
::std::option::Option<unsafe extern "C" fn(drive: *mut GDrive) -> gboolean>,
pub has_media: ::std::option::Option<unsafe extern "C" fn(drive: *mut GDrive) -> gboolean>,
pub is_media_check_automatic:
::std::option::Option<unsafe extern "C" fn(drive: *mut GDrive) -> gboolean>,
pub can_eject: ::std::option::Option<unsafe extern "C" fn(drive: *mut GDrive) -> gboolean>,
pub can_poll_for_media:
::std::option::Option<unsafe extern "C" fn(drive: *mut GDrive) -> gboolean>,
pub eject: ::std::option::Option<
unsafe extern "C" fn(
drive: *mut GDrive,
flags: GMountUnmountFlags,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
),
>,
pub eject_finish: ::std::option::Option<
unsafe extern "C" fn(
drive: *mut GDrive,
result: *mut GAsyncResult,
error: *mut *mut GError,
) -> gboolean,
>,
pub poll_for_media: ::std::option::Option<
unsafe extern "C" fn(
drive: *mut GDrive,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
),
>,
pub poll_for_media_finish: ::std::option::Option<
unsafe extern "C" fn(
drive: *mut GDrive,
result: *mut GAsyncResult,
error: *mut *mut GError,
) -> gboolean,
>,
pub get_identifier: ::std::option::Option<
unsafe extern "C" fn(
drive: *mut GDrive,
kind: *const ::std::os::raw::c_char,
) -> *mut ::std::os::raw::c_char,
>,
pub enumerate_identifiers: ::std::option::Option<
unsafe extern "C" fn(drive: *mut GDrive) -> *mut *mut ::std::os::raw::c_char,
>,
pub get_start_stop_type:
::std::option::Option<unsafe extern "C" fn(drive: *mut GDrive) -> GDriveStartStopType>,
pub can_start: ::std::option::Option<unsafe extern "C" fn(drive: *mut GDrive) -> gboolean>,
pub can_start_degraded:
::std::option::Option<unsafe extern "C" fn(drive: *mut GDrive) -> gboolean>,
pub start: ::std::option::Option<
unsafe extern "C" fn(
drive: *mut GDrive,
flags: GDriveStartFlags,
mount_operation: *mut GMountOperation,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
),
>,
pub start_finish: ::std::option::Option<
unsafe extern "C" fn(
drive: *mut GDrive,
result: *mut GAsyncResult,
error: *mut *mut GError,
) -> gboolean,
>,
pub can_stop: ::std::option::Option<unsafe extern "C" fn(drive: *mut GDrive) -> gboolean>,
pub stop: ::std::option::Option<
unsafe extern "C" fn(
drive: *mut GDrive,
flags: GMountUnmountFlags,
mount_operation: *mut GMountOperation,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
),
>,
pub stop_finish: ::std::option::Option<
unsafe extern "C" fn(
drive: *mut GDrive,
result: *mut GAsyncResult,
error: *mut *mut GError,
) -> gboolean,
>,
pub stop_button: ::std::option::Option<unsafe extern "C" fn(drive: *mut GDrive)>,
pub eject_with_operation: ::std::option::Option<
unsafe extern "C" fn(
drive: *mut GDrive,
flags: GMountUnmountFlags,
mount_operation: *mut GMountOperation,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
),
>,
pub eject_with_operation_finish: ::std::option::Option<
unsafe extern "C" fn(
drive: *mut GDrive,
result: *mut GAsyncResult,
error: *mut *mut GError,
) -> gboolean,
>,
pub get_sort_key:
::std::option::Option<unsafe extern "C" fn(drive: *mut GDrive) -> *const gchar>,
pub get_symbolic_icon:
::std::option::Option<unsafe extern "C" fn(drive: *mut GDrive) -> *mut GIcon>,
pub is_removable: ::std::option::Option<unsafe extern "C" fn(drive: *mut GDrive) -> gboolean>,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GDriveIface"][::std::mem::size_of::<_GDriveIface>() - 272usize];
["Alignment of _GDriveIface"][::std::mem::align_of::<_GDriveIface>() - 8usize];
["Offset of field: _GDriveIface::g_iface"]
[::std::mem::offset_of!(_GDriveIface, g_iface) - 0usize];
["Offset of field: _GDriveIface::changed"]
[::std::mem::offset_of!(_GDriveIface, changed) - 16usize];
["Offset of field: _GDriveIface::disconnected"]
[::std::mem::offset_of!(_GDriveIface, disconnected) - 24usize];
["Offset of field: _GDriveIface::eject_button"]
[::std::mem::offset_of!(_GDriveIface, eject_button) - 32usize];
["Offset of field: _GDriveIface::get_name"]
[::std::mem::offset_of!(_GDriveIface, get_name) - 40usize];
["Offset of field: _GDriveIface::get_icon"]
[::std::mem::offset_of!(_GDriveIface, get_icon) - 48usize];
["Offset of field: _GDriveIface::has_volumes"]
[::std::mem::offset_of!(_GDriveIface, has_volumes) - 56usize];
["Offset of field: _GDriveIface::get_volumes"]
[::std::mem::offset_of!(_GDriveIface, get_volumes) - 64usize];
["Offset of field: _GDriveIface::is_media_removable"]
[::std::mem::offset_of!(_GDriveIface, is_media_removable) - 72usize];
["Offset of field: _GDriveIface::has_media"]
[::std::mem::offset_of!(_GDriveIface, has_media) - 80usize];
["Offset of field: _GDriveIface::is_media_check_automatic"]
[::std::mem::offset_of!(_GDriveIface, is_media_check_automatic) - 88usize];
["Offset of field: _GDriveIface::can_eject"]
[::std::mem::offset_of!(_GDriveIface, can_eject) - 96usize];
["Offset of field: _GDriveIface::can_poll_for_media"]
[::std::mem::offset_of!(_GDriveIface, can_poll_for_media) - 104usize];
["Offset of field: _GDriveIface::eject"]
[::std::mem::offset_of!(_GDriveIface, eject) - 112usize];
["Offset of field: _GDriveIface::eject_finish"]
[::std::mem::offset_of!(_GDriveIface, eject_finish) - 120usize];
["Offset of field: _GDriveIface::poll_for_media"]
[::std::mem::offset_of!(_GDriveIface, poll_for_media) - 128usize];
["Offset of field: _GDriveIface::poll_for_media_finish"]
[::std::mem::offset_of!(_GDriveIface, poll_for_media_finish) - 136usize];
["Offset of field: _GDriveIface::get_identifier"]
[::std::mem::offset_of!(_GDriveIface, get_identifier) - 144usize];
["Offset of field: _GDriveIface::enumerate_identifiers"]
[::std::mem::offset_of!(_GDriveIface, enumerate_identifiers) - 152usize];
["Offset of field: _GDriveIface::get_start_stop_type"]
[::std::mem::offset_of!(_GDriveIface, get_start_stop_type) - 160usize];
["Offset of field: _GDriveIface::can_start"]
[::std::mem::offset_of!(_GDriveIface, can_start) - 168usize];
["Offset of field: _GDriveIface::can_start_degraded"]
[::std::mem::offset_of!(_GDriveIface, can_start_degraded) - 176usize];
["Offset of field: _GDriveIface::start"]
[::std::mem::offset_of!(_GDriveIface, start) - 184usize];
["Offset of field: _GDriveIface::start_finish"]
[::std::mem::offset_of!(_GDriveIface, start_finish) - 192usize];
["Offset of field: _GDriveIface::can_stop"]
[::std::mem::offset_of!(_GDriveIface, can_stop) - 200usize];
["Offset of field: _GDriveIface::stop"][::std::mem::offset_of!(_GDriveIface, stop) - 208usize];
["Offset of field: _GDriveIface::stop_finish"]
[::std::mem::offset_of!(_GDriveIface, stop_finish) - 216usize];
["Offset of field: _GDriveIface::stop_button"]
[::std::mem::offset_of!(_GDriveIface, stop_button) - 224usize];
["Offset of field: _GDriveIface::eject_with_operation"]
[::std::mem::offset_of!(_GDriveIface, eject_with_operation) - 232usize];
["Offset of field: _GDriveIface::eject_with_operation_finish"]
[::std::mem::offset_of!(_GDriveIface, eject_with_operation_finish) - 240usize];
["Offset of field: _GDriveIface::get_sort_key"]
[::std::mem::offset_of!(_GDriveIface, get_sort_key) - 248usize];
["Offset of field: _GDriveIface::get_symbolic_icon"]
[::std::mem::offset_of!(_GDriveIface, get_symbolic_icon) - 256usize];
["Offset of field: _GDriveIface::is_removable"]
[::std::mem::offset_of!(_GDriveIface, is_removable) - 264usize];
};
unsafe extern "C" {
pub fn g_drive_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_drive_get_name(drive: *mut GDrive) -> *mut ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn g_drive_get_icon(drive: *mut GDrive) -> *mut GIcon;
}
unsafe extern "C" {
pub fn g_drive_get_symbolic_icon(drive: *mut GDrive) -> *mut GIcon;
}
unsafe extern "C" {
pub fn g_drive_has_volumes(drive: *mut GDrive) -> gboolean;
}
unsafe extern "C" {
pub fn g_drive_get_volumes(drive: *mut GDrive) -> *mut GList;
}
unsafe extern "C" {
pub fn g_drive_is_removable(drive: *mut GDrive) -> gboolean;
}
unsafe extern "C" {
pub fn g_drive_is_media_removable(drive: *mut GDrive) -> gboolean;
}
unsafe extern "C" {
pub fn g_drive_has_media(drive: *mut GDrive) -> gboolean;
}
unsafe extern "C" {
pub fn g_drive_is_media_check_automatic(drive: *mut GDrive) -> gboolean;
}
unsafe extern "C" {
pub fn g_drive_can_poll_for_media(drive: *mut GDrive) -> gboolean;
}
unsafe extern "C" {
pub fn g_drive_can_eject(drive: *mut GDrive) -> gboolean;
}
unsafe extern "C" {
pub fn g_drive_eject(
drive: *mut GDrive,
flags: GMountUnmountFlags,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
);
}
unsafe extern "C" {
pub fn g_drive_eject_finish(
drive: *mut GDrive,
result: *mut GAsyncResult,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_drive_poll_for_media(
drive: *mut GDrive,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
);
}
unsafe extern "C" {
pub fn g_drive_poll_for_media_finish(
drive: *mut GDrive,
result: *mut GAsyncResult,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_drive_get_identifier(
drive: *mut GDrive,
kind: *const ::std::os::raw::c_char,
) -> *mut ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn g_drive_enumerate_identifiers(drive: *mut GDrive) -> *mut *mut ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn g_drive_get_start_stop_type(drive: *mut GDrive) -> GDriveStartStopType;
}
unsafe extern "C" {
pub fn g_drive_can_start(drive: *mut GDrive) -> gboolean;
}
unsafe extern "C" {
pub fn g_drive_can_start_degraded(drive: *mut GDrive) -> gboolean;
}
unsafe extern "C" {
pub fn g_drive_start(
drive: *mut GDrive,
flags: GDriveStartFlags,
mount_operation: *mut GMountOperation,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
);
}
unsafe extern "C" {
pub fn g_drive_start_finish(
drive: *mut GDrive,
result: *mut GAsyncResult,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_drive_can_stop(drive: *mut GDrive) -> gboolean;
}
unsafe extern "C" {
pub fn g_drive_stop(
drive: *mut GDrive,
flags: GMountUnmountFlags,
mount_operation: *mut GMountOperation,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
);
}
unsafe extern "C" {
pub fn g_drive_stop_finish(
drive: *mut GDrive,
result: *mut GAsyncResult,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_drive_eject_with_operation(
drive: *mut GDrive,
flags: GMountUnmountFlags,
mount_operation: *mut GMountOperation,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
);
}
unsafe extern "C" {
pub fn g_drive_eject_with_operation_finish(
drive: *mut GDrive,
result: *mut GAsyncResult,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_drive_get_sort_key(drive: *mut GDrive) -> *const gchar;
}
pub type GDtlsConnectionInterface = _GDtlsConnectionInterface;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GDtlsConnectionInterface {
pub g_iface: GTypeInterface,
pub accept_certificate: ::std::option::Option<
unsafe extern "C" fn(
connection: *mut GDtlsConnection,
peer_cert: *mut GTlsCertificate,
errors: GTlsCertificateFlags,
) -> gboolean,
>,
pub handshake: ::std::option::Option<
unsafe extern "C" fn(
conn: *mut GDtlsConnection,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> gboolean,
>,
pub handshake_async: ::std::option::Option<
unsafe extern "C" fn(
conn: *mut GDtlsConnection,
io_priority: ::std::os::raw::c_int,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
),
>,
pub handshake_finish: ::std::option::Option<
unsafe extern "C" fn(
conn: *mut GDtlsConnection,
result: *mut GAsyncResult,
error: *mut *mut GError,
) -> gboolean,
>,
pub shutdown: ::std::option::Option<
unsafe extern "C" fn(
conn: *mut GDtlsConnection,
shutdown_read: gboolean,
shutdown_write: gboolean,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> gboolean,
>,
pub shutdown_async: ::std::option::Option<
unsafe extern "C" fn(
conn: *mut GDtlsConnection,
shutdown_read: gboolean,
shutdown_write: gboolean,
io_priority: ::std::os::raw::c_int,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
),
>,
pub shutdown_finish: ::std::option::Option<
unsafe extern "C" fn(
conn: *mut GDtlsConnection,
result: *mut GAsyncResult,
error: *mut *mut GError,
) -> gboolean,
>,
pub set_advertised_protocols: ::std::option::Option<
unsafe extern "C" fn(conn: *mut GDtlsConnection, protocols: *const *const gchar),
>,
pub get_negotiated_protocol:
::std::option::Option<unsafe extern "C" fn(conn: *mut GDtlsConnection) -> *const gchar>,
pub get_binding_data: ::std::option::Option<
unsafe extern "C" fn(
conn: *mut GDtlsConnection,
type_: GTlsChannelBindingType,
data: *mut GByteArray,
error: *mut *mut GError,
) -> gboolean,
>,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GDtlsConnectionInterface"]
[::std::mem::size_of::<_GDtlsConnectionInterface>() - 96usize];
["Alignment of _GDtlsConnectionInterface"]
[::std::mem::align_of::<_GDtlsConnectionInterface>() - 8usize];
["Offset of field: _GDtlsConnectionInterface::g_iface"]
[::std::mem::offset_of!(_GDtlsConnectionInterface, g_iface) - 0usize];
["Offset of field: _GDtlsConnectionInterface::accept_certificate"]
[::std::mem::offset_of!(_GDtlsConnectionInterface, accept_certificate) - 16usize];
["Offset of field: _GDtlsConnectionInterface::handshake"]
[::std::mem::offset_of!(_GDtlsConnectionInterface, handshake) - 24usize];
["Offset of field: _GDtlsConnectionInterface::handshake_async"]
[::std::mem::offset_of!(_GDtlsConnectionInterface, handshake_async) - 32usize];
["Offset of field: _GDtlsConnectionInterface::handshake_finish"]
[::std::mem::offset_of!(_GDtlsConnectionInterface, handshake_finish) - 40usize];
["Offset of field: _GDtlsConnectionInterface::shutdown"]
[::std::mem::offset_of!(_GDtlsConnectionInterface, shutdown) - 48usize];
["Offset of field: _GDtlsConnectionInterface::shutdown_async"]
[::std::mem::offset_of!(_GDtlsConnectionInterface, shutdown_async) - 56usize];
["Offset of field: _GDtlsConnectionInterface::shutdown_finish"]
[::std::mem::offset_of!(_GDtlsConnectionInterface, shutdown_finish) - 64usize];
["Offset of field: _GDtlsConnectionInterface::set_advertised_protocols"]
[::std::mem::offset_of!(_GDtlsConnectionInterface, set_advertised_protocols) - 72usize];
["Offset of field: _GDtlsConnectionInterface::get_negotiated_protocol"]
[::std::mem::offset_of!(_GDtlsConnectionInterface, get_negotiated_protocol) - 80usize];
["Offset of field: _GDtlsConnectionInterface::get_binding_data"]
[::std::mem::offset_of!(_GDtlsConnectionInterface, get_binding_data) - 88usize];
};
unsafe extern "C" {
pub fn g_dtls_connection_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_dtls_connection_set_database(conn: *mut GDtlsConnection, database: *mut GTlsDatabase);
}
unsafe extern "C" {
pub fn g_dtls_connection_get_database(conn: *mut GDtlsConnection) -> *mut GTlsDatabase;
}
unsafe extern "C" {
pub fn g_dtls_connection_set_certificate(
conn: *mut GDtlsConnection,
certificate: *mut GTlsCertificate,
);
}
unsafe extern "C" {
pub fn g_dtls_connection_get_certificate(conn: *mut GDtlsConnection) -> *mut GTlsCertificate;
}
unsafe extern "C" {
pub fn g_dtls_connection_set_interaction(
conn: *mut GDtlsConnection,
interaction: *mut GTlsInteraction,
);
}
unsafe extern "C" {
pub fn g_dtls_connection_get_interaction(conn: *mut GDtlsConnection) -> *mut GTlsInteraction;
}
unsafe extern "C" {
pub fn g_dtls_connection_get_peer_certificate(
conn: *mut GDtlsConnection,
) -> *mut GTlsCertificate;
}
unsafe extern "C" {
pub fn g_dtls_connection_get_peer_certificate_errors(
conn: *mut GDtlsConnection,
) -> GTlsCertificateFlags;
}
unsafe extern "C" {
pub fn g_dtls_connection_set_require_close_notify(
conn: *mut GDtlsConnection,
require_close_notify: gboolean,
);
}
unsafe extern "C" {
pub fn g_dtls_connection_get_require_close_notify(conn: *mut GDtlsConnection) -> gboolean;
}
unsafe extern "C" {
pub fn g_dtls_connection_set_rehandshake_mode(
conn: *mut GDtlsConnection,
mode: GTlsRehandshakeMode,
);
}
unsafe extern "C" {
pub fn g_dtls_connection_get_rehandshake_mode(
conn: *mut GDtlsConnection,
) -> GTlsRehandshakeMode;
}
unsafe extern "C" {
pub fn g_dtls_connection_handshake(
conn: *mut GDtlsConnection,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_dtls_connection_handshake_async(
conn: *mut GDtlsConnection,
io_priority: ::std::os::raw::c_int,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
);
}
unsafe extern "C" {
pub fn g_dtls_connection_handshake_finish(
conn: *mut GDtlsConnection,
result: *mut GAsyncResult,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_dtls_connection_shutdown(
conn: *mut GDtlsConnection,
shutdown_read: gboolean,
shutdown_write: gboolean,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_dtls_connection_shutdown_async(
conn: *mut GDtlsConnection,
shutdown_read: gboolean,
shutdown_write: gboolean,
io_priority: ::std::os::raw::c_int,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
);
}
unsafe extern "C" {
pub fn g_dtls_connection_shutdown_finish(
conn: *mut GDtlsConnection,
result: *mut GAsyncResult,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_dtls_connection_close(
conn: *mut GDtlsConnection,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_dtls_connection_close_async(
conn: *mut GDtlsConnection,
io_priority: ::std::os::raw::c_int,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
);
}
unsafe extern "C" {
pub fn g_dtls_connection_close_finish(
conn: *mut GDtlsConnection,
result: *mut GAsyncResult,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_dtls_connection_emit_accept_certificate(
conn: *mut GDtlsConnection,
peer_cert: *mut GTlsCertificate,
errors: GTlsCertificateFlags,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_dtls_connection_set_advertised_protocols(
conn: *mut GDtlsConnection,
protocols: *const *const gchar,
);
}
unsafe extern "C" {
pub fn g_dtls_connection_get_negotiated_protocol(conn: *mut GDtlsConnection) -> *const gchar;
}
unsafe extern "C" {
pub fn g_dtls_connection_get_channel_binding_data(
conn: *mut GDtlsConnection,
type_: GTlsChannelBindingType,
data: *mut GByteArray,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_dtls_connection_get_protocol_version(
conn: *mut GDtlsConnection,
) -> GTlsProtocolVersion;
}
unsafe extern "C" {
pub fn g_dtls_connection_get_ciphersuite_name(conn: *mut GDtlsConnection) -> *mut gchar;
}
pub type GDtlsClientConnectionInterface = _GDtlsClientConnectionInterface;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GDtlsClientConnectionInterface {
pub g_iface: GTypeInterface,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GDtlsClientConnectionInterface"]
[::std::mem::size_of::<_GDtlsClientConnectionInterface>() - 16usize];
["Alignment of _GDtlsClientConnectionInterface"]
[::std::mem::align_of::<_GDtlsClientConnectionInterface>() - 8usize];
["Offset of field: _GDtlsClientConnectionInterface::g_iface"]
[::std::mem::offset_of!(_GDtlsClientConnectionInterface, g_iface) - 0usize];
};
unsafe extern "C" {
pub fn g_dtls_client_connection_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_dtls_client_connection_new(
base_socket: *mut GDatagramBased,
server_identity: *mut GSocketConnectable,
error: *mut *mut GError,
) -> *mut GDatagramBased;
}
unsafe extern "C" {
pub fn g_dtls_client_connection_get_validation_flags(
conn: *mut GDtlsClientConnection,
) -> GTlsCertificateFlags;
}
unsafe extern "C" {
pub fn g_dtls_client_connection_set_validation_flags(
conn: *mut GDtlsClientConnection,
flags: GTlsCertificateFlags,
);
}
unsafe extern "C" {
pub fn g_dtls_client_connection_get_server_identity(
conn: *mut GDtlsClientConnection,
) -> *mut GSocketConnectable;
}
unsafe extern "C" {
pub fn g_dtls_client_connection_set_server_identity(
conn: *mut GDtlsClientConnection,
identity: *mut GSocketConnectable,
);
}
unsafe extern "C" {
pub fn g_dtls_client_connection_get_accepted_cas(
conn: *mut GDtlsClientConnection,
) -> *mut GList;
}
pub type GDtlsServerConnectionInterface = _GDtlsServerConnectionInterface;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GDtlsServerConnectionInterface {
pub g_iface: GTypeInterface,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GDtlsServerConnectionInterface"]
[::std::mem::size_of::<_GDtlsServerConnectionInterface>() - 16usize];
["Alignment of _GDtlsServerConnectionInterface"]
[::std::mem::align_of::<_GDtlsServerConnectionInterface>() - 8usize];
["Offset of field: _GDtlsServerConnectionInterface::g_iface"]
[::std::mem::offset_of!(_GDtlsServerConnectionInterface, g_iface) - 0usize];
};
unsafe extern "C" {
pub fn g_dtls_server_connection_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_dtls_server_connection_new(
base_socket: *mut GDatagramBased,
certificate: *mut GTlsCertificate,
error: *mut *mut GError,
) -> *mut GDatagramBased;
}
pub type GIconIface = _GIconIface;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GIconIface {
pub g_iface: GTypeInterface,
pub hash: ::std::option::Option<unsafe extern "C" fn(icon: *mut GIcon) -> guint>,
pub equal: ::std::option::Option<
unsafe extern "C" fn(icon1: *mut GIcon, icon2: *mut GIcon) -> gboolean,
>,
pub to_tokens: ::std::option::Option<
unsafe extern "C" fn(
icon: *mut GIcon,
tokens: *mut GPtrArray,
out_version: *mut gint,
) -> gboolean,
>,
pub from_tokens: ::std::option::Option<
unsafe extern "C" fn(
tokens: *mut *mut gchar,
num_tokens: gint,
version: gint,
error: *mut *mut GError,
) -> *mut GIcon,
>,
pub serialize: ::std::option::Option<unsafe extern "C" fn(icon: *mut GIcon) -> *mut GVariant>,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GIconIface"][::std::mem::size_of::<_GIconIface>() - 56usize];
["Alignment of _GIconIface"][::std::mem::align_of::<_GIconIface>() - 8usize];
["Offset of field: _GIconIface::g_iface"]
[::std::mem::offset_of!(_GIconIface, g_iface) - 0usize];
["Offset of field: _GIconIface::hash"][::std::mem::offset_of!(_GIconIface, hash) - 16usize];
["Offset of field: _GIconIface::equal"][::std::mem::offset_of!(_GIconIface, equal) - 24usize];
["Offset of field: _GIconIface::to_tokens"]
[::std::mem::offset_of!(_GIconIface, to_tokens) - 32usize];
["Offset of field: _GIconIface::from_tokens"]
[::std::mem::offset_of!(_GIconIface, from_tokens) - 40usize];
["Offset of field: _GIconIface::serialize"]
[::std::mem::offset_of!(_GIconIface, serialize) - 48usize];
};
unsafe extern "C" {
pub fn g_icon_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_icon_hash(icon: gconstpointer) -> guint;
}
unsafe extern "C" {
pub fn g_icon_equal(icon1: *mut GIcon, icon2: *mut GIcon) -> gboolean;
}
unsafe extern "C" {
pub fn g_icon_to_string(icon: *mut GIcon) -> *mut gchar;
}
unsafe extern "C" {
pub fn g_icon_new_for_string(str_: *const gchar, error: *mut *mut GError) -> *mut GIcon;
}
unsafe extern "C" {
pub fn g_icon_serialize(icon: *mut GIcon) -> *mut GVariant;
}
unsafe extern "C" {
pub fn g_icon_deserialize(value: *mut GVariant) -> *mut GIcon;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GEmblem {
_unused: [u8; 0],
}
pub type GEmblem = _GEmblem;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GEmblemClass {
_unused: [u8; 0],
}
pub type GEmblemClass = _GEmblemClass;
unsafe extern "C" {
pub fn g_emblem_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_emblem_new(icon: *mut GIcon) -> *mut GEmblem;
}
unsafe extern "C" {
pub fn g_emblem_new_with_origin(icon: *mut GIcon, origin: GEmblemOrigin) -> *mut GEmblem;
}
unsafe extern "C" {
pub fn g_emblem_get_icon(emblem: *mut GEmblem) -> *mut GIcon;
}
unsafe extern "C" {
pub fn g_emblem_get_origin(emblem: *mut GEmblem) -> GEmblemOrigin;
}
pub type GEmblemedIcon = _GEmblemedIcon;
pub type GEmblemedIconClass = _GEmblemedIconClass;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GEmblemedIconPrivate {
_unused: [u8; 0],
}
pub type GEmblemedIconPrivate = _GEmblemedIconPrivate;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GEmblemedIcon {
pub parent_instance: GObject,
pub priv_: *mut GEmblemedIconPrivate,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GEmblemedIcon"][::std::mem::size_of::<_GEmblemedIcon>() - 32usize];
["Alignment of _GEmblemedIcon"][::std::mem::align_of::<_GEmblemedIcon>() - 8usize];
["Offset of field: _GEmblemedIcon::parent_instance"]
[::std::mem::offset_of!(_GEmblemedIcon, parent_instance) - 0usize];
["Offset of field: _GEmblemedIcon::priv_"]
[::std::mem::offset_of!(_GEmblemedIcon, priv_) - 24usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GEmblemedIconClass {
pub parent_class: GObjectClass,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GEmblemedIconClass"][::std::mem::size_of::<_GEmblemedIconClass>() - 136usize];
["Alignment of _GEmblemedIconClass"][::std::mem::align_of::<_GEmblemedIconClass>() - 8usize];
["Offset of field: _GEmblemedIconClass::parent_class"]
[::std::mem::offset_of!(_GEmblemedIconClass, parent_class) - 0usize];
};
unsafe extern "C" {
pub fn g_emblemed_icon_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_emblemed_icon_new(icon: *mut GIcon, emblem: *mut GEmblem) -> *mut GIcon;
}
unsafe extern "C" {
pub fn g_emblemed_icon_get_icon(emblemed: *mut GEmblemedIcon) -> *mut GIcon;
}
unsafe extern "C" {
pub fn g_emblemed_icon_get_emblems(emblemed: *mut GEmblemedIcon) -> *mut GList;
}
unsafe extern "C" {
pub fn g_emblemed_icon_add_emblem(emblemed: *mut GEmblemedIcon, emblem: *mut GEmblem);
}
unsafe extern "C" {
pub fn g_emblemed_icon_clear_emblems(emblemed: *mut GEmblemedIcon);
}
pub type GFileIface = _GFileIface;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GFileIface {
pub g_iface: GTypeInterface,
pub dup: ::std::option::Option<unsafe extern "C" fn(file: *mut GFile) -> *mut GFile>,
pub hash: ::std::option::Option<unsafe extern "C" fn(file: *mut GFile) -> guint>,
pub equal: ::std::option::Option<
unsafe extern "C" fn(file1: *mut GFile, file2: *mut GFile) -> gboolean,
>,
pub is_native: ::std::option::Option<unsafe extern "C" fn(file: *mut GFile) -> gboolean>,
pub has_uri_scheme: ::std::option::Option<
unsafe extern "C" fn(
file: *mut GFile,
uri_scheme: *const ::std::os::raw::c_char,
) -> gboolean,
>,
pub get_uri_scheme: ::std::option::Option<
unsafe extern "C" fn(file: *mut GFile) -> *mut ::std::os::raw::c_char,
>,
pub get_basename: ::std::option::Option<
unsafe extern "C" fn(file: *mut GFile) -> *mut ::std::os::raw::c_char,
>,
pub get_path: ::std::option::Option<
unsafe extern "C" fn(file: *mut GFile) -> *mut ::std::os::raw::c_char,
>,
pub get_uri: ::std::option::Option<
unsafe extern "C" fn(file: *mut GFile) -> *mut ::std::os::raw::c_char,
>,
pub get_parse_name: ::std::option::Option<
unsafe extern "C" fn(file: *mut GFile) -> *mut ::std::os::raw::c_char,
>,
pub get_parent: ::std::option::Option<unsafe extern "C" fn(file: *mut GFile) -> *mut GFile>,
pub prefix_matches: ::std::option::Option<
unsafe extern "C" fn(prefix: *mut GFile, file: *mut GFile) -> gboolean,
>,
pub get_relative_path: ::std::option::Option<
unsafe extern "C" fn(
parent: *mut GFile,
descendant: *mut GFile,
) -> *mut ::std::os::raw::c_char,
>,
pub resolve_relative_path: ::std::option::Option<
unsafe extern "C" fn(
file: *mut GFile,
relative_path: *const ::std::os::raw::c_char,
) -> *mut GFile,
>,
pub get_child_for_display_name: ::std::option::Option<
unsafe extern "C" fn(
file: *mut GFile,
display_name: *const ::std::os::raw::c_char,
error: *mut *mut GError,
) -> *mut GFile,
>,
pub enumerate_children: ::std::option::Option<
unsafe extern "C" fn(
file: *mut GFile,
attributes: *const ::std::os::raw::c_char,
flags: GFileQueryInfoFlags,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> *mut GFileEnumerator,
>,
pub enumerate_children_async: ::std::option::Option<
unsafe extern "C" fn(
file: *mut GFile,
attributes: *const ::std::os::raw::c_char,
flags: GFileQueryInfoFlags,
io_priority: ::std::os::raw::c_int,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
),
>,
pub enumerate_children_finish: ::std::option::Option<
unsafe extern "C" fn(
file: *mut GFile,
res: *mut GAsyncResult,
error: *mut *mut GError,
) -> *mut GFileEnumerator,
>,
pub query_info: ::std::option::Option<
unsafe extern "C" fn(
file: *mut GFile,
attributes: *const ::std::os::raw::c_char,
flags: GFileQueryInfoFlags,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> *mut GFileInfo,
>,
pub query_info_async: ::std::option::Option<
unsafe extern "C" fn(
file: *mut GFile,
attributes: *const ::std::os::raw::c_char,
flags: GFileQueryInfoFlags,
io_priority: ::std::os::raw::c_int,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
),
>,
pub query_info_finish: ::std::option::Option<
unsafe extern "C" fn(
file: *mut GFile,
res: *mut GAsyncResult,
error: *mut *mut GError,
) -> *mut GFileInfo,
>,
pub query_filesystem_info: ::std::option::Option<
unsafe extern "C" fn(
file: *mut GFile,
attributes: *const ::std::os::raw::c_char,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> *mut GFileInfo,
>,
pub query_filesystem_info_async: ::std::option::Option<
unsafe extern "C" fn(
file: *mut GFile,
attributes: *const ::std::os::raw::c_char,
io_priority: ::std::os::raw::c_int,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
),
>,
pub query_filesystem_info_finish: ::std::option::Option<
unsafe extern "C" fn(
file: *mut GFile,
res: *mut GAsyncResult,
error: *mut *mut GError,
) -> *mut GFileInfo,
>,
pub find_enclosing_mount: ::std::option::Option<
unsafe extern "C" fn(
file: *mut GFile,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> *mut GMount,
>,
pub find_enclosing_mount_async: ::std::option::Option<
unsafe extern "C" fn(
file: *mut GFile,
io_priority: ::std::os::raw::c_int,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
),
>,
pub find_enclosing_mount_finish: ::std::option::Option<
unsafe extern "C" fn(
file: *mut GFile,
res: *mut GAsyncResult,
error: *mut *mut GError,
) -> *mut GMount,
>,
pub set_display_name: ::std::option::Option<
unsafe extern "C" fn(
file: *mut GFile,
display_name: *const ::std::os::raw::c_char,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> *mut GFile,
>,
pub set_display_name_async: ::std::option::Option<
unsafe extern "C" fn(
file: *mut GFile,
display_name: *const ::std::os::raw::c_char,
io_priority: ::std::os::raw::c_int,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
),
>,
pub set_display_name_finish: ::std::option::Option<
unsafe extern "C" fn(
file: *mut GFile,
res: *mut GAsyncResult,
error: *mut *mut GError,
) -> *mut GFile,
>,
pub query_settable_attributes: ::std::option::Option<
unsafe extern "C" fn(
file: *mut GFile,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> *mut GFileAttributeInfoList,
>,
pub _query_settable_attributes_async: ::std::option::Option<unsafe extern "C" fn()>,
pub _query_settable_attributes_finish: ::std::option::Option<unsafe extern "C" fn()>,
pub query_writable_namespaces: ::std::option::Option<
unsafe extern "C" fn(
file: *mut GFile,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> *mut GFileAttributeInfoList,
>,
pub _query_writable_namespaces_async: ::std::option::Option<unsafe extern "C" fn()>,
pub _query_writable_namespaces_finish: ::std::option::Option<unsafe extern "C" fn()>,
pub set_attribute: ::std::option::Option<
unsafe extern "C" fn(
file: *mut GFile,
attribute: *const ::std::os::raw::c_char,
type_: GFileAttributeType,
value_p: gpointer,
flags: GFileQueryInfoFlags,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> gboolean,
>,
pub set_attributes_from_info: ::std::option::Option<
unsafe extern "C" fn(
file: *mut GFile,
info: *mut GFileInfo,
flags: GFileQueryInfoFlags,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> gboolean,
>,
pub set_attributes_async: ::std::option::Option<
unsafe extern "C" fn(
file: *mut GFile,
info: *mut GFileInfo,
flags: GFileQueryInfoFlags,
io_priority: ::std::os::raw::c_int,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
),
>,
pub set_attributes_finish: ::std::option::Option<
unsafe extern "C" fn(
file: *mut GFile,
result: *mut GAsyncResult,
info: *mut *mut GFileInfo,
error: *mut *mut GError,
) -> gboolean,
>,
pub read_fn: ::std::option::Option<
unsafe extern "C" fn(
file: *mut GFile,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> *mut GFileInputStream,
>,
pub read_async: ::std::option::Option<
unsafe extern "C" fn(
file: *mut GFile,
io_priority: ::std::os::raw::c_int,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
),
>,
pub read_finish: ::std::option::Option<
unsafe extern "C" fn(
file: *mut GFile,
res: *mut GAsyncResult,
error: *mut *mut GError,
) -> *mut GFileInputStream,
>,
pub append_to: ::std::option::Option<
unsafe extern "C" fn(
file: *mut GFile,
flags: GFileCreateFlags,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> *mut GFileOutputStream,
>,
pub append_to_async: ::std::option::Option<
unsafe extern "C" fn(
file: *mut GFile,
flags: GFileCreateFlags,
io_priority: ::std::os::raw::c_int,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
),
>,
pub append_to_finish: ::std::option::Option<
unsafe extern "C" fn(
file: *mut GFile,
res: *mut GAsyncResult,
error: *mut *mut GError,
) -> *mut GFileOutputStream,
>,
pub create: ::std::option::Option<
unsafe extern "C" fn(
file: *mut GFile,
flags: GFileCreateFlags,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> *mut GFileOutputStream,
>,
pub create_async: ::std::option::Option<
unsafe extern "C" fn(
file: *mut GFile,
flags: GFileCreateFlags,
io_priority: ::std::os::raw::c_int,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
),
>,
pub create_finish: ::std::option::Option<
unsafe extern "C" fn(
file: *mut GFile,
res: *mut GAsyncResult,
error: *mut *mut GError,
) -> *mut GFileOutputStream,
>,
pub replace: ::std::option::Option<
unsafe extern "C" fn(
file: *mut GFile,
etag: *const ::std::os::raw::c_char,
make_backup: gboolean,
flags: GFileCreateFlags,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> *mut GFileOutputStream,
>,
pub replace_async: ::std::option::Option<
unsafe extern "C" fn(
file: *mut GFile,
etag: *const ::std::os::raw::c_char,
make_backup: gboolean,
flags: GFileCreateFlags,
io_priority: ::std::os::raw::c_int,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
),
>,
pub replace_finish: ::std::option::Option<
unsafe extern "C" fn(
file: *mut GFile,
res: *mut GAsyncResult,
error: *mut *mut GError,
) -> *mut GFileOutputStream,
>,
pub delete_file: ::std::option::Option<
unsafe extern "C" fn(
file: *mut GFile,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> gboolean,
>,
pub delete_file_async: ::std::option::Option<
unsafe extern "C" fn(
file: *mut GFile,
io_priority: ::std::os::raw::c_int,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
),
>,
pub delete_file_finish: ::std::option::Option<
unsafe extern "C" fn(
file: *mut GFile,
result: *mut GAsyncResult,
error: *mut *mut GError,
) -> gboolean,
>,
pub trash: ::std::option::Option<
unsafe extern "C" fn(
file: *mut GFile,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> gboolean,
>,
pub trash_async: ::std::option::Option<
unsafe extern "C" fn(
file: *mut GFile,
io_priority: ::std::os::raw::c_int,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
),
>,
pub trash_finish: ::std::option::Option<
unsafe extern "C" fn(
file: *mut GFile,
result: *mut GAsyncResult,
error: *mut *mut GError,
) -> gboolean,
>,
pub make_directory: ::std::option::Option<
unsafe extern "C" fn(
file: *mut GFile,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> gboolean,
>,
pub make_directory_async: ::std::option::Option<
unsafe extern "C" fn(
file: *mut GFile,
io_priority: ::std::os::raw::c_int,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
),
>,
pub make_directory_finish: ::std::option::Option<
unsafe extern "C" fn(
file: *mut GFile,
result: *mut GAsyncResult,
error: *mut *mut GError,
) -> gboolean,
>,
pub make_symbolic_link: ::std::option::Option<
unsafe extern "C" fn(
file: *mut GFile,
symlink_value: *const ::std::os::raw::c_char,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> gboolean,
>,
pub make_symbolic_link_async: ::std::option::Option<
unsafe extern "C" fn(
file: *mut GFile,
symlink_value: *const ::std::os::raw::c_char,
io_priority: ::std::os::raw::c_int,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
),
>,
pub make_symbolic_link_finish: ::std::option::Option<
unsafe extern "C" fn(
file: *mut GFile,
result: *mut GAsyncResult,
error: *mut *mut GError,
) -> gboolean,
>,
pub copy: ::std::option::Option<
unsafe extern "C" fn(
source: *mut GFile,
destination: *mut GFile,
flags: GFileCopyFlags,
cancellable: *mut GCancellable,
progress_callback: GFileProgressCallback,
progress_callback_data: gpointer,
error: *mut *mut GError,
) -> gboolean,
>,
pub copy_async: ::std::option::Option<
unsafe extern "C" fn(
source: *mut GFile,
destination: *mut GFile,
flags: GFileCopyFlags,
io_priority: ::std::os::raw::c_int,
cancellable: *mut GCancellable,
progress_callback: GFileProgressCallback,
progress_callback_data: gpointer,
callback: GAsyncReadyCallback,
user_data: gpointer,
),
>,
pub copy_finish: ::std::option::Option<
unsafe extern "C" fn(
file: *mut GFile,
res: *mut GAsyncResult,
error: *mut *mut GError,
) -> gboolean,
>,
pub move_: ::std::option::Option<
unsafe extern "C" fn(
source: *mut GFile,
destination: *mut GFile,
flags: GFileCopyFlags,
cancellable: *mut GCancellable,
progress_callback: GFileProgressCallback,
progress_callback_data: gpointer,
error: *mut *mut GError,
) -> gboolean,
>,
pub move_async: ::std::option::Option<
unsafe extern "C" fn(
source: *mut GFile,
destination: *mut GFile,
flags: GFileCopyFlags,
io_priority: ::std::os::raw::c_int,
cancellable: *mut GCancellable,
progress_callback: GFileProgressCallback,
progress_callback_data: gpointer,
callback: GAsyncReadyCallback,
user_data: gpointer,
),
>,
pub move_finish: ::std::option::Option<
unsafe extern "C" fn(
file: *mut GFile,
result: *mut GAsyncResult,
error: *mut *mut GError,
) -> gboolean,
>,
pub mount_mountable: ::std::option::Option<
unsafe extern "C" fn(
file: *mut GFile,
flags: GMountMountFlags,
mount_operation: *mut GMountOperation,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
),
>,
pub mount_mountable_finish: ::std::option::Option<
unsafe extern "C" fn(
file: *mut GFile,
result: *mut GAsyncResult,
error: *mut *mut GError,
) -> *mut GFile,
>,
pub unmount_mountable: ::std::option::Option<
unsafe extern "C" fn(
file: *mut GFile,
flags: GMountUnmountFlags,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
),
>,
pub unmount_mountable_finish: ::std::option::Option<
unsafe extern "C" fn(
file: *mut GFile,
result: *mut GAsyncResult,
error: *mut *mut GError,
) -> gboolean,
>,
pub eject_mountable: ::std::option::Option<
unsafe extern "C" fn(
file: *mut GFile,
flags: GMountUnmountFlags,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
),
>,
pub eject_mountable_finish: ::std::option::Option<
unsafe extern "C" fn(
file: *mut GFile,
result: *mut GAsyncResult,
error: *mut *mut GError,
) -> gboolean,
>,
pub mount_enclosing_volume: ::std::option::Option<
unsafe extern "C" fn(
location: *mut GFile,
flags: GMountMountFlags,
mount_operation: *mut GMountOperation,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
),
>,
pub mount_enclosing_volume_finish: ::std::option::Option<
unsafe extern "C" fn(
location: *mut GFile,
result: *mut GAsyncResult,
error: *mut *mut GError,
) -> gboolean,
>,
pub monitor_dir: ::std::option::Option<
unsafe extern "C" fn(
file: *mut GFile,
flags: GFileMonitorFlags,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> *mut GFileMonitor,
>,
pub monitor_file: ::std::option::Option<
unsafe extern "C" fn(
file: *mut GFile,
flags: GFileMonitorFlags,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> *mut GFileMonitor,
>,
pub open_readwrite: ::std::option::Option<
unsafe extern "C" fn(
file: *mut GFile,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> *mut GFileIOStream,
>,
pub open_readwrite_async: ::std::option::Option<
unsafe extern "C" fn(
file: *mut GFile,
io_priority: ::std::os::raw::c_int,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
),
>,
pub open_readwrite_finish: ::std::option::Option<
unsafe extern "C" fn(
file: *mut GFile,
res: *mut GAsyncResult,
error: *mut *mut GError,
) -> *mut GFileIOStream,
>,
pub create_readwrite: ::std::option::Option<
unsafe extern "C" fn(
file: *mut GFile,
flags: GFileCreateFlags,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> *mut GFileIOStream,
>,
pub create_readwrite_async: ::std::option::Option<
unsafe extern "C" fn(
file: *mut GFile,
flags: GFileCreateFlags,
io_priority: ::std::os::raw::c_int,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
),
>,
pub create_readwrite_finish: ::std::option::Option<
unsafe extern "C" fn(
file: *mut GFile,
res: *mut GAsyncResult,
error: *mut *mut GError,
) -> *mut GFileIOStream,
>,
pub replace_readwrite: ::std::option::Option<
unsafe extern "C" fn(
file: *mut GFile,
etag: *const ::std::os::raw::c_char,
make_backup: gboolean,
flags: GFileCreateFlags,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> *mut GFileIOStream,
>,
pub replace_readwrite_async: ::std::option::Option<
unsafe extern "C" fn(
file: *mut GFile,
etag: *const ::std::os::raw::c_char,
make_backup: gboolean,
flags: GFileCreateFlags,
io_priority: ::std::os::raw::c_int,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
),
>,
pub replace_readwrite_finish: ::std::option::Option<
unsafe extern "C" fn(
file: *mut GFile,
res: *mut GAsyncResult,
error: *mut *mut GError,
) -> *mut GFileIOStream,
>,
pub start_mountable: ::std::option::Option<
unsafe extern "C" fn(
file: *mut GFile,
flags: GDriveStartFlags,
start_operation: *mut GMountOperation,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
),
>,
pub start_mountable_finish: ::std::option::Option<
unsafe extern "C" fn(
file: *mut GFile,
result: *mut GAsyncResult,
error: *mut *mut GError,
) -> gboolean,
>,
pub stop_mountable: ::std::option::Option<
unsafe extern "C" fn(
file: *mut GFile,
flags: GMountUnmountFlags,
mount_operation: *mut GMountOperation,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
),
>,
pub stop_mountable_finish: ::std::option::Option<
unsafe extern "C" fn(
file: *mut GFile,
result: *mut GAsyncResult,
error: *mut *mut GError,
) -> gboolean,
>,
pub supports_thread_contexts: gboolean,
pub unmount_mountable_with_operation: ::std::option::Option<
unsafe extern "C" fn(
file: *mut GFile,
flags: GMountUnmountFlags,
mount_operation: *mut GMountOperation,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
),
>,
pub unmount_mountable_with_operation_finish: ::std::option::Option<
unsafe extern "C" fn(
file: *mut GFile,
result: *mut GAsyncResult,
error: *mut *mut GError,
) -> gboolean,
>,
pub eject_mountable_with_operation: ::std::option::Option<
unsafe extern "C" fn(
file: *mut GFile,
flags: GMountUnmountFlags,
mount_operation: *mut GMountOperation,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
),
>,
pub eject_mountable_with_operation_finish: ::std::option::Option<
unsafe extern "C" fn(
file: *mut GFile,
result: *mut GAsyncResult,
error: *mut *mut GError,
) -> gboolean,
>,
pub poll_mountable: ::std::option::Option<
unsafe extern "C" fn(
file: *mut GFile,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
),
>,
pub poll_mountable_finish: ::std::option::Option<
unsafe extern "C" fn(
file: *mut GFile,
result: *mut GAsyncResult,
error: *mut *mut GError,
) -> gboolean,
>,
pub measure_disk_usage: ::std::option::Option<
unsafe extern "C" fn(
file: *mut GFile,
flags: GFileMeasureFlags,
cancellable: *mut GCancellable,
progress_callback: GFileMeasureProgressCallback,
progress_data: gpointer,
disk_usage: *mut guint64,
num_dirs: *mut guint64,
num_files: *mut guint64,
error: *mut *mut GError,
) -> gboolean,
>,
pub measure_disk_usage_async: ::std::option::Option<
unsafe extern "C" fn(
file: *mut GFile,
flags: GFileMeasureFlags,
io_priority: gint,
cancellable: *mut GCancellable,
progress_callback: GFileMeasureProgressCallback,
progress_data: gpointer,
callback: GAsyncReadyCallback,
user_data: gpointer,
),
>,
pub measure_disk_usage_finish: ::std::option::Option<
unsafe extern "C" fn(
file: *mut GFile,
result: *mut GAsyncResult,
disk_usage: *mut guint64,
num_dirs: *mut guint64,
num_files: *mut guint64,
error: *mut *mut GError,
) -> gboolean,
>,
pub query_exists: ::std::option::Option<
unsafe extern "C" fn(file: *mut GFile, cancellable: *mut GCancellable) -> gboolean,
>,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GFileIface"][::std::mem::size_of::<_GFileIface>() - 848usize];
["Alignment of _GFileIface"][::std::mem::align_of::<_GFileIface>() - 8usize];
["Offset of field: _GFileIface::g_iface"]
[::std::mem::offset_of!(_GFileIface, g_iface) - 0usize];
["Offset of field: _GFileIface::dup"][::std::mem::offset_of!(_GFileIface, dup) - 16usize];
["Offset of field: _GFileIface::hash"][::std::mem::offset_of!(_GFileIface, hash) - 24usize];
["Offset of field: _GFileIface::equal"][::std::mem::offset_of!(_GFileIface, equal) - 32usize];
["Offset of field: _GFileIface::is_native"]
[::std::mem::offset_of!(_GFileIface, is_native) - 40usize];
["Offset of field: _GFileIface::has_uri_scheme"]
[::std::mem::offset_of!(_GFileIface, has_uri_scheme) - 48usize];
["Offset of field: _GFileIface::get_uri_scheme"]
[::std::mem::offset_of!(_GFileIface, get_uri_scheme) - 56usize];
["Offset of field: _GFileIface::get_basename"]
[::std::mem::offset_of!(_GFileIface, get_basename) - 64usize];
["Offset of field: _GFileIface::get_path"]
[::std::mem::offset_of!(_GFileIface, get_path) - 72usize];
["Offset of field: _GFileIface::get_uri"]
[::std::mem::offset_of!(_GFileIface, get_uri) - 80usize];
["Offset of field: _GFileIface::get_parse_name"]
[::std::mem::offset_of!(_GFileIface, get_parse_name) - 88usize];
["Offset of field: _GFileIface::get_parent"]
[::std::mem::offset_of!(_GFileIface, get_parent) - 96usize];
["Offset of field: _GFileIface::prefix_matches"]
[::std::mem::offset_of!(_GFileIface, prefix_matches) - 104usize];
["Offset of field: _GFileIface::get_relative_path"]
[::std::mem::offset_of!(_GFileIface, get_relative_path) - 112usize];
["Offset of field: _GFileIface::resolve_relative_path"]
[::std::mem::offset_of!(_GFileIface, resolve_relative_path) - 120usize];
["Offset of field: _GFileIface::get_child_for_display_name"]
[::std::mem::offset_of!(_GFileIface, get_child_for_display_name) - 128usize];
["Offset of field: _GFileIface::enumerate_children"]
[::std::mem::offset_of!(_GFileIface, enumerate_children) - 136usize];
["Offset of field: _GFileIface::enumerate_children_async"]
[::std::mem::offset_of!(_GFileIface, enumerate_children_async) - 144usize];
["Offset of field: _GFileIface::enumerate_children_finish"]
[::std::mem::offset_of!(_GFileIface, enumerate_children_finish) - 152usize];
["Offset of field: _GFileIface::query_info"]
[::std::mem::offset_of!(_GFileIface, query_info) - 160usize];
["Offset of field: _GFileIface::query_info_async"]
[::std::mem::offset_of!(_GFileIface, query_info_async) - 168usize];
["Offset of field: _GFileIface::query_info_finish"]
[::std::mem::offset_of!(_GFileIface, query_info_finish) - 176usize];
["Offset of field: _GFileIface::query_filesystem_info"]
[::std::mem::offset_of!(_GFileIface, query_filesystem_info) - 184usize];
["Offset of field: _GFileIface::query_filesystem_info_async"]
[::std::mem::offset_of!(_GFileIface, query_filesystem_info_async) - 192usize];
["Offset of field: _GFileIface::query_filesystem_info_finish"]
[::std::mem::offset_of!(_GFileIface, query_filesystem_info_finish) - 200usize];
["Offset of field: _GFileIface::find_enclosing_mount"]
[::std::mem::offset_of!(_GFileIface, find_enclosing_mount) - 208usize];
["Offset of field: _GFileIface::find_enclosing_mount_async"]
[::std::mem::offset_of!(_GFileIface, find_enclosing_mount_async) - 216usize];
["Offset of field: _GFileIface::find_enclosing_mount_finish"]
[::std::mem::offset_of!(_GFileIface, find_enclosing_mount_finish) - 224usize];
["Offset of field: _GFileIface::set_display_name"]
[::std::mem::offset_of!(_GFileIface, set_display_name) - 232usize];
["Offset of field: _GFileIface::set_display_name_async"]
[::std::mem::offset_of!(_GFileIface, set_display_name_async) - 240usize];
["Offset of field: _GFileIface::set_display_name_finish"]
[::std::mem::offset_of!(_GFileIface, set_display_name_finish) - 248usize];
["Offset of field: _GFileIface::query_settable_attributes"]
[::std::mem::offset_of!(_GFileIface, query_settable_attributes) - 256usize];
["Offset of field: _GFileIface::_query_settable_attributes_async"]
[::std::mem::offset_of!(_GFileIface, _query_settable_attributes_async) - 264usize];
["Offset of field: _GFileIface::_query_settable_attributes_finish"]
[::std::mem::offset_of!(_GFileIface, _query_settable_attributes_finish) - 272usize];
["Offset of field: _GFileIface::query_writable_namespaces"]
[::std::mem::offset_of!(_GFileIface, query_writable_namespaces) - 280usize];
["Offset of field: _GFileIface::_query_writable_namespaces_async"]
[::std::mem::offset_of!(_GFileIface, _query_writable_namespaces_async) - 288usize];
["Offset of field: _GFileIface::_query_writable_namespaces_finish"]
[::std::mem::offset_of!(_GFileIface, _query_writable_namespaces_finish) - 296usize];
["Offset of field: _GFileIface::set_attribute"]
[::std::mem::offset_of!(_GFileIface, set_attribute) - 304usize];
["Offset of field: _GFileIface::set_attributes_from_info"]
[::std::mem::offset_of!(_GFileIface, set_attributes_from_info) - 312usize];
["Offset of field: _GFileIface::set_attributes_async"]
[::std::mem::offset_of!(_GFileIface, set_attributes_async) - 320usize];
["Offset of field: _GFileIface::set_attributes_finish"]
[::std::mem::offset_of!(_GFileIface, set_attributes_finish) - 328usize];
["Offset of field: _GFileIface::read_fn"]
[::std::mem::offset_of!(_GFileIface, read_fn) - 336usize];
["Offset of field: _GFileIface::read_async"]
[::std::mem::offset_of!(_GFileIface, read_async) - 344usize];
["Offset of field: _GFileIface::read_finish"]
[::std::mem::offset_of!(_GFileIface, read_finish) - 352usize];
["Offset of field: _GFileIface::append_to"]
[::std::mem::offset_of!(_GFileIface, append_to) - 360usize];
["Offset of field: _GFileIface::append_to_async"]
[::std::mem::offset_of!(_GFileIface, append_to_async) - 368usize];
["Offset of field: _GFileIface::append_to_finish"]
[::std::mem::offset_of!(_GFileIface, append_to_finish) - 376usize];
["Offset of field: _GFileIface::create"]
[::std::mem::offset_of!(_GFileIface, create) - 384usize];
["Offset of field: _GFileIface::create_async"]
[::std::mem::offset_of!(_GFileIface, create_async) - 392usize];
["Offset of field: _GFileIface::create_finish"]
[::std::mem::offset_of!(_GFileIface, create_finish) - 400usize];
["Offset of field: _GFileIface::replace"]
[::std::mem::offset_of!(_GFileIface, replace) - 408usize];
["Offset of field: _GFileIface::replace_async"]
[::std::mem::offset_of!(_GFileIface, replace_async) - 416usize];
["Offset of field: _GFileIface::replace_finish"]
[::std::mem::offset_of!(_GFileIface, replace_finish) - 424usize];
["Offset of field: _GFileIface::delete_file"]
[::std::mem::offset_of!(_GFileIface, delete_file) - 432usize];
["Offset of field: _GFileIface::delete_file_async"]
[::std::mem::offset_of!(_GFileIface, delete_file_async) - 440usize];
["Offset of field: _GFileIface::delete_file_finish"]
[::std::mem::offset_of!(_GFileIface, delete_file_finish) - 448usize];
["Offset of field: _GFileIface::trash"][::std::mem::offset_of!(_GFileIface, trash) - 456usize];
["Offset of field: _GFileIface::trash_async"]
[::std::mem::offset_of!(_GFileIface, trash_async) - 464usize];
["Offset of field: _GFileIface::trash_finish"]
[::std::mem::offset_of!(_GFileIface, trash_finish) - 472usize];
["Offset of field: _GFileIface::make_directory"]
[::std::mem::offset_of!(_GFileIface, make_directory) - 480usize];
["Offset of field: _GFileIface::make_directory_async"]
[::std::mem::offset_of!(_GFileIface, make_directory_async) - 488usize];
["Offset of field: _GFileIface::make_directory_finish"]
[::std::mem::offset_of!(_GFileIface, make_directory_finish) - 496usize];
["Offset of field: _GFileIface::make_symbolic_link"]
[::std::mem::offset_of!(_GFileIface, make_symbolic_link) - 504usize];
["Offset of field: _GFileIface::make_symbolic_link_async"]
[::std::mem::offset_of!(_GFileIface, make_symbolic_link_async) - 512usize];
["Offset of field: _GFileIface::make_symbolic_link_finish"]
[::std::mem::offset_of!(_GFileIface, make_symbolic_link_finish) - 520usize];
["Offset of field: _GFileIface::copy"][::std::mem::offset_of!(_GFileIface, copy) - 528usize];
["Offset of field: _GFileIface::copy_async"]
[::std::mem::offset_of!(_GFileIface, copy_async) - 536usize];
["Offset of field: _GFileIface::copy_finish"]
[::std::mem::offset_of!(_GFileIface, copy_finish) - 544usize];
["Offset of field: _GFileIface::move_"][::std::mem::offset_of!(_GFileIface, move_) - 552usize];
["Offset of field: _GFileIface::move_async"]
[::std::mem::offset_of!(_GFileIface, move_async) - 560usize];
["Offset of field: _GFileIface::move_finish"]
[::std::mem::offset_of!(_GFileIface, move_finish) - 568usize];
["Offset of field: _GFileIface::mount_mountable"]
[::std::mem::offset_of!(_GFileIface, mount_mountable) - 576usize];
["Offset of field: _GFileIface::mount_mountable_finish"]
[::std::mem::offset_of!(_GFileIface, mount_mountable_finish) - 584usize];
["Offset of field: _GFileIface::unmount_mountable"]
[::std::mem::offset_of!(_GFileIface, unmount_mountable) - 592usize];
["Offset of field: _GFileIface::unmount_mountable_finish"]
[::std::mem::offset_of!(_GFileIface, unmount_mountable_finish) - 600usize];
["Offset of field: _GFileIface::eject_mountable"]
[::std::mem::offset_of!(_GFileIface, eject_mountable) - 608usize];
["Offset of field: _GFileIface::eject_mountable_finish"]
[::std::mem::offset_of!(_GFileIface, eject_mountable_finish) - 616usize];
["Offset of field: _GFileIface::mount_enclosing_volume"]
[::std::mem::offset_of!(_GFileIface, mount_enclosing_volume) - 624usize];
["Offset of field: _GFileIface::mount_enclosing_volume_finish"]
[::std::mem::offset_of!(_GFileIface, mount_enclosing_volume_finish) - 632usize];
["Offset of field: _GFileIface::monitor_dir"]
[::std::mem::offset_of!(_GFileIface, monitor_dir) - 640usize];
["Offset of field: _GFileIface::monitor_file"]
[::std::mem::offset_of!(_GFileIface, monitor_file) - 648usize];
["Offset of field: _GFileIface::open_readwrite"]
[::std::mem::offset_of!(_GFileIface, open_readwrite) - 656usize];
["Offset of field: _GFileIface::open_readwrite_async"]
[::std::mem::offset_of!(_GFileIface, open_readwrite_async) - 664usize];
["Offset of field: _GFileIface::open_readwrite_finish"]
[::std::mem::offset_of!(_GFileIface, open_readwrite_finish) - 672usize];
["Offset of field: _GFileIface::create_readwrite"]
[::std::mem::offset_of!(_GFileIface, create_readwrite) - 680usize];
["Offset of field: _GFileIface::create_readwrite_async"]
[::std::mem::offset_of!(_GFileIface, create_readwrite_async) - 688usize];
["Offset of field: _GFileIface::create_readwrite_finish"]
[::std::mem::offset_of!(_GFileIface, create_readwrite_finish) - 696usize];
["Offset of field: _GFileIface::replace_readwrite"]
[::std::mem::offset_of!(_GFileIface, replace_readwrite) - 704usize];
["Offset of field: _GFileIface::replace_readwrite_async"]
[::std::mem::offset_of!(_GFileIface, replace_readwrite_async) - 712usize];
["Offset of field: _GFileIface::replace_readwrite_finish"]
[::std::mem::offset_of!(_GFileIface, replace_readwrite_finish) - 720usize];
["Offset of field: _GFileIface::start_mountable"]
[::std::mem::offset_of!(_GFileIface, start_mountable) - 728usize];
["Offset of field: _GFileIface::start_mountable_finish"]
[::std::mem::offset_of!(_GFileIface, start_mountable_finish) - 736usize];
["Offset of field: _GFileIface::stop_mountable"]
[::std::mem::offset_of!(_GFileIface, stop_mountable) - 744usize];
["Offset of field: _GFileIface::stop_mountable_finish"]
[::std::mem::offset_of!(_GFileIface, stop_mountable_finish) - 752usize];
["Offset of field: _GFileIface::supports_thread_contexts"]
[::std::mem::offset_of!(_GFileIface, supports_thread_contexts) - 760usize];
["Offset of field: _GFileIface::unmount_mountable_with_operation"]
[::std::mem::offset_of!(_GFileIface, unmount_mountable_with_operation) - 768usize];
["Offset of field: _GFileIface::unmount_mountable_with_operation_finish"]
[::std::mem::offset_of!(_GFileIface, unmount_mountable_with_operation_finish) - 776usize];
["Offset of field: _GFileIface::eject_mountable_with_operation"]
[::std::mem::offset_of!(_GFileIface, eject_mountable_with_operation) - 784usize];
["Offset of field: _GFileIface::eject_mountable_with_operation_finish"]
[::std::mem::offset_of!(_GFileIface, eject_mountable_with_operation_finish) - 792usize];
["Offset of field: _GFileIface::poll_mountable"]
[::std::mem::offset_of!(_GFileIface, poll_mountable) - 800usize];
["Offset of field: _GFileIface::poll_mountable_finish"]
[::std::mem::offset_of!(_GFileIface, poll_mountable_finish) - 808usize];
["Offset of field: _GFileIface::measure_disk_usage"]
[::std::mem::offset_of!(_GFileIface, measure_disk_usage) - 816usize];
["Offset of field: _GFileIface::measure_disk_usage_async"]
[::std::mem::offset_of!(_GFileIface, measure_disk_usage_async) - 824usize];
["Offset of field: _GFileIface::measure_disk_usage_finish"]
[::std::mem::offset_of!(_GFileIface, measure_disk_usage_finish) - 832usize];
["Offset of field: _GFileIface::query_exists"]
[::std::mem::offset_of!(_GFileIface, query_exists) - 840usize];
};
unsafe extern "C" {
pub fn g_file_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_file_new_for_path(path: *const ::std::os::raw::c_char) -> *mut GFile;
}
unsafe extern "C" {
pub fn g_file_new_for_uri(uri: *const ::std::os::raw::c_char) -> *mut GFile;
}
unsafe extern "C" {
pub fn g_file_new_for_commandline_arg(arg: *const ::std::os::raw::c_char) -> *mut GFile;
}
unsafe extern "C" {
pub fn g_file_new_for_commandline_arg_and_cwd(
arg: *const gchar,
cwd: *const gchar,
) -> *mut GFile;
}
unsafe extern "C" {
pub fn g_file_new_tmp(
tmpl: *const ::std::os::raw::c_char,
iostream: *mut *mut GFileIOStream,
error: *mut *mut GError,
) -> *mut GFile;
}
unsafe extern "C" {
pub fn g_file_new_tmp_async(
tmpl: *const ::std::os::raw::c_char,
io_priority: ::std::os::raw::c_int,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
);
}
unsafe extern "C" {
pub fn g_file_new_tmp_finish(
result: *mut GAsyncResult,
iostream: *mut *mut GFileIOStream,
error: *mut *mut GError,
) -> *mut GFile;
}
unsafe extern "C" {
pub fn g_file_new_tmp_dir_async(
tmpl: *const ::std::os::raw::c_char,
io_priority: ::std::os::raw::c_int,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
);
}
unsafe extern "C" {
pub fn g_file_new_tmp_dir_finish(
result: *mut GAsyncResult,
error: *mut *mut GError,
) -> *mut GFile;
}
unsafe extern "C" {
pub fn g_file_parse_name(parse_name: *const ::std::os::raw::c_char) -> *mut GFile;
}
unsafe extern "C" {
pub fn g_file_new_build_filename(first_element: *const gchar, ...) -> *mut GFile;
}
unsafe extern "C" {
pub fn g_file_new_build_filenamev(args: *const *const gchar) -> *mut GFile;
}
unsafe extern "C" {
pub fn g_file_dup(file: *mut GFile) -> *mut GFile;
}
unsafe extern "C" {
pub fn g_file_hash(file: gconstpointer) -> guint;
}
unsafe extern "C" {
pub fn g_file_equal(file1: *mut GFile, file2: *mut GFile) -> gboolean;
}
unsafe extern "C" {
pub fn g_file_get_basename(file: *mut GFile) -> *mut ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn g_file_get_path(file: *mut GFile) -> *mut ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn g_file_peek_path(file: *mut GFile) -> *const ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn g_file_get_uri(file: *mut GFile) -> *mut ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn g_file_get_parse_name(file: *mut GFile) -> *mut ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn g_file_get_parent(file: *mut GFile) -> *mut GFile;
}
unsafe extern "C" {
pub fn g_file_has_parent(file: *mut GFile, parent: *mut GFile) -> gboolean;
}
unsafe extern "C" {
pub fn g_file_get_child(file: *mut GFile, name: *const ::std::os::raw::c_char) -> *mut GFile;
}
unsafe extern "C" {
pub fn g_file_get_child_for_display_name(
file: *mut GFile,
display_name: *const ::std::os::raw::c_char,
error: *mut *mut GError,
) -> *mut GFile;
}
unsafe extern "C" {
pub fn g_file_has_prefix(file: *mut GFile, prefix: *mut GFile) -> gboolean;
}
unsafe extern "C" {
pub fn g_file_get_relative_path(
parent: *mut GFile,
descendant: *mut GFile,
) -> *mut ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn g_file_resolve_relative_path(
file: *mut GFile,
relative_path: *const ::std::os::raw::c_char,
) -> *mut GFile;
}
unsafe extern "C" {
pub fn g_file_is_native(file: *mut GFile) -> gboolean;
}
unsafe extern "C" {
pub fn g_file_has_uri_scheme(
file: *mut GFile,
uri_scheme: *const ::std::os::raw::c_char,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_file_get_uri_scheme(file: *mut GFile) -> *mut ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn g_file_read(
file: *mut GFile,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> *mut GFileInputStream;
}
unsafe extern "C" {
pub fn g_file_read_async(
file: *mut GFile,
io_priority: ::std::os::raw::c_int,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
);
}
unsafe extern "C" {
pub fn g_file_read_finish(
file: *mut GFile,
res: *mut GAsyncResult,
error: *mut *mut GError,
) -> *mut GFileInputStream;
}
unsafe extern "C" {
pub fn g_file_append_to(
file: *mut GFile,
flags: GFileCreateFlags,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> *mut GFileOutputStream;
}
unsafe extern "C" {
pub fn g_file_create(
file: *mut GFile,
flags: GFileCreateFlags,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> *mut GFileOutputStream;
}
unsafe extern "C" {
pub fn g_file_replace(
file: *mut GFile,
etag: *const ::std::os::raw::c_char,
make_backup: gboolean,
flags: GFileCreateFlags,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> *mut GFileOutputStream;
}
unsafe extern "C" {
pub fn g_file_append_to_async(
file: *mut GFile,
flags: GFileCreateFlags,
io_priority: ::std::os::raw::c_int,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
);
}
unsafe extern "C" {
pub fn g_file_append_to_finish(
file: *mut GFile,
res: *mut GAsyncResult,
error: *mut *mut GError,
) -> *mut GFileOutputStream;
}
unsafe extern "C" {
pub fn g_file_create_async(
file: *mut GFile,
flags: GFileCreateFlags,
io_priority: ::std::os::raw::c_int,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
);
}
unsafe extern "C" {
pub fn g_file_create_finish(
file: *mut GFile,
res: *mut GAsyncResult,
error: *mut *mut GError,
) -> *mut GFileOutputStream;
}
unsafe extern "C" {
pub fn g_file_replace_async(
file: *mut GFile,
etag: *const ::std::os::raw::c_char,
make_backup: gboolean,
flags: GFileCreateFlags,
io_priority: ::std::os::raw::c_int,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
);
}
unsafe extern "C" {
pub fn g_file_replace_finish(
file: *mut GFile,
res: *mut GAsyncResult,
error: *mut *mut GError,
) -> *mut GFileOutputStream;
}
unsafe extern "C" {
pub fn g_file_open_readwrite(
file: *mut GFile,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> *mut GFileIOStream;
}
unsafe extern "C" {
pub fn g_file_open_readwrite_async(
file: *mut GFile,
io_priority: ::std::os::raw::c_int,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
);
}
unsafe extern "C" {
pub fn g_file_open_readwrite_finish(
file: *mut GFile,
res: *mut GAsyncResult,
error: *mut *mut GError,
) -> *mut GFileIOStream;
}
unsafe extern "C" {
pub fn g_file_create_readwrite(
file: *mut GFile,
flags: GFileCreateFlags,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> *mut GFileIOStream;
}
unsafe extern "C" {
pub fn g_file_create_readwrite_async(
file: *mut GFile,
flags: GFileCreateFlags,
io_priority: ::std::os::raw::c_int,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
);
}
unsafe extern "C" {
pub fn g_file_create_readwrite_finish(
file: *mut GFile,
res: *mut GAsyncResult,
error: *mut *mut GError,
) -> *mut GFileIOStream;
}
unsafe extern "C" {
pub fn g_file_replace_readwrite(
file: *mut GFile,
etag: *const ::std::os::raw::c_char,
make_backup: gboolean,
flags: GFileCreateFlags,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> *mut GFileIOStream;
}
unsafe extern "C" {
pub fn g_file_replace_readwrite_async(
file: *mut GFile,
etag: *const ::std::os::raw::c_char,
make_backup: gboolean,
flags: GFileCreateFlags,
io_priority: ::std::os::raw::c_int,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
);
}
unsafe extern "C" {
pub fn g_file_replace_readwrite_finish(
file: *mut GFile,
res: *mut GAsyncResult,
error: *mut *mut GError,
) -> *mut GFileIOStream;
}
unsafe extern "C" {
pub fn g_file_query_exists(file: *mut GFile, cancellable: *mut GCancellable) -> gboolean;
}
unsafe extern "C" {
pub fn g_file_query_file_type(
file: *mut GFile,
flags: GFileQueryInfoFlags,
cancellable: *mut GCancellable,
) -> GFileType;
}
unsafe extern "C" {
pub fn g_file_query_info(
file: *mut GFile,
attributes: *const ::std::os::raw::c_char,
flags: GFileQueryInfoFlags,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> *mut GFileInfo;
}
unsafe extern "C" {
pub fn g_file_query_info_async(
file: *mut GFile,
attributes: *const ::std::os::raw::c_char,
flags: GFileQueryInfoFlags,
io_priority: ::std::os::raw::c_int,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
);
}
unsafe extern "C" {
pub fn g_file_query_info_finish(
file: *mut GFile,
res: *mut GAsyncResult,
error: *mut *mut GError,
) -> *mut GFileInfo;
}
unsafe extern "C" {
pub fn g_file_query_filesystem_info(
file: *mut GFile,
attributes: *const ::std::os::raw::c_char,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> *mut GFileInfo;
}
unsafe extern "C" {
pub fn g_file_query_filesystem_info_async(
file: *mut GFile,
attributes: *const ::std::os::raw::c_char,
io_priority: ::std::os::raw::c_int,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
);
}
unsafe extern "C" {
pub fn g_file_query_filesystem_info_finish(
file: *mut GFile,
res: *mut GAsyncResult,
error: *mut *mut GError,
) -> *mut GFileInfo;
}
unsafe extern "C" {
pub fn g_file_find_enclosing_mount(
file: *mut GFile,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> *mut GMount;
}
unsafe extern "C" {
pub fn g_file_find_enclosing_mount_async(
file: *mut GFile,
io_priority: ::std::os::raw::c_int,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
);
}
unsafe extern "C" {
pub fn g_file_find_enclosing_mount_finish(
file: *mut GFile,
res: *mut GAsyncResult,
error: *mut *mut GError,
) -> *mut GMount;
}
unsafe extern "C" {
pub fn g_file_enumerate_children(
file: *mut GFile,
attributes: *const ::std::os::raw::c_char,
flags: GFileQueryInfoFlags,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> *mut GFileEnumerator;
}
unsafe extern "C" {
pub fn g_file_enumerate_children_async(
file: *mut GFile,
attributes: *const ::std::os::raw::c_char,
flags: GFileQueryInfoFlags,
io_priority: ::std::os::raw::c_int,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
);
}
unsafe extern "C" {
pub fn g_file_enumerate_children_finish(
file: *mut GFile,
res: *mut GAsyncResult,
error: *mut *mut GError,
) -> *mut GFileEnumerator;
}
unsafe extern "C" {
pub fn g_file_set_display_name(
file: *mut GFile,
display_name: *const ::std::os::raw::c_char,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> *mut GFile;
}
unsafe extern "C" {
pub fn g_file_set_display_name_async(
file: *mut GFile,
display_name: *const ::std::os::raw::c_char,
io_priority: ::std::os::raw::c_int,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
);
}
unsafe extern "C" {
pub fn g_file_set_display_name_finish(
file: *mut GFile,
res: *mut GAsyncResult,
error: *mut *mut GError,
) -> *mut GFile;
}
unsafe extern "C" {
pub fn g_file_delete(
file: *mut GFile,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_file_delete_async(
file: *mut GFile,
io_priority: ::std::os::raw::c_int,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
);
}
unsafe extern "C" {
pub fn g_file_delete_finish(
file: *mut GFile,
result: *mut GAsyncResult,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_file_trash(
file: *mut GFile,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_file_trash_async(
file: *mut GFile,
io_priority: ::std::os::raw::c_int,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
);
}
unsafe extern "C" {
pub fn g_file_trash_finish(
file: *mut GFile,
result: *mut GAsyncResult,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_file_copy(
source: *mut GFile,
destination: *mut GFile,
flags: GFileCopyFlags,
cancellable: *mut GCancellable,
progress_callback: GFileProgressCallback,
progress_callback_data: gpointer,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_file_copy_async(
source: *mut GFile,
destination: *mut GFile,
flags: GFileCopyFlags,
io_priority: ::std::os::raw::c_int,
cancellable: *mut GCancellable,
progress_callback: GFileProgressCallback,
progress_callback_data: gpointer,
callback: GAsyncReadyCallback,
user_data: gpointer,
);
}
unsafe extern "C" {
pub fn g_file_copy_async_with_closures(
source: *mut GFile,
destination: *mut GFile,
flags: GFileCopyFlags,
io_priority: ::std::os::raw::c_int,
cancellable: *mut GCancellable,
progress_callback_closure: *mut GClosure,
ready_callback_closure: *mut GClosure,
);
}
unsafe extern "C" {
pub fn g_file_copy_finish(
file: *mut GFile,
res: *mut GAsyncResult,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_file_move(
source: *mut GFile,
destination: *mut GFile,
flags: GFileCopyFlags,
cancellable: *mut GCancellable,
progress_callback: GFileProgressCallback,
progress_callback_data: gpointer,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_file_move_async(
source: *mut GFile,
destination: *mut GFile,
flags: GFileCopyFlags,
io_priority: ::std::os::raw::c_int,
cancellable: *mut GCancellable,
progress_callback: GFileProgressCallback,
progress_callback_data: gpointer,
callback: GAsyncReadyCallback,
user_data: gpointer,
);
}
unsafe extern "C" {
pub fn g_file_move_async_with_closures(
source: *mut GFile,
destination: *mut GFile,
flags: GFileCopyFlags,
io_priority: ::std::os::raw::c_int,
cancellable: *mut GCancellable,
progress_callback_closure: *mut GClosure,
ready_callback_closure: *mut GClosure,
);
}
unsafe extern "C" {
pub fn g_file_move_finish(
file: *mut GFile,
result: *mut GAsyncResult,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_file_make_directory(
file: *mut GFile,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_file_make_directory_async(
file: *mut GFile,
io_priority: ::std::os::raw::c_int,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
);
}
unsafe extern "C" {
pub fn g_file_make_directory_finish(
file: *mut GFile,
result: *mut GAsyncResult,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_file_make_directory_with_parents(
file: *mut GFile,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_file_make_symbolic_link(
file: *mut GFile,
symlink_value: *const ::std::os::raw::c_char,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_file_make_symbolic_link_async(
file: *mut GFile,
symlink_value: *const ::std::os::raw::c_char,
io_priority: ::std::os::raw::c_int,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
);
}
unsafe extern "C" {
pub fn g_file_make_symbolic_link_finish(
file: *mut GFile,
result: *mut GAsyncResult,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_file_query_settable_attributes(
file: *mut GFile,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> *mut GFileAttributeInfoList;
}
unsafe extern "C" {
pub fn g_file_query_writable_namespaces(
file: *mut GFile,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> *mut GFileAttributeInfoList;
}
unsafe extern "C" {
pub fn g_file_set_attribute(
file: *mut GFile,
attribute: *const ::std::os::raw::c_char,
type_: GFileAttributeType,
value_p: gpointer,
flags: GFileQueryInfoFlags,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_file_set_attributes_from_info(
file: *mut GFile,
info: *mut GFileInfo,
flags: GFileQueryInfoFlags,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_file_set_attributes_async(
file: *mut GFile,
info: *mut GFileInfo,
flags: GFileQueryInfoFlags,
io_priority: ::std::os::raw::c_int,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
);
}
unsafe extern "C" {
pub fn g_file_set_attributes_finish(
file: *mut GFile,
result: *mut GAsyncResult,
info: *mut *mut GFileInfo,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_file_set_attribute_string(
file: *mut GFile,
attribute: *const ::std::os::raw::c_char,
value: *const ::std::os::raw::c_char,
flags: GFileQueryInfoFlags,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_file_set_attribute_byte_string(
file: *mut GFile,
attribute: *const ::std::os::raw::c_char,
value: *const ::std::os::raw::c_char,
flags: GFileQueryInfoFlags,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_file_set_attribute_uint32(
file: *mut GFile,
attribute: *const ::std::os::raw::c_char,
value: guint32,
flags: GFileQueryInfoFlags,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_file_set_attribute_int32(
file: *mut GFile,
attribute: *const ::std::os::raw::c_char,
value: gint32,
flags: GFileQueryInfoFlags,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_file_set_attribute_uint64(
file: *mut GFile,
attribute: *const ::std::os::raw::c_char,
value: guint64,
flags: GFileQueryInfoFlags,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_file_set_attribute_int64(
file: *mut GFile,
attribute: *const ::std::os::raw::c_char,
value: gint64,
flags: GFileQueryInfoFlags,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_file_mount_enclosing_volume(
location: *mut GFile,
flags: GMountMountFlags,
mount_operation: *mut GMountOperation,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
);
}
unsafe extern "C" {
pub fn g_file_mount_enclosing_volume_finish(
location: *mut GFile,
result: *mut GAsyncResult,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_file_mount_mountable(
file: *mut GFile,
flags: GMountMountFlags,
mount_operation: *mut GMountOperation,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
);
}
unsafe extern "C" {
pub fn g_file_mount_mountable_finish(
file: *mut GFile,
result: *mut GAsyncResult,
error: *mut *mut GError,
) -> *mut GFile;
}
unsafe extern "C" {
pub fn g_file_unmount_mountable(
file: *mut GFile,
flags: GMountUnmountFlags,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
);
}
unsafe extern "C" {
pub fn g_file_unmount_mountable_finish(
file: *mut GFile,
result: *mut GAsyncResult,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_file_unmount_mountable_with_operation(
file: *mut GFile,
flags: GMountUnmountFlags,
mount_operation: *mut GMountOperation,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
);
}
unsafe extern "C" {
pub fn g_file_unmount_mountable_with_operation_finish(
file: *mut GFile,
result: *mut GAsyncResult,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_file_eject_mountable(
file: *mut GFile,
flags: GMountUnmountFlags,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
);
}
unsafe extern "C" {
pub fn g_file_eject_mountable_finish(
file: *mut GFile,
result: *mut GAsyncResult,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_file_eject_mountable_with_operation(
file: *mut GFile,
flags: GMountUnmountFlags,
mount_operation: *mut GMountOperation,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
);
}
unsafe extern "C" {
pub fn g_file_eject_mountable_with_operation_finish(
file: *mut GFile,
result: *mut GAsyncResult,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_file_build_attribute_list_for_copy(
file: *mut GFile,
flags: GFileCopyFlags,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> *mut ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn g_file_copy_attributes(
source: *mut GFile,
destination: *mut GFile,
flags: GFileCopyFlags,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_file_monitor_directory(
file: *mut GFile,
flags: GFileMonitorFlags,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> *mut GFileMonitor;
}
unsafe extern "C" {
pub fn g_file_monitor_file(
file: *mut GFile,
flags: GFileMonitorFlags,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> *mut GFileMonitor;
}
unsafe extern "C" {
pub fn g_file_monitor(
file: *mut GFile,
flags: GFileMonitorFlags,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> *mut GFileMonitor;
}
unsafe extern "C" {
pub fn g_file_measure_disk_usage(
file: *mut GFile,
flags: GFileMeasureFlags,
cancellable: *mut GCancellable,
progress_callback: GFileMeasureProgressCallback,
progress_data: gpointer,
disk_usage: *mut guint64,
num_dirs: *mut guint64,
num_files: *mut guint64,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_file_measure_disk_usage_async(
file: *mut GFile,
flags: GFileMeasureFlags,
io_priority: gint,
cancellable: *mut GCancellable,
progress_callback: GFileMeasureProgressCallback,
progress_data: gpointer,
callback: GAsyncReadyCallback,
user_data: gpointer,
);
}
unsafe extern "C" {
pub fn g_file_measure_disk_usage_finish(
file: *mut GFile,
result: *mut GAsyncResult,
disk_usage: *mut guint64,
num_dirs: *mut guint64,
num_files: *mut guint64,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_file_start_mountable(
file: *mut GFile,
flags: GDriveStartFlags,
start_operation: *mut GMountOperation,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
);
}
unsafe extern "C" {
pub fn g_file_start_mountable_finish(
file: *mut GFile,
result: *mut GAsyncResult,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_file_stop_mountable(
file: *mut GFile,
flags: GMountUnmountFlags,
mount_operation: *mut GMountOperation,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
);
}
unsafe extern "C" {
pub fn g_file_stop_mountable_finish(
file: *mut GFile,
result: *mut GAsyncResult,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_file_poll_mountable(
file: *mut GFile,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
);
}
unsafe extern "C" {
pub fn g_file_poll_mountable_finish(
file: *mut GFile,
result: *mut GAsyncResult,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_file_query_default_handler(
file: *mut GFile,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> *mut GAppInfo;
}
unsafe extern "C" {
pub fn g_file_query_default_handler_async(
file: *mut GFile,
io_priority: ::std::os::raw::c_int,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
);
}
unsafe extern "C" {
pub fn g_file_query_default_handler_finish(
file: *mut GFile,
result: *mut GAsyncResult,
error: *mut *mut GError,
) -> *mut GAppInfo;
}
unsafe extern "C" {
pub fn g_file_load_contents(
file: *mut GFile,
cancellable: *mut GCancellable,
contents: *mut *mut ::std::os::raw::c_char,
length: *mut gsize,
etag_out: *mut *mut ::std::os::raw::c_char,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_file_load_contents_async(
file: *mut GFile,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
);
}
unsafe extern "C" {
pub fn g_file_load_contents_finish(
file: *mut GFile,
res: *mut GAsyncResult,
contents: *mut *mut ::std::os::raw::c_char,
length: *mut gsize,
etag_out: *mut *mut ::std::os::raw::c_char,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_file_load_partial_contents_async(
file: *mut GFile,
cancellable: *mut GCancellable,
read_more_callback: GFileReadMoreCallback,
callback: GAsyncReadyCallback,
user_data: gpointer,
);
}
unsafe extern "C" {
pub fn g_file_load_partial_contents_finish(
file: *mut GFile,
res: *mut GAsyncResult,
contents: *mut *mut ::std::os::raw::c_char,
length: *mut gsize,
etag_out: *mut *mut ::std::os::raw::c_char,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_file_replace_contents(
file: *mut GFile,
contents: *const ::std::os::raw::c_char,
length: gsize,
etag: *const ::std::os::raw::c_char,
make_backup: gboolean,
flags: GFileCreateFlags,
new_etag: *mut *mut ::std::os::raw::c_char,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_file_replace_contents_async(
file: *mut GFile,
contents: *const ::std::os::raw::c_char,
length: gsize,
etag: *const ::std::os::raw::c_char,
make_backup: gboolean,
flags: GFileCreateFlags,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
);
}
unsafe extern "C" {
pub fn g_file_replace_contents_bytes_async(
file: *mut GFile,
contents: *mut GBytes,
etag: *const ::std::os::raw::c_char,
make_backup: gboolean,
flags: GFileCreateFlags,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
);
}
unsafe extern "C" {
pub fn g_file_replace_contents_finish(
file: *mut GFile,
res: *mut GAsyncResult,
new_etag: *mut *mut ::std::os::raw::c_char,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_file_supports_thread_contexts(file: *mut GFile) -> gboolean;
}
unsafe extern "C" {
pub fn g_file_load_bytes(
file: *mut GFile,
cancellable: *mut GCancellable,
etag_out: *mut *mut gchar,
error: *mut *mut GError,
) -> *mut GBytes;
}
unsafe extern "C" {
pub fn g_file_load_bytes_async(
file: *mut GFile,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
);
}
unsafe extern "C" {
pub fn g_file_load_bytes_finish(
file: *mut GFile,
result: *mut GAsyncResult,
etag_out: *mut *mut gchar,
error: *mut *mut GError,
) -> *mut GBytes;
}
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GFileAttributeInfo {
pub name: *mut ::std::os::raw::c_char,
pub type_: GFileAttributeType,
pub flags: GFileAttributeInfoFlags,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GFileAttributeInfo"][::std::mem::size_of::<_GFileAttributeInfo>() - 16usize];
["Alignment of _GFileAttributeInfo"][::std::mem::align_of::<_GFileAttributeInfo>() - 8usize];
["Offset of field: _GFileAttributeInfo::name"]
[::std::mem::offset_of!(_GFileAttributeInfo, name) - 0usize];
["Offset of field: _GFileAttributeInfo::type_"]
[::std::mem::offset_of!(_GFileAttributeInfo, type_) - 8usize];
["Offset of field: _GFileAttributeInfo::flags"]
[::std::mem::offset_of!(_GFileAttributeInfo, flags) - 12usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GFileAttributeInfoList {
pub infos: *mut GFileAttributeInfo,
pub n_infos: ::std::os::raw::c_int,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GFileAttributeInfoList"][::std::mem::size_of::<_GFileAttributeInfoList>() - 16usize];
["Alignment of _GFileAttributeInfoList"]
[::std::mem::align_of::<_GFileAttributeInfoList>() - 8usize];
["Offset of field: _GFileAttributeInfoList::infos"]
[::std::mem::offset_of!(_GFileAttributeInfoList, infos) - 0usize];
["Offset of field: _GFileAttributeInfoList::n_infos"]
[::std::mem::offset_of!(_GFileAttributeInfoList, n_infos) - 8usize];
};
unsafe extern "C" {
pub fn g_file_attribute_info_list_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_file_attribute_info_list_new() -> *mut GFileAttributeInfoList;
}
unsafe extern "C" {
pub fn g_file_attribute_info_list_ref(
list: *mut GFileAttributeInfoList,
) -> *mut GFileAttributeInfoList;
}
unsafe extern "C" {
pub fn g_file_attribute_info_list_unref(list: *mut GFileAttributeInfoList);
}
unsafe extern "C" {
pub fn g_file_attribute_info_list_dup(
list: *mut GFileAttributeInfoList,
) -> *mut GFileAttributeInfoList;
}
unsafe extern "C" {
pub fn g_file_attribute_info_list_lookup(
list: *mut GFileAttributeInfoList,
name: *const ::std::os::raw::c_char,
) -> *const GFileAttributeInfo;
}
unsafe extern "C" {
pub fn g_file_attribute_info_list_add(
list: *mut GFileAttributeInfoList,
name: *const ::std::os::raw::c_char,
type_: GFileAttributeType,
flags: GFileAttributeInfoFlags,
);
}
pub type GFileEnumeratorClass = _GFileEnumeratorClass;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GFileEnumeratorPrivate {
_unused: [u8; 0],
}
pub type GFileEnumeratorPrivate = _GFileEnumeratorPrivate;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GFileEnumerator {
pub parent_instance: GObject,
pub priv_: *mut GFileEnumeratorPrivate,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GFileEnumerator"][::std::mem::size_of::<_GFileEnumerator>() - 32usize];
["Alignment of _GFileEnumerator"][::std::mem::align_of::<_GFileEnumerator>() - 8usize];
["Offset of field: _GFileEnumerator::parent_instance"]
[::std::mem::offset_of!(_GFileEnumerator, parent_instance) - 0usize];
["Offset of field: _GFileEnumerator::priv_"]
[::std::mem::offset_of!(_GFileEnumerator, priv_) - 24usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GFileEnumeratorClass {
pub parent_class: GObjectClass,
pub next_file: ::std::option::Option<
unsafe extern "C" fn(
enumerator: *mut GFileEnumerator,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> *mut GFileInfo,
>,
pub close_fn: ::std::option::Option<
unsafe extern "C" fn(
enumerator: *mut GFileEnumerator,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> gboolean,
>,
pub next_files_async: ::std::option::Option<
unsafe extern "C" fn(
enumerator: *mut GFileEnumerator,
num_files: ::std::os::raw::c_int,
io_priority: ::std::os::raw::c_int,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
),
>,
pub next_files_finish: ::std::option::Option<
unsafe extern "C" fn(
enumerator: *mut GFileEnumerator,
result: *mut GAsyncResult,
error: *mut *mut GError,
) -> *mut GList,
>,
pub close_async: ::std::option::Option<
unsafe extern "C" fn(
enumerator: *mut GFileEnumerator,
io_priority: ::std::os::raw::c_int,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
),
>,
pub close_finish: ::std::option::Option<
unsafe extern "C" fn(
enumerator: *mut GFileEnumerator,
result: *mut GAsyncResult,
error: *mut *mut GError,
) -> gboolean,
>,
pub _g_reserved1: ::std::option::Option<unsafe extern "C" fn()>,
pub _g_reserved2: ::std::option::Option<unsafe extern "C" fn()>,
pub _g_reserved3: ::std::option::Option<unsafe extern "C" fn()>,
pub _g_reserved4: ::std::option::Option<unsafe extern "C" fn()>,
pub _g_reserved5: ::std::option::Option<unsafe extern "C" fn()>,
pub _g_reserved6: ::std::option::Option<unsafe extern "C" fn()>,
pub _g_reserved7: ::std::option::Option<unsafe extern "C" fn()>,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GFileEnumeratorClass"][::std::mem::size_of::<_GFileEnumeratorClass>() - 240usize];
["Alignment of _GFileEnumeratorClass"]
[::std::mem::align_of::<_GFileEnumeratorClass>() - 8usize];
["Offset of field: _GFileEnumeratorClass::parent_class"]
[::std::mem::offset_of!(_GFileEnumeratorClass, parent_class) - 0usize];
["Offset of field: _GFileEnumeratorClass::next_file"]
[::std::mem::offset_of!(_GFileEnumeratorClass, next_file) - 136usize];
["Offset of field: _GFileEnumeratorClass::close_fn"]
[::std::mem::offset_of!(_GFileEnumeratorClass, close_fn) - 144usize];
["Offset of field: _GFileEnumeratorClass::next_files_async"]
[::std::mem::offset_of!(_GFileEnumeratorClass, next_files_async) - 152usize];
["Offset of field: _GFileEnumeratorClass::next_files_finish"]
[::std::mem::offset_of!(_GFileEnumeratorClass, next_files_finish) - 160usize];
["Offset of field: _GFileEnumeratorClass::close_async"]
[::std::mem::offset_of!(_GFileEnumeratorClass, close_async) - 168usize];
["Offset of field: _GFileEnumeratorClass::close_finish"]
[::std::mem::offset_of!(_GFileEnumeratorClass, close_finish) - 176usize];
["Offset of field: _GFileEnumeratorClass::_g_reserved1"]
[::std::mem::offset_of!(_GFileEnumeratorClass, _g_reserved1) - 184usize];
["Offset of field: _GFileEnumeratorClass::_g_reserved2"]
[::std::mem::offset_of!(_GFileEnumeratorClass, _g_reserved2) - 192usize];
["Offset of field: _GFileEnumeratorClass::_g_reserved3"]
[::std::mem::offset_of!(_GFileEnumeratorClass, _g_reserved3) - 200usize];
["Offset of field: _GFileEnumeratorClass::_g_reserved4"]
[::std::mem::offset_of!(_GFileEnumeratorClass, _g_reserved4) - 208usize];
["Offset of field: _GFileEnumeratorClass::_g_reserved5"]
[::std::mem::offset_of!(_GFileEnumeratorClass, _g_reserved5) - 216usize];
["Offset of field: _GFileEnumeratorClass::_g_reserved6"]
[::std::mem::offset_of!(_GFileEnumeratorClass, _g_reserved6) - 224usize];
["Offset of field: _GFileEnumeratorClass::_g_reserved7"]
[::std::mem::offset_of!(_GFileEnumeratorClass, _g_reserved7) - 232usize];
};
unsafe extern "C" {
pub fn g_file_enumerator_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_file_enumerator_next_file(
enumerator: *mut GFileEnumerator,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> *mut GFileInfo;
}
unsafe extern "C" {
pub fn g_file_enumerator_close(
enumerator: *mut GFileEnumerator,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_file_enumerator_next_files_async(
enumerator: *mut GFileEnumerator,
num_files: ::std::os::raw::c_int,
io_priority: ::std::os::raw::c_int,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
);
}
unsafe extern "C" {
pub fn g_file_enumerator_next_files_finish(
enumerator: *mut GFileEnumerator,
result: *mut GAsyncResult,
error: *mut *mut GError,
) -> *mut GList;
}
unsafe extern "C" {
pub fn g_file_enumerator_close_async(
enumerator: *mut GFileEnumerator,
io_priority: ::std::os::raw::c_int,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
);
}
unsafe extern "C" {
pub fn g_file_enumerator_close_finish(
enumerator: *mut GFileEnumerator,
result: *mut GAsyncResult,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_file_enumerator_is_closed(enumerator: *mut GFileEnumerator) -> gboolean;
}
unsafe extern "C" {
pub fn g_file_enumerator_has_pending(enumerator: *mut GFileEnumerator) -> gboolean;
}
unsafe extern "C" {
pub fn g_file_enumerator_set_pending(enumerator: *mut GFileEnumerator, pending: gboolean);
}
unsafe extern "C" {
pub fn g_file_enumerator_get_container(enumerator: *mut GFileEnumerator) -> *mut GFile;
}
unsafe extern "C" {
pub fn g_file_enumerator_get_child(
enumerator: *mut GFileEnumerator,
info: *mut GFileInfo,
) -> *mut GFile;
}
unsafe extern "C" {
pub fn g_file_enumerator_iterate(
direnum: *mut GFileEnumerator,
out_info: *mut *mut GFileInfo,
out_child: *mut *mut GFile,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> gboolean;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GFileIconClass {
_unused: [u8; 0],
}
pub type GFileIconClass = _GFileIconClass;
unsafe extern "C" {
pub fn g_file_icon_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_file_icon_new(file: *mut GFile) -> *mut GIcon;
}
unsafe extern "C" {
pub fn g_file_icon_get_file(icon: *mut GFileIcon) -> *mut GFile;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GFileInfoClass {
_unused: [u8; 0],
}
pub type GFileInfoClass = _GFileInfoClass;
unsafe extern "C" {
pub fn g_file_info_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_file_info_new() -> *mut GFileInfo;
}
unsafe extern "C" {
pub fn g_file_info_dup(other: *mut GFileInfo) -> *mut GFileInfo;
}
unsafe extern "C" {
pub fn g_file_info_copy_into(src_info: *mut GFileInfo, dest_info: *mut GFileInfo);
}
unsafe extern "C" {
pub fn g_file_info_has_attribute(
info: *mut GFileInfo,
attribute: *const ::std::os::raw::c_char,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_file_info_has_namespace(
info: *mut GFileInfo,
name_space: *const ::std::os::raw::c_char,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_file_info_list_attributes(
info: *mut GFileInfo,
name_space: *const ::std::os::raw::c_char,
) -> *mut *mut ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn g_file_info_get_attribute_data(
info: *mut GFileInfo,
attribute: *const ::std::os::raw::c_char,
type_: *mut GFileAttributeType,
value_pp: *mut gpointer,
status: *mut GFileAttributeStatus,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_file_info_get_attribute_type(
info: *mut GFileInfo,
attribute: *const ::std::os::raw::c_char,
) -> GFileAttributeType;
}
unsafe extern "C" {
pub fn g_file_info_remove_attribute(
info: *mut GFileInfo,
attribute: *const ::std::os::raw::c_char,
);
}
unsafe extern "C" {
pub fn g_file_info_get_attribute_status(
info: *mut GFileInfo,
attribute: *const ::std::os::raw::c_char,
) -> GFileAttributeStatus;
}
unsafe extern "C" {
pub fn g_file_info_set_attribute_status(
info: *mut GFileInfo,
attribute: *const ::std::os::raw::c_char,
status: GFileAttributeStatus,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_file_info_get_attribute_as_string(
info: *mut GFileInfo,
attribute: *const ::std::os::raw::c_char,
) -> *mut ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn g_file_info_get_attribute_string(
info: *mut GFileInfo,
attribute: *const ::std::os::raw::c_char,
) -> *const ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn g_file_info_get_attribute_byte_string(
info: *mut GFileInfo,
attribute: *const ::std::os::raw::c_char,
) -> *const ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn g_file_info_get_attribute_boolean(
info: *mut GFileInfo,
attribute: *const ::std::os::raw::c_char,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_file_info_get_attribute_uint32(
info: *mut GFileInfo,
attribute: *const ::std::os::raw::c_char,
) -> guint32;
}
unsafe extern "C" {
pub fn g_file_info_get_attribute_int32(
info: *mut GFileInfo,
attribute: *const ::std::os::raw::c_char,
) -> gint32;
}
unsafe extern "C" {
pub fn g_file_info_get_attribute_uint64(
info: *mut GFileInfo,
attribute: *const ::std::os::raw::c_char,
) -> guint64;
}
unsafe extern "C" {
pub fn g_file_info_get_attribute_int64(
info: *mut GFileInfo,
attribute: *const ::std::os::raw::c_char,
) -> gint64;
}
unsafe extern "C" {
pub fn g_file_info_get_attribute_object(
info: *mut GFileInfo,
attribute: *const ::std::os::raw::c_char,
) -> *mut GObject;
}
unsafe extern "C" {
pub fn g_file_info_get_attribute_stringv(
info: *mut GFileInfo,
attribute: *const ::std::os::raw::c_char,
) -> *mut *mut ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn g_file_info_get_attribute_file_path(
info: *mut GFileInfo,
attribute: *const ::std::os::raw::c_char,
) -> *const ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn g_file_info_set_attribute(
info: *mut GFileInfo,
attribute: *const ::std::os::raw::c_char,
type_: GFileAttributeType,
value_p: gpointer,
);
}
unsafe extern "C" {
pub fn g_file_info_set_attribute_string(
info: *mut GFileInfo,
attribute: *const ::std::os::raw::c_char,
attr_value: *const ::std::os::raw::c_char,
);
}
unsafe extern "C" {
pub fn g_file_info_set_attribute_byte_string(
info: *mut GFileInfo,
attribute: *const ::std::os::raw::c_char,
attr_value: *const ::std::os::raw::c_char,
);
}
unsafe extern "C" {
pub fn g_file_info_set_attribute_boolean(
info: *mut GFileInfo,
attribute: *const ::std::os::raw::c_char,
attr_value: gboolean,
);
}
unsafe extern "C" {
pub fn g_file_info_set_attribute_uint32(
info: *mut GFileInfo,
attribute: *const ::std::os::raw::c_char,
attr_value: guint32,
);
}
unsafe extern "C" {
pub fn g_file_info_set_attribute_int32(
info: *mut GFileInfo,
attribute: *const ::std::os::raw::c_char,
attr_value: gint32,
);
}
unsafe extern "C" {
pub fn g_file_info_set_attribute_uint64(
info: *mut GFileInfo,
attribute: *const ::std::os::raw::c_char,
attr_value: guint64,
);
}
unsafe extern "C" {
pub fn g_file_info_set_attribute_int64(
info: *mut GFileInfo,
attribute: *const ::std::os::raw::c_char,
attr_value: gint64,
);
}
unsafe extern "C" {
pub fn g_file_info_set_attribute_object(
info: *mut GFileInfo,
attribute: *const ::std::os::raw::c_char,
attr_value: *mut GObject,
);
}
unsafe extern "C" {
pub fn g_file_info_set_attribute_stringv(
info: *mut GFileInfo,
attribute: *const ::std::os::raw::c_char,
attr_value: *mut *mut ::std::os::raw::c_char,
);
}
unsafe extern "C" {
pub fn g_file_info_set_attribute_file_path(
info: *mut GFileInfo,
attribute: *const ::std::os::raw::c_char,
attr_value: *const ::std::os::raw::c_char,
);
}
unsafe extern "C" {
pub fn g_file_info_clear_status(info: *mut GFileInfo);
}
unsafe extern "C" {
pub fn g_file_info_get_deletion_date(info: *mut GFileInfo) -> *mut GDateTime;
}
unsafe extern "C" {
pub fn g_file_info_get_file_type(info: *mut GFileInfo) -> GFileType;
}
unsafe extern "C" {
pub fn g_file_info_get_is_hidden(info: *mut GFileInfo) -> gboolean;
}
unsafe extern "C" {
pub fn g_file_info_get_is_backup(info: *mut GFileInfo) -> gboolean;
}
unsafe extern "C" {
pub fn g_file_info_get_is_symlink(info: *mut GFileInfo) -> gboolean;
}
unsafe extern "C" {
pub fn g_file_info_get_name(info: *mut GFileInfo) -> *const ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn g_file_info_get_display_name(info: *mut GFileInfo) -> *const ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn g_file_info_get_edit_name(info: *mut GFileInfo) -> *const ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn g_file_info_get_icon(info: *mut GFileInfo) -> *mut GIcon;
}
unsafe extern "C" {
pub fn g_file_info_get_symbolic_icon(info: *mut GFileInfo) -> *mut GIcon;
}
unsafe extern "C" {
pub fn g_file_info_get_content_type(info: *mut GFileInfo) -> *const ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn g_file_info_get_size(info: *mut GFileInfo) -> goffset;
}
unsafe extern "C" {
pub fn g_file_info_get_modification_time(info: *mut GFileInfo, result: *mut GTimeVal);
}
unsafe extern "C" {
pub fn g_file_info_get_modification_date_time(info: *mut GFileInfo) -> *mut GDateTime;
}
unsafe extern "C" {
pub fn g_file_info_get_access_date_time(info: *mut GFileInfo) -> *mut GDateTime;
}
unsafe extern "C" {
pub fn g_file_info_get_creation_date_time(info: *mut GFileInfo) -> *mut GDateTime;
}
unsafe extern "C" {
pub fn g_file_info_get_symlink_target(info: *mut GFileInfo) -> *const ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn g_file_info_get_etag(info: *mut GFileInfo) -> *const ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn g_file_info_get_sort_order(info: *mut GFileInfo) -> gint32;
}
unsafe extern "C" {
pub fn g_file_info_set_attribute_mask(info: *mut GFileInfo, mask: *mut GFileAttributeMatcher);
}
unsafe extern "C" {
pub fn g_file_info_unset_attribute_mask(info: *mut GFileInfo);
}
unsafe extern "C" {
pub fn g_file_info_set_file_type(info: *mut GFileInfo, type_: GFileType);
}
unsafe extern "C" {
pub fn g_file_info_set_is_hidden(info: *mut GFileInfo, is_hidden: gboolean);
}
unsafe extern "C" {
pub fn g_file_info_set_is_symlink(info: *mut GFileInfo, is_symlink: gboolean);
}
unsafe extern "C" {
pub fn g_file_info_set_name(info: *mut GFileInfo, name: *const ::std::os::raw::c_char);
}
unsafe extern "C" {
pub fn g_file_info_set_display_name(
info: *mut GFileInfo,
display_name: *const ::std::os::raw::c_char,
);
}
unsafe extern "C" {
pub fn g_file_info_set_edit_name(
info: *mut GFileInfo,
edit_name: *const ::std::os::raw::c_char,
);
}
unsafe extern "C" {
pub fn g_file_info_set_icon(info: *mut GFileInfo, icon: *mut GIcon);
}
unsafe extern "C" {
pub fn g_file_info_set_symbolic_icon(info: *mut GFileInfo, icon: *mut GIcon);
}
unsafe extern "C" {
pub fn g_file_info_set_content_type(
info: *mut GFileInfo,
content_type: *const ::std::os::raw::c_char,
);
}
unsafe extern "C" {
pub fn g_file_info_set_size(info: *mut GFileInfo, size: goffset);
}
unsafe extern "C" {
pub fn g_file_info_set_modification_time(info: *mut GFileInfo, mtime: *mut GTimeVal);
}
unsafe extern "C" {
pub fn g_file_info_set_modification_date_time(info: *mut GFileInfo, mtime: *mut GDateTime);
}
unsafe extern "C" {
pub fn g_file_info_set_access_date_time(info: *mut GFileInfo, atime: *mut GDateTime);
}
unsafe extern "C" {
pub fn g_file_info_set_creation_date_time(info: *mut GFileInfo, creation_time: *mut GDateTime);
}
unsafe extern "C" {
pub fn g_file_info_set_symlink_target(
info: *mut GFileInfo,
symlink_target: *const ::std::os::raw::c_char,
);
}
unsafe extern "C" {
pub fn g_file_info_set_sort_order(info: *mut GFileInfo, sort_order: gint32);
}
unsafe extern "C" {
pub fn g_file_attribute_matcher_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_file_attribute_matcher_new(
attributes: *const ::std::os::raw::c_char,
) -> *mut GFileAttributeMatcher;
}
unsafe extern "C" {
pub fn g_file_attribute_matcher_ref(
matcher: *mut GFileAttributeMatcher,
) -> *mut GFileAttributeMatcher;
}
unsafe extern "C" {
pub fn g_file_attribute_matcher_unref(matcher: *mut GFileAttributeMatcher);
}
unsafe extern "C" {
pub fn g_file_attribute_matcher_subtract(
matcher: *mut GFileAttributeMatcher,
subtract: *mut GFileAttributeMatcher,
) -> *mut GFileAttributeMatcher;
}
unsafe extern "C" {
pub fn g_file_attribute_matcher_matches(
matcher: *mut GFileAttributeMatcher,
attribute: *const ::std::os::raw::c_char,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_file_attribute_matcher_matches_only(
matcher: *mut GFileAttributeMatcher,
attribute: *const ::std::os::raw::c_char,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_file_attribute_matcher_enumerate_namespace(
matcher: *mut GFileAttributeMatcher,
ns: *const ::std::os::raw::c_char,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_file_attribute_matcher_enumerate_next(
matcher: *mut GFileAttributeMatcher,
) -> *const ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn g_file_attribute_matcher_to_string(
matcher: *mut GFileAttributeMatcher,
) -> *mut ::std::os::raw::c_char;
}
pub type GFileInputStreamClass = _GFileInputStreamClass;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GFileInputStreamPrivate {
_unused: [u8; 0],
}
pub type GFileInputStreamPrivate = _GFileInputStreamPrivate;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GFileInputStream {
pub parent_instance: GInputStream,
pub priv_: *mut GFileInputStreamPrivate,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GFileInputStream"][::std::mem::size_of::<_GFileInputStream>() - 40usize];
["Alignment of _GFileInputStream"][::std::mem::align_of::<_GFileInputStream>() - 8usize];
["Offset of field: _GFileInputStream::parent_instance"]
[::std::mem::offset_of!(_GFileInputStream, parent_instance) - 0usize];
["Offset of field: _GFileInputStream::priv_"]
[::std::mem::offset_of!(_GFileInputStream, priv_) - 32usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GFileInputStreamClass {
pub parent_class: GInputStreamClass,
pub tell: ::std::option::Option<unsafe extern "C" fn(stream: *mut GFileInputStream) -> goffset>,
pub can_seek:
::std::option::Option<unsafe extern "C" fn(stream: *mut GFileInputStream) -> gboolean>,
pub seek: ::std::option::Option<
unsafe extern "C" fn(
stream: *mut GFileInputStream,
offset: goffset,
type_: GSeekType,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> gboolean,
>,
pub query_info: ::std::option::Option<
unsafe extern "C" fn(
stream: *mut GFileInputStream,
attributes: *const ::std::os::raw::c_char,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> *mut GFileInfo,
>,
pub query_info_async: ::std::option::Option<
unsafe extern "C" fn(
stream: *mut GFileInputStream,
attributes: *const ::std::os::raw::c_char,
io_priority: ::std::os::raw::c_int,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
),
>,
pub query_info_finish: ::std::option::Option<
unsafe extern "C" fn(
stream: *mut GFileInputStream,
result: *mut GAsyncResult,
error: *mut *mut GError,
) -> *mut GFileInfo,
>,
pub _g_reserved1: ::std::option::Option<unsafe extern "C" fn()>,
pub _g_reserved2: ::std::option::Option<unsafe extern "C" fn()>,
pub _g_reserved3: ::std::option::Option<unsafe extern "C" fn()>,
pub _g_reserved4: ::std::option::Option<unsafe extern "C" fn()>,
pub _g_reserved5: ::std::option::Option<unsafe extern "C" fn()>,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GFileInputStreamClass"][::std::mem::size_of::<_GFileInputStreamClass>() - 336usize];
["Alignment of _GFileInputStreamClass"]
[::std::mem::align_of::<_GFileInputStreamClass>() - 8usize];
["Offset of field: _GFileInputStreamClass::parent_class"]
[::std::mem::offset_of!(_GFileInputStreamClass, parent_class) - 0usize];
["Offset of field: _GFileInputStreamClass::tell"]
[::std::mem::offset_of!(_GFileInputStreamClass, tell) - 248usize];
["Offset of field: _GFileInputStreamClass::can_seek"]
[::std::mem::offset_of!(_GFileInputStreamClass, can_seek) - 256usize];
["Offset of field: _GFileInputStreamClass::seek"]
[::std::mem::offset_of!(_GFileInputStreamClass, seek) - 264usize];
["Offset of field: _GFileInputStreamClass::query_info"]
[::std::mem::offset_of!(_GFileInputStreamClass, query_info) - 272usize];
["Offset of field: _GFileInputStreamClass::query_info_async"]
[::std::mem::offset_of!(_GFileInputStreamClass, query_info_async) - 280usize];
["Offset of field: _GFileInputStreamClass::query_info_finish"]
[::std::mem::offset_of!(_GFileInputStreamClass, query_info_finish) - 288usize];
["Offset of field: _GFileInputStreamClass::_g_reserved1"]
[::std::mem::offset_of!(_GFileInputStreamClass, _g_reserved1) - 296usize];
["Offset of field: _GFileInputStreamClass::_g_reserved2"]
[::std::mem::offset_of!(_GFileInputStreamClass, _g_reserved2) - 304usize];
["Offset of field: _GFileInputStreamClass::_g_reserved3"]
[::std::mem::offset_of!(_GFileInputStreamClass, _g_reserved3) - 312usize];
["Offset of field: _GFileInputStreamClass::_g_reserved4"]
[::std::mem::offset_of!(_GFileInputStreamClass, _g_reserved4) - 320usize];
["Offset of field: _GFileInputStreamClass::_g_reserved5"]
[::std::mem::offset_of!(_GFileInputStreamClass, _g_reserved5) - 328usize];
};
unsafe extern "C" {
pub fn g_file_input_stream_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_file_input_stream_query_info(
stream: *mut GFileInputStream,
attributes: *const ::std::os::raw::c_char,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> *mut GFileInfo;
}
unsafe extern "C" {
pub fn g_file_input_stream_query_info_async(
stream: *mut GFileInputStream,
attributes: *const ::std::os::raw::c_char,
io_priority: ::std::os::raw::c_int,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
);
}
unsafe extern "C" {
pub fn g_file_input_stream_query_info_finish(
stream: *mut GFileInputStream,
result: *mut GAsyncResult,
error: *mut *mut GError,
) -> *mut GFileInfo;
}
unsafe extern "C" {
pub fn g_io_error_quark() -> GQuark;
}
unsafe extern "C" {
pub fn g_io_error_from_errno(err_no: gint) -> GIOErrorEnum;
}
unsafe extern "C" {
pub fn g_io_error_from_file_error(file_error: GFileError) -> GIOErrorEnum;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GIOStreamPrivate {
_unused: [u8; 0],
}
pub type GIOStreamPrivate = _GIOStreamPrivate;
pub type GIOStreamClass = _GIOStreamClass;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GIOStream {
pub parent_instance: GObject,
pub priv_: *mut GIOStreamPrivate,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GIOStream"][::std::mem::size_of::<_GIOStream>() - 32usize];
["Alignment of _GIOStream"][::std::mem::align_of::<_GIOStream>() - 8usize];
["Offset of field: _GIOStream::parent_instance"]
[::std::mem::offset_of!(_GIOStream, parent_instance) - 0usize];
["Offset of field: _GIOStream::priv_"][::std::mem::offset_of!(_GIOStream, priv_) - 24usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GIOStreamClass {
pub parent_class: GObjectClass,
pub get_input_stream:
::std::option::Option<unsafe extern "C" fn(stream: *mut GIOStream) -> *mut GInputStream>,
pub get_output_stream:
::std::option::Option<unsafe extern "C" fn(stream: *mut GIOStream) -> *mut GOutputStream>,
pub close_fn: ::std::option::Option<
unsafe extern "C" fn(
stream: *mut GIOStream,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> gboolean,
>,
pub close_async: ::std::option::Option<
unsafe extern "C" fn(
stream: *mut GIOStream,
io_priority: ::std::os::raw::c_int,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
),
>,
pub close_finish: ::std::option::Option<
unsafe extern "C" fn(
stream: *mut GIOStream,
result: *mut GAsyncResult,
error: *mut *mut GError,
) -> gboolean,
>,
pub _g_reserved1: ::std::option::Option<unsafe extern "C" fn()>,
pub _g_reserved2: ::std::option::Option<unsafe extern "C" fn()>,
pub _g_reserved3: ::std::option::Option<unsafe extern "C" fn()>,
pub _g_reserved4: ::std::option::Option<unsafe extern "C" fn()>,
pub _g_reserved5: ::std::option::Option<unsafe extern "C" fn()>,
pub _g_reserved6: ::std::option::Option<unsafe extern "C" fn()>,
pub _g_reserved7: ::std::option::Option<unsafe extern "C" fn()>,
pub _g_reserved8: ::std::option::Option<unsafe extern "C" fn()>,
pub _g_reserved9: ::std::option::Option<unsafe extern "C" fn()>,
pub _g_reserved10: ::std::option::Option<unsafe extern "C" fn()>,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GIOStreamClass"][::std::mem::size_of::<_GIOStreamClass>() - 256usize];
["Alignment of _GIOStreamClass"][::std::mem::align_of::<_GIOStreamClass>() - 8usize];
["Offset of field: _GIOStreamClass::parent_class"]
[::std::mem::offset_of!(_GIOStreamClass, parent_class) - 0usize];
["Offset of field: _GIOStreamClass::get_input_stream"]
[::std::mem::offset_of!(_GIOStreamClass, get_input_stream) - 136usize];
["Offset of field: _GIOStreamClass::get_output_stream"]
[::std::mem::offset_of!(_GIOStreamClass, get_output_stream) - 144usize];
["Offset of field: _GIOStreamClass::close_fn"]
[::std::mem::offset_of!(_GIOStreamClass, close_fn) - 152usize];
["Offset of field: _GIOStreamClass::close_async"]
[::std::mem::offset_of!(_GIOStreamClass, close_async) - 160usize];
["Offset of field: _GIOStreamClass::close_finish"]
[::std::mem::offset_of!(_GIOStreamClass, close_finish) - 168usize];
["Offset of field: _GIOStreamClass::_g_reserved1"]
[::std::mem::offset_of!(_GIOStreamClass, _g_reserved1) - 176usize];
["Offset of field: _GIOStreamClass::_g_reserved2"]
[::std::mem::offset_of!(_GIOStreamClass, _g_reserved2) - 184usize];
["Offset of field: _GIOStreamClass::_g_reserved3"]
[::std::mem::offset_of!(_GIOStreamClass, _g_reserved3) - 192usize];
["Offset of field: _GIOStreamClass::_g_reserved4"]
[::std::mem::offset_of!(_GIOStreamClass, _g_reserved4) - 200usize];
["Offset of field: _GIOStreamClass::_g_reserved5"]
[::std::mem::offset_of!(_GIOStreamClass, _g_reserved5) - 208usize];
["Offset of field: _GIOStreamClass::_g_reserved6"]
[::std::mem::offset_of!(_GIOStreamClass, _g_reserved6) - 216usize];
["Offset of field: _GIOStreamClass::_g_reserved7"]
[::std::mem::offset_of!(_GIOStreamClass, _g_reserved7) - 224usize];
["Offset of field: _GIOStreamClass::_g_reserved8"]
[::std::mem::offset_of!(_GIOStreamClass, _g_reserved8) - 232usize];
["Offset of field: _GIOStreamClass::_g_reserved9"]
[::std::mem::offset_of!(_GIOStreamClass, _g_reserved9) - 240usize];
["Offset of field: _GIOStreamClass::_g_reserved10"]
[::std::mem::offset_of!(_GIOStreamClass, _g_reserved10) - 248usize];
};
unsafe extern "C" {
pub fn g_io_stream_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_io_stream_get_input_stream(stream: *mut GIOStream) -> *mut GInputStream;
}
unsafe extern "C" {
pub fn g_io_stream_get_output_stream(stream: *mut GIOStream) -> *mut GOutputStream;
}
unsafe extern "C" {
pub fn g_io_stream_splice_async(
stream1: *mut GIOStream,
stream2: *mut GIOStream,
flags: GIOStreamSpliceFlags,
io_priority: ::std::os::raw::c_int,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
);
}
unsafe extern "C" {
pub fn g_io_stream_splice_finish(
result: *mut GAsyncResult,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_io_stream_close(
stream: *mut GIOStream,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_io_stream_close_async(
stream: *mut GIOStream,
io_priority: ::std::os::raw::c_int,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
);
}
unsafe extern "C" {
pub fn g_io_stream_close_finish(
stream: *mut GIOStream,
result: *mut GAsyncResult,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_io_stream_is_closed(stream: *mut GIOStream) -> gboolean;
}
unsafe extern "C" {
pub fn g_io_stream_has_pending(stream: *mut GIOStream) -> gboolean;
}
unsafe extern "C" {
pub fn g_io_stream_set_pending(stream: *mut GIOStream, error: *mut *mut GError) -> gboolean;
}
unsafe extern "C" {
pub fn g_io_stream_clear_pending(stream: *mut GIOStream);
}
pub type GFileIOStreamClass = _GFileIOStreamClass;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GFileIOStreamPrivate {
_unused: [u8; 0],
}
pub type GFileIOStreamPrivate = _GFileIOStreamPrivate;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GFileIOStream {
pub parent_instance: GIOStream,
pub priv_: *mut GFileIOStreamPrivate,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GFileIOStream"][::std::mem::size_of::<_GFileIOStream>() - 40usize];
["Alignment of _GFileIOStream"][::std::mem::align_of::<_GFileIOStream>() - 8usize];
["Offset of field: _GFileIOStream::parent_instance"]
[::std::mem::offset_of!(_GFileIOStream, parent_instance) - 0usize];
["Offset of field: _GFileIOStream::priv_"]
[::std::mem::offset_of!(_GFileIOStream, priv_) - 32usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GFileIOStreamClass {
pub parent_class: GIOStreamClass,
pub tell: ::std::option::Option<unsafe extern "C" fn(stream: *mut GFileIOStream) -> goffset>,
pub can_seek:
::std::option::Option<unsafe extern "C" fn(stream: *mut GFileIOStream) -> gboolean>,
pub seek: ::std::option::Option<
unsafe extern "C" fn(
stream: *mut GFileIOStream,
offset: goffset,
type_: GSeekType,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> gboolean,
>,
pub can_truncate:
::std::option::Option<unsafe extern "C" fn(stream: *mut GFileIOStream) -> gboolean>,
pub truncate_fn: ::std::option::Option<
unsafe extern "C" fn(
stream: *mut GFileIOStream,
size: goffset,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> gboolean,
>,
pub query_info: ::std::option::Option<
unsafe extern "C" fn(
stream: *mut GFileIOStream,
attributes: *const ::std::os::raw::c_char,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> *mut GFileInfo,
>,
pub query_info_async: ::std::option::Option<
unsafe extern "C" fn(
stream: *mut GFileIOStream,
attributes: *const ::std::os::raw::c_char,
io_priority: ::std::os::raw::c_int,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
),
>,
pub query_info_finish: ::std::option::Option<
unsafe extern "C" fn(
stream: *mut GFileIOStream,
result: *mut GAsyncResult,
error: *mut *mut GError,
) -> *mut GFileInfo,
>,
pub get_etag: ::std::option::Option<
unsafe extern "C" fn(stream: *mut GFileIOStream) -> *mut ::std::os::raw::c_char,
>,
pub _g_reserved1: ::std::option::Option<unsafe extern "C" fn()>,
pub _g_reserved2: ::std::option::Option<unsafe extern "C" fn()>,
pub _g_reserved3: ::std::option::Option<unsafe extern "C" fn()>,
pub _g_reserved4: ::std::option::Option<unsafe extern "C" fn()>,
pub _g_reserved5: ::std::option::Option<unsafe extern "C" fn()>,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GFileIOStreamClass"][::std::mem::size_of::<_GFileIOStreamClass>() - 368usize];
["Alignment of _GFileIOStreamClass"][::std::mem::align_of::<_GFileIOStreamClass>() - 8usize];
["Offset of field: _GFileIOStreamClass::parent_class"]
[::std::mem::offset_of!(_GFileIOStreamClass, parent_class) - 0usize];
["Offset of field: _GFileIOStreamClass::tell"]
[::std::mem::offset_of!(_GFileIOStreamClass, tell) - 256usize];
["Offset of field: _GFileIOStreamClass::can_seek"]
[::std::mem::offset_of!(_GFileIOStreamClass, can_seek) - 264usize];
["Offset of field: _GFileIOStreamClass::seek"]
[::std::mem::offset_of!(_GFileIOStreamClass, seek) - 272usize];
["Offset of field: _GFileIOStreamClass::can_truncate"]
[::std::mem::offset_of!(_GFileIOStreamClass, can_truncate) - 280usize];
["Offset of field: _GFileIOStreamClass::truncate_fn"]
[::std::mem::offset_of!(_GFileIOStreamClass, truncate_fn) - 288usize];
["Offset of field: _GFileIOStreamClass::query_info"]
[::std::mem::offset_of!(_GFileIOStreamClass, query_info) - 296usize];
["Offset of field: _GFileIOStreamClass::query_info_async"]
[::std::mem::offset_of!(_GFileIOStreamClass, query_info_async) - 304usize];
["Offset of field: _GFileIOStreamClass::query_info_finish"]
[::std::mem::offset_of!(_GFileIOStreamClass, query_info_finish) - 312usize];
["Offset of field: _GFileIOStreamClass::get_etag"]
[::std::mem::offset_of!(_GFileIOStreamClass, get_etag) - 320usize];
["Offset of field: _GFileIOStreamClass::_g_reserved1"]
[::std::mem::offset_of!(_GFileIOStreamClass, _g_reserved1) - 328usize];
["Offset of field: _GFileIOStreamClass::_g_reserved2"]
[::std::mem::offset_of!(_GFileIOStreamClass, _g_reserved2) - 336usize];
["Offset of field: _GFileIOStreamClass::_g_reserved3"]
[::std::mem::offset_of!(_GFileIOStreamClass, _g_reserved3) - 344usize];
["Offset of field: _GFileIOStreamClass::_g_reserved4"]
[::std::mem::offset_of!(_GFileIOStreamClass, _g_reserved4) - 352usize];
["Offset of field: _GFileIOStreamClass::_g_reserved5"]
[::std::mem::offset_of!(_GFileIOStreamClass, _g_reserved5) - 360usize];
};
unsafe extern "C" {
pub fn g_file_io_stream_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_file_io_stream_query_info(
stream: *mut GFileIOStream,
attributes: *const ::std::os::raw::c_char,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> *mut GFileInfo;
}
unsafe extern "C" {
pub fn g_file_io_stream_query_info_async(
stream: *mut GFileIOStream,
attributes: *const ::std::os::raw::c_char,
io_priority: ::std::os::raw::c_int,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
);
}
unsafe extern "C" {
pub fn g_file_io_stream_query_info_finish(
stream: *mut GFileIOStream,
result: *mut GAsyncResult,
error: *mut *mut GError,
) -> *mut GFileInfo;
}
unsafe extern "C" {
pub fn g_file_io_stream_get_etag(stream: *mut GFileIOStream) -> *mut ::std::os::raw::c_char;
}
pub type GFileMonitorClass = _GFileMonitorClass;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GFileMonitorPrivate {
_unused: [u8; 0],
}
pub type GFileMonitorPrivate = _GFileMonitorPrivate;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GFileMonitor {
pub parent_instance: GObject,
pub priv_: *mut GFileMonitorPrivate,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GFileMonitor"][::std::mem::size_of::<_GFileMonitor>() - 32usize];
["Alignment of _GFileMonitor"][::std::mem::align_of::<_GFileMonitor>() - 8usize];
["Offset of field: _GFileMonitor::parent_instance"]
[::std::mem::offset_of!(_GFileMonitor, parent_instance) - 0usize];
["Offset of field: _GFileMonitor::priv_"]
[::std::mem::offset_of!(_GFileMonitor, priv_) - 24usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GFileMonitorClass {
pub parent_class: GObjectClass,
pub changed: ::std::option::Option<
unsafe extern "C" fn(
monitor: *mut GFileMonitor,
file: *mut GFile,
other_file: *mut GFile,
event_type: GFileMonitorEvent,
),
>,
pub cancel: ::std::option::Option<unsafe extern "C" fn(monitor: *mut GFileMonitor) -> gboolean>,
pub _g_reserved1: ::std::option::Option<unsafe extern "C" fn()>,
pub _g_reserved2: ::std::option::Option<unsafe extern "C" fn()>,
pub _g_reserved3: ::std::option::Option<unsafe extern "C" fn()>,
pub _g_reserved4: ::std::option::Option<unsafe extern "C" fn()>,
pub _g_reserved5: ::std::option::Option<unsafe extern "C" fn()>,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GFileMonitorClass"][::std::mem::size_of::<_GFileMonitorClass>() - 192usize];
["Alignment of _GFileMonitorClass"][::std::mem::align_of::<_GFileMonitorClass>() - 8usize];
["Offset of field: _GFileMonitorClass::parent_class"]
[::std::mem::offset_of!(_GFileMonitorClass, parent_class) - 0usize];
["Offset of field: _GFileMonitorClass::changed"]
[::std::mem::offset_of!(_GFileMonitorClass, changed) - 136usize];
["Offset of field: _GFileMonitorClass::cancel"]
[::std::mem::offset_of!(_GFileMonitorClass, cancel) - 144usize];
["Offset of field: _GFileMonitorClass::_g_reserved1"]
[::std::mem::offset_of!(_GFileMonitorClass, _g_reserved1) - 152usize];
["Offset of field: _GFileMonitorClass::_g_reserved2"]
[::std::mem::offset_of!(_GFileMonitorClass, _g_reserved2) - 160usize];
["Offset of field: _GFileMonitorClass::_g_reserved3"]
[::std::mem::offset_of!(_GFileMonitorClass, _g_reserved3) - 168usize];
["Offset of field: _GFileMonitorClass::_g_reserved4"]
[::std::mem::offset_of!(_GFileMonitorClass, _g_reserved4) - 176usize];
["Offset of field: _GFileMonitorClass::_g_reserved5"]
[::std::mem::offset_of!(_GFileMonitorClass, _g_reserved5) - 184usize];
};
unsafe extern "C" {
pub fn g_file_monitor_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_file_monitor_cancel(monitor: *mut GFileMonitor) -> gboolean;
}
unsafe extern "C" {
pub fn g_file_monitor_is_cancelled(monitor: *mut GFileMonitor) -> gboolean;
}
unsafe extern "C" {
pub fn g_file_monitor_set_rate_limit(monitor: *mut GFileMonitor, limit_msecs: gint);
}
unsafe extern "C" {
pub fn g_file_monitor_emit_event(
monitor: *mut GFileMonitor,
child: *mut GFile,
other_file: *mut GFile,
event_type: GFileMonitorEvent,
);
}
pub type GFilenameCompleterClass = _GFilenameCompleterClass;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GFilenameCompleterClass {
pub parent_class: GObjectClass,
pub got_completion_data:
::std::option::Option<unsafe extern "C" fn(filename_completer: *mut GFilenameCompleter)>,
pub _g_reserved1: ::std::option::Option<unsafe extern "C" fn()>,
pub _g_reserved2: ::std::option::Option<unsafe extern "C" fn()>,
pub _g_reserved3: ::std::option::Option<unsafe extern "C" fn()>,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GFilenameCompleterClass"]
[::std::mem::size_of::<_GFilenameCompleterClass>() - 168usize];
["Alignment of _GFilenameCompleterClass"]
[::std::mem::align_of::<_GFilenameCompleterClass>() - 8usize];
["Offset of field: _GFilenameCompleterClass::parent_class"]
[::std::mem::offset_of!(_GFilenameCompleterClass, parent_class) - 0usize];
["Offset of field: _GFilenameCompleterClass::got_completion_data"]
[::std::mem::offset_of!(_GFilenameCompleterClass, got_completion_data) - 136usize];
["Offset of field: _GFilenameCompleterClass::_g_reserved1"]
[::std::mem::offset_of!(_GFilenameCompleterClass, _g_reserved1) - 144usize];
["Offset of field: _GFilenameCompleterClass::_g_reserved2"]
[::std::mem::offset_of!(_GFilenameCompleterClass, _g_reserved2) - 152usize];
["Offset of field: _GFilenameCompleterClass::_g_reserved3"]
[::std::mem::offset_of!(_GFilenameCompleterClass, _g_reserved3) - 160usize];
};
unsafe extern "C" {
pub fn g_filename_completer_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_filename_completer_new() -> *mut GFilenameCompleter;
}
unsafe extern "C" {
pub fn g_filename_completer_get_completion_suffix(
completer: *mut GFilenameCompleter,
initial_text: *const ::std::os::raw::c_char,
) -> *mut ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn g_filename_completer_get_completions(
completer: *mut GFilenameCompleter,
initial_text: *const ::std::os::raw::c_char,
) -> *mut *mut ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn g_filename_completer_set_dirs_only(
completer: *mut GFilenameCompleter,
dirs_only: gboolean,
);
}
pub type GFileOutputStreamClass = _GFileOutputStreamClass;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GFileOutputStreamPrivate {
_unused: [u8; 0],
}
pub type GFileOutputStreamPrivate = _GFileOutputStreamPrivate;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GFileOutputStream {
pub parent_instance: GOutputStream,
pub priv_: *mut GFileOutputStreamPrivate,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GFileOutputStream"][::std::mem::size_of::<_GFileOutputStream>() - 40usize];
["Alignment of _GFileOutputStream"][::std::mem::align_of::<_GFileOutputStream>() - 8usize];
["Offset of field: _GFileOutputStream::parent_instance"]
[::std::mem::offset_of!(_GFileOutputStream, parent_instance) - 0usize];
["Offset of field: _GFileOutputStream::priv_"]
[::std::mem::offset_of!(_GFileOutputStream, priv_) - 32usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GFileOutputStreamClass {
pub parent_class: GOutputStreamClass,
pub tell:
::std::option::Option<unsafe extern "C" fn(stream: *mut GFileOutputStream) -> goffset>,
pub can_seek:
::std::option::Option<unsafe extern "C" fn(stream: *mut GFileOutputStream) -> gboolean>,
pub seek: ::std::option::Option<
unsafe extern "C" fn(
stream: *mut GFileOutputStream,
offset: goffset,
type_: GSeekType,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> gboolean,
>,
pub can_truncate:
::std::option::Option<unsafe extern "C" fn(stream: *mut GFileOutputStream) -> gboolean>,
pub truncate_fn: ::std::option::Option<
unsafe extern "C" fn(
stream: *mut GFileOutputStream,
size: goffset,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> gboolean,
>,
pub query_info: ::std::option::Option<
unsafe extern "C" fn(
stream: *mut GFileOutputStream,
attributes: *const ::std::os::raw::c_char,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> *mut GFileInfo,
>,
pub query_info_async: ::std::option::Option<
unsafe extern "C" fn(
stream: *mut GFileOutputStream,
attributes: *const ::std::os::raw::c_char,
io_priority: ::std::os::raw::c_int,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
),
>,
pub query_info_finish: ::std::option::Option<
unsafe extern "C" fn(
stream: *mut GFileOutputStream,
result: *mut GAsyncResult,
error: *mut *mut GError,
) -> *mut GFileInfo,
>,
pub get_etag: ::std::option::Option<
unsafe extern "C" fn(stream: *mut GFileOutputStream) -> *mut ::std::os::raw::c_char,
>,
pub _g_reserved1: ::std::option::Option<unsafe extern "C" fn()>,
pub _g_reserved2: ::std::option::Option<unsafe extern "C" fn()>,
pub _g_reserved3: ::std::option::Option<unsafe extern "C" fn()>,
pub _g_reserved4: ::std::option::Option<unsafe extern "C" fn()>,
pub _g_reserved5: ::std::option::Option<unsafe extern "C" fn()>,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GFileOutputStreamClass"]
[::std::mem::size_of::<_GFileOutputStreamClass>() - 408usize];
["Alignment of _GFileOutputStreamClass"]
[::std::mem::align_of::<_GFileOutputStreamClass>() - 8usize];
["Offset of field: _GFileOutputStreamClass::parent_class"]
[::std::mem::offset_of!(_GFileOutputStreamClass, parent_class) - 0usize];
["Offset of field: _GFileOutputStreamClass::tell"]
[::std::mem::offset_of!(_GFileOutputStreamClass, tell) - 296usize];
["Offset of field: _GFileOutputStreamClass::can_seek"]
[::std::mem::offset_of!(_GFileOutputStreamClass, can_seek) - 304usize];
["Offset of field: _GFileOutputStreamClass::seek"]
[::std::mem::offset_of!(_GFileOutputStreamClass, seek) - 312usize];
["Offset of field: _GFileOutputStreamClass::can_truncate"]
[::std::mem::offset_of!(_GFileOutputStreamClass, can_truncate) - 320usize];
["Offset of field: _GFileOutputStreamClass::truncate_fn"]
[::std::mem::offset_of!(_GFileOutputStreamClass, truncate_fn) - 328usize];
["Offset of field: _GFileOutputStreamClass::query_info"]
[::std::mem::offset_of!(_GFileOutputStreamClass, query_info) - 336usize];
["Offset of field: _GFileOutputStreamClass::query_info_async"]
[::std::mem::offset_of!(_GFileOutputStreamClass, query_info_async) - 344usize];
["Offset of field: _GFileOutputStreamClass::query_info_finish"]
[::std::mem::offset_of!(_GFileOutputStreamClass, query_info_finish) - 352usize];
["Offset of field: _GFileOutputStreamClass::get_etag"]
[::std::mem::offset_of!(_GFileOutputStreamClass, get_etag) - 360usize];
["Offset of field: _GFileOutputStreamClass::_g_reserved1"]
[::std::mem::offset_of!(_GFileOutputStreamClass, _g_reserved1) - 368usize];
["Offset of field: _GFileOutputStreamClass::_g_reserved2"]
[::std::mem::offset_of!(_GFileOutputStreamClass, _g_reserved2) - 376usize];
["Offset of field: _GFileOutputStreamClass::_g_reserved3"]
[::std::mem::offset_of!(_GFileOutputStreamClass, _g_reserved3) - 384usize];
["Offset of field: _GFileOutputStreamClass::_g_reserved4"]
[::std::mem::offset_of!(_GFileOutputStreamClass, _g_reserved4) - 392usize];
["Offset of field: _GFileOutputStreamClass::_g_reserved5"]
[::std::mem::offset_of!(_GFileOutputStreamClass, _g_reserved5) - 400usize];
};
unsafe extern "C" {
pub fn g_file_output_stream_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_file_output_stream_query_info(
stream: *mut GFileOutputStream,
attributes: *const ::std::os::raw::c_char,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> *mut GFileInfo;
}
unsafe extern "C" {
pub fn g_file_output_stream_query_info_async(
stream: *mut GFileOutputStream,
attributes: *const ::std::os::raw::c_char,
io_priority: ::std::os::raw::c_int,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
);
}
unsafe extern "C" {
pub fn g_file_output_stream_query_info_finish(
stream: *mut GFileOutputStream,
result: *mut GAsyncResult,
error: *mut *mut GError,
) -> *mut GFileInfo;
}
unsafe extern "C" {
pub fn g_file_output_stream_get_etag(
stream: *mut GFileOutputStream,
) -> *mut ::std::os::raw::c_char;
}
pub type GInetAddressClass = _GInetAddressClass;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GInetAddressPrivate {
_unused: [u8; 0],
}
pub type GInetAddressPrivate = _GInetAddressPrivate;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GInetAddress {
pub parent_instance: GObject,
pub priv_: *mut GInetAddressPrivate,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GInetAddress"][::std::mem::size_of::<_GInetAddress>() - 32usize];
["Alignment of _GInetAddress"][::std::mem::align_of::<_GInetAddress>() - 8usize];
["Offset of field: _GInetAddress::parent_instance"]
[::std::mem::offset_of!(_GInetAddress, parent_instance) - 0usize];
["Offset of field: _GInetAddress::priv_"]
[::std::mem::offset_of!(_GInetAddress, priv_) - 24usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GInetAddressClass {
pub parent_class: GObjectClass,
pub to_string:
::std::option::Option<unsafe extern "C" fn(address: *mut GInetAddress) -> *mut gchar>,
pub to_bytes:
::std::option::Option<unsafe extern "C" fn(address: *mut GInetAddress) -> *const guint8>,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GInetAddressClass"][::std::mem::size_of::<_GInetAddressClass>() - 152usize];
["Alignment of _GInetAddressClass"][::std::mem::align_of::<_GInetAddressClass>() - 8usize];
["Offset of field: _GInetAddressClass::parent_class"]
[::std::mem::offset_of!(_GInetAddressClass, parent_class) - 0usize];
["Offset of field: _GInetAddressClass::to_string"]
[::std::mem::offset_of!(_GInetAddressClass, to_string) - 136usize];
["Offset of field: _GInetAddressClass::to_bytes"]
[::std::mem::offset_of!(_GInetAddressClass, to_bytes) - 144usize];
};
unsafe extern "C" {
pub fn g_inet_address_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_inet_address_new_from_string(string: *const gchar) -> *mut GInetAddress;
}
unsafe extern "C" {
pub fn g_inet_address_new_from_bytes(
bytes: *const guint8,
family: GSocketFamily,
) -> *mut GInetAddress;
}
unsafe extern "C" {
pub fn g_inet_address_new_loopback(family: GSocketFamily) -> *mut GInetAddress;
}
unsafe extern "C" {
pub fn g_inet_address_new_from_bytes_with_ipv6_info(
bytes: *const guint8,
family: GSocketFamily,
flowinfo: guint32,
scope_id: guint32,
) -> *mut GInetAddress;
}
unsafe extern "C" {
pub fn g_inet_address_new_any(family: GSocketFamily) -> *mut GInetAddress;
}
unsafe extern "C" {
pub fn g_inet_address_equal(
address: *mut GInetAddress,
other_address: *mut GInetAddress,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_inet_address_to_string(address: *mut GInetAddress) -> *mut gchar;
}
unsafe extern "C" {
pub fn g_inet_address_to_bytes(address: *mut GInetAddress) -> *const guint8;
}
unsafe extern "C" {
pub fn g_inet_address_get_native_size(address: *mut GInetAddress) -> gsize;
}
unsafe extern "C" {
pub fn g_inet_address_get_family(address: *mut GInetAddress) -> GSocketFamily;
}
unsafe extern "C" {
pub fn g_inet_address_get_is_any(address: *mut GInetAddress) -> gboolean;
}
unsafe extern "C" {
pub fn g_inet_address_get_is_loopback(address: *mut GInetAddress) -> gboolean;
}
unsafe extern "C" {
pub fn g_inet_address_get_is_link_local(address: *mut GInetAddress) -> gboolean;
}
unsafe extern "C" {
pub fn g_inet_address_get_is_site_local(address: *mut GInetAddress) -> gboolean;
}
unsafe extern "C" {
pub fn g_inet_address_get_is_multicast(address: *mut GInetAddress) -> gboolean;
}
unsafe extern "C" {
pub fn g_inet_address_get_is_mc_global(address: *mut GInetAddress) -> gboolean;
}
unsafe extern "C" {
pub fn g_inet_address_get_is_mc_link_local(address: *mut GInetAddress) -> gboolean;
}
unsafe extern "C" {
pub fn g_inet_address_get_is_mc_node_local(address: *mut GInetAddress) -> gboolean;
}
unsafe extern "C" {
pub fn g_inet_address_get_is_mc_org_local(address: *mut GInetAddress) -> gboolean;
}
unsafe extern "C" {
pub fn g_inet_address_get_is_mc_site_local(address: *mut GInetAddress) -> gboolean;
}
unsafe extern "C" {
pub fn g_inet_address_get_scope_id(address: *mut GInetAddress) -> guint32;
}
unsafe extern "C" {
pub fn g_inet_address_get_flowinfo(address: *mut GInetAddress) -> guint32;
}
pub type GInetAddressMaskClass = _GInetAddressMaskClass;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GInetAddressMaskPrivate {
_unused: [u8; 0],
}
pub type GInetAddressMaskPrivate = _GInetAddressMaskPrivate;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GInetAddressMask {
pub parent_instance: GObject,
pub priv_: *mut GInetAddressMaskPrivate,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GInetAddressMask"][::std::mem::size_of::<_GInetAddressMask>() - 32usize];
["Alignment of _GInetAddressMask"][::std::mem::align_of::<_GInetAddressMask>() - 8usize];
["Offset of field: _GInetAddressMask::parent_instance"]
[::std::mem::offset_of!(_GInetAddressMask, parent_instance) - 0usize];
["Offset of field: _GInetAddressMask::priv_"]
[::std::mem::offset_of!(_GInetAddressMask, priv_) - 24usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GInetAddressMaskClass {
pub parent_class: GObjectClass,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GInetAddressMaskClass"][::std::mem::size_of::<_GInetAddressMaskClass>() - 136usize];
["Alignment of _GInetAddressMaskClass"]
[::std::mem::align_of::<_GInetAddressMaskClass>() - 8usize];
["Offset of field: _GInetAddressMaskClass::parent_class"]
[::std::mem::offset_of!(_GInetAddressMaskClass, parent_class) - 0usize];
};
unsafe extern "C" {
pub fn g_inet_address_mask_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_inet_address_mask_new(
addr: *mut GInetAddress,
length: guint,
error: *mut *mut GError,
) -> *mut GInetAddressMask;
}
unsafe extern "C" {
pub fn g_inet_address_mask_new_from_string(
mask_string: *const gchar,
error: *mut *mut GError,
) -> *mut GInetAddressMask;
}
unsafe extern "C" {
pub fn g_inet_address_mask_to_string(mask: *mut GInetAddressMask) -> *mut gchar;
}
unsafe extern "C" {
pub fn g_inet_address_mask_get_family(mask: *mut GInetAddressMask) -> GSocketFamily;
}
unsafe extern "C" {
pub fn g_inet_address_mask_get_address(mask: *mut GInetAddressMask) -> *mut GInetAddress;
}
unsafe extern "C" {
pub fn g_inet_address_mask_get_length(mask: *mut GInetAddressMask) -> guint;
}
unsafe extern "C" {
pub fn g_inet_address_mask_matches(
mask: *mut GInetAddressMask,
address: *mut GInetAddress,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_inet_address_mask_equal(
mask: *mut GInetAddressMask,
mask2: *mut GInetAddressMask,
) -> gboolean;
}
pub type GSocketAddressClass = _GSocketAddressClass;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GSocketAddress {
pub parent_instance: GObject,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GSocketAddress"][::std::mem::size_of::<_GSocketAddress>() - 24usize];
["Alignment of _GSocketAddress"][::std::mem::align_of::<_GSocketAddress>() - 8usize];
["Offset of field: _GSocketAddress::parent_instance"]
[::std::mem::offset_of!(_GSocketAddress, parent_instance) - 0usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GSocketAddressClass {
pub parent_class: GObjectClass,
pub get_family:
::std::option::Option<unsafe extern "C" fn(address: *mut GSocketAddress) -> GSocketFamily>,
pub get_native_size:
::std::option::Option<unsafe extern "C" fn(address: *mut GSocketAddress) -> gssize>,
pub to_native: ::std::option::Option<
unsafe extern "C" fn(
address: *mut GSocketAddress,
dest: gpointer,
destlen: gsize,
error: *mut *mut GError,
) -> gboolean,
>,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GSocketAddressClass"][::std::mem::size_of::<_GSocketAddressClass>() - 160usize];
["Alignment of _GSocketAddressClass"][::std::mem::align_of::<_GSocketAddressClass>() - 8usize];
["Offset of field: _GSocketAddressClass::parent_class"]
[::std::mem::offset_of!(_GSocketAddressClass, parent_class) - 0usize];
["Offset of field: _GSocketAddressClass::get_family"]
[::std::mem::offset_of!(_GSocketAddressClass, get_family) - 136usize];
["Offset of field: _GSocketAddressClass::get_native_size"]
[::std::mem::offset_of!(_GSocketAddressClass, get_native_size) - 144usize];
["Offset of field: _GSocketAddressClass::to_native"]
[::std::mem::offset_of!(_GSocketAddressClass, to_native) - 152usize];
};
unsafe extern "C" {
pub fn g_socket_address_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_socket_address_get_family(address: *mut GSocketAddress) -> GSocketFamily;
}
unsafe extern "C" {
pub fn g_socket_address_new_from_native(native: gpointer, len: gsize) -> *mut GSocketAddress;
}
unsafe extern "C" {
pub fn g_socket_address_to_native(
address: *mut GSocketAddress,
dest: gpointer,
destlen: gsize,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_socket_address_get_native_size(address: *mut GSocketAddress) -> gssize;
}
pub type GInetSocketAddressClass = _GInetSocketAddressClass;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GInetSocketAddressPrivate {
_unused: [u8; 0],
}
pub type GInetSocketAddressPrivate = _GInetSocketAddressPrivate;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GInetSocketAddress {
pub parent_instance: GSocketAddress,
pub priv_: *mut GInetSocketAddressPrivate,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GInetSocketAddress"][::std::mem::size_of::<_GInetSocketAddress>() - 32usize];
["Alignment of _GInetSocketAddress"][::std::mem::align_of::<_GInetSocketAddress>() - 8usize];
["Offset of field: _GInetSocketAddress::parent_instance"]
[::std::mem::offset_of!(_GInetSocketAddress, parent_instance) - 0usize];
["Offset of field: _GInetSocketAddress::priv_"]
[::std::mem::offset_of!(_GInetSocketAddress, priv_) - 24usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GInetSocketAddressClass {
pub parent_class: GSocketAddressClass,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GInetSocketAddressClass"]
[::std::mem::size_of::<_GInetSocketAddressClass>() - 160usize];
["Alignment of _GInetSocketAddressClass"]
[::std::mem::align_of::<_GInetSocketAddressClass>() - 8usize];
["Offset of field: _GInetSocketAddressClass::parent_class"]
[::std::mem::offset_of!(_GInetSocketAddressClass, parent_class) - 0usize];
};
unsafe extern "C" {
pub fn g_inet_socket_address_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_inet_socket_address_new(
address: *mut GInetAddress,
port: guint16,
) -> *mut GSocketAddress;
}
unsafe extern "C" {
pub fn g_inet_socket_address_new_from_string(
address: *const ::std::os::raw::c_char,
port: guint,
) -> *mut GSocketAddress;
}
unsafe extern "C" {
pub fn g_inet_socket_address_get_address(address: *mut GInetSocketAddress)
-> *mut GInetAddress;
}
unsafe extern "C" {
pub fn g_inet_socket_address_get_port(address: *mut GInetSocketAddress) -> guint16;
}
unsafe extern "C" {
pub fn g_inet_socket_address_get_flowinfo(address: *mut GInetSocketAddress) -> guint32;
}
unsafe extern "C" {
pub fn g_inet_socket_address_get_scope_id(address: *mut GInetSocketAddress) -> guint32;
}
unsafe extern "C" {
pub fn g_app_info_create_flags_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_converter_flags_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_converter_result_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_data_stream_byte_order_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_data_stream_newline_type_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_file_attribute_type_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_file_attribute_info_flags_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_file_attribute_status_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_file_query_info_flags_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_file_create_flags_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_file_measure_flags_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_mount_mount_flags_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_mount_unmount_flags_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_drive_start_flags_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_drive_start_stop_type_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_file_copy_flags_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_file_monitor_flags_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_file_type_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_filesystem_preview_type_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_file_monitor_event_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_io_error_enum_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_ask_password_flags_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_password_save_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_mount_operation_result_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_output_stream_splice_flags_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_io_stream_splice_flags_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_emblem_origin_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_resolver_error_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_resolver_record_type_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_resource_error_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_resource_flags_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_resource_lookup_flags_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_socket_family_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_socket_type_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_socket_msg_flags_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_socket_protocol_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_zlib_compressor_format_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_unix_socket_address_type_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_bus_type_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_bus_name_owner_flags_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_bus_name_watcher_flags_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_dbus_proxy_flags_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_dbus_error_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_dbus_connection_flags_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_dbus_capability_flags_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_dbus_call_flags_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_dbus_message_type_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_dbus_message_flags_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_dbus_message_header_field_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_dbus_property_info_flags_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_dbus_subtree_flags_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_dbus_server_flags_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_dbus_signal_flags_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_dbus_send_message_flags_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_credentials_type_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_dbus_message_byte_order_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_application_flags_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_tls_error_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_tls_certificate_flags_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_tls_authentication_mode_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_tls_channel_binding_type_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_tls_channel_binding_error_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_tls_rehandshake_mode_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_tls_password_flags_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_tls_interaction_result_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_dbus_interface_skeleton_flags_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_dbus_object_manager_client_flags_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_tls_database_verify_flags_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_tls_database_lookup_flags_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_tls_certificate_request_flags_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_tls_protocol_version_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_io_module_scope_flags_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_socket_client_event_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_socket_listener_event_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_test_dbus_flags_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_subprocess_flags_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_notification_priority_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_network_connectivity_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_pollable_return_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_memory_monitor_warning_level_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_resolver_name_lookup_flags_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_settings_bind_flags_get_type() -> GType;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GIOModuleScope {
_unused: [u8; 0],
}
pub type GIOModuleScope = _GIOModuleScope;
unsafe extern "C" {
pub fn g_io_module_scope_new(flags: GIOModuleScopeFlags) -> *mut GIOModuleScope;
}
unsafe extern "C" {
pub fn g_io_module_scope_free(scope: *mut GIOModuleScope);
}
unsafe extern "C" {
pub fn g_io_module_scope_block(scope: *mut GIOModuleScope, basename: *const gchar);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GIOModuleClass {
_unused: [u8; 0],
}
pub type GIOModuleClass = _GIOModuleClass;
unsafe extern "C" {
pub fn g_io_module_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_io_module_new(filename: *const gchar) -> *mut GIOModule;
}
unsafe extern "C" {
pub fn g_io_modules_scan_all_in_directory(dirname: *const ::std::os::raw::c_char);
}
unsafe extern "C" {
pub fn g_io_modules_load_all_in_directory(dirname: *const gchar) -> *mut GList;
}
unsafe extern "C" {
pub fn g_io_modules_scan_all_in_directory_with_scope(
dirname: *const gchar,
scope: *mut GIOModuleScope,
);
}
unsafe extern "C" {
pub fn g_io_modules_load_all_in_directory_with_scope(
dirname: *const gchar,
scope: *mut GIOModuleScope,
) -> *mut GList;
}
unsafe extern "C" {
pub fn g_io_extension_point_register(
name: *const ::std::os::raw::c_char,
) -> *mut GIOExtensionPoint;
}
unsafe extern "C" {
pub fn g_io_extension_point_lookup(
name: *const ::std::os::raw::c_char,
) -> *mut GIOExtensionPoint;
}
unsafe extern "C" {
pub fn g_io_extension_point_set_required_type(
extension_point: *mut GIOExtensionPoint,
type_: GType,
);
}
unsafe extern "C" {
pub fn g_io_extension_point_get_required_type(extension_point: *mut GIOExtensionPoint)
-> GType;
}
unsafe extern "C" {
pub fn g_io_extension_point_get_extensions(
extension_point: *mut GIOExtensionPoint,
) -> *mut GList;
}
unsafe extern "C" {
pub fn g_io_extension_point_get_extension_by_name(
extension_point: *mut GIOExtensionPoint,
name: *const ::std::os::raw::c_char,
) -> *mut GIOExtension;
}
unsafe extern "C" {
pub fn g_io_extension_point_implement(
extension_point_name: *const ::std::os::raw::c_char,
type_: GType,
extension_name: *const ::std::os::raw::c_char,
priority: gint,
) -> *mut GIOExtension;
}
unsafe extern "C" {
pub fn g_io_extension_get_type(extension: *mut GIOExtension) -> GType;
}
unsafe extern "C" {
pub fn g_io_extension_get_name(extension: *mut GIOExtension) -> *const ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn g_io_extension_get_priority(extension: *mut GIOExtension) -> gint;
}
unsafe extern "C" {
pub fn g_io_extension_ref_class(extension: *mut GIOExtension) -> *mut GTypeClass;
}
unsafe extern "C" {
pub fn g_io_module_load(module: *mut GIOModule);
}
unsafe extern "C" {
pub fn g_io_module_unload(module: *mut GIOModule);
}
unsafe extern "C" {
pub fn g_io_module_query() -> *mut *mut ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn g_io_scheduler_push_job(
job_func: GIOSchedulerJobFunc,
user_data: gpointer,
notify: GDestroyNotify,
io_priority: gint,
cancellable: *mut GCancellable,
);
}
unsafe extern "C" {
pub fn g_io_scheduler_cancel_all_jobs();
}
unsafe extern "C" {
pub fn g_io_scheduler_job_send_to_mainloop(
job: *mut GIOSchedulerJob,
func: GSourceFunc,
user_data: gpointer,
notify: GDestroyNotify,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_io_scheduler_job_send_to_mainloop_async(
job: *mut GIOSchedulerJob,
func: GSourceFunc,
user_data: gpointer,
notify: GDestroyNotify,
);
}
unsafe extern "C" {
pub fn g_list_model_get_type() -> GType;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GListModel {
_unused: [u8; 0],
}
pub type GListModel = _GListModel;
pub type GListModelInterface = _GListModelInterface;
pub type GListModel_autoptr = *mut GListModel;
pub type GListModel_listautoptr = *mut GList;
pub type GListModel_slistautoptr = *mut GSList;
pub type GListModel_queueautoptr = *mut GQueue;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GListModelInterface {
pub g_iface: GTypeInterface,
pub get_item_type: ::std::option::Option<unsafe extern "C" fn(list: *mut GListModel) -> GType>,
pub get_n_items: ::std::option::Option<unsafe extern "C" fn(list: *mut GListModel) -> guint>,
pub get_item: ::std::option::Option<
unsafe extern "C" fn(list: *mut GListModel, position: guint) -> gpointer,
>,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GListModelInterface"][::std::mem::size_of::<_GListModelInterface>() - 40usize];
["Alignment of _GListModelInterface"][::std::mem::align_of::<_GListModelInterface>() - 8usize];
["Offset of field: _GListModelInterface::g_iface"]
[::std::mem::offset_of!(_GListModelInterface, g_iface) - 0usize];
["Offset of field: _GListModelInterface::get_item_type"]
[::std::mem::offset_of!(_GListModelInterface, get_item_type) - 16usize];
["Offset of field: _GListModelInterface::get_n_items"]
[::std::mem::offset_of!(_GListModelInterface, get_n_items) - 24usize];
["Offset of field: _GListModelInterface::get_item"]
[::std::mem::offset_of!(_GListModelInterface, get_item) - 32usize];
};
unsafe extern "C" {
pub fn g_list_model_get_item_type(list: *mut GListModel) -> GType;
}
unsafe extern "C" {
pub fn g_list_model_get_n_items(list: *mut GListModel) -> guint;
}
unsafe extern "C" {
pub fn g_list_model_get_item(list: *mut GListModel, position: guint) -> gpointer;
}
unsafe extern "C" {
pub fn g_list_model_get_object(list: *mut GListModel, position: guint) -> *mut GObject;
}
unsafe extern "C" {
pub fn g_list_model_items_changed(
list: *mut GListModel,
position: guint,
removed: guint,
added: guint,
);
}
unsafe extern "C" {
pub fn g_list_store_get_type() -> GType;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GListStore {
_unused: [u8; 0],
}
pub type GListStore = _GListStore;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct GListStoreClass {
pub parent_class: GObjectClass,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of GListStoreClass"][::std::mem::size_of::<GListStoreClass>() - 136usize];
["Alignment of GListStoreClass"][::std::mem::align_of::<GListStoreClass>() - 8usize];
["Offset of field: GListStoreClass::parent_class"]
[::std::mem::offset_of!(GListStoreClass, parent_class) - 0usize];
};
pub type GListStore_autoptr = *mut GListStore;
pub type GListStore_listautoptr = *mut GList;
pub type GListStore_slistautoptr = *mut GSList;
pub type GListStore_queueautoptr = *mut GQueue;
pub type GListStoreClass_autoptr = *mut GListStoreClass;
pub type GListStoreClass_listautoptr = *mut GList;
pub type GListStoreClass_slistautoptr = *mut GSList;
pub type GListStoreClass_queueautoptr = *mut GQueue;
unsafe extern "C" {
pub fn g_list_store_new(item_type: GType) -> *mut GListStore;
}
unsafe extern "C" {
pub fn g_list_store_insert(store: *mut GListStore, position: guint, item: gpointer);
}
unsafe extern "C" {
pub fn g_list_store_insert_sorted(
store: *mut GListStore,
item: gpointer,
compare_func: GCompareDataFunc,
user_data: gpointer,
) -> guint;
}
unsafe extern "C" {
pub fn g_list_store_sort(
store: *mut GListStore,
compare_func: GCompareDataFunc,
user_data: gpointer,
);
}
unsafe extern "C" {
pub fn g_list_store_append(store: *mut GListStore, item: gpointer);
}
unsafe extern "C" {
pub fn g_list_store_remove(store: *mut GListStore, position: guint);
}
unsafe extern "C" {
pub fn g_list_store_remove_all(store: *mut GListStore);
}
unsafe extern "C" {
pub fn g_list_store_splice(
store: *mut GListStore,
position: guint,
n_removals: guint,
additions: *mut gpointer,
n_additions: guint,
);
}
unsafe extern "C" {
pub fn g_list_store_find(
store: *mut GListStore,
item: gpointer,
position: *mut guint,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_list_store_find_with_equal_func(
store: *mut GListStore,
item: gpointer,
equal_func: GEqualFunc,
position: *mut guint,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_list_store_find_with_equal_func_full(
store: *mut GListStore,
item: gpointer,
equal_func: GEqualFuncFull,
user_data: gpointer,
position: *mut guint,
) -> gboolean;
}
pub type GLoadableIconIface = _GLoadableIconIface;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GLoadableIconIface {
pub g_iface: GTypeInterface,
pub load: ::std::option::Option<
unsafe extern "C" fn(
icon: *mut GLoadableIcon,
size: ::std::os::raw::c_int,
type_: *mut *mut ::std::os::raw::c_char,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> *mut GInputStream,
>,
pub load_async: ::std::option::Option<
unsafe extern "C" fn(
icon: *mut GLoadableIcon,
size: ::std::os::raw::c_int,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
),
>,
pub load_finish: ::std::option::Option<
unsafe extern "C" fn(
icon: *mut GLoadableIcon,
res: *mut GAsyncResult,
type_: *mut *mut ::std::os::raw::c_char,
error: *mut *mut GError,
) -> *mut GInputStream,
>,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GLoadableIconIface"][::std::mem::size_of::<_GLoadableIconIface>() - 40usize];
["Alignment of _GLoadableIconIface"][::std::mem::align_of::<_GLoadableIconIface>() - 8usize];
["Offset of field: _GLoadableIconIface::g_iface"]
[::std::mem::offset_of!(_GLoadableIconIface, g_iface) - 0usize];
["Offset of field: _GLoadableIconIface::load"]
[::std::mem::offset_of!(_GLoadableIconIface, load) - 16usize];
["Offset of field: _GLoadableIconIface::load_async"]
[::std::mem::offset_of!(_GLoadableIconIface, load_async) - 24usize];
["Offset of field: _GLoadableIconIface::load_finish"]
[::std::mem::offset_of!(_GLoadableIconIface, load_finish) - 32usize];
};
unsafe extern "C" {
pub fn g_loadable_icon_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_loadable_icon_load(
icon: *mut GLoadableIcon,
size: ::std::os::raw::c_int,
type_: *mut *mut ::std::os::raw::c_char,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> *mut GInputStream;
}
unsafe extern "C" {
pub fn g_loadable_icon_load_async(
icon: *mut GLoadableIcon,
size: ::std::os::raw::c_int,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
);
}
unsafe extern "C" {
pub fn g_loadable_icon_load_finish(
icon: *mut GLoadableIcon,
res: *mut GAsyncResult,
type_: *mut *mut ::std::os::raw::c_char,
error: *mut *mut GError,
) -> *mut GInputStream;
}
pub type GMemoryInputStreamClass = _GMemoryInputStreamClass;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GMemoryInputStreamPrivate {
_unused: [u8; 0],
}
pub type GMemoryInputStreamPrivate = _GMemoryInputStreamPrivate;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GMemoryInputStream {
pub parent_instance: GInputStream,
pub priv_: *mut GMemoryInputStreamPrivate,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GMemoryInputStream"][::std::mem::size_of::<_GMemoryInputStream>() - 40usize];
["Alignment of _GMemoryInputStream"][::std::mem::align_of::<_GMemoryInputStream>() - 8usize];
["Offset of field: _GMemoryInputStream::parent_instance"]
[::std::mem::offset_of!(_GMemoryInputStream, parent_instance) - 0usize];
["Offset of field: _GMemoryInputStream::priv_"]
[::std::mem::offset_of!(_GMemoryInputStream, priv_) - 32usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GMemoryInputStreamClass {
pub parent_class: GInputStreamClass,
pub _g_reserved1: ::std::option::Option<unsafe extern "C" fn()>,
pub _g_reserved2: ::std::option::Option<unsafe extern "C" fn()>,
pub _g_reserved3: ::std::option::Option<unsafe extern "C" fn()>,
pub _g_reserved4: ::std::option::Option<unsafe extern "C" fn()>,
pub _g_reserved5: ::std::option::Option<unsafe extern "C" fn()>,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GMemoryInputStreamClass"]
[::std::mem::size_of::<_GMemoryInputStreamClass>() - 288usize];
["Alignment of _GMemoryInputStreamClass"]
[::std::mem::align_of::<_GMemoryInputStreamClass>() - 8usize];
["Offset of field: _GMemoryInputStreamClass::parent_class"]
[::std::mem::offset_of!(_GMemoryInputStreamClass, parent_class) - 0usize];
["Offset of field: _GMemoryInputStreamClass::_g_reserved1"]
[::std::mem::offset_of!(_GMemoryInputStreamClass, _g_reserved1) - 248usize];
["Offset of field: _GMemoryInputStreamClass::_g_reserved2"]
[::std::mem::offset_of!(_GMemoryInputStreamClass, _g_reserved2) - 256usize];
["Offset of field: _GMemoryInputStreamClass::_g_reserved3"]
[::std::mem::offset_of!(_GMemoryInputStreamClass, _g_reserved3) - 264usize];
["Offset of field: _GMemoryInputStreamClass::_g_reserved4"]
[::std::mem::offset_of!(_GMemoryInputStreamClass, _g_reserved4) - 272usize];
["Offset of field: _GMemoryInputStreamClass::_g_reserved5"]
[::std::mem::offset_of!(_GMemoryInputStreamClass, _g_reserved5) - 280usize];
};
unsafe extern "C" {
pub fn g_memory_input_stream_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_memory_input_stream_new() -> *mut GInputStream;
}
unsafe extern "C" {
pub fn g_memory_input_stream_new_from_data(
data: *const ::std::os::raw::c_void,
len: gssize,
destroy: GDestroyNotify,
) -> *mut GInputStream;
}
unsafe extern "C" {
pub fn g_memory_input_stream_new_from_bytes(bytes: *mut GBytes) -> *mut GInputStream;
}
unsafe extern "C" {
pub fn g_memory_input_stream_add_data(
stream: *mut GMemoryInputStream,
data: *const ::std::os::raw::c_void,
len: gssize,
destroy: GDestroyNotify,
);
}
unsafe extern "C" {
pub fn g_memory_input_stream_add_bytes(stream: *mut GMemoryInputStream, bytes: *mut GBytes);
}
unsafe extern "C" {
pub fn g_memory_monitor_get_type() -> GType;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GMemoryMonitor {
_unused: [u8; 0],
}
pub type GMemoryMonitor = _GMemoryMonitor;
pub type GMemoryMonitorInterface = _GMemoryMonitorInterface;
pub type GMemoryMonitor_autoptr = *mut GMemoryMonitor;
pub type GMemoryMonitor_listautoptr = *mut GList;
pub type GMemoryMonitor_slistautoptr = *mut GSList;
pub type GMemoryMonitor_queueautoptr = *mut GQueue;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GMemoryMonitorInterface {
pub g_iface: GTypeInterface,
pub low_memory_warning: ::std::option::Option<
unsafe extern "C" fn(monitor: *mut GMemoryMonitor, level: GMemoryMonitorWarningLevel),
>,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GMemoryMonitorInterface"]
[::std::mem::size_of::<_GMemoryMonitorInterface>() - 24usize];
["Alignment of _GMemoryMonitorInterface"]
[::std::mem::align_of::<_GMemoryMonitorInterface>() - 8usize];
["Offset of field: _GMemoryMonitorInterface::g_iface"]
[::std::mem::offset_of!(_GMemoryMonitorInterface, g_iface) - 0usize];
["Offset of field: _GMemoryMonitorInterface::low_memory_warning"]
[::std::mem::offset_of!(_GMemoryMonitorInterface, low_memory_warning) - 16usize];
};
unsafe extern "C" {
pub fn g_memory_monitor_dup_default() -> *mut GMemoryMonitor;
}
pub type GMemoryOutputStreamClass = _GMemoryOutputStreamClass;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GMemoryOutputStreamPrivate {
_unused: [u8; 0],
}
pub type GMemoryOutputStreamPrivate = _GMemoryOutputStreamPrivate;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GMemoryOutputStream {
pub parent_instance: GOutputStream,
pub priv_: *mut GMemoryOutputStreamPrivate,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GMemoryOutputStream"][::std::mem::size_of::<_GMemoryOutputStream>() - 40usize];
["Alignment of _GMemoryOutputStream"][::std::mem::align_of::<_GMemoryOutputStream>() - 8usize];
["Offset of field: _GMemoryOutputStream::parent_instance"]
[::std::mem::offset_of!(_GMemoryOutputStream, parent_instance) - 0usize];
["Offset of field: _GMemoryOutputStream::priv_"]
[::std::mem::offset_of!(_GMemoryOutputStream, priv_) - 32usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GMemoryOutputStreamClass {
pub parent_class: GOutputStreamClass,
pub _g_reserved1: ::std::option::Option<unsafe extern "C" fn()>,
pub _g_reserved2: ::std::option::Option<unsafe extern "C" fn()>,
pub _g_reserved3: ::std::option::Option<unsafe extern "C" fn()>,
pub _g_reserved4: ::std::option::Option<unsafe extern "C" fn()>,
pub _g_reserved5: ::std::option::Option<unsafe extern "C" fn()>,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GMemoryOutputStreamClass"]
[::std::mem::size_of::<_GMemoryOutputStreamClass>() - 336usize];
["Alignment of _GMemoryOutputStreamClass"]
[::std::mem::align_of::<_GMemoryOutputStreamClass>() - 8usize];
["Offset of field: _GMemoryOutputStreamClass::parent_class"]
[::std::mem::offset_of!(_GMemoryOutputStreamClass, parent_class) - 0usize];
["Offset of field: _GMemoryOutputStreamClass::_g_reserved1"]
[::std::mem::offset_of!(_GMemoryOutputStreamClass, _g_reserved1) - 296usize];
["Offset of field: _GMemoryOutputStreamClass::_g_reserved2"]
[::std::mem::offset_of!(_GMemoryOutputStreamClass, _g_reserved2) - 304usize];
["Offset of field: _GMemoryOutputStreamClass::_g_reserved3"]
[::std::mem::offset_of!(_GMemoryOutputStreamClass, _g_reserved3) - 312usize];
["Offset of field: _GMemoryOutputStreamClass::_g_reserved4"]
[::std::mem::offset_of!(_GMemoryOutputStreamClass, _g_reserved4) - 320usize];
["Offset of field: _GMemoryOutputStreamClass::_g_reserved5"]
[::std::mem::offset_of!(_GMemoryOutputStreamClass, _g_reserved5) - 328usize];
};
pub type GReallocFunc =
::std::option::Option<unsafe extern "C" fn(data: gpointer, size: gsize) -> gpointer>;
unsafe extern "C" {
pub fn g_memory_output_stream_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_memory_output_stream_new(
data: gpointer,
size: gsize,
realloc_function: GReallocFunc,
destroy_function: GDestroyNotify,
) -> *mut GOutputStream;
}
unsafe extern "C" {
pub fn g_memory_output_stream_new_resizable() -> *mut GOutputStream;
}
unsafe extern "C" {
pub fn g_memory_output_stream_get_data(ostream: *mut GMemoryOutputStream) -> gpointer;
}
unsafe extern "C" {
pub fn g_memory_output_stream_get_size(ostream: *mut GMemoryOutputStream) -> gsize;
}
unsafe extern "C" {
pub fn g_memory_output_stream_get_data_size(ostream: *mut GMemoryOutputStream) -> gsize;
}
unsafe extern "C" {
pub fn g_memory_output_stream_steal_data(ostream: *mut GMemoryOutputStream) -> gpointer;
}
unsafe extern "C" {
pub fn g_memory_output_stream_steal_as_bytes(ostream: *mut GMemoryOutputStream) -> *mut GBytes;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GMenuModelPrivate {
_unused: [u8; 0],
}
pub type GMenuModelPrivate = _GMenuModelPrivate;
pub type GMenuModelClass = _GMenuModelClass;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GMenuAttributeIterPrivate {
_unused: [u8; 0],
}
pub type GMenuAttributeIterPrivate = _GMenuAttributeIterPrivate;
pub type GMenuAttributeIterClass = _GMenuAttributeIterClass;
pub type GMenuAttributeIter = _GMenuAttributeIter;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GMenuLinkIterPrivate {
_unused: [u8; 0],
}
pub type GMenuLinkIterPrivate = _GMenuLinkIterPrivate;
pub type GMenuLinkIterClass = _GMenuLinkIterClass;
pub type GMenuLinkIter = _GMenuLinkIter;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GMenuModel {
pub parent_instance: GObject,
pub priv_: *mut GMenuModelPrivate,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GMenuModel"][::std::mem::size_of::<_GMenuModel>() - 32usize];
["Alignment of _GMenuModel"][::std::mem::align_of::<_GMenuModel>() - 8usize];
["Offset of field: _GMenuModel::parent_instance"]
[::std::mem::offset_of!(_GMenuModel, parent_instance) - 0usize];
["Offset of field: _GMenuModel::priv_"][::std::mem::offset_of!(_GMenuModel, priv_) - 24usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GMenuModelClass {
pub parent_class: GObjectClass,
pub is_mutable: ::std::option::Option<unsafe extern "C" fn(model: *mut GMenuModel) -> gboolean>,
pub get_n_items: ::std::option::Option<unsafe extern "C" fn(model: *mut GMenuModel) -> gint>,
pub get_item_attributes: ::std::option::Option<
unsafe extern "C" fn(
model: *mut GMenuModel,
item_index: gint,
attributes: *mut *mut GHashTable,
),
>,
pub iterate_item_attributes: ::std::option::Option<
unsafe extern "C" fn(model: *mut GMenuModel, item_index: gint) -> *mut GMenuAttributeIter,
>,
pub get_item_attribute_value: ::std::option::Option<
unsafe extern "C" fn(
model: *mut GMenuModel,
item_index: gint,
attribute: *const gchar,
expected_type: *const GVariantType,
) -> *mut GVariant,
>,
pub get_item_links: ::std::option::Option<
unsafe extern "C" fn(model: *mut GMenuModel, item_index: gint, links: *mut *mut GHashTable),
>,
pub iterate_item_links: ::std::option::Option<
unsafe extern "C" fn(model: *mut GMenuModel, item_index: gint) -> *mut GMenuLinkIter,
>,
pub get_item_link: ::std::option::Option<
unsafe extern "C" fn(
model: *mut GMenuModel,
item_index: gint,
link: *const gchar,
) -> *mut GMenuModel,
>,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GMenuModelClass"][::std::mem::size_of::<_GMenuModelClass>() - 200usize];
["Alignment of _GMenuModelClass"][::std::mem::align_of::<_GMenuModelClass>() - 8usize];
["Offset of field: _GMenuModelClass::parent_class"]
[::std::mem::offset_of!(_GMenuModelClass, parent_class) - 0usize];
["Offset of field: _GMenuModelClass::is_mutable"]
[::std::mem::offset_of!(_GMenuModelClass, is_mutable) - 136usize];
["Offset of field: _GMenuModelClass::get_n_items"]
[::std::mem::offset_of!(_GMenuModelClass, get_n_items) - 144usize];
["Offset of field: _GMenuModelClass::get_item_attributes"]
[::std::mem::offset_of!(_GMenuModelClass, get_item_attributes) - 152usize];
["Offset of field: _GMenuModelClass::iterate_item_attributes"]
[::std::mem::offset_of!(_GMenuModelClass, iterate_item_attributes) - 160usize];
["Offset of field: _GMenuModelClass::get_item_attribute_value"]
[::std::mem::offset_of!(_GMenuModelClass, get_item_attribute_value) - 168usize];
["Offset of field: _GMenuModelClass::get_item_links"]
[::std::mem::offset_of!(_GMenuModelClass, get_item_links) - 176usize];
["Offset of field: _GMenuModelClass::iterate_item_links"]
[::std::mem::offset_of!(_GMenuModelClass, iterate_item_links) - 184usize];
["Offset of field: _GMenuModelClass::get_item_link"]
[::std::mem::offset_of!(_GMenuModelClass, get_item_link) - 192usize];
};
unsafe extern "C" {
pub fn g_menu_model_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_menu_model_is_mutable(model: *mut GMenuModel) -> gboolean;
}
unsafe extern "C" {
pub fn g_menu_model_get_n_items(model: *mut GMenuModel) -> gint;
}
unsafe extern "C" {
pub fn g_menu_model_iterate_item_attributes(
model: *mut GMenuModel,
item_index: gint,
) -> *mut GMenuAttributeIter;
}
unsafe extern "C" {
pub fn g_menu_model_get_item_attribute_value(
model: *mut GMenuModel,
item_index: gint,
attribute: *const gchar,
expected_type: *const GVariantType,
) -> *mut GVariant;
}
unsafe extern "C" {
pub fn g_menu_model_get_item_attribute(
model: *mut GMenuModel,
item_index: gint,
attribute: *const gchar,
format_string: *const gchar,
...
) -> gboolean;
}
unsafe extern "C" {
pub fn g_menu_model_iterate_item_links(
model: *mut GMenuModel,
item_index: gint,
) -> *mut GMenuLinkIter;
}
unsafe extern "C" {
pub fn g_menu_model_get_item_link(
model: *mut GMenuModel,
item_index: gint,
link: *const gchar,
) -> *mut GMenuModel;
}
unsafe extern "C" {
pub fn g_menu_model_items_changed(
model: *mut GMenuModel,
position: gint,
removed: gint,
added: gint,
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GMenuAttributeIter {
pub parent_instance: GObject,
pub priv_: *mut GMenuAttributeIterPrivate,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GMenuAttributeIter"][::std::mem::size_of::<_GMenuAttributeIter>() - 32usize];
["Alignment of _GMenuAttributeIter"][::std::mem::align_of::<_GMenuAttributeIter>() - 8usize];
["Offset of field: _GMenuAttributeIter::parent_instance"]
[::std::mem::offset_of!(_GMenuAttributeIter, parent_instance) - 0usize];
["Offset of field: _GMenuAttributeIter::priv_"]
[::std::mem::offset_of!(_GMenuAttributeIter, priv_) - 24usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GMenuAttributeIterClass {
pub parent_class: GObjectClass,
pub get_next: ::std::option::Option<
unsafe extern "C" fn(
iter: *mut GMenuAttributeIter,
out_name: *mut *const gchar,
value: *mut *mut GVariant,
) -> gboolean,
>,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GMenuAttributeIterClass"]
[::std::mem::size_of::<_GMenuAttributeIterClass>() - 144usize];
["Alignment of _GMenuAttributeIterClass"]
[::std::mem::align_of::<_GMenuAttributeIterClass>() - 8usize];
["Offset of field: _GMenuAttributeIterClass::parent_class"]
[::std::mem::offset_of!(_GMenuAttributeIterClass, parent_class) - 0usize];
["Offset of field: _GMenuAttributeIterClass::get_next"]
[::std::mem::offset_of!(_GMenuAttributeIterClass, get_next) - 136usize];
};
unsafe extern "C" {
pub fn g_menu_attribute_iter_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_menu_attribute_iter_get_next(
iter: *mut GMenuAttributeIter,
out_name: *mut *const gchar,
value: *mut *mut GVariant,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_menu_attribute_iter_next(iter: *mut GMenuAttributeIter) -> gboolean;
}
unsafe extern "C" {
pub fn g_menu_attribute_iter_get_name(iter: *mut GMenuAttributeIter) -> *const gchar;
}
unsafe extern "C" {
pub fn g_menu_attribute_iter_get_value(iter: *mut GMenuAttributeIter) -> *mut GVariant;
}
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GMenuLinkIter {
pub parent_instance: GObject,
pub priv_: *mut GMenuLinkIterPrivate,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GMenuLinkIter"][::std::mem::size_of::<_GMenuLinkIter>() - 32usize];
["Alignment of _GMenuLinkIter"][::std::mem::align_of::<_GMenuLinkIter>() - 8usize];
["Offset of field: _GMenuLinkIter::parent_instance"]
[::std::mem::offset_of!(_GMenuLinkIter, parent_instance) - 0usize];
["Offset of field: _GMenuLinkIter::priv_"]
[::std::mem::offset_of!(_GMenuLinkIter, priv_) - 24usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GMenuLinkIterClass {
pub parent_class: GObjectClass,
pub get_next: ::std::option::Option<
unsafe extern "C" fn(
iter: *mut GMenuLinkIter,
out_link: *mut *const gchar,
value: *mut *mut GMenuModel,
) -> gboolean,
>,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GMenuLinkIterClass"][::std::mem::size_of::<_GMenuLinkIterClass>() - 144usize];
["Alignment of _GMenuLinkIterClass"][::std::mem::align_of::<_GMenuLinkIterClass>() - 8usize];
["Offset of field: _GMenuLinkIterClass::parent_class"]
[::std::mem::offset_of!(_GMenuLinkIterClass, parent_class) - 0usize];
["Offset of field: _GMenuLinkIterClass::get_next"]
[::std::mem::offset_of!(_GMenuLinkIterClass, get_next) - 136usize];
};
unsafe extern "C" {
pub fn g_menu_link_iter_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_menu_link_iter_get_next(
iter: *mut GMenuLinkIter,
out_link: *mut *const gchar,
value: *mut *mut GMenuModel,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_menu_link_iter_next(iter: *mut GMenuLinkIter) -> gboolean;
}
unsafe extern "C" {
pub fn g_menu_link_iter_get_name(iter: *mut GMenuLinkIter) -> *const gchar;
}
unsafe extern "C" {
pub fn g_menu_link_iter_get_value(iter: *mut GMenuLinkIter) -> *mut GMenuModel;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GMenuItem {
_unused: [u8; 0],
}
pub type GMenuItem = _GMenuItem;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GMenu {
_unused: [u8; 0],
}
pub type GMenu = _GMenu;
unsafe extern "C" {
pub fn g_menu_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_menu_new() -> *mut GMenu;
}
unsafe extern "C" {
pub fn g_menu_freeze(menu: *mut GMenu);
}
unsafe extern "C" {
pub fn g_menu_insert_item(menu: *mut GMenu, position: gint, item: *mut GMenuItem);
}
unsafe extern "C" {
pub fn g_menu_prepend_item(menu: *mut GMenu, item: *mut GMenuItem);
}
unsafe extern "C" {
pub fn g_menu_append_item(menu: *mut GMenu, item: *mut GMenuItem);
}
unsafe extern "C" {
pub fn g_menu_remove(menu: *mut GMenu, position: gint);
}
unsafe extern "C" {
pub fn g_menu_remove_all(menu: *mut GMenu);
}
unsafe extern "C" {
pub fn g_menu_insert(
menu: *mut GMenu,
position: gint,
label: *const gchar,
detailed_action: *const gchar,
);
}
unsafe extern "C" {
pub fn g_menu_prepend(menu: *mut GMenu, label: *const gchar, detailed_action: *const gchar);
}
unsafe extern "C" {
pub fn g_menu_append(menu: *mut GMenu, label: *const gchar, detailed_action: *const gchar);
}
unsafe extern "C" {
pub fn g_menu_insert_section(
menu: *mut GMenu,
position: gint,
label: *const gchar,
section: *mut GMenuModel,
);
}
unsafe extern "C" {
pub fn g_menu_prepend_section(menu: *mut GMenu, label: *const gchar, section: *mut GMenuModel);
}
unsafe extern "C" {
pub fn g_menu_append_section(menu: *mut GMenu, label: *const gchar, section: *mut GMenuModel);
}
unsafe extern "C" {
pub fn g_menu_insert_submenu(
menu: *mut GMenu,
position: gint,
label: *const gchar,
submenu: *mut GMenuModel,
);
}
unsafe extern "C" {
pub fn g_menu_prepend_submenu(menu: *mut GMenu, label: *const gchar, submenu: *mut GMenuModel);
}
unsafe extern "C" {
pub fn g_menu_append_submenu(menu: *mut GMenu, label: *const gchar, submenu: *mut GMenuModel);
}
unsafe extern "C" {
pub fn g_menu_item_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_menu_item_new(label: *const gchar, detailed_action: *const gchar) -> *mut GMenuItem;
}
unsafe extern "C" {
pub fn g_menu_item_new_from_model(model: *mut GMenuModel, item_index: gint) -> *mut GMenuItem;
}
unsafe extern "C" {
pub fn g_menu_item_new_submenu(label: *const gchar, submenu: *mut GMenuModel)
-> *mut GMenuItem;
}
unsafe extern "C" {
pub fn g_menu_item_new_section(label: *const gchar, section: *mut GMenuModel)
-> *mut GMenuItem;
}
unsafe extern "C" {
pub fn g_menu_item_get_attribute_value(
menu_item: *mut GMenuItem,
attribute: *const gchar,
expected_type: *const GVariantType,
) -> *mut GVariant;
}
unsafe extern "C" {
pub fn g_menu_item_get_attribute(
menu_item: *mut GMenuItem,
attribute: *const gchar,
format_string: *const gchar,
...
) -> gboolean;
}
unsafe extern "C" {
pub fn g_menu_item_get_link(menu_item: *mut GMenuItem, link: *const gchar) -> *mut GMenuModel;
}
unsafe extern "C" {
pub fn g_menu_item_set_attribute_value(
menu_item: *mut GMenuItem,
attribute: *const gchar,
value: *mut GVariant,
);
}
unsafe extern "C" {
pub fn g_menu_item_set_attribute(
menu_item: *mut GMenuItem,
attribute: *const gchar,
format_string: *const gchar,
...
);
}
unsafe extern "C" {
pub fn g_menu_item_set_link(
menu_item: *mut GMenuItem,
link: *const gchar,
model: *mut GMenuModel,
);
}
unsafe extern "C" {
pub fn g_menu_item_set_label(menu_item: *mut GMenuItem, label: *const gchar);
}
unsafe extern "C" {
pub fn g_menu_item_set_submenu(menu_item: *mut GMenuItem, submenu: *mut GMenuModel);
}
unsafe extern "C" {
pub fn g_menu_item_set_section(menu_item: *mut GMenuItem, section: *mut GMenuModel);
}
unsafe extern "C" {
pub fn g_menu_item_set_action_and_target_value(
menu_item: *mut GMenuItem,
action: *const gchar,
target_value: *mut GVariant,
);
}
unsafe extern "C" {
pub fn g_menu_item_set_action_and_target(
menu_item: *mut GMenuItem,
action: *const gchar,
format_string: *const gchar,
...
);
}
unsafe extern "C" {
pub fn g_menu_item_set_detailed_action(
menu_item: *mut GMenuItem,
detailed_action: *const gchar,
);
}
unsafe extern "C" {
pub fn g_menu_item_set_icon(menu_item: *mut GMenuItem, icon: *mut GIcon);
}
unsafe extern "C" {
pub fn g_dbus_connection_export_menu_model(
connection: *mut GDBusConnection,
object_path: *const gchar,
menu: *mut GMenuModel,
error: *mut *mut GError,
) -> guint;
}
unsafe extern "C" {
pub fn g_dbus_connection_unexport_menu_model(
connection: *mut GDBusConnection,
export_id: guint,
);
}
pub type GMountIface = _GMountIface;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GMountIface {
pub g_iface: GTypeInterface,
pub changed: ::std::option::Option<unsafe extern "C" fn(mount: *mut GMount)>,
pub unmounted: ::std::option::Option<unsafe extern "C" fn(mount: *mut GMount)>,
pub get_root: ::std::option::Option<unsafe extern "C" fn(mount: *mut GMount) -> *mut GFile>,
pub get_name: ::std::option::Option<
unsafe extern "C" fn(mount: *mut GMount) -> *mut ::std::os::raw::c_char,
>,
pub get_icon: ::std::option::Option<unsafe extern "C" fn(mount: *mut GMount) -> *mut GIcon>,
pub get_uuid: ::std::option::Option<
unsafe extern "C" fn(mount: *mut GMount) -> *mut ::std::os::raw::c_char,
>,
pub get_volume: ::std::option::Option<unsafe extern "C" fn(mount: *mut GMount) -> *mut GVolume>,
pub get_drive: ::std::option::Option<unsafe extern "C" fn(mount: *mut GMount) -> *mut GDrive>,
pub can_unmount: ::std::option::Option<unsafe extern "C" fn(mount: *mut GMount) -> gboolean>,
pub can_eject: ::std::option::Option<unsafe extern "C" fn(mount: *mut GMount) -> gboolean>,
pub unmount: ::std::option::Option<
unsafe extern "C" fn(
mount: *mut GMount,
flags: GMountUnmountFlags,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
),
>,
pub unmount_finish: ::std::option::Option<
unsafe extern "C" fn(
mount: *mut GMount,
result: *mut GAsyncResult,
error: *mut *mut GError,
) -> gboolean,
>,
pub eject: ::std::option::Option<
unsafe extern "C" fn(
mount: *mut GMount,
flags: GMountUnmountFlags,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
),
>,
pub eject_finish: ::std::option::Option<
unsafe extern "C" fn(
mount: *mut GMount,
result: *mut GAsyncResult,
error: *mut *mut GError,
) -> gboolean,
>,
pub remount: ::std::option::Option<
unsafe extern "C" fn(
mount: *mut GMount,
flags: GMountMountFlags,
mount_operation: *mut GMountOperation,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
),
>,
pub remount_finish: ::std::option::Option<
unsafe extern "C" fn(
mount: *mut GMount,
result: *mut GAsyncResult,
error: *mut *mut GError,
) -> gboolean,
>,
pub guess_content_type: ::std::option::Option<
unsafe extern "C" fn(
mount: *mut GMount,
force_rescan: gboolean,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
),
>,
pub guess_content_type_finish: ::std::option::Option<
unsafe extern "C" fn(
mount: *mut GMount,
result: *mut GAsyncResult,
error: *mut *mut GError,
) -> *mut *mut gchar,
>,
pub guess_content_type_sync: ::std::option::Option<
unsafe extern "C" fn(
mount: *mut GMount,
force_rescan: gboolean,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> *mut *mut gchar,
>,
pub pre_unmount: ::std::option::Option<unsafe extern "C" fn(mount: *mut GMount)>,
pub unmount_with_operation: ::std::option::Option<
unsafe extern "C" fn(
mount: *mut GMount,
flags: GMountUnmountFlags,
mount_operation: *mut GMountOperation,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
),
>,
pub unmount_with_operation_finish: ::std::option::Option<
unsafe extern "C" fn(
mount: *mut GMount,
result: *mut GAsyncResult,
error: *mut *mut GError,
) -> gboolean,
>,
pub eject_with_operation: ::std::option::Option<
unsafe extern "C" fn(
mount: *mut GMount,
flags: GMountUnmountFlags,
mount_operation: *mut GMountOperation,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
),
>,
pub eject_with_operation_finish: ::std::option::Option<
unsafe extern "C" fn(
mount: *mut GMount,
result: *mut GAsyncResult,
error: *mut *mut GError,
) -> gboolean,
>,
pub get_default_location:
::std::option::Option<unsafe extern "C" fn(mount: *mut GMount) -> *mut GFile>,
pub get_sort_key:
::std::option::Option<unsafe extern "C" fn(mount: *mut GMount) -> *const gchar>,
pub get_symbolic_icon:
::std::option::Option<unsafe extern "C" fn(mount: *mut GMount) -> *mut GIcon>,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GMountIface"][::std::mem::size_of::<_GMountIface>() - 232usize];
["Alignment of _GMountIface"][::std::mem::align_of::<_GMountIface>() - 8usize];
["Offset of field: _GMountIface::g_iface"]
[::std::mem::offset_of!(_GMountIface, g_iface) - 0usize];
["Offset of field: _GMountIface::changed"]
[::std::mem::offset_of!(_GMountIface, changed) - 16usize];
["Offset of field: _GMountIface::unmounted"]
[::std::mem::offset_of!(_GMountIface, unmounted) - 24usize];
["Offset of field: _GMountIface::get_root"]
[::std::mem::offset_of!(_GMountIface, get_root) - 32usize];
["Offset of field: _GMountIface::get_name"]
[::std::mem::offset_of!(_GMountIface, get_name) - 40usize];
["Offset of field: _GMountIface::get_icon"]
[::std::mem::offset_of!(_GMountIface, get_icon) - 48usize];
["Offset of field: _GMountIface::get_uuid"]
[::std::mem::offset_of!(_GMountIface, get_uuid) - 56usize];
["Offset of field: _GMountIface::get_volume"]
[::std::mem::offset_of!(_GMountIface, get_volume) - 64usize];
["Offset of field: _GMountIface::get_drive"]
[::std::mem::offset_of!(_GMountIface, get_drive) - 72usize];
["Offset of field: _GMountIface::can_unmount"]
[::std::mem::offset_of!(_GMountIface, can_unmount) - 80usize];
["Offset of field: _GMountIface::can_eject"]
[::std::mem::offset_of!(_GMountIface, can_eject) - 88usize];
["Offset of field: _GMountIface::unmount"]
[::std::mem::offset_of!(_GMountIface, unmount) - 96usize];
["Offset of field: _GMountIface::unmount_finish"]
[::std::mem::offset_of!(_GMountIface, unmount_finish) - 104usize];
["Offset of field: _GMountIface::eject"]
[::std::mem::offset_of!(_GMountIface, eject) - 112usize];
["Offset of field: _GMountIface::eject_finish"]
[::std::mem::offset_of!(_GMountIface, eject_finish) - 120usize];
["Offset of field: _GMountIface::remount"]
[::std::mem::offset_of!(_GMountIface, remount) - 128usize];
["Offset of field: _GMountIface::remount_finish"]
[::std::mem::offset_of!(_GMountIface, remount_finish) - 136usize];
["Offset of field: _GMountIface::guess_content_type"]
[::std::mem::offset_of!(_GMountIface, guess_content_type) - 144usize];
["Offset of field: _GMountIface::guess_content_type_finish"]
[::std::mem::offset_of!(_GMountIface, guess_content_type_finish) - 152usize];
["Offset of field: _GMountIface::guess_content_type_sync"]
[::std::mem::offset_of!(_GMountIface, guess_content_type_sync) - 160usize];
["Offset of field: _GMountIface::pre_unmount"]
[::std::mem::offset_of!(_GMountIface, pre_unmount) - 168usize];
["Offset of field: _GMountIface::unmount_with_operation"]
[::std::mem::offset_of!(_GMountIface, unmount_with_operation) - 176usize];
["Offset of field: _GMountIface::unmount_with_operation_finish"]
[::std::mem::offset_of!(_GMountIface, unmount_with_operation_finish) - 184usize];
["Offset of field: _GMountIface::eject_with_operation"]
[::std::mem::offset_of!(_GMountIface, eject_with_operation) - 192usize];
["Offset of field: _GMountIface::eject_with_operation_finish"]
[::std::mem::offset_of!(_GMountIface, eject_with_operation_finish) - 200usize];
["Offset of field: _GMountIface::get_default_location"]
[::std::mem::offset_of!(_GMountIface, get_default_location) - 208usize];
["Offset of field: _GMountIface::get_sort_key"]
[::std::mem::offset_of!(_GMountIface, get_sort_key) - 216usize];
["Offset of field: _GMountIface::get_symbolic_icon"]
[::std::mem::offset_of!(_GMountIface, get_symbolic_icon) - 224usize];
};
unsafe extern "C" {
pub fn g_mount_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_mount_get_root(mount: *mut GMount) -> *mut GFile;
}
unsafe extern "C" {
pub fn g_mount_get_default_location(mount: *mut GMount) -> *mut GFile;
}
unsafe extern "C" {
pub fn g_mount_get_name(mount: *mut GMount) -> *mut ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn g_mount_get_icon(mount: *mut GMount) -> *mut GIcon;
}
unsafe extern "C" {
pub fn g_mount_get_symbolic_icon(mount: *mut GMount) -> *mut GIcon;
}
unsafe extern "C" {
pub fn g_mount_get_uuid(mount: *mut GMount) -> *mut ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn g_mount_get_volume(mount: *mut GMount) -> *mut GVolume;
}
unsafe extern "C" {
pub fn g_mount_get_drive(mount: *mut GMount) -> *mut GDrive;
}
unsafe extern "C" {
pub fn g_mount_can_unmount(mount: *mut GMount) -> gboolean;
}
unsafe extern "C" {
pub fn g_mount_can_eject(mount: *mut GMount) -> gboolean;
}
unsafe extern "C" {
pub fn g_mount_unmount(
mount: *mut GMount,
flags: GMountUnmountFlags,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
);
}
unsafe extern "C" {
pub fn g_mount_unmount_finish(
mount: *mut GMount,
result: *mut GAsyncResult,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_mount_eject(
mount: *mut GMount,
flags: GMountUnmountFlags,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
);
}
unsafe extern "C" {
pub fn g_mount_eject_finish(
mount: *mut GMount,
result: *mut GAsyncResult,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_mount_remount(
mount: *mut GMount,
flags: GMountMountFlags,
mount_operation: *mut GMountOperation,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
);
}
unsafe extern "C" {
pub fn g_mount_remount_finish(
mount: *mut GMount,
result: *mut GAsyncResult,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_mount_guess_content_type(
mount: *mut GMount,
force_rescan: gboolean,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
);
}
unsafe extern "C" {
pub fn g_mount_guess_content_type_finish(
mount: *mut GMount,
result: *mut GAsyncResult,
error: *mut *mut GError,
) -> *mut *mut gchar;
}
unsafe extern "C" {
pub fn g_mount_guess_content_type_sync(
mount: *mut GMount,
force_rescan: gboolean,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> *mut *mut gchar;
}
unsafe extern "C" {
pub fn g_mount_is_shadowed(mount: *mut GMount) -> gboolean;
}
unsafe extern "C" {
pub fn g_mount_shadow(mount: *mut GMount);
}
unsafe extern "C" {
pub fn g_mount_unshadow(mount: *mut GMount);
}
unsafe extern "C" {
pub fn g_mount_unmount_with_operation(
mount: *mut GMount,
flags: GMountUnmountFlags,
mount_operation: *mut GMountOperation,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
);
}
unsafe extern "C" {
pub fn g_mount_unmount_with_operation_finish(
mount: *mut GMount,
result: *mut GAsyncResult,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_mount_eject_with_operation(
mount: *mut GMount,
flags: GMountUnmountFlags,
mount_operation: *mut GMountOperation,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
);
}
unsafe extern "C" {
pub fn g_mount_eject_with_operation_finish(
mount: *mut GMount,
result: *mut GAsyncResult,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_mount_get_sort_key(mount: *mut GMount) -> *const gchar;
}
pub type GMountOperationClass = _GMountOperationClass;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GMountOperationPrivate {
_unused: [u8; 0],
}
pub type GMountOperationPrivate = _GMountOperationPrivate;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GMountOperation {
pub parent_instance: GObject,
pub priv_: *mut GMountOperationPrivate,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GMountOperation"][::std::mem::size_of::<_GMountOperation>() - 32usize];
["Alignment of _GMountOperation"][::std::mem::align_of::<_GMountOperation>() - 8usize];
["Offset of field: _GMountOperation::parent_instance"]
[::std::mem::offset_of!(_GMountOperation, parent_instance) - 0usize];
["Offset of field: _GMountOperation::priv_"]
[::std::mem::offset_of!(_GMountOperation, priv_) - 24usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GMountOperationClass {
pub parent_class: GObjectClass,
pub ask_password: ::std::option::Option<
unsafe extern "C" fn(
op: *mut GMountOperation,
message: *const ::std::os::raw::c_char,
default_user: *const ::std::os::raw::c_char,
default_domain: *const ::std::os::raw::c_char,
flags: GAskPasswordFlags,
),
>,
pub ask_question: ::std::option::Option<
unsafe extern "C" fn(
op: *mut GMountOperation,
message: *const ::std::os::raw::c_char,
choices: *mut *const ::std::os::raw::c_char,
),
>,
pub reply: ::std::option::Option<
unsafe extern "C" fn(op: *mut GMountOperation, result: GMountOperationResult),
>,
pub aborted: ::std::option::Option<unsafe extern "C" fn(op: *mut GMountOperation)>,
pub show_processes: ::std::option::Option<
unsafe extern "C" fn(
op: *mut GMountOperation,
message: *const gchar,
processes: *mut GArray,
choices: *mut *const gchar,
),
>,
pub show_unmount_progress: ::std::option::Option<
unsafe extern "C" fn(
op: *mut GMountOperation,
message: *const gchar,
time_left: gint64,
bytes_left: gint64,
),
>,
pub _g_reserved1: ::std::option::Option<unsafe extern "C" fn()>,
pub _g_reserved2: ::std::option::Option<unsafe extern "C" fn()>,
pub _g_reserved3: ::std::option::Option<unsafe extern "C" fn()>,
pub _g_reserved4: ::std::option::Option<unsafe extern "C" fn()>,
pub _g_reserved5: ::std::option::Option<unsafe extern "C" fn()>,
pub _g_reserved6: ::std::option::Option<unsafe extern "C" fn()>,
pub _g_reserved7: ::std::option::Option<unsafe extern "C" fn()>,
pub _g_reserved8: ::std::option::Option<unsafe extern "C" fn()>,
pub _g_reserved9: ::std::option::Option<unsafe extern "C" fn()>,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GMountOperationClass"][::std::mem::size_of::<_GMountOperationClass>() - 256usize];
["Alignment of _GMountOperationClass"]
[::std::mem::align_of::<_GMountOperationClass>() - 8usize];
["Offset of field: _GMountOperationClass::parent_class"]
[::std::mem::offset_of!(_GMountOperationClass, parent_class) - 0usize];
["Offset of field: _GMountOperationClass::ask_password"]
[::std::mem::offset_of!(_GMountOperationClass, ask_password) - 136usize];
["Offset of field: _GMountOperationClass::ask_question"]
[::std::mem::offset_of!(_GMountOperationClass, ask_question) - 144usize];
["Offset of field: _GMountOperationClass::reply"]
[::std::mem::offset_of!(_GMountOperationClass, reply) - 152usize];
["Offset of field: _GMountOperationClass::aborted"]
[::std::mem::offset_of!(_GMountOperationClass, aborted) - 160usize];
["Offset of field: _GMountOperationClass::show_processes"]
[::std::mem::offset_of!(_GMountOperationClass, show_processes) - 168usize];
["Offset of field: _GMountOperationClass::show_unmount_progress"]
[::std::mem::offset_of!(_GMountOperationClass, show_unmount_progress) - 176usize];
["Offset of field: _GMountOperationClass::_g_reserved1"]
[::std::mem::offset_of!(_GMountOperationClass, _g_reserved1) - 184usize];
["Offset of field: _GMountOperationClass::_g_reserved2"]
[::std::mem::offset_of!(_GMountOperationClass, _g_reserved2) - 192usize];
["Offset of field: _GMountOperationClass::_g_reserved3"]
[::std::mem::offset_of!(_GMountOperationClass, _g_reserved3) - 200usize];
["Offset of field: _GMountOperationClass::_g_reserved4"]
[::std::mem::offset_of!(_GMountOperationClass, _g_reserved4) - 208usize];
["Offset of field: _GMountOperationClass::_g_reserved5"]
[::std::mem::offset_of!(_GMountOperationClass, _g_reserved5) - 216usize];
["Offset of field: _GMountOperationClass::_g_reserved6"]
[::std::mem::offset_of!(_GMountOperationClass, _g_reserved6) - 224usize];
["Offset of field: _GMountOperationClass::_g_reserved7"]
[::std::mem::offset_of!(_GMountOperationClass, _g_reserved7) - 232usize];
["Offset of field: _GMountOperationClass::_g_reserved8"]
[::std::mem::offset_of!(_GMountOperationClass, _g_reserved8) - 240usize];
["Offset of field: _GMountOperationClass::_g_reserved9"]
[::std::mem::offset_of!(_GMountOperationClass, _g_reserved9) - 248usize];
};
unsafe extern "C" {
pub fn g_mount_operation_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_mount_operation_new() -> *mut GMountOperation;
}
unsafe extern "C" {
pub fn g_mount_operation_get_username(
op: *mut GMountOperation,
) -> *const ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn g_mount_operation_set_username(
op: *mut GMountOperation,
username: *const ::std::os::raw::c_char,
);
}
unsafe extern "C" {
pub fn g_mount_operation_get_password(
op: *mut GMountOperation,
) -> *const ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn g_mount_operation_set_password(
op: *mut GMountOperation,
password: *const ::std::os::raw::c_char,
);
}
unsafe extern "C" {
pub fn g_mount_operation_get_anonymous(op: *mut GMountOperation) -> gboolean;
}
unsafe extern "C" {
pub fn g_mount_operation_set_anonymous(op: *mut GMountOperation, anonymous: gboolean);
}
unsafe extern "C" {
pub fn g_mount_operation_get_domain(op: *mut GMountOperation) -> *const ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn g_mount_operation_set_domain(
op: *mut GMountOperation,
domain: *const ::std::os::raw::c_char,
);
}
unsafe extern "C" {
pub fn g_mount_operation_get_password_save(op: *mut GMountOperation) -> GPasswordSave;
}
unsafe extern "C" {
pub fn g_mount_operation_set_password_save(op: *mut GMountOperation, save: GPasswordSave);
}
unsafe extern "C" {
pub fn g_mount_operation_get_choice(op: *mut GMountOperation) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn g_mount_operation_set_choice(op: *mut GMountOperation, choice: ::std::os::raw::c_int);
}
unsafe extern "C" {
pub fn g_mount_operation_reply(op: *mut GMountOperation, result: GMountOperationResult);
}
unsafe extern "C" {
pub fn g_mount_operation_get_is_tcrypt_hidden_volume(op: *mut GMountOperation) -> gboolean;
}
unsafe extern "C" {
pub fn g_mount_operation_set_is_tcrypt_hidden_volume(
op: *mut GMountOperation,
hidden_volume: gboolean,
);
}
unsafe extern "C" {
pub fn g_mount_operation_get_is_tcrypt_system_volume(op: *mut GMountOperation) -> gboolean;
}
unsafe extern "C" {
pub fn g_mount_operation_set_is_tcrypt_system_volume(
op: *mut GMountOperation,
system_volume: gboolean,
);
}
unsafe extern "C" {
pub fn g_mount_operation_get_pim(op: *mut GMountOperation) -> guint;
}
unsafe extern "C" {
pub fn g_mount_operation_set_pim(op: *mut GMountOperation, pim: guint);
}
pub type GNativeSocketAddressClass = _GNativeSocketAddressClass;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GNativeSocketAddressPrivate {
_unused: [u8; 0],
}
pub type GNativeSocketAddressPrivate = _GNativeSocketAddressPrivate;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GNativeSocketAddress {
pub parent_instance: GSocketAddress,
pub priv_: *mut GNativeSocketAddressPrivate,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GNativeSocketAddress"][::std::mem::size_of::<_GNativeSocketAddress>() - 32usize];
["Alignment of _GNativeSocketAddress"]
[::std::mem::align_of::<_GNativeSocketAddress>() - 8usize];
["Offset of field: _GNativeSocketAddress::parent_instance"]
[::std::mem::offset_of!(_GNativeSocketAddress, parent_instance) - 0usize];
["Offset of field: _GNativeSocketAddress::priv_"]
[::std::mem::offset_of!(_GNativeSocketAddress, priv_) - 24usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GNativeSocketAddressClass {
pub parent_class: GSocketAddressClass,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GNativeSocketAddressClass"]
[::std::mem::size_of::<_GNativeSocketAddressClass>() - 160usize];
["Alignment of _GNativeSocketAddressClass"]
[::std::mem::align_of::<_GNativeSocketAddressClass>() - 8usize];
["Offset of field: _GNativeSocketAddressClass::parent_class"]
[::std::mem::offset_of!(_GNativeSocketAddressClass, parent_class) - 0usize];
};
unsafe extern "C" {
pub fn g_native_socket_address_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_native_socket_address_new(native: gpointer, len: gsize) -> *mut GSocketAddress;
}
pub type GVolumeMonitorClass = _GVolumeMonitorClass;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GVolumeMonitor {
pub parent_instance: GObject,
pub priv_: gpointer,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GVolumeMonitor"][::std::mem::size_of::<_GVolumeMonitor>() - 32usize];
["Alignment of _GVolumeMonitor"][::std::mem::align_of::<_GVolumeMonitor>() - 8usize];
["Offset of field: _GVolumeMonitor::parent_instance"]
[::std::mem::offset_of!(_GVolumeMonitor, parent_instance) - 0usize];
["Offset of field: _GVolumeMonitor::priv_"]
[::std::mem::offset_of!(_GVolumeMonitor, priv_) - 24usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GVolumeMonitorClass {
pub parent_class: GObjectClass,
pub volume_added: ::std::option::Option<
unsafe extern "C" fn(volume_monitor: *mut GVolumeMonitor, volume: *mut GVolume),
>,
pub volume_removed: ::std::option::Option<
unsafe extern "C" fn(volume_monitor: *mut GVolumeMonitor, volume: *mut GVolume),
>,
pub volume_changed: ::std::option::Option<
unsafe extern "C" fn(volume_monitor: *mut GVolumeMonitor, volume: *mut GVolume),
>,
pub mount_added: ::std::option::Option<
unsafe extern "C" fn(volume_monitor: *mut GVolumeMonitor, mount: *mut GMount),
>,
pub mount_removed: ::std::option::Option<
unsafe extern "C" fn(volume_monitor: *mut GVolumeMonitor, mount: *mut GMount),
>,
pub mount_pre_unmount: ::std::option::Option<
unsafe extern "C" fn(volume_monitor: *mut GVolumeMonitor, mount: *mut GMount),
>,
pub mount_changed: ::std::option::Option<
unsafe extern "C" fn(volume_monitor: *mut GVolumeMonitor, mount: *mut GMount),
>,
pub drive_connected: ::std::option::Option<
unsafe extern "C" fn(volume_monitor: *mut GVolumeMonitor, drive: *mut GDrive),
>,
pub drive_disconnected: ::std::option::Option<
unsafe extern "C" fn(volume_monitor: *mut GVolumeMonitor, drive: *mut GDrive),
>,
pub drive_changed: ::std::option::Option<
unsafe extern "C" fn(volume_monitor: *mut GVolumeMonitor, drive: *mut GDrive),
>,
pub is_supported: ::std::option::Option<unsafe extern "C" fn() -> gboolean>,
pub get_connected_drives: ::std::option::Option<
unsafe extern "C" fn(volume_monitor: *mut GVolumeMonitor) -> *mut GList,
>,
pub get_volumes: ::std::option::Option<
unsafe extern "C" fn(volume_monitor: *mut GVolumeMonitor) -> *mut GList,
>,
pub get_mounts: ::std::option::Option<
unsafe extern "C" fn(volume_monitor: *mut GVolumeMonitor) -> *mut GList,
>,
pub get_volume_for_uuid: ::std::option::Option<
unsafe extern "C" fn(
volume_monitor: *mut GVolumeMonitor,
uuid: *const ::std::os::raw::c_char,
) -> *mut GVolume,
>,
pub get_mount_for_uuid: ::std::option::Option<
unsafe extern "C" fn(
volume_monitor: *mut GVolumeMonitor,
uuid: *const ::std::os::raw::c_char,
) -> *mut GMount,
>,
pub adopt_orphan_mount: ::std::option::Option<
unsafe extern "C" fn(
mount: *mut GMount,
volume_monitor: *mut GVolumeMonitor,
) -> *mut GVolume,
>,
pub drive_eject_button: ::std::option::Option<
unsafe extern "C" fn(volume_monitor: *mut GVolumeMonitor, drive: *mut GDrive),
>,
pub drive_stop_button: ::std::option::Option<
unsafe extern "C" fn(volume_monitor: *mut GVolumeMonitor, drive: *mut GDrive),
>,
pub _g_reserved1: ::std::option::Option<unsafe extern "C" fn()>,
pub _g_reserved2: ::std::option::Option<unsafe extern "C" fn()>,
pub _g_reserved3: ::std::option::Option<unsafe extern "C" fn()>,
pub _g_reserved4: ::std::option::Option<unsafe extern "C" fn()>,
pub _g_reserved5: ::std::option::Option<unsafe extern "C" fn()>,
pub _g_reserved6: ::std::option::Option<unsafe extern "C" fn()>,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GVolumeMonitorClass"][::std::mem::size_of::<_GVolumeMonitorClass>() - 336usize];
["Alignment of _GVolumeMonitorClass"][::std::mem::align_of::<_GVolumeMonitorClass>() - 8usize];
["Offset of field: _GVolumeMonitorClass::parent_class"]
[::std::mem::offset_of!(_GVolumeMonitorClass, parent_class) - 0usize];
["Offset of field: _GVolumeMonitorClass::volume_added"]
[::std::mem::offset_of!(_GVolumeMonitorClass, volume_added) - 136usize];
["Offset of field: _GVolumeMonitorClass::volume_removed"]
[::std::mem::offset_of!(_GVolumeMonitorClass, volume_removed) - 144usize];
["Offset of field: _GVolumeMonitorClass::volume_changed"]
[::std::mem::offset_of!(_GVolumeMonitorClass, volume_changed) - 152usize];
["Offset of field: _GVolumeMonitorClass::mount_added"]
[::std::mem::offset_of!(_GVolumeMonitorClass, mount_added) - 160usize];
["Offset of field: _GVolumeMonitorClass::mount_removed"]
[::std::mem::offset_of!(_GVolumeMonitorClass, mount_removed) - 168usize];
["Offset of field: _GVolumeMonitorClass::mount_pre_unmount"]
[::std::mem::offset_of!(_GVolumeMonitorClass, mount_pre_unmount) - 176usize];
["Offset of field: _GVolumeMonitorClass::mount_changed"]
[::std::mem::offset_of!(_GVolumeMonitorClass, mount_changed) - 184usize];
["Offset of field: _GVolumeMonitorClass::drive_connected"]
[::std::mem::offset_of!(_GVolumeMonitorClass, drive_connected) - 192usize];
["Offset of field: _GVolumeMonitorClass::drive_disconnected"]
[::std::mem::offset_of!(_GVolumeMonitorClass, drive_disconnected) - 200usize];
["Offset of field: _GVolumeMonitorClass::drive_changed"]
[::std::mem::offset_of!(_GVolumeMonitorClass, drive_changed) - 208usize];
["Offset of field: _GVolumeMonitorClass::is_supported"]
[::std::mem::offset_of!(_GVolumeMonitorClass, is_supported) - 216usize];
["Offset of field: _GVolumeMonitorClass::get_connected_drives"]
[::std::mem::offset_of!(_GVolumeMonitorClass, get_connected_drives) - 224usize];
["Offset of field: _GVolumeMonitorClass::get_volumes"]
[::std::mem::offset_of!(_GVolumeMonitorClass, get_volumes) - 232usize];
["Offset of field: _GVolumeMonitorClass::get_mounts"]
[::std::mem::offset_of!(_GVolumeMonitorClass, get_mounts) - 240usize];
["Offset of field: _GVolumeMonitorClass::get_volume_for_uuid"]
[::std::mem::offset_of!(_GVolumeMonitorClass, get_volume_for_uuid) - 248usize];
["Offset of field: _GVolumeMonitorClass::get_mount_for_uuid"]
[::std::mem::offset_of!(_GVolumeMonitorClass, get_mount_for_uuid) - 256usize];
["Offset of field: _GVolumeMonitorClass::adopt_orphan_mount"]
[::std::mem::offset_of!(_GVolumeMonitorClass, adopt_orphan_mount) - 264usize];
["Offset of field: _GVolumeMonitorClass::drive_eject_button"]
[::std::mem::offset_of!(_GVolumeMonitorClass, drive_eject_button) - 272usize];
["Offset of field: _GVolumeMonitorClass::drive_stop_button"]
[::std::mem::offset_of!(_GVolumeMonitorClass, drive_stop_button) - 280usize];
["Offset of field: _GVolumeMonitorClass::_g_reserved1"]
[::std::mem::offset_of!(_GVolumeMonitorClass, _g_reserved1) - 288usize];
["Offset of field: _GVolumeMonitorClass::_g_reserved2"]
[::std::mem::offset_of!(_GVolumeMonitorClass, _g_reserved2) - 296usize];
["Offset of field: _GVolumeMonitorClass::_g_reserved3"]
[::std::mem::offset_of!(_GVolumeMonitorClass, _g_reserved3) - 304usize];
["Offset of field: _GVolumeMonitorClass::_g_reserved4"]
[::std::mem::offset_of!(_GVolumeMonitorClass, _g_reserved4) - 312usize];
["Offset of field: _GVolumeMonitorClass::_g_reserved5"]
[::std::mem::offset_of!(_GVolumeMonitorClass, _g_reserved5) - 320usize];
["Offset of field: _GVolumeMonitorClass::_g_reserved6"]
[::std::mem::offset_of!(_GVolumeMonitorClass, _g_reserved6) - 328usize];
};
unsafe extern "C" {
pub fn g_volume_monitor_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_volume_monitor_get() -> *mut GVolumeMonitor;
}
unsafe extern "C" {
pub fn g_volume_monitor_get_connected_drives(volume_monitor: *mut GVolumeMonitor)
-> *mut GList;
}
unsafe extern "C" {
pub fn g_volume_monitor_get_volumes(volume_monitor: *mut GVolumeMonitor) -> *mut GList;
}
unsafe extern "C" {
pub fn g_volume_monitor_get_mounts(volume_monitor: *mut GVolumeMonitor) -> *mut GList;
}
unsafe extern "C" {
pub fn g_volume_monitor_get_volume_for_uuid(
volume_monitor: *mut GVolumeMonitor,
uuid: *const ::std::os::raw::c_char,
) -> *mut GVolume;
}
unsafe extern "C" {
pub fn g_volume_monitor_get_mount_for_uuid(
volume_monitor: *mut GVolumeMonitor,
uuid: *const ::std::os::raw::c_char,
) -> *mut GMount;
}
unsafe extern "C" {
pub fn g_volume_monitor_adopt_orphan_mount(mount: *mut GMount) -> *mut GVolume;
}
pub type GNativeVolumeMonitor = _GNativeVolumeMonitor;
pub type GNativeVolumeMonitorClass = _GNativeVolumeMonitorClass;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GNativeVolumeMonitor {
pub parent_instance: GVolumeMonitor,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GNativeVolumeMonitor"][::std::mem::size_of::<_GNativeVolumeMonitor>() - 32usize];
["Alignment of _GNativeVolumeMonitor"]
[::std::mem::align_of::<_GNativeVolumeMonitor>() - 8usize];
["Offset of field: _GNativeVolumeMonitor::parent_instance"]
[::std::mem::offset_of!(_GNativeVolumeMonitor, parent_instance) - 0usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GNativeVolumeMonitorClass {
pub parent_class: GVolumeMonitorClass,
pub get_mount_for_mount_path: ::std::option::Option<
unsafe extern "C" fn(
mount_path: *const ::std::os::raw::c_char,
cancellable: *mut GCancellable,
) -> *mut GMount,
>,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GNativeVolumeMonitorClass"]
[::std::mem::size_of::<_GNativeVolumeMonitorClass>() - 344usize];
["Alignment of _GNativeVolumeMonitorClass"]
[::std::mem::align_of::<_GNativeVolumeMonitorClass>() - 8usize];
["Offset of field: _GNativeVolumeMonitorClass::parent_class"]
[::std::mem::offset_of!(_GNativeVolumeMonitorClass, parent_class) - 0usize];
["Offset of field: _GNativeVolumeMonitorClass::get_mount_for_mount_path"]
[::std::mem::offset_of!(_GNativeVolumeMonitorClass, get_mount_for_mount_path) - 336usize];
};
unsafe extern "C" {
pub fn g_native_volume_monitor_get_type() -> GType;
}
pub type GNetworkAddressClass = _GNetworkAddressClass;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GNetworkAddressPrivate {
_unused: [u8; 0],
}
pub type GNetworkAddressPrivate = _GNetworkAddressPrivate;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GNetworkAddress {
pub parent_instance: GObject,
pub priv_: *mut GNetworkAddressPrivate,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GNetworkAddress"][::std::mem::size_of::<_GNetworkAddress>() - 32usize];
["Alignment of _GNetworkAddress"][::std::mem::align_of::<_GNetworkAddress>() - 8usize];
["Offset of field: _GNetworkAddress::parent_instance"]
[::std::mem::offset_of!(_GNetworkAddress, parent_instance) - 0usize];
["Offset of field: _GNetworkAddress::priv_"]
[::std::mem::offset_of!(_GNetworkAddress, priv_) - 24usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GNetworkAddressClass {
pub parent_class: GObjectClass,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GNetworkAddressClass"][::std::mem::size_of::<_GNetworkAddressClass>() - 136usize];
["Alignment of _GNetworkAddressClass"]
[::std::mem::align_of::<_GNetworkAddressClass>() - 8usize];
["Offset of field: _GNetworkAddressClass::parent_class"]
[::std::mem::offset_of!(_GNetworkAddressClass, parent_class) - 0usize];
};
unsafe extern "C" {
pub fn g_network_address_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_network_address_new(hostname: *const gchar, port: guint16) -> *mut GSocketConnectable;
}
unsafe extern "C" {
pub fn g_network_address_new_loopback(port: guint16) -> *mut GSocketConnectable;
}
unsafe extern "C" {
pub fn g_network_address_parse(
host_and_port: *const gchar,
default_port: guint16,
error: *mut *mut GError,
) -> *mut GSocketConnectable;
}
unsafe extern "C" {
pub fn g_network_address_parse_uri(
uri: *const gchar,
default_port: guint16,
error: *mut *mut GError,
) -> *mut GSocketConnectable;
}
unsafe extern "C" {
pub fn g_network_address_get_hostname(addr: *mut GNetworkAddress) -> *const gchar;
}
unsafe extern "C" {
pub fn g_network_address_get_port(addr: *mut GNetworkAddress) -> guint16;
}
unsafe extern "C" {
pub fn g_network_address_get_scheme(addr: *mut GNetworkAddress) -> *const gchar;
}
pub type GNetworkMonitorInterface = _GNetworkMonitorInterface;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GNetworkMonitorInterface {
pub g_iface: GTypeInterface,
pub network_changed: ::std::option::Option<
unsafe extern "C" fn(monitor: *mut GNetworkMonitor, network_available: gboolean),
>,
pub can_reach: ::std::option::Option<
unsafe extern "C" fn(
monitor: *mut GNetworkMonitor,
connectable: *mut GSocketConnectable,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> gboolean,
>,
pub can_reach_async: ::std::option::Option<
unsafe extern "C" fn(
monitor: *mut GNetworkMonitor,
connectable: *mut GSocketConnectable,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
),
>,
pub can_reach_finish: ::std::option::Option<
unsafe extern "C" fn(
monitor: *mut GNetworkMonitor,
result: *mut GAsyncResult,
error: *mut *mut GError,
) -> gboolean,
>,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GNetworkMonitorInterface"]
[::std::mem::size_of::<_GNetworkMonitorInterface>() - 48usize];
["Alignment of _GNetworkMonitorInterface"]
[::std::mem::align_of::<_GNetworkMonitorInterface>() - 8usize];
["Offset of field: _GNetworkMonitorInterface::g_iface"]
[::std::mem::offset_of!(_GNetworkMonitorInterface, g_iface) - 0usize];
["Offset of field: _GNetworkMonitorInterface::network_changed"]
[::std::mem::offset_of!(_GNetworkMonitorInterface, network_changed) - 16usize];
["Offset of field: _GNetworkMonitorInterface::can_reach"]
[::std::mem::offset_of!(_GNetworkMonitorInterface, can_reach) - 24usize];
["Offset of field: _GNetworkMonitorInterface::can_reach_async"]
[::std::mem::offset_of!(_GNetworkMonitorInterface, can_reach_async) - 32usize];
["Offset of field: _GNetworkMonitorInterface::can_reach_finish"]
[::std::mem::offset_of!(_GNetworkMonitorInterface, can_reach_finish) - 40usize];
};
unsafe extern "C" {
pub fn g_network_monitor_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_network_monitor_get_default() -> *mut GNetworkMonitor;
}
unsafe extern "C" {
pub fn g_network_monitor_get_network_available(monitor: *mut GNetworkMonitor) -> gboolean;
}
unsafe extern "C" {
pub fn g_network_monitor_get_network_metered(monitor: *mut GNetworkMonitor) -> gboolean;
}
unsafe extern "C" {
pub fn g_network_monitor_get_connectivity(
monitor: *mut GNetworkMonitor,
) -> GNetworkConnectivity;
}
unsafe extern "C" {
pub fn g_network_monitor_can_reach(
monitor: *mut GNetworkMonitor,
connectable: *mut GSocketConnectable,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_network_monitor_can_reach_async(
monitor: *mut GNetworkMonitor,
connectable: *mut GSocketConnectable,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
);
}
unsafe extern "C" {
pub fn g_network_monitor_can_reach_finish(
monitor: *mut GNetworkMonitor,
result: *mut GAsyncResult,
error: *mut *mut GError,
) -> gboolean;
}
pub type GNetworkServiceClass = _GNetworkServiceClass;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GNetworkServicePrivate {
_unused: [u8; 0],
}
pub type GNetworkServicePrivate = _GNetworkServicePrivate;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GNetworkService {
pub parent_instance: GObject,
pub priv_: *mut GNetworkServicePrivate,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GNetworkService"][::std::mem::size_of::<_GNetworkService>() - 32usize];
["Alignment of _GNetworkService"][::std::mem::align_of::<_GNetworkService>() - 8usize];
["Offset of field: _GNetworkService::parent_instance"]
[::std::mem::offset_of!(_GNetworkService, parent_instance) - 0usize];
["Offset of field: _GNetworkService::priv_"]
[::std::mem::offset_of!(_GNetworkService, priv_) - 24usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GNetworkServiceClass {
pub parent_class: GObjectClass,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GNetworkServiceClass"][::std::mem::size_of::<_GNetworkServiceClass>() - 136usize];
["Alignment of _GNetworkServiceClass"]
[::std::mem::align_of::<_GNetworkServiceClass>() - 8usize];
["Offset of field: _GNetworkServiceClass::parent_class"]
[::std::mem::offset_of!(_GNetworkServiceClass, parent_class) - 0usize];
};
unsafe extern "C" {
pub fn g_network_service_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_network_service_new(
service: *const gchar,
protocol: *const gchar,
domain: *const gchar,
) -> *mut GSocketConnectable;
}
unsafe extern "C" {
pub fn g_network_service_get_service(srv: *mut GNetworkService) -> *const gchar;
}
unsafe extern "C" {
pub fn g_network_service_get_protocol(srv: *mut GNetworkService) -> *const gchar;
}
unsafe extern "C" {
pub fn g_network_service_get_domain(srv: *mut GNetworkService) -> *const gchar;
}
unsafe extern "C" {
pub fn g_network_service_get_scheme(srv: *mut GNetworkService) -> *const gchar;
}
unsafe extern "C" {
pub fn g_network_service_set_scheme(srv: *mut GNetworkService, scheme: *const gchar);
}
unsafe extern "C" {
pub fn g_notification_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_notification_new(title: *const gchar) -> *mut GNotification;
}
unsafe extern "C" {
pub fn g_notification_set_title(notification: *mut GNotification, title: *const gchar);
}
unsafe extern "C" {
pub fn g_notification_set_body(notification: *mut GNotification, body: *const gchar);
}
unsafe extern "C" {
pub fn g_notification_set_icon(notification: *mut GNotification, icon: *mut GIcon);
}
unsafe extern "C" {
pub fn g_notification_set_urgent(notification: *mut GNotification, urgent: gboolean);
}
unsafe extern "C" {
pub fn g_notification_set_priority(
notification: *mut GNotification,
priority: GNotificationPriority,
);
}
unsafe extern "C" {
pub fn g_notification_set_category(notification: *mut GNotification, category: *const gchar);
}
unsafe extern "C" {
pub fn g_notification_add_button(
notification: *mut GNotification,
label: *const gchar,
detailed_action: *const gchar,
);
}
unsafe extern "C" {
pub fn g_notification_add_button_with_target(
notification: *mut GNotification,
label: *const gchar,
action: *const gchar,
target_format: *const gchar,
...
);
}
unsafe extern "C" {
pub fn g_notification_add_button_with_target_value(
notification: *mut GNotification,
label: *const gchar,
action: *const gchar,
target: *mut GVariant,
);
}
unsafe extern "C" {
pub fn g_notification_set_default_action(
notification: *mut GNotification,
detailed_action: *const gchar,
);
}
unsafe extern "C" {
pub fn g_notification_set_default_action_and_target(
notification: *mut GNotification,
action: *const gchar,
target_format: *const gchar,
...
);
}
unsafe extern "C" {
pub fn g_notification_set_default_action_and_target_value(
notification: *mut GNotification,
action: *const gchar,
target: *mut GVariant,
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GPermissionPrivate {
_unused: [u8; 0],
}
pub type GPermissionPrivate = _GPermissionPrivate;
pub type GPermissionClass = _GPermissionClass;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GPermission {
pub parent_instance: GObject,
pub priv_: *mut GPermissionPrivate,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GPermission"][::std::mem::size_of::<_GPermission>() - 32usize];
["Alignment of _GPermission"][::std::mem::align_of::<_GPermission>() - 8usize];
["Offset of field: _GPermission::parent_instance"]
[::std::mem::offset_of!(_GPermission, parent_instance) - 0usize];
["Offset of field: _GPermission::priv_"][::std::mem::offset_of!(_GPermission, priv_) - 24usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GPermissionClass {
pub parent_class: GObjectClass,
pub acquire: ::std::option::Option<
unsafe extern "C" fn(
permission: *mut GPermission,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> gboolean,
>,
pub acquire_async: ::std::option::Option<
unsafe extern "C" fn(
permission: *mut GPermission,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
),
>,
pub acquire_finish: ::std::option::Option<
unsafe extern "C" fn(
permission: *mut GPermission,
result: *mut GAsyncResult,
error: *mut *mut GError,
) -> gboolean,
>,
pub release: ::std::option::Option<
unsafe extern "C" fn(
permission: *mut GPermission,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> gboolean,
>,
pub release_async: ::std::option::Option<
unsafe extern "C" fn(
permission: *mut GPermission,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
),
>,
pub release_finish: ::std::option::Option<
unsafe extern "C" fn(
permission: *mut GPermission,
result: *mut GAsyncResult,
error: *mut *mut GError,
) -> gboolean,
>,
pub reserved: [gpointer; 16usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GPermissionClass"][::std::mem::size_of::<_GPermissionClass>() - 312usize];
["Alignment of _GPermissionClass"][::std::mem::align_of::<_GPermissionClass>() - 8usize];
["Offset of field: _GPermissionClass::parent_class"]
[::std::mem::offset_of!(_GPermissionClass, parent_class) - 0usize];
["Offset of field: _GPermissionClass::acquire"]
[::std::mem::offset_of!(_GPermissionClass, acquire) - 136usize];
["Offset of field: _GPermissionClass::acquire_async"]
[::std::mem::offset_of!(_GPermissionClass, acquire_async) - 144usize];
["Offset of field: _GPermissionClass::acquire_finish"]
[::std::mem::offset_of!(_GPermissionClass, acquire_finish) - 152usize];
["Offset of field: _GPermissionClass::release"]
[::std::mem::offset_of!(_GPermissionClass, release) - 160usize];
["Offset of field: _GPermissionClass::release_async"]
[::std::mem::offset_of!(_GPermissionClass, release_async) - 168usize];
["Offset of field: _GPermissionClass::release_finish"]
[::std::mem::offset_of!(_GPermissionClass, release_finish) - 176usize];
["Offset of field: _GPermissionClass::reserved"]
[::std::mem::offset_of!(_GPermissionClass, reserved) - 184usize];
};
unsafe extern "C" {
pub fn g_permission_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_permission_acquire(
permission: *mut GPermission,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_permission_acquire_async(
permission: *mut GPermission,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
);
}
unsafe extern "C" {
pub fn g_permission_acquire_finish(
permission: *mut GPermission,
result: *mut GAsyncResult,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_permission_release(
permission: *mut GPermission,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_permission_release_async(
permission: *mut GPermission,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
);
}
unsafe extern "C" {
pub fn g_permission_release_finish(
permission: *mut GPermission,
result: *mut GAsyncResult,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_permission_get_allowed(permission: *mut GPermission) -> gboolean;
}
unsafe extern "C" {
pub fn g_permission_get_can_acquire(permission: *mut GPermission) -> gboolean;
}
unsafe extern "C" {
pub fn g_permission_get_can_release(permission: *mut GPermission) -> gboolean;
}
unsafe extern "C" {
pub fn g_permission_impl_update(
permission: *mut GPermission,
allowed: gboolean,
can_acquire: gboolean,
can_release: gboolean,
);
}
pub type GPollableInputStreamInterface = _GPollableInputStreamInterface;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GPollableInputStreamInterface {
pub g_iface: GTypeInterface,
pub can_poll:
::std::option::Option<unsafe extern "C" fn(stream: *mut GPollableInputStream) -> gboolean>,
pub is_readable:
::std::option::Option<unsafe extern "C" fn(stream: *mut GPollableInputStream) -> gboolean>,
pub create_source: ::std::option::Option<
unsafe extern "C" fn(
stream: *mut GPollableInputStream,
cancellable: *mut GCancellable,
) -> *mut GSource,
>,
pub read_nonblocking: ::std::option::Option<
unsafe extern "C" fn(
stream: *mut GPollableInputStream,
buffer: *mut ::std::os::raw::c_void,
count: gsize,
error: *mut *mut GError,
) -> gssize,
>,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GPollableInputStreamInterface"]
[::std::mem::size_of::<_GPollableInputStreamInterface>() - 48usize];
["Alignment of _GPollableInputStreamInterface"]
[::std::mem::align_of::<_GPollableInputStreamInterface>() - 8usize];
["Offset of field: _GPollableInputStreamInterface::g_iface"]
[::std::mem::offset_of!(_GPollableInputStreamInterface, g_iface) - 0usize];
["Offset of field: _GPollableInputStreamInterface::can_poll"]
[::std::mem::offset_of!(_GPollableInputStreamInterface, can_poll) - 16usize];
["Offset of field: _GPollableInputStreamInterface::is_readable"]
[::std::mem::offset_of!(_GPollableInputStreamInterface, is_readable) - 24usize];
["Offset of field: _GPollableInputStreamInterface::create_source"]
[::std::mem::offset_of!(_GPollableInputStreamInterface, create_source) - 32usize];
["Offset of field: _GPollableInputStreamInterface::read_nonblocking"]
[::std::mem::offset_of!(_GPollableInputStreamInterface, read_nonblocking) - 40usize];
};
unsafe extern "C" {
pub fn g_pollable_input_stream_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_pollable_input_stream_can_poll(stream: *mut GPollableInputStream) -> gboolean;
}
unsafe extern "C" {
pub fn g_pollable_input_stream_is_readable(stream: *mut GPollableInputStream) -> gboolean;
}
unsafe extern "C" {
pub fn g_pollable_input_stream_create_source(
stream: *mut GPollableInputStream,
cancellable: *mut GCancellable,
) -> *mut GSource;
}
unsafe extern "C" {
pub fn g_pollable_input_stream_read_nonblocking(
stream: *mut GPollableInputStream,
buffer: *mut ::std::os::raw::c_void,
count: gsize,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> gssize;
}
pub type GPollableOutputStreamInterface = _GPollableOutputStreamInterface;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GPollableOutputStreamInterface {
pub g_iface: GTypeInterface,
pub can_poll:
::std::option::Option<unsafe extern "C" fn(stream: *mut GPollableOutputStream) -> gboolean>,
pub is_writable:
::std::option::Option<unsafe extern "C" fn(stream: *mut GPollableOutputStream) -> gboolean>,
pub create_source: ::std::option::Option<
unsafe extern "C" fn(
stream: *mut GPollableOutputStream,
cancellable: *mut GCancellable,
) -> *mut GSource,
>,
pub write_nonblocking: ::std::option::Option<
unsafe extern "C" fn(
stream: *mut GPollableOutputStream,
buffer: *const ::std::os::raw::c_void,
count: gsize,
error: *mut *mut GError,
) -> gssize,
>,
pub writev_nonblocking: ::std::option::Option<
unsafe extern "C" fn(
stream: *mut GPollableOutputStream,
vectors: *const GOutputVector,
n_vectors: gsize,
bytes_written: *mut gsize,
error: *mut *mut GError,
) -> GPollableReturn,
>,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GPollableOutputStreamInterface"]
[::std::mem::size_of::<_GPollableOutputStreamInterface>() - 56usize];
["Alignment of _GPollableOutputStreamInterface"]
[::std::mem::align_of::<_GPollableOutputStreamInterface>() - 8usize];
["Offset of field: _GPollableOutputStreamInterface::g_iface"]
[::std::mem::offset_of!(_GPollableOutputStreamInterface, g_iface) - 0usize];
["Offset of field: _GPollableOutputStreamInterface::can_poll"]
[::std::mem::offset_of!(_GPollableOutputStreamInterface, can_poll) - 16usize];
["Offset of field: _GPollableOutputStreamInterface::is_writable"]
[::std::mem::offset_of!(_GPollableOutputStreamInterface, is_writable) - 24usize];
["Offset of field: _GPollableOutputStreamInterface::create_source"]
[::std::mem::offset_of!(_GPollableOutputStreamInterface, create_source) - 32usize];
["Offset of field: _GPollableOutputStreamInterface::write_nonblocking"]
[::std::mem::offset_of!(_GPollableOutputStreamInterface, write_nonblocking) - 40usize];
["Offset of field: _GPollableOutputStreamInterface::writev_nonblocking"]
[::std::mem::offset_of!(_GPollableOutputStreamInterface, writev_nonblocking) - 48usize];
};
unsafe extern "C" {
pub fn g_pollable_output_stream_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_pollable_output_stream_can_poll(stream: *mut GPollableOutputStream) -> gboolean;
}
unsafe extern "C" {
pub fn g_pollable_output_stream_is_writable(stream: *mut GPollableOutputStream) -> gboolean;
}
unsafe extern "C" {
pub fn g_pollable_output_stream_create_source(
stream: *mut GPollableOutputStream,
cancellable: *mut GCancellable,
) -> *mut GSource;
}
unsafe extern "C" {
pub fn g_pollable_output_stream_write_nonblocking(
stream: *mut GPollableOutputStream,
buffer: *const ::std::os::raw::c_void,
count: gsize,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> gssize;
}
unsafe extern "C" {
pub fn g_pollable_output_stream_writev_nonblocking(
stream: *mut GPollableOutputStream,
vectors: *const GOutputVector,
n_vectors: gsize,
bytes_written: *mut gsize,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> GPollableReturn;
}
unsafe extern "C" {
pub fn g_pollable_source_new(pollable_stream: *mut GObject) -> *mut GSource;
}
unsafe extern "C" {
pub fn g_pollable_source_new_full(
pollable_stream: gpointer,
child_source: *mut GSource,
cancellable: *mut GCancellable,
) -> *mut GSource;
}
unsafe extern "C" {
pub fn g_pollable_stream_read(
stream: *mut GInputStream,
buffer: *mut ::std::os::raw::c_void,
count: gsize,
blocking: gboolean,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> gssize;
}
unsafe extern "C" {
pub fn g_pollable_stream_write(
stream: *mut GOutputStream,
buffer: *const ::std::os::raw::c_void,
count: gsize,
blocking: gboolean,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> gssize;
}
unsafe extern "C" {
pub fn g_pollable_stream_write_all(
stream: *mut GOutputStream,
buffer: *const ::std::os::raw::c_void,
count: gsize,
blocking: gboolean,
bytes_written: *mut gsize,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_power_profile_monitor_get_type() -> GType;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GPowerProfileMonitor {
_unused: [u8; 0],
}
pub type GPowerProfileMonitor = _GPowerProfileMonitor;
pub type GPowerProfileMonitorInterface = _GPowerProfileMonitorInterface;
pub type GPowerProfileMonitor_autoptr = *mut GPowerProfileMonitor;
pub type GPowerProfileMonitor_listautoptr = *mut GList;
pub type GPowerProfileMonitor_slistautoptr = *mut GSList;
pub type GPowerProfileMonitor_queueautoptr = *mut GQueue;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GPowerProfileMonitorInterface {
pub g_iface: GTypeInterface,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GPowerProfileMonitorInterface"]
[::std::mem::size_of::<_GPowerProfileMonitorInterface>() - 16usize];
["Alignment of _GPowerProfileMonitorInterface"]
[::std::mem::align_of::<_GPowerProfileMonitorInterface>() - 8usize];
["Offset of field: _GPowerProfileMonitorInterface::g_iface"]
[::std::mem::offset_of!(_GPowerProfileMonitorInterface, g_iface) - 0usize];
};
unsafe extern "C" {
pub fn g_power_profile_monitor_dup_default() -> *mut GPowerProfileMonitor;
}
unsafe extern "C" {
pub fn g_power_profile_monitor_get_power_saver_enabled(
monitor: *mut GPowerProfileMonitor,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_property_action_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_property_action_new(
name: *const gchar,
object: gpointer,
property_name: *const gchar,
) -> *mut GPropertyAction;
}
pub type GProxyInterface = _GProxyInterface;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GProxyInterface {
pub g_iface: GTypeInterface,
pub connect: ::std::option::Option<
unsafe extern "C" fn(
proxy: *mut GProxy,
connection: *mut GIOStream,
proxy_address: *mut GProxyAddress,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> *mut GIOStream,
>,
pub connect_async: ::std::option::Option<
unsafe extern "C" fn(
proxy: *mut GProxy,
connection: *mut GIOStream,
proxy_address: *mut GProxyAddress,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
),
>,
pub connect_finish: ::std::option::Option<
unsafe extern "C" fn(
proxy: *mut GProxy,
result: *mut GAsyncResult,
error: *mut *mut GError,
) -> *mut GIOStream,
>,
pub supports_hostname:
::std::option::Option<unsafe extern "C" fn(proxy: *mut GProxy) -> gboolean>,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GProxyInterface"][::std::mem::size_of::<_GProxyInterface>() - 48usize];
["Alignment of _GProxyInterface"][::std::mem::align_of::<_GProxyInterface>() - 8usize];
["Offset of field: _GProxyInterface::g_iface"]
[::std::mem::offset_of!(_GProxyInterface, g_iface) - 0usize];
["Offset of field: _GProxyInterface::connect"]
[::std::mem::offset_of!(_GProxyInterface, connect) - 16usize];
["Offset of field: _GProxyInterface::connect_async"]
[::std::mem::offset_of!(_GProxyInterface, connect_async) - 24usize];
["Offset of field: _GProxyInterface::connect_finish"]
[::std::mem::offset_of!(_GProxyInterface, connect_finish) - 32usize];
["Offset of field: _GProxyInterface::supports_hostname"]
[::std::mem::offset_of!(_GProxyInterface, supports_hostname) - 40usize];
};
unsafe extern "C" {
pub fn g_proxy_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_proxy_get_default_for_protocol(protocol: *const gchar) -> *mut GProxy;
}
unsafe extern "C" {
pub fn g_proxy_connect(
proxy: *mut GProxy,
connection: *mut GIOStream,
proxy_address: *mut GProxyAddress,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> *mut GIOStream;
}
unsafe extern "C" {
pub fn g_proxy_connect_async(
proxy: *mut GProxy,
connection: *mut GIOStream,
proxy_address: *mut GProxyAddress,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
);
}
unsafe extern "C" {
pub fn g_proxy_connect_finish(
proxy: *mut GProxy,
result: *mut GAsyncResult,
error: *mut *mut GError,
) -> *mut GIOStream;
}
unsafe extern "C" {
pub fn g_proxy_supports_hostname(proxy: *mut GProxy) -> gboolean;
}
pub type GProxyAddressClass = _GProxyAddressClass;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GProxyAddressPrivate {
_unused: [u8; 0],
}
pub type GProxyAddressPrivate = _GProxyAddressPrivate;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GProxyAddress {
pub parent_instance: GInetSocketAddress,
pub priv_: *mut GProxyAddressPrivate,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GProxyAddress"][::std::mem::size_of::<_GProxyAddress>() - 40usize];
["Alignment of _GProxyAddress"][::std::mem::align_of::<_GProxyAddress>() - 8usize];
["Offset of field: _GProxyAddress::parent_instance"]
[::std::mem::offset_of!(_GProxyAddress, parent_instance) - 0usize];
["Offset of field: _GProxyAddress::priv_"]
[::std::mem::offset_of!(_GProxyAddress, priv_) - 32usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GProxyAddressClass {
pub parent_class: GInetSocketAddressClass,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GProxyAddressClass"][::std::mem::size_of::<_GProxyAddressClass>() - 160usize];
["Alignment of _GProxyAddressClass"][::std::mem::align_of::<_GProxyAddressClass>() - 8usize];
["Offset of field: _GProxyAddressClass::parent_class"]
[::std::mem::offset_of!(_GProxyAddressClass, parent_class) - 0usize];
};
unsafe extern "C" {
pub fn g_proxy_address_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_proxy_address_new(
inetaddr: *mut GInetAddress,
port: guint16,
protocol: *const gchar,
dest_hostname: *const gchar,
dest_port: guint16,
username: *const gchar,
password: *const gchar,
) -> *mut GSocketAddress;
}
unsafe extern "C" {
pub fn g_proxy_address_get_protocol(proxy: *mut GProxyAddress) -> *const gchar;
}
unsafe extern "C" {
pub fn g_proxy_address_get_destination_protocol(proxy: *mut GProxyAddress) -> *const gchar;
}
unsafe extern "C" {
pub fn g_proxy_address_get_destination_hostname(proxy: *mut GProxyAddress) -> *const gchar;
}
unsafe extern "C" {
pub fn g_proxy_address_get_destination_port(proxy: *mut GProxyAddress) -> guint16;
}
unsafe extern "C" {
pub fn g_proxy_address_get_username(proxy: *mut GProxyAddress) -> *const gchar;
}
unsafe extern "C" {
pub fn g_proxy_address_get_password(proxy: *mut GProxyAddress) -> *const gchar;
}
unsafe extern "C" {
pub fn g_proxy_address_get_uri(proxy: *mut GProxyAddress) -> *const gchar;
}
pub type GSocketAddressEnumeratorClass = _GSocketAddressEnumeratorClass;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GSocketAddressEnumerator {
pub parent_instance: GObject,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GSocketAddressEnumerator"]
[::std::mem::size_of::<_GSocketAddressEnumerator>() - 24usize];
["Alignment of _GSocketAddressEnumerator"]
[::std::mem::align_of::<_GSocketAddressEnumerator>() - 8usize];
["Offset of field: _GSocketAddressEnumerator::parent_instance"]
[::std::mem::offset_of!(_GSocketAddressEnumerator, parent_instance) - 0usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GSocketAddressEnumeratorClass {
pub parent_class: GObjectClass,
pub next: ::std::option::Option<
unsafe extern "C" fn(
enumerator: *mut GSocketAddressEnumerator,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> *mut GSocketAddress,
>,
pub next_async: ::std::option::Option<
unsafe extern "C" fn(
enumerator: *mut GSocketAddressEnumerator,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
),
>,
pub next_finish: ::std::option::Option<
unsafe extern "C" fn(
enumerator: *mut GSocketAddressEnumerator,
result: *mut GAsyncResult,
error: *mut *mut GError,
) -> *mut GSocketAddress,
>,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GSocketAddressEnumeratorClass"]
[::std::mem::size_of::<_GSocketAddressEnumeratorClass>() - 160usize];
["Alignment of _GSocketAddressEnumeratorClass"]
[::std::mem::align_of::<_GSocketAddressEnumeratorClass>() - 8usize];
["Offset of field: _GSocketAddressEnumeratorClass::parent_class"]
[::std::mem::offset_of!(_GSocketAddressEnumeratorClass, parent_class) - 0usize];
["Offset of field: _GSocketAddressEnumeratorClass::next"]
[::std::mem::offset_of!(_GSocketAddressEnumeratorClass, next) - 136usize];
["Offset of field: _GSocketAddressEnumeratorClass::next_async"]
[::std::mem::offset_of!(_GSocketAddressEnumeratorClass, next_async) - 144usize];
["Offset of field: _GSocketAddressEnumeratorClass::next_finish"]
[::std::mem::offset_of!(_GSocketAddressEnumeratorClass, next_finish) - 152usize];
};
unsafe extern "C" {
pub fn g_socket_address_enumerator_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_socket_address_enumerator_next(
enumerator: *mut GSocketAddressEnumerator,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> *mut GSocketAddress;
}
unsafe extern "C" {
pub fn g_socket_address_enumerator_next_async(
enumerator: *mut GSocketAddressEnumerator,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
);
}
unsafe extern "C" {
pub fn g_socket_address_enumerator_next_finish(
enumerator: *mut GSocketAddressEnumerator,
result: *mut GAsyncResult,
error: *mut *mut GError,
) -> *mut GSocketAddress;
}
pub type GProxyAddressEnumeratorClass = _GProxyAddressEnumeratorClass;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GProxyAddressEnumeratorPrivate {
_unused: [u8; 0],
}
pub type GProxyAddressEnumeratorPrivate = _GProxyAddressEnumeratorPrivate;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GProxyAddressEnumerator {
pub parent_instance: GSocketAddressEnumerator,
pub priv_: *mut GProxyAddressEnumeratorPrivate,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GProxyAddressEnumerator"]
[::std::mem::size_of::<_GProxyAddressEnumerator>() - 32usize];
["Alignment of _GProxyAddressEnumerator"]
[::std::mem::align_of::<_GProxyAddressEnumerator>() - 8usize];
["Offset of field: _GProxyAddressEnumerator::parent_instance"]
[::std::mem::offset_of!(_GProxyAddressEnumerator, parent_instance) - 0usize];
["Offset of field: _GProxyAddressEnumerator::priv_"]
[::std::mem::offset_of!(_GProxyAddressEnumerator, priv_) - 24usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GProxyAddressEnumeratorClass {
pub parent_class: GSocketAddressEnumeratorClass,
pub _g_reserved1: ::std::option::Option<unsafe extern "C" fn()>,
pub _g_reserved2: ::std::option::Option<unsafe extern "C" fn()>,
pub _g_reserved3: ::std::option::Option<unsafe extern "C" fn()>,
pub _g_reserved4: ::std::option::Option<unsafe extern "C" fn()>,
pub _g_reserved5: ::std::option::Option<unsafe extern "C" fn()>,
pub _g_reserved6: ::std::option::Option<unsafe extern "C" fn()>,
pub _g_reserved7: ::std::option::Option<unsafe extern "C" fn()>,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GProxyAddressEnumeratorClass"]
[::std::mem::size_of::<_GProxyAddressEnumeratorClass>() - 216usize];
["Alignment of _GProxyAddressEnumeratorClass"]
[::std::mem::align_of::<_GProxyAddressEnumeratorClass>() - 8usize];
["Offset of field: _GProxyAddressEnumeratorClass::parent_class"]
[::std::mem::offset_of!(_GProxyAddressEnumeratorClass, parent_class) - 0usize];
["Offset of field: _GProxyAddressEnumeratorClass::_g_reserved1"]
[::std::mem::offset_of!(_GProxyAddressEnumeratorClass, _g_reserved1) - 160usize];
["Offset of field: _GProxyAddressEnumeratorClass::_g_reserved2"]
[::std::mem::offset_of!(_GProxyAddressEnumeratorClass, _g_reserved2) - 168usize];
["Offset of field: _GProxyAddressEnumeratorClass::_g_reserved3"]
[::std::mem::offset_of!(_GProxyAddressEnumeratorClass, _g_reserved3) - 176usize];
["Offset of field: _GProxyAddressEnumeratorClass::_g_reserved4"]
[::std::mem::offset_of!(_GProxyAddressEnumeratorClass, _g_reserved4) - 184usize];
["Offset of field: _GProxyAddressEnumeratorClass::_g_reserved5"]
[::std::mem::offset_of!(_GProxyAddressEnumeratorClass, _g_reserved5) - 192usize];
["Offset of field: _GProxyAddressEnumeratorClass::_g_reserved6"]
[::std::mem::offset_of!(_GProxyAddressEnumeratorClass, _g_reserved6) - 200usize];
["Offset of field: _GProxyAddressEnumeratorClass::_g_reserved7"]
[::std::mem::offset_of!(_GProxyAddressEnumeratorClass, _g_reserved7) - 208usize];
};
unsafe extern "C" {
pub fn g_proxy_address_enumerator_get_type() -> GType;
}
pub type GProxyResolverInterface = _GProxyResolverInterface;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GProxyResolverInterface {
pub g_iface: GTypeInterface,
pub is_supported:
::std::option::Option<unsafe extern "C" fn(resolver: *mut GProxyResolver) -> gboolean>,
pub lookup: ::std::option::Option<
unsafe extern "C" fn(
resolver: *mut GProxyResolver,
uri: *const gchar,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> *mut *mut gchar,
>,
pub lookup_async: ::std::option::Option<
unsafe extern "C" fn(
resolver: *mut GProxyResolver,
uri: *const gchar,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
),
>,
pub lookup_finish: ::std::option::Option<
unsafe extern "C" fn(
resolver: *mut GProxyResolver,
result: *mut GAsyncResult,
error: *mut *mut GError,
) -> *mut *mut gchar,
>,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GProxyResolverInterface"]
[::std::mem::size_of::<_GProxyResolverInterface>() - 48usize];
["Alignment of _GProxyResolverInterface"]
[::std::mem::align_of::<_GProxyResolverInterface>() - 8usize];
["Offset of field: _GProxyResolverInterface::g_iface"]
[::std::mem::offset_of!(_GProxyResolverInterface, g_iface) - 0usize];
["Offset of field: _GProxyResolverInterface::is_supported"]
[::std::mem::offset_of!(_GProxyResolverInterface, is_supported) - 16usize];
["Offset of field: _GProxyResolverInterface::lookup"]
[::std::mem::offset_of!(_GProxyResolverInterface, lookup) - 24usize];
["Offset of field: _GProxyResolverInterface::lookup_async"]
[::std::mem::offset_of!(_GProxyResolverInterface, lookup_async) - 32usize];
["Offset of field: _GProxyResolverInterface::lookup_finish"]
[::std::mem::offset_of!(_GProxyResolverInterface, lookup_finish) - 40usize];
};
unsafe extern "C" {
pub fn g_proxy_resolver_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_proxy_resolver_get_default() -> *mut GProxyResolver;
}
unsafe extern "C" {
pub fn g_proxy_resolver_is_supported(resolver: *mut GProxyResolver) -> gboolean;
}
unsafe extern "C" {
pub fn g_proxy_resolver_lookup(
resolver: *mut GProxyResolver,
uri: *const gchar,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> *mut *mut gchar;
}
unsafe extern "C" {
pub fn g_proxy_resolver_lookup_async(
resolver: *mut GProxyResolver,
uri: *const gchar,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
);
}
unsafe extern "C" {
pub fn g_proxy_resolver_lookup_finish(
resolver: *mut GProxyResolver,
result: *mut GAsyncResult,
error: *mut *mut GError,
) -> *mut *mut gchar;
}
pub type GRemoteActionGroupInterface = _GRemoteActionGroupInterface;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GRemoteActionGroupInterface {
pub g_iface: GTypeInterface,
pub activate_action_full: ::std::option::Option<
unsafe extern "C" fn(
remote: *mut GRemoteActionGroup,
action_name: *const gchar,
parameter: *mut GVariant,
platform_data: *mut GVariant,
),
>,
pub change_action_state_full: ::std::option::Option<
unsafe extern "C" fn(
remote: *mut GRemoteActionGroup,
action_name: *const gchar,
value: *mut GVariant,
platform_data: *mut GVariant,
),
>,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GRemoteActionGroupInterface"]
[::std::mem::size_of::<_GRemoteActionGroupInterface>() - 32usize];
["Alignment of _GRemoteActionGroupInterface"]
[::std::mem::align_of::<_GRemoteActionGroupInterface>() - 8usize];
["Offset of field: _GRemoteActionGroupInterface::g_iface"]
[::std::mem::offset_of!(_GRemoteActionGroupInterface, g_iface) - 0usize];
["Offset of field: _GRemoteActionGroupInterface::activate_action_full"]
[::std::mem::offset_of!(_GRemoteActionGroupInterface, activate_action_full) - 16usize];
["Offset of field: _GRemoteActionGroupInterface::change_action_state_full"]
[::std::mem::offset_of!(_GRemoteActionGroupInterface, change_action_state_full) - 24usize];
};
unsafe extern "C" {
pub fn g_remote_action_group_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_remote_action_group_activate_action_full(
remote: *mut GRemoteActionGroup,
action_name: *const gchar,
parameter: *mut GVariant,
platform_data: *mut GVariant,
);
}
unsafe extern "C" {
pub fn g_remote_action_group_change_action_state_full(
remote: *mut GRemoteActionGroup,
action_name: *const gchar,
value: *mut GVariant,
platform_data: *mut GVariant,
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GResolverPrivate {
_unused: [u8; 0],
}
pub type GResolverPrivate = _GResolverPrivate;
pub type GResolverClass = _GResolverClass;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GResolver {
pub parent_instance: GObject,
pub priv_: *mut GResolverPrivate,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GResolver"][::std::mem::size_of::<_GResolver>() - 32usize];
["Alignment of _GResolver"][::std::mem::align_of::<_GResolver>() - 8usize];
["Offset of field: _GResolver::parent_instance"]
[::std::mem::offset_of!(_GResolver, parent_instance) - 0usize];
["Offset of field: _GResolver::priv_"][::std::mem::offset_of!(_GResolver, priv_) - 24usize];
};
pub const GResolverNameLookupFlags_G_RESOLVER_NAME_LOOKUP_FLAGS_DEFAULT: GResolverNameLookupFlags =
0;
pub const GResolverNameLookupFlags_G_RESOLVER_NAME_LOOKUP_FLAGS_IPV4_ONLY:
GResolverNameLookupFlags = 1;
pub const GResolverNameLookupFlags_G_RESOLVER_NAME_LOOKUP_FLAGS_IPV6_ONLY:
GResolverNameLookupFlags = 2;
pub type GResolverNameLookupFlags = ::std::os::raw::c_uint;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GResolverClass {
pub parent_class: GObjectClass,
pub reload: ::std::option::Option<unsafe extern "C" fn(resolver: *mut GResolver)>,
pub lookup_by_name: ::std::option::Option<
unsafe extern "C" fn(
resolver: *mut GResolver,
hostname: *const gchar,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> *mut GList,
>,
pub lookup_by_name_async: ::std::option::Option<
unsafe extern "C" fn(
resolver: *mut GResolver,
hostname: *const gchar,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
),
>,
pub lookup_by_name_finish: ::std::option::Option<
unsafe extern "C" fn(
resolver: *mut GResolver,
result: *mut GAsyncResult,
error: *mut *mut GError,
) -> *mut GList,
>,
pub lookup_by_address: ::std::option::Option<
unsafe extern "C" fn(
resolver: *mut GResolver,
address: *mut GInetAddress,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> *mut gchar,
>,
pub lookup_by_address_async: ::std::option::Option<
unsafe extern "C" fn(
resolver: *mut GResolver,
address: *mut GInetAddress,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
),
>,
pub lookup_by_address_finish: ::std::option::Option<
unsafe extern "C" fn(
resolver: *mut GResolver,
result: *mut GAsyncResult,
error: *mut *mut GError,
) -> *mut gchar,
>,
pub lookup_service: ::std::option::Option<
unsafe extern "C" fn(
resolver: *mut GResolver,
rrname: *const gchar,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> *mut GList,
>,
pub lookup_service_async: ::std::option::Option<
unsafe extern "C" fn(
resolver: *mut GResolver,
rrname: *const gchar,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
),
>,
pub lookup_service_finish: ::std::option::Option<
unsafe extern "C" fn(
resolver: *mut GResolver,
result: *mut GAsyncResult,
error: *mut *mut GError,
) -> *mut GList,
>,
pub lookup_records: ::std::option::Option<
unsafe extern "C" fn(
resolver: *mut GResolver,
rrname: *const gchar,
record_type: GResolverRecordType,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> *mut GList,
>,
pub lookup_records_async: ::std::option::Option<
unsafe extern "C" fn(
resolver: *mut GResolver,
rrname: *const gchar,
record_type: GResolverRecordType,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
),
>,
pub lookup_records_finish: ::std::option::Option<
unsafe extern "C" fn(
resolver: *mut GResolver,
result: *mut GAsyncResult,
error: *mut *mut GError,
) -> *mut GList,
>,
pub lookup_by_name_with_flags_async: ::std::option::Option<
unsafe extern "C" fn(
resolver: *mut GResolver,
hostname: *const gchar,
flags: GResolverNameLookupFlags,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
),
>,
pub lookup_by_name_with_flags_finish: ::std::option::Option<
unsafe extern "C" fn(
resolver: *mut GResolver,
result: *mut GAsyncResult,
error: *mut *mut GError,
) -> *mut GList,
>,
pub lookup_by_name_with_flags: ::std::option::Option<
unsafe extern "C" fn(
resolver: *mut GResolver,
hostname: *const gchar,
flags: GResolverNameLookupFlags,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> *mut GList,
>,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GResolverClass"][::std::mem::size_of::<_GResolverClass>() - 264usize];
["Alignment of _GResolverClass"][::std::mem::align_of::<_GResolverClass>() - 8usize];
["Offset of field: _GResolverClass::parent_class"]
[::std::mem::offset_of!(_GResolverClass, parent_class) - 0usize];
["Offset of field: _GResolverClass::reload"]
[::std::mem::offset_of!(_GResolverClass, reload) - 136usize];
["Offset of field: _GResolverClass::lookup_by_name"]
[::std::mem::offset_of!(_GResolverClass, lookup_by_name) - 144usize];
["Offset of field: _GResolverClass::lookup_by_name_async"]
[::std::mem::offset_of!(_GResolverClass, lookup_by_name_async) - 152usize];
["Offset of field: _GResolverClass::lookup_by_name_finish"]
[::std::mem::offset_of!(_GResolverClass, lookup_by_name_finish) - 160usize];
["Offset of field: _GResolverClass::lookup_by_address"]
[::std::mem::offset_of!(_GResolverClass, lookup_by_address) - 168usize];
["Offset of field: _GResolverClass::lookup_by_address_async"]
[::std::mem::offset_of!(_GResolverClass, lookup_by_address_async) - 176usize];
["Offset of field: _GResolverClass::lookup_by_address_finish"]
[::std::mem::offset_of!(_GResolverClass, lookup_by_address_finish) - 184usize];
["Offset of field: _GResolverClass::lookup_service"]
[::std::mem::offset_of!(_GResolverClass, lookup_service) - 192usize];
["Offset of field: _GResolverClass::lookup_service_async"]
[::std::mem::offset_of!(_GResolverClass, lookup_service_async) - 200usize];
["Offset of field: _GResolverClass::lookup_service_finish"]
[::std::mem::offset_of!(_GResolverClass, lookup_service_finish) - 208usize];
["Offset of field: _GResolverClass::lookup_records"]
[::std::mem::offset_of!(_GResolverClass, lookup_records) - 216usize];
["Offset of field: _GResolverClass::lookup_records_async"]
[::std::mem::offset_of!(_GResolverClass, lookup_records_async) - 224usize];
["Offset of field: _GResolverClass::lookup_records_finish"]
[::std::mem::offset_of!(_GResolverClass, lookup_records_finish) - 232usize];
["Offset of field: _GResolverClass::lookup_by_name_with_flags_async"]
[::std::mem::offset_of!(_GResolverClass, lookup_by_name_with_flags_async) - 240usize];
["Offset of field: _GResolverClass::lookup_by_name_with_flags_finish"]
[::std::mem::offset_of!(_GResolverClass, lookup_by_name_with_flags_finish) - 248usize];
["Offset of field: _GResolverClass::lookup_by_name_with_flags"]
[::std::mem::offset_of!(_GResolverClass, lookup_by_name_with_flags) - 256usize];
};
unsafe extern "C" {
pub fn g_resolver_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_resolver_get_default() -> *mut GResolver;
}
unsafe extern "C" {
pub fn g_resolver_set_default(resolver: *mut GResolver);
}
unsafe extern "C" {
pub fn g_resolver_lookup_by_name(
resolver: *mut GResolver,
hostname: *const gchar,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> *mut GList;
}
unsafe extern "C" {
pub fn g_resolver_lookup_by_name_async(
resolver: *mut GResolver,
hostname: *const gchar,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
);
}
unsafe extern "C" {
pub fn g_resolver_lookup_by_name_finish(
resolver: *mut GResolver,
result: *mut GAsyncResult,
error: *mut *mut GError,
) -> *mut GList;
}
unsafe extern "C" {
pub fn g_resolver_lookup_by_name_with_flags_async(
resolver: *mut GResolver,
hostname: *const gchar,
flags: GResolverNameLookupFlags,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
);
}
unsafe extern "C" {
pub fn g_resolver_lookup_by_name_with_flags_finish(
resolver: *mut GResolver,
result: *mut GAsyncResult,
error: *mut *mut GError,
) -> *mut GList;
}
unsafe extern "C" {
pub fn g_resolver_lookup_by_name_with_flags(
resolver: *mut GResolver,
hostname: *const gchar,
flags: GResolverNameLookupFlags,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> *mut GList;
}
unsafe extern "C" {
pub fn g_resolver_free_addresses(addresses: *mut GList);
}
unsafe extern "C" {
pub fn g_resolver_lookup_by_address(
resolver: *mut GResolver,
address: *mut GInetAddress,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> *mut gchar;
}
unsafe extern "C" {
pub fn g_resolver_lookup_by_address_async(
resolver: *mut GResolver,
address: *mut GInetAddress,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
);
}
unsafe extern "C" {
pub fn g_resolver_lookup_by_address_finish(
resolver: *mut GResolver,
result: *mut GAsyncResult,
error: *mut *mut GError,
) -> *mut gchar;
}
unsafe extern "C" {
pub fn g_resolver_lookup_service(
resolver: *mut GResolver,
service: *const gchar,
protocol: *const gchar,
domain: *const gchar,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> *mut GList;
}
unsafe extern "C" {
pub fn g_resolver_lookup_service_async(
resolver: *mut GResolver,
service: *const gchar,
protocol: *const gchar,
domain: *const gchar,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
);
}
unsafe extern "C" {
pub fn g_resolver_lookup_service_finish(
resolver: *mut GResolver,
result: *mut GAsyncResult,
error: *mut *mut GError,
) -> *mut GList;
}
unsafe extern "C" {
pub fn g_resolver_lookup_records(
resolver: *mut GResolver,
rrname: *const gchar,
record_type: GResolverRecordType,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> *mut GList;
}
unsafe extern "C" {
pub fn g_resolver_lookup_records_async(
resolver: *mut GResolver,
rrname: *const gchar,
record_type: GResolverRecordType,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
);
}
unsafe extern "C" {
pub fn g_resolver_lookup_records_finish(
resolver: *mut GResolver,
result: *mut GAsyncResult,
error: *mut *mut GError,
) -> *mut GList;
}
unsafe extern "C" {
pub fn g_resolver_free_targets(targets: *mut GList);
}
unsafe extern "C" {
pub fn g_resolver_get_timeout(resolver: *mut GResolver) -> ::std::os::raw::c_uint;
}
unsafe extern "C" {
pub fn g_resolver_set_timeout(resolver: *mut GResolver, timeout_ms: ::std::os::raw::c_uint);
}
unsafe extern "C" {
pub fn g_resolver_error_quark() -> GQuark;
}
unsafe extern "C" {
pub fn g_resource_error_quark() -> GQuark;
}
pub type GStaticResource = _GStaticResource;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GStaticResource {
pub data: *const guint8,
pub data_len: gsize,
pub resource: *mut GResource,
pub next: *mut GStaticResource,
pub padding: gpointer,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GStaticResource"][::std::mem::size_of::<_GStaticResource>() - 40usize];
["Alignment of _GStaticResource"][::std::mem::align_of::<_GStaticResource>() - 8usize];
["Offset of field: _GStaticResource::data"]
[::std::mem::offset_of!(_GStaticResource, data) - 0usize];
["Offset of field: _GStaticResource::data_len"]
[::std::mem::offset_of!(_GStaticResource, data_len) - 8usize];
["Offset of field: _GStaticResource::resource"]
[::std::mem::offset_of!(_GStaticResource, resource) - 16usize];
["Offset of field: _GStaticResource::next"]
[::std::mem::offset_of!(_GStaticResource, next) - 24usize];
["Offset of field: _GStaticResource::padding"]
[::std::mem::offset_of!(_GStaticResource, padding) - 32usize];
};
unsafe extern "C" {
pub fn g_resource_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_resource_new_from_data(data: *mut GBytes, error: *mut *mut GError) -> *mut GResource;
}
unsafe extern "C" {
pub fn g_resource_ref(resource: *mut GResource) -> *mut GResource;
}
unsafe extern "C" {
pub fn g_resource_unref(resource: *mut GResource);
}
unsafe extern "C" {
pub fn g_resource_load(filename: *const gchar, error: *mut *mut GError) -> *mut GResource;
}
unsafe extern "C" {
pub fn g_resource_open_stream(
resource: *mut GResource,
path: *const ::std::os::raw::c_char,
lookup_flags: GResourceLookupFlags,
error: *mut *mut GError,
) -> *mut GInputStream;
}
unsafe extern "C" {
pub fn g_resource_lookup_data(
resource: *mut GResource,
path: *const ::std::os::raw::c_char,
lookup_flags: GResourceLookupFlags,
error: *mut *mut GError,
) -> *mut GBytes;
}
unsafe extern "C" {
pub fn g_resource_enumerate_children(
resource: *mut GResource,
path: *const ::std::os::raw::c_char,
lookup_flags: GResourceLookupFlags,
error: *mut *mut GError,
) -> *mut *mut ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn g_resource_get_info(
resource: *mut GResource,
path: *const ::std::os::raw::c_char,
lookup_flags: GResourceLookupFlags,
size: *mut gsize,
flags: *mut guint32,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_resources_register(resource: *mut GResource);
}
unsafe extern "C" {
pub fn g_resources_unregister(resource: *mut GResource);
}
unsafe extern "C" {
pub fn g_resources_open_stream(
path: *const ::std::os::raw::c_char,
lookup_flags: GResourceLookupFlags,
error: *mut *mut GError,
) -> *mut GInputStream;
}
unsafe extern "C" {
pub fn g_resources_lookup_data(
path: *const ::std::os::raw::c_char,
lookup_flags: GResourceLookupFlags,
error: *mut *mut GError,
) -> *mut GBytes;
}
unsafe extern "C" {
pub fn g_resources_enumerate_children(
path: *const ::std::os::raw::c_char,
lookup_flags: GResourceLookupFlags,
error: *mut *mut GError,
) -> *mut *mut ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn g_resources_get_info(
path: *const ::std::os::raw::c_char,
lookup_flags: GResourceLookupFlags,
size: *mut gsize,
flags: *mut guint32,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_resource_has_children(
resource: *mut GResource,
path: *const ::std::os::raw::c_char,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_resources_has_children(path: *const ::std::os::raw::c_char) -> gboolean;
}
unsafe extern "C" {
pub fn g_static_resource_init(static_resource: *mut GStaticResource);
}
unsafe extern "C" {
pub fn g_static_resource_fini(static_resource: *mut GStaticResource);
}
unsafe extern "C" {
pub fn g_static_resource_get_resource(static_resource: *mut GStaticResource) -> *mut GResource;
}
pub type GSeekableIface = _GSeekableIface;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GSeekableIface {
pub g_iface: GTypeInterface,
pub tell: ::std::option::Option<unsafe extern "C" fn(seekable: *mut GSeekable) -> goffset>,
pub can_seek: ::std::option::Option<unsafe extern "C" fn(seekable: *mut GSeekable) -> gboolean>,
pub seek: ::std::option::Option<
unsafe extern "C" fn(
seekable: *mut GSeekable,
offset: goffset,
type_: GSeekType,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> gboolean,
>,
pub can_truncate:
::std::option::Option<unsafe extern "C" fn(seekable: *mut GSeekable) -> gboolean>,
pub truncate_fn: ::std::option::Option<
unsafe extern "C" fn(
seekable: *mut GSeekable,
offset: goffset,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> gboolean,
>,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GSeekableIface"][::std::mem::size_of::<_GSeekableIface>() - 56usize];
["Alignment of _GSeekableIface"][::std::mem::align_of::<_GSeekableIface>() - 8usize];
["Offset of field: _GSeekableIface::g_iface"]
[::std::mem::offset_of!(_GSeekableIface, g_iface) - 0usize];
["Offset of field: _GSeekableIface::tell"]
[::std::mem::offset_of!(_GSeekableIface, tell) - 16usize];
["Offset of field: _GSeekableIface::can_seek"]
[::std::mem::offset_of!(_GSeekableIface, can_seek) - 24usize];
["Offset of field: _GSeekableIface::seek"]
[::std::mem::offset_of!(_GSeekableIface, seek) - 32usize];
["Offset of field: _GSeekableIface::can_truncate"]
[::std::mem::offset_of!(_GSeekableIface, can_truncate) - 40usize];
["Offset of field: _GSeekableIface::truncate_fn"]
[::std::mem::offset_of!(_GSeekableIface, truncate_fn) - 48usize];
};
unsafe extern "C" {
pub fn g_seekable_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_seekable_tell(seekable: *mut GSeekable) -> goffset;
}
unsafe extern "C" {
pub fn g_seekable_can_seek(seekable: *mut GSeekable) -> gboolean;
}
unsafe extern "C" {
pub fn g_seekable_seek(
seekable: *mut GSeekable,
offset: goffset,
type_: GSeekType,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_seekable_can_truncate(seekable: *mut GSeekable) -> gboolean;
}
unsafe extern "C" {
pub fn g_seekable_truncate(
seekable: *mut GSeekable,
offset: goffset,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> gboolean;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GSettingsSchemaSource {
_unused: [u8; 0],
}
pub type GSettingsSchemaSource = _GSettingsSchemaSource;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GSettingsSchema {
_unused: [u8; 0],
}
pub type GSettingsSchema = _GSettingsSchema;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GSettingsSchemaKey {
_unused: [u8; 0],
}
pub type GSettingsSchemaKey = _GSettingsSchemaKey;
unsafe extern "C" {
pub fn g_settings_schema_source_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_settings_schema_source_get_default() -> *mut GSettingsSchemaSource;
}
unsafe extern "C" {
pub fn g_settings_schema_source_ref(
source: *mut GSettingsSchemaSource,
) -> *mut GSettingsSchemaSource;
}
unsafe extern "C" {
pub fn g_settings_schema_source_unref(source: *mut GSettingsSchemaSource);
}
unsafe extern "C" {
pub fn g_settings_schema_source_new_from_directory(
directory: *const gchar,
parent: *mut GSettingsSchemaSource,
trusted: gboolean,
error: *mut *mut GError,
) -> *mut GSettingsSchemaSource;
}
unsafe extern "C" {
pub fn g_settings_schema_source_lookup(
source: *mut GSettingsSchemaSource,
schema_id: *const gchar,
recursive: gboolean,
) -> *mut GSettingsSchema;
}
unsafe extern "C" {
pub fn g_settings_schema_source_list_schemas(
source: *mut GSettingsSchemaSource,
recursive: gboolean,
non_relocatable: *mut *mut *mut gchar,
relocatable: *mut *mut *mut gchar,
);
}
unsafe extern "C" {
pub fn g_settings_schema_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_settings_schema_ref(schema: *mut GSettingsSchema) -> *mut GSettingsSchema;
}
unsafe extern "C" {
pub fn g_settings_schema_unref(schema: *mut GSettingsSchema);
}
unsafe extern "C" {
pub fn g_settings_schema_get_id(schema: *mut GSettingsSchema) -> *const gchar;
}
unsafe extern "C" {
pub fn g_settings_schema_get_path(schema: *mut GSettingsSchema) -> *const gchar;
}
unsafe extern "C" {
pub fn g_settings_schema_get_key(
schema: *mut GSettingsSchema,
name: *const gchar,
) -> *mut GSettingsSchemaKey;
}
unsafe extern "C" {
pub fn g_settings_schema_has_key(schema: *mut GSettingsSchema, name: *const gchar) -> gboolean;
}
unsafe extern "C" {
pub fn g_settings_schema_list_keys(schema: *mut GSettingsSchema) -> *mut *mut gchar;
}
unsafe extern "C" {
pub fn g_settings_schema_list_children(schema: *mut GSettingsSchema) -> *mut *mut gchar;
}
unsafe extern "C" {
pub fn g_settings_schema_key_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_settings_schema_key_ref(key: *mut GSettingsSchemaKey) -> *mut GSettingsSchemaKey;
}
unsafe extern "C" {
pub fn g_settings_schema_key_unref(key: *mut GSettingsSchemaKey);
}
unsafe extern "C" {
pub fn g_settings_schema_key_get_value_type(
key: *mut GSettingsSchemaKey,
) -> *const GVariantType;
}
unsafe extern "C" {
pub fn g_settings_schema_key_get_default_value(key: *mut GSettingsSchemaKey) -> *mut GVariant;
}
unsafe extern "C" {
pub fn g_settings_schema_key_get_range(key: *mut GSettingsSchemaKey) -> *mut GVariant;
}
unsafe extern "C" {
pub fn g_settings_schema_key_range_check(
key: *mut GSettingsSchemaKey,
value: *mut GVariant,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_settings_schema_key_get_name(key: *mut GSettingsSchemaKey) -> *const gchar;
}
unsafe extern "C" {
pub fn g_settings_schema_key_get_summary(key: *mut GSettingsSchemaKey) -> *const gchar;
}
unsafe extern "C" {
pub fn g_settings_schema_key_get_description(key: *mut GSettingsSchemaKey) -> *const gchar;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GSettingsPrivate {
_unused: [u8; 0],
}
pub type GSettingsPrivate = _GSettingsPrivate;
pub type GSettingsClass = _GSettingsClass;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GSettingsClass {
pub parent_class: GObjectClass,
pub writable_changed:
::std::option::Option<unsafe extern "C" fn(settings: *mut GSettings, key: *const gchar)>,
pub changed:
::std::option::Option<unsafe extern "C" fn(settings: *mut GSettings, key: *const gchar)>,
pub writable_change_event: ::std::option::Option<
unsafe extern "C" fn(settings: *mut GSettings, key: GQuark) -> gboolean,
>,
pub change_event: ::std::option::Option<
unsafe extern "C" fn(
settings: *mut GSettings,
keys: *const GQuark,
n_keys: gint,
) -> gboolean,
>,
pub padding: [gpointer; 20usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GSettingsClass"][::std::mem::size_of::<_GSettingsClass>() - 328usize];
["Alignment of _GSettingsClass"][::std::mem::align_of::<_GSettingsClass>() - 8usize];
["Offset of field: _GSettingsClass::parent_class"]
[::std::mem::offset_of!(_GSettingsClass, parent_class) - 0usize];
["Offset of field: _GSettingsClass::writable_changed"]
[::std::mem::offset_of!(_GSettingsClass, writable_changed) - 136usize];
["Offset of field: _GSettingsClass::changed"]
[::std::mem::offset_of!(_GSettingsClass, changed) - 144usize];
["Offset of field: _GSettingsClass::writable_change_event"]
[::std::mem::offset_of!(_GSettingsClass, writable_change_event) - 152usize];
["Offset of field: _GSettingsClass::change_event"]
[::std::mem::offset_of!(_GSettingsClass, change_event) - 160usize];
["Offset of field: _GSettingsClass::padding"]
[::std::mem::offset_of!(_GSettingsClass, padding) - 168usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GSettings {
pub parent_instance: GObject,
pub priv_: *mut GSettingsPrivate,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GSettings"][::std::mem::size_of::<_GSettings>() - 32usize];
["Alignment of _GSettings"][::std::mem::align_of::<_GSettings>() - 8usize];
["Offset of field: _GSettings::parent_instance"]
[::std::mem::offset_of!(_GSettings, parent_instance) - 0usize];
["Offset of field: _GSettings::priv_"][::std::mem::offset_of!(_GSettings, priv_) - 24usize];
};
unsafe extern "C" {
pub fn g_settings_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_settings_list_schemas() -> *const *const gchar;
}
unsafe extern "C" {
pub fn g_settings_list_relocatable_schemas() -> *const *const gchar;
}
unsafe extern "C" {
pub fn g_settings_new(schema_id: *const gchar) -> *mut GSettings;
}
unsafe extern "C" {
pub fn g_settings_new_with_path(schema_id: *const gchar, path: *const gchar) -> *mut GSettings;
}
unsafe extern "C" {
pub fn g_settings_new_with_backend(
schema_id: *const gchar,
backend: *mut GSettingsBackend,
) -> *mut GSettings;
}
unsafe extern "C" {
pub fn g_settings_new_with_backend_and_path(
schema_id: *const gchar,
backend: *mut GSettingsBackend,
path: *const gchar,
) -> *mut GSettings;
}
unsafe extern "C" {
pub fn g_settings_new_full(
schema: *mut GSettingsSchema,
backend: *mut GSettingsBackend,
path: *const gchar,
) -> *mut GSettings;
}
unsafe extern "C" {
pub fn g_settings_list_children(settings: *mut GSettings) -> *mut *mut gchar;
}
unsafe extern "C" {
pub fn g_settings_list_keys(settings: *mut GSettings) -> *mut *mut gchar;
}
unsafe extern "C" {
pub fn g_settings_get_range(settings: *mut GSettings, key: *const gchar) -> *mut GVariant;
}
unsafe extern "C" {
pub fn g_settings_range_check(
settings: *mut GSettings,
key: *const gchar,
value: *mut GVariant,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_settings_set_value(
settings: *mut GSettings,
key: *const gchar,
value: *mut GVariant,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_settings_get_value(settings: *mut GSettings, key: *const gchar) -> *mut GVariant;
}
unsafe extern "C" {
pub fn g_settings_get_user_value(settings: *mut GSettings, key: *const gchar) -> *mut GVariant;
}
unsafe extern "C" {
pub fn g_settings_get_default_value(
settings: *mut GSettings,
key: *const gchar,
) -> *mut GVariant;
}
unsafe extern "C" {
pub fn g_settings_set(
settings: *mut GSettings,
key: *const gchar,
format: *const gchar,
...
) -> gboolean;
}
unsafe extern "C" {
pub fn g_settings_get(settings: *mut GSettings, key: *const gchar, format: *const gchar, ...);
}
unsafe extern "C" {
pub fn g_settings_reset(settings: *mut GSettings, key: *const gchar);
}
unsafe extern "C" {
pub fn g_settings_get_int(settings: *mut GSettings, key: *const gchar) -> gint;
}
unsafe extern "C" {
pub fn g_settings_set_int(settings: *mut GSettings, key: *const gchar, value: gint)
-> gboolean;
}
unsafe extern "C" {
pub fn g_settings_get_int64(settings: *mut GSettings, key: *const gchar) -> gint64;
}
unsafe extern "C" {
pub fn g_settings_set_int64(
settings: *mut GSettings,
key: *const gchar,
value: gint64,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_settings_get_uint(settings: *mut GSettings, key: *const gchar) -> guint;
}
unsafe extern "C" {
pub fn g_settings_set_uint(
settings: *mut GSettings,
key: *const gchar,
value: guint,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_settings_get_uint64(settings: *mut GSettings, key: *const gchar) -> guint64;
}
unsafe extern "C" {
pub fn g_settings_set_uint64(
settings: *mut GSettings,
key: *const gchar,
value: guint64,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_settings_get_string(settings: *mut GSettings, key: *const gchar) -> *mut gchar;
}
unsafe extern "C" {
pub fn g_settings_set_string(
settings: *mut GSettings,
key: *const gchar,
value: *const gchar,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_settings_get_boolean(settings: *mut GSettings, key: *const gchar) -> gboolean;
}
unsafe extern "C" {
pub fn g_settings_set_boolean(
settings: *mut GSettings,
key: *const gchar,
value: gboolean,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_settings_get_double(settings: *mut GSettings, key: *const gchar) -> gdouble;
}
unsafe extern "C" {
pub fn g_settings_set_double(
settings: *mut GSettings,
key: *const gchar,
value: gdouble,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_settings_get_strv(settings: *mut GSettings, key: *const gchar) -> *mut *mut gchar;
}
unsafe extern "C" {
pub fn g_settings_set_strv(
settings: *mut GSettings,
key: *const gchar,
value: *const *const gchar,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_settings_get_enum(settings: *mut GSettings, key: *const gchar) -> gint;
}
unsafe extern "C" {
pub fn g_settings_set_enum(
settings: *mut GSettings,
key: *const gchar,
value: gint,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_settings_get_flags(settings: *mut GSettings, key: *const gchar) -> guint;
}
unsafe extern "C" {
pub fn g_settings_set_flags(
settings: *mut GSettings,
key: *const gchar,
value: guint,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_settings_get_child(settings: *mut GSettings, name: *const gchar) -> *mut GSettings;
}
unsafe extern "C" {
pub fn g_settings_is_writable(settings: *mut GSettings, name: *const gchar) -> gboolean;
}
unsafe extern "C" {
pub fn g_settings_delay(settings: *mut GSettings);
}
unsafe extern "C" {
pub fn g_settings_apply(settings: *mut GSettings);
}
unsafe extern "C" {
pub fn g_settings_revert(settings: *mut GSettings);
}
unsafe extern "C" {
pub fn g_settings_get_has_unapplied(settings: *mut GSettings) -> gboolean;
}
unsafe extern "C" {
pub fn g_settings_sync();
}
pub type GSettingsBindSetMapping = ::std::option::Option<
unsafe extern "C" fn(
value: *const GValue,
expected_type: *const GVariantType,
user_data: gpointer,
) -> *mut GVariant,
>;
pub type GSettingsBindGetMapping = ::std::option::Option<
unsafe extern "C" fn(
value: *mut GValue,
variant: *mut GVariant,
user_data: gpointer,
) -> gboolean,
>;
pub type GSettingsGetMapping = ::std::option::Option<
unsafe extern "C" fn(
value: *mut GVariant,
result: *mut gpointer,
user_data: gpointer,
) -> gboolean,
>;
pub const GSettingsBindFlags_G_SETTINGS_BIND_DEFAULT: GSettingsBindFlags = 0;
pub const GSettingsBindFlags_G_SETTINGS_BIND_GET: GSettingsBindFlags = 1;
pub const GSettingsBindFlags_G_SETTINGS_BIND_SET: GSettingsBindFlags = 2;
pub const GSettingsBindFlags_G_SETTINGS_BIND_NO_SENSITIVITY: GSettingsBindFlags = 4;
pub const GSettingsBindFlags_G_SETTINGS_BIND_GET_NO_CHANGES: GSettingsBindFlags = 8;
pub const GSettingsBindFlags_G_SETTINGS_BIND_INVERT_BOOLEAN: GSettingsBindFlags = 16;
pub type GSettingsBindFlags = ::std::os::raw::c_uint;
unsafe extern "C" {
pub fn g_settings_bind(
settings: *mut GSettings,
key: *const gchar,
object: gpointer,
property: *const gchar,
flags: GSettingsBindFlags,
);
}
unsafe extern "C" {
pub fn g_settings_bind_with_mapping(
settings: *mut GSettings,
key: *const gchar,
object: gpointer,
property: *const gchar,
flags: GSettingsBindFlags,
get_mapping: GSettingsBindGetMapping,
set_mapping: GSettingsBindSetMapping,
user_data: gpointer,
destroy: GDestroyNotify,
);
}
unsafe extern "C" {
pub fn g_settings_bind_with_mapping_closures(
settings: *mut GSettings,
key: *const ::std::os::raw::c_char,
object: *mut GObject,
property: *const ::std::os::raw::c_char,
flags: GSettingsBindFlags,
get_mapping: *mut GClosure,
set_mapping: *mut GClosure,
);
}
unsafe extern "C" {
pub fn g_settings_bind_writable(
settings: *mut GSettings,
key: *const gchar,
object: gpointer,
property: *const gchar,
inverted: gboolean,
);
}
unsafe extern "C" {
pub fn g_settings_unbind(object: gpointer, property: *const gchar);
}
unsafe extern "C" {
pub fn g_settings_create_action(settings: *mut GSettings, key: *const gchar) -> *mut GAction;
}
unsafe extern "C" {
pub fn g_settings_get_mapped(
settings: *mut GSettings,
key: *const gchar,
mapping: GSettingsGetMapping,
user_data: gpointer,
) -> gpointer;
}
unsafe extern "C" {
pub fn g_simple_action_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_simple_action_new(
name: *const gchar,
parameter_type: *const GVariantType,
) -> *mut GSimpleAction;
}
unsafe extern "C" {
pub fn g_simple_action_new_stateful(
name: *const gchar,
parameter_type: *const GVariantType,
state: *mut GVariant,
) -> *mut GSimpleAction;
}
unsafe extern "C" {
pub fn g_simple_action_set_enabled(simple: *mut GSimpleAction, enabled: gboolean);
}
unsafe extern "C" {
pub fn g_simple_action_set_state(simple: *mut GSimpleAction, value: *mut GVariant);
}
unsafe extern "C" {
pub fn g_simple_action_set_state_hint(simple: *mut GSimpleAction, state_hint: *mut GVariant);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GSimpleActionGroupPrivate {
_unused: [u8; 0],
}
pub type GSimpleActionGroupPrivate = _GSimpleActionGroupPrivate;
pub type GSimpleActionGroupClass = _GSimpleActionGroupClass;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GSimpleActionGroup {
pub parent_instance: GObject,
pub priv_: *mut GSimpleActionGroupPrivate,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GSimpleActionGroup"][::std::mem::size_of::<_GSimpleActionGroup>() - 32usize];
["Alignment of _GSimpleActionGroup"][::std::mem::align_of::<_GSimpleActionGroup>() - 8usize];
["Offset of field: _GSimpleActionGroup::parent_instance"]
[::std::mem::offset_of!(_GSimpleActionGroup, parent_instance) - 0usize];
["Offset of field: _GSimpleActionGroup::priv_"]
[::std::mem::offset_of!(_GSimpleActionGroup, priv_) - 24usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GSimpleActionGroupClass {
pub parent_class: GObjectClass,
pub padding: [gpointer; 12usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GSimpleActionGroupClass"]
[::std::mem::size_of::<_GSimpleActionGroupClass>() - 232usize];
["Alignment of _GSimpleActionGroupClass"]
[::std::mem::align_of::<_GSimpleActionGroupClass>() - 8usize];
["Offset of field: _GSimpleActionGroupClass::parent_class"]
[::std::mem::offset_of!(_GSimpleActionGroupClass, parent_class) - 0usize];
["Offset of field: _GSimpleActionGroupClass::padding"]
[::std::mem::offset_of!(_GSimpleActionGroupClass, padding) - 136usize];
};
unsafe extern "C" {
pub fn g_simple_action_group_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_simple_action_group_new() -> *mut GSimpleActionGroup;
}
unsafe extern "C" {
pub fn g_simple_action_group_lookup(
simple: *mut GSimpleActionGroup,
action_name: *const gchar,
) -> *mut GAction;
}
unsafe extern "C" {
pub fn g_simple_action_group_insert(simple: *mut GSimpleActionGroup, action: *mut GAction);
}
unsafe extern "C" {
pub fn g_simple_action_group_remove(simple: *mut GSimpleActionGroup, action_name: *const gchar);
}
unsafe extern "C" {
pub fn g_simple_action_group_add_entries(
simple: *mut GSimpleActionGroup,
entries: *const GActionEntry,
n_entries: gint,
user_data: gpointer,
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GSimpleAsyncResultClass {
_unused: [u8; 0],
}
pub type GSimpleAsyncResultClass = _GSimpleAsyncResultClass;
unsafe extern "C" {
pub fn g_simple_async_result_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_simple_async_result_new(
source_object: *mut GObject,
callback: GAsyncReadyCallback,
user_data: gpointer,
source_tag: gpointer,
) -> *mut GSimpleAsyncResult;
}
unsafe extern "C" {
pub fn g_simple_async_result_new_error(
source_object: *mut GObject,
callback: GAsyncReadyCallback,
user_data: gpointer,
domain: GQuark,
code: gint,
format: *const ::std::os::raw::c_char,
...
) -> *mut GSimpleAsyncResult;
}
unsafe extern "C" {
pub fn g_simple_async_result_new_from_error(
source_object: *mut GObject,
callback: GAsyncReadyCallback,
user_data: gpointer,
error: *const GError,
) -> *mut GSimpleAsyncResult;
}
unsafe extern "C" {
pub fn g_simple_async_result_new_take_error(
source_object: *mut GObject,
callback: GAsyncReadyCallback,
user_data: gpointer,
error: *mut GError,
) -> *mut GSimpleAsyncResult;
}
unsafe extern "C" {
pub fn g_simple_async_result_set_op_res_gpointer(
simple: *mut GSimpleAsyncResult,
op_res: gpointer,
destroy_op_res: GDestroyNotify,
);
}
unsafe extern "C" {
pub fn g_simple_async_result_get_op_res_gpointer(simple: *mut GSimpleAsyncResult) -> gpointer;
}
unsafe extern "C" {
pub fn g_simple_async_result_set_op_res_gssize(simple: *mut GSimpleAsyncResult, op_res: gssize);
}
unsafe extern "C" {
pub fn g_simple_async_result_get_op_res_gssize(simple: *mut GSimpleAsyncResult) -> gssize;
}
unsafe extern "C" {
pub fn g_simple_async_result_set_op_res_gboolean(
simple: *mut GSimpleAsyncResult,
op_res: gboolean,
);
}
unsafe extern "C" {
pub fn g_simple_async_result_get_op_res_gboolean(simple: *mut GSimpleAsyncResult) -> gboolean;
}
unsafe extern "C" {
pub fn g_simple_async_result_set_check_cancellable(
simple: *mut GSimpleAsyncResult,
check_cancellable: *mut GCancellable,
);
}
unsafe extern "C" {
pub fn g_simple_async_result_get_source_tag(simple: *mut GSimpleAsyncResult) -> gpointer;
}
unsafe extern "C" {
pub fn g_simple_async_result_set_handle_cancellation(
simple: *mut GSimpleAsyncResult,
handle_cancellation: gboolean,
);
}
unsafe extern "C" {
pub fn g_simple_async_result_complete(simple: *mut GSimpleAsyncResult);
}
unsafe extern "C" {
pub fn g_simple_async_result_complete_in_idle(simple: *mut GSimpleAsyncResult);
}
unsafe extern "C" {
pub fn g_simple_async_result_run_in_thread(
simple: *mut GSimpleAsyncResult,
func: GSimpleAsyncThreadFunc,
io_priority: ::std::os::raw::c_int,
cancellable: *mut GCancellable,
);
}
unsafe extern "C" {
pub fn g_simple_async_result_set_from_error(
simple: *mut GSimpleAsyncResult,
error: *const GError,
);
}
unsafe extern "C" {
pub fn g_simple_async_result_take_error(simple: *mut GSimpleAsyncResult, error: *mut GError);
}
unsafe extern "C" {
pub fn g_simple_async_result_propagate_error(
simple: *mut GSimpleAsyncResult,
dest: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_simple_async_result_set_error(
simple: *mut GSimpleAsyncResult,
domain: GQuark,
code: gint,
format: *const ::std::os::raw::c_char,
...
);
}
unsafe extern "C" {
pub fn g_simple_async_result_set_error_va(
simple: *mut GSimpleAsyncResult,
domain: GQuark,
code: gint,
format: *const ::std::os::raw::c_char,
args: va_list,
);
}
unsafe extern "C" {
pub fn g_simple_async_result_is_valid(
result: *mut GAsyncResult,
source: *mut GObject,
source_tag: gpointer,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_simple_async_report_error_in_idle(
object: *mut GObject,
callback: GAsyncReadyCallback,
user_data: gpointer,
domain: GQuark,
code: gint,
format: *const ::std::os::raw::c_char,
...
);
}
unsafe extern "C" {
pub fn g_simple_async_report_gerror_in_idle(
object: *mut GObject,
callback: GAsyncReadyCallback,
user_data: gpointer,
error: *const GError,
);
}
unsafe extern "C" {
pub fn g_simple_async_report_take_gerror_in_idle(
object: *mut GObject,
callback: GAsyncReadyCallback,
user_data: gpointer,
error: *mut GError,
);
}
unsafe extern "C" {
pub fn g_simple_io_stream_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_simple_io_stream_new(
input_stream: *mut GInputStream,
output_stream: *mut GOutputStream,
) -> *mut GIOStream;
}
unsafe extern "C" {
pub fn g_simple_permission_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_simple_permission_new(allowed: gboolean) -> *mut GPermission;
}
pub type GSimpleProxyResolver = _GSimpleProxyResolver;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GSimpleProxyResolverPrivate {
_unused: [u8; 0],
}
pub type GSimpleProxyResolverPrivate = _GSimpleProxyResolverPrivate;
pub type GSimpleProxyResolverClass = _GSimpleProxyResolverClass;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GSimpleProxyResolver {
pub parent_instance: GObject,
pub priv_: *mut GSimpleProxyResolverPrivate,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GSimpleProxyResolver"][::std::mem::size_of::<_GSimpleProxyResolver>() - 32usize];
["Alignment of _GSimpleProxyResolver"]
[::std::mem::align_of::<_GSimpleProxyResolver>() - 8usize];
["Offset of field: _GSimpleProxyResolver::parent_instance"]
[::std::mem::offset_of!(_GSimpleProxyResolver, parent_instance) - 0usize];
["Offset of field: _GSimpleProxyResolver::priv_"]
[::std::mem::offset_of!(_GSimpleProxyResolver, priv_) - 24usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GSimpleProxyResolverClass {
pub parent_class: GObjectClass,
pub _g_reserved1: ::std::option::Option<unsafe extern "C" fn()>,
pub _g_reserved2: ::std::option::Option<unsafe extern "C" fn()>,
pub _g_reserved3: ::std::option::Option<unsafe extern "C" fn()>,
pub _g_reserved4: ::std::option::Option<unsafe extern "C" fn()>,
pub _g_reserved5: ::std::option::Option<unsafe extern "C" fn()>,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GSimpleProxyResolverClass"]
[::std::mem::size_of::<_GSimpleProxyResolverClass>() - 176usize];
["Alignment of _GSimpleProxyResolverClass"]
[::std::mem::align_of::<_GSimpleProxyResolverClass>() - 8usize];
["Offset of field: _GSimpleProxyResolverClass::parent_class"]
[::std::mem::offset_of!(_GSimpleProxyResolverClass, parent_class) - 0usize];
["Offset of field: _GSimpleProxyResolverClass::_g_reserved1"]
[::std::mem::offset_of!(_GSimpleProxyResolverClass, _g_reserved1) - 136usize];
["Offset of field: _GSimpleProxyResolverClass::_g_reserved2"]
[::std::mem::offset_of!(_GSimpleProxyResolverClass, _g_reserved2) - 144usize];
["Offset of field: _GSimpleProxyResolverClass::_g_reserved3"]
[::std::mem::offset_of!(_GSimpleProxyResolverClass, _g_reserved3) - 152usize];
["Offset of field: _GSimpleProxyResolverClass::_g_reserved4"]
[::std::mem::offset_of!(_GSimpleProxyResolverClass, _g_reserved4) - 160usize];
["Offset of field: _GSimpleProxyResolverClass::_g_reserved5"]
[::std::mem::offset_of!(_GSimpleProxyResolverClass, _g_reserved5) - 168usize];
};
unsafe extern "C" {
pub fn g_simple_proxy_resolver_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_simple_proxy_resolver_new(
default_proxy: *const gchar,
ignore_hosts: *mut *mut gchar,
) -> *mut GProxyResolver;
}
unsafe extern "C" {
pub fn g_simple_proxy_resolver_set_default_proxy(
resolver: *mut GSimpleProxyResolver,
default_proxy: *const gchar,
);
}
unsafe extern "C" {
pub fn g_simple_proxy_resolver_set_ignore_hosts(
resolver: *mut GSimpleProxyResolver,
ignore_hosts: *mut *mut gchar,
);
}
unsafe extern "C" {
pub fn g_simple_proxy_resolver_set_uri_proxy(
resolver: *mut GSimpleProxyResolver,
uri_scheme: *const gchar,
proxy: *const gchar,
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GSocketPrivate {
_unused: [u8; 0],
}
pub type GSocketPrivate = _GSocketPrivate;
pub type GSocketClass = _GSocketClass;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GSocketClass {
pub parent_class: GObjectClass,
pub _g_reserved1: ::std::option::Option<unsafe extern "C" fn()>,
pub _g_reserved2: ::std::option::Option<unsafe extern "C" fn()>,
pub _g_reserved3: ::std::option::Option<unsafe extern "C" fn()>,
pub _g_reserved4: ::std::option::Option<unsafe extern "C" fn()>,
pub _g_reserved5: ::std::option::Option<unsafe extern "C" fn()>,
pub _g_reserved6: ::std::option::Option<unsafe extern "C" fn()>,
pub _g_reserved7: ::std::option::Option<unsafe extern "C" fn()>,
pub _g_reserved8: ::std::option::Option<unsafe extern "C" fn()>,
pub _g_reserved9: ::std::option::Option<unsafe extern "C" fn()>,
pub _g_reserved10: ::std::option::Option<unsafe extern "C" fn()>,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GSocketClass"][::std::mem::size_of::<_GSocketClass>() - 216usize];
["Alignment of _GSocketClass"][::std::mem::align_of::<_GSocketClass>() - 8usize];
["Offset of field: _GSocketClass::parent_class"]
[::std::mem::offset_of!(_GSocketClass, parent_class) - 0usize];
["Offset of field: _GSocketClass::_g_reserved1"]
[::std::mem::offset_of!(_GSocketClass, _g_reserved1) - 136usize];
["Offset of field: _GSocketClass::_g_reserved2"]
[::std::mem::offset_of!(_GSocketClass, _g_reserved2) - 144usize];
["Offset of field: _GSocketClass::_g_reserved3"]
[::std::mem::offset_of!(_GSocketClass, _g_reserved3) - 152usize];
["Offset of field: _GSocketClass::_g_reserved4"]
[::std::mem::offset_of!(_GSocketClass, _g_reserved4) - 160usize];
["Offset of field: _GSocketClass::_g_reserved5"]
[::std::mem::offset_of!(_GSocketClass, _g_reserved5) - 168usize];
["Offset of field: _GSocketClass::_g_reserved6"]
[::std::mem::offset_of!(_GSocketClass, _g_reserved6) - 176usize];
["Offset of field: _GSocketClass::_g_reserved7"]
[::std::mem::offset_of!(_GSocketClass, _g_reserved7) - 184usize];
["Offset of field: _GSocketClass::_g_reserved8"]
[::std::mem::offset_of!(_GSocketClass, _g_reserved8) - 192usize];
["Offset of field: _GSocketClass::_g_reserved9"]
[::std::mem::offset_of!(_GSocketClass, _g_reserved9) - 200usize];
["Offset of field: _GSocketClass::_g_reserved10"]
[::std::mem::offset_of!(_GSocketClass, _g_reserved10) - 208usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GSocket {
pub parent_instance: GObject,
pub priv_: *mut GSocketPrivate,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GSocket"][::std::mem::size_of::<_GSocket>() - 32usize];
["Alignment of _GSocket"][::std::mem::align_of::<_GSocket>() - 8usize];
["Offset of field: _GSocket::parent_instance"]
[::std::mem::offset_of!(_GSocket, parent_instance) - 0usize];
["Offset of field: _GSocket::priv_"][::std::mem::offset_of!(_GSocket, priv_) - 24usize];
};
unsafe extern "C" {
pub fn g_socket_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_socket_new(
family: GSocketFamily,
type_: GSocketType,
protocol: GSocketProtocol,
error: *mut *mut GError,
) -> *mut GSocket;
}
unsafe extern "C" {
pub fn g_socket_new_from_fd(fd: gint, error: *mut *mut GError) -> *mut GSocket;
}
unsafe extern "C" {
pub fn g_socket_get_fd(socket: *mut GSocket) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn g_socket_get_family(socket: *mut GSocket) -> GSocketFamily;
}
unsafe extern "C" {
pub fn g_socket_get_socket_type(socket: *mut GSocket) -> GSocketType;
}
unsafe extern "C" {
pub fn g_socket_get_protocol(socket: *mut GSocket) -> GSocketProtocol;
}
unsafe extern "C" {
pub fn g_socket_get_local_address(
socket: *mut GSocket,
error: *mut *mut GError,
) -> *mut GSocketAddress;
}
unsafe extern "C" {
pub fn g_socket_get_remote_address(
socket: *mut GSocket,
error: *mut *mut GError,
) -> *mut GSocketAddress;
}
unsafe extern "C" {
pub fn g_socket_set_blocking(socket: *mut GSocket, blocking: gboolean);
}
unsafe extern "C" {
pub fn g_socket_get_blocking(socket: *mut GSocket) -> gboolean;
}
unsafe extern "C" {
pub fn g_socket_set_keepalive(socket: *mut GSocket, keepalive: gboolean);
}
unsafe extern "C" {
pub fn g_socket_get_keepalive(socket: *mut GSocket) -> gboolean;
}
unsafe extern "C" {
pub fn g_socket_get_listen_backlog(socket: *mut GSocket) -> gint;
}
unsafe extern "C" {
pub fn g_socket_set_listen_backlog(socket: *mut GSocket, backlog: gint);
}
unsafe extern "C" {
pub fn g_socket_get_timeout(socket: *mut GSocket) -> guint;
}
unsafe extern "C" {
pub fn g_socket_set_timeout(socket: *mut GSocket, timeout: guint);
}
unsafe extern "C" {
pub fn g_socket_get_ttl(socket: *mut GSocket) -> guint;
}
unsafe extern "C" {
pub fn g_socket_set_ttl(socket: *mut GSocket, ttl: guint);
}
unsafe extern "C" {
pub fn g_socket_get_broadcast(socket: *mut GSocket) -> gboolean;
}
unsafe extern "C" {
pub fn g_socket_set_broadcast(socket: *mut GSocket, broadcast: gboolean);
}
unsafe extern "C" {
pub fn g_socket_get_multicast_loopback(socket: *mut GSocket) -> gboolean;
}
unsafe extern "C" {
pub fn g_socket_set_multicast_loopback(socket: *mut GSocket, loopback: gboolean);
}
unsafe extern "C" {
pub fn g_socket_get_multicast_ttl(socket: *mut GSocket) -> guint;
}
unsafe extern "C" {
pub fn g_socket_set_multicast_ttl(socket: *mut GSocket, ttl: guint);
}
unsafe extern "C" {
pub fn g_socket_is_connected(socket: *mut GSocket) -> gboolean;
}
unsafe extern "C" {
pub fn g_socket_bind(
socket: *mut GSocket,
address: *mut GSocketAddress,
allow_reuse: gboolean,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_socket_join_multicast_group(
socket: *mut GSocket,
group: *mut GInetAddress,
source_specific: gboolean,
iface: *const gchar,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_socket_leave_multicast_group(
socket: *mut GSocket,
group: *mut GInetAddress,
source_specific: gboolean,
iface: *const gchar,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_socket_join_multicast_group_ssm(
socket: *mut GSocket,
group: *mut GInetAddress,
source_specific: *mut GInetAddress,
iface: *const gchar,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_socket_leave_multicast_group_ssm(
socket: *mut GSocket,
group: *mut GInetAddress,
source_specific: *mut GInetAddress,
iface: *const gchar,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_socket_connect(
socket: *mut GSocket,
address: *mut GSocketAddress,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_socket_check_connect_result(socket: *mut GSocket, error: *mut *mut GError)
-> gboolean;
}
unsafe extern "C" {
pub fn g_socket_get_available_bytes(socket: *mut GSocket) -> gssize;
}
unsafe extern "C" {
pub fn g_socket_condition_check(socket: *mut GSocket, condition: GIOCondition) -> GIOCondition;
}
unsafe extern "C" {
pub fn g_socket_condition_wait(
socket: *mut GSocket,
condition: GIOCondition,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_socket_condition_timed_wait(
socket: *mut GSocket,
condition: GIOCondition,
timeout_us: gint64,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_socket_accept(
socket: *mut GSocket,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> *mut GSocket;
}
unsafe extern "C" {
pub fn g_socket_listen(socket: *mut GSocket, error: *mut *mut GError) -> gboolean;
}
unsafe extern "C" {
pub fn g_socket_receive(
socket: *mut GSocket,
buffer: *mut gchar,
size: gsize,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> gssize;
}
unsafe extern "C" {
pub fn g_socket_receive_bytes(
socket: *mut GSocket,
size: gsize,
timeout_us: gint64,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> *mut GBytes;
}
unsafe extern "C" {
pub fn g_socket_receive_from(
socket: *mut GSocket,
address: *mut *mut GSocketAddress,
buffer: *mut gchar,
size: gsize,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> gssize;
}
unsafe extern "C" {
pub fn g_socket_receive_bytes_from(
socket: *mut GSocket,
address: *mut *mut GSocketAddress,
size: gsize,
timeout_us: gint64,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> *mut GBytes;
}
unsafe extern "C" {
pub fn g_socket_send(
socket: *mut GSocket,
buffer: *const gchar,
size: gsize,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> gssize;
}
unsafe extern "C" {
pub fn g_socket_send_to(
socket: *mut GSocket,
address: *mut GSocketAddress,
buffer: *const gchar,
size: gsize,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> gssize;
}
unsafe extern "C" {
pub fn g_socket_receive_message(
socket: *mut GSocket,
address: *mut *mut GSocketAddress,
vectors: *mut GInputVector,
num_vectors: gint,
messages: *mut *mut *mut GSocketControlMessage,
num_messages: *mut gint,
flags: *mut gint,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> gssize;
}
unsafe extern "C" {
pub fn g_socket_send_message(
socket: *mut GSocket,
address: *mut GSocketAddress,
vectors: *mut GOutputVector,
num_vectors: gint,
messages: *mut *mut GSocketControlMessage,
num_messages: gint,
flags: gint,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> gssize;
}
unsafe extern "C" {
pub fn g_socket_receive_messages(
socket: *mut GSocket,
messages: *mut GInputMessage,
num_messages: guint,
flags: gint,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> gint;
}
unsafe extern "C" {
pub fn g_socket_send_messages(
socket: *mut GSocket,
messages: *mut GOutputMessage,
num_messages: guint,
flags: gint,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> gint;
}
unsafe extern "C" {
pub fn g_socket_close(socket: *mut GSocket, error: *mut *mut GError) -> gboolean;
}
unsafe extern "C" {
pub fn g_socket_shutdown(
socket: *mut GSocket,
shutdown_read: gboolean,
shutdown_write: gboolean,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_socket_is_closed(socket: *mut GSocket) -> gboolean;
}
unsafe extern "C" {
pub fn g_socket_create_source(
socket: *mut GSocket,
condition: GIOCondition,
cancellable: *mut GCancellable,
) -> *mut GSource;
}
unsafe extern "C" {
pub fn g_socket_speaks_ipv4(socket: *mut GSocket) -> gboolean;
}
unsafe extern "C" {
pub fn g_socket_get_credentials(
socket: *mut GSocket,
error: *mut *mut GError,
) -> *mut GCredentials;
}
unsafe extern "C" {
pub fn g_socket_receive_with_blocking(
socket: *mut GSocket,
buffer: *mut gchar,
size: gsize,
blocking: gboolean,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> gssize;
}
unsafe extern "C" {
pub fn g_socket_send_with_blocking(
socket: *mut GSocket,
buffer: *const gchar,
size: gsize,
blocking: gboolean,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> gssize;
}
unsafe extern "C" {
pub fn g_socket_send_message_with_timeout(
socket: *mut GSocket,
address: *mut GSocketAddress,
vectors: *const GOutputVector,
num_vectors: gint,
messages: *mut *mut GSocketControlMessage,
num_messages: gint,
flags: gint,
timeout_us: gint64,
bytes_written: *mut gsize,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> GPollableReturn;
}
unsafe extern "C" {
pub fn g_socket_get_option(
socket: *mut GSocket,
level: gint,
optname: gint,
value: *mut gint,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_socket_set_option(
socket: *mut GSocket,
level: gint,
optname: gint,
value: gint,
error: *mut *mut GError,
) -> gboolean;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GSocketClientPrivate {
_unused: [u8; 0],
}
pub type GSocketClientPrivate = _GSocketClientPrivate;
pub type GSocketClientClass = _GSocketClientClass;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GSocketClientClass {
pub parent_class: GObjectClass,
pub event: ::std::option::Option<
unsafe extern "C" fn(
client: *mut GSocketClient,
event: GSocketClientEvent,
connectable: *mut GSocketConnectable,
connection: *mut GIOStream,
),
>,
pub _g_reserved1: ::std::option::Option<unsafe extern "C" fn()>,
pub _g_reserved2: ::std::option::Option<unsafe extern "C" fn()>,
pub _g_reserved3: ::std::option::Option<unsafe extern "C" fn()>,
pub _g_reserved4: ::std::option::Option<unsafe extern "C" fn()>,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GSocketClientClass"][::std::mem::size_of::<_GSocketClientClass>() - 176usize];
["Alignment of _GSocketClientClass"][::std::mem::align_of::<_GSocketClientClass>() - 8usize];
["Offset of field: _GSocketClientClass::parent_class"]
[::std::mem::offset_of!(_GSocketClientClass, parent_class) - 0usize];
["Offset of field: _GSocketClientClass::event"]
[::std::mem::offset_of!(_GSocketClientClass, event) - 136usize];
["Offset of field: _GSocketClientClass::_g_reserved1"]
[::std::mem::offset_of!(_GSocketClientClass, _g_reserved1) - 144usize];
["Offset of field: _GSocketClientClass::_g_reserved2"]
[::std::mem::offset_of!(_GSocketClientClass, _g_reserved2) - 152usize];
["Offset of field: _GSocketClientClass::_g_reserved3"]
[::std::mem::offset_of!(_GSocketClientClass, _g_reserved3) - 160usize];
["Offset of field: _GSocketClientClass::_g_reserved4"]
[::std::mem::offset_of!(_GSocketClientClass, _g_reserved4) - 168usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GSocketClient {
pub parent_instance: GObject,
pub priv_: *mut GSocketClientPrivate,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GSocketClient"][::std::mem::size_of::<_GSocketClient>() - 32usize];
["Alignment of _GSocketClient"][::std::mem::align_of::<_GSocketClient>() - 8usize];
["Offset of field: _GSocketClient::parent_instance"]
[::std::mem::offset_of!(_GSocketClient, parent_instance) - 0usize];
["Offset of field: _GSocketClient::priv_"]
[::std::mem::offset_of!(_GSocketClient, priv_) - 24usize];
};
unsafe extern "C" {
pub fn g_socket_client_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_socket_client_new() -> *mut GSocketClient;
}
unsafe extern "C" {
pub fn g_socket_client_get_family(client: *mut GSocketClient) -> GSocketFamily;
}
unsafe extern "C" {
pub fn g_socket_client_set_family(client: *mut GSocketClient, family: GSocketFamily);
}
unsafe extern "C" {
pub fn g_socket_client_get_socket_type(client: *mut GSocketClient) -> GSocketType;
}
unsafe extern "C" {
pub fn g_socket_client_set_socket_type(client: *mut GSocketClient, type_: GSocketType);
}
unsafe extern "C" {
pub fn g_socket_client_get_protocol(client: *mut GSocketClient) -> GSocketProtocol;
}
unsafe extern "C" {
pub fn g_socket_client_set_protocol(client: *mut GSocketClient, protocol: GSocketProtocol);
}
unsafe extern "C" {
pub fn g_socket_client_get_local_address(client: *mut GSocketClient) -> *mut GSocketAddress;
}
unsafe extern "C" {
pub fn g_socket_client_set_local_address(
client: *mut GSocketClient,
address: *mut GSocketAddress,
);
}
unsafe extern "C" {
pub fn g_socket_client_get_timeout(client: *mut GSocketClient) -> guint;
}
unsafe extern "C" {
pub fn g_socket_client_set_timeout(client: *mut GSocketClient, timeout: guint);
}
unsafe extern "C" {
pub fn g_socket_client_get_enable_proxy(client: *mut GSocketClient) -> gboolean;
}
unsafe extern "C" {
pub fn g_socket_client_set_enable_proxy(client: *mut GSocketClient, enable: gboolean);
}
unsafe extern "C" {
pub fn g_socket_client_get_tls(client: *mut GSocketClient) -> gboolean;
}
unsafe extern "C" {
pub fn g_socket_client_set_tls(client: *mut GSocketClient, tls: gboolean);
}
unsafe extern "C" {
pub fn g_socket_client_get_tls_validation_flags(
client: *mut GSocketClient,
) -> GTlsCertificateFlags;
}
unsafe extern "C" {
pub fn g_socket_client_set_tls_validation_flags(
client: *mut GSocketClient,
flags: GTlsCertificateFlags,
);
}
unsafe extern "C" {
pub fn g_socket_client_get_proxy_resolver(client: *mut GSocketClient) -> *mut GProxyResolver;
}
unsafe extern "C" {
pub fn g_socket_client_set_proxy_resolver(
client: *mut GSocketClient,
proxy_resolver: *mut GProxyResolver,
);
}
unsafe extern "C" {
pub fn g_socket_client_connect(
client: *mut GSocketClient,
connectable: *mut GSocketConnectable,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> *mut GSocketConnection;
}
unsafe extern "C" {
pub fn g_socket_client_connect_to_host(
client: *mut GSocketClient,
host_and_port: *const gchar,
default_port: guint16,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> *mut GSocketConnection;
}
unsafe extern "C" {
pub fn g_socket_client_connect_to_service(
client: *mut GSocketClient,
domain: *const gchar,
service: *const gchar,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> *mut GSocketConnection;
}
unsafe extern "C" {
pub fn g_socket_client_connect_to_uri(
client: *mut GSocketClient,
uri: *const gchar,
default_port: guint16,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> *mut GSocketConnection;
}
unsafe extern "C" {
pub fn g_socket_client_connect_async(
client: *mut GSocketClient,
connectable: *mut GSocketConnectable,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
);
}
unsafe extern "C" {
pub fn g_socket_client_connect_finish(
client: *mut GSocketClient,
result: *mut GAsyncResult,
error: *mut *mut GError,
) -> *mut GSocketConnection;
}
unsafe extern "C" {
pub fn g_socket_client_connect_to_host_async(
client: *mut GSocketClient,
host_and_port: *const gchar,
default_port: guint16,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
);
}
unsafe extern "C" {
pub fn g_socket_client_connect_to_host_finish(
client: *mut GSocketClient,
result: *mut GAsyncResult,
error: *mut *mut GError,
) -> *mut GSocketConnection;
}
unsafe extern "C" {
pub fn g_socket_client_connect_to_service_async(
client: *mut GSocketClient,
domain: *const gchar,
service: *const gchar,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
);
}
unsafe extern "C" {
pub fn g_socket_client_connect_to_service_finish(
client: *mut GSocketClient,
result: *mut GAsyncResult,
error: *mut *mut GError,
) -> *mut GSocketConnection;
}
unsafe extern "C" {
pub fn g_socket_client_connect_to_uri_async(
client: *mut GSocketClient,
uri: *const gchar,
default_port: guint16,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
);
}
unsafe extern "C" {
pub fn g_socket_client_connect_to_uri_finish(
client: *mut GSocketClient,
result: *mut GAsyncResult,
error: *mut *mut GError,
) -> *mut GSocketConnection;
}
unsafe extern "C" {
pub fn g_socket_client_add_application_proxy(
client: *mut GSocketClient,
protocol: *const gchar,
);
}
pub type GSocketConnectableIface = _GSocketConnectableIface;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GSocketConnectableIface {
pub g_iface: GTypeInterface,
pub enumerate: ::std::option::Option<
unsafe extern "C" fn(connectable: *mut GSocketConnectable) -> *mut GSocketAddressEnumerator,
>,
pub proxy_enumerate: ::std::option::Option<
unsafe extern "C" fn(connectable: *mut GSocketConnectable) -> *mut GSocketAddressEnumerator,
>,
pub to_string: ::std::option::Option<
unsafe extern "C" fn(connectable: *mut GSocketConnectable) -> *mut gchar,
>,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GSocketConnectableIface"]
[::std::mem::size_of::<_GSocketConnectableIface>() - 40usize];
["Alignment of _GSocketConnectableIface"]
[::std::mem::align_of::<_GSocketConnectableIface>() - 8usize];
["Offset of field: _GSocketConnectableIface::g_iface"]
[::std::mem::offset_of!(_GSocketConnectableIface, g_iface) - 0usize];
["Offset of field: _GSocketConnectableIface::enumerate"]
[::std::mem::offset_of!(_GSocketConnectableIface, enumerate) - 16usize];
["Offset of field: _GSocketConnectableIface::proxy_enumerate"]
[::std::mem::offset_of!(_GSocketConnectableIface, proxy_enumerate) - 24usize];
["Offset of field: _GSocketConnectableIface::to_string"]
[::std::mem::offset_of!(_GSocketConnectableIface, to_string) - 32usize];
};
unsafe extern "C" {
pub fn g_socket_connectable_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_socket_connectable_enumerate(
connectable: *mut GSocketConnectable,
) -> *mut GSocketAddressEnumerator;
}
unsafe extern "C" {
pub fn g_socket_connectable_proxy_enumerate(
connectable: *mut GSocketConnectable,
) -> *mut GSocketAddressEnumerator;
}
unsafe extern "C" {
pub fn g_socket_connectable_to_string(connectable: *mut GSocketConnectable) -> *mut gchar;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GSocketConnectionPrivate {
_unused: [u8; 0],
}
pub type GSocketConnectionPrivate = _GSocketConnectionPrivate;
pub type GSocketConnectionClass = _GSocketConnectionClass;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GSocketConnectionClass {
pub parent_class: GIOStreamClass,
pub _g_reserved1: ::std::option::Option<unsafe extern "C" fn()>,
pub _g_reserved2: ::std::option::Option<unsafe extern "C" fn()>,
pub _g_reserved3: ::std::option::Option<unsafe extern "C" fn()>,
pub _g_reserved4: ::std::option::Option<unsafe extern "C" fn()>,
pub _g_reserved5: ::std::option::Option<unsafe extern "C" fn()>,
pub _g_reserved6: ::std::option::Option<unsafe extern "C" fn()>,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GSocketConnectionClass"]
[::std::mem::size_of::<_GSocketConnectionClass>() - 304usize];
["Alignment of _GSocketConnectionClass"]
[::std::mem::align_of::<_GSocketConnectionClass>() - 8usize];
["Offset of field: _GSocketConnectionClass::parent_class"]
[::std::mem::offset_of!(_GSocketConnectionClass, parent_class) - 0usize];
["Offset of field: _GSocketConnectionClass::_g_reserved1"]
[::std::mem::offset_of!(_GSocketConnectionClass, _g_reserved1) - 256usize];
["Offset of field: _GSocketConnectionClass::_g_reserved2"]
[::std::mem::offset_of!(_GSocketConnectionClass, _g_reserved2) - 264usize];
["Offset of field: _GSocketConnectionClass::_g_reserved3"]
[::std::mem::offset_of!(_GSocketConnectionClass, _g_reserved3) - 272usize];
["Offset of field: _GSocketConnectionClass::_g_reserved4"]
[::std::mem::offset_of!(_GSocketConnectionClass, _g_reserved4) - 280usize];
["Offset of field: _GSocketConnectionClass::_g_reserved5"]
[::std::mem::offset_of!(_GSocketConnectionClass, _g_reserved5) - 288usize];
["Offset of field: _GSocketConnectionClass::_g_reserved6"]
[::std::mem::offset_of!(_GSocketConnectionClass, _g_reserved6) - 296usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GSocketConnection {
pub parent_instance: GIOStream,
pub priv_: *mut GSocketConnectionPrivate,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GSocketConnection"][::std::mem::size_of::<_GSocketConnection>() - 40usize];
["Alignment of _GSocketConnection"][::std::mem::align_of::<_GSocketConnection>() - 8usize];
["Offset of field: _GSocketConnection::parent_instance"]
[::std::mem::offset_of!(_GSocketConnection, parent_instance) - 0usize];
["Offset of field: _GSocketConnection::priv_"]
[::std::mem::offset_of!(_GSocketConnection, priv_) - 32usize];
};
unsafe extern "C" {
pub fn g_socket_connection_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_socket_connection_is_connected(connection: *mut GSocketConnection) -> gboolean;
}
unsafe extern "C" {
pub fn g_socket_connection_connect(
connection: *mut GSocketConnection,
address: *mut GSocketAddress,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_socket_connection_connect_async(
connection: *mut GSocketConnection,
address: *mut GSocketAddress,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
);
}
unsafe extern "C" {
pub fn g_socket_connection_connect_finish(
connection: *mut GSocketConnection,
result: *mut GAsyncResult,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_socket_connection_get_socket(connection: *mut GSocketConnection) -> *mut GSocket;
}
unsafe extern "C" {
pub fn g_socket_connection_get_local_address(
connection: *mut GSocketConnection,
error: *mut *mut GError,
) -> *mut GSocketAddress;
}
unsafe extern "C" {
pub fn g_socket_connection_get_remote_address(
connection: *mut GSocketConnection,
error: *mut *mut GError,
) -> *mut GSocketAddress;
}
unsafe extern "C" {
pub fn g_socket_connection_factory_register_type(
g_type: GType,
family: GSocketFamily,
type_: GSocketType,
protocol: gint,
);
}
unsafe extern "C" {
pub fn g_socket_connection_factory_lookup_type(
family: GSocketFamily,
type_: GSocketType,
protocol_id: gint,
) -> GType;
}
unsafe extern "C" {
pub fn g_socket_connection_factory_create_connection(
socket: *mut GSocket,
) -> *mut GSocketConnection;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GSocketControlMessagePrivate {
_unused: [u8; 0],
}
pub type GSocketControlMessagePrivate = _GSocketControlMessagePrivate;
pub type GSocketControlMessageClass = _GSocketControlMessageClass;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GSocketControlMessageClass {
pub parent_class: GObjectClass,
pub get_size:
::std::option::Option<unsafe extern "C" fn(message: *mut GSocketControlMessage) -> gsize>,
pub get_level: ::std::option::Option<
unsafe extern "C" fn(message: *mut GSocketControlMessage) -> ::std::os::raw::c_int,
>,
pub get_type: ::std::option::Option<
unsafe extern "C" fn(message: *mut GSocketControlMessage) -> ::std::os::raw::c_int,
>,
pub serialize: ::std::option::Option<
unsafe extern "C" fn(message: *mut GSocketControlMessage, data: gpointer),
>,
pub deserialize: ::std::option::Option<
unsafe extern "C" fn(
level: ::std::os::raw::c_int,
type_: ::std::os::raw::c_int,
size: gsize,
data: gpointer,
) -> *mut GSocketControlMessage,
>,
pub _g_reserved1: ::std::option::Option<unsafe extern "C" fn()>,
pub _g_reserved2: ::std::option::Option<unsafe extern "C" fn()>,
pub _g_reserved3: ::std::option::Option<unsafe extern "C" fn()>,
pub _g_reserved4: ::std::option::Option<unsafe extern "C" fn()>,
pub _g_reserved5: ::std::option::Option<unsafe extern "C" fn()>,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GSocketControlMessageClass"]
[::std::mem::size_of::<_GSocketControlMessageClass>() - 216usize];
["Alignment of _GSocketControlMessageClass"]
[::std::mem::align_of::<_GSocketControlMessageClass>() - 8usize];
["Offset of field: _GSocketControlMessageClass::parent_class"]
[::std::mem::offset_of!(_GSocketControlMessageClass, parent_class) - 0usize];
["Offset of field: _GSocketControlMessageClass::get_size"]
[::std::mem::offset_of!(_GSocketControlMessageClass, get_size) - 136usize];
["Offset of field: _GSocketControlMessageClass::get_level"]
[::std::mem::offset_of!(_GSocketControlMessageClass, get_level) - 144usize];
["Offset of field: _GSocketControlMessageClass::get_type"]
[::std::mem::offset_of!(_GSocketControlMessageClass, get_type) - 152usize];
["Offset of field: _GSocketControlMessageClass::serialize"]
[::std::mem::offset_of!(_GSocketControlMessageClass, serialize) - 160usize];
["Offset of field: _GSocketControlMessageClass::deserialize"]
[::std::mem::offset_of!(_GSocketControlMessageClass, deserialize) - 168usize];
["Offset of field: _GSocketControlMessageClass::_g_reserved1"]
[::std::mem::offset_of!(_GSocketControlMessageClass, _g_reserved1) - 176usize];
["Offset of field: _GSocketControlMessageClass::_g_reserved2"]
[::std::mem::offset_of!(_GSocketControlMessageClass, _g_reserved2) - 184usize];
["Offset of field: _GSocketControlMessageClass::_g_reserved3"]
[::std::mem::offset_of!(_GSocketControlMessageClass, _g_reserved3) - 192usize];
["Offset of field: _GSocketControlMessageClass::_g_reserved4"]
[::std::mem::offset_of!(_GSocketControlMessageClass, _g_reserved4) - 200usize];
["Offset of field: _GSocketControlMessageClass::_g_reserved5"]
[::std::mem::offset_of!(_GSocketControlMessageClass, _g_reserved5) - 208usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GSocketControlMessage {
pub parent_instance: GObject,
pub priv_: *mut GSocketControlMessagePrivate,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GSocketControlMessage"][::std::mem::size_of::<_GSocketControlMessage>() - 32usize];
["Alignment of _GSocketControlMessage"]
[::std::mem::align_of::<_GSocketControlMessage>() - 8usize];
["Offset of field: _GSocketControlMessage::parent_instance"]
[::std::mem::offset_of!(_GSocketControlMessage, parent_instance) - 0usize];
["Offset of field: _GSocketControlMessage::priv_"]
[::std::mem::offset_of!(_GSocketControlMessage, priv_) - 24usize];
};
unsafe extern "C" {
pub fn g_socket_control_message_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_socket_control_message_get_size(message: *mut GSocketControlMessage) -> gsize;
}
unsafe extern "C" {
pub fn g_socket_control_message_get_level(
message: *mut GSocketControlMessage,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn g_socket_control_message_get_msg_type(
message: *mut GSocketControlMessage,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn g_socket_control_message_serialize(message: *mut GSocketControlMessage, data: gpointer);
}
unsafe extern "C" {
pub fn g_socket_control_message_deserialize(
level: ::std::os::raw::c_int,
type_: ::std::os::raw::c_int,
size: gsize,
data: gpointer,
) -> *mut GSocketControlMessage;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GSocketListenerPrivate {
_unused: [u8; 0],
}
pub type GSocketListenerPrivate = _GSocketListenerPrivate;
pub type GSocketListenerClass = _GSocketListenerClass;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GSocketListenerClass {
pub parent_class: GObjectClass,
pub changed: ::std::option::Option<unsafe extern "C" fn(listener: *mut GSocketListener)>,
pub event: ::std::option::Option<
unsafe extern "C" fn(
listener: *mut GSocketListener,
event: GSocketListenerEvent,
socket: *mut GSocket,
),
>,
pub _g_reserved2: ::std::option::Option<unsafe extern "C" fn()>,
pub _g_reserved3: ::std::option::Option<unsafe extern "C" fn()>,
pub _g_reserved4: ::std::option::Option<unsafe extern "C" fn()>,
pub _g_reserved5: ::std::option::Option<unsafe extern "C" fn()>,
pub _g_reserved6: ::std::option::Option<unsafe extern "C" fn()>,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GSocketListenerClass"][::std::mem::size_of::<_GSocketListenerClass>() - 192usize];
["Alignment of _GSocketListenerClass"]
[::std::mem::align_of::<_GSocketListenerClass>() - 8usize];
["Offset of field: _GSocketListenerClass::parent_class"]
[::std::mem::offset_of!(_GSocketListenerClass, parent_class) - 0usize];
["Offset of field: _GSocketListenerClass::changed"]
[::std::mem::offset_of!(_GSocketListenerClass, changed) - 136usize];
["Offset of field: _GSocketListenerClass::event"]
[::std::mem::offset_of!(_GSocketListenerClass, event) - 144usize];
["Offset of field: _GSocketListenerClass::_g_reserved2"]
[::std::mem::offset_of!(_GSocketListenerClass, _g_reserved2) - 152usize];
["Offset of field: _GSocketListenerClass::_g_reserved3"]
[::std::mem::offset_of!(_GSocketListenerClass, _g_reserved3) - 160usize];
["Offset of field: _GSocketListenerClass::_g_reserved4"]
[::std::mem::offset_of!(_GSocketListenerClass, _g_reserved4) - 168usize];
["Offset of field: _GSocketListenerClass::_g_reserved5"]
[::std::mem::offset_of!(_GSocketListenerClass, _g_reserved5) - 176usize];
["Offset of field: _GSocketListenerClass::_g_reserved6"]
[::std::mem::offset_of!(_GSocketListenerClass, _g_reserved6) - 184usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GSocketListener {
pub parent_instance: GObject,
pub priv_: *mut GSocketListenerPrivate,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GSocketListener"][::std::mem::size_of::<_GSocketListener>() - 32usize];
["Alignment of _GSocketListener"][::std::mem::align_of::<_GSocketListener>() - 8usize];
["Offset of field: _GSocketListener::parent_instance"]
[::std::mem::offset_of!(_GSocketListener, parent_instance) - 0usize];
["Offset of field: _GSocketListener::priv_"]
[::std::mem::offset_of!(_GSocketListener, priv_) - 24usize];
};
unsafe extern "C" {
pub fn g_socket_listener_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_socket_listener_new() -> *mut GSocketListener;
}
unsafe extern "C" {
pub fn g_socket_listener_set_backlog(
listener: *mut GSocketListener,
listen_backlog: ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn g_socket_listener_add_socket(
listener: *mut GSocketListener,
socket: *mut GSocket,
source_object: *mut GObject,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_socket_listener_add_address(
listener: *mut GSocketListener,
address: *mut GSocketAddress,
type_: GSocketType,
protocol: GSocketProtocol,
source_object: *mut GObject,
effective_address: *mut *mut GSocketAddress,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_socket_listener_add_inet_port(
listener: *mut GSocketListener,
port: guint16,
source_object: *mut GObject,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_socket_listener_add_any_inet_port(
listener: *mut GSocketListener,
source_object: *mut GObject,
error: *mut *mut GError,
) -> guint16;
}
unsafe extern "C" {
pub fn g_socket_listener_accept_socket(
listener: *mut GSocketListener,
source_object: *mut *mut GObject,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> *mut GSocket;
}
unsafe extern "C" {
pub fn g_socket_listener_accept_socket_async(
listener: *mut GSocketListener,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
);
}
unsafe extern "C" {
pub fn g_socket_listener_accept_socket_finish(
listener: *mut GSocketListener,
result: *mut GAsyncResult,
source_object: *mut *mut GObject,
error: *mut *mut GError,
) -> *mut GSocket;
}
unsafe extern "C" {
pub fn g_socket_listener_accept(
listener: *mut GSocketListener,
source_object: *mut *mut GObject,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> *mut GSocketConnection;
}
unsafe extern "C" {
pub fn g_socket_listener_accept_async(
listener: *mut GSocketListener,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
);
}
unsafe extern "C" {
pub fn g_socket_listener_accept_finish(
listener: *mut GSocketListener,
result: *mut GAsyncResult,
source_object: *mut *mut GObject,
error: *mut *mut GError,
) -> *mut GSocketConnection;
}
unsafe extern "C" {
pub fn g_socket_listener_close(listener: *mut GSocketListener);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GSocketServicePrivate {
_unused: [u8; 0],
}
pub type GSocketServicePrivate = _GSocketServicePrivate;
pub type GSocketServiceClass = _GSocketServiceClass;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GSocketServiceClass {
pub parent_class: GSocketListenerClass,
pub incoming: ::std::option::Option<
unsafe extern "C" fn(
service: *mut GSocketService,
connection: *mut GSocketConnection,
source_object: *mut GObject,
) -> gboolean,
>,
pub _g_reserved1: ::std::option::Option<unsafe extern "C" fn()>,
pub _g_reserved2: ::std::option::Option<unsafe extern "C" fn()>,
pub _g_reserved3: ::std::option::Option<unsafe extern "C" fn()>,
pub _g_reserved4: ::std::option::Option<unsafe extern "C" fn()>,
pub _g_reserved5: ::std::option::Option<unsafe extern "C" fn()>,
pub _g_reserved6: ::std::option::Option<unsafe extern "C" fn()>,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GSocketServiceClass"][::std::mem::size_of::<_GSocketServiceClass>() - 248usize];
["Alignment of _GSocketServiceClass"][::std::mem::align_of::<_GSocketServiceClass>() - 8usize];
["Offset of field: _GSocketServiceClass::parent_class"]
[::std::mem::offset_of!(_GSocketServiceClass, parent_class) - 0usize];
["Offset of field: _GSocketServiceClass::incoming"]
[::std::mem::offset_of!(_GSocketServiceClass, incoming) - 192usize];
["Offset of field: _GSocketServiceClass::_g_reserved1"]
[::std::mem::offset_of!(_GSocketServiceClass, _g_reserved1) - 200usize];
["Offset of field: _GSocketServiceClass::_g_reserved2"]
[::std::mem::offset_of!(_GSocketServiceClass, _g_reserved2) - 208usize];
["Offset of field: _GSocketServiceClass::_g_reserved3"]
[::std::mem::offset_of!(_GSocketServiceClass, _g_reserved3) - 216usize];
["Offset of field: _GSocketServiceClass::_g_reserved4"]
[::std::mem::offset_of!(_GSocketServiceClass, _g_reserved4) - 224usize];
["Offset of field: _GSocketServiceClass::_g_reserved5"]
[::std::mem::offset_of!(_GSocketServiceClass, _g_reserved5) - 232usize];
["Offset of field: _GSocketServiceClass::_g_reserved6"]
[::std::mem::offset_of!(_GSocketServiceClass, _g_reserved6) - 240usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GSocketService {
pub parent_instance: GSocketListener,
pub priv_: *mut GSocketServicePrivate,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GSocketService"][::std::mem::size_of::<_GSocketService>() - 40usize];
["Alignment of _GSocketService"][::std::mem::align_of::<_GSocketService>() - 8usize];
["Offset of field: _GSocketService::parent_instance"]
[::std::mem::offset_of!(_GSocketService, parent_instance) - 0usize];
["Offset of field: _GSocketService::priv_"]
[::std::mem::offset_of!(_GSocketService, priv_) - 32usize];
};
unsafe extern "C" {
pub fn g_socket_service_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_socket_service_new() -> *mut GSocketService;
}
unsafe extern "C" {
pub fn g_socket_service_start(service: *mut GSocketService);
}
unsafe extern "C" {
pub fn g_socket_service_stop(service: *mut GSocketService);
}
unsafe extern "C" {
pub fn g_socket_service_is_active(service: *mut GSocketService) -> gboolean;
}
unsafe extern "C" {
pub fn g_srv_target_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_srv_target_new(
hostname: *const gchar,
port: guint16,
priority: guint16,
weight: guint16,
) -> *mut GSrvTarget;
}
unsafe extern "C" {
pub fn g_srv_target_copy(target: *mut GSrvTarget) -> *mut GSrvTarget;
}
unsafe extern "C" {
pub fn g_srv_target_free(target: *mut GSrvTarget);
}
unsafe extern "C" {
pub fn g_srv_target_get_hostname(target: *mut GSrvTarget) -> *const gchar;
}
unsafe extern "C" {
pub fn g_srv_target_get_port(target: *mut GSrvTarget) -> guint16;
}
unsafe extern "C" {
pub fn g_srv_target_get_priority(target: *mut GSrvTarget) -> guint16;
}
unsafe extern "C" {
pub fn g_srv_target_get_weight(target: *mut GSrvTarget) -> guint16;
}
unsafe extern "C" {
pub fn g_srv_target_list_sort(targets: *mut GList) -> *mut GList;
}
unsafe extern "C" {
pub fn g_subprocess_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_subprocess_new(
flags: GSubprocessFlags,
error: *mut *mut GError,
argv0: *const gchar,
...
) -> *mut GSubprocess;
}
unsafe extern "C" {
pub fn g_subprocess_newv(
argv: *const *const gchar,
flags: GSubprocessFlags,
error: *mut *mut GError,
) -> *mut GSubprocess;
}
unsafe extern "C" {
pub fn g_subprocess_get_stdin_pipe(subprocess: *mut GSubprocess) -> *mut GOutputStream;
}
unsafe extern "C" {
pub fn g_subprocess_get_stdout_pipe(subprocess: *mut GSubprocess) -> *mut GInputStream;
}
unsafe extern "C" {
pub fn g_subprocess_get_stderr_pipe(subprocess: *mut GSubprocess) -> *mut GInputStream;
}
unsafe extern "C" {
pub fn g_subprocess_get_identifier(subprocess: *mut GSubprocess) -> *const gchar;
}
unsafe extern "C" {
pub fn g_subprocess_send_signal(subprocess: *mut GSubprocess, signal_num: gint);
}
unsafe extern "C" {
pub fn g_subprocess_force_exit(subprocess: *mut GSubprocess);
}
unsafe extern "C" {
pub fn g_subprocess_wait(
subprocess: *mut GSubprocess,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_subprocess_wait_async(
subprocess: *mut GSubprocess,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
);
}
unsafe extern "C" {
pub fn g_subprocess_wait_finish(
subprocess: *mut GSubprocess,
result: *mut GAsyncResult,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_subprocess_wait_check(
subprocess: *mut GSubprocess,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_subprocess_wait_check_async(
subprocess: *mut GSubprocess,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
);
}
unsafe extern "C" {
pub fn g_subprocess_wait_check_finish(
subprocess: *mut GSubprocess,
result: *mut GAsyncResult,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_subprocess_get_status(subprocess: *mut GSubprocess) -> gint;
}
unsafe extern "C" {
pub fn g_subprocess_get_successful(subprocess: *mut GSubprocess) -> gboolean;
}
unsafe extern "C" {
pub fn g_subprocess_get_if_exited(subprocess: *mut GSubprocess) -> gboolean;
}
unsafe extern "C" {
pub fn g_subprocess_get_exit_status(subprocess: *mut GSubprocess) -> gint;
}
unsafe extern "C" {
pub fn g_subprocess_get_if_signaled(subprocess: *mut GSubprocess) -> gboolean;
}
unsafe extern "C" {
pub fn g_subprocess_get_term_sig(subprocess: *mut GSubprocess) -> gint;
}
unsafe extern "C" {
pub fn g_subprocess_communicate(
subprocess: *mut GSubprocess,
stdin_buf: *mut GBytes,
cancellable: *mut GCancellable,
stdout_buf: *mut *mut GBytes,
stderr_buf: *mut *mut GBytes,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_subprocess_communicate_async(
subprocess: *mut GSubprocess,
stdin_buf: *mut GBytes,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
);
}
unsafe extern "C" {
pub fn g_subprocess_communicate_finish(
subprocess: *mut GSubprocess,
result: *mut GAsyncResult,
stdout_buf: *mut *mut GBytes,
stderr_buf: *mut *mut GBytes,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_subprocess_communicate_utf8(
subprocess: *mut GSubprocess,
stdin_buf: *const ::std::os::raw::c_char,
cancellable: *mut GCancellable,
stdout_buf: *mut *mut ::std::os::raw::c_char,
stderr_buf: *mut *mut ::std::os::raw::c_char,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_subprocess_communicate_utf8_async(
subprocess: *mut GSubprocess,
stdin_buf: *const ::std::os::raw::c_char,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
);
}
unsafe extern "C" {
pub fn g_subprocess_communicate_utf8_finish(
subprocess: *mut GSubprocess,
result: *mut GAsyncResult,
stdout_buf: *mut *mut ::std::os::raw::c_char,
stderr_buf: *mut *mut ::std::os::raw::c_char,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_subprocess_launcher_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_subprocess_launcher_new(flags: GSubprocessFlags) -> *mut GSubprocessLauncher;
}
unsafe extern "C" {
pub fn g_subprocess_launcher_spawn(
self_: *mut GSubprocessLauncher,
error: *mut *mut GError,
argv0: *const gchar,
...
) -> *mut GSubprocess;
}
unsafe extern "C" {
pub fn g_subprocess_launcher_spawnv(
self_: *mut GSubprocessLauncher,
argv: *const *const gchar,
error: *mut *mut GError,
) -> *mut GSubprocess;
}
unsafe extern "C" {
pub fn g_subprocess_launcher_set_environ(self_: *mut GSubprocessLauncher, env: *mut *mut gchar);
}
unsafe extern "C" {
pub fn g_subprocess_launcher_setenv(
self_: *mut GSubprocessLauncher,
variable: *const gchar,
value: *const gchar,
overwrite: gboolean,
);
}
unsafe extern "C" {
pub fn g_subprocess_launcher_unsetenv(self_: *mut GSubprocessLauncher, variable: *const gchar);
}
unsafe extern "C" {
pub fn g_subprocess_launcher_getenv(
self_: *mut GSubprocessLauncher,
variable: *const gchar,
) -> *const gchar;
}
unsafe extern "C" {
pub fn g_subprocess_launcher_set_cwd(self_: *mut GSubprocessLauncher, cwd: *const gchar);
}
unsafe extern "C" {
pub fn g_subprocess_launcher_set_flags(
self_: *mut GSubprocessLauncher,
flags: GSubprocessFlags,
);
}
unsafe extern "C" {
pub fn g_subprocess_launcher_set_stdin_file_path(
self_: *mut GSubprocessLauncher,
path: *const gchar,
);
}
unsafe extern "C" {
pub fn g_subprocess_launcher_take_stdin_fd(self_: *mut GSubprocessLauncher, fd: gint);
}
unsafe extern "C" {
pub fn g_subprocess_launcher_set_stdout_file_path(
self_: *mut GSubprocessLauncher,
path: *const gchar,
);
}
unsafe extern "C" {
pub fn g_subprocess_launcher_take_stdout_fd(self_: *mut GSubprocessLauncher, fd: gint);
}
unsafe extern "C" {
pub fn g_subprocess_launcher_set_stderr_file_path(
self_: *mut GSubprocessLauncher,
path: *const gchar,
);
}
unsafe extern "C" {
pub fn g_subprocess_launcher_take_stderr_fd(self_: *mut GSubprocessLauncher, fd: gint);
}
unsafe extern "C" {
pub fn g_subprocess_launcher_take_fd(
self_: *mut GSubprocessLauncher,
source_fd: gint,
target_fd: gint,
);
}
unsafe extern "C" {
pub fn g_subprocess_launcher_close(self_: *mut GSubprocessLauncher);
}
unsafe extern "C" {
pub fn g_subprocess_launcher_set_child_setup(
self_: *mut GSubprocessLauncher,
child_setup: GSpawnChildSetupFunc,
user_data: gpointer,
destroy_notify: GDestroyNotify,
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GTaskClass {
_unused: [u8; 0],
}
pub type GTaskClass = _GTaskClass;
unsafe extern "C" {
pub fn g_task_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_task_new(
source_object: gpointer,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
callback_data: gpointer,
) -> *mut GTask;
}
unsafe extern "C" {
pub fn g_task_report_error(
source_object: gpointer,
callback: GAsyncReadyCallback,
callback_data: gpointer,
source_tag: gpointer,
error: *mut GError,
);
}
unsafe extern "C" {
pub fn g_task_report_new_error(
source_object: gpointer,
callback: GAsyncReadyCallback,
callback_data: gpointer,
source_tag: gpointer,
domain: GQuark,
code: gint,
format: *const ::std::os::raw::c_char,
...
);
}
unsafe extern "C" {
pub fn g_task_set_task_data(
task: *mut GTask,
task_data: gpointer,
task_data_destroy: GDestroyNotify,
);
}
unsafe extern "C" {
pub fn g_task_set_priority(task: *mut GTask, priority: gint);
}
unsafe extern "C" {
pub fn g_task_set_check_cancellable(task: *mut GTask, check_cancellable: gboolean);
}
unsafe extern "C" {
pub fn g_task_set_source_tag(task: *mut GTask, source_tag: gpointer);
}
unsafe extern "C" {
pub fn g_task_set_name(task: *mut GTask, name: *const gchar);
}
unsafe extern "C" {
pub fn g_task_set_static_name(task: *mut GTask, name: *const gchar);
}
unsafe extern "C" {
pub fn g_task_get_source_object(task: *mut GTask) -> gpointer;
}
unsafe extern "C" {
pub fn g_task_get_task_data(task: *mut GTask) -> gpointer;
}
unsafe extern "C" {
pub fn g_task_get_priority(task: *mut GTask) -> gint;
}
unsafe extern "C" {
pub fn g_task_get_context(task: *mut GTask) -> *mut GMainContext;
}
unsafe extern "C" {
pub fn g_task_get_cancellable(task: *mut GTask) -> *mut GCancellable;
}
unsafe extern "C" {
pub fn g_task_get_check_cancellable(task: *mut GTask) -> gboolean;
}
unsafe extern "C" {
pub fn g_task_get_source_tag(task: *mut GTask) -> gpointer;
}
unsafe extern "C" {
pub fn g_task_get_name(task: *mut GTask) -> *const gchar;
}
unsafe extern "C" {
pub fn g_task_is_valid(result: gpointer, source_object: gpointer) -> gboolean;
}
pub type GTaskThreadFunc = ::std::option::Option<
unsafe extern "C" fn(
task: *mut GTask,
source_object: gpointer,
task_data: gpointer,
cancellable: *mut GCancellable,
),
>;
unsafe extern "C" {
pub fn g_task_run_in_thread(task: *mut GTask, task_func: GTaskThreadFunc);
}
unsafe extern "C" {
pub fn g_task_run_in_thread_sync(task: *mut GTask, task_func: GTaskThreadFunc);
}
unsafe extern "C" {
pub fn g_task_set_return_on_cancel(task: *mut GTask, return_on_cancel: gboolean) -> gboolean;
}
unsafe extern "C" {
pub fn g_task_get_return_on_cancel(task: *mut GTask) -> gboolean;
}
unsafe extern "C" {
pub fn g_task_attach_source(task: *mut GTask, source: *mut GSource, callback: GSourceFunc);
}
unsafe extern "C" {
pub fn g_task_return_pointer(
task: *mut GTask,
result: gpointer,
result_destroy: GDestroyNotify,
);
}
unsafe extern "C" {
pub fn g_task_return_boolean(task: *mut GTask, result: gboolean);
}
unsafe extern "C" {
pub fn g_task_return_int(task: *mut GTask, result: gssize);
}
unsafe extern "C" {
pub fn g_task_return_error(task: *mut GTask, error: *mut GError);
}
unsafe extern "C" {
pub fn g_task_return_prefixed_error(
task: *mut GTask,
error: *mut GError,
format: *const ::std::os::raw::c_char,
...
);
}
unsafe extern "C" {
pub fn g_task_return_new_error(
task: *mut GTask,
domain: GQuark,
code: gint,
format: *const ::std::os::raw::c_char,
...
);
}
unsafe extern "C" {
pub fn g_task_return_new_error_literal(
task: *mut GTask,
domain: GQuark,
code: gint,
message: *const ::std::os::raw::c_char,
);
}
unsafe extern "C" {
pub fn g_task_return_value(task: *mut GTask, result: *mut GValue);
}
unsafe extern "C" {
pub fn g_task_return_error_if_cancelled(task: *mut GTask) -> gboolean;
}
unsafe extern "C" {
pub fn g_task_propagate_pointer(task: *mut GTask, error: *mut *mut GError) -> gpointer;
}
unsafe extern "C" {
pub fn g_task_propagate_boolean(task: *mut GTask, error: *mut *mut GError) -> gboolean;
}
unsafe extern "C" {
pub fn g_task_propagate_int(task: *mut GTask, error: *mut *mut GError) -> gssize;
}
unsafe extern "C" {
pub fn g_task_propagate_value(
task: *mut GTask,
value: *mut GValue,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_task_had_error(task: *mut GTask) -> gboolean;
}
unsafe extern "C" {
pub fn g_task_get_completed(task: *mut GTask) -> gboolean;
}
unsafe extern "C" {
pub fn g_task_print_alive_tasks();
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GTcpConnectionPrivate {
_unused: [u8; 0],
}
pub type GTcpConnectionPrivate = _GTcpConnectionPrivate;
pub type GTcpConnectionClass = _GTcpConnectionClass;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GTcpConnectionClass {
pub parent_class: GSocketConnectionClass,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GTcpConnectionClass"][::std::mem::size_of::<_GTcpConnectionClass>() - 304usize];
["Alignment of _GTcpConnectionClass"][::std::mem::align_of::<_GTcpConnectionClass>() - 8usize];
["Offset of field: _GTcpConnectionClass::parent_class"]
[::std::mem::offset_of!(_GTcpConnectionClass, parent_class) - 0usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GTcpConnection {
pub parent_instance: GSocketConnection,
pub priv_: *mut GTcpConnectionPrivate,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GTcpConnection"][::std::mem::size_of::<_GTcpConnection>() - 48usize];
["Alignment of _GTcpConnection"][::std::mem::align_of::<_GTcpConnection>() - 8usize];
["Offset of field: _GTcpConnection::parent_instance"]
[::std::mem::offset_of!(_GTcpConnection, parent_instance) - 0usize];
["Offset of field: _GTcpConnection::priv_"]
[::std::mem::offset_of!(_GTcpConnection, priv_) - 40usize];
};
unsafe extern "C" {
pub fn g_tcp_connection_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_tcp_connection_set_graceful_disconnect(
connection: *mut GTcpConnection,
graceful_disconnect: gboolean,
);
}
unsafe extern "C" {
pub fn g_tcp_connection_get_graceful_disconnect(connection: *mut GTcpConnection) -> gboolean;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GTcpWrapperConnectionPrivate {
_unused: [u8; 0],
}
pub type GTcpWrapperConnectionPrivate = _GTcpWrapperConnectionPrivate;
pub type GTcpWrapperConnectionClass = _GTcpWrapperConnectionClass;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GTcpWrapperConnectionClass {
pub parent_class: GTcpConnectionClass,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GTcpWrapperConnectionClass"]
[::std::mem::size_of::<_GTcpWrapperConnectionClass>() - 304usize];
["Alignment of _GTcpWrapperConnectionClass"]
[::std::mem::align_of::<_GTcpWrapperConnectionClass>() - 8usize];
["Offset of field: _GTcpWrapperConnectionClass::parent_class"]
[::std::mem::offset_of!(_GTcpWrapperConnectionClass, parent_class) - 0usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GTcpWrapperConnection {
pub parent_instance: GTcpConnection,
pub priv_: *mut GTcpWrapperConnectionPrivate,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GTcpWrapperConnection"][::std::mem::size_of::<_GTcpWrapperConnection>() - 56usize];
["Alignment of _GTcpWrapperConnection"]
[::std::mem::align_of::<_GTcpWrapperConnection>() - 8usize];
["Offset of field: _GTcpWrapperConnection::parent_instance"]
[::std::mem::offset_of!(_GTcpWrapperConnection, parent_instance) - 0usize];
["Offset of field: _GTcpWrapperConnection::priv_"]
[::std::mem::offset_of!(_GTcpWrapperConnection, priv_) - 48usize];
};
unsafe extern "C" {
pub fn g_tcp_wrapper_connection_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_tcp_wrapper_connection_new(
base_io_stream: *mut GIOStream,
socket: *mut GSocket,
) -> *mut GSocketConnection;
}
unsafe extern "C" {
pub fn g_tcp_wrapper_connection_get_base_io_stream(
conn: *mut GTcpWrapperConnection,
) -> *mut GIOStream;
}
unsafe extern "C" {
pub fn g_test_dbus_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_test_dbus_new(flags: GTestDBusFlags) -> *mut GTestDBus;
}
unsafe extern "C" {
pub fn g_test_dbus_get_flags(self_: *mut GTestDBus) -> GTestDBusFlags;
}
unsafe extern "C" {
pub fn g_test_dbus_get_bus_address(self_: *mut GTestDBus) -> *const gchar;
}
unsafe extern "C" {
pub fn g_test_dbus_add_service_dir(self_: *mut GTestDBus, path: *const gchar);
}
unsafe extern "C" {
pub fn g_test_dbus_up(self_: *mut GTestDBus);
}
unsafe extern "C" {
pub fn g_test_dbus_stop(self_: *mut GTestDBus);
}
unsafe extern "C" {
pub fn g_test_dbus_down(self_: *mut GTestDBus);
}
unsafe extern "C" {
pub fn g_test_dbus_unset();
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GThemedIconClass {
_unused: [u8; 0],
}
pub type GThemedIconClass = _GThemedIconClass;
unsafe extern "C" {
pub fn g_themed_icon_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_themed_icon_new(iconname: *const ::std::os::raw::c_char) -> *mut GIcon;
}
unsafe extern "C" {
pub fn g_themed_icon_new_with_default_fallbacks(
iconname: *const ::std::os::raw::c_char,
) -> *mut GIcon;
}
unsafe extern "C" {
pub fn g_themed_icon_new_from_names(
iconnames: *mut *mut ::std::os::raw::c_char,
len: ::std::os::raw::c_int,
) -> *mut GIcon;
}
unsafe extern "C" {
pub fn g_themed_icon_prepend_name(
icon: *mut GThemedIcon,
iconname: *const ::std::os::raw::c_char,
);
}
unsafe extern "C" {
pub fn g_themed_icon_append_name(
icon: *mut GThemedIcon,
iconname: *const ::std::os::raw::c_char,
);
}
unsafe extern "C" {
pub fn g_themed_icon_get_names(icon: *mut GThemedIcon) -> *const *const gchar;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GThreadedSocketServicePrivate {
_unused: [u8; 0],
}
pub type GThreadedSocketServicePrivate = _GThreadedSocketServicePrivate;
pub type GThreadedSocketServiceClass = _GThreadedSocketServiceClass;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GThreadedSocketServiceClass {
pub parent_class: GSocketServiceClass,
pub run: ::std::option::Option<
unsafe extern "C" fn(
service: *mut GThreadedSocketService,
connection: *mut GSocketConnection,
source_object: *mut GObject,
) -> gboolean,
>,
pub _g_reserved1: ::std::option::Option<unsafe extern "C" fn()>,
pub _g_reserved2: ::std::option::Option<unsafe extern "C" fn()>,
pub _g_reserved3: ::std::option::Option<unsafe extern "C" fn()>,
pub _g_reserved4: ::std::option::Option<unsafe extern "C" fn()>,
pub _g_reserved5: ::std::option::Option<unsafe extern "C" fn()>,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GThreadedSocketServiceClass"]
[::std::mem::size_of::<_GThreadedSocketServiceClass>() - 296usize];
["Alignment of _GThreadedSocketServiceClass"]
[::std::mem::align_of::<_GThreadedSocketServiceClass>() - 8usize];
["Offset of field: _GThreadedSocketServiceClass::parent_class"]
[::std::mem::offset_of!(_GThreadedSocketServiceClass, parent_class) - 0usize];
["Offset of field: _GThreadedSocketServiceClass::run"]
[::std::mem::offset_of!(_GThreadedSocketServiceClass, run) - 248usize];
["Offset of field: _GThreadedSocketServiceClass::_g_reserved1"]
[::std::mem::offset_of!(_GThreadedSocketServiceClass, _g_reserved1) - 256usize];
["Offset of field: _GThreadedSocketServiceClass::_g_reserved2"]
[::std::mem::offset_of!(_GThreadedSocketServiceClass, _g_reserved2) - 264usize];
["Offset of field: _GThreadedSocketServiceClass::_g_reserved3"]
[::std::mem::offset_of!(_GThreadedSocketServiceClass, _g_reserved3) - 272usize];
["Offset of field: _GThreadedSocketServiceClass::_g_reserved4"]
[::std::mem::offset_of!(_GThreadedSocketServiceClass, _g_reserved4) - 280usize];
["Offset of field: _GThreadedSocketServiceClass::_g_reserved5"]
[::std::mem::offset_of!(_GThreadedSocketServiceClass, _g_reserved5) - 288usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GThreadedSocketService {
pub parent_instance: GSocketService,
pub priv_: *mut GThreadedSocketServicePrivate,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GThreadedSocketService"][::std::mem::size_of::<_GThreadedSocketService>() - 48usize];
["Alignment of _GThreadedSocketService"]
[::std::mem::align_of::<_GThreadedSocketService>() - 8usize];
["Offset of field: _GThreadedSocketService::parent_instance"]
[::std::mem::offset_of!(_GThreadedSocketService, parent_instance) - 0usize];
["Offset of field: _GThreadedSocketService::priv_"]
[::std::mem::offset_of!(_GThreadedSocketService, priv_) - 40usize];
};
unsafe extern "C" {
pub fn g_threaded_socket_service_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_threaded_socket_service_new(max_threads: ::std::os::raw::c_int)
-> *mut GSocketService;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GTlsBackend {
_unused: [u8; 0],
}
pub type GTlsBackend = _GTlsBackend;
pub type GTlsBackendInterface = _GTlsBackendInterface;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GTlsBackendInterface {
pub g_iface: GTypeInterface,
pub supports_tls:
::std::option::Option<unsafe extern "C" fn(backend: *mut GTlsBackend) -> gboolean>,
pub get_certificate_type: ::std::option::Option<unsafe extern "C" fn() -> GType>,
pub get_client_connection_type: ::std::option::Option<unsafe extern "C" fn() -> GType>,
pub get_server_connection_type: ::std::option::Option<unsafe extern "C" fn() -> GType>,
pub get_file_database_type: ::std::option::Option<unsafe extern "C" fn() -> GType>,
pub get_default_database:
::std::option::Option<unsafe extern "C" fn(backend: *mut GTlsBackend) -> *mut GTlsDatabase>,
pub supports_dtls:
::std::option::Option<unsafe extern "C" fn(backend: *mut GTlsBackend) -> gboolean>,
pub get_dtls_client_connection_type: ::std::option::Option<unsafe extern "C" fn() -> GType>,
pub get_dtls_server_connection_type: ::std::option::Option<unsafe extern "C" fn() -> GType>,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GTlsBackendInterface"][::std::mem::size_of::<_GTlsBackendInterface>() - 88usize];
["Alignment of _GTlsBackendInterface"]
[::std::mem::align_of::<_GTlsBackendInterface>() - 8usize];
["Offset of field: _GTlsBackendInterface::g_iface"]
[::std::mem::offset_of!(_GTlsBackendInterface, g_iface) - 0usize];
["Offset of field: _GTlsBackendInterface::supports_tls"]
[::std::mem::offset_of!(_GTlsBackendInterface, supports_tls) - 16usize];
["Offset of field: _GTlsBackendInterface::get_certificate_type"]
[::std::mem::offset_of!(_GTlsBackendInterface, get_certificate_type) - 24usize];
["Offset of field: _GTlsBackendInterface::get_client_connection_type"]
[::std::mem::offset_of!(_GTlsBackendInterface, get_client_connection_type) - 32usize];
["Offset of field: _GTlsBackendInterface::get_server_connection_type"]
[::std::mem::offset_of!(_GTlsBackendInterface, get_server_connection_type) - 40usize];
["Offset of field: _GTlsBackendInterface::get_file_database_type"]
[::std::mem::offset_of!(_GTlsBackendInterface, get_file_database_type) - 48usize];
["Offset of field: _GTlsBackendInterface::get_default_database"]
[::std::mem::offset_of!(_GTlsBackendInterface, get_default_database) - 56usize];
["Offset of field: _GTlsBackendInterface::supports_dtls"]
[::std::mem::offset_of!(_GTlsBackendInterface, supports_dtls) - 64usize];
["Offset of field: _GTlsBackendInterface::get_dtls_client_connection_type"]
[::std::mem::offset_of!(_GTlsBackendInterface, get_dtls_client_connection_type) - 72usize];
["Offset of field: _GTlsBackendInterface::get_dtls_server_connection_type"]
[::std::mem::offset_of!(_GTlsBackendInterface, get_dtls_server_connection_type) - 80usize];
};
unsafe extern "C" {
pub fn g_tls_backend_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_tls_backend_get_default() -> *mut GTlsBackend;
}
unsafe extern "C" {
pub fn g_tls_backend_get_default_database(backend: *mut GTlsBackend) -> *mut GTlsDatabase;
}
unsafe extern "C" {
pub fn g_tls_backend_set_default_database(
backend: *mut GTlsBackend,
database: *mut GTlsDatabase,
);
}
unsafe extern "C" {
pub fn g_tls_backend_supports_tls(backend: *mut GTlsBackend) -> gboolean;
}
unsafe extern "C" {
pub fn g_tls_backend_supports_dtls(backend: *mut GTlsBackend) -> gboolean;
}
unsafe extern "C" {
pub fn g_tls_backend_get_certificate_type(backend: *mut GTlsBackend) -> GType;
}
unsafe extern "C" {
pub fn g_tls_backend_get_client_connection_type(backend: *mut GTlsBackend) -> GType;
}
unsafe extern "C" {
pub fn g_tls_backend_get_server_connection_type(backend: *mut GTlsBackend) -> GType;
}
unsafe extern "C" {
pub fn g_tls_backend_get_file_database_type(backend: *mut GTlsBackend) -> GType;
}
unsafe extern "C" {
pub fn g_tls_backend_get_dtls_client_connection_type(backend: *mut GTlsBackend) -> GType;
}
unsafe extern "C" {
pub fn g_tls_backend_get_dtls_server_connection_type(backend: *mut GTlsBackend) -> GType;
}
pub type GTlsCertificateClass = _GTlsCertificateClass;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GTlsCertificatePrivate {
_unused: [u8; 0],
}
pub type GTlsCertificatePrivate = _GTlsCertificatePrivate;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GTlsCertificate {
pub parent_instance: GObject,
pub priv_: *mut GTlsCertificatePrivate,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GTlsCertificate"][::std::mem::size_of::<_GTlsCertificate>() - 32usize];
["Alignment of _GTlsCertificate"][::std::mem::align_of::<_GTlsCertificate>() - 8usize];
["Offset of field: _GTlsCertificate::parent_instance"]
[::std::mem::offset_of!(_GTlsCertificate, parent_instance) - 0usize];
["Offset of field: _GTlsCertificate::priv_"]
[::std::mem::offset_of!(_GTlsCertificate, priv_) - 24usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GTlsCertificateClass {
pub parent_class: GObjectClass,
pub verify: ::std::option::Option<
unsafe extern "C" fn(
cert: *mut GTlsCertificate,
identity: *mut GSocketConnectable,
trusted_ca: *mut GTlsCertificate,
) -> GTlsCertificateFlags,
>,
pub padding: [gpointer; 8usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GTlsCertificateClass"][::std::mem::size_of::<_GTlsCertificateClass>() - 208usize];
["Alignment of _GTlsCertificateClass"]
[::std::mem::align_of::<_GTlsCertificateClass>() - 8usize];
["Offset of field: _GTlsCertificateClass::parent_class"]
[::std::mem::offset_of!(_GTlsCertificateClass, parent_class) - 0usize];
["Offset of field: _GTlsCertificateClass::verify"]
[::std::mem::offset_of!(_GTlsCertificateClass, verify) - 136usize];
["Offset of field: _GTlsCertificateClass::padding"]
[::std::mem::offset_of!(_GTlsCertificateClass, padding) - 144usize];
};
unsafe extern "C" {
pub fn g_tls_certificate_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_tls_certificate_new_from_pem(
data: *const gchar,
length: gssize,
error: *mut *mut GError,
) -> *mut GTlsCertificate;
}
unsafe extern "C" {
pub fn g_tls_certificate_new_from_pkcs12(
data: *const guint8,
length: gsize,
password: *const gchar,
error: *mut *mut GError,
) -> *mut GTlsCertificate;
}
unsafe extern "C" {
pub fn g_tls_certificate_new_from_file_with_password(
file: *const gchar,
password: *const gchar,
error: *mut *mut GError,
) -> *mut GTlsCertificate;
}
unsafe extern "C" {
pub fn g_tls_certificate_new_from_file(
file: *const gchar,
error: *mut *mut GError,
) -> *mut GTlsCertificate;
}
unsafe extern "C" {
pub fn g_tls_certificate_new_from_files(
cert_file: *const gchar,
key_file: *const gchar,
error: *mut *mut GError,
) -> *mut GTlsCertificate;
}
unsafe extern "C" {
pub fn g_tls_certificate_new_from_pkcs11_uris(
pkcs11_uri: *const gchar,
private_key_pkcs11_uri: *const gchar,
error: *mut *mut GError,
) -> *mut GTlsCertificate;
}
unsafe extern "C" {
pub fn g_tls_certificate_list_new_from_file(
file: *const gchar,
error: *mut *mut GError,
) -> *mut GList;
}
unsafe extern "C" {
pub fn g_tls_certificate_get_issuer(cert: *mut GTlsCertificate) -> *mut GTlsCertificate;
}
unsafe extern "C" {
pub fn g_tls_certificate_verify(
cert: *mut GTlsCertificate,
identity: *mut GSocketConnectable,
trusted_ca: *mut GTlsCertificate,
) -> GTlsCertificateFlags;
}
unsafe extern "C" {
pub fn g_tls_certificate_is_same(
cert_one: *mut GTlsCertificate,
cert_two: *mut GTlsCertificate,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_tls_certificate_get_not_valid_before(cert: *mut GTlsCertificate) -> *mut GDateTime;
}
unsafe extern "C" {
pub fn g_tls_certificate_get_not_valid_after(cert: *mut GTlsCertificate) -> *mut GDateTime;
}
unsafe extern "C" {
pub fn g_tls_certificate_get_subject_name(cert: *mut GTlsCertificate) -> *mut gchar;
}
unsafe extern "C" {
pub fn g_tls_certificate_get_issuer_name(cert: *mut GTlsCertificate) -> *mut gchar;
}
unsafe extern "C" {
pub fn g_tls_certificate_get_dns_names(cert: *mut GTlsCertificate) -> *mut GPtrArray;
}
unsafe extern "C" {
pub fn g_tls_certificate_get_ip_addresses(cert: *mut GTlsCertificate) -> *mut GPtrArray;
}
pub type GTlsConnectionClass = _GTlsConnectionClass;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GTlsConnectionPrivate {
_unused: [u8; 0],
}
pub type GTlsConnectionPrivate = _GTlsConnectionPrivate;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GTlsConnection {
pub parent_instance: GIOStream,
pub priv_: *mut GTlsConnectionPrivate,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GTlsConnection"][::std::mem::size_of::<_GTlsConnection>() - 40usize];
["Alignment of _GTlsConnection"][::std::mem::align_of::<_GTlsConnection>() - 8usize];
["Offset of field: _GTlsConnection::parent_instance"]
[::std::mem::offset_of!(_GTlsConnection, parent_instance) - 0usize];
["Offset of field: _GTlsConnection::priv_"]
[::std::mem::offset_of!(_GTlsConnection, priv_) - 32usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GTlsConnectionClass {
pub parent_class: GIOStreamClass,
pub accept_certificate: ::std::option::Option<
unsafe extern "C" fn(
connection: *mut GTlsConnection,
peer_cert: *mut GTlsCertificate,
errors: GTlsCertificateFlags,
) -> gboolean,
>,
pub handshake: ::std::option::Option<
unsafe extern "C" fn(
conn: *mut GTlsConnection,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> gboolean,
>,
pub handshake_async: ::std::option::Option<
unsafe extern "C" fn(
conn: *mut GTlsConnection,
io_priority: ::std::os::raw::c_int,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
),
>,
pub handshake_finish: ::std::option::Option<
unsafe extern "C" fn(
conn: *mut GTlsConnection,
result: *mut GAsyncResult,
error: *mut *mut GError,
) -> gboolean,
>,
pub get_binding_data: ::std::option::Option<
unsafe extern "C" fn(
conn: *mut GTlsConnection,
type_: GTlsChannelBindingType,
data: *mut GByteArray,
error: *mut *mut GError,
) -> gboolean,
>,
pub get_negotiated_protocol:
::std::option::Option<unsafe extern "C" fn(conn: *mut GTlsConnection) -> *const gchar>,
pub padding: [gpointer; 6usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GTlsConnectionClass"][::std::mem::size_of::<_GTlsConnectionClass>() - 352usize];
["Alignment of _GTlsConnectionClass"][::std::mem::align_of::<_GTlsConnectionClass>() - 8usize];
["Offset of field: _GTlsConnectionClass::parent_class"]
[::std::mem::offset_of!(_GTlsConnectionClass, parent_class) - 0usize];
["Offset of field: _GTlsConnectionClass::accept_certificate"]
[::std::mem::offset_of!(_GTlsConnectionClass, accept_certificate) - 256usize];
["Offset of field: _GTlsConnectionClass::handshake"]
[::std::mem::offset_of!(_GTlsConnectionClass, handshake) - 264usize];
["Offset of field: _GTlsConnectionClass::handshake_async"]
[::std::mem::offset_of!(_GTlsConnectionClass, handshake_async) - 272usize];
["Offset of field: _GTlsConnectionClass::handshake_finish"]
[::std::mem::offset_of!(_GTlsConnectionClass, handshake_finish) - 280usize];
["Offset of field: _GTlsConnectionClass::get_binding_data"]
[::std::mem::offset_of!(_GTlsConnectionClass, get_binding_data) - 288usize];
["Offset of field: _GTlsConnectionClass::get_negotiated_protocol"]
[::std::mem::offset_of!(_GTlsConnectionClass, get_negotiated_protocol) - 296usize];
["Offset of field: _GTlsConnectionClass::padding"]
[::std::mem::offset_of!(_GTlsConnectionClass, padding) - 304usize];
};
unsafe extern "C" {
pub fn g_tls_connection_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_tls_connection_set_use_system_certdb(
conn: *mut GTlsConnection,
use_system_certdb: gboolean,
);
}
unsafe extern "C" {
pub fn g_tls_connection_get_use_system_certdb(conn: *mut GTlsConnection) -> gboolean;
}
unsafe extern "C" {
pub fn g_tls_connection_set_database(conn: *mut GTlsConnection, database: *mut GTlsDatabase);
}
unsafe extern "C" {
pub fn g_tls_connection_get_database(conn: *mut GTlsConnection) -> *mut GTlsDatabase;
}
unsafe extern "C" {
pub fn g_tls_connection_set_certificate(
conn: *mut GTlsConnection,
certificate: *mut GTlsCertificate,
);
}
unsafe extern "C" {
pub fn g_tls_connection_get_certificate(conn: *mut GTlsConnection) -> *mut GTlsCertificate;
}
unsafe extern "C" {
pub fn g_tls_connection_set_interaction(
conn: *mut GTlsConnection,
interaction: *mut GTlsInteraction,
);
}
unsafe extern "C" {
pub fn g_tls_connection_get_interaction(conn: *mut GTlsConnection) -> *mut GTlsInteraction;
}
unsafe extern "C" {
pub fn g_tls_connection_get_peer_certificate(conn: *mut GTlsConnection)
-> *mut GTlsCertificate;
}
unsafe extern "C" {
pub fn g_tls_connection_get_peer_certificate_errors(
conn: *mut GTlsConnection,
) -> GTlsCertificateFlags;
}
unsafe extern "C" {
pub fn g_tls_connection_set_require_close_notify(
conn: *mut GTlsConnection,
require_close_notify: gboolean,
);
}
unsafe extern "C" {
pub fn g_tls_connection_get_require_close_notify(conn: *mut GTlsConnection) -> gboolean;
}
unsafe extern "C" {
pub fn g_tls_connection_set_rehandshake_mode(
conn: *mut GTlsConnection,
mode: GTlsRehandshakeMode,
);
}
unsafe extern "C" {
pub fn g_tls_connection_get_rehandshake_mode(conn: *mut GTlsConnection) -> GTlsRehandshakeMode;
}
unsafe extern "C" {
pub fn g_tls_connection_set_advertised_protocols(
conn: *mut GTlsConnection,
protocols: *const *const gchar,
);
}
unsafe extern "C" {
pub fn g_tls_connection_get_negotiated_protocol(conn: *mut GTlsConnection) -> *const gchar;
}
unsafe extern "C" {
pub fn g_tls_connection_get_channel_binding_data(
conn: *mut GTlsConnection,
type_: GTlsChannelBindingType,
data: *mut GByteArray,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_tls_connection_handshake(
conn: *mut GTlsConnection,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_tls_connection_handshake_async(
conn: *mut GTlsConnection,
io_priority: ::std::os::raw::c_int,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
);
}
unsafe extern "C" {
pub fn g_tls_connection_handshake_finish(
conn: *mut GTlsConnection,
result: *mut GAsyncResult,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_tls_connection_get_protocol_version(conn: *mut GTlsConnection) -> GTlsProtocolVersion;
}
unsafe extern "C" {
pub fn g_tls_connection_get_ciphersuite_name(conn: *mut GTlsConnection) -> *mut gchar;
}
unsafe extern "C" {
pub fn g_tls_error_quark() -> GQuark;
}
unsafe extern "C" {
pub fn g_tls_channel_binding_error_quark() -> GQuark;
}
unsafe extern "C" {
pub fn g_tls_connection_emit_accept_certificate(
conn: *mut GTlsConnection,
peer_cert: *mut GTlsCertificate,
errors: GTlsCertificateFlags,
) -> gboolean;
}
pub type GTlsClientConnectionInterface = _GTlsClientConnectionInterface;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GTlsClientConnectionInterface {
pub g_iface: GTypeInterface,
pub copy_session_state: ::std::option::Option<
unsafe extern "C" fn(conn: *mut GTlsClientConnection, source: *mut GTlsClientConnection),
>,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GTlsClientConnectionInterface"]
[::std::mem::size_of::<_GTlsClientConnectionInterface>() - 24usize];
["Alignment of _GTlsClientConnectionInterface"]
[::std::mem::align_of::<_GTlsClientConnectionInterface>() - 8usize];
["Offset of field: _GTlsClientConnectionInterface::g_iface"]
[::std::mem::offset_of!(_GTlsClientConnectionInterface, g_iface) - 0usize];
["Offset of field: _GTlsClientConnectionInterface::copy_session_state"]
[::std::mem::offset_of!(_GTlsClientConnectionInterface, copy_session_state) - 16usize];
};
unsafe extern "C" {
pub fn g_tls_client_connection_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_tls_client_connection_new(
base_io_stream: *mut GIOStream,
server_identity: *mut GSocketConnectable,
error: *mut *mut GError,
) -> *mut GIOStream;
}
unsafe extern "C" {
pub fn g_tls_client_connection_get_validation_flags(
conn: *mut GTlsClientConnection,
) -> GTlsCertificateFlags;
}
unsafe extern "C" {
pub fn g_tls_client_connection_set_validation_flags(
conn: *mut GTlsClientConnection,
flags: GTlsCertificateFlags,
);
}
unsafe extern "C" {
pub fn g_tls_client_connection_get_server_identity(
conn: *mut GTlsClientConnection,
) -> *mut GSocketConnectable;
}
unsafe extern "C" {
pub fn g_tls_client_connection_set_server_identity(
conn: *mut GTlsClientConnection,
identity: *mut GSocketConnectable,
);
}
unsafe extern "C" {
pub fn g_tls_client_connection_get_use_ssl3(conn: *mut GTlsClientConnection) -> gboolean;
}
unsafe extern "C" {
pub fn g_tls_client_connection_set_use_ssl3(
conn: *mut GTlsClientConnection,
use_ssl3: gboolean,
);
}
unsafe extern "C" {
pub fn g_tls_client_connection_get_accepted_cas(conn: *mut GTlsClientConnection) -> *mut GList;
}
unsafe extern "C" {
pub fn g_tls_client_connection_copy_session_state(
conn: *mut GTlsClientConnection,
source: *mut GTlsClientConnection,
);
}
pub type GTlsDatabaseClass = _GTlsDatabaseClass;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GTlsDatabasePrivate {
_unused: [u8; 0],
}
pub type GTlsDatabasePrivate = _GTlsDatabasePrivate;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GTlsDatabase {
pub parent_instance: GObject,
pub priv_: *mut GTlsDatabasePrivate,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GTlsDatabase"][::std::mem::size_of::<_GTlsDatabase>() - 32usize];
["Alignment of _GTlsDatabase"][::std::mem::align_of::<_GTlsDatabase>() - 8usize];
["Offset of field: _GTlsDatabase::parent_instance"]
[::std::mem::offset_of!(_GTlsDatabase, parent_instance) - 0usize];
["Offset of field: _GTlsDatabase::priv_"]
[::std::mem::offset_of!(_GTlsDatabase, priv_) - 24usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GTlsDatabaseClass {
pub parent_class: GObjectClass,
pub verify_chain: ::std::option::Option<
unsafe extern "C" fn(
self_: *mut GTlsDatabase,
chain: *mut GTlsCertificate,
purpose: *const gchar,
identity: *mut GSocketConnectable,
interaction: *mut GTlsInteraction,
flags: GTlsDatabaseVerifyFlags,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> GTlsCertificateFlags,
>,
pub verify_chain_async: ::std::option::Option<
unsafe extern "C" fn(
self_: *mut GTlsDatabase,
chain: *mut GTlsCertificate,
purpose: *const gchar,
identity: *mut GSocketConnectable,
interaction: *mut GTlsInteraction,
flags: GTlsDatabaseVerifyFlags,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
),
>,
pub verify_chain_finish: ::std::option::Option<
unsafe extern "C" fn(
self_: *mut GTlsDatabase,
result: *mut GAsyncResult,
error: *mut *mut GError,
) -> GTlsCertificateFlags,
>,
pub create_certificate_handle: ::std::option::Option<
unsafe extern "C" fn(
self_: *mut GTlsDatabase,
certificate: *mut GTlsCertificate,
) -> *mut gchar,
>,
pub lookup_certificate_for_handle: ::std::option::Option<
unsafe extern "C" fn(
self_: *mut GTlsDatabase,
handle: *const gchar,
interaction: *mut GTlsInteraction,
flags: GTlsDatabaseLookupFlags,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> *mut GTlsCertificate,
>,
pub lookup_certificate_for_handle_async: ::std::option::Option<
unsafe extern "C" fn(
self_: *mut GTlsDatabase,
handle: *const gchar,
interaction: *mut GTlsInteraction,
flags: GTlsDatabaseLookupFlags,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
),
>,
pub lookup_certificate_for_handle_finish: ::std::option::Option<
unsafe extern "C" fn(
self_: *mut GTlsDatabase,
result: *mut GAsyncResult,
error: *mut *mut GError,
) -> *mut GTlsCertificate,
>,
pub lookup_certificate_issuer: ::std::option::Option<
unsafe extern "C" fn(
self_: *mut GTlsDatabase,
certificate: *mut GTlsCertificate,
interaction: *mut GTlsInteraction,
flags: GTlsDatabaseLookupFlags,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> *mut GTlsCertificate,
>,
pub lookup_certificate_issuer_async: ::std::option::Option<
unsafe extern "C" fn(
self_: *mut GTlsDatabase,
certificate: *mut GTlsCertificate,
interaction: *mut GTlsInteraction,
flags: GTlsDatabaseLookupFlags,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
),
>,
pub lookup_certificate_issuer_finish: ::std::option::Option<
unsafe extern "C" fn(
self_: *mut GTlsDatabase,
result: *mut GAsyncResult,
error: *mut *mut GError,
) -> *mut GTlsCertificate,
>,
pub lookup_certificates_issued_by: ::std::option::Option<
unsafe extern "C" fn(
self_: *mut GTlsDatabase,
issuer_raw_dn: *mut GByteArray,
interaction: *mut GTlsInteraction,
flags: GTlsDatabaseLookupFlags,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> *mut GList,
>,
pub lookup_certificates_issued_by_async: ::std::option::Option<
unsafe extern "C" fn(
self_: *mut GTlsDatabase,
issuer_raw_dn: *mut GByteArray,
interaction: *mut GTlsInteraction,
flags: GTlsDatabaseLookupFlags,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
),
>,
pub lookup_certificates_issued_by_finish: ::std::option::Option<
unsafe extern "C" fn(
self_: *mut GTlsDatabase,
result: *mut GAsyncResult,
error: *mut *mut GError,
) -> *mut GList,
>,
pub padding: [gpointer; 16usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GTlsDatabaseClass"][::std::mem::size_of::<_GTlsDatabaseClass>() - 368usize];
["Alignment of _GTlsDatabaseClass"][::std::mem::align_of::<_GTlsDatabaseClass>() - 8usize];
["Offset of field: _GTlsDatabaseClass::parent_class"]
[::std::mem::offset_of!(_GTlsDatabaseClass, parent_class) - 0usize];
["Offset of field: _GTlsDatabaseClass::verify_chain"]
[::std::mem::offset_of!(_GTlsDatabaseClass, verify_chain) - 136usize];
["Offset of field: _GTlsDatabaseClass::verify_chain_async"]
[::std::mem::offset_of!(_GTlsDatabaseClass, verify_chain_async) - 144usize];
["Offset of field: _GTlsDatabaseClass::verify_chain_finish"]
[::std::mem::offset_of!(_GTlsDatabaseClass, verify_chain_finish) - 152usize];
["Offset of field: _GTlsDatabaseClass::create_certificate_handle"]
[::std::mem::offset_of!(_GTlsDatabaseClass, create_certificate_handle) - 160usize];
["Offset of field: _GTlsDatabaseClass::lookup_certificate_for_handle"]
[::std::mem::offset_of!(_GTlsDatabaseClass, lookup_certificate_for_handle) - 168usize];
["Offset of field: _GTlsDatabaseClass::lookup_certificate_for_handle_async"][::std::mem::offset_of!(
_GTlsDatabaseClass,
lookup_certificate_for_handle_async
) - 176usize];
["Offset of field: _GTlsDatabaseClass::lookup_certificate_for_handle_finish"][::std::mem::offset_of!(
_GTlsDatabaseClass,
lookup_certificate_for_handle_finish
) - 184usize];
["Offset of field: _GTlsDatabaseClass::lookup_certificate_issuer"]
[::std::mem::offset_of!(_GTlsDatabaseClass, lookup_certificate_issuer) - 192usize];
["Offset of field: _GTlsDatabaseClass::lookup_certificate_issuer_async"]
[::std::mem::offset_of!(_GTlsDatabaseClass, lookup_certificate_issuer_async) - 200usize];
["Offset of field: _GTlsDatabaseClass::lookup_certificate_issuer_finish"]
[::std::mem::offset_of!(_GTlsDatabaseClass, lookup_certificate_issuer_finish) - 208usize];
["Offset of field: _GTlsDatabaseClass::lookup_certificates_issued_by"]
[::std::mem::offset_of!(_GTlsDatabaseClass, lookup_certificates_issued_by) - 216usize];
["Offset of field: _GTlsDatabaseClass::lookup_certificates_issued_by_async"][::std::mem::offset_of!(
_GTlsDatabaseClass,
lookup_certificates_issued_by_async
) - 224usize];
["Offset of field: _GTlsDatabaseClass::lookup_certificates_issued_by_finish"][::std::mem::offset_of!(
_GTlsDatabaseClass,
lookup_certificates_issued_by_finish
) - 232usize];
["Offset of field: _GTlsDatabaseClass::padding"]
[::std::mem::offset_of!(_GTlsDatabaseClass, padding) - 240usize];
};
unsafe extern "C" {
pub fn g_tls_database_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_tls_database_verify_chain(
self_: *mut GTlsDatabase,
chain: *mut GTlsCertificate,
purpose: *const gchar,
identity: *mut GSocketConnectable,
interaction: *mut GTlsInteraction,
flags: GTlsDatabaseVerifyFlags,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> GTlsCertificateFlags;
}
unsafe extern "C" {
pub fn g_tls_database_verify_chain_async(
self_: *mut GTlsDatabase,
chain: *mut GTlsCertificate,
purpose: *const gchar,
identity: *mut GSocketConnectable,
interaction: *mut GTlsInteraction,
flags: GTlsDatabaseVerifyFlags,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
);
}
unsafe extern "C" {
pub fn g_tls_database_verify_chain_finish(
self_: *mut GTlsDatabase,
result: *mut GAsyncResult,
error: *mut *mut GError,
) -> GTlsCertificateFlags;
}
unsafe extern "C" {
pub fn g_tls_database_create_certificate_handle(
self_: *mut GTlsDatabase,
certificate: *mut GTlsCertificate,
) -> *mut gchar;
}
unsafe extern "C" {
pub fn g_tls_database_lookup_certificate_for_handle(
self_: *mut GTlsDatabase,
handle: *const gchar,
interaction: *mut GTlsInteraction,
flags: GTlsDatabaseLookupFlags,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> *mut GTlsCertificate;
}
unsafe extern "C" {
pub fn g_tls_database_lookup_certificate_for_handle_async(
self_: *mut GTlsDatabase,
handle: *const gchar,
interaction: *mut GTlsInteraction,
flags: GTlsDatabaseLookupFlags,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
);
}
unsafe extern "C" {
pub fn g_tls_database_lookup_certificate_for_handle_finish(
self_: *mut GTlsDatabase,
result: *mut GAsyncResult,
error: *mut *mut GError,
) -> *mut GTlsCertificate;
}
unsafe extern "C" {
pub fn g_tls_database_lookup_certificate_issuer(
self_: *mut GTlsDatabase,
certificate: *mut GTlsCertificate,
interaction: *mut GTlsInteraction,
flags: GTlsDatabaseLookupFlags,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> *mut GTlsCertificate;
}
unsafe extern "C" {
pub fn g_tls_database_lookup_certificate_issuer_async(
self_: *mut GTlsDatabase,
certificate: *mut GTlsCertificate,
interaction: *mut GTlsInteraction,
flags: GTlsDatabaseLookupFlags,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
);
}
unsafe extern "C" {
pub fn g_tls_database_lookup_certificate_issuer_finish(
self_: *mut GTlsDatabase,
result: *mut GAsyncResult,
error: *mut *mut GError,
) -> *mut GTlsCertificate;
}
unsafe extern "C" {
pub fn g_tls_database_lookup_certificates_issued_by(
self_: *mut GTlsDatabase,
issuer_raw_dn: *mut GByteArray,
interaction: *mut GTlsInteraction,
flags: GTlsDatabaseLookupFlags,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> *mut GList;
}
unsafe extern "C" {
pub fn g_tls_database_lookup_certificates_issued_by_async(
self_: *mut GTlsDatabase,
issuer_raw_dn: *mut GByteArray,
interaction: *mut GTlsInteraction,
flags: GTlsDatabaseLookupFlags,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
);
}
unsafe extern "C" {
pub fn g_tls_database_lookup_certificates_issued_by_finish(
self_: *mut GTlsDatabase,
result: *mut GAsyncResult,
error: *mut *mut GError,
) -> *mut GList;
}
pub type GTlsFileDatabaseInterface = _GTlsFileDatabaseInterface;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GTlsFileDatabaseInterface {
pub g_iface: GTypeInterface,
pub padding: [gpointer; 8usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GTlsFileDatabaseInterface"]
[::std::mem::size_of::<_GTlsFileDatabaseInterface>() - 80usize];
["Alignment of _GTlsFileDatabaseInterface"]
[::std::mem::align_of::<_GTlsFileDatabaseInterface>() - 8usize];
["Offset of field: _GTlsFileDatabaseInterface::g_iface"]
[::std::mem::offset_of!(_GTlsFileDatabaseInterface, g_iface) - 0usize];
["Offset of field: _GTlsFileDatabaseInterface::padding"]
[::std::mem::offset_of!(_GTlsFileDatabaseInterface, padding) - 16usize];
};
unsafe extern "C" {
pub fn g_tls_file_database_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_tls_file_database_new(
anchors: *const gchar,
error: *mut *mut GError,
) -> *mut GTlsDatabase;
}
pub type GTlsInteractionClass = _GTlsInteractionClass;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GTlsInteractionPrivate {
_unused: [u8; 0],
}
pub type GTlsInteractionPrivate = _GTlsInteractionPrivate;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GTlsInteraction {
pub parent_instance: GObject,
pub priv_: *mut GTlsInteractionPrivate,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GTlsInteraction"][::std::mem::size_of::<_GTlsInteraction>() - 32usize];
["Alignment of _GTlsInteraction"][::std::mem::align_of::<_GTlsInteraction>() - 8usize];
["Offset of field: _GTlsInteraction::parent_instance"]
[::std::mem::offset_of!(_GTlsInteraction, parent_instance) - 0usize];
["Offset of field: _GTlsInteraction::priv_"]
[::std::mem::offset_of!(_GTlsInteraction, priv_) - 24usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GTlsInteractionClass {
pub parent_class: GObjectClass,
pub ask_password: ::std::option::Option<
unsafe extern "C" fn(
interaction: *mut GTlsInteraction,
password: *mut GTlsPassword,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> GTlsInteractionResult,
>,
pub ask_password_async: ::std::option::Option<
unsafe extern "C" fn(
interaction: *mut GTlsInteraction,
password: *mut GTlsPassword,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
),
>,
pub ask_password_finish: ::std::option::Option<
unsafe extern "C" fn(
interaction: *mut GTlsInteraction,
result: *mut GAsyncResult,
error: *mut *mut GError,
) -> GTlsInteractionResult,
>,
pub request_certificate: ::std::option::Option<
unsafe extern "C" fn(
interaction: *mut GTlsInteraction,
connection: *mut GTlsConnection,
flags: GTlsCertificateRequestFlags,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> GTlsInteractionResult,
>,
pub request_certificate_async: ::std::option::Option<
unsafe extern "C" fn(
interaction: *mut GTlsInteraction,
connection: *mut GTlsConnection,
flags: GTlsCertificateRequestFlags,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
),
>,
pub request_certificate_finish: ::std::option::Option<
unsafe extern "C" fn(
interaction: *mut GTlsInteraction,
result: *mut GAsyncResult,
error: *mut *mut GError,
) -> GTlsInteractionResult,
>,
pub padding: [gpointer; 21usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GTlsInteractionClass"][::std::mem::size_of::<_GTlsInteractionClass>() - 352usize];
["Alignment of _GTlsInteractionClass"]
[::std::mem::align_of::<_GTlsInteractionClass>() - 8usize];
["Offset of field: _GTlsInteractionClass::parent_class"]
[::std::mem::offset_of!(_GTlsInteractionClass, parent_class) - 0usize];
["Offset of field: _GTlsInteractionClass::ask_password"]
[::std::mem::offset_of!(_GTlsInteractionClass, ask_password) - 136usize];
["Offset of field: _GTlsInteractionClass::ask_password_async"]
[::std::mem::offset_of!(_GTlsInteractionClass, ask_password_async) - 144usize];
["Offset of field: _GTlsInteractionClass::ask_password_finish"]
[::std::mem::offset_of!(_GTlsInteractionClass, ask_password_finish) - 152usize];
["Offset of field: _GTlsInteractionClass::request_certificate"]
[::std::mem::offset_of!(_GTlsInteractionClass, request_certificate) - 160usize];
["Offset of field: _GTlsInteractionClass::request_certificate_async"]
[::std::mem::offset_of!(_GTlsInteractionClass, request_certificate_async) - 168usize];
["Offset of field: _GTlsInteractionClass::request_certificate_finish"]
[::std::mem::offset_of!(_GTlsInteractionClass, request_certificate_finish) - 176usize];
["Offset of field: _GTlsInteractionClass::padding"]
[::std::mem::offset_of!(_GTlsInteractionClass, padding) - 184usize];
};
unsafe extern "C" {
pub fn g_tls_interaction_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_tls_interaction_invoke_ask_password(
interaction: *mut GTlsInteraction,
password: *mut GTlsPassword,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> GTlsInteractionResult;
}
unsafe extern "C" {
pub fn g_tls_interaction_ask_password(
interaction: *mut GTlsInteraction,
password: *mut GTlsPassword,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> GTlsInteractionResult;
}
unsafe extern "C" {
pub fn g_tls_interaction_ask_password_async(
interaction: *mut GTlsInteraction,
password: *mut GTlsPassword,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
);
}
unsafe extern "C" {
pub fn g_tls_interaction_ask_password_finish(
interaction: *mut GTlsInteraction,
result: *mut GAsyncResult,
error: *mut *mut GError,
) -> GTlsInteractionResult;
}
unsafe extern "C" {
pub fn g_tls_interaction_invoke_request_certificate(
interaction: *mut GTlsInteraction,
connection: *mut GTlsConnection,
flags: GTlsCertificateRequestFlags,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> GTlsInteractionResult;
}
unsafe extern "C" {
pub fn g_tls_interaction_request_certificate(
interaction: *mut GTlsInteraction,
connection: *mut GTlsConnection,
flags: GTlsCertificateRequestFlags,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> GTlsInteractionResult;
}
unsafe extern "C" {
pub fn g_tls_interaction_request_certificate_async(
interaction: *mut GTlsInteraction,
connection: *mut GTlsConnection,
flags: GTlsCertificateRequestFlags,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
);
}
unsafe extern "C" {
pub fn g_tls_interaction_request_certificate_finish(
interaction: *mut GTlsInteraction,
result: *mut GAsyncResult,
error: *mut *mut GError,
) -> GTlsInteractionResult;
}
pub type GTlsPasswordClass = _GTlsPasswordClass;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GTlsPasswordPrivate {
_unused: [u8; 0],
}
pub type GTlsPasswordPrivate = _GTlsPasswordPrivate;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GTlsPassword {
pub parent_instance: GObject,
pub priv_: *mut GTlsPasswordPrivate,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GTlsPassword"][::std::mem::size_of::<_GTlsPassword>() - 32usize];
["Alignment of _GTlsPassword"][::std::mem::align_of::<_GTlsPassword>() - 8usize];
["Offset of field: _GTlsPassword::parent_instance"]
[::std::mem::offset_of!(_GTlsPassword, parent_instance) - 0usize];
["Offset of field: _GTlsPassword::priv_"]
[::std::mem::offset_of!(_GTlsPassword, priv_) - 24usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GTlsPasswordClass {
pub parent_class: GObjectClass,
pub get_value: ::std::option::Option<
unsafe extern "C" fn(password: *mut GTlsPassword, length: *mut gsize) -> *const guchar,
>,
pub set_value: ::std::option::Option<
unsafe extern "C" fn(
password: *mut GTlsPassword,
value: *mut guchar,
length: gssize,
destroy: GDestroyNotify,
),
>,
pub get_default_warning:
::std::option::Option<unsafe extern "C" fn(password: *mut GTlsPassword) -> *const gchar>,
pub padding: [gpointer; 4usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GTlsPasswordClass"][::std::mem::size_of::<_GTlsPasswordClass>() - 192usize];
["Alignment of _GTlsPasswordClass"][::std::mem::align_of::<_GTlsPasswordClass>() - 8usize];
["Offset of field: _GTlsPasswordClass::parent_class"]
[::std::mem::offset_of!(_GTlsPasswordClass, parent_class) - 0usize];
["Offset of field: _GTlsPasswordClass::get_value"]
[::std::mem::offset_of!(_GTlsPasswordClass, get_value) - 136usize];
["Offset of field: _GTlsPasswordClass::set_value"]
[::std::mem::offset_of!(_GTlsPasswordClass, set_value) - 144usize];
["Offset of field: _GTlsPasswordClass::get_default_warning"]
[::std::mem::offset_of!(_GTlsPasswordClass, get_default_warning) - 152usize];
["Offset of field: _GTlsPasswordClass::padding"]
[::std::mem::offset_of!(_GTlsPasswordClass, padding) - 160usize];
};
unsafe extern "C" {
pub fn g_tls_password_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_tls_password_new(
flags: GTlsPasswordFlags,
description: *const gchar,
) -> *mut GTlsPassword;
}
unsafe extern "C" {
pub fn g_tls_password_get_value(
password: *mut GTlsPassword,
length: *mut gsize,
) -> *const guchar;
}
unsafe extern "C" {
pub fn g_tls_password_set_value(
password: *mut GTlsPassword,
value: *const guchar,
length: gssize,
);
}
unsafe extern "C" {
pub fn g_tls_password_set_value_full(
password: *mut GTlsPassword,
value: *mut guchar,
length: gssize,
destroy: GDestroyNotify,
);
}
unsafe extern "C" {
pub fn g_tls_password_get_flags(password: *mut GTlsPassword) -> GTlsPasswordFlags;
}
unsafe extern "C" {
pub fn g_tls_password_set_flags(password: *mut GTlsPassword, flags: GTlsPasswordFlags);
}
unsafe extern "C" {
pub fn g_tls_password_get_description(password: *mut GTlsPassword) -> *const gchar;
}
unsafe extern "C" {
pub fn g_tls_password_set_description(password: *mut GTlsPassword, description: *const gchar);
}
unsafe extern "C" {
pub fn g_tls_password_get_warning(password: *mut GTlsPassword) -> *const gchar;
}
unsafe extern "C" {
pub fn g_tls_password_set_warning(password: *mut GTlsPassword, warning: *const gchar);
}
pub type GTlsServerConnectionInterface = _GTlsServerConnectionInterface;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GTlsServerConnectionInterface {
pub g_iface: GTypeInterface,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GTlsServerConnectionInterface"]
[::std::mem::size_of::<_GTlsServerConnectionInterface>() - 16usize];
["Alignment of _GTlsServerConnectionInterface"]
[::std::mem::align_of::<_GTlsServerConnectionInterface>() - 8usize];
["Offset of field: _GTlsServerConnectionInterface::g_iface"]
[::std::mem::offset_of!(_GTlsServerConnectionInterface, g_iface) - 0usize];
};
unsafe extern "C" {
pub fn g_tls_server_connection_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_tls_server_connection_new(
base_io_stream: *mut GIOStream,
certificate: *mut GTlsCertificate,
error: *mut *mut GError,
) -> *mut GIOStream;
}
pub type GUnixConnection = _GUnixConnection;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GUnixConnectionPrivate {
_unused: [u8; 0],
}
pub type GUnixConnectionPrivate = _GUnixConnectionPrivate;
pub type GUnixConnectionClass = _GUnixConnectionClass;
pub type GUnixConnection_autoptr = *mut GUnixConnection;
pub type GUnixConnection_listautoptr = *mut GList;
pub type GUnixConnection_slistautoptr = *mut GSList;
pub type GUnixConnection_queueautoptr = *mut GQueue;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GUnixConnectionClass {
pub parent_class: GSocketConnectionClass,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GUnixConnectionClass"][::std::mem::size_of::<_GUnixConnectionClass>() - 304usize];
["Alignment of _GUnixConnectionClass"]
[::std::mem::align_of::<_GUnixConnectionClass>() - 8usize];
["Offset of field: _GUnixConnectionClass::parent_class"]
[::std::mem::offset_of!(_GUnixConnectionClass, parent_class) - 0usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GUnixConnection {
pub parent_instance: GSocketConnection,
pub priv_: *mut GUnixConnectionPrivate,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GUnixConnection"][::std::mem::size_of::<_GUnixConnection>() - 48usize];
["Alignment of _GUnixConnection"][::std::mem::align_of::<_GUnixConnection>() - 8usize];
["Offset of field: _GUnixConnection::parent_instance"]
[::std::mem::offset_of!(_GUnixConnection, parent_instance) - 0usize];
["Offset of field: _GUnixConnection::priv_"]
[::std::mem::offset_of!(_GUnixConnection, priv_) - 40usize];
};
unsafe extern "C" {
pub fn g_unix_connection_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_unix_connection_send_fd(
connection: *mut GUnixConnection,
fd: gint,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_unix_connection_receive_fd(
connection: *mut GUnixConnection,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> gint;
}
unsafe extern "C" {
pub fn g_unix_connection_send_credentials(
connection: *mut GUnixConnection,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_unix_connection_send_credentials_async(
connection: *mut GUnixConnection,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
);
}
unsafe extern "C" {
pub fn g_unix_connection_send_credentials_finish(
connection: *mut GUnixConnection,
result: *mut GAsyncResult,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_unix_connection_receive_credentials(
connection: *mut GUnixConnection,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> *mut GCredentials;
}
unsafe extern "C" {
pub fn g_unix_connection_receive_credentials_async(
connection: *mut GUnixConnection,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
);
}
unsafe extern "C" {
pub fn g_unix_connection_receive_credentials_finish(
connection: *mut GUnixConnection,
result: *mut GAsyncResult,
error: *mut *mut GError,
) -> *mut GCredentials;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GUnixCredentialsMessagePrivate {
_unused: [u8; 0],
}
pub type GUnixCredentialsMessagePrivate = _GUnixCredentialsMessagePrivate;
pub type GUnixCredentialsMessageClass = _GUnixCredentialsMessageClass;
pub type GUnixCredentialsMessage_autoptr = *mut GUnixCredentialsMessage;
pub type GUnixCredentialsMessage_listautoptr = *mut GList;
pub type GUnixCredentialsMessage_slistautoptr = *mut GSList;
pub type GUnixCredentialsMessage_queueautoptr = *mut GQueue;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GUnixCredentialsMessageClass {
pub parent_class: GSocketControlMessageClass,
pub _g_reserved1: ::std::option::Option<unsafe extern "C" fn()>,
pub _g_reserved2: ::std::option::Option<unsafe extern "C" fn()>,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GUnixCredentialsMessageClass"]
[::std::mem::size_of::<_GUnixCredentialsMessageClass>() - 232usize];
["Alignment of _GUnixCredentialsMessageClass"]
[::std::mem::align_of::<_GUnixCredentialsMessageClass>() - 8usize];
["Offset of field: _GUnixCredentialsMessageClass::parent_class"]
[::std::mem::offset_of!(_GUnixCredentialsMessageClass, parent_class) - 0usize];
["Offset of field: _GUnixCredentialsMessageClass::_g_reserved1"]
[::std::mem::offset_of!(_GUnixCredentialsMessageClass, _g_reserved1) - 216usize];
["Offset of field: _GUnixCredentialsMessageClass::_g_reserved2"]
[::std::mem::offset_of!(_GUnixCredentialsMessageClass, _g_reserved2) - 224usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GUnixCredentialsMessage {
pub parent_instance: GSocketControlMessage,
pub priv_: *mut GUnixCredentialsMessagePrivate,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GUnixCredentialsMessage"]
[::std::mem::size_of::<_GUnixCredentialsMessage>() - 40usize];
["Alignment of _GUnixCredentialsMessage"]
[::std::mem::align_of::<_GUnixCredentialsMessage>() - 8usize];
["Offset of field: _GUnixCredentialsMessage::parent_instance"]
[::std::mem::offset_of!(_GUnixCredentialsMessage, parent_instance) - 0usize];
["Offset of field: _GUnixCredentialsMessage::priv_"]
[::std::mem::offset_of!(_GUnixCredentialsMessage, priv_) - 32usize];
};
unsafe extern "C" {
pub fn g_unix_credentials_message_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_unix_credentials_message_new() -> *mut GSocketControlMessage;
}
unsafe extern "C" {
pub fn g_unix_credentials_message_new_with_credentials(
credentials: *mut GCredentials,
) -> *mut GSocketControlMessage;
}
unsafe extern "C" {
pub fn g_unix_credentials_message_get_credentials(
message: *mut GUnixCredentialsMessage,
) -> *mut GCredentials;
}
unsafe extern "C" {
pub fn g_unix_credentials_message_is_supported() -> gboolean;
}
pub type GUnixFDList_autoptr = *mut GUnixFDList;
pub type GUnixFDList_listautoptr = *mut GList;
pub type GUnixFDList_slistautoptr = *mut GSList;
pub type GUnixFDList_queueautoptr = *mut GQueue;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GUnixFDListPrivate {
_unused: [u8; 0],
}
pub type GUnixFDListPrivate = _GUnixFDListPrivate;
pub type GUnixFDListClass = _GUnixFDListClass;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GUnixFDListClass {
pub parent_class: GObjectClass,
pub _g_reserved1: ::std::option::Option<unsafe extern "C" fn()>,
pub _g_reserved2: ::std::option::Option<unsafe extern "C" fn()>,
pub _g_reserved3: ::std::option::Option<unsafe extern "C" fn()>,
pub _g_reserved4: ::std::option::Option<unsafe extern "C" fn()>,
pub _g_reserved5: ::std::option::Option<unsafe extern "C" fn()>,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GUnixFDListClass"][::std::mem::size_of::<_GUnixFDListClass>() - 176usize];
["Alignment of _GUnixFDListClass"][::std::mem::align_of::<_GUnixFDListClass>() - 8usize];
["Offset of field: _GUnixFDListClass::parent_class"]
[::std::mem::offset_of!(_GUnixFDListClass, parent_class) - 0usize];
["Offset of field: _GUnixFDListClass::_g_reserved1"]
[::std::mem::offset_of!(_GUnixFDListClass, _g_reserved1) - 136usize];
["Offset of field: _GUnixFDListClass::_g_reserved2"]
[::std::mem::offset_of!(_GUnixFDListClass, _g_reserved2) - 144usize];
["Offset of field: _GUnixFDListClass::_g_reserved3"]
[::std::mem::offset_of!(_GUnixFDListClass, _g_reserved3) - 152usize];
["Offset of field: _GUnixFDListClass::_g_reserved4"]
[::std::mem::offset_of!(_GUnixFDListClass, _g_reserved4) - 160usize];
["Offset of field: _GUnixFDListClass::_g_reserved5"]
[::std::mem::offset_of!(_GUnixFDListClass, _g_reserved5) - 168usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GUnixFDList {
pub parent_instance: GObject,
pub priv_: *mut GUnixFDListPrivate,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GUnixFDList"][::std::mem::size_of::<_GUnixFDList>() - 32usize];
["Alignment of _GUnixFDList"][::std::mem::align_of::<_GUnixFDList>() - 8usize];
["Offset of field: _GUnixFDList::parent_instance"]
[::std::mem::offset_of!(_GUnixFDList, parent_instance) - 0usize];
["Offset of field: _GUnixFDList::priv_"][::std::mem::offset_of!(_GUnixFDList, priv_) - 24usize];
};
unsafe extern "C" {
pub fn g_unix_fd_list_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_unix_fd_list_new() -> *mut GUnixFDList;
}
unsafe extern "C" {
pub fn g_unix_fd_list_new_from_array(fds: *const gint, n_fds: gint) -> *mut GUnixFDList;
}
unsafe extern "C" {
pub fn g_unix_fd_list_append(list: *mut GUnixFDList, fd: gint, error: *mut *mut GError)
-> gint;
}
unsafe extern "C" {
pub fn g_unix_fd_list_get_length(list: *mut GUnixFDList) -> gint;
}
unsafe extern "C" {
pub fn g_unix_fd_list_get(
list: *mut GUnixFDList,
index_: gint,
error: *mut *mut GError,
) -> gint;
}
unsafe extern "C" {
pub fn g_unix_fd_list_peek_fds(list: *mut GUnixFDList, length: *mut gint) -> *const gint;
}
unsafe extern "C" {
pub fn g_unix_fd_list_steal_fds(list: *mut GUnixFDList, length: *mut gint) -> *mut gint;
}
pub type GUnixSocketAddress = _GUnixSocketAddress;
pub type GUnixSocketAddressClass = _GUnixSocketAddressClass;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _GUnixSocketAddressPrivate {
_unused: [u8; 0],
}
pub type GUnixSocketAddressPrivate = _GUnixSocketAddressPrivate;
pub type GUnixSocketAddress_autoptr = *mut GUnixSocketAddress;
pub type GUnixSocketAddress_listautoptr = *mut GList;
pub type GUnixSocketAddress_slistautoptr = *mut GSList;
pub type GUnixSocketAddress_queueautoptr = *mut GQueue;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GUnixSocketAddress {
pub parent_instance: GSocketAddress,
pub priv_: *mut GUnixSocketAddressPrivate,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GUnixSocketAddress"][::std::mem::size_of::<_GUnixSocketAddress>() - 32usize];
["Alignment of _GUnixSocketAddress"][::std::mem::align_of::<_GUnixSocketAddress>() - 8usize];
["Offset of field: _GUnixSocketAddress::parent_instance"]
[::std::mem::offset_of!(_GUnixSocketAddress, parent_instance) - 0usize];
["Offset of field: _GUnixSocketAddress::priv_"]
[::std::mem::offset_of!(_GUnixSocketAddress, priv_) - 24usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GUnixSocketAddressClass {
pub parent_class: GSocketAddressClass,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GUnixSocketAddressClass"]
[::std::mem::size_of::<_GUnixSocketAddressClass>() - 160usize];
["Alignment of _GUnixSocketAddressClass"]
[::std::mem::align_of::<_GUnixSocketAddressClass>() - 8usize];
["Offset of field: _GUnixSocketAddressClass::parent_class"]
[::std::mem::offset_of!(_GUnixSocketAddressClass, parent_class) - 0usize];
};
unsafe extern "C" {
pub fn g_unix_socket_address_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_unix_socket_address_new(path: *const gchar) -> *mut GSocketAddress;
}
unsafe extern "C" {
pub fn g_unix_socket_address_new_abstract(
path: *const gchar,
path_len: gint,
) -> *mut GSocketAddress;
}
unsafe extern "C" {
pub fn g_unix_socket_address_new_with_type(
path: *const gchar,
path_len: gint,
type_: GUnixSocketAddressType,
) -> *mut GSocketAddress;
}
unsafe extern "C" {
pub fn g_unix_socket_address_get_path(
address: *mut GUnixSocketAddress,
) -> *const ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn g_unix_socket_address_get_path_len(address: *mut GUnixSocketAddress) -> gsize;
}
unsafe extern "C" {
pub fn g_unix_socket_address_get_address_type(
address: *mut GUnixSocketAddress,
) -> GUnixSocketAddressType;
}
unsafe extern "C" {
pub fn g_unix_socket_address_get_is_abstract(address: *mut GUnixSocketAddress) -> gboolean;
}
unsafe extern "C" {
pub fn g_unix_socket_address_abstract_names_supported() -> gboolean;
}
pub type GVfsFileLookupFunc = ::std::option::Option<
unsafe extern "C" fn(
vfs: *mut GVfs,
identifier: *const ::std::os::raw::c_char,
user_data: gpointer,
) -> *mut GFile,
>;
pub type GVfsClass = _GVfsClass;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GVfs {
pub parent_instance: GObject,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GVfs"][::std::mem::size_of::<_GVfs>() - 24usize];
["Alignment of _GVfs"][::std::mem::align_of::<_GVfs>() - 8usize];
["Offset of field: _GVfs::parent_instance"]
[::std::mem::offset_of!(_GVfs, parent_instance) - 0usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GVfsClass {
pub parent_class: GObjectClass,
pub is_active: ::std::option::Option<unsafe extern "C" fn(vfs: *mut GVfs) -> gboolean>,
pub get_file_for_path: ::std::option::Option<
unsafe extern "C" fn(vfs: *mut GVfs, path: *const ::std::os::raw::c_char) -> *mut GFile,
>,
pub get_file_for_uri: ::std::option::Option<
unsafe extern "C" fn(vfs: *mut GVfs, uri: *const ::std::os::raw::c_char) -> *mut GFile,
>,
pub get_supported_uri_schemes:
::std::option::Option<unsafe extern "C" fn(vfs: *mut GVfs) -> *const *const gchar>,
pub parse_name: ::std::option::Option<
unsafe extern "C" fn(
vfs: *mut GVfs,
parse_name: *const ::std::os::raw::c_char,
) -> *mut GFile,
>,
pub local_file_add_info: ::std::option::Option<
unsafe extern "C" fn(
vfs: *mut GVfs,
filename: *const ::std::os::raw::c_char,
device: guint64,
attribute_matcher: *mut GFileAttributeMatcher,
info: *mut GFileInfo,
cancellable: *mut GCancellable,
extra_data: *mut gpointer,
free_extra_data: *mut GDestroyNotify,
),
>,
pub add_writable_namespaces: ::std::option::Option<
unsafe extern "C" fn(vfs: *mut GVfs, list: *mut GFileAttributeInfoList),
>,
pub local_file_set_attributes: ::std::option::Option<
unsafe extern "C" fn(
vfs: *mut GVfs,
filename: *const ::std::os::raw::c_char,
info: *mut GFileInfo,
flags: GFileQueryInfoFlags,
cancellable: *mut GCancellable,
error: *mut *mut GError,
) -> gboolean,
>,
pub local_file_removed: ::std::option::Option<
unsafe extern "C" fn(vfs: *mut GVfs, filename: *const ::std::os::raw::c_char),
>,
pub local_file_moved: ::std::option::Option<
unsafe extern "C" fn(
vfs: *mut GVfs,
source: *const ::std::os::raw::c_char,
dest: *const ::std::os::raw::c_char,
),
>,
pub deserialize_icon: ::std::option::Option<
unsafe extern "C" fn(vfs: *mut GVfs, value: *mut GVariant) -> *mut GIcon,
>,
pub _g_reserved1: ::std::option::Option<unsafe extern "C" fn()>,
pub _g_reserved2: ::std::option::Option<unsafe extern "C" fn()>,
pub _g_reserved3: ::std::option::Option<unsafe extern "C" fn()>,
pub _g_reserved4: ::std::option::Option<unsafe extern "C" fn()>,
pub _g_reserved5: ::std::option::Option<unsafe extern "C" fn()>,
pub _g_reserved6: ::std::option::Option<unsafe extern "C" fn()>,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GVfsClass"][::std::mem::size_of::<_GVfsClass>() - 272usize];
["Alignment of _GVfsClass"][::std::mem::align_of::<_GVfsClass>() - 8usize];
["Offset of field: _GVfsClass::parent_class"]
[::std::mem::offset_of!(_GVfsClass, parent_class) - 0usize];
["Offset of field: _GVfsClass::is_active"]
[::std::mem::offset_of!(_GVfsClass, is_active) - 136usize];
["Offset of field: _GVfsClass::get_file_for_path"]
[::std::mem::offset_of!(_GVfsClass, get_file_for_path) - 144usize];
["Offset of field: _GVfsClass::get_file_for_uri"]
[::std::mem::offset_of!(_GVfsClass, get_file_for_uri) - 152usize];
["Offset of field: _GVfsClass::get_supported_uri_schemes"]
[::std::mem::offset_of!(_GVfsClass, get_supported_uri_schemes) - 160usize];
["Offset of field: _GVfsClass::parse_name"]
[::std::mem::offset_of!(_GVfsClass, parse_name) - 168usize];
["Offset of field: _GVfsClass::local_file_add_info"]
[::std::mem::offset_of!(_GVfsClass, local_file_add_info) - 176usize];
["Offset of field: _GVfsClass::add_writable_namespaces"]
[::std::mem::offset_of!(_GVfsClass, add_writable_namespaces) - 184usize];
["Offset of field: _GVfsClass::local_file_set_attributes"]
[::std::mem::offset_of!(_GVfsClass, local_file_set_attributes) - 192usize];
["Offset of field: _GVfsClass::local_file_removed"]
[::std::mem::offset_of!(_GVfsClass, local_file_removed) - 200usize];
["Offset of field: _GVfsClass::local_file_moved"]
[::std::mem::offset_of!(_GVfsClass, local_file_moved) - 208usize];
["Offset of field: _GVfsClass::deserialize_icon"]
[::std::mem::offset_of!(_GVfsClass, deserialize_icon) - 216usize];
["Offset of field: _GVfsClass::_g_reserved1"]
[::std::mem::offset_of!(_GVfsClass, _g_reserved1) - 224usize];
["Offset of field: _GVfsClass::_g_reserved2"]
[::std::mem::offset_of!(_GVfsClass, _g_reserved2) - 232usize];
["Offset of field: _GVfsClass::_g_reserved3"]
[::std::mem::offset_of!(_GVfsClass, _g_reserved3) - 240usize];
["Offset of field: _GVfsClass::_g_reserved4"]
[::std::mem::offset_of!(_GVfsClass, _g_reserved4) - 248usize];
["Offset of field: _GVfsClass::_g_reserved5"]
[::std::mem::offset_of!(_GVfsClass, _g_reserved5) - 256usize];
["Offset of field: _GVfsClass::_g_reserved6"]
[::std::mem::offset_of!(_GVfsClass, _g_reserved6) - 264usize];
};
unsafe extern "C" {
pub fn g_vfs_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_vfs_is_active(vfs: *mut GVfs) -> gboolean;
}
unsafe extern "C" {
pub fn g_vfs_get_file_for_path(
vfs: *mut GVfs,
path: *const ::std::os::raw::c_char,
) -> *mut GFile;
}
unsafe extern "C" {
pub fn g_vfs_get_file_for_uri(vfs: *mut GVfs, uri: *const ::std::os::raw::c_char)
-> *mut GFile;
}
unsafe extern "C" {
pub fn g_vfs_get_supported_uri_schemes(vfs: *mut GVfs) -> *const *const gchar;
}
unsafe extern "C" {
pub fn g_vfs_parse_name(
vfs: *mut GVfs,
parse_name: *const ::std::os::raw::c_char,
) -> *mut GFile;
}
unsafe extern "C" {
pub fn g_vfs_get_default() -> *mut GVfs;
}
unsafe extern "C" {
pub fn g_vfs_get_local() -> *mut GVfs;
}
unsafe extern "C" {
pub fn g_vfs_register_uri_scheme(
vfs: *mut GVfs,
scheme: *const ::std::os::raw::c_char,
uri_func: GVfsFileLookupFunc,
uri_data: gpointer,
uri_destroy: GDestroyNotify,
parse_name_func: GVfsFileLookupFunc,
parse_name_data: gpointer,
parse_name_destroy: GDestroyNotify,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_vfs_unregister_uri_scheme(
vfs: *mut GVfs,
scheme: *const ::std::os::raw::c_char,
) -> gboolean;
}
pub type GVolumeIface = _GVolumeIface;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GVolumeIface {
pub g_iface: GTypeInterface,
pub changed: ::std::option::Option<unsafe extern "C" fn(volume: *mut GVolume)>,
pub removed: ::std::option::Option<unsafe extern "C" fn(volume: *mut GVolume)>,
pub get_name: ::std::option::Option<
unsafe extern "C" fn(volume: *mut GVolume) -> *mut ::std::os::raw::c_char,
>,
pub get_icon: ::std::option::Option<unsafe extern "C" fn(volume: *mut GVolume) -> *mut GIcon>,
pub get_uuid: ::std::option::Option<
unsafe extern "C" fn(volume: *mut GVolume) -> *mut ::std::os::raw::c_char,
>,
pub get_drive: ::std::option::Option<unsafe extern "C" fn(volume: *mut GVolume) -> *mut GDrive>,
pub get_mount: ::std::option::Option<unsafe extern "C" fn(volume: *mut GVolume) -> *mut GMount>,
pub can_mount: ::std::option::Option<unsafe extern "C" fn(volume: *mut GVolume) -> gboolean>,
pub can_eject: ::std::option::Option<unsafe extern "C" fn(volume: *mut GVolume) -> gboolean>,
pub mount_fn: ::std::option::Option<
unsafe extern "C" fn(
volume: *mut GVolume,
flags: GMountMountFlags,
mount_operation: *mut GMountOperation,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
),
>,
pub mount_finish: ::std::option::Option<
unsafe extern "C" fn(
volume: *mut GVolume,
result: *mut GAsyncResult,
error: *mut *mut GError,
) -> gboolean,
>,
pub eject: ::std::option::Option<
unsafe extern "C" fn(
volume: *mut GVolume,
flags: GMountUnmountFlags,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
),
>,
pub eject_finish: ::std::option::Option<
unsafe extern "C" fn(
volume: *mut GVolume,
result: *mut GAsyncResult,
error: *mut *mut GError,
) -> gboolean,
>,
pub get_identifier: ::std::option::Option<
unsafe extern "C" fn(
volume: *mut GVolume,
kind: *const ::std::os::raw::c_char,
) -> *mut ::std::os::raw::c_char,
>,
pub enumerate_identifiers: ::std::option::Option<
unsafe extern "C" fn(volume: *mut GVolume) -> *mut *mut ::std::os::raw::c_char,
>,
pub should_automount:
::std::option::Option<unsafe extern "C" fn(volume: *mut GVolume) -> gboolean>,
pub get_activation_root:
::std::option::Option<unsafe extern "C" fn(volume: *mut GVolume) -> *mut GFile>,
pub eject_with_operation: ::std::option::Option<
unsafe extern "C" fn(
volume: *mut GVolume,
flags: GMountUnmountFlags,
mount_operation: *mut GMountOperation,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
),
>,
pub eject_with_operation_finish: ::std::option::Option<
unsafe extern "C" fn(
volume: *mut GVolume,
result: *mut GAsyncResult,
error: *mut *mut GError,
) -> gboolean,
>,
pub get_sort_key:
::std::option::Option<unsafe extern "C" fn(volume: *mut GVolume) -> *const gchar>,
pub get_symbolic_icon:
::std::option::Option<unsafe extern "C" fn(volume: *mut GVolume) -> *mut GIcon>,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GVolumeIface"][::std::mem::size_of::<_GVolumeIface>() - 184usize];
["Alignment of _GVolumeIface"][::std::mem::align_of::<_GVolumeIface>() - 8usize];
["Offset of field: _GVolumeIface::g_iface"]
[::std::mem::offset_of!(_GVolumeIface, g_iface) - 0usize];
["Offset of field: _GVolumeIface::changed"]
[::std::mem::offset_of!(_GVolumeIface, changed) - 16usize];
["Offset of field: _GVolumeIface::removed"]
[::std::mem::offset_of!(_GVolumeIface, removed) - 24usize];
["Offset of field: _GVolumeIface::get_name"]
[::std::mem::offset_of!(_GVolumeIface, get_name) - 32usize];
["Offset of field: _GVolumeIface::get_icon"]
[::std::mem::offset_of!(_GVolumeIface, get_icon) - 40usize];
["Offset of field: _GVolumeIface::get_uuid"]
[::std::mem::offset_of!(_GVolumeIface, get_uuid) - 48usize];
["Offset of field: _GVolumeIface::get_drive"]
[::std::mem::offset_of!(_GVolumeIface, get_drive) - 56usize];
["Offset of field: _GVolumeIface::get_mount"]
[::std::mem::offset_of!(_GVolumeIface, get_mount) - 64usize];
["Offset of field: _GVolumeIface::can_mount"]
[::std::mem::offset_of!(_GVolumeIface, can_mount) - 72usize];
["Offset of field: _GVolumeIface::can_eject"]
[::std::mem::offset_of!(_GVolumeIface, can_eject) - 80usize];
["Offset of field: _GVolumeIface::mount_fn"]
[::std::mem::offset_of!(_GVolumeIface, mount_fn) - 88usize];
["Offset of field: _GVolumeIface::mount_finish"]
[::std::mem::offset_of!(_GVolumeIface, mount_finish) - 96usize];
["Offset of field: _GVolumeIface::eject"]
[::std::mem::offset_of!(_GVolumeIface, eject) - 104usize];
["Offset of field: _GVolumeIface::eject_finish"]
[::std::mem::offset_of!(_GVolumeIface, eject_finish) - 112usize];
["Offset of field: _GVolumeIface::get_identifier"]
[::std::mem::offset_of!(_GVolumeIface, get_identifier) - 120usize];
["Offset of field: _GVolumeIface::enumerate_identifiers"]
[::std::mem::offset_of!(_GVolumeIface, enumerate_identifiers) - 128usize];
["Offset of field: _GVolumeIface::should_automount"]
[::std::mem::offset_of!(_GVolumeIface, should_automount) - 136usize];
["Offset of field: _GVolumeIface::get_activation_root"]
[::std::mem::offset_of!(_GVolumeIface, get_activation_root) - 144usize];
["Offset of field: _GVolumeIface::eject_with_operation"]
[::std::mem::offset_of!(_GVolumeIface, eject_with_operation) - 152usize];
["Offset of field: _GVolumeIface::eject_with_operation_finish"]
[::std::mem::offset_of!(_GVolumeIface, eject_with_operation_finish) - 160usize];
["Offset of field: _GVolumeIface::get_sort_key"]
[::std::mem::offset_of!(_GVolumeIface, get_sort_key) - 168usize];
["Offset of field: _GVolumeIface::get_symbolic_icon"]
[::std::mem::offset_of!(_GVolumeIface, get_symbolic_icon) - 176usize];
};
unsafe extern "C" {
pub fn g_volume_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_volume_get_name(volume: *mut GVolume) -> *mut ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn g_volume_get_icon(volume: *mut GVolume) -> *mut GIcon;
}
unsafe extern "C" {
pub fn g_volume_get_symbolic_icon(volume: *mut GVolume) -> *mut GIcon;
}
unsafe extern "C" {
pub fn g_volume_get_uuid(volume: *mut GVolume) -> *mut ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn g_volume_get_drive(volume: *mut GVolume) -> *mut GDrive;
}
unsafe extern "C" {
pub fn g_volume_get_mount(volume: *mut GVolume) -> *mut GMount;
}
unsafe extern "C" {
pub fn g_volume_can_mount(volume: *mut GVolume) -> gboolean;
}
unsafe extern "C" {
pub fn g_volume_can_eject(volume: *mut GVolume) -> gboolean;
}
unsafe extern "C" {
pub fn g_volume_should_automount(volume: *mut GVolume) -> gboolean;
}
unsafe extern "C" {
pub fn g_volume_mount(
volume: *mut GVolume,
flags: GMountMountFlags,
mount_operation: *mut GMountOperation,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
);
}
unsafe extern "C" {
pub fn g_volume_mount_finish(
volume: *mut GVolume,
result: *mut GAsyncResult,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_volume_eject(
volume: *mut GVolume,
flags: GMountUnmountFlags,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
);
}
unsafe extern "C" {
pub fn g_volume_eject_finish(
volume: *mut GVolume,
result: *mut GAsyncResult,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_volume_get_identifier(
volume: *mut GVolume,
kind: *const ::std::os::raw::c_char,
) -> *mut ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn g_volume_enumerate_identifiers(volume: *mut GVolume)
-> *mut *mut ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn g_volume_get_activation_root(volume: *mut GVolume) -> *mut GFile;
}
unsafe extern "C" {
pub fn g_volume_eject_with_operation(
volume: *mut GVolume,
flags: GMountUnmountFlags,
mount_operation: *mut GMountOperation,
cancellable: *mut GCancellable,
callback: GAsyncReadyCallback,
user_data: gpointer,
);
}
unsafe extern "C" {
pub fn g_volume_eject_with_operation_finish(
volume: *mut GVolume,
result: *mut GAsyncResult,
error: *mut *mut GError,
) -> gboolean;
}
unsafe extern "C" {
pub fn g_volume_get_sort_key(volume: *mut GVolume) -> *const gchar;
}
pub type GZlibCompressorClass = _GZlibCompressorClass;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GZlibCompressorClass {
pub parent_class: GObjectClass,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GZlibCompressorClass"][::std::mem::size_of::<_GZlibCompressorClass>() - 136usize];
["Alignment of _GZlibCompressorClass"]
[::std::mem::align_of::<_GZlibCompressorClass>() - 8usize];
["Offset of field: _GZlibCompressorClass::parent_class"]
[::std::mem::offset_of!(_GZlibCompressorClass, parent_class) - 0usize];
};
unsafe extern "C" {
pub fn g_zlib_compressor_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_zlib_compressor_new(
format: GZlibCompressorFormat,
level: ::std::os::raw::c_int,
) -> *mut GZlibCompressor;
}
unsafe extern "C" {
pub fn g_zlib_compressor_get_file_info(compressor: *mut GZlibCompressor) -> *mut GFileInfo;
}
unsafe extern "C" {
pub fn g_zlib_compressor_set_file_info(
compressor: *mut GZlibCompressor,
file_info: *mut GFileInfo,
);
}
unsafe extern "C" {
pub fn g_zlib_compressor_get_os(compressor: *mut GZlibCompressor) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn g_zlib_compressor_set_os(compressor: *mut GZlibCompressor, os: ::std::os::raw::c_int);
}
pub type GZlibDecompressorClass = _GZlibDecompressorClass;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _GZlibDecompressorClass {
pub parent_class: GObjectClass,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _GZlibDecompressorClass"]
[::std::mem::size_of::<_GZlibDecompressorClass>() - 136usize];
["Alignment of _GZlibDecompressorClass"]
[::std::mem::align_of::<_GZlibDecompressorClass>() - 8usize];
["Offset of field: _GZlibDecompressorClass::parent_class"]
[::std::mem::offset_of!(_GZlibDecompressorClass, parent_class) - 0usize];
};
unsafe extern "C" {
pub fn g_zlib_decompressor_get_type() -> GType;
}
unsafe extern "C" {
pub fn g_zlib_decompressor_new(format: GZlibCompressorFormat) -> *mut GZlibDecompressor;
}
unsafe extern "C" {
pub fn g_zlib_decompressor_get_file_info(
decompressor: *mut GZlibDecompressor,
) -> *mut GFileInfo;
}
pub type GAction_autoptr = *mut GAction;
pub type GAction_listautoptr = *mut GList;
pub type GAction_slistautoptr = *mut GSList;
pub type GAction_queueautoptr = *mut GQueue;
pub type GActionMap_autoptr = *mut GActionMap;
pub type GActionMap_listautoptr = *mut GList;
pub type GActionMap_slistautoptr = *mut GSList;
pub type GActionMap_queueautoptr = *mut GQueue;
pub type GAppInfo_autoptr = *mut GAppInfo;
pub type GAppInfo_listautoptr = *mut GList;
pub type GAppInfo_slistautoptr = *mut GSList;
pub type GAppInfo_queueautoptr = *mut GQueue;
pub type GAppLaunchContext_autoptr = *mut GAppLaunchContext;
pub type GAppLaunchContext_listautoptr = *mut GList;
pub type GAppLaunchContext_slistautoptr = *mut GSList;
pub type GAppLaunchContext_queueautoptr = *mut GQueue;
pub type GAppInfoMonitor_autoptr = *mut GAppInfoMonitor;
pub type GAppInfoMonitor_listautoptr = *mut GList;
pub type GAppInfoMonitor_slistautoptr = *mut GSList;
pub type GAppInfoMonitor_queueautoptr = *mut GQueue;
pub type GApplicationCommandLine_autoptr = *mut GApplicationCommandLine;
pub type GApplicationCommandLine_listautoptr = *mut GList;
pub type GApplicationCommandLine_slistautoptr = *mut GSList;
pub type GApplicationCommandLine_queueautoptr = *mut GQueue;
pub type GApplication_autoptr = *mut GApplication;
pub type GApplication_listautoptr = *mut GList;
pub type GApplication_slistautoptr = *mut GSList;
pub type GApplication_queueautoptr = *mut GQueue;
pub type GAsyncInitable_autoptr = *mut GAsyncInitable;
pub type GAsyncInitable_listautoptr = *mut GList;
pub type GAsyncInitable_slistautoptr = *mut GSList;
pub type GAsyncInitable_queueautoptr = *mut GQueue;
pub type GAsyncResult_autoptr = *mut GAsyncResult;
pub type GAsyncResult_listautoptr = *mut GList;
pub type GAsyncResult_slistautoptr = *mut GSList;
pub type GAsyncResult_queueautoptr = *mut GQueue;
pub type GBufferedInputStream_autoptr = *mut GBufferedInputStream;
pub type GBufferedInputStream_listautoptr = *mut GList;
pub type GBufferedInputStream_slistautoptr = *mut GSList;
pub type GBufferedInputStream_queueautoptr = *mut GQueue;
pub type GBufferedOutputStream_autoptr = *mut GBufferedOutputStream;
pub type GBufferedOutputStream_listautoptr = *mut GList;
pub type GBufferedOutputStream_slistautoptr = *mut GSList;
pub type GBufferedOutputStream_queueautoptr = *mut GQueue;
pub type GBytesIcon_autoptr = *mut GBytesIcon;
pub type GBytesIcon_listautoptr = *mut GList;
pub type GBytesIcon_slistautoptr = *mut GSList;
pub type GBytesIcon_queueautoptr = *mut GQueue;
pub type GCancellable_autoptr = *mut GCancellable;
pub type GCancellable_listautoptr = *mut GList;
pub type GCancellable_slistautoptr = *mut GSList;
pub type GCancellable_queueautoptr = *mut GQueue;
pub type GCharsetConverter_autoptr = *mut GCharsetConverter;
pub type GCharsetConverter_listautoptr = *mut GList;
pub type GCharsetConverter_slistautoptr = *mut GSList;
pub type GCharsetConverter_queueautoptr = *mut GQueue;
pub type GConverter_autoptr = *mut GConverter;
pub type GConverter_listautoptr = *mut GList;
pub type GConverter_slistautoptr = *mut GSList;
pub type GConverter_queueautoptr = *mut GQueue;
pub type GConverterInputStream_autoptr = *mut GConverterInputStream;
pub type GConverterInputStream_listautoptr = *mut GList;
pub type GConverterInputStream_slistautoptr = *mut GSList;
pub type GConverterInputStream_queueautoptr = *mut GQueue;
pub type GConverterOutputStream_autoptr = *mut GConverterOutputStream;
pub type GConverterOutputStream_listautoptr = *mut GList;
pub type GConverterOutputStream_slistautoptr = *mut GSList;
pub type GConverterOutputStream_queueautoptr = *mut GQueue;
pub type GCredentials_autoptr = *mut GCredentials;
pub type GCredentials_listautoptr = *mut GList;
pub type GCredentials_slistautoptr = *mut GSList;
pub type GCredentials_queueautoptr = *mut GQueue;
pub type GDatagramBased_autoptr = *mut GDatagramBased;
pub type GDatagramBased_listautoptr = *mut GList;
pub type GDatagramBased_slistautoptr = *mut GSList;
pub type GDatagramBased_queueautoptr = *mut GQueue;
pub type GDataInputStream_autoptr = *mut GDataInputStream;
pub type GDataInputStream_listautoptr = *mut GList;
pub type GDataInputStream_slistautoptr = *mut GSList;
pub type GDataInputStream_queueautoptr = *mut GQueue;
pub type GDataOutputStream_autoptr = *mut GDataOutputStream;
pub type GDataOutputStream_listautoptr = *mut GList;
pub type GDataOutputStream_slistautoptr = *mut GSList;
pub type GDataOutputStream_queueautoptr = *mut GQueue;
pub type GDBusActionGroup_autoptr = *mut GDBusActionGroup;
pub type GDBusActionGroup_listautoptr = *mut GList;
pub type GDBusActionGroup_slistautoptr = *mut GSList;
pub type GDBusActionGroup_queueautoptr = *mut GQueue;
pub type GDBusAuthObserver_autoptr = *mut GDBusAuthObserver;
pub type GDBusAuthObserver_listautoptr = *mut GList;
pub type GDBusAuthObserver_slistautoptr = *mut GSList;
pub type GDBusAuthObserver_queueautoptr = *mut GQueue;
pub type GDBusConnection_autoptr = *mut GDBusConnection;
pub type GDBusConnection_listautoptr = *mut GList;
pub type GDBusConnection_slistautoptr = *mut GSList;
pub type GDBusConnection_queueautoptr = *mut GQueue;
pub type GDBusInterface_autoptr = *mut GDBusInterface;
pub type GDBusInterface_listautoptr = *mut GList;
pub type GDBusInterface_slistautoptr = *mut GSList;
pub type GDBusInterface_queueautoptr = *mut GQueue;
pub type GDBusInterfaceSkeleton_autoptr = *mut GDBusInterfaceSkeleton;
pub type GDBusInterfaceSkeleton_listautoptr = *mut GList;
pub type GDBusInterfaceSkeleton_slistautoptr = *mut GSList;
pub type GDBusInterfaceSkeleton_queueautoptr = *mut GQueue;
pub type GDBusMenuModel_autoptr = *mut GDBusMenuModel;
pub type GDBusMenuModel_listautoptr = *mut GList;
pub type GDBusMenuModel_slistautoptr = *mut GSList;
pub type GDBusMenuModel_queueautoptr = *mut GQueue;
pub type GDBusMessage_autoptr = *mut GDBusMessage;
pub type GDBusMessage_listautoptr = *mut GList;
pub type GDBusMessage_slistautoptr = *mut GSList;
pub type GDBusMessage_queueautoptr = *mut GQueue;
pub type GDBusMethodInvocation_autoptr = *mut GDBusMethodInvocation;
pub type GDBusMethodInvocation_listautoptr = *mut GList;
pub type GDBusMethodInvocation_slistautoptr = *mut GSList;
pub type GDBusMethodInvocation_queueautoptr = *mut GQueue;
pub type GDBusNodeInfo_autoptr = *mut GDBusNodeInfo;
pub type GDBusNodeInfo_listautoptr = *mut GList;
pub type GDBusNodeInfo_slistautoptr = *mut GSList;
pub type GDBusNodeInfo_queueautoptr = *mut GQueue;
pub type GDBusObject_autoptr = *mut GDBusObject;
pub type GDBusObject_listautoptr = *mut GList;
pub type GDBusObject_slistautoptr = *mut GSList;
pub type GDBusObject_queueautoptr = *mut GQueue;
pub type GDBusObjectManagerClient_autoptr = *mut GDBusObjectManagerClient;
pub type GDBusObjectManagerClient_listautoptr = *mut GList;
pub type GDBusObjectManagerClient_slistautoptr = *mut GSList;
pub type GDBusObjectManagerClient_queueautoptr = *mut GQueue;
pub type GDBusObjectManager_autoptr = *mut GDBusObjectManager;
pub type GDBusObjectManager_listautoptr = *mut GList;
pub type GDBusObjectManager_slistautoptr = *mut GSList;
pub type GDBusObjectManager_queueautoptr = *mut GQueue;
pub type GDBusObjectManagerServer_autoptr = *mut GDBusObjectManagerServer;
pub type GDBusObjectManagerServer_listautoptr = *mut GList;
pub type GDBusObjectManagerServer_slistautoptr = *mut GSList;
pub type GDBusObjectManagerServer_queueautoptr = *mut GQueue;
pub type GDBusObjectProxy_autoptr = *mut GDBusObjectProxy;
pub type GDBusObjectProxy_listautoptr = *mut GList;
pub type GDBusObjectProxy_slistautoptr = *mut GSList;
pub type GDBusObjectProxy_queueautoptr = *mut GQueue;
pub type GDBusObjectSkeleton_autoptr = *mut GDBusObjectSkeleton;
pub type GDBusObjectSkeleton_listautoptr = *mut GList;
pub type GDBusObjectSkeleton_slistautoptr = *mut GSList;
pub type GDBusObjectSkeleton_queueautoptr = *mut GQueue;
pub type GDBusProxy_autoptr = *mut GDBusProxy;
pub type GDBusProxy_listautoptr = *mut GList;
pub type GDBusProxy_slistautoptr = *mut GSList;
pub type GDBusProxy_queueautoptr = *mut GQueue;
pub type GDBusServer_autoptr = *mut GDBusServer;
pub type GDBusServer_listautoptr = *mut GList;
pub type GDBusServer_slistautoptr = *mut GSList;
pub type GDBusServer_queueautoptr = *mut GQueue;
pub type GDrive_autoptr = *mut GDrive;
pub type GDrive_listautoptr = *mut GList;
pub type GDrive_slistautoptr = *mut GSList;
pub type GDrive_queueautoptr = *mut GQueue;
pub type GEmblemedIcon_autoptr = *mut GEmblemedIcon;
pub type GEmblemedIcon_listautoptr = *mut GList;
pub type GEmblemedIcon_slistautoptr = *mut GSList;
pub type GEmblemedIcon_queueautoptr = *mut GQueue;
pub type GEmblem_autoptr = *mut GEmblem;
pub type GEmblem_listautoptr = *mut GList;
pub type GEmblem_slistautoptr = *mut GSList;
pub type GEmblem_queueautoptr = *mut GQueue;
pub type GFileEnumerator_autoptr = *mut GFileEnumerator;
pub type GFileEnumerator_listautoptr = *mut GList;
pub type GFileEnumerator_slistautoptr = *mut GSList;
pub type GFileEnumerator_queueautoptr = *mut GQueue;
pub type GFile_autoptr = *mut GFile;
pub type GFile_listautoptr = *mut GList;
pub type GFile_slistautoptr = *mut GSList;
pub type GFile_queueautoptr = *mut GQueue;
pub type GFileAttributeInfoList_autoptr = *mut GFileAttributeInfoList;
pub type GFileAttributeInfoList_listautoptr = *mut GList;
pub type GFileAttributeInfoList_slistautoptr = *mut GSList;
pub type GFileAttributeInfoList_queueautoptr = *mut GQueue;
pub type GFileIcon_autoptr = *mut GFileIcon;
pub type GFileIcon_listautoptr = *mut GList;
pub type GFileIcon_slistautoptr = *mut GSList;
pub type GFileIcon_queueautoptr = *mut GQueue;
pub type GFileInfo_autoptr = *mut GFileInfo;
pub type GFileInfo_listautoptr = *mut GList;
pub type GFileInfo_slistautoptr = *mut GSList;
pub type GFileInfo_queueautoptr = *mut GQueue;
pub type GFileInputStream_autoptr = *mut GFileInputStream;
pub type GFileInputStream_listautoptr = *mut GList;
pub type GFileInputStream_slistautoptr = *mut GSList;
pub type GFileInputStream_queueautoptr = *mut GQueue;
pub type GFileIOStream_autoptr = *mut GFileIOStream;
pub type GFileIOStream_listautoptr = *mut GList;
pub type GFileIOStream_slistautoptr = *mut GSList;
pub type GFileIOStream_queueautoptr = *mut GQueue;
pub type GFileMonitor_autoptr = *mut GFileMonitor;
pub type GFileMonitor_listautoptr = *mut GList;
pub type GFileMonitor_slistautoptr = *mut GSList;
pub type GFileMonitor_queueautoptr = *mut GQueue;
pub type GFilenameCompleter_autoptr = *mut GFilenameCompleter;
pub type GFilenameCompleter_listautoptr = *mut GList;
pub type GFilenameCompleter_slistautoptr = *mut GSList;
pub type GFilenameCompleter_queueautoptr = *mut GQueue;
pub type GFileOutputStream_autoptr = *mut GFileOutputStream;
pub type GFileOutputStream_listautoptr = *mut GList;
pub type GFileOutputStream_slistautoptr = *mut GSList;
pub type GFileOutputStream_queueautoptr = *mut GQueue;
pub type GFilterInputStream_autoptr = *mut GFilterInputStream;
pub type GFilterInputStream_listautoptr = *mut GList;
pub type GFilterInputStream_slistautoptr = *mut GSList;
pub type GFilterInputStream_queueautoptr = *mut GQueue;
pub type GFilterOutputStream_autoptr = *mut GFilterOutputStream;
pub type GFilterOutputStream_listautoptr = *mut GList;
pub type GFilterOutputStream_slistautoptr = *mut GSList;
pub type GFilterOutputStream_queueautoptr = *mut GQueue;
pub type GIcon_autoptr = *mut GIcon;
pub type GIcon_listautoptr = *mut GList;
pub type GIcon_slistautoptr = *mut GSList;
pub type GIcon_queueautoptr = *mut GQueue;
pub type GInetAddress_autoptr = *mut GInetAddress;
pub type GInetAddress_listautoptr = *mut GList;
pub type GInetAddress_slistautoptr = *mut GSList;
pub type GInetAddress_queueautoptr = *mut GQueue;
pub type GInetAddressMask_autoptr = *mut GInetAddressMask;
pub type GInetAddressMask_listautoptr = *mut GList;
pub type GInetAddressMask_slistautoptr = *mut GSList;
pub type GInetAddressMask_queueautoptr = *mut GQueue;
pub type GInetSocketAddress_autoptr = *mut GInetSocketAddress;
pub type GInetSocketAddress_listautoptr = *mut GList;
pub type GInetSocketAddress_slistautoptr = *mut GSList;
pub type GInetSocketAddress_queueautoptr = *mut GQueue;
pub type GInitable_autoptr = *mut GInitable;
pub type GInitable_listautoptr = *mut GList;
pub type GInitable_slistautoptr = *mut GSList;
pub type GInitable_queueautoptr = *mut GQueue;
pub type GInputStream_autoptr = *mut GInputStream;
pub type GInputStream_listautoptr = *mut GList;
pub type GInputStream_slistautoptr = *mut GSList;
pub type GInputStream_queueautoptr = *mut GQueue;
pub type GIOModule_autoptr = *mut GIOModule;
pub type GIOModule_listautoptr = *mut GList;
pub type GIOModule_slistautoptr = *mut GSList;
pub type GIOModule_queueautoptr = *mut GQueue;
pub type GIOStream_autoptr = *mut GIOStream;
pub type GIOStream_listautoptr = *mut GList;
pub type GIOStream_slistautoptr = *mut GSList;
pub type GIOStream_queueautoptr = *mut GQueue;
pub type GLoadableIcon_autoptr = *mut GLoadableIcon;
pub type GLoadableIcon_listautoptr = *mut GList;
pub type GLoadableIcon_slistautoptr = *mut GSList;
pub type GLoadableIcon_queueautoptr = *mut GQueue;
pub type GMemoryInputStream_autoptr = *mut GMemoryInputStream;
pub type GMemoryInputStream_listautoptr = *mut GList;
pub type GMemoryInputStream_slistautoptr = *mut GSList;
pub type GMemoryInputStream_queueautoptr = *mut GQueue;
pub type GMemoryOutputStream_autoptr = *mut GMemoryOutputStream;
pub type GMemoryOutputStream_listautoptr = *mut GList;
pub type GMemoryOutputStream_slistautoptr = *mut GSList;
pub type GMemoryOutputStream_queueautoptr = *mut GQueue;
pub type GMenu_autoptr = *mut GMenu;
pub type GMenu_listautoptr = *mut GList;
pub type GMenu_slistautoptr = *mut GSList;
pub type GMenu_queueautoptr = *mut GQueue;
pub type GMenuItem_autoptr = *mut GMenuItem;
pub type GMenuItem_listautoptr = *mut GList;
pub type GMenuItem_slistautoptr = *mut GSList;
pub type GMenuItem_queueautoptr = *mut GQueue;
pub type GMenuModel_autoptr = *mut GMenuModel;
pub type GMenuModel_listautoptr = *mut GList;
pub type GMenuModel_slistautoptr = *mut GSList;
pub type GMenuModel_queueautoptr = *mut GQueue;
pub type GMenuAttributeIter_autoptr = *mut GMenuAttributeIter;
pub type GMenuAttributeIter_listautoptr = *mut GList;
pub type GMenuAttributeIter_slistautoptr = *mut GSList;
pub type GMenuAttributeIter_queueautoptr = *mut GQueue;
pub type GMenuLinkIter_autoptr = *mut GMenuLinkIter;
pub type GMenuLinkIter_listautoptr = *mut GList;
pub type GMenuLinkIter_slistautoptr = *mut GSList;
pub type GMenuLinkIter_queueautoptr = *mut GQueue;
pub type GMount_autoptr = *mut GMount;
pub type GMount_listautoptr = *mut GList;
pub type GMount_slistautoptr = *mut GSList;
pub type GMount_queueautoptr = *mut GQueue;
pub type GMountOperation_autoptr = *mut GMountOperation;
pub type GMountOperation_listautoptr = *mut GList;
pub type GMountOperation_slistautoptr = *mut GSList;
pub type GMountOperation_queueautoptr = *mut GQueue;
pub type GNativeVolumeMonitor_autoptr = *mut GNativeVolumeMonitor;
pub type GNativeVolumeMonitor_listautoptr = *mut GList;
pub type GNativeVolumeMonitor_slistautoptr = *mut GSList;
pub type GNativeVolumeMonitor_queueautoptr = *mut GQueue;
pub type GNetworkAddress_autoptr = *mut GNetworkAddress;
pub type GNetworkAddress_listautoptr = *mut GList;
pub type GNetworkAddress_slistautoptr = *mut GSList;
pub type GNetworkAddress_queueautoptr = *mut GQueue;
pub type GNetworkMonitor_autoptr = *mut GNetworkMonitor;
pub type GNetworkMonitor_listautoptr = *mut GList;
pub type GNetworkMonitor_slistautoptr = *mut GSList;
pub type GNetworkMonitor_queueautoptr = *mut GQueue;
pub type GNetworkService_autoptr = *mut GNetworkService;
pub type GNetworkService_listautoptr = *mut GList;
pub type GNetworkService_slistautoptr = *mut GSList;
pub type GNetworkService_queueautoptr = *mut GQueue;
pub type GNotification_autoptr = *mut GNotification;
pub type GNotification_listautoptr = *mut GList;
pub type GNotification_slistautoptr = *mut GSList;
pub type GNotification_queueautoptr = *mut GQueue;
pub type GOutputStream_autoptr = *mut GOutputStream;
pub type GOutputStream_listautoptr = *mut GList;
pub type GOutputStream_slistautoptr = *mut GSList;
pub type GOutputStream_queueautoptr = *mut GQueue;
pub type GPermission_autoptr = *mut GPermission;
pub type GPermission_listautoptr = *mut GList;
pub type GPermission_slistautoptr = *mut GSList;
pub type GPermission_queueautoptr = *mut GQueue;
pub type GPollableInputStream_autoptr = *mut GPollableInputStream;
pub type GPollableInputStream_listautoptr = *mut GList;
pub type GPollableInputStream_slistautoptr = *mut GSList;
pub type GPollableInputStream_queueautoptr = *mut GQueue;
pub type GPollableOutputStream_autoptr = *mut GPollableOutputStream;
pub type GPollableOutputStream_listautoptr = *mut GList;
pub type GPollableOutputStream_slistautoptr = *mut GSList;
pub type GPollableOutputStream_queueautoptr = *mut GQueue;
pub type GPropertyAction_autoptr = *mut GPropertyAction;
pub type GPropertyAction_listautoptr = *mut GList;
pub type GPropertyAction_slistautoptr = *mut GSList;
pub type GPropertyAction_queueautoptr = *mut GQueue;
pub type GProxyAddressEnumerator_autoptr = *mut GProxyAddressEnumerator;
pub type GProxyAddressEnumerator_listautoptr = *mut GList;
pub type GProxyAddressEnumerator_slistautoptr = *mut GSList;
pub type GProxyAddressEnumerator_queueautoptr = *mut GQueue;
pub type GProxyAddress_autoptr = *mut GProxyAddress;
pub type GProxyAddress_listautoptr = *mut GList;
pub type GProxyAddress_slistautoptr = *mut GSList;
pub type GProxyAddress_queueautoptr = *mut GQueue;
pub type GProxy_autoptr = *mut GProxy;
pub type GProxy_listautoptr = *mut GList;
pub type GProxy_slistautoptr = *mut GSList;
pub type GProxy_queueautoptr = *mut GQueue;
pub type GProxyResolver_autoptr = *mut GProxyResolver;
pub type GProxyResolver_listautoptr = *mut GList;
pub type GProxyResolver_slistautoptr = *mut GSList;
pub type GProxyResolver_queueautoptr = *mut GQueue;
pub type GRemoteActionGroup_autoptr = *mut GRemoteActionGroup;
pub type GRemoteActionGroup_listautoptr = *mut GList;
pub type GRemoteActionGroup_slistautoptr = *mut GSList;
pub type GRemoteActionGroup_queueautoptr = *mut GQueue;
pub type GResolver_autoptr = *mut GResolver;
pub type GResolver_listautoptr = *mut GList;
pub type GResolver_slistautoptr = *mut GSList;
pub type GResolver_queueautoptr = *mut GQueue;
pub type GResource_autoptr = *mut GResource;
pub type GResource_listautoptr = *mut GList;
pub type GResource_slistautoptr = *mut GSList;
pub type GResource_queueautoptr = *mut GQueue;
pub type GSeekable_autoptr = *mut GSeekable;
pub type GSeekable_listautoptr = *mut GList;
pub type GSeekable_slistautoptr = *mut GSList;
pub type GSeekable_queueautoptr = *mut GQueue;
pub type GSettingsBackend_autoptr = *mut GSettingsBackend;
pub type GSettingsBackend_listautoptr = *mut GList;
pub type GSettingsBackend_slistautoptr = *mut GSList;
pub type GSettingsBackend_queueautoptr = *mut GQueue;
pub type GSettingsSchema_autoptr = *mut GSettingsSchema;
pub type GSettingsSchema_listautoptr = *mut GList;
pub type GSettingsSchema_slistautoptr = *mut GSList;
pub type GSettingsSchema_queueautoptr = *mut GQueue;
pub type GSettingsSchemaKey_autoptr = *mut GSettingsSchemaKey;
pub type GSettingsSchemaKey_listautoptr = *mut GList;
pub type GSettingsSchemaKey_slistautoptr = *mut GSList;
pub type GSettingsSchemaKey_queueautoptr = *mut GQueue;
pub type GSettingsSchemaSource_autoptr = *mut GSettingsSchemaSource;
pub type GSettingsSchemaSource_listautoptr = *mut GList;
pub type GSettingsSchemaSource_slistautoptr = *mut GSList;
pub type GSettingsSchemaSource_queueautoptr = *mut GQueue;
pub type GSettings_autoptr = *mut GSettings;
pub type GSettings_listautoptr = *mut GList;
pub type GSettings_slistautoptr = *mut GSList;
pub type GSettings_queueautoptr = *mut GQueue;
pub type GSimpleActionGroup_autoptr = *mut GSimpleActionGroup;
pub type GSimpleActionGroup_listautoptr = *mut GList;
pub type GSimpleActionGroup_slistautoptr = *mut GSList;
pub type GSimpleActionGroup_queueautoptr = *mut GQueue;
pub type GSimpleAction_autoptr = *mut GSimpleAction;
pub type GSimpleAction_listautoptr = *mut GList;
pub type GSimpleAction_slistautoptr = *mut GSList;
pub type GSimpleAction_queueautoptr = *mut GQueue;
pub type GSimpleAsyncResult_autoptr = *mut GSimpleAsyncResult;
pub type GSimpleAsyncResult_listautoptr = *mut GList;
pub type GSimpleAsyncResult_slistautoptr = *mut GSList;
pub type GSimpleAsyncResult_queueautoptr = *mut GQueue;
pub type GSimplePermission_autoptr = *mut GSimplePermission;
pub type GSimplePermission_listautoptr = *mut GList;
pub type GSimplePermission_slistautoptr = *mut GSList;
pub type GSimplePermission_queueautoptr = *mut GQueue;
pub type GSimpleProxyResolver_autoptr = *mut GSimpleProxyResolver;
pub type GSimpleProxyResolver_listautoptr = *mut GList;
pub type GSimpleProxyResolver_slistautoptr = *mut GSList;
pub type GSimpleProxyResolver_queueautoptr = *mut GQueue;
pub type GSocketAddressEnumerator_autoptr = *mut GSocketAddressEnumerator;
pub type GSocketAddressEnumerator_listautoptr = *mut GList;
pub type GSocketAddressEnumerator_slistautoptr = *mut GSList;
pub type GSocketAddressEnumerator_queueautoptr = *mut GQueue;
pub type GSocketAddress_autoptr = *mut GSocketAddress;
pub type GSocketAddress_listautoptr = *mut GList;
pub type GSocketAddress_slistautoptr = *mut GSList;
pub type GSocketAddress_queueautoptr = *mut GQueue;
pub type GSocketClient_autoptr = *mut GSocketClient;
pub type GSocketClient_listautoptr = *mut GList;
pub type GSocketClient_slistautoptr = *mut GSList;
pub type GSocketClient_queueautoptr = *mut GQueue;
pub type GSocketConnectable_autoptr = *mut GSocketConnectable;
pub type GSocketConnectable_listautoptr = *mut GList;
pub type GSocketConnectable_slistautoptr = *mut GSList;
pub type GSocketConnectable_queueautoptr = *mut GQueue;
pub type GSocketConnection_autoptr = *mut GSocketConnection;
pub type GSocketConnection_listautoptr = *mut GList;
pub type GSocketConnection_slistautoptr = *mut GSList;
pub type GSocketConnection_queueautoptr = *mut GQueue;
pub type GSocketControlMessage_autoptr = *mut GSocketControlMessage;
pub type GSocketControlMessage_listautoptr = *mut GList;
pub type GSocketControlMessage_slistautoptr = *mut GSList;
pub type GSocketControlMessage_queueautoptr = *mut GQueue;
pub type GSocket_autoptr = *mut GSocket;
pub type GSocket_listautoptr = *mut GList;
pub type GSocket_slistautoptr = *mut GSList;
pub type GSocket_queueautoptr = *mut GQueue;
pub type GSocketListener_autoptr = *mut GSocketListener;
pub type GSocketListener_listautoptr = *mut GList;
pub type GSocketListener_slistautoptr = *mut GSList;
pub type GSocketListener_queueautoptr = *mut GQueue;
pub type GSocketService_autoptr = *mut GSocketService;
pub type GSocketService_listautoptr = *mut GList;
pub type GSocketService_slistautoptr = *mut GSList;
pub type GSocketService_queueautoptr = *mut GQueue;
pub type GSubprocess_autoptr = *mut GSubprocess;
pub type GSubprocess_listautoptr = *mut GList;
pub type GSubprocess_slistautoptr = *mut GSList;
pub type GSubprocess_queueautoptr = *mut GQueue;
pub type GSubprocessLauncher_autoptr = *mut GSubprocessLauncher;
pub type GSubprocessLauncher_listautoptr = *mut GList;
pub type GSubprocessLauncher_slistautoptr = *mut GSList;
pub type GSubprocessLauncher_queueautoptr = *mut GQueue;
pub type GTask_autoptr = *mut GTask;
pub type GTask_listautoptr = *mut GList;
pub type GTask_slistautoptr = *mut GSList;
pub type GTask_queueautoptr = *mut GQueue;
pub type GTcpConnection_autoptr = *mut GTcpConnection;
pub type GTcpConnection_listautoptr = *mut GList;
pub type GTcpConnection_slistautoptr = *mut GSList;
pub type GTcpConnection_queueautoptr = *mut GQueue;
pub type GTcpWrapperConnection_autoptr = *mut GTcpWrapperConnection;
pub type GTcpWrapperConnection_listautoptr = *mut GList;
pub type GTcpWrapperConnection_slistautoptr = *mut GSList;
pub type GTcpWrapperConnection_queueautoptr = *mut GQueue;
pub type GTestDBus_autoptr = *mut GTestDBus;
pub type GTestDBus_listautoptr = *mut GList;
pub type GTestDBus_slistautoptr = *mut GSList;
pub type GTestDBus_queueautoptr = *mut GQueue;
pub type GThemedIcon_autoptr = *mut GThemedIcon;
pub type GThemedIcon_listautoptr = *mut GList;
pub type GThemedIcon_slistautoptr = *mut GSList;
pub type GThemedIcon_queueautoptr = *mut GQueue;
pub type GThreadedSocketService_autoptr = *mut GThreadedSocketService;
pub type GThreadedSocketService_listautoptr = *mut GList;
pub type GThreadedSocketService_slistautoptr = *mut GSList;
pub type GThreadedSocketService_queueautoptr = *mut GQueue;
pub type GTlsBackend_autoptr = *mut GTlsBackend;
pub type GTlsBackend_listautoptr = *mut GList;
pub type GTlsBackend_slistautoptr = *mut GSList;
pub type GTlsBackend_queueautoptr = *mut GQueue;
pub type GTlsCertificate_autoptr = *mut GTlsCertificate;
pub type GTlsCertificate_listautoptr = *mut GList;
pub type GTlsCertificate_slistautoptr = *mut GSList;
pub type GTlsCertificate_queueautoptr = *mut GQueue;
pub type GTlsClientConnection_autoptr = *mut GTlsClientConnection;
pub type GTlsClientConnection_listautoptr = *mut GList;
pub type GTlsClientConnection_slistautoptr = *mut GSList;
pub type GTlsClientConnection_queueautoptr = *mut GQueue;
pub type GTlsConnection_autoptr = *mut GTlsConnection;
pub type GTlsConnection_listautoptr = *mut GList;
pub type GTlsConnection_slistautoptr = *mut GSList;
pub type GTlsConnection_queueautoptr = *mut GQueue;
pub type GTlsDatabase_autoptr = *mut GTlsDatabase;
pub type GTlsDatabase_listautoptr = *mut GList;
pub type GTlsDatabase_slistautoptr = *mut GSList;
pub type GTlsDatabase_queueautoptr = *mut GQueue;
pub type GTlsFileDatabase_autoptr = *mut GTlsFileDatabase;
pub type GTlsFileDatabase_listautoptr = *mut GList;
pub type GTlsFileDatabase_slistautoptr = *mut GSList;
pub type GTlsFileDatabase_queueautoptr = *mut GQueue;
pub type GTlsInteraction_autoptr = *mut GTlsInteraction;
pub type GTlsInteraction_listautoptr = *mut GList;
pub type GTlsInteraction_slistautoptr = *mut GSList;
pub type GTlsInteraction_queueautoptr = *mut GQueue;
pub type GTlsPassword_autoptr = *mut GTlsPassword;
pub type GTlsPassword_listautoptr = *mut GList;
pub type GTlsPassword_slistautoptr = *mut GSList;
pub type GTlsPassword_queueautoptr = *mut GQueue;
pub type GTlsServerConnection_autoptr = *mut GTlsServerConnection;
pub type GTlsServerConnection_listautoptr = *mut GList;
pub type GTlsServerConnection_slistautoptr = *mut GSList;
pub type GTlsServerConnection_queueautoptr = *mut GQueue;
pub type GVfs_autoptr = *mut GVfs;
pub type GVfs_listautoptr = *mut GList;
pub type GVfs_slistautoptr = *mut GSList;
pub type GVfs_queueautoptr = *mut GQueue;
pub type GVolume_autoptr = *mut GVolume;
pub type GVolume_listautoptr = *mut GList;
pub type GVolume_slistautoptr = *mut GSList;
pub type GVolume_queueautoptr = *mut GQueue;
pub type GVolumeMonitor_autoptr = *mut GVolumeMonitor;
pub type GVolumeMonitor_listautoptr = *mut GList;
pub type GVolumeMonitor_slistautoptr = *mut GSList;
pub type GVolumeMonitor_queueautoptr = *mut GQueue;
pub type GZlibCompressor_autoptr = *mut GZlibCompressor;
pub type GZlibCompressor_listautoptr = *mut GList;
pub type GZlibCompressor_slistautoptr = *mut GSList;
pub type GZlibCompressor_queueautoptr = *mut GQueue;
pub type GZlibDecompressor_autoptr = *mut GZlibDecompressor;
pub type GZlibDecompressor_listautoptr = *mut GList;
pub type GZlibDecompressor_slistautoptr = *mut GSList;
pub type GZlibDecompressor_queueautoptr = *mut GQueue;
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,
>;
pub const VipsPrecision_VIPS_PRECISION_INTEGER: VipsPrecision = 0;
pub const VipsPrecision_VIPS_PRECISION_FLOAT: VipsPrecision = 1;
pub const VipsPrecision_VIPS_PRECISION_APPROXIMATE: VipsPrecision = 2;
pub const VipsPrecision_VIPS_PRECISION_LAST: VipsPrecision = 3;
pub type VipsPrecision = ::std::os::raw::c_uint;
unsafe extern "C" {
pub fn vips_path_filename7(path: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn vips_path_mode7(path: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char;
}
pub type VipsImage = _VipsImage;
pub type VipsRegion = _VipsRegion;
pub type VipsBuf = _VipsBuf;
pub type VipsSource = _VipsSource;
pub type VipsTarget = _VipsTarget;
pub type VipsInterpolate = _VipsInterpolate;
pub type VipsOperation = _VipsOperation;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
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,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _VipsBuf"][::std::mem::size_of::<_VipsBuf>() - 32usize];
["Alignment of _VipsBuf"][::std::mem::align_of::<_VipsBuf>() - 8usize];
["Offset of field: _VipsBuf::base"][::std::mem::offset_of!(_VipsBuf, base) - 0usize];
["Offset of field: _VipsBuf::mx"][::std::mem::offset_of!(_VipsBuf, mx) - 8usize];
["Offset of field: _VipsBuf::i"][::std::mem::offset_of!(_VipsBuf, i) - 12usize];
["Offset of field: _VipsBuf::full"][::std::mem::offset_of!(_VipsBuf, full) - 16usize];
["Offset of field: _VipsBuf::lasti"][::std::mem::offset_of!(_VipsBuf, lasti) - 20usize];
["Offset of field: _VipsBuf::dynamic"][::std::mem::offset_of!(_VipsBuf, dynamic) - 24usize];
};
unsafe extern "C" {
pub fn vips_buf_rewind(buf: *mut VipsBuf);
}
unsafe extern "C" {
pub fn vips_buf_destroy(buf: *mut VipsBuf);
}
unsafe extern "C" {
pub fn vips_buf_init(buf: *mut VipsBuf);
}
unsafe extern "C" {
pub fn vips_buf_set_static(
buf: *mut VipsBuf,
base: *mut ::std::os::raw::c_char,
mx: ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn vips_buf_set_dynamic(buf: *mut VipsBuf, mx: ::std::os::raw::c_int);
}
unsafe extern "C" {
pub fn vips_buf_init_static(
buf: *mut VipsBuf,
base: *mut ::std::os::raw::c_char,
mx: ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn vips_buf_init_dynamic(buf: *mut VipsBuf, mx: ::std::os::raw::c_int);
}
unsafe extern "C" {
pub fn vips_buf_appendns(
buf: *mut VipsBuf,
str_: *const ::std::os::raw::c_char,
sz: ::std::os::raw::c_int,
) -> gboolean;
}
unsafe extern "C" {
pub fn vips_buf_appends(buf: *mut VipsBuf, str_: *const ::std::os::raw::c_char) -> gboolean;
}
unsafe extern "C" {
pub fn vips_buf_appendf(buf: *mut VipsBuf, fmt: *const ::std::os::raw::c_char, ...)
-> gboolean;
}
unsafe extern "C" {
pub fn vips_buf_vappendf(
buf: *mut VipsBuf,
fmt: *const ::std::os::raw::c_char,
ap: va_list,
) -> gboolean;
}
unsafe extern "C" {
pub fn vips_buf_appendc(buf: *mut VipsBuf, ch: ::std::os::raw::c_char) -> gboolean;
}
unsafe extern "C" {
pub fn vips_buf_appendgv(buf: *mut VipsBuf, value: *mut GValue) -> gboolean;
}
unsafe extern "C" {
pub fn vips_buf_append_size(buf: *mut VipsBuf, n: size_t) -> gboolean;
}
unsafe extern "C" {
pub fn vips_buf_removec(buf: *mut VipsBuf, ch: ::std::os::raw::c_char) -> gboolean;
}
unsafe 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;
}
unsafe extern "C" {
pub fn vips_buf_is_empty(buf: *mut VipsBuf) -> gboolean;
}
unsafe extern "C" {
pub fn vips_buf_is_full(buf: *mut VipsBuf) -> gboolean;
}
unsafe extern "C" {
pub fn vips_buf_all(buf: *mut VipsBuf) -> *const ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn vips_buf_firstline(buf: *mut VipsBuf) -> *const ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn vips_buf_appendg(buf: *mut VipsBuf, g: f64) -> gboolean;
}
unsafe extern "C" {
pub fn vips_buf_appendd(buf: *mut VipsBuf, d: ::std::os::raw::c_int) -> gboolean;
}
unsafe extern "C" {
pub fn vips_buf_len(buf: *mut VipsBuf) -> ::std::os::raw::c_int;
}
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _VipsDbuf {
pub data: *mut ::std::os::raw::c_uchar,
pub allocated_size: size_t,
pub data_size: size_t,
pub write_point: size_t,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _VipsDbuf"][::std::mem::size_of::<_VipsDbuf>() - 32usize];
["Alignment of _VipsDbuf"][::std::mem::align_of::<_VipsDbuf>() - 8usize];
["Offset of field: _VipsDbuf::data"][::std::mem::offset_of!(_VipsDbuf, data) - 0usize];
["Offset of field: _VipsDbuf::allocated_size"]
[::std::mem::offset_of!(_VipsDbuf, allocated_size) - 8usize];
["Offset of field: _VipsDbuf::data_size"]
[::std::mem::offset_of!(_VipsDbuf, data_size) - 16usize];
["Offset of field: _VipsDbuf::write_point"]
[::std::mem::offset_of!(_VipsDbuf, write_point) - 24usize];
};
pub type VipsDbuf = _VipsDbuf;
unsafe extern "C" {
pub fn vips_dbuf_init(dbuf: *mut VipsDbuf);
}
unsafe extern "C" {
pub fn vips_dbuf_minimum_size(dbuf: *mut VipsDbuf, size: size_t) -> gboolean;
}
unsafe extern "C" {
pub fn vips_dbuf_allocate(dbuf: *mut VipsDbuf, size: size_t) -> gboolean;
}
unsafe extern "C" {
pub fn vips_dbuf_read(
dbuf: *mut VipsDbuf,
data: *mut ::std::os::raw::c_uchar,
size: size_t,
) -> size_t;
}
unsafe extern "C" {
pub fn vips_dbuf_get_write(
dbuf: *mut VipsDbuf,
size: *mut size_t,
) -> *mut ::std::os::raw::c_uchar;
}
unsafe extern "C" {
pub fn vips_dbuf_write(
dbuf: *mut VipsDbuf,
data: *const ::std::os::raw::c_uchar,
size: size_t,
) -> gboolean;
}
unsafe extern "C" {
pub fn vips_dbuf_writef(
dbuf: *mut VipsDbuf,
fmt: *const ::std::os::raw::c_char,
...
) -> gboolean;
}
unsafe extern "C" {
pub fn vips_dbuf_write_amp(
dbuf: *mut VipsDbuf,
str_: *const ::std::os::raw::c_char,
) -> gboolean;
}
unsafe extern "C" {
pub fn vips_dbuf_reset(dbuf: *mut VipsDbuf);
}
unsafe extern "C" {
pub fn vips_dbuf_destroy(dbuf: *mut VipsDbuf);
}
unsafe extern "C" {
pub fn vips_dbuf_seek(
dbuf: *mut VipsDbuf,
offset: off_t,
whence: ::std::os::raw::c_int,
) -> gboolean;
}
unsafe extern "C" {
pub fn vips_dbuf_truncate(dbuf: *mut VipsDbuf);
}
unsafe extern "C" {
pub fn vips_dbuf_tell(dbuf: *mut VipsDbuf) -> off_t;
}
unsafe extern "C" {
pub fn vips_dbuf_string(dbuf: *mut VipsDbuf, size: *mut size_t)
-> *mut ::std::os::raw::c_uchar;
}
unsafe extern "C" {
pub fn vips_dbuf_steal(dbuf: *mut VipsDbuf, size: *mut size_t) -> *mut ::std::os::raw::c_uchar;
}
pub type float_t = f32;
pub type double_t = f64;
unsafe extern "C" {
pub fn __fpclassify(arg1: f64) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn __fpclassifyf(arg1: f32) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn __fpclassifyl(arg1: u128) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn __signbit(arg1: f64) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn __signbitf(arg1: f32) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn __signbitl(arg1: u128) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn acos(arg1: f64) -> f64;
}
unsafe extern "C" {
pub fn acosf(arg1: f32) -> f32;
}
unsafe extern "C" {
pub fn acosl(arg1: u128) -> u128;
}
unsafe extern "C" {
pub fn acosh(arg1: f64) -> f64;
}
unsafe extern "C" {
pub fn acoshf(arg1: f32) -> f32;
}
unsafe extern "C" {
pub fn acoshl(arg1: u128) -> u128;
}
unsafe extern "C" {
pub fn asin(arg1: f64) -> f64;
}
unsafe extern "C" {
pub fn asinf(arg1: f32) -> f32;
}
unsafe extern "C" {
pub fn asinl(arg1: u128) -> u128;
}
unsafe extern "C" {
pub fn asinh(arg1: f64) -> f64;
}
unsafe extern "C" {
pub fn asinhf(arg1: f32) -> f32;
}
unsafe extern "C" {
pub fn asinhl(arg1: u128) -> u128;
}
unsafe extern "C" {
pub fn atan(arg1: f64) -> f64;
}
unsafe extern "C" {
pub fn atanf(arg1: f32) -> f32;
}
unsafe extern "C" {
pub fn atanl(arg1: u128) -> u128;
}
unsafe extern "C" {
pub fn atan2(arg1: f64, arg2: f64) -> f64;
}
unsafe extern "C" {
pub fn atan2f(arg1: f32, arg2: f32) -> f32;
}
unsafe extern "C" {
pub fn atan2l(arg1: u128, arg2: u128) -> u128;
}
unsafe extern "C" {
pub fn atanh(arg1: f64) -> f64;
}
unsafe extern "C" {
pub fn atanhf(arg1: f32) -> f32;
}
unsafe extern "C" {
pub fn atanhl(arg1: u128) -> u128;
}
unsafe extern "C" {
pub fn cbrt(arg1: f64) -> f64;
}
unsafe extern "C" {
pub fn cbrtf(arg1: f32) -> f32;
}
unsafe extern "C" {
pub fn cbrtl(arg1: u128) -> u128;
}
unsafe extern "C" {
pub fn ceil(arg1: f64) -> f64;
}
unsafe extern "C" {
pub fn ceilf(arg1: f32) -> f32;
}
unsafe extern "C" {
pub fn ceill(arg1: u128) -> u128;
}
unsafe extern "C" {
pub fn copysign(arg1: f64, arg2: f64) -> f64;
}
unsafe extern "C" {
pub fn copysignf(arg1: f32, arg2: f32) -> f32;
}
unsafe extern "C" {
pub fn copysignl(arg1: u128, arg2: u128) -> u128;
}
unsafe extern "C" {
pub fn cos(arg1: f64) -> f64;
}
unsafe extern "C" {
pub fn cosf(arg1: f32) -> f32;
}
unsafe extern "C" {
pub fn cosl(arg1: u128) -> u128;
}
unsafe extern "C" {
pub fn cosh(arg1: f64) -> f64;
}
unsafe extern "C" {
pub fn coshf(arg1: f32) -> f32;
}
unsafe extern "C" {
pub fn coshl(arg1: u128) -> u128;
}
unsafe extern "C" {
pub fn erf(arg1: f64) -> f64;
}
unsafe extern "C" {
pub fn erff(arg1: f32) -> f32;
}
unsafe extern "C" {
pub fn erfl(arg1: u128) -> u128;
}
unsafe extern "C" {
pub fn erfc(arg1: f64) -> f64;
}
unsafe extern "C" {
pub fn erfcf(arg1: f32) -> f32;
}
unsafe extern "C" {
pub fn erfcl(arg1: u128) -> u128;
}
unsafe extern "C" {
pub fn exp(arg1: f64) -> f64;
}
unsafe extern "C" {
pub fn expf(arg1: f32) -> f32;
}
unsafe extern "C" {
pub fn expl(arg1: u128) -> u128;
}
unsafe extern "C" {
pub fn exp2(arg1: f64) -> f64;
}
unsafe extern "C" {
pub fn exp2f(arg1: f32) -> f32;
}
unsafe extern "C" {
pub fn exp2l(arg1: u128) -> u128;
}
unsafe extern "C" {
pub fn expm1(arg1: f64) -> f64;
}
unsafe extern "C" {
pub fn expm1f(arg1: f32) -> f32;
}
unsafe extern "C" {
pub fn expm1l(arg1: u128) -> u128;
}
unsafe extern "C" {
pub fn fabs(arg1: f64) -> f64;
}
unsafe extern "C" {
pub fn fabsf(arg1: f32) -> f32;
}
unsafe extern "C" {
pub fn fabsl(arg1: u128) -> u128;
}
unsafe extern "C" {
pub fn fdim(arg1: f64, arg2: f64) -> f64;
}
unsafe extern "C" {
pub fn fdimf(arg1: f32, arg2: f32) -> f32;
}
unsafe extern "C" {
pub fn fdiml(arg1: u128, arg2: u128) -> u128;
}
unsafe extern "C" {
pub fn floor(arg1: f64) -> f64;
}
unsafe extern "C" {
pub fn floorf(arg1: f32) -> f32;
}
unsafe extern "C" {
pub fn floorl(arg1: u128) -> u128;
}
unsafe extern "C" {
pub fn fma(arg1: f64, arg2: f64, arg3: f64) -> f64;
}
unsafe extern "C" {
pub fn fmaf(arg1: f32, arg2: f32, arg3: f32) -> f32;
}
unsafe extern "C" {
pub fn fmal(arg1: u128, arg2: u128, arg3: u128) -> u128;
}
unsafe extern "C" {
pub fn fmax(arg1: f64, arg2: f64) -> f64;
}
unsafe extern "C" {
pub fn fmaxf(arg1: f32, arg2: f32) -> f32;
}
unsafe extern "C" {
pub fn fmaxl(arg1: u128, arg2: u128) -> u128;
}
unsafe extern "C" {
pub fn fmin(arg1: f64, arg2: f64) -> f64;
}
unsafe extern "C" {
pub fn fminf(arg1: f32, arg2: f32) -> f32;
}
unsafe extern "C" {
pub fn fminl(arg1: u128, arg2: u128) -> u128;
}
unsafe extern "C" {
pub fn fmod(arg1: f64, arg2: f64) -> f64;
}
unsafe extern "C" {
pub fn fmodf(arg1: f32, arg2: f32) -> f32;
}
unsafe extern "C" {
pub fn fmodl(arg1: u128, arg2: u128) -> u128;
}
unsafe extern "C" {
pub fn frexp(arg1: f64, arg2: *mut ::std::os::raw::c_int) -> f64;
}
unsafe extern "C" {
pub fn frexpf(arg1: f32, arg2: *mut ::std::os::raw::c_int) -> f32;
}
unsafe extern "C" {
pub fn frexpl(arg1: u128, arg2: *mut ::std::os::raw::c_int) -> u128;
}
unsafe extern "C" {
pub fn hypot(arg1: f64, arg2: f64) -> f64;
}
unsafe extern "C" {
pub fn hypotf(arg1: f32, arg2: f32) -> f32;
}
unsafe extern "C" {
pub fn hypotl(arg1: u128, arg2: u128) -> u128;
}
unsafe extern "C" {
pub fn ilogb(arg1: f64) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn ilogbf(arg1: f32) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn ilogbl(arg1: u128) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn ldexp(arg1: f64, arg2: ::std::os::raw::c_int) -> f64;
}
unsafe extern "C" {
pub fn ldexpf(arg1: f32, arg2: ::std::os::raw::c_int) -> f32;
}
unsafe extern "C" {
pub fn ldexpl(arg1: u128, arg2: ::std::os::raw::c_int) -> u128;
}
unsafe extern "C" {
pub fn lgamma(arg1: f64) -> f64;
}
unsafe extern "C" {
pub fn lgammaf(arg1: f32) -> f32;
}
unsafe extern "C" {
pub fn lgammal(arg1: u128) -> u128;
}
unsafe extern "C" {
pub fn llrint(arg1: f64) -> ::std::os::raw::c_longlong;
}
unsafe extern "C" {
pub fn llrintf(arg1: f32) -> ::std::os::raw::c_longlong;
}
unsafe extern "C" {
pub fn llrintl(arg1: u128) -> ::std::os::raw::c_longlong;
}
unsafe extern "C" {
pub fn llround(arg1: f64) -> ::std::os::raw::c_longlong;
}
unsafe extern "C" {
pub fn llroundf(arg1: f32) -> ::std::os::raw::c_longlong;
}
unsafe extern "C" {
pub fn llroundl(arg1: u128) -> ::std::os::raw::c_longlong;
}
unsafe extern "C" {
pub fn log(arg1: f64) -> f64;
}
unsafe extern "C" {
pub fn logf(arg1: f32) -> f32;
}
unsafe extern "C" {
pub fn logl(arg1: u128) -> u128;
}
unsafe extern "C" {
pub fn log10(arg1: f64) -> f64;
}
unsafe extern "C" {
pub fn log10f(arg1: f32) -> f32;
}
unsafe extern "C" {
pub fn log10l(arg1: u128) -> u128;
}
unsafe extern "C" {
pub fn log1p(arg1: f64) -> f64;
}
unsafe extern "C" {
pub fn log1pf(arg1: f32) -> f32;
}
unsafe extern "C" {
pub fn log1pl(arg1: u128) -> u128;
}
unsafe extern "C" {
pub fn log2(arg1: f64) -> f64;
}
unsafe extern "C" {
pub fn log2f(arg1: f32) -> f32;
}
unsafe extern "C" {
pub fn log2l(arg1: u128) -> u128;
}
unsafe extern "C" {
pub fn logb(arg1: f64) -> f64;
}
unsafe extern "C" {
pub fn logbf(arg1: f32) -> f32;
}
unsafe extern "C" {
pub fn logbl(arg1: u128) -> u128;
}
unsafe extern "C" {
pub fn lrint(arg1: f64) -> ::std::os::raw::c_long;
}
unsafe extern "C" {
pub fn lrintf(arg1: f32) -> ::std::os::raw::c_long;
}
unsafe extern "C" {
pub fn lrintl(arg1: u128) -> ::std::os::raw::c_long;
}
unsafe extern "C" {
pub fn lround(arg1: f64) -> ::std::os::raw::c_long;
}
unsafe extern "C" {
pub fn lroundf(arg1: f32) -> ::std::os::raw::c_long;
}
unsafe extern "C" {
pub fn lroundl(arg1: u128) -> ::std::os::raw::c_long;
}
unsafe extern "C" {
pub fn modf(arg1: f64, arg2: *mut f64) -> f64;
}
unsafe extern "C" {
pub fn modff(arg1: f32, arg2: *mut f32) -> f32;
}
unsafe extern "C" {
pub fn modfl(arg1: u128, arg2: *mut u128) -> u128;
}
unsafe extern "C" {
pub fn nan(arg1: *const ::std::os::raw::c_char) -> f64;
}
unsafe extern "C" {
pub fn nanf(arg1: *const ::std::os::raw::c_char) -> f32;
}
unsafe extern "C" {
pub fn nanl(arg1: *const ::std::os::raw::c_char) -> u128;
}
unsafe extern "C" {
pub fn nearbyint(arg1: f64) -> f64;
}
unsafe extern "C" {
pub fn nearbyintf(arg1: f32) -> f32;
}
unsafe extern "C" {
pub fn nearbyintl(arg1: u128) -> u128;
}
unsafe extern "C" {
pub fn nextafter(arg1: f64, arg2: f64) -> f64;
}
unsafe extern "C" {
pub fn nextafterf(arg1: f32, arg2: f32) -> f32;
}
unsafe extern "C" {
pub fn nextafterl(arg1: u128, arg2: u128) -> u128;
}
unsafe extern "C" {
pub fn nexttoward(arg1: f64, arg2: u128) -> f64;
}
unsafe extern "C" {
pub fn nexttowardf(arg1: f32, arg2: u128) -> f32;
}
unsafe extern "C" {
pub fn nexttowardl(arg1: u128, arg2: u128) -> u128;
}
unsafe extern "C" {
pub fn pow(arg1: f64, arg2: f64) -> f64;
}
unsafe extern "C" {
pub fn powf(arg1: f32, arg2: f32) -> f32;
}
unsafe extern "C" {
pub fn powl(arg1: u128, arg2: u128) -> u128;
}
unsafe extern "C" {
pub fn remainder(arg1: f64, arg2: f64) -> f64;
}
unsafe extern "C" {
pub fn remainderf(arg1: f32, arg2: f32) -> f32;
}
unsafe extern "C" {
pub fn remainderl(arg1: u128, arg2: u128) -> u128;
}
unsafe extern "C" {
pub fn remquo(arg1: f64, arg2: f64, arg3: *mut ::std::os::raw::c_int) -> f64;
}
unsafe extern "C" {
pub fn remquof(arg1: f32, arg2: f32, arg3: *mut ::std::os::raw::c_int) -> f32;
}
unsafe extern "C" {
pub fn remquol(arg1: u128, arg2: u128, arg3: *mut ::std::os::raw::c_int) -> u128;
}
unsafe extern "C" {
pub fn rint(arg1: f64) -> f64;
}
unsafe extern "C" {
pub fn rintf(arg1: f32) -> f32;
}
unsafe extern "C" {
pub fn rintl(arg1: u128) -> u128;
}
unsafe extern "C" {
pub fn round(arg1: f64) -> f64;
}
unsafe extern "C" {
pub fn roundf(arg1: f32) -> f32;
}
unsafe extern "C" {
pub fn roundl(arg1: u128) -> u128;
}
unsafe extern "C" {
pub fn scalbln(arg1: f64, arg2: ::std::os::raw::c_long) -> f64;
}
unsafe extern "C" {
pub fn scalblnf(arg1: f32, arg2: ::std::os::raw::c_long) -> f32;
}
unsafe extern "C" {
pub fn scalblnl(arg1: u128, arg2: ::std::os::raw::c_long) -> u128;
}
unsafe extern "C" {
pub fn scalbn(arg1: f64, arg2: ::std::os::raw::c_int) -> f64;
}
unsafe extern "C" {
pub fn scalbnf(arg1: f32, arg2: ::std::os::raw::c_int) -> f32;
}
unsafe extern "C" {
pub fn scalbnl(arg1: u128, arg2: ::std::os::raw::c_int) -> u128;
}
unsafe extern "C" {
pub fn sin(arg1: f64) -> f64;
}
unsafe extern "C" {
pub fn sinf(arg1: f32) -> f32;
}
unsafe extern "C" {
pub fn sinl(arg1: u128) -> u128;
}
unsafe extern "C" {
pub fn sinh(arg1: f64) -> f64;
}
unsafe extern "C" {
pub fn sinhf(arg1: f32) -> f32;
}
unsafe extern "C" {
pub fn sinhl(arg1: u128) -> u128;
}
unsafe extern "C" {
pub fn sqrt(arg1: f64) -> f64;
}
unsafe extern "C" {
pub fn sqrtf(arg1: f32) -> f32;
}
unsafe extern "C" {
pub fn sqrtl(arg1: u128) -> u128;
}
unsafe extern "C" {
pub fn tan(arg1: f64) -> f64;
}
unsafe extern "C" {
pub fn tanf(arg1: f32) -> f32;
}
unsafe extern "C" {
pub fn tanl(arg1: u128) -> u128;
}
unsafe extern "C" {
pub fn tanh(arg1: f64) -> f64;
}
unsafe extern "C" {
pub fn tanhf(arg1: f32) -> f32;
}
unsafe extern "C" {
pub fn tanhl(arg1: u128) -> u128;
}
unsafe extern "C" {
pub fn tgamma(arg1: f64) -> f64;
}
unsafe extern "C" {
pub fn tgammaf(arg1: f32) -> f32;
}
unsafe extern "C" {
pub fn tgammal(arg1: u128) -> u128;
}
unsafe extern "C" {
pub fn trunc(arg1: f64) -> f64;
}
unsafe extern "C" {
pub fn truncf(arg1: f32) -> f32;
}
unsafe extern "C" {
pub fn truncl(arg1: u128) -> u128;
}
unsafe extern "C" {
pub static mut signgam: ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn j0(arg1: f64) -> f64;
}
unsafe extern "C" {
pub fn j1(arg1: f64) -> f64;
}
unsafe extern "C" {
pub fn jn(arg1: ::std::os::raw::c_int, arg2: f64) -> f64;
}
unsafe extern "C" {
pub fn y0(arg1: f64) -> f64;
}
unsafe extern "C" {
pub fn y1(arg1: f64) -> f64;
}
unsafe extern "C" {
pub fn yn(arg1: ::std::os::raw::c_int, arg2: f64) -> f64;
}
unsafe extern "C" {
pub fn drem(arg1: f64, arg2: f64) -> f64;
}
unsafe extern "C" {
pub fn dremf(arg1: f32, arg2: f32) -> f32;
}
unsafe extern "C" {
pub fn finite(arg1: f64) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn finitef(arg1: f32) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn scalb(arg1: f64, arg2: f64) -> f64;
}
unsafe extern "C" {
pub fn scalbf(arg1: f32, arg2: f32) -> f32;
}
unsafe extern "C" {
pub fn significand(arg1: f64) -> f64;
}
unsafe extern "C" {
pub fn significandf(arg1: f32) -> f32;
}
unsafe extern "C" {
pub fn lgamma_r(arg1: f64, arg2: *mut ::std::os::raw::c_int) -> f64;
}
unsafe extern "C" {
pub fn lgammaf_r(arg1: f32, arg2: *mut ::std::os::raw::c_int) -> f32;
}
unsafe extern "C" {
pub fn j0f(arg1: f32) -> f32;
}
unsafe extern "C" {
pub fn j1f(arg1: f32) -> f32;
}
unsafe extern "C" {
pub fn jnf(arg1: ::std::os::raw::c_int, arg2: f32) -> f32;
}
unsafe extern "C" {
pub fn y0f(arg1: f32) -> f32;
}
unsafe extern "C" {
pub fn y1f(arg1: f32) -> f32;
}
unsafe extern "C" {
pub fn ynf(arg1: ::std::os::raw::c_int, arg2: f32) -> f32;
}
unsafe extern "C" {
pub fn vips_enum_string(
enm: GType,
value: ::std::os::raw::c_int,
) -> *const ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn vips_enum_nick(
enm: GType,
value: ::std::os::raw::c_int,
) -> *const ::std::os::raw::c_char;
}
unsafe 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;
}
unsafe 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;
}
unsafe extern "C" {
pub fn vips_slist_equal(l1: *mut GSList, l2: *mut GSList) -> gboolean;
}
unsafe 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;
}
unsafe 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;
}
unsafe 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;
}
unsafe 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;
}
unsafe 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;
}
unsafe extern "C" {
pub fn vips_slist_free_all(list: *mut GSList);
}
unsafe 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;
}
unsafe 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;
}
unsafe extern "C" {
pub fn vips_iscasepostfix(
a: *const ::std::os::raw::c_char,
b: *const ::std::os::raw::c_char,
) -> gboolean;
}
unsafe extern "C" {
pub fn vips_isprefix(
a: *const ::std::os::raw::c_char,
b: *const ::std::os::raw::c_char,
) -> gboolean;
}
unsafe 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;
}
unsafe 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;
}
unsafe extern "C" {
pub fn vips_file_length(fd: ::std::os::raw::c_int) -> gint64;
}
unsafe extern "C" {
pub fn vips_existsf(name: *const ::std::os::raw::c_char, ...) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_isdirf(name: *const ::std::os::raw::c_char, ...) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_mkdirf(name: *const ::std::os::raw::c_char, ...) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_rmdirf(name: *const ::std::os::raw::c_char, ...) -> ::std::os::raw::c_int;
}
unsafe 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;
}
pub const VipsToken_VIPS_TOKEN_LEFT: VipsToken = 1;
pub const VipsToken_VIPS_TOKEN_RIGHT: VipsToken = 2;
pub const VipsToken_VIPS_TOKEN_STRING: VipsToken = 3;
pub const VipsToken_VIPS_TOKEN_EQUALS: VipsToken = 4;
pub const VipsToken_VIPS_TOKEN_COMMA: VipsToken = 5;
pub type VipsToken = ::std::os::raw::c_uint;
unsafe 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;
}
unsafe extern "C" {
pub fn vips_ispoweroftwo(p: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_amiMSBfirst() -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_realpath(path: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn vips_strtod(str_: *const ::std::os::raw::c_char, out: *mut f64)
-> ::std::os::raw::c_int;
}
pub type VipsObject = _VipsObject;
pub type VipsObjectClass = _VipsObjectClass;
pub const VipsArgumentFlags_VIPS_ARGUMENT_NONE: VipsArgumentFlags = 0;
pub const VipsArgumentFlags_VIPS_ARGUMENT_REQUIRED: VipsArgumentFlags = 1;
pub const VipsArgumentFlags_VIPS_ARGUMENT_CONSTRUCT: VipsArgumentFlags = 2;
pub const VipsArgumentFlags_VIPS_ARGUMENT_SET_ONCE: VipsArgumentFlags = 4;
pub const VipsArgumentFlags_VIPS_ARGUMENT_SET_ALWAYS: VipsArgumentFlags = 8;
pub const VipsArgumentFlags_VIPS_ARGUMENT_INPUT: VipsArgumentFlags = 16;
pub const VipsArgumentFlags_VIPS_ARGUMENT_OUTPUT: VipsArgumentFlags = 32;
pub const VipsArgumentFlags_VIPS_ARGUMENT_DEPRECATED: VipsArgumentFlags = 64;
pub const VipsArgumentFlags_VIPS_ARGUMENT_MODIFY: VipsArgumentFlags = 128;
pub const VipsArgumentFlags_VIPS_ARGUMENT_NON_HASHABLE: VipsArgumentFlags = 256;
pub type VipsArgumentFlags = ::std::os::raw::c_uint;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _VipsArgument {
pub pspec: *mut GParamSpec,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _VipsArgument"][::std::mem::size_of::<_VipsArgument>() - 8usize];
["Alignment of _VipsArgument"][::std::mem::align_of::<_VipsArgument>() - 8usize];
["Offset of field: _VipsArgument::pspec"]
[::std::mem::offset_of!(_VipsArgument, pspec) - 0usize];
};
pub type VipsArgument = _VipsArgument;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _VipsArgumentClass {
pub parent: VipsArgument,
pub object_class: *mut VipsObjectClass,
pub flags: VipsArgumentFlags,
pub priority: ::std::os::raw::c_int,
pub offset: guint,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _VipsArgumentClass"][::std::mem::size_of::<_VipsArgumentClass>() - 32usize];
["Alignment of _VipsArgumentClass"][::std::mem::align_of::<_VipsArgumentClass>() - 8usize];
["Offset of field: _VipsArgumentClass::parent"]
[::std::mem::offset_of!(_VipsArgumentClass, parent) - 0usize];
["Offset of field: _VipsArgumentClass::object_class"]
[::std::mem::offset_of!(_VipsArgumentClass, object_class) - 8usize];
["Offset of field: _VipsArgumentClass::flags"]
[::std::mem::offset_of!(_VipsArgumentClass, flags) - 16usize];
["Offset of field: _VipsArgumentClass::priority"]
[::std::mem::offset_of!(_VipsArgumentClass, priority) - 20usize];
["Offset of field: _VipsArgumentClass::offset"]
[::std::mem::offset_of!(_VipsArgumentClass, offset) - 24usize];
};
pub type VipsArgumentClass = _VipsArgumentClass;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
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,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _VipsArgumentInstance"][::std::mem::size_of::<_VipsArgumentInstance>() - 48usize];
["Alignment of _VipsArgumentInstance"]
[::std::mem::align_of::<_VipsArgumentInstance>() - 8usize];
["Offset of field: _VipsArgumentInstance::parent"]
[::std::mem::offset_of!(_VipsArgumentInstance, parent) - 0usize];
["Offset of field: _VipsArgumentInstance::argument_class"]
[::std::mem::offset_of!(_VipsArgumentInstance, argument_class) - 8usize];
["Offset of field: _VipsArgumentInstance::object"]
[::std::mem::offset_of!(_VipsArgumentInstance, object) - 16usize];
["Offset of field: _VipsArgumentInstance::assigned"]
[::std::mem::offset_of!(_VipsArgumentInstance, assigned) - 24usize];
["Offset of field: _VipsArgumentInstance::close_id"]
[::std::mem::offset_of!(_VipsArgumentInstance, close_id) - 32usize];
["Offset of field: _VipsArgumentInstance::invalidate_id"]
[::std::mem::offset_of!(_VipsArgumentInstance, invalidate_id) - 40usize];
};
pub type VipsArgumentInstance = _VipsArgumentInstance;
pub type VipsArgumentTable = GHashTable;
unsafe extern "C" {
pub fn vips_argument_get_id() -> ::std::os::raw::c_int;
}
unsafe 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,
>;
unsafe 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;
}
unsafe extern "C" {
pub fn vips_object_get_args(
object: *mut VipsObject,
names: *mut *mut *const ::std::os::raw::c_char,
flags: *mut *mut ::std::os::raw::c_int,
n_args: *mut ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
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,
>;
unsafe 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;
}
unsafe extern "C" {
pub fn vips_argument_class_needsstring(argument_class: *mut VipsArgumentClass) -> gboolean;
}
unsafe 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;
}
unsafe extern "C" {
pub fn vips_object_argument_isset(
object: *mut VipsObject,
name: *const ::std::os::raw::c_char,
) -> gboolean;
}
unsafe extern "C" {
pub fn vips_object_get_argument_flags(
object: *mut VipsObject,
name: *const ::std::os::raw::c_char,
) -> VipsArgumentFlags;
}
unsafe 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, PartialEq, Eq)]
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: size_t,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _VipsObject"][::std::mem::size_of::<_VipsObject>() - 80usize];
["Alignment of _VipsObject"][::std::mem::align_of::<_VipsObject>() - 8usize];
["Offset of field: _VipsObject::parent_instance"]
[::std::mem::offset_of!(_VipsObject, parent_instance) - 0usize];
["Offset of field: _VipsObject::constructed"]
[::std::mem::offset_of!(_VipsObject, constructed) - 24usize];
["Offset of field: _VipsObject::static_object"]
[::std::mem::offset_of!(_VipsObject, static_object) - 28usize];
["Offset of field: _VipsObject::argument_table"]
[::std::mem::offset_of!(_VipsObject, argument_table) - 32usize];
["Offset of field: _VipsObject::nickname"]
[::std::mem::offset_of!(_VipsObject, nickname) - 40usize];
["Offset of field: _VipsObject::description"]
[::std::mem::offset_of!(_VipsObject, description) - 48usize];
["Offset of field: _VipsObject::preclose"]
[::std::mem::offset_of!(_VipsObject, preclose) - 56usize];
["Offset of field: _VipsObject::close"][::std::mem::offset_of!(_VipsObject, close) - 60usize];
["Offset of field: _VipsObject::postclose"]
[::std::mem::offset_of!(_VipsObject, postclose) - 64usize];
["Offset of field: _VipsObject::local_memory"]
[::std::mem::offset_of!(_VipsObject, local_memory) - 72usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
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,
data: *mut ::std::os::raw::c_void,
) -> ::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()>,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _VipsObjectClass"][::std::mem::size_of::<_VipsObjectClass>() - 328usize];
["Alignment of _VipsObjectClass"][::std::mem::align_of::<_VipsObjectClass>() - 8usize];
["Offset of field: _VipsObjectClass::parent_class"]
[::std::mem::offset_of!(_VipsObjectClass, parent_class) - 0usize];
["Offset of field: _VipsObjectClass::build"]
[::std::mem::offset_of!(_VipsObjectClass, build) - 136usize];
["Offset of field: _VipsObjectClass::postbuild"]
[::std::mem::offset_of!(_VipsObjectClass, postbuild) - 144usize];
["Offset of field: _VipsObjectClass::summary_class"]
[::std::mem::offset_of!(_VipsObjectClass, summary_class) - 152usize];
["Offset of field: _VipsObjectClass::summary"]
[::std::mem::offset_of!(_VipsObjectClass, summary) - 160usize];
["Offset of field: _VipsObjectClass::dump"]
[::std::mem::offset_of!(_VipsObjectClass, dump) - 168usize];
["Offset of field: _VipsObjectClass::sanity"]
[::std::mem::offset_of!(_VipsObjectClass, sanity) - 176usize];
["Offset of field: _VipsObjectClass::rewind"]
[::std::mem::offset_of!(_VipsObjectClass, rewind) - 184usize];
["Offset of field: _VipsObjectClass::preclose"]
[::std::mem::offset_of!(_VipsObjectClass, preclose) - 192usize];
["Offset of field: _VipsObjectClass::close"]
[::std::mem::offset_of!(_VipsObjectClass, close) - 200usize];
["Offset of field: _VipsObjectClass::postclose"]
[::std::mem::offset_of!(_VipsObjectClass, postclose) - 208usize];
["Offset of field: _VipsObjectClass::new_from_string"]
[::std::mem::offset_of!(_VipsObjectClass, new_from_string) - 216usize];
["Offset of field: _VipsObjectClass::to_string"]
[::std::mem::offset_of!(_VipsObjectClass, to_string) - 224usize];
["Offset of field: _VipsObjectClass::output_needs_arg"]
[::std::mem::offset_of!(_VipsObjectClass, output_needs_arg) - 232usize];
["Offset of field: _VipsObjectClass::output_to_arg"]
[::std::mem::offset_of!(_VipsObjectClass, output_to_arg) - 240usize];
["Offset of field: _VipsObjectClass::nickname"]
[::std::mem::offset_of!(_VipsObjectClass, nickname) - 248usize];
["Offset of field: _VipsObjectClass::description"]
[::std::mem::offset_of!(_VipsObjectClass, description) - 256usize];
["Offset of field: _VipsObjectClass::argument_table"]
[::std::mem::offset_of!(_VipsObjectClass, argument_table) - 264usize];
["Offset of field: _VipsObjectClass::argument_table_traverse"]
[::std::mem::offset_of!(_VipsObjectClass, argument_table_traverse) - 272usize];
["Offset of field: _VipsObjectClass::argument_table_traverse_gtype"]
[::std::mem::offset_of!(_VipsObjectClass, argument_table_traverse_gtype) - 280usize];
["Offset of field: _VipsObjectClass::deprecated"]
[::std::mem::offset_of!(_VipsObjectClass, deprecated) - 288usize];
["Offset of field: _VipsObjectClass::_vips_reserved1"]
[::std::mem::offset_of!(_VipsObjectClass, _vips_reserved1) - 296usize];
["Offset of field: _VipsObjectClass::_vips_reserved2"]
[::std::mem::offset_of!(_VipsObjectClass, _vips_reserved2) - 304usize];
["Offset of field: _VipsObjectClass::_vips_reserved3"]
[::std::mem::offset_of!(_VipsObjectClass, _vips_reserved3) - 312usize];
["Offset of field: _VipsObjectClass::_vips_reserved4"]
[::std::mem::offset_of!(_VipsObjectClass, _vips_reserved4) - 320usize];
};
unsafe extern "C" {
pub fn vips_value_is_null(psoec: *mut GParamSpec, value: *const GValue) -> gboolean;
}
unsafe extern "C" {
pub fn vips_object_set_property(
gobject: *mut GObject,
property_id: guint,
value: *const GValue,
pspec: *mut GParamSpec,
);
}
unsafe extern "C" {
pub fn vips_object_get_property(
gobject: *mut GObject,
property_id: guint,
value: *mut GValue,
pspec: *mut GParamSpec,
);
}
unsafe extern "C" {
pub fn vips_object_preclose(object: *mut VipsObject);
}
unsafe extern "C" {
pub fn vips_object_build(object: *mut VipsObject) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_object_summary_class(klass: *mut VipsObjectClass, buf: *mut VipsBuf);
}
unsafe extern "C" {
pub fn vips_object_summary(object: *mut VipsObject, buf: *mut VipsBuf);
}
unsafe extern "C" {
pub fn vips_object_dump(object: *mut VipsObject, buf: *mut VipsBuf);
}
unsafe extern "C" {
pub fn vips_object_print_summary_class(klass: *mut VipsObjectClass);
}
unsafe extern "C" {
pub fn vips_object_print_summary(object: *mut VipsObject);
}
unsafe extern "C" {
pub fn vips_object_print_dump(object: *mut VipsObject);
}
unsafe extern "C" {
pub fn vips_object_print_name(object: *mut VipsObject);
}
unsafe extern "C" {
pub fn vips_object_sanity(object: *mut VipsObject) -> gboolean;
}
unsafe extern "C" {
pub fn vips_object_get_type() -> GType;
}
unsafe 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,
);
}
unsafe 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;
}
unsafe extern "C" {
pub fn vips_object_argument_needsstring(
object: *mut VipsObject,
name: *const ::std::os::raw::c_char,
) -> gboolean;
}
unsafe 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;
}
unsafe 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,
>;
unsafe 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;
}
unsafe extern "C" {
pub fn vips_object_set_valist(object: *mut VipsObject, ap: va_list) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_object_set(object: *mut VipsObject, ...) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_object_set_from_string(
object: *mut VipsObject,
string: *const ::std::os::raw::c_char,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_object_new_from_string(
object_class: *mut VipsObjectClass,
p: *const ::std::os::raw::c_char,
) -> *mut VipsObject;
}
unsafe extern "C" {
pub fn vips_object_to_string(object: *mut VipsObject, buf: *mut VipsBuf);
}
unsafe 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,
>;
unsafe 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;
}
unsafe 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;
}
unsafe extern "C" {
pub fn vips_type_depth(type_: GType) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_type_find(
basename: *const ::std::os::raw::c_char,
nickname: *const ::std::os::raw::c_char,
) -> GType;
}
unsafe extern "C" {
pub fn vips_nickname_find(type_: GType) -> *const ::std::os::raw::c_char;
}
unsafe 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;
}
unsafe extern "C" {
pub fn vips_class_find(
basename: *const ::std::os::raw::c_char,
nickname: *const ::std::os::raw::c_char,
) -> *const VipsObjectClass;
}
unsafe extern "C" {
pub fn vips_object_local_array(
parent: *mut VipsObject,
n: ::std::os::raw::c_int,
) -> *mut *mut VipsObject;
}
unsafe extern "C" {
pub fn vips_object_local_cb(vobject: *mut VipsObject, gobject: *mut GObject);
}
unsafe extern "C" {
pub fn vips_object_set_static(object: *mut VipsObject, static_object: gboolean);
}
unsafe extern "C" {
pub fn vips_object_print_all();
}
unsafe extern "C" {
pub fn vips_object_sanity_all();
}
unsafe extern "C" {
pub fn vips_object_rewind(object: *mut VipsObject);
}
unsafe extern "C" {
pub fn vips_object_unref_outputs(object: *mut VipsObject);
}
unsafe extern "C" {
pub fn vips_object_get_description(object: *mut VipsObject) -> *const ::std::os::raw::c_char;
}
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _VipsThing {
pub i: ::std::os::raw::c_int,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _VipsThing"][::std::mem::size_of::<_VipsThing>() - 4usize];
["Alignment of _VipsThing"][::std::mem::align_of::<_VipsThing>() - 4usize];
["Offset of field: _VipsThing::i"][::std::mem::offset_of!(_VipsThing, i) - 0usize];
};
pub type VipsThing = _VipsThing;
unsafe extern "C" {
pub fn vips_thing_get_type() -> GType;
}
unsafe extern "C" {
pub fn vips_thing_new(i: ::std::os::raw::c_int) -> *mut VipsThing;
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct _VipsArea {
pub data: *mut ::std::os::raw::c_void,
pub length: size_t,
pub n: ::std::os::raw::c_int,
pub count: ::std::os::raw::c_int,
pub lock: GMutex,
pub free_fn: VipsCallbackFn,
pub client: *mut ::std::os::raw::c_void,
pub type_: GType,
pub sizeof_type: size_t,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _VipsArea"][::std::mem::size_of::<_VipsArea>() - 64usize];
["Alignment of _VipsArea"][::std::mem::align_of::<_VipsArea>() - 8usize];
["Offset of field: _VipsArea::data"][::std::mem::offset_of!(_VipsArea, data) - 0usize];
["Offset of field: _VipsArea::length"][::std::mem::offset_of!(_VipsArea, length) - 8usize];
["Offset of field: _VipsArea::n"][::std::mem::offset_of!(_VipsArea, n) - 16usize];
["Offset of field: _VipsArea::count"][::std::mem::offset_of!(_VipsArea, count) - 20usize];
["Offset of field: _VipsArea::lock"][::std::mem::offset_of!(_VipsArea, lock) - 24usize];
["Offset of field: _VipsArea::free_fn"][::std::mem::offset_of!(_VipsArea, free_fn) - 32usize];
["Offset of field: _VipsArea::client"][::std::mem::offset_of!(_VipsArea, client) - 40usize];
["Offset of field: _VipsArea::type_"][::std::mem::offset_of!(_VipsArea, type_) - 48usize];
["Offset of field: _VipsArea::sizeof_type"]
[::std::mem::offset_of!(_VipsArea, sizeof_type) - 56usize];
};
impl ::std::fmt::Debug for _VipsArea {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
write!(
f,
"_VipsArea {{ data: {:?}, length: {:?}, n: {:?}, count: {:?}, lock: {:?}, free_fn: {:?}, client: {:?}, type: {:?}, sizeof_type: {:?} }}",
self.data,
self.length,
self.n,
self.count,
self.lock,
self.free_fn,
self.client,
self.type_,
self.sizeof_type
)
}
}
pub type VipsArea = _VipsArea;
unsafe extern "C" {
pub fn vips_area_copy(area: *mut VipsArea) -> *mut VipsArea;
}
unsafe extern "C" {
pub fn vips_area_free_cb(
mem: *mut ::std::os::raw::c_void,
area: *mut VipsArea,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_area_unref(area: *mut VipsArea);
}
unsafe extern "C" {
pub fn vips_area_new(
free_fn: VipsCallbackFn,
data: *mut ::std::os::raw::c_void,
) -> *mut VipsArea;
}
unsafe extern "C" {
pub fn vips_area_new_array(
type_: GType,
sizeof_type: size_t,
n: ::std::os::raw::c_int,
) -> *mut VipsArea;
}
unsafe extern "C" {
pub fn vips_area_new_array_object(n: ::std::os::raw::c_int) -> *mut VipsArea;
}
unsafe extern "C" {
pub fn vips_area_get_data(
area: *mut VipsArea,
length: *mut size_t,
n: *mut ::std::os::raw::c_int,
type_: *mut GType,
sizeof_type: *mut size_t,
) -> *mut ::std::os::raw::c_void;
}
unsafe extern "C" {
pub fn vips_area_get_type() -> GType;
}
unsafe extern "C" {
pub fn vips_save_string_get_type() -> GType;
}
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _VipsSaveString {
pub s: *mut ::std::os::raw::c_char,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _VipsSaveString"][::std::mem::size_of::<_VipsSaveString>() - 8usize];
["Alignment of _VipsSaveString"][::std::mem::align_of::<_VipsSaveString>() - 8usize];
["Offset of field: _VipsSaveString::s"][::std::mem::offset_of!(_VipsSaveString, s) - 0usize];
};
pub type VipsSaveString = _VipsSaveString;
#[repr(C)]
#[derive(Copy, Clone)]
pub struct _VipsRefString {
pub area: VipsArea,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _VipsRefString"][::std::mem::size_of::<_VipsRefString>() - 64usize];
["Alignment of _VipsRefString"][::std::mem::align_of::<_VipsRefString>() - 8usize];
["Offset of field: _VipsRefString::area"]
[::std::mem::offset_of!(_VipsRefString, area) - 0usize];
};
impl ::std::fmt::Debug for _VipsRefString {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
write!(f, "_VipsRefString {{ area: {:?} }}", self.area)
}
}
pub type VipsRefString = _VipsRefString;
unsafe extern "C" {
pub fn vips_ref_string_new(str_: *const ::std::os::raw::c_char) -> *mut VipsRefString;
}
unsafe extern "C" {
pub fn vips_ref_string_get(
refstr: *mut VipsRefString,
length: *mut size_t,
) -> *const ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn vips_ref_string_get_type() -> GType;
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct _VipsBlob {
pub area: VipsArea,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _VipsBlob"][::std::mem::size_of::<_VipsBlob>() - 64usize];
["Alignment of _VipsBlob"][::std::mem::align_of::<_VipsBlob>() - 8usize];
["Offset of field: _VipsBlob::area"][::std::mem::offset_of!(_VipsBlob, area) - 0usize];
};
impl ::std::fmt::Debug for _VipsBlob {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
write!(f, "_VipsBlob {{ area: {:?} }}", self.area)
}
}
pub type VipsBlob = _VipsBlob;
unsafe extern "C" {
pub fn vips_blob_new(
free_fn: VipsCallbackFn,
data: *const ::std::os::raw::c_void,
length: size_t,
) -> *mut VipsBlob;
}
unsafe extern "C" {
pub fn vips_blob_copy(data: *const ::std::os::raw::c_void, length: size_t) -> *mut VipsBlob;
}
unsafe extern "C" {
pub fn vips_blob_get(blob: *mut VipsBlob, length: *mut size_t)
-> *const ::std::os::raw::c_void;
}
unsafe extern "C" {
pub fn vips_blob_set(
blob: *mut VipsBlob,
free_fn: VipsCallbackFn,
data: *const ::std::os::raw::c_void,
length: size_t,
);
}
unsafe extern "C" {
pub fn vips_blob_get_type() -> GType;
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct _VipsArrayDouble {
pub area: VipsArea,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _VipsArrayDouble"][::std::mem::size_of::<_VipsArrayDouble>() - 64usize];
["Alignment of _VipsArrayDouble"][::std::mem::align_of::<_VipsArrayDouble>() - 8usize];
["Offset of field: _VipsArrayDouble::area"]
[::std::mem::offset_of!(_VipsArrayDouble, area) - 0usize];
};
impl ::std::fmt::Debug for _VipsArrayDouble {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
write!(f, "_VipsArrayDouble {{ area: {:?} }}", self.area)
}
}
pub type VipsArrayDouble = _VipsArrayDouble;
unsafe extern "C" {
pub fn vips_array_double_new(
array: *const f64,
n: ::std::os::raw::c_int,
) -> *mut VipsArrayDouble;
}
unsafe extern "C" {
pub fn vips_array_double_newv(n: ::std::os::raw::c_int, ...) -> *mut VipsArrayDouble;
}
unsafe extern "C" {
pub fn vips_array_double_get(
array: *mut VipsArrayDouble,
n: *mut ::std::os::raw::c_int,
) -> *mut f64;
}
unsafe extern "C" {
pub fn vips_array_double_get_type() -> GType;
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct _VipsArrayInt {
pub area: VipsArea,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _VipsArrayInt"][::std::mem::size_of::<_VipsArrayInt>() - 64usize];
["Alignment of _VipsArrayInt"][::std::mem::align_of::<_VipsArrayInt>() - 8usize];
["Offset of field: _VipsArrayInt::area"][::std::mem::offset_of!(_VipsArrayInt, area) - 0usize];
};
impl ::std::fmt::Debug for _VipsArrayInt {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
write!(f, "_VipsArrayInt {{ area: {:?} }}", self.area)
}
}
pub type VipsArrayInt = _VipsArrayInt;
unsafe extern "C" {
pub fn vips_array_int_new(
array: *const ::std::os::raw::c_int,
n: ::std::os::raw::c_int,
) -> *mut VipsArrayInt;
}
unsafe extern "C" {
pub fn vips_array_int_newv(n: ::std::os::raw::c_int, ...) -> *mut VipsArrayInt;
}
unsafe extern "C" {
pub fn vips_array_int_get(
array: *mut VipsArrayInt,
n: *mut ::std::os::raw::c_int,
) -> *mut ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_array_int_get_type() -> GType;
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct _VipsArrayImage {
pub area: VipsArea,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _VipsArrayImage"][::std::mem::size_of::<_VipsArrayImage>() - 64usize];
["Alignment of _VipsArrayImage"][::std::mem::align_of::<_VipsArrayImage>() - 8usize];
["Offset of field: _VipsArrayImage::area"]
[::std::mem::offset_of!(_VipsArrayImage, area) - 0usize];
};
impl ::std::fmt::Debug for _VipsArrayImage {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
write!(f, "_VipsArrayImage {{ area: {:?} }}", self.area)
}
}
pub type VipsArrayImage = _VipsArrayImage;
unsafe extern "C" {
pub fn vips_array_image_get_type() -> GType;
}
unsafe extern "C" {
pub fn vips_value_set_area(
value: *mut GValue,
free_fn: VipsCallbackFn,
data: *mut ::std::os::raw::c_void,
);
}
unsafe extern "C" {
pub fn vips_value_get_area(
value: *const GValue,
length: *mut size_t,
) -> *mut ::std::os::raw::c_void;
}
unsafe extern "C" {
pub fn vips_value_get_save_string(value: *const GValue) -> *const ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn vips_value_set_save_string(value: *mut GValue, str_: *const ::std::os::raw::c_char);
}
unsafe extern "C" {
pub fn vips_value_set_save_stringf(value: *mut GValue, fmt: *const ::std::os::raw::c_char, ...);
}
unsafe extern "C" {
pub fn vips_value_get_ref_string(
value: *const GValue,
length: *mut size_t,
) -> *const ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn vips_value_set_ref_string(value: *mut GValue, str_: *const ::std::os::raw::c_char);
}
unsafe extern "C" {
pub fn vips_value_get_blob(
value: *const GValue,
length: *mut size_t,
) -> *mut ::std::os::raw::c_void;
}
unsafe extern "C" {
pub fn vips_value_set_blob(
value: *mut GValue,
free_fn: VipsCallbackFn,
data: *const ::std::os::raw::c_void,
length: size_t,
);
}
unsafe extern "C" {
pub fn vips_value_set_blob_free(
value: *mut GValue,
data: *mut ::std::os::raw::c_void,
length: size_t,
);
}
unsafe extern "C" {
pub fn vips_value_set_array(
value: *mut GValue,
n: ::std::os::raw::c_int,
type_: GType,
sizeof_type: size_t,
);
}
unsafe extern "C" {
pub fn vips_value_get_array(
value: *const GValue,
n: *mut ::std::os::raw::c_int,
type_: *mut GType,
sizeof_type: *mut size_t,
) -> *mut ::std::os::raw::c_void;
}
unsafe extern "C" {
pub fn vips_value_get_array_double(
value: *const GValue,
n: *mut ::std::os::raw::c_int,
) -> *mut f64;
}
unsafe extern "C" {
pub fn vips_value_set_array_double(
value: *mut GValue,
array: *const f64,
n: ::std::os::raw::c_int,
);
}
unsafe 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;
}
unsafe 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,
);
}
unsafe extern "C" {
pub fn vips_value_get_array_object(
value: *const GValue,
n: *mut ::std::os::raw::c_int,
) -> *mut *mut GObject;
}
unsafe extern "C" {
pub fn vips_value_set_array_object(value: *mut GValue, n: ::std::os::raw::c_int);
}
unsafe extern "C" {
pub fn vips_profile_set(profile: gboolean);
}
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _VipsConnection {
pub parent_object: VipsObject,
pub descriptor: ::std::os::raw::c_int,
pub tracked_descriptor: ::std::os::raw::c_int,
pub close_descriptor: ::std::os::raw::c_int,
pub filename: *mut ::std::os::raw::c_char,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _VipsConnection"][::std::mem::size_of::<_VipsConnection>() - 104usize];
["Alignment of _VipsConnection"][::std::mem::align_of::<_VipsConnection>() - 8usize];
["Offset of field: _VipsConnection::parent_object"]
[::std::mem::offset_of!(_VipsConnection, parent_object) - 0usize];
["Offset of field: _VipsConnection::descriptor"]
[::std::mem::offset_of!(_VipsConnection, descriptor) - 80usize];
["Offset of field: _VipsConnection::tracked_descriptor"]
[::std::mem::offset_of!(_VipsConnection, tracked_descriptor) - 84usize];
["Offset of field: _VipsConnection::close_descriptor"]
[::std::mem::offset_of!(_VipsConnection, close_descriptor) - 88usize];
["Offset of field: _VipsConnection::filename"]
[::std::mem::offset_of!(_VipsConnection, filename) - 96usize];
};
pub type VipsConnection = _VipsConnection;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _VipsConnectionClass {
pub parent_class: VipsObjectClass,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _VipsConnectionClass"][::std::mem::size_of::<_VipsConnectionClass>() - 328usize];
["Alignment of _VipsConnectionClass"][::std::mem::align_of::<_VipsConnectionClass>() - 8usize];
["Offset of field: _VipsConnectionClass::parent_class"]
[::std::mem::offset_of!(_VipsConnectionClass, parent_class) - 0usize];
};
pub type VipsConnectionClass = _VipsConnectionClass;
unsafe extern "C" {
pub fn vips_connection_get_type() -> GType;
}
unsafe extern "C" {
pub fn vips_connection_filename(
connection: *mut VipsConnection,
) -> *const ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn vips_connection_nick(connection: *mut VipsConnection) -> *const ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn vips_pipe_read_limit_set(limit: gint64);
}
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _VipsSource {
pub parent_object: VipsConnection,
pub decode: gboolean,
pub have_tested_seek: gboolean,
pub is_pipe: gboolean,
pub read_position: gint64,
pub length: gint64,
pub data: *const ::std::os::raw::c_void,
pub header_bytes: *mut GByteArray,
pub sniff: *mut GByteArray,
pub blob: *mut VipsBlob,
pub mmap_baseaddr: *mut ::std::os::raw::c_void,
pub mmap_length: size_t,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _VipsSource"][::std::mem::size_of::<_VipsSource>() - 184usize];
["Alignment of _VipsSource"][::std::mem::align_of::<_VipsSource>() - 8usize];
["Offset of field: _VipsSource::parent_object"]
[::std::mem::offset_of!(_VipsSource, parent_object) - 0usize];
["Offset of field: _VipsSource::decode"]
[::std::mem::offset_of!(_VipsSource, decode) - 104usize];
["Offset of field: _VipsSource::have_tested_seek"]
[::std::mem::offset_of!(_VipsSource, have_tested_seek) - 108usize];
["Offset of field: _VipsSource::is_pipe"]
[::std::mem::offset_of!(_VipsSource, is_pipe) - 112usize];
["Offset of field: _VipsSource::read_position"]
[::std::mem::offset_of!(_VipsSource, read_position) - 120usize];
["Offset of field: _VipsSource::length"]
[::std::mem::offset_of!(_VipsSource, length) - 128usize];
["Offset of field: _VipsSource::data"][::std::mem::offset_of!(_VipsSource, data) - 136usize];
["Offset of field: _VipsSource::header_bytes"]
[::std::mem::offset_of!(_VipsSource, header_bytes) - 144usize];
["Offset of field: _VipsSource::sniff"][::std::mem::offset_of!(_VipsSource, sniff) - 152usize];
["Offset of field: _VipsSource::blob"][::std::mem::offset_of!(_VipsSource, blob) - 160usize];
["Offset of field: _VipsSource::mmap_baseaddr"]
[::std::mem::offset_of!(_VipsSource, mmap_baseaddr) - 168usize];
["Offset of field: _VipsSource::mmap_length"]
[::std::mem::offset_of!(_VipsSource, mmap_length) - 176usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _VipsSourceClass {
pub parent_class: VipsConnectionClass,
pub read: ::std::option::Option<
unsafe extern "C" fn(
source: *mut VipsSource,
buffer: *mut ::std::os::raw::c_void,
length: size_t,
) -> gint64,
>,
pub seek: ::std::option::Option<
unsafe extern "C" fn(
source: *mut VipsSource,
offset: gint64,
whence: ::std::os::raw::c_int,
) -> gint64,
>,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _VipsSourceClass"][::std::mem::size_of::<_VipsSourceClass>() - 344usize];
["Alignment of _VipsSourceClass"][::std::mem::align_of::<_VipsSourceClass>() - 8usize];
["Offset of field: _VipsSourceClass::parent_class"]
[::std::mem::offset_of!(_VipsSourceClass, parent_class) - 0usize];
["Offset of field: _VipsSourceClass::read"]
[::std::mem::offset_of!(_VipsSourceClass, read) - 328usize];
["Offset of field: _VipsSourceClass::seek"]
[::std::mem::offset_of!(_VipsSourceClass, seek) - 336usize];
};
pub type VipsSourceClass = _VipsSourceClass;
unsafe extern "C" {
pub fn vips_source_get_type() -> GType;
}
unsafe extern "C" {
pub fn vips_source_new_from_descriptor(descriptor: ::std::os::raw::c_int) -> *mut VipsSource;
}
unsafe extern "C" {
pub fn vips_source_new_from_file(filename: *const ::std::os::raw::c_char) -> *mut VipsSource;
}
unsafe extern "C" {
pub fn vips_source_new_from_blob(blob: *mut VipsBlob) -> *mut VipsSource;
}
unsafe extern "C" {
pub fn vips_source_new_from_target(target: *mut VipsTarget) -> *mut VipsSource;
}
unsafe extern "C" {
pub fn vips_source_new_from_memory(
data: *const ::std::os::raw::c_void,
length: size_t,
) -> *mut VipsSource;
}
unsafe extern "C" {
pub fn vips_source_new_from_options(options: *const ::std::os::raw::c_char) -> *mut VipsSource;
}
unsafe extern "C" {
pub fn vips_source_minimise(source: *mut VipsSource);
}
unsafe extern "C" {
pub fn vips_source_unminimise(source: *mut VipsSource) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_source_decode(source: *mut VipsSource) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_source_read(
source: *mut VipsSource,
buffer: *mut ::std::os::raw::c_void,
length: size_t,
) -> gint64;
}
unsafe extern "C" {
pub fn vips_source_is_mappable(source: *mut VipsSource) -> gboolean;
}
unsafe extern "C" {
pub fn vips_source_is_file(source: *mut VipsSource) -> gboolean;
}
unsafe extern "C" {
pub fn vips_source_map(
source: *mut VipsSource,
length: *mut size_t,
) -> *const ::std::os::raw::c_void;
}
unsafe extern "C" {
pub fn vips_source_map_blob(source: *mut VipsSource) -> *mut VipsBlob;
}
unsafe extern "C" {
pub fn vips_source_seek(
source: *mut VipsSource,
offset: gint64,
whence: ::std::os::raw::c_int,
) -> gint64;
}
unsafe extern "C" {
pub fn vips_source_rewind(source: *mut VipsSource) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_source_sniff_at_most(
source: *mut VipsSource,
data: *mut *mut ::std::os::raw::c_uchar,
length: size_t,
) -> gint64;
}
unsafe extern "C" {
pub fn vips_source_sniff(
source: *mut VipsSource,
length: size_t,
) -> *mut ::std::os::raw::c_uchar;
}
unsafe extern "C" {
pub fn vips_source_length(source: *mut VipsSource) -> gint64;
}
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _VipsSourceCustom {
pub parent_object: VipsSource,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _VipsSourceCustom"][::std::mem::size_of::<_VipsSourceCustom>() - 184usize];
["Alignment of _VipsSourceCustom"][::std::mem::align_of::<_VipsSourceCustom>() - 8usize];
["Offset of field: _VipsSourceCustom::parent_object"]
[::std::mem::offset_of!(_VipsSourceCustom, parent_object) - 0usize];
};
pub type VipsSourceCustom = _VipsSourceCustom;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _VipsSourceCustomClass {
pub parent_class: VipsSourceClass,
pub read: ::std::option::Option<
unsafe extern "C" fn(
source: *mut VipsSourceCustom,
buffer: *mut ::std::os::raw::c_void,
length: gint64,
) -> gint64,
>,
pub seek: ::std::option::Option<
unsafe extern "C" fn(
source: *mut VipsSourceCustom,
offset: gint64,
whence: ::std::os::raw::c_int,
) -> gint64,
>,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _VipsSourceCustomClass"][::std::mem::size_of::<_VipsSourceCustomClass>() - 360usize];
["Alignment of _VipsSourceCustomClass"]
[::std::mem::align_of::<_VipsSourceCustomClass>() - 8usize];
["Offset of field: _VipsSourceCustomClass::parent_class"]
[::std::mem::offset_of!(_VipsSourceCustomClass, parent_class) - 0usize];
["Offset of field: _VipsSourceCustomClass::read"]
[::std::mem::offset_of!(_VipsSourceCustomClass, read) - 344usize];
["Offset of field: _VipsSourceCustomClass::seek"]
[::std::mem::offset_of!(_VipsSourceCustomClass, seek) - 352usize];
};
pub type VipsSourceCustomClass = _VipsSourceCustomClass;
unsafe extern "C" {
pub fn vips_source_custom_get_type() -> GType;
}
unsafe extern "C" {
pub fn vips_source_custom_new() -> *mut VipsSourceCustom;
}
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _VipsGInputStream {
pub parent_instance: GInputStream,
pub source: *mut VipsSource,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _VipsGInputStream"][::std::mem::size_of::<_VipsGInputStream>() - 40usize];
["Alignment of _VipsGInputStream"][::std::mem::align_of::<_VipsGInputStream>() - 8usize];
["Offset of field: _VipsGInputStream::parent_instance"]
[::std::mem::offset_of!(_VipsGInputStream, parent_instance) - 0usize];
["Offset of field: _VipsGInputStream::source"]
[::std::mem::offset_of!(_VipsGInputStream, source) - 32usize];
};
pub type VipsGInputStream = _VipsGInputStream;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _VipsGInputStreamClass {
pub parent_class: GInputStreamClass,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _VipsGInputStreamClass"][::std::mem::size_of::<_VipsGInputStreamClass>() - 248usize];
["Alignment of _VipsGInputStreamClass"]
[::std::mem::align_of::<_VipsGInputStreamClass>() - 8usize];
["Offset of field: _VipsGInputStreamClass::parent_class"]
[::std::mem::offset_of!(_VipsGInputStreamClass, parent_class) - 0usize];
};
pub type VipsGInputStreamClass = _VipsGInputStreamClass;
unsafe extern "C" {
pub fn vips_g_input_stream_get_type() -> GType;
}
unsafe extern "C" {
pub fn vips_g_input_stream_new_from_source(source: *mut VipsSource) -> *mut GInputStream;
}
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _VipsSourceGInputStream {
pub parent_instance: VipsSource,
pub stream: *mut GInputStream,
pub seekable: *mut GSeekable,
pub info: *mut GFileInfo,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _VipsSourceGInputStream"]
[::std::mem::size_of::<_VipsSourceGInputStream>() - 208usize];
["Alignment of _VipsSourceGInputStream"]
[::std::mem::align_of::<_VipsSourceGInputStream>() - 8usize];
["Offset of field: _VipsSourceGInputStream::parent_instance"]
[::std::mem::offset_of!(_VipsSourceGInputStream, parent_instance) - 0usize];
["Offset of field: _VipsSourceGInputStream::stream"]
[::std::mem::offset_of!(_VipsSourceGInputStream, stream) - 184usize];
["Offset of field: _VipsSourceGInputStream::seekable"]
[::std::mem::offset_of!(_VipsSourceGInputStream, seekable) - 192usize];
["Offset of field: _VipsSourceGInputStream::info"]
[::std::mem::offset_of!(_VipsSourceGInputStream, info) - 200usize];
};
pub type VipsSourceGInputStream = _VipsSourceGInputStream;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _VipsSourceGInputStreamClass {
pub parent_class: VipsSourceClass,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _VipsSourceGInputStreamClass"]
[::std::mem::size_of::<_VipsSourceGInputStreamClass>() - 344usize];
["Alignment of _VipsSourceGInputStreamClass"]
[::std::mem::align_of::<_VipsSourceGInputStreamClass>() - 8usize];
["Offset of field: _VipsSourceGInputStreamClass::parent_class"]
[::std::mem::offset_of!(_VipsSourceGInputStreamClass, parent_class) - 0usize];
};
pub type VipsSourceGInputStreamClass = _VipsSourceGInputStreamClass;
unsafe extern "C" {
pub fn vips_source_g_input_stream_get_type() -> GType;
}
unsafe extern "C" {
pub fn vips_source_g_input_stream_new(stream: *mut GInputStream)
-> *mut VipsSourceGInputStream;
}
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _VipsTarget {
pub parent_object: VipsConnection,
pub memory: gboolean,
pub ended: gboolean,
pub memory_buffer: *mut GString,
pub blob: *mut VipsBlob,
pub output_buffer: [::std::os::raw::c_uchar; 8500usize],
pub write_point: ::std::os::raw::c_int,
pub position: gint64,
pub delete_on_close: gboolean,
pub delete_on_close_filename: *mut ::std::os::raw::c_char,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _VipsTarget"][::std::mem::size_of::<_VipsTarget>() - 8656usize];
["Alignment of _VipsTarget"][::std::mem::align_of::<_VipsTarget>() - 8usize];
["Offset of field: _VipsTarget::parent_object"]
[::std::mem::offset_of!(_VipsTarget, parent_object) - 0usize];
["Offset of field: _VipsTarget::memory"]
[::std::mem::offset_of!(_VipsTarget, memory) - 104usize];
["Offset of field: _VipsTarget::ended"][::std::mem::offset_of!(_VipsTarget, ended) - 108usize];
["Offset of field: _VipsTarget::memory_buffer"]
[::std::mem::offset_of!(_VipsTarget, memory_buffer) - 112usize];
["Offset of field: _VipsTarget::blob"][::std::mem::offset_of!(_VipsTarget, blob) - 120usize];
["Offset of field: _VipsTarget::output_buffer"]
[::std::mem::offset_of!(_VipsTarget, output_buffer) - 128usize];
["Offset of field: _VipsTarget::write_point"]
[::std::mem::offset_of!(_VipsTarget, write_point) - 8628usize];
["Offset of field: _VipsTarget::position"]
[::std::mem::offset_of!(_VipsTarget, position) - 8632usize];
["Offset of field: _VipsTarget::delete_on_close"]
[::std::mem::offset_of!(_VipsTarget, delete_on_close) - 8640usize];
["Offset of field: _VipsTarget::delete_on_close_filename"]
[::std::mem::offset_of!(_VipsTarget, delete_on_close_filename) - 8648usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _VipsTargetClass {
pub parent_class: VipsConnectionClass,
pub write: ::std::option::Option<
unsafe extern "C" fn(
target: *mut VipsTarget,
data: *const ::std::os::raw::c_void,
length: size_t,
) -> gint64,
>,
pub finish: ::std::option::Option<unsafe extern "C" fn(target: *mut VipsTarget)>,
pub read: ::std::option::Option<
unsafe extern "C" fn(
target: *mut VipsTarget,
buffer: *mut ::std::os::raw::c_void,
length: size_t,
) -> gint64,
>,
pub seek: ::std::option::Option<
unsafe extern "C" fn(
target: *mut VipsTarget,
offset: gint64,
whence: ::std::os::raw::c_int,
) -> gint64,
>,
pub end: ::std::option::Option<
unsafe extern "C" fn(target: *mut VipsTarget) -> ::std::os::raw::c_int,
>,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _VipsTargetClass"][::std::mem::size_of::<_VipsTargetClass>() - 368usize];
["Alignment of _VipsTargetClass"][::std::mem::align_of::<_VipsTargetClass>() - 8usize];
["Offset of field: _VipsTargetClass::parent_class"]
[::std::mem::offset_of!(_VipsTargetClass, parent_class) - 0usize];
["Offset of field: _VipsTargetClass::write"]
[::std::mem::offset_of!(_VipsTargetClass, write) - 328usize];
["Offset of field: _VipsTargetClass::finish"]
[::std::mem::offset_of!(_VipsTargetClass, finish) - 336usize];
["Offset of field: _VipsTargetClass::read"]
[::std::mem::offset_of!(_VipsTargetClass, read) - 344usize];
["Offset of field: _VipsTargetClass::seek"]
[::std::mem::offset_of!(_VipsTargetClass, seek) - 352usize];
["Offset of field: _VipsTargetClass::end"]
[::std::mem::offset_of!(_VipsTargetClass, end) - 360usize];
};
pub type VipsTargetClass = _VipsTargetClass;
unsafe extern "C" {
pub fn vips_target_get_type() -> GType;
}
unsafe extern "C" {
pub fn vips_target_new_to_descriptor(descriptor: ::std::os::raw::c_int) -> *mut VipsTarget;
}
unsafe extern "C" {
pub fn vips_target_new_to_file(filename: *const ::std::os::raw::c_char) -> *mut VipsTarget;
}
unsafe extern "C" {
pub fn vips_target_new_to_memory() -> *mut VipsTarget;
}
unsafe extern "C" {
pub fn vips_target_new_temp(based_on: *mut VipsTarget) -> *mut VipsTarget;
}
unsafe extern "C" {
pub fn vips_target_write(
target: *mut VipsTarget,
data: *const ::std::os::raw::c_void,
length: size_t,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_target_read(
target: *mut VipsTarget,
buffer: *mut ::std::os::raw::c_void,
length: size_t,
) -> gint64;
}
unsafe extern "C" {
pub fn vips_target_seek(
target: *mut VipsTarget,
offset: gint64,
whence: ::std::os::raw::c_int,
) -> gint64;
}
unsafe extern "C" {
pub fn vips_target_end(target: *mut VipsTarget) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_target_steal(
target: *mut VipsTarget,
length: *mut size_t,
) -> *mut ::std::os::raw::c_uchar;
}
unsafe extern "C" {
pub fn vips_target_steal_text(target: *mut VipsTarget) -> *mut ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn vips_target_putc(
target: *mut VipsTarget,
ch: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_target_writes(
target: *mut VipsTarget,
str_: *const ::std::os::raw::c_char,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_target_writef(
target: *mut VipsTarget,
fmt: *const ::std::os::raw::c_char,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_target_write_amp(
target: *mut VipsTarget,
str_: *const ::std::os::raw::c_char,
) -> ::std::os::raw::c_int;
}
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _VipsTargetCustom {
pub parent_object: VipsTarget,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _VipsTargetCustom"][::std::mem::size_of::<_VipsTargetCustom>() - 8656usize];
["Alignment of _VipsTargetCustom"][::std::mem::align_of::<_VipsTargetCustom>() - 8usize];
["Offset of field: _VipsTargetCustom::parent_object"]
[::std::mem::offset_of!(_VipsTargetCustom, parent_object) - 0usize];
};
pub type VipsTargetCustom = _VipsTargetCustom;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _VipsTargetCustomClass {
pub parent_class: VipsTargetClass,
pub write: ::std::option::Option<
unsafe extern "C" fn(
target: *mut VipsTargetCustom,
data: *const ::std::os::raw::c_void,
length: gint64,
) -> gint64,
>,
pub finish: ::std::option::Option<unsafe extern "C" fn(target: *mut VipsTargetCustom)>,
pub read: ::std::option::Option<
unsafe extern "C" fn(
target: *mut VipsTargetCustom,
buffer: *mut ::std::os::raw::c_void,
length: gint64,
) -> gint64,
>,
pub seek: ::std::option::Option<
unsafe extern "C" fn(
target: *mut VipsTargetCustom,
offset: gint64,
whence: ::std::os::raw::c_int,
) -> gint64,
>,
pub end: ::std::option::Option<
unsafe extern "C" fn(target: *mut VipsTargetCustom) -> ::std::os::raw::c_int,
>,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _VipsTargetCustomClass"][::std::mem::size_of::<_VipsTargetCustomClass>() - 408usize];
["Alignment of _VipsTargetCustomClass"]
[::std::mem::align_of::<_VipsTargetCustomClass>() - 8usize];
["Offset of field: _VipsTargetCustomClass::parent_class"]
[::std::mem::offset_of!(_VipsTargetCustomClass, parent_class) - 0usize];
["Offset of field: _VipsTargetCustomClass::write"]
[::std::mem::offset_of!(_VipsTargetCustomClass, write) - 368usize];
["Offset of field: _VipsTargetCustomClass::finish"]
[::std::mem::offset_of!(_VipsTargetCustomClass, finish) - 376usize];
["Offset of field: _VipsTargetCustomClass::read"]
[::std::mem::offset_of!(_VipsTargetCustomClass, read) - 384usize];
["Offset of field: _VipsTargetCustomClass::seek"]
[::std::mem::offset_of!(_VipsTargetCustomClass, seek) - 392usize];
["Offset of field: _VipsTargetCustomClass::end"]
[::std::mem::offset_of!(_VipsTargetCustomClass, end) - 400usize];
};
pub type VipsTargetCustomClass = _VipsTargetCustomClass;
unsafe extern "C" {
pub fn vips_target_custom_get_type() -> GType;
}
unsafe extern "C" {
pub fn vips_target_custom_new() -> *mut VipsTargetCustom;
}
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _VipsSbuf {
pub parent_object: VipsObject,
pub source: *mut VipsSource,
pub input_buffer: [::std::os::raw::c_uchar; 4097usize],
pub chars_in_buffer: ::std::os::raw::c_int,
pub read_point: ::std::os::raw::c_int,
pub line: [::std::os::raw::c_uchar; 4097usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _VipsSbuf"][::std::mem::size_of::<_VipsSbuf>() - 8296usize];
["Alignment of _VipsSbuf"][::std::mem::align_of::<_VipsSbuf>() - 8usize];
["Offset of field: _VipsSbuf::parent_object"]
[::std::mem::offset_of!(_VipsSbuf, parent_object) - 0usize];
["Offset of field: _VipsSbuf::source"][::std::mem::offset_of!(_VipsSbuf, source) - 80usize];
["Offset of field: _VipsSbuf::input_buffer"]
[::std::mem::offset_of!(_VipsSbuf, input_buffer) - 88usize];
["Offset of field: _VipsSbuf::chars_in_buffer"]
[::std::mem::offset_of!(_VipsSbuf, chars_in_buffer) - 4188usize];
["Offset of field: _VipsSbuf::read_point"]
[::std::mem::offset_of!(_VipsSbuf, read_point) - 4192usize];
["Offset of field: _VipsSbuf::line"][::std::mem::offset_of!(_VipsSbuf, line) - 4196usize];
};
pub type VipsSbuf = _VipsSbuf;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _VipsSbufClass {
pub parent_class: VipsObjectClass,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _VipsSbufClass"][::std::mem::size_of::<_VipsSbufClass>() - 328usize];
["Alignment of _VipsSbufClass"][::std::mem::align_of::<_VipsSbufClass>() - 8usize];
["Offset of field: _VipsSbufClass::parent_class"]
[::std::mem::offset_of!(_VipsSbufClass, parent_class) - 0usize];
};
pub type VipsSbufClass = _VipsSbufClass;
unsafe extern "C" {
pub fn vips_sbuf_get_type() -> GType;
}
unsafe extern "C" {
pub fn vips_sbuf_new_from_source(source: *mut VipsSource) -> *mut VipsSbuf;
}
unsafe extern "C" {
pub fn vips_sbuf_unbuffer(sbuf: *mut VipsSbuf);
}
unsafe extern "C" {
pub fn vips_sbuf_getc(sbuf: *mut VipsSbuf) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_sbuf_ungetc(sbuf: *mut VipsSbuf);
}
unsafe extern "C" {
pub fn vips_sbuf_require(
sbuf: *mut VipsSbuf,
require: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_sbuf_get_line(sbuf: *mut VipsSbuf) -> *const ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn vips_sbuf_get_line_copy(sbuf: *mut VipsSbuf) -> *mut ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn vips_sbuf_get_non_whitespace(sbuf: *mut VipsSbuf) -> *const ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn vips_sbuf_skip_whitespace(sbuf: *mut VipsSbuf) -> ::std::os::raw::c_int;
}
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
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,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _VipsRect"][::std::mem::size_of::<_VipsRect>() - 16usize];
["Alignment of _VipsRect"][::std::mem::align_of::<_VipsRect>() - 4usize];
["Offset of field: _VipsRect::left"][::std::mem::offset_of!(_VipsRect, left) - 0usize];
["Offset of field: _VipsRect::top"][::std::mem::offset_of!(_VipsRect, top) - 4usize];
["Offset of field: _VipsRect::width"][::std::mem::offset_of!(_VipsRect, width) - 8usize];
["Offset of field: _VipsRect::height"][::std::mem::offset_of!(_VipsRect, height) - 12usize];
};
pub type VipsRect = _VipsRect;
unsafe extern "C" {
pub fn vips_rect_isempty(r: *const VipsRect) -> gboolean;
}
unsafe extern "C" {
pub fn vips_rect_includespoint(
r: *const VipsRect,
x: ::std::os::raw::c_int,
y: ::std::os::raw::c_int,
) -> gboolean;
}
unsafe extern "C" {
pub fn vips_rect_includesrect(r1: *const VipsRect, r2: *const VipsRect) -> gboolean;
}
unsafe extern "C" {
pub fn vips_rect_equalsrect(r1: *const VipsRect, r2: *const VipsRect) -> gboolean;
}
unsafe extern "C" {
pub fn vips_rect_overlapsrect(r1: *const VipsRect, r2: *const VipsRect) -> gboolean;
}
unsafe extern "C" {
pub fn vips_rect_marginadjust(r: *mut VipsRect, n: ::std::os::raw::c_int);
}
unsafe extern "C" {
pub fn vips_rect_intersectrect(r1: *const VipsRect, r2: *const VipsRect, out: *mut VipsRect);
}
unsafe extern "C" {
pub fn vips_rect_unionrect(r1: *const VipsRect, r2: *const VipsRect, out: *mut VipsRect);
}
unsafe extern "C" {
pub fn vips_rect_dup(r: *const VipsRect) -> *mut VipsRect;
}
unsafe extern "C" {
pub fn vips_rect_normalise(r: *mut VipsRect);
}
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
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: size_t,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of VipsWindow"][::std::mem::size_of::<VipsWindow>() - 48usize];
["Alignment of VipsWindow"][::std::mem::align_of::<VipsWindow>() - 8usize];
["Offset of field: VipsWindow::ref_count"]
[::std::mem::offset_of!(VipsWindow, ref_count) - 0usize];
["Offset of field: VipsWindow::im"][::std::mem::offset_of!(VipsWindow, im) - 8usize];
["Offset of field: VipsWindow::top"][::std::mem::offset_of!(VipsWindow, top) - 16usize];
["Offset of field: VipsWindow::height"][::std::mem::offset_of!(VipsWindow, height) - 20usize];
["Offset of field: VipsWindow::data"][::std::mem::offset_of!(VipsWindow, data) - 24usize];
["Offset of field: VipsWindow::baseaddr"]
[::std::mem::offset_of!(VipsWindow, baseaddr) - 32usize];
["Offset of field: VipsWindow::length"][::std::mem::offset_of!(VipsWindow, length) - 40usize];
};
unsafe extern "C" {
pub fn vips_window_unref(window: *mut VipsWindow) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_window_print(window: *mut VipsWindow);
}
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct VipsBufferThread {
pub hash: *mut GHashTable,
pub thread: *mut GThread,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of VipsBufferThread"][::std::mem::size_of::<VipsBufferThread>() - 16usize];
["Alignment of VipsBufferThread"][::std::mem::align_of::<VipsBufferThread>() - 8usize];
["Offset of field: VipsBufferThread::hash"]
[::std::mem::offset_of!(VipsBufferThread, hash) - 0usize];
["Offset of field: VipsBufferThread::thread"]
[::std::mem::offset_of!(VipsBufferThread, thread) - 8usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
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,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _VipsBufferCache"][::std::mem::size_of::<_VipsBufferCache>() - 48usize];
["Alignment of _VipsBufferCache"][::std::mem::align_of::<_VipsBufferCache>() - 8usize];
["Offset of field: _VipsBufferCache::buffers"]
[::std::mem::offset_of!(_VipsBufferCache, buffers) - 0usize];
["Offset of field: _VipsBufferCache::thread"]
[::std::mem::offset_of!(_VipsBufferCache, thread) - 8usize];
["Offset of field: _VipsBufferCache::im"]
[::std::mem::offset_of!(_VipsBufferCache, im) - 16usize];
["Offset of field: _VipsBufferCache::buffer_thread"]
[::std::mem::offset_of!(_VipsBufferCache, buffer_thread) - 24usize];
["Offset of field: _VipsBufferCache::reserve"]
[::std::mem::offset_of!(_VipsBufferCache, reserve) - 32usize];
["Offset of field: _VipsBufferCache::n_reserve"]
[::std::mem::offset_of!(_VipsBufferCache, n_reserve) - 40usize];
};
pub type VipsBufferCache = _VipsBufferCache;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
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: size_t,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _VipsBuffer"][::std::mem::size_of::<_VipsBuffer>() - 64usize];
["Alignment of _VipsBuffer"][::std::mem::align_of::<_VipsBuffer>() - 8usize];
["Offset of field: _VipsBuffer::ref_count"]
[::std::mem::offset_of!(_VipsBuffer, ref_count) - 0usize];
["Offset of field: _VipsBuffer::im"][::std::mem::offset_of!(_VipsBuffer, im) - 8usize];
["Offset of field: _VipsBuffer::area"][::std::mem::offset_of!(_VipsBuffer, area) - 16usize];
["Offset of field: _VipsBuffer::done"][::std::mem::offset_of!(_VipsBuffer, done) - 32usize];
["Offset of field: _VipsBuffer::cache"][::std::mem::offset_of!(_VipsBuffer, cache) - 40usize];
["Offset of field: _VipsBuffer::buf"][::std::mem::offset_of!(_VipsBuffer, buf) - 48usize];
["Offset of field: _VipsBuffer::bsize"][::std::mem::offset_of!(_VipsBuffer, bsize) - 56usize];
};
pub type VipsBuffer = _VipsBuffer;
unsafe extern "C" {
pub fn vips_buffer_dump_all();
}
unsafe extern "C" {
pub fn vips_buffer_done(buffer: *mut VipsBuffer);
}
unsafe extern "C" {
pub fn vips_buffer_undone(buffer: *mut VipsBuffer);
}
unsafe extern "C" {
pub fn vips_buffer_unref(buffer: *mut VipsBuffer);
}
unsafe extern "C" {
pub fn vips_buffer_new(im: *mut _VipsImage, area: *mut VipsRect) -> *mut VipsBuffer;
}
unsafe extern "C" {
pub fn vips_buffer_ref(im: *mut _VipsImage, area: *mut VipsRect) -> *mut VipsBuffer;
}
unsafe extern "C" {
pub fn vips_buffer_unref_ref(
buffer: *mut VipsBuffer,
im: *mut _VipsImage,
area: *mut VipsRect,
) -> *mut VipsBuffer;
}
unsafe extern "C" {
pub fn vips_buffer_print(buffer: *mut VipsBuffer);
}
unsafe extern "C" {
pub fn vips__render_shutdown();
}
pub const _RegionType_VIPS_REGION_NONE: _RegionType = 0;
pub const _RegionType_VIPS_REGION_BUFFER: _RegionType = 1;
pub const _RegionType_VIPS_REGION_OTHER_REGION: _RegionType = 2;
pub const _RegionType_VIPS_REGION_OTHER_IMAGE: _RegionType = 3;
pub const _RegionType_VIPS_REGION_WINDOW: _RegionType = 4;
pub type _RegionType = ::std::os::raw::c_uint;
pub use self::_RegionType as RegionType;
unsafe extern "C" {
pub fn vips__region_take_ownership(reg: *mut _VipsRegion);
}
unsafe extern "C" {
pub fn vips__region_check_ownership(reg: *mut _VipsRegion);
}
unsafe 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,
>;
unsafe extern "C" {
pub fn vips_region_fill(
reg: *mut _VipsRegion,
r: *const VipsRect,
fn_: VipsRegionFillFn,
a: *mut ::std::os::raw::c_void,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips__image_wio_output(image: *mut _VipsImage) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips__image_pio_output(image: *mut _VipsImage) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips__argument_get_instance(
argument_class: *mut VipsArgumentClass,
object: *mut VipsObject,
) -> *mut VipsArgumentInstance;
}
unsafe extern "C" {
pub fn vips__argument_table_lookup(
table: *mut VipsArgumentTable,
pspec: *mut GParamSpec,
) -> *mut VipsArgument;
}
unsafe extern "C" {
pub fn vips__demand_hint_array(
image: *mut _VipsImage,
hint: ::std::os::raw::c_int,
in_: *mut *mut _VipsImage,
);
}
unsafe extern "C" {
pub fn vips__image_copy_fields_array(
out: *mut _VipsImage,
in_: *mut *mut _VipsImage,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips__region_count_pixels(
region: *mut _VipsRegion,
nickname: *const ::std::os::raw::c_char,
);
}
unsafe extern "C" {
pub fn vips_region_dump_all();
}
unsafe extern "C" {
pub fn vips_region_prepare_many(
reg: *mut *mut _VipsRegion,
r: *const VipsRect,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips__view_image(image: *mut _VipsImage) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub static mut _vips__argument_id: ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn VipsArrayDouble_unref(array: *mut VipsArrayDouble);
}
unsafe extern "C" {
pub fn VipsArrayImage_unref(array: *mut VipsArrayImage);
}
unsafe extern "C" {
pub static mut vips__thread_profile: gboolean;
}
unsafe extern "C" {
pub fn vips__thread_gate_start(gate_name: *const ::std::os::raw::c_char);
}
unsafe extern "C" {
pub fn vips__thread_gate_stop(gate_name: *const ::std::os::raw::c_char);
}
unsafe extern "C" {
pub fn vips__thread_malloc_free(size: gint64);
}
unsafe 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;
}
unsafe extern "C" {
pub fn vips__file_open_write(
filename: *const ::std::os::raw::c_char,
text_mode: gboolean,
) -> *mut FILE;
}
unsafe extern "C" {
pub fn vips__write(
fd: ::std::os::raw::c_int,
buf: *const ::std::os::raw::c_void,
count: size_t,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips__open(
filename: *const ::std::os::raw::c_char,
flags: ::std::os::raw::c_int,
mode: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips__file_read(
fp: *mut FILE,
name: *const ::std::os::raw::c_char,
length_out: *mut size_t,
) -> *mut ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn vips__get_bytes(
filename: *const ::std::os::raw::c_char,
buf: *mut ::std::os::raw::c_uchar,
len: gint64,
) -> gint64;
}
unsafe extern "C" {
pub fn vips__seek(
fd: ::std::os::raw::c_int,
pos: gint64,
whence: ::std::os::raw::c_int,
) -> gint64;
}
unsafe 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,
);
}
unsafe extern "C" {
pub fn vips__temp_name(format: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char;
}
pub const VipsRegionShrink_VIPS_REGION_SHRINK_MEAN: VipsRegionShrink = 0;
pub const VipsRegionShrink_VIPS_REGION_SHRINK_MEDIAN: VipsRegionShrink = 1;
pub const VipsRegionShrink_VIPS_REGION_SHRINK_MODE: VipsRegionShrink = 2;
pub const VipsRegionShrink_VIPS_REGION_SHRINK_MAX: VipsRegionShrink = 3;
pub const VipsRegionShrink_VIPS_REGION_SHRINK_MIN: VipsRegionShrink = 4;
pub const VipsRegionShrink_VIPS_REGION_SHRINK_NEAREST: VipsRegionShrink = 5;
pub const VipsRegionShrink_VIPS_REGION_SHRINK_LAST: VipsRegionShrink = 6;
pub type VipsRegionShrink = ::std::os::raw::c_uint;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
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,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _VipsRegion"][::std::mem::size_of::<_VipsRegion>() - 168usize];
["Alignment of _VipsRegion"][::std::mem::align_of::<_VipsRegion>() - 8usize];
["Offset of field: _VipsRegion::parent_object"]
[::std::mem::offset_of!(_VipsRegion, parent_object) - 0usize];
["Offset of field: _VipsRegion::im"][::std::mem::offset_of!(_VipsRegion, im) - 80usize];
["Offset of field: _VipsRegion::valid"][::std::mem::offset_of!(_VipsRegion, valid) - 88usize];
["Offset of field: _VipsRegion::type_"][::std::mem::offset_of!(_VipsRegion, type_) - 104usize];
["Offset of field: _VipsRegion::data"][::std::mem::offset_of!(_VipsRegion, data) - 112usize];
["Offset of field: _VipsRegion::bpl"][::std::mem::offset_of!(_VipsRegion, bpl) - 120usize];
["Offset of field: _VipsRegion::seq"][::std::mem::offset_of!(_VipsRegion, seq) - 128usize];
["Offset of field: _VipsRegion::thread"]
[::std::mem::offset_of!(_VipsRegion, thread) - 136usize];
["Offset of field: _VipsRegion::window"]
[::std::mem::offset_of!(_VipsRegion, window) - 144usize];
["Offset of field: _VipsRegion::buffer"]
[::std::mem::offset_of!(_VipsRegion, buffer) - 152usize];
["Offset of field: _VipsRegion::invalid"]
[::std::mem::offset_of!(_VipsRegion, invalid) - 160usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _VipsRegionClass {
pub parent_class: VipsObjectClass,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _VipsRegionClass"][::std::mem::size_of::<_VipsRegionClass>() - 328usize];
["Alignment of _VipsRegionClass"][::std::mem::align_of::<_VipsRegionClass>() - 8usize];
["Offset of field: _VipsRegionClass::parent_class"]
[::std::mem::offset_of!(_VipsRegionClass, parent_class) - 0usize];
};
pub type VipsRegionClass = _VipsRegionClass;
unsafe extern "C" {
pub fn vips_region_get_type() -> GType;
}
unsafe extern "C" {
pub fn vips_region_new(image: *mut VipsImage) -> *mut VipsRegion;
}
unsafe extern "C" {
pub fn vips_region_buffer(reg: *mut VipsRegion, r: *const VipsRect) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_region_image(reg: *mut VipsRegion, r: *const VipsRect) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_region_region(
reg: *mut VipsRegion,
dest: *mut VipsRegion,
r: *const VipsRect,
x: ::std::os::raw::c_int,
y: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_region_equalsregion(
reg1: *mut VipsRegion,
reg2: *mut VipsRegion,
) -> ::std::os::raw::c_int;
}
unsafe 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;
}
unsafe extern "C" {
pub fn vips_region_paint(
reg: *mut VipsRegion,
r: *const VipsRect,
value: ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn vips_region_paint_pel(reg: *mut VipsRegion, r: *const VipsRect, ink: *const VipsPel);
}
unsafe extern "C" {
pub fn vips_region_black(reg: *mut VipsRegion);
}
unsafe extern "C" {
pub fn vips_region_copy(
reg: *mut VipsRegion,
dest: *mut VipsRegion,
r: *const VipsRect,
x: ::std::os::raw::c_int,
y: ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn vips_region_shrink_method(
from: *mut VipsRegion,
to: *mut VipsRegion,
target: *const VipsRect,
method: VipsRegionShrink,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_region_shrink(
from: *mut VipsRegion,
to: *mut VipsRegion,
target: *const VipsRect,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_region_prepare(reg: *mut VipsRegion, r: *const VipsRect) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_region_prepare_to(
reg: *mut VipsRegion,
dest: *mut VipsRegion,
r: *const VipsRect,
x: ::std::os::raw::c_int,
y: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_region_fetch(
region: *mut VipsRegion,
left: ::std::os::raw::c_int,
top: ::std::os::raw::c_int,
width: ::std::os::raw::c_int,
height: ::std::os::raw::c_int,
len: *mut size_t,
) -> *mut VipsPel;
}
unsafe extern "C" {
pub fn vips_region_width(region: *mut VipsRegion) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_region_height(region: *mut VipsRegion) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_region_invalidate(reg: *mut VipsRegion);
}
pub const VipsDemandStyle_VIPS_DEMAND_STYLE_ERROR: VipsDemandStyle = -1;
pub const VipsDemandStyle_VIPS_DEMAND_STYLE_SMALLTILE: VipsDemandStyle = 0;
pub const VipsDemandStyle_VIPS_DEMAND_STYLE_FATSTRIP: VipsDemandStyle = 1;
pub const VipsDemandStyle_VIPS_DEMAND_STYLE_THINSTRIP: VipsDemandStyle = 2;
pub const VipsDemandStyle_VIPS_DEMAND_STYLE_ANY: VipsDemandStyle = 3;
pub type VipsDemandStyle = ::std::os::raw::c_int;
pub const VipsImageType_VIPS_IMAGE_ERROR: VipsImageType = -1;
pub const VipsImageType_VIPS_IMAGE_NONE: VipsImageType = 0;
pub const VipsImageType_VIPS_IMAGE_SETBUF: VipsImageType = 1;
pub const VipsImageType_VIPS_IMAGE_SETBUF_FOREIGN: VipsImageType = 2;
pub const VipsImageType_VIPS_IMAGE_OPENIN: VipsImageType = 3;
pub const VipsImageType_VIPS_IMAGE_MMAPIN: VipsImageType = 4;
pub const VipsImageType_VIPS_IMAGE_MMAPINRW: VipsImageType = 5;
pub const VipsImageType_VIPS_IMAGE_OPENOUT: VipsImageType = 6;
pub const VipsImageType_VIPS_IMAGE_PARTIAL: VipsImageType = 7;
pub type VipsImageType = ::std::os::raw::c_int;
pub const VipsInterpretation_VIPS_INTERPRETATION_ERROR: VipsInterpretation = -1;
pub const VipsInterpretation_VIPS_INTERPRETATION_MULTIBAND: VipsInterpretation = 0;
pub const VipsInterpretation_VIPS_INTERPRETATION_B_W: VipsInterpretation = 1;
pub const VipsInterpretation_VIPS_INTERPRETATION_HISTOGRAM: VipsInterpretation = 10;
pub const VipsInterpretation_VIPS_INTERPRETATION_XYZ: VipsInterpretation = 12;
pub const VipsInterpretation_VIPS_INTERPRETATION_LAB: VipsInterpretation = 13;
pub const VipsInterpretation_VIPS_INTERPRETATION_CMYK: VipsInterpretation = 15;
pub const VipsInterpretation_VIPS_INTERPRETATION_LABQ: VipsInterpretation = 16;
pub const VipsInterpretation_VIPS_INTERPRETATION_RGB: VipsInterpretation = 17;
pub const VipsInterpretation_VIPS_INTERPRETATION_CMC: VipsInterpretation = 18;
pub const VipsInterpretation_VIPS_INTERPRETATION_LCH: VipsInterpretation = 19;
pub const VipsInterpretation_VIPS_INTERPRETATION_LABS: VipsInterpretation = 21;
pub const VipsInterpretation_VIPS_INTERPRETATION_sRGB: VipsInterpretation = 22;
pub const VipsInterpretation_VIPS_INTERPRETATION_YXY: VipsInterpretation = 23;
pub const VipsInterpretation_VIPS_INTERPRETATION_FOURIER: VipsInterpretation = 24;
pub const VipsInterpretation_VIPS_INTERPRETATION_RGB16: VipsInterpretation = 25;
pub const VipsInterpretation_VIPS_INTERPRETATION_GREY16: VipsInterpretation = 26;
pub const VipsInterpretation_VIPS_INTERPRETATION_MATRIX: VipsInterpretation = 27;
pub const VipsInterpretation_VIPS_INTERPRETATION_scRGB: VipsInterpretation = 28;
pub const VipsInterpretation_VIPS_INTERPRETATION_HSV: VipsInterpretation = 29;
pub const VipsInterpretation_VIPS_INTERPRETATION_LAST: VipsInterpretation = 30;
pub type VipsInterpretation = ::std::os::raw::c_int;
pub const VipsBandFormat_VIPS_FORMAT_NOTSET: VipsBandFormat = -1;
pub const VipsBandFormat_VIPS_FORMAT_UCHAR: VipsBandFormat = 0;
pub const VipsBandFormat_VIPS_FORMAT_CHAR: VipsBandFormat = 1;
pub const VipsBandFormat_VIPS_FORMAT_USHORT: VipsBandFormat = 2;
pub const VipsBandFormat_VIPS_FORMAT_SHORT: VipsBandFormat = 3;
pub const VipsBandFormat_VIPS_FORMAT_UINT: VipsBandFormat = 4;
pub const VipsBandFormat_VIPS_FORMAT_INT: VipsBandFormat = 5;
pub const VipsBandFormat_VIPS_FORMAT_FLOAT: VipsBandFormat = 6;
pub const VipsBandFormat_VIPS_FORMAT_COMPLEX: VipsBandFormat = 7;
pub const VipsBandFormat_VIPS_FORMAT_DOUBLE: VipsBandFormat = 8;
pub const VipsBandFormat_VIPS_FORMAT_DPCOMPLEX: VipsBandFormat = 9;
pub const VipsBandFormat_VIPS_FORMAT_LAST: VipsBandFormat = 10;
pub type VipsBandFormat = ::std::os::raw::c_int;
pub const VipsCoding_VIPS_CODING_ERROR: VipsCoding = -1;
pub const VipsCoding_VIPS_CODING_NONE: VipsCoding = 0;
pub const VipsCoding_VIPS_CODING_LABQ: VipsCoding = 2;
pub const VipsCoding_VIPS_CODING_RAD: VipsCoding = 6;
pub const VipsCoding_VIPS_CODING_LAST: VipsCoding = 7;
pub type VipsCoding = ::std::os::raw::c_int;
pub const VipsAccess_VIPS_ACCESS_RANDOM: VipsAccess = 0;
pub const VipsAccess_VIPS_ACCESS_SEQUENTIAL: VipsAccess = 1;
pub const VipsAccess_VIPS_ACCESS_SEQUENTIAL_UNBUFFERED: VipsAccess = 2;
pub const VipsAccess_VIPS_ACCESS_LAST: VipsAccess = 3;
pub type VipsAccess = ::std::os::raw::c_uint;
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, PartialEq, Eq)]
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,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _VipsProgress"][::std::mem::size_of::<_VipsProgress>() - 48usize];
["Alignment of _VipsProgress"][::std::mem::align_of::<_VipsProgress>() - 8usize];
["Offset of field: _VipsProgress::im"][::std::mem::offset_of!(_VipsProgress, im) - 0usize];
["Offset of field: _VipsProgress::run"][::std::mem::offset_of!(_VipsProgress, run) - 8usize];
["Offset of field: _VipsProgress::eta"][::std::mem::offset_of!(_VipsProgress, eta) - 12usize];
["Offset of field: _VipsProgress::tpels"]
[::std::mem::offset_of!(_VipsProgress, tpels) - 16usize];
["Offset of field: _VipsProgress::npels"]
[::std::mem::offset_of!(_VipsProgress, npels) - 24usize];
["Offset of field: _VipsProgress::percent"]
[::std::mem::offset_of!(_VipsProgress, percent) - 32usize];
["Offset of field: _VipsProgress::start"]
[::std::mem::offset_of!(_VipsProgress, start) - 40usize];
};
pub type VipsProgress = _VipsProgress;
#[repr(C)]
#[derive(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: size_t,
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: 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,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _VipsImage"][::std::mem::size_of::<_VipsImage>() - 392usize];
["Alignment of _VipsImage"][::std::mem::align_of::<_VipsImage>() - 8usize];
["Offset of field: _VipsImage::parent_instance"]
[::std::mem::offset_of!(_VipsImage, parent_instance) - 0usize];
["Offset of field: _VipsImage::Xsize"][::std::mem::offset_of!(_VipsImage, Xsize) - 80usize];
["Offset of field: _VipsImage::Ysize"][::std::mem::offset_of!(_VipsImage, Ysize) - 84usize];
["Offset of field: _VipsImage::Bands"][::std::mem::offset_of!(_VipsImage, Bands) - 88usize];
["Offset of field: _VipsImage::BandFmt"][::std::mem::offset_of!(_VipsImage, BandFmt) - 92usize];
["Offset of field: _VipsImage::Coding"][::std::mem::offset_of!(_VipsImage, Coding) - 96usize];
["Offset of field: _VipsImage::Type"][::std::mem::offset_of!(_VipsImage, Type) - 100usize];
["Offset of field: _VipsImage::Xres"][::std::mem::offset_of!(_VipsImage, Xres) - 104usize];
["Offset of field: _VipsImage::Yres"][::std::mem::offset_of!(_VipsImage, Yres) - 112usize];
["Offset of field: _VipsImage::Xoffset"]
[::std::mem::offset_of!(_VipsImage, Xoffset) - 120usize];
["Offset of field: _VipsImage::Yoffset"]
[::std::mem::offset_of!(_VipsImage, Yoffset) - 124usize];
["Offset of field: _VipsImage::Length"][::std::mem::offset_of!(_VipsImage, Length) - 128usize];
["Offset of field: _VipsImage::Compression"]
[::std::mem::offset_of!(_VipsImage, Compression) - 132usize];
["Offset of field: _VipsImage::Level"][::std::mem::offset_of!(_VipsImage, Level) - 134usize];
["Offset of field: _VipsImage::Bbits"][::std::mem::offset_of!(_VipsImage, Bbits) - 136usize];
["Offset of field: _VipsImage::time"][::std::mem::offset_of!(_VipsImage, time) - 144usize];
["Offset of field: _VipsImage::Hist"][::std::mem::offset_of!(_VipsImage, Hist) - 152usize];
["Offset of field: _VipsImage::filename"]
[::std::mem::offset_of!(_VipsImage, filename) - 160usize];
["Offset of field: _VipsImage::data"][::std::mem::offset_of!(_VipsImage, data) - 168usize];
["Offset of field: _VipsImage::kill"][::std::mem::offset_of!(_VipsImage, kill) - 176usize];
["Offset of field: _VipsImage::Xres_float"]
[::std::mem::offset_of!(_VipsImage, Xres_float) - 180usize];
["Offset of field: _VipsImage::Yres_float"]
[::std::mem::offset_of!(_VipsImage, Yres_float) - 184usize];
["Offset of field: _VipsImage::mode"][::std::mem::offset_of!(_VipsImage, mode) - 192usize];
["Offset of field: _VipsImage::dtype"][::std::mem::offset_of!(_VipsImage, dtype) - 200usize];
["Offset of field: _VipsImage::fd"][::std::mem::offset_of!(_VipsImage, fd) - 204usize];
["Offset of field: _VipsImage::baseaddr"]
[::std::mem::offset_of!(_VipsImage, baseaddr) - 208usize];
["Offset of field: _VipsImage::length"][::std::mem::offset_of!(_VipsImage, length) - 216usize];
["Offset of field: _VipsImage::magic"][::std::mem::offset_of!(_VipsImage, magic) - 224usize];
["Offset of field: _VipsImage::start_fn"]
[::std::mem::offset_of!(_VipsImage, start_fn) - 232usize];
["Offset of field: _VipsImage::generate_fn"]
[::std::mem::offset_of!(_VipsImage, generate_fn) - 240usize];
["Offset of field: _VipsImage::stop_fn"]
[::std::mem::offset_of!(_VipsImage, stop_fn) - 248usize];
["Offset of field: _VipsImage::client1"]
[::std::mem::offset_of!(_VipsImage, client1) - 256usize];
["Offset of field: _VipsImage::client2"]
[::std::mem::offset_of!(_VipsImage, client2) - 264usize];
["Offset of field: _VipsImage::sslock"][::std::mem::offset_of!(_VipsImage, sslock) - 272usize];
["Offset of field: _VipsImage::regions"]
[::std::mem::offset_of!(_VipsImage, regions) - 280usize];
["Offset of field: _VipsImage::dhint"][::std::mem::offset_of!(_VipsImage, dhint) - 288usize];
["Offset of field: _VipsImage::meta"][::std::mem::offset_of!(_VipsImage, meta) - 296usize];
["Offset of field: _VipsImage::meta_traverse"]
[::std::mem::offset_of!(_VipsImage, meta_traverse) - 304usize];
["Offset of field: _VipsImage::sizeof_header"]
[::std::mem::offset_of!(_VipsImage, sizeof_header) - 312usize];
["Offset of field: _VipsImage::windows"]
[::std::mem::offset_of!(_VipsImage, windows) - 320usize];
["Offset of field: _VipsImage::upstream"]
[::std::mem::offset_of!(_VipsImage, upstream) - 328usize];
["Offset of field: _VipsImage::downstream"]
[::std::mem::offset_of!(_VipsImage, downstream) - 336usize];
["Offset of field: _VipsImage::serial"][::std::mem::offset_of!(_VipsImage, serial) - 344usize];
["Offset of field: _VipsImage::history_list"]
[::std::mem::offset_of!(_VipsImage, history_list) - 352usize];
["Offset of field: _VipsImage::progress_signal"]
[::std::mem::offset_of!(_VipsImage, progress_signal) - 360usize];
["Offset of field: _VipsImage::file_length"]
[::std::mem::offset_of!(_VipsImage, file_length) - 368usize];
["Offset of field: _VipsImage::hint_set"]
[::std::mem::offset_of!(_VipsImage, hint_set) - 376usize];
["Offset of field: _VipsImage::delete_on_close"]
[::std::mem::offset_of!(_VipsImage, delete_on_close) - 380usize];
["Offset of field: _VipsImage::delete_on_close_filename"]
[::std::mem::offset_of!(_VipsImage, delete_on_close_filename) - 384usize];
};
impl ::std::fmt::Debug for _VipsImage {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
write!(
f,
"_VipsImage {{ parent_instance: {:?}, Xsize: {:?}, Ysize: {:?}, Bands: {:?}, BandFmt: {:?}, Coding: {:?}, Type: {:?}, Xres: {:?}, Yres: {:?}, Xoffset: {:?}, Yoffset: {:?}, Length: {:?}, Compression: {:?}, Level: {:?}, Bbits: {:?}, time: {:?}, Hist: {:?}, filename: {:?}, data: {:?}, kill: {:?}, Xres_float: {:?}, Yres_float: {:?}, mode: {:?}, dtype: {:?}, fd: {:?}, baseaddr: {:?}, length: {:?}, magic: {:?}, start_fn: {:?}, generate_fn: {:?}, stop_fn: {:?}, client1: {:?}, client2: {:?}, sslock: {:?}, regions: {:?}, dhint: {:?}, meta: {:?}, meta_traverse: {:?}, sizeof_header: {:?}, windows: {:?}, upstream: {:?}, downstream: {:?}, serial: {:?}, history_list: {:?}, progress_signal: {:?}, file_length: {:?}, hint_set: {:?}, delete_on_close: {:?}, delete_on_close_filename: {:?} }}",
self.parent_instance,
self.Xsize,
self.Ysize,
self.Bands,
self.BandFmt,
self.Coding,
self.Type,
self.Xres,
self.Yres,
self.Xoffset,
self.Yoffset,
self.Length,
self.Compression,
self.Level,
self.Bbits,
self.time,
self.Hist,
self.filename,
self.data,
self.kill,
self.Xres_float,
self.Yres_float,
self.mode,
self.dtype,
self.fd,
self.baseaddr,
self.length,
self.magic,
self.start_fn,
self.generate_fn,
self.stop_fn,
self.client1,
self.client2,
self.sslock,
self.regions,
self.dhint,
self.meta,
self.meta_traverse,
self.sizeof_header,
self.windows,
self.upstream,
self.downstream,
self.serial,
self.history_list,
self.progress_signal,
self.file_length,
self.hint_set,
self.delete_on_close,
self.delete_on_close_filename
)
}
}
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _VipsImageClass {
pub parent_class: VipsObjectClass,
pub preeval: ::std::option::Option<
unsafe extern "C" fn(
image: *mut VipsImage,
progress: *mut VipsProgress,
data: *mut ::std::os::raw::c_void,
),
>,
pub eval: ::std::option::Option<
unsafe extern "C" fn(
image: *mut VipsImage,
progress: *mut VipsProgress,
data: *mut ::std::os::raw::c_void,
),
>,
pub posteval: ::std::option::Option<
unsafe extern "C" fn(
image: *mut VipsImage,
progress: *mut VipsProgress,
data: *mut ::std::os::raw::c_void,
),
>,
pub written: ::std::option::Option<
unsafe extern "C" fn(
image: *mut VipsImage,
result: *mut ::std::os::raw::c_int,
data: *mut ::std::os::raw::c_void,
),
>,
pub invalidate: ::std::option::Option<
unsafe extern "C" fn(image: *mut VipsImage, data: *mut ::std::os::raw::c_void),
>,
pub minimise: ::std::option::Option<
unsafe extern "C" fn(image: *mut VipsImage, data: *mut ::std::os::raw::c_void),
>,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _VipsImageClass"][::std::mem::size_of::<_VipsImageClass>() - 376usize];
["Alignment of _VipsImageClass"][::std::mem::align_of::<_VipsImageClass>() - 8usize];
["Offset of field: _VipsImageClass::parent_class"]
[::std::mem::offset_of!(_VipsImageClass, parent_class) - 0usize];
["Offset of field: _VipsImageClass::preeval"]
[::std::mem::offset_of!(_VipsImageClass, preeval) - 328usize];
["Offset of field: _VipsImageClass::eval"]
[::std::mem::offset_of!(_VipsImageClass, eval) - 336usize];
["Offset of field: _VipsImageClass::posteval"]
[::std::mem::offset_of!(_VipsImageClass, posteval) - 344usize];
["Offset of field: _VipsImageClass::written"]
[::std::mem::offset_of!(_VipsImageClass, written) - 352usize];
["Offset of field: _VipsImageClass::invalidate"]
[::std::mem::offset_of!(_VipsImageClass, invalidate) - 360usize];
["Offset of field: _VipsImageClass::minimise"]
[::std::mem::offset_of!(_VipsImageClass, minimise) - 368usize];
};
pub type VipsImageClass = _VipsImageClass;
unsafe extern "C" {
pub fn vips_image_get_type() -> GType;
}
unsafe extern "C" {
pub fn vips_progress_set(progress: gboolean);
}
unsafe extern "C" {
pub fn vips_image_invalidate_all(image: *mut VipsImage);
}
unsafe extern "C" {
pub fn vips_image_minimise_all(image: *mut VipsImage);
}
unsafe extern "C" {
pub fn vips_image_is_sequential(image: *mut VipsImage) -> gboolean;
}
unsafe extern "C" {
pub fn vips_image_preeval(image: *mut VipsImage);
}
unsafe extern "C" {
pub fn vips_image_eval(image: *mut VipsImage, processed: guint64);
}
unsafe extern "C" {
pub fn vips_image_posteval(image: *mut VipsImage);
}
unsafe extern "C" {
pub fn vips_image_set_progress(image: *mut VipsImage, progress: gboolean);
}
unsafe extern "C" {
pub fn vips_image_iskilled(image: *mut VipsImage) -> gboolean;
}
unsafe extern "C" {
pub fn vips_image_set_kill(image: *mut VipsImage, kill: gboolean);
}
unsafe extern "C" {
pub fn vips_filename_get_filename(
vips_filename: *const ::std::os::raw::c_char,
) -> *mut ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn vips_filename_get_options(
vips_filename: *const ::std::os::raw::c_char,
) -> *mut ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn vips_image_new() -> *mut VipsImage;
}
unsafe extern "C" {
pub fn vips_image_new_memory() -> *mut VipsImage;
}
unsafe extern "C" {
pub fn vips_image_memory() -> *mut VipsImage;
}
unsafe extern "C" {
pub fn vips_image_new_from_file(name: *const ::std::os::raw::c_char, ...) -> *mut VipsImage;
}
unsafe extern "C" {
pub fn vips_image_new_from_file_RW(filename: *const ::std::os::raw::c_char) -> *mut VipsImage;
}
unsafe 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;
}
unsafe extern "C" {
pub fn vips_image_new_from_memory(
data: *const ::std::os::raw::c_void,
size: size_t,
width: ::std::os::raw::c_int,
height: ::std::os::raw::c_int,
bands: ::std::os::raw::c_int,
format: VipsBandFormat,
) -> *mut VipsImage;
}
unsafe extern "C" {
pub fn vips_image_new_from_memory_copy(
data: *const ::std::os::raw::c_void,
size: size_t,
width: ::std::os::raw::c_int,
height: ::std::os::raw::c_int,
bands: ::std::os::raw::c_int,
format: VipsBandFormat,
) -> *mut VipsImage;
}
unsafe extern "C" {
pub fn vips_image_new_from_buffer(
buf: *const ::std::os::raw::c_void,
len: size_t,
option_string: *const ::std::os::raw::c_char,
...
) -> *mut VipsImage;
}
unsafe extern "C" {
pub fn vips_image_new_from_source(
source: *mut VipsSource,
option_string: *const ::std::os::raw::c_char,
...
) -> *mut VipsImage;
}
unsafe extern "C" {
pub fn vips_image_new_matrix(
width: ::std::os::raw::c_int,
height: ::std::os::raw::c_int,
) -> *mut VipsImage;
}
unsafe extern "C" {
pub fn vips_image_new_matrixv(
width: ::std::os::raw::c_int,
height: ::std::os::raw::c_int,
...
) -> *mut VipsImage;
}
unsafe 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;
}
unsafe 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;
}
unsafe extern "C" {
pub fn vips_image_new_from_image(
image: *mut VipsImage,
c: *const f64,
n: ::std::os::raw::c_int,
) -> *mut VipsImage;
}
unsafe extern "C" {
pub fn vips_image_new_from_image1(image: *mut VipsImage, c: f64) -> *mut VipsImage;
}
unsafe extern "C" {
pub fn vips_image_set_delete_on_close(image: *mut VipsImage, delete_on_close: gboolean);
}
unsafe extern "C" {
pub fn vips_get_disc_threshold() -> guint64;
}
unsafe extern "C" {
pub fn vips_image_new_temp_file(format: *const ::std::os::raw::c_char) -> *mut VipsImage;
}
unsafe extern "C" {
pub fn vips_image_write(image: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_image_write_to_file(
image: *mut VipsImage,
name: *const ::std::os::raw::c_char,
...
) -> ::std::os::raw::c_int;
}
unsafe 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 size_t,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_image_write_to_target(
in_: *mut VipsImage,
suffix: *const ::std::os::raw::c_char,
target: *mut VipsTarget,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_image_write_to_memory(
in_: *mut VipsImage,
size: *mut size_t,
) -> *mut ::std::os::raw::c_void;
}
unsafe 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;
}
unsafe extern "C" {
pub fn vips_image_decode(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_image_encode(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
coding: VipsCoding,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_image_isMSBfirst(image: *mut VipsImage) -> gboolean;
}
unsafe extern "C" {
pub fn vips_image_isfile(image: *mut VipsImage) -> gboolean;
}
unsafe extern "C" {
pub fn vips_image_ispartial(image: *mut VipsImage) -> gboolean;
}
unsafe extern "C" {
pub fn vips_image_hasalpha(image: *mut VipsImage) -> gboolean;
}
unsafe extern "C" {
pub fn vips_image_copy_memory(image: *mut VipsImage) -> *mut VipsImage;
}
unsafe extern "C" {
pub fn vips_image_wio_input(image: *mut VipsImage) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_image_pio_input(image: *mut VipsImage) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_image_pio_output(image: *mut VipsImage) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_image_inplace(image: *mut VipsImage) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_image_write_prepare(image: *mut VipsImage) -> ::std::os::raw::c_int;
}
unsafe 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;
}
unsafe extern "C" {
pub fn vips_band_format_isint(format: VipsBandFormat) -> gboolean;
}
unsafe extern "C" {
pub fn vips_band_format_isuint(format: VipsBandFormat) -> gboolean;
}
unsafe extern "C" {
pub fn vips_band_format_is8bit(format: VipsBandFormat) -> gboolean;
}
unsafe extern "C" {
pub fn vips_band_format_isfloat(format: VipsBandFormat) -> gboolean;
}
unsafe extern "C" {
pub fn vips_band_format_iscomplex(format: VipsBandFormat) -> gboolean;
}
unsafe extern "C" {
pub fn vips_system(cmd_format: *const ::std::os::raw::c_char, ...) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_array_image_new(
array: *mut *mut VipsImage,
n: ::std::os::raw::c_int,
) -> *mut VipsArrayImage;
}
unsafe extern "C" {
pub fn vips_array_image_newv(n: ::std::os::raw::c_int, ...) -> *mut VipsArrayImage;
}
unsafe extern "C" {
pub fn vips_array_image_new_from_string(
string: *const ::std::os::raw::c_char,
flags: VipsAccess,
) -> *mut VipsArrayImage;
}
unsafe extern "C" {
pub fn vips_array_image_empty() -> *mut VipsArrayImage;
}
unsafe extern "C" {
pub fn vips_array_image_append(
array: *mut VipsArrayImage,
image: *mut VipsImage,
) -> *mut VipsArrayImage;
}
unsafe extern "C" {
pub fn vips_array_image_get(
array: *mut VipsArrayImage,
n: *mut ::std::os::raw::c_int,
) -> *mut *mut VipsImage;
}
unsafe extern "C" {
pub fn vips_value_get_array_image(
value: *const GValue,
n: *mut ::std::os::raw::c_int,
) -> *mut *mut VipsImage;
}
unsafe extern "C" {
pub fn vips_value_set_array_image(value: *mut GValue, n: ::std::os::raw::c_int);
}
unsafe extern "C" {
pub fn vips_reorder_prepare_many(
image: *mut VipsImage,
regions: *mut *mut VipsRegion,
r: *mut VipsRect,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_reorder_margin_hint(image: *mut VipsImage, margin: ::std::os::raw::c_int);
}
unsafe extern "C" {
pub fn vips_image_free_buffer(image: *mut VipsImage, buffer: *mut ::std::os::raw::c_void);
}
pub type VipsImage_autoptr = *mut VipsImage;
pub type VipsImage_listautoptr = *mut GList;
pub type VipsImage_slistautoptr = *mut GSList;
pub type VipsImage_queueautoptr = *mut GQueue;
pub type VipsObject_autoptr = *mut VipsObject;
pub type VipsObject_listautoptr = *mut GList;
pub type VipsObject_slistautoptr = *mut GSList;
pub type VipsObject_queueautoptr = *mut GQueue;
pub type VipsRegion_autoptr = *mut VipsRegion;
pub type VipsRegion_listautoptr = *mut GList;
pub type VipsRegion_slistautoptr = *mut GSList;
pub type VipsRegion_queueautoptr = *mut GQueue;
pub type VipsConnection_autoptr = *mut VipsConnection;
pub type VipsConnection_listautoptr = *mut GList;
pub type VipsConnection_slistautoptr = *mut GSList;
pub type VipsConnection_queueautoptr = *mut GQueue;
pub type VipsSource_autoptr = *mut VipsSource;
pub type VipsSource_listautoptr = *mut GList;
pub type VipsSource_slistautoptr = *mut GSList;
pub type VipsSource_queueautoptr = *mut GQueue;
pub type VipsSourceCustom_autoptr = *mut VipsSourceCustom;
pub type VipsSourceCustom_listautoptr = *mut GList;
pub type VipsSourceCustom_slistautoptr = *mut GSList;
pub type VipsSourceCustom_queueautoptr = *mut GQueue;
pub type VipsGInputStream_autoptr = *mut VipsGInputStream;
pub type VipsGInputStream_listautoptr = *mut GList;
pub type VipsGInputStream_slistautoptr = *mut GSList;
pub type VipsGInputStream_queueautoptr = *mut GQueue;
pub type VipsSourceGInputStream_autoptr = *mut VipsSourceGInputStream;
pub type VipsSourceGInputStream_listautoptr = *mut GList;
pub type VipsSourceGInputStream_slistautoptr = *mut GSList;
pub type VipsSourceGInputStream_queueautoptr = *mut GQueue;
pub type VipsTarget_autoptr = *mut VipsTarget;
pub type VipsTarget_listautoptr = *mut GList;
pub type VipsTarget_slistautoptr = *mut GSList;
pub type VipsTarget_queueautoptr = *mut GQueue;
pub type VipsTargetCustom_autoptr = *mut VipsTargetCustom;
pub type VipsTargetCustom_listautoptr = *mut GList;
pub type VipsTargetCustom_slistautoptr = *mut GSList;
pub type VipsTargetCustom_queueautoptr = *mut GQueue;
pub type VipsSbuf_autoptr = *mut VipsSbuf;
pub type VipsSbuf_listautoptr = *mut GList;
pub type VipsSbuf_slistautoptr = *mut GSList;
pub type VipsSbuf_queueautoptr = *mut GQueue;
pub type VipsInterpolate_autoptr = *mut VipsInterpolate;
pub type VipsInterpolate_listautoptr = *mut GList;
pub type VipsInterpolate_slistautoptr = *mut GSList;
pub type VipsInterpolate_queueautoptr = *mut GQueue;
pub type VipsOperation_autoptr = *mut VipsOperation;
pub type VipsOperation_listautoptr = *mut GList;
pub type VipsOperation_slistautoptr = *mut GSList;
pub type VipsOperation_queueautoptr = *mut GQueue;
pub type VipsArrayDouble_autoptr = *mut VipsArrayDouble;
pub type VipsArrayDouble_listautoptr = *mut GList;
pub type VipsArrayDouble_slistautoptr = *mut GSList;
pub type VipsArrayDouble_queueautoptr = *mut GQueue;
pub type VipsArrayImage_autoptr = *mut VipsArrayImage;
pub type VipsArrayImage_listautoptr = *mut GList;
pub type VipsArrayImage_slistautoptr = *mut GSList;
pub type VipsArrayImage_queueautoptr = *mut GQueue;
unsafe extern "C" {
pub fn vips_malloc(object: *mut VipsObject, size: size_t) -> *mut ::std::os::raw::c_void;
}
unsafe extern "C" {
pub fn vips_strdup(
object: *mut VipsObject,
str_: *const ::std::os::raw::c_char,
) -> *mut ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn vips_tracked_free(s: *mut ::std::os::raw::c_void);
}
unsafe extern "C" {
pub fn vips_tracked_aligned_free(s: *mut ::std::os::raw::c_void);
}
unsafe extern "C" {
pub fn vips_tracked_malloc(size: size_t) -> *mut ::std::os::raw::c_void;
}
unsafe extern "C" {
pub fn vips_tracked_aligned_alloc(size: size_t, align: size_t) -> *mut ::std::os::raw::c_void;
}
unsafe extern "C" {
pub fn vips_tracked_get_mem() -> size_t;
}
unsafe extern "C" {
pub fn vips_tracked_get_mem_highwater() -> size_t;
}
unsafe extern "C" {
pub fn vips_tracked_get_allocs() -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_tracked_open(
pathname: *const ::std::os::raw::c_char,
flags: ::std::os::raw::c_int,
mode: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_tracked_close(fd: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_tracked_get_files() -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_error_buffer() -> *const ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn vips_error_buffer_copy() -> *mut ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn vips_error_clear();
}
unsafe extern "C" {
pub fn vips_error_freeze();
}
unsafe extern "C" {
pub fn vips_error_thaw();
}
unsafe extern "C" {
pub fn vips_error(
domain: *const ::std::os::raw::c_char,
fmt: *const ::std::os::raw::c_char,
...
);
}
unsafe extern "C" {
pub fn vips_verror(
domain: *const ::std::os::raw::c_char,
fmt: *const ::std::os::raw::c_char,
ap: va_list,
);
}
unsafe 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,
...
);
}
unsafe 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: va_list,
);
}
unsafe extern "C" {
pub fn vips_error_g(error: *mut *mut GError);
}
unsafe extern "C" {
pub fn vips_g_error(error: *mut *mut GError);
}
unsafe extern "C" {
pub fn vips_error_exit(fmt: *const ::std::os::raw::c_char, ...) -> !;
}
unsafe extern "C" {
pub fn vips_check_uncoded(
domain: *const ::std::os::raw::c_char,
im: *mut VipsImage,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_check_coding(
domain: *const ::std::os::raw::c_char,
im: *mut VipsImage,
coding: VipsCoding,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_check_coding_known(
domain: *const ::std::os::raw::c_char,
im: *mut VipsImage,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_check_coding_noneorlabq(
domain: *const ::std::os::raw::c_char,
im: *mut VipsImage,
) -> ::std::os::raw::c_int;
}
unsafe 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;
}
unsafe extern "C" {
pub fn vips_check_mono(
domain: *const ::std::os::raw::c_char,
im: *mut VipsImage,
) -> ::std::os::raw::c_int;
}
unsafe 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;
}
unsafe extern "C" {
pub fn vips_check_bands_1or3(
domain: *const ::std::os::raw::c_char,
im: *mut VipsImage,
) -> ::std::os::raw::c_int;
}
unsafe 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;
}
unsafe 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;
}
unsafe 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;
}
unsafe 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;
}
unsafe 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;
}
unsafe extern "C" {
pub fn vips_check_int(
domain: *const ::std::os::raw::c_char,
im: *mut VipsImage,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_check_uint(
domain: *const ::std::os::raw::c_char,
im: *mut VipsImage,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_check_uintorf(
domain: *const ::std::os::raw::c_char,
im: *mut VipsImage,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_check_noncomplex(
domain: *const ::std::os::raw::c_char,
im: *mut VipsImage,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_check_complex(
domain: *const ::std::os::raw::c_char,
im: *mut VipsImage,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_check_twocomponents(
domain: *const ::std::os::raw::c_char,
im: *mut VipsImage,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_check_format(
domain: *const ::std::os::raw::c_char,
im: *mut VipsImage,
fmt: VipsBandFormat,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_check_u8or16(
domain: *const ::std::os::raw::c_char,
im: *mut VipsImage,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_check_8or16(
domain: *const ::std::os::raw::c_char,
im: *mut VipsImage,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_check_u8or16orf(
domain: *const ::std::os::raw::c_char,
im: *mut VipsImage,
) -> ::std::os::raw::c_int;
}
unsafe 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;
}
unsafe 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;
}
unsafe extern "C" {
pub fn vips_check_oddsquare(
domain: *const ::std::os::raw::c_char,
im: *mut VipsImage,
) -> ::std::os::raw::c_int;
}
unsafe 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;
}
unsafe 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;
}
unsafe extern "C" {
pub fn vips_check_hist(
domain: *const ::std::os::raw::c_char,
im: *mut VipsImage,
) -> ::std::os::raw::c_int;
}
unsafe 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;
}
unsafe extern "C" {
pub fn vips_check_separable(
domain: *const ::std::os::raw::c_char,
im: *mut VipsImage,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_check_precision_intfloat(
domain: *const ::std::os::raw::c_char,
precision: VipsPrecision,
) -> ::std::os::raw::c_int;
}
pub const VipsFormatFlags_VIPS_FORMAT_NONE: VipsFormatFlags = 0;
pub const VipsFormatFlags_VIPS_FORMAT_PARTIAL: VipsFormatFlags = 1;
pub const VipsFormatFlags_VIPS_FORMAT_BIGENDIAN: VipsFormatFlags = 2;
pub type VipsFormatFlags = ::std::os::raw::c_uint;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _VipsFormat {
pub parent_object: VipsObject,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _VipsFormat"][::std::mem::size_of::<_VipsFormat>() - 80usize];
["Alignment of _VipsFormat"][::std::mem::align_of::<_VipsFormat>() - 8usize];
["Offset of field: _VipsFormat::parent_object"]
[::std::mem::offset_of!(_VipsFormat, parent_object) - 0usize];
};
pub type VipsFormat = _VipsFormat;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _VipsFormatClass {
pub parent_class: VipsObjectClass,
pub is_a: ::std::option::Option<
unsafe extern "C" fn(filename: *const ::std::os::raw::c_char) -> gboolean,
>,
pub header: ::std::option::Option<
unsafe extern "C" fn(
filename: *const ::std::os::raw::c_char,
image: *mut VipsImage,
) -> ::std::os::raw::c_int,
>,
pub load: ::std::option::Option<
unsafe extern "C" fn(
filename: *const ::std::os::raw::c_char,
image: *mut VipsImage,
) -> ::std::os::raw::c_int,
>,
pub save: ::std::option::Option<
unsafe extern "C" fn(
image: *mut VipsImage,
filename: *const ::std::os::raw::c_char,
) -> ::std::os::raw::c_int,
>,
pub get_flags: ::std::option::Option<
unsafe extern "C" fn(filename: *const ::std::os::raw::c_char) -> VipsFormatFlags,
>,
pub priority: ::std::os::raw::c_int,
pub suffs: *mut *const ::std::os::raw::c_char,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _VipsFormatClass"][::std::mem::size_of::<_VipsFormatClass>() - 384usize];
["Alignment of _VipsFormatClass"][::std::mem::align_of::<_VipsFormatClass>() - 8usize];
["Offset of field: _VipsFormatClass::parent_class"]
[::std::mem::offset_of!(_VipsFormatClass, parent_class) - 0usize];
["Offset of field: _VipsFormatClass::is_a"]
[::std::mem::offset_of!(_VipsFormatClass, is_a) - 328usize];
["Offset of field: _VipsFormatClass::header"]
[::std::mem::offset_of!(_VipsFormatClass, header) - 336usize];
["Offset of field: _VipsFormatClass::load"]
[::std::mem::offset_of!(_VipsFormatClass, load) - 344usize];
["Offset of field: _VipsFormatClass::save"]
[::std::mem::offset_of!(_VipsFormatClass, save) - 352usize];
["Offset of field: _VipsFormatClass::get_flags"]
[::std::mem::offset_of!(_VipsFormatClass, get_flags) - 360usize];
["Offset of field: _VipsFormatClass::priority"]
[::std::mem::offset_of!(_VipsFormatClass, priority) - 368usize];
["Offset of field: _VipsFormatClass::suffs"]
[::std::mem::offset_of!(_VipsFormatClass, suffs) - 376usize];
};
pub type VipsFormatClass = _VipsFormatClass;
unsafe extern "C" {
pub fn vips_format_get_type() -> GType;
}
unsafe 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;
}
unsafe extern "C" {
pub fn vips_format_for_file(filename: *const ::std::os::raw::c_char) -> *mut VipsFormatClass;
}
unsafe extern "C" {
pub fn vips_format_for_name(filename: *const ::std::os::raw::c_char) -> *mut VipsFormatClass;
}
unsafe extern "C" {
pub fn vips_format_get_flags(
format: *mut VipsFormatClass,
filename: *const ::std::os::raw::c_char,
) -> VipsFormatFlags;
}
unsafe extern "C" {
pub fn vips_format_read(
filename: *const ::std::os::raw::c_char,
out: *mut VipsImage,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_format_write(
in_: *mut VipsImage,
filename: *const ::std::os::raw::c_char,
) -> ::std::os::raw::c_int;
}
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,
>;
unsafe 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;
}
unsafe 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;
}
unsafe 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),
>;
unsafe 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;
}
unsafe extern "C" {
pub fn vips_sink_memory(im: *mut VipsImage) -> ::std::os::raw::c_int;
}
unsafe 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;
}
unsafe 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;
}
unsafe 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;
}
unsafe 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;
}
unsafe extern "C" {
pub fn vips_allocate_input_array(out: *mut VipsImage, ...) -> *mut *mut VipsImage;
}
unsafe 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;
}
unsafe extern "C" {
pub fn vips_image_pipeline_array(
image: *mut VipsImage,
hint: VipsDemandStyle,
in_: *mut *mut VipsImage,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_image_pipelinev(
image: *mut VipsImage,
hint: VipsDemandStyle,
...
) -> ::std::os::raw::c_int;
}
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _VipsInterpolate {
pub parent_object: VipsObject,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _VipsInterpolate"][::std::mem::size_of::<_VipsInterpolate>() - 80usize];
["Alignment of _VipsInterpolate"][::std::mem::align_of::<_VipsInterpolate>() - 8usize];
["Offset of field: _VipsInterpolate::parent_object"]
[::std::mem::offset_of!(_VipsInterpolate, parent_object) - 0usize];
};
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, PartialEq, Eq)]
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,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _VipsInterpolateClass"][::std::mem::size_of::<_VipsInterpolateClass>() - 368usize];
["Alignment of _VipsInterpolateClass"]
[::std::mem::align_of::<_VipsInterpolateClass>() - 8usize];
["Offset of field: _VipsInterpolateClass::parent_class"]
[::std::mem::offset_of!(_VipsInterpolateClass, parent_class) - 0usize];
["Offset of field: _VipsInterpolateClass::interpolate"]
[::std::mem::offset_of!(_VipsInterpolateClass, interpolate) - 328usize];
["Offset of field: _VipsInterpolateClass::get_window_size"]
[::std::mem::offset_of!(_VipsInterpolateClass, get_window_size) - 336usize];
["Offset of field: _VipsInterpolateClass::window_size"]
[::std::mem::offset_of!(_VipsInterpolateClass, window_size) - 344usize];
["Offset of field: _VipsInterpolateClass::get_window_offset"]
[::std::mem::offset_of!(_VipsInterpolateClass, get_window_offset) - 352usize];
["Offset of field: _VipsInterpolateClass::window_offset"]
[::std::mem::offset_of!(_VipsInterpolateClass, window_offset) - 360usize];
};
pub type VipsInterpolateClass = _VipsInterpolateClass;
unsafe extern "C" {
pub fn vips_interpolate_get_type() -> GType;
}
unsafe extern "C" {
pub fn vips_interpolate(
interpolate: *mut VipsInterpolate,
out: *mut ::std::os::raw::c_void,
in_: *mut VipsRegion,
x: f64,
y: f64,
);
}
unsafe extern "C" {
pub fn vips_interpolate_get_method(interpolate: *mut VipsInterpolate) -> VipsInterpolateMethod;
}
unsafe extern "C" {
pub fn vips_interpolate_get_window_size(
interpolate: *mut VipsInterpolate,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_interpolate_get_window_offset(
interpolate: *mut VipsInterpolate,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_interpolate_nearest_static() -> *mut VipsInterpolate;
}
unsafe extern "C" {
pub fn vips_interpolate_bilinear_static() -> *mut VipsInterpolate;
}
unsafe extern "C" {
pub fn vips_interpolate_new(nickname: *const ::std::os::raw::c_char) -> *mut VipsInterpolate;
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct VipsSemaphore {
pub name: *mut ::std::os::raw::c_char,
pub v: ::std::os::raw::c_int,
pub mutex: GMutex,
pub cond: *mut GCond,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of VipsSemaphore"][::std::mem::size_of::<VipsSemaphore>() - 32usize];
["Alignment of VipsSemaphore"][::std::mem::align_of::<VipsSemaphore>() - 8usize];
["Offset of field: VipsSemaphore::name"][::std::mem::offset_of!(VipsSemaphore, name) - 0usize];
["Offset of field: VipsSemaphore::v"][::std::mem::offset_of!(VipsSemaphore, v) - 8usize];
["Offset of field: VipsSemaphore::mutex"]
[::std::mem::offset_of!(VipsSemaphore, mutex) - 16usize];
["Offset of field: VipsSemaphore::cond"][::std::mem::offset_of!(VipsSemaphore, cond) - 24usize];
};
impl ::std::fmt::Debug for VipsSemaphore {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
write!(
f,
"VipsSemaphore {{ name: {:?}, v: {:?}, mutex: {:?}, cond: {:?} }}",
self.name, self.v, self.mutex, self.cond
)
}
}
unsafe extern "C" {
pub fn vips_semaphore_up(s: *mut VipsSemaphore) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_semaphore_upn(
s: *mut VipsSemaphore,
n: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_semaphore_down(s: *mut VipsSemaphore) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_semaphore_downn(
s: *mut VipsSemaphore,
n: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_semaphore_down_timeout(
s: *mut VipsSemaphore,
timeout: gint64,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_semaphore_destroy(s: *mut VipsSemaphore);
}
unsafe extern "C" {
pub fn vips_semaphore_init(
s: *mut VipsSemaphore,
v: ::std::os::raw::c_int,
name: *mut ::std::os::raw::c_char,
);
}
unsafe extern "C" {
pub fn vips_g_thread_new(
domain: *const ::std::os::raw::c_char,
func: GThreadFunc,
data: gpointer,
) -> *mut GThread;
}
unsafe extern "C" {
pub fn vips_thread_isvips() -> gboolean;
}
unsafe extern "C" {
pub fn vips_thread_execute(
domain: *const ::std::os::raw::c_char,
func: GFunc,
data: gpointer,
) -> ::std::os::raw::c_int;
}
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
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,
pub stall: gboolean,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _VipsThreadState"][::std::mem::size_of::<_VipsThreadState>() - 144usize];
["Alignment of _VipsThreadState"][::std::mem::align_of::<_VipsThreadState>() - 8usize];
["Offset of field: _VipsThreadState::parent_object"]
[::std::mem::offset_of!(_VipsThreadState, parent_object) - 0usize];
["Offset of field: _VipsThreadState::im"]
[::std::mem::offset_of!(_VipsThreadState, im) - 80usize];
["Offset of field: _VipsThreadState::reg"]
[::std::mem::offset_of!(_VipsThreadState, reg) - 88usize];
["Offset of field: _VipsThreadState::pos"]
[::std::mem::offset_of!(_VipsThreadState, pos) - 96usize];
["Offset of field: _VipsThreadState::x"]
[::std::mem::offset_of!(_VipsThreadState, x) - 112usize];
["Offset of field: _VipsThreadState::y"]
[::std::mem::offset_of!(_VipsThreadState, y) - 116usize];
["Offset of field: _VipsThreadState::stop"]
[::std::mem::offset_of!(_VipsThreadState, stop) - 120usize];
["Offset of field: _VipsThreadState::a"]
[::std::mem::offset_of!(_VipsThreadState, a) - 128usize];
["Offset of field: _VipsThreadState::stall"]
[::std::mem::offset_of!(_VipsThreadState, stall) - 136usize];
};
pub type VipsThreadState = _VipsThreadState;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _VipsThreadStateClass {
pub parent_class: VipsObjectClass,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _VipsThreadStateClass"][::std::mem::size_of::<_VipsThreadStateClass>() - 328usize];
["Alignment of _VipsThreadStateClass"]
[::std::mem::align_of::<_VipsThreadStateClass>() - 8usize];
["Offset of field: _VipsThreadStateClass::parent_class"]
[::std::mem::offset_of!(_VipsThreadStateClass, parent_class) - 0usize];
};
pub type VipsThreadStateClass = _VipsThreadStateClass;
unsafe 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;
}
unsafe extern "C" {
pub fn vips_thread_state_get_type() -> GType;
}
unsafe 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,
>;
unsafe 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;
}
unsafe 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,
);
}
unsafe extern "C" {
pub fn vips_format_sizeof(format: VipsBandFormat) -> guint64;
}
unsafe extern "C" {
pub fn vips_format_sizeof_unsafe(format: VipsBandFormat) -> guint64;
}
unsafe extern "C" {
pub fn vips_interpretation_max_alpha(interpretation: VipsInterpretation) -> f64;
}
unsafe extern "C" {
pub fn vips_image_get_width(image: *const VipsImage) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_image_get_height(image: *const VipsImage) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_image_get_bands(image: *const VipsImage) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_image_get_format(image: *const VipsImage) -> VipsBandFormat;
}
unsafe extern "C" {
pub fn vips_image_get_format_max(format: VipsBandFormat) -> f64;
}
unsafe extern "C" {
pub fn vips_image_guess_format(image: *const VipsImage) -> VipsBandFormat;
}
unsafe extern "C" {
pub fn vips_image_get_coding(image: *const VipsImage) -> VipsCoding;
}
unsafe extern "C" {
pub fn vips_image_get_interpretation(image: *const VipsImage) -> VipsInterpretation;
}
unsafe extern "C" {
pub fn vips_image_guess_interpretation(image: *const VipsImage) -> VipsInterpretation;
}
unsafe extern "C" {
pub fn vips_image_get_xres(image: *const VipsImage) -> f64;
}
unsafe extern "C" {
pub fn vips_image_get_yres(image: *const VipsImage) -> f64;
}
unsafe extern "C" {
pub fn vips_image_get_xoffset(image: *const VipsImage) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_image_get_yoffset(image: *const VipsImage) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_image_get_filename(image: *const VipsImage) -> *const ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn vips_image_get_mode(image: *const VipsImage) -> *const ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn vips_image_get_scale(image: *const VipsImage) -> f64;
}
unsafe extern "C" {
pub fn vips_image_get_offset(image: *const VipsImage) -> f64;
}
unsafe extern "C" {
pub fn vips_image_get_page_height(image: *mut VipsImage) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_image_get_n_pages(image: *mut VipsImage) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_image_get_n_subifds(image: *mut VipsImage) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_image_get_orientation(image: *mut VipsImage) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_image_get_orientation_swap(image: *mut VipsImage) -> gboolean;
}
unsafe extern "C" {
pub fn vips_image_get_concurrency(
image: *mut VipsImage,
default_concurrency: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_image_get_data(image: *mut VipsImage) -> *const ::std::os::raw::c_void;
}
unsafe 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,
);
}
unsafe extern "C" {
pub fn vips_image_set(
image: *mut VipsImage,
name: *const ::std::os::raw::c_char,
value: *mut GValue,
);
}
unsafe extern "C" {
pub fn vips_image_get(
image: *const VipsImage,
name: *const ::std::os::raw::c_char,
value_copy: *mut GValue,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_image_get_as_string(
image: *const VipsImage,
name: *const ::std::os::raw::c_char,
out: *mut *mut ::std::os::raw::c_char,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_image_get_typeof(
image: *const VipsImage,
name: *const ::std::os::raw::c_char,
) -> GType;
}
unsafe extern "C" {
pub fn vips_image_remove(
image: *mut VipsImage,
name: *const ::std::os::raw::c_char,
) -> gboolean;
}
pub type VipsImageMapFn = ::std::option::Option<
unsafe extern "C" fn(
image: *mut VipsImage,
name: *const ::std::os::raw::c_char,
value: *mut GValue,
a: *mut ::std::os::raw::c_void,
) -> *mut ::std::os::raw::c_void,
>;
unsafe 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;
}
unsafe extern "C" {
pub fn vips_image_get_fields(image: *mut VipsImage) -> *mut *mut gchar;
}
unsafe extern "C" {
pub fn vips_image_set_area(
image: *mut VipsImage,
name: *const ::std::os::raw::c_char,
free_fn: VipsCallbackFn,
data: *mut ::std::os::raw::c_void,
);
}
unsafe extern "C" {
pub fn vips_image_get_area(
image: *const VipsImage,
name: *const ::std::os::raw::c_char,
data: *mut *const ::std::os::raw::c_void,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_image_set_blob(
image: *mut VipsImage,
name: *const ::std::os::raw::c_char,
free_fn: VipsCallbackFn,
data: *const ::std::os::raw::c_void,
length: size_t,
);
}
unsafe extern "C" {
pub fn vips_image_set_blob_copy(
image: *mut VipsImage,
name: *const ::std::os::raw::c_char,
data: *const ::std::os::raw::c_void,
length: size_t,
);
}
unsafe extern "C" {
pub fn vips_image_get_blob(
image: *const VipsImage,
name: *const ::std::os::raw::c_char,
data: *mut *const ::std::os::raw::c_void,
length: *mut size_t,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_image_get_int(
image: *const VipsImage,
name: *const ::std::os::raw::c_char,
out: *mut ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_image_set_int(
image: *mut VipsImage,
name: *const ::std::os::raw::c_char,
i: ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn vips_image_get_double(
image: *const VipsImage,
name: *const ::std::os::raw::c_char,
out: *mut f64,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_image_set_double(
image: *mut VipsImage,
name: *const ::std::os::raw::c_char,
d: f64,
);
}
unsafe extern "C" {
pub fn vips_image_get_string(
image: *const VipsImage,
name: *const ::std::os::raw::c_char,
out: *mut *const ::std::os::raw::c_char,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_image_set_string(
image: *mut VipsImage,
name: *const ::std::os::raw::c_char,
str_: *const ::std::os::raw::c_char,
);
}
unsafe extern "C" {
pub fn vips_image_print_field(image: *const VipsImage, name: *const ::std::os::raw::c_char);
}
unsafe extern "C" {
pub fn vips_image_get_image(
image: *const VipsImage,
name: *const ::std::os::raw::c_char,
out: *mut *mut VipsImage,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_image_set_image(
image: *mut VipsImage,
name: *const ::std::os::raw::c_char,
im: *mut VipsImage,
);
}
unsafe extern "C" {
pub fn vips_image_set_array_int(
image: *mut VipsImage,
name: *const ::std::os::raw::c_char,
array: *const ::std::os::raw::c_int,
n: ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn vips_image_get_array_int(
image: *mut VipsImage,
name: *const ::std::os::raw::c_char,
out: *mut *mut ::std::os::raw::c_int,
n: *mut ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_image_get_array_double(
image: *mut VipsImage,
name: *const ::std::os::raw::c_char,
out: *mut *mut f64,
n: *mut ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_image_set_array_double(
image: *mut VipsImage,
name: *const ::std::os::raw::c_char,
array: *const f64,
n: ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn vips_image_history_printf(
image: *mut VipsImage,
format: *const ::std::os::raw::c_char,
...
) -> ::std::os::raw::c_int;
}
unsafe 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;
}
unsafe extern "C" {
pub fn vips_image_get_history(image: *mut VipsImage) -> *const ::std::os::raw::c_char;
}
pub const VipsOperationFlags_VIPS_OPERATION_NONE: VipsOperationFlags = 0;
pub const VipsOperationFlags_VIPS_OPERATION_SEQUENTIAL: VipsOperationFlags = 1;
pub const VipsOperationFlags_VIPS_OPERATION_SEQUENTIAL_UNBUFFERED: VipsOperationFlags = 2;
pub const VipsOperationFlags_VIPS_OPERATION_NOCACHE: VipsOperationFlags = 4;
pub const VipsOperationFlags_VIPS_OPERATION_DEPRECATED: VipsOperationFlags = 8;
pub const VipsOperationFlags_VIPS_OPERATION_UNTRUSTED: VipsOperationFlags = 16;
pub const VipsOperationFlags_VIPS_OPERATION_BLOCKED: VipsOperationFlags = 32;
pub const VipsOperationFlags_VIPS_OPERATION_REVALIDATE: VipsOperationFlags = 64;
pub type VipsOperationFlags = ::std::os::raw::c_uint;
pub type VipsOperationBuildFn =
::std::option::Option<unsafe extern "C" fn(object: *mut VipsObject) -> gboolean>;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _VipsOperation {
pub parent_instance: VipsObject,
pub hash: guint,
pub found_hash: gboolean,
pub pixels: ::std::os::raw::c_int,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _VipsOperation"][::std::mem::size_of::<_VipsOperation>() - 96usize];
["Alignment of _VipsOperation"][::std::mem::align_of::<_VipsOperation>() - 8usize];
["Offset of field: _VipsOperation::parent_instance"]
[::std::mem::offset_of!(_VipsOperation, parent_instance) - 0usize];
["Offset of field: _VipsOperation::hash"]
[::std::mem::offset_of!(_VipsOperation, hash) - 80usize];
["Offset of field: _VipsOperation::found_hash"]
[::std::mem::offset_of!(_VipsOperation, found_hash) - 84usize];
["Offset of field: _VipsOperation::pixels"]
[::std::mem::offset_of!(_VipsOperation, pixels) - 88usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
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)>,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _VipsOperationClass"][::std::mem::size_of::<_VipsOperationClass>() - 360usize];
["Alignment of _VipsOperationClass"][::std::mem::align_of::<_VipsOperationClass>() - 8usize];
["Offset of field: _VipsOperationClass::parent_class"]
[::std::mem::offset_of!(_VipsOperationClass, parent_class) - 0usize];
["Offset of field: _VipsOperationClass::usage"]
[::std::mem::offset_of!(_VipsOperationClass, usage) - 328usize];
["Offset of field: _VipsOperationClass::get_flags"]
[::std::mem::offset_of!(_VipsOperationClass, get_flags) - 336usize];
["Offset of field: _VipsOperationClass::flags"]
[::std::mem::offset_of!(_VipsOperationClass, flags) - 344usize];
["Offset of field: _VipsOperationClass::invalidate"]
[::std::mem::offset_of!(_VipsOperationClass, invalidate) - 352usize];
};
pub type VipsOperationClass = _VipsOperationClass;
unsafe extern "C" {
pub fn vips_operation_get_type() -> GType;
}
unsafe extern "C" {
pub fn vips_operation_get_flags(operation: *mut VipsOperation) -> VipsOperationFlags;
}
unsafe extern "C" {
pub fn vips_operation_class_print_usage(operation_class: *mut VipsOperationClass);
}
unsafe extern "C" {
pub fn vips_operation_invalidate(operation: *mut VipsOperation);
}
unsafe extern "C" {
pub fn vips_operation_call_valist(
operation: *mut VipsOperation,
ap: va_list,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_operation_new(name: *const ::std::os::raw::c_char) -> *mut VipsOperation;
}
unsafe extern "C" {
pub fn vips_call_required_optional(
operation: *mut *mut VipsOperation,
required: va_list,
optional: va_list,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_call(operation_name: *const ::std::os::raw::c_char, ...) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_call_split(
operation_name: *const ::std::os::raw::c_char,
optional: va_list,
...
) -> ::std::os::raw::c_int;
}
unsafe 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: va_list,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_call_options(group: *mut GOptionGroup, operation: *mut VipsOperation);
}
unsafe 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;
}
unsafe extern "C" {
pub fn vips_cache_drop_all();
}
unsafe extern "C" {
pub fn vips_cache_operation_buildp(operation: *mut *mut VipsOperation)
-> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_cache_operation_build(operation: *mut VipsOperation) -> *mut VipsOperation;
}
unsafe extern "C" {
pub fn vips_cache_print();
}
unsafe extern "C" {
pub fn vips_cache_set_max(max: ::std::os::raw::c_int);
}
unsafe extern "C" {
pub fn vips_cache_set_max_mem(max_mem: size_t);
}
unsafe extern "C" {
pub fn vips_cache_get_max() -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_cache_get_size() -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_cache_get_max_mem() -> size_t;
}
unsafe extern "C" {
pub fn vips_cache_get_max_files() -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_cache_set_max_files(max_files: ::std::os::raw::c_int);
}
unsafe extern "C" {
pub fn vips_cache_set_dump(dump: gboolean);
}
unsafe extern "C" {
pub fn vips_cache_set_trace(trace: gboolean);
}
unsafe extern "C" {
pub fn vips_concurrency_set(concurrency: ::std::os::raw::c_int);
}
unsafe extern "C" {
pub fn vips_concurrency_get() -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_operation_block_set(name: *const ::std::os::raw::c_char, state: gboolean);
}
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _VipsForeign {
pub parent_object: VipsOperation,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _VipsForeign"][::std::mem::size_of::<_VipsForeign>() - 96usize];
["Alignment of _VipsForeign"][::std::mem::align_of::<_VipsForeign>() - 8usize];
["Offset of field: _VipsForeign::parent_object"]
[::std::mem::offset_of!(_VipsForeign, parent_object) - 0usize];
};
pub type VipsForeign = _VipsForeign;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _VipsForeignClass {
pub parent_class: VipsOperationClass,
pub priority: ::std::os::raw::c_int,
pub suffs: *mut *const ::std::os::raw::c_char,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _VipsForeignClass"][::std::mem::size_of::<_VipsForeignClass>() - 376usize];
["Alignment of _VipsForeignClass"][::std::mem::align_of::<_VipsForeignClass>() - 8usize];
["Offset of field: _VipsForeignClass::parent_class"]
[::std::mem::offset_of!(_VipsForeignClass, parent_class) - 0usize];
["Offset of field: _VipsForeignClass::priority"]
[::std::mem::offset_of!(_VipsForeignClass, priority) - 360usize];
["Offset of field: _VipsForeignClass::suffs"]
[::std::mem::offset_of!(_VipsForeignClass, suffs) - 368usize];
};
pub type VipsForeignClass = _VipsForeignClass;
unsafe extern "C" {
pub fn vips_foreign_get_type() -> GType;
}
unsafe 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;
}
pub const VipsForeignFlags_VIPS_FOREIGN_NONE: VipsForeignFlags = 0;
pub const VipsForeignFlags_VIPS_FOREIGN_PARTIAL: VipsForeignFlags = 1;
pub const VipsForeignFlags_VIPS_FOREIGN_BIGENDIAN: VipsForeignFlags = 2;
pub const VipsForeignFlags_VIPS_FOREIGN_SEQUENTIAL: VipsForeignFlags = 4;
pub const VipsForeignFlags_VIPS_FOREIGN_ALL: VipsForeignFlags = 7;
pub type VipsForeignFlags = ::std::os::raw::c_uint;
pub const VipsFailOn_VIPS_FAIL_ON_NONE: VipsFailOn = 0;
pub const VipsFailOn_VIPS_FAIL_ON_TRUNCATED: VipsFailOn = 1;
pub const VipsFailOn_VIPS_FAIL_ON_ERROR: VipsFailOn = 2;
pub const VipsFailOn_VIPS_FAIL_ON_WARNING: VipsFailOn = 3;
pub const VipsFailOn_VIPS_FAIL_ON_LAST: VipsFailOn = 4;
pub type VipsFailOn = ::std::os::raw::c_uint;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _VipsForeignLoad {
pub parent_object: VipsForeign,
pub memory: gboolean,
pub access: VipsAccess,
pub flags: VipsForeignFlags,
pub fail_on: VipsFailOn,
pub fail: gboolean,
pub sequential: gboolean,
pub out: *mut VipsImage,
pub real: *mut VipsImage,
pub nocache: gboolean,
pub disc: gboolean,
pub error: gboolean,
pub revalidate: gboolean,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _VipsForeignLoad"][::std::mem::size_of::<_VipsForeignLoad>() - 152usize];
["Alignment of _VipsForeignLoad"][::std::mem::align_of::<_VipsForeignLoad>() - 8usize];
["Offset of field: _VipsForeignLoad::parent_object"]
[::std::mem::offset_of!(_VipsForeignLoad, parent_object) - 0usize];
["Offset of field: _VipsForeignLoad::memory"]
[::std::mem::offset_of!(_VipsForeignLoad, memory) - 96usize];
["Offset of field: _VipsForeignLoad::access"]
[::std::mem::offset_of!(_VipsForeignLoad, access) - 100usize];
["Offset of field: _VipsForeignLoad::flags"]
[::std::mem::offset_of!(_VipsForeignLoad, flags) - 104usize];
["Offset of field: _VipsForeignLoad::fail_on"]
[::std::mem::offset_of!(_VipsForeignLoad, fail_on) - 108usize];
["Offset of field: _VipsForeignLoad::fail"]
[::std::mem::offset_of!(_VipsForeignLoad, fail) - 112usize];
["Offset of field: _VipsForeignLoad::sequential"]
[::std::mem::offset_of!(_VipsForeignLoad, sequential) - 116usize];
["Offset of field: _VipsForeignLoad::out"]
[::std::mem::offset_of!(_VipsForeignLoad, out) - 120usize];
["Offset of field: _VipsForeignLoad::real"]
[::std::mem::offset_of!(_VipsForeignLoad, real) - 128usize];
["Offset of field: _VipsForeignLoad::nocache"]
[::std::mem::offset_of!(_VipsForeignLoad, nocache) - 136usize];
["Offset of field: _VipsForeignLoad::disc"]
[::std::mem::offset_of!(_VipsForeignLoad, disc) - 140usize];
["Offset of field: _VipsForeignLoad::error"]
[::std::mem::offset_of!(_VipsForeignLoad, error) - 144usize];
["Offset of field: _VipsForeignLoad::revalidate"]
[::std::mem::offset_of!(_VipsForeignLoad, revalidate) - 148usize];
};
pub type VipsForeignLoad = _VipsForeignLoad;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
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: size_t) -> gboolean,
>,
pub is_a_source:
::std::option::Option<unsafe extern "C" fn(source: *mut VipsSource) -> 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,
>,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _VipsForeignLoadClass"][::std::mem::size_of::<_VipsForeignLoadClass>() - 432usize];
["Alignment of _VipsForeignLoadClass"]
[::std::mem::align_of::<_VipsForeignLoadClass>() - 8usize];
["Offset of field: _VipsForeignLoadClass::parent_class"]
[::std::mem::offset_of!(_VipsForeignLoadClass, parent_class) - 0usize];
["Offset of field: _VipsForeignLoadClass::is_a"]
[::std::mem::offset_of!(_VipsForeignLoadClass, is_a) - 376usize];
["Offset of field: _VipsForeignLoadClass::is_a_buffer"]
[::std::mem::offset_of!(_VipsForeignLoadClass, is_a_buffer) - 384usize];
["Offset of field: _VipsForeignLoadClass::is_a_source"]
[::std::mem::offset_of!(_VipsForeignLoadClass, is_a_source) - 392usize];
["Offset of field: _VipsForeignLoadClass::get_flags_filename"]
[::std::mem::offset_of!(_VipsForeignLoadClass, get_flags_filename) - 400usize];
["Offset of field: _VipsForeignLoadClass::get_flags"]
[::std::mem::offset_of!(_VipsForeignLoadClass, get_flags) - 408usize];
["Offset of field: _VipsForeignLoadClass::header"]
[::std::mem::offset_of!(_VipsForeignLoadClass, header) - 416usize];
["Offset of field: _VipsForeignLoadClass::load"]
[::std::mem::offset_of!(_VipsForeignLoadClass, load) - 424usize];
};
pub type VipsForeignLoadClass = _VipsForeignLoadClass;
unsafe extern "C" {
pub fn vips_foreign_load_get_type() -> GType;
}
unsafe extern "C" {
pub fn vips_foreign_find_load(
filename: *const ::std::os::raw::c_char,
) -> *const ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn vips_foreign_find_load_buffer(
data: *const ::std::os::raw::c_void,
size: size_t,
) -> *const ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn vips_foreign_find_load_source(source: *mut VipsSource) -> *const ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn vips_foreign_flags(
loader: *const ::std::os::raw::c_char,
filename: *const ::std::os::raw::c_char,
) -> VipsForeignFlags;
}
unsafe extern "C" {
pub fn vips_foreign_is_a(
loader: *const ::std::os::raw::c_char,
filename: *const ::std::os::raw::c_char,
) -> gboolean;
}
unsafe extern "C" {
pub fn vips_foreign_is_a_buffer(
loader: *const ::std::os::raw::c_char,
data: *const ::std::os::raw::c_void,
size: size_t,
) -> gboolean;
}
unsafe extern "C" {
pub fn vips_foreign_is_a_source(
loader: *const ::std::os::raw::c_char,
source: *mut VipsSource,
) -> gboolean;
}
unsafe extern "C" {
pub fn vips_foreign_load_invalidate(image: *mut VipsImage);
}
pub const VipsForeignSaveable_VIPS_FOREIGN_SAVEABLE_ANY: VipsForeignSaveable = 0;
pub const VipsForeignSaveable_VIPS_FOREIGN_SAVEABLE_MONO: VipsForeignSaveable = 1;
pub const VipsForeignSaveable_VIPS_FOREIGN_SAVEABLE_RGB: VipsForeignSaveable = 2;
pub const VipsForeignSaveable_VIPS_FOREIGN_SAVEABLE_CMYK: VipsForeignSaveable = 4;
pub const VipsForeignSaveable_VIPS_FOREIGN_SAVEABLE_ALPHA: VipsForeignSaveable = 8;
pub const VipsForeignSaveable_VIPS_FOREIGN_SAVEABLE_ALL: VipsForeignSaveable = 15;
pub type VipsForeignSaveable = ::std::os::raw::c_uint;
pub const VipsForeignCoding_VIPS_FOREIGN_CODING_NONE: VipsForeignCoding = 1;
pub const VipsForeignCoding_VIPS_FOREIGN_CODING_LABQ: VipsForeignCoding = 2;
pub const VipsForeignCoding_VIPS_FOREIGN_CODING_RAD: VipsForeignCoding = 4;
pub const VipsForeignCoding_VIPS_FOREIGN_CODING_ALL: VipsForeignCoding = 7;
pub type VipsForeignCoding = ::std::os::raw::c_uint;
pub const VipsForeignKeep_VIPS_FOREIGN_KEEP_NONE: VipsForeignKeep = 0;
pub const VipsForeignKeep_VIPS_FOREIGN_KEEP_EXIF: VipsForeignKeep = 1;
pub const VipsForeignKeep_VIPS_FOREIGN_KEEP_XMP: VipsForeignKeep = 2;
pub const VipsForeignKeep_VIPS_FOREIGN_KEEP_IPTC: VipsForeignKeep = 4;
pub const VipsForeignKeep_VIPS_FOREIGN_KEEP_ICC: VipsForeignKeep = 8;
pub const VipsForeignKeep_VIPS_FOREIGN_KEEP_OTHER: VipsForeignKeep = 16;
pub const VipsForeignKeep_VIPS_FOREIGN_KEEP_ALL: VipsForeignKeep = 31;
pub type VipsForeignKeep = ::std::os::raw::c_uint;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _VipsForeignSave {
pub parent_object: VipsForeign,
pub strip: gboolean,
pub keep: VipsForeignKeep,
pub profile: *mut ::std::os::raw::c_char,
pub background: *mut VipsArrayDouble,
pub page_height: ::std::os::raw::c_int,
pub in_: *mut VipsImage,
pub ready: *mut VipsImage,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _VipsForeignSave"][::std::mem::size_of::<_VipsForeignSave>() - 144usize];
["Alignment of _VipsForeignSave"][::std::mem::align_of::<_VipsForeignSave>() - 8usize];
["Offset of field: _VipsForeignSave::parent_object"]
[::std::mem::offset_of!(_VipsForeignSave, parent_object) - 0usize];
["Offset of field: _VipsForeignSave::strip"]
[::std::mem::offset_of!(_VipsForeignSave, strip) - 96usize];
["Offset of field: _VipsForeignSave::keep"]
[::std::mem::offset_of!(_VipsForeignSave, keep) - 100usize];
["Offset of field: _VipsForeignSave::profile"]
[::std::mem::offset_of!(_VipsForeignSave, profile) - 104usize];
["Offset of field: _VipsForeignSave::background"]
[::std::mem::offset_of!(_VipsForeignSave, background) - 112usize];
["Offset of field: _VipsForeignSave::page_height"]
[::std::mem::offset_of!(_VipsForeignSave, page_height) - 120usize];
["Offset of field: _VipsForeignSave::in_"]
[::std::mem::offset_of!(_VipsForeignSave, in_) - 128usize];
["Offset of field: _VipsForeignSave::ready"]
[::std::mem::offset_of!(_VipsForeignSave, ready) - 136usize];
};
pub type VipsForeignSave = _VipsForeignSave;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct _VipsForeignSaveClass {
pub parent_class: VipsForeignClass,
pub saveable: VipsForeignSaveable,
pub format_table: *mut VipsBandFormat,
pub coding: VipsForeignCoding,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _VipsForeignSaveClass"][::std::mem::size_of::<_VipsForeignSaveClass>() - 400usize];
["Alignment of _VipsForeignSaveClass"]
[::std::mem::align_of::<_VipsForeignSaveClass>() - 8usize];
["Offset of field: _VipsForeignSaveClass::parent_class"]
[::std::mem::offset_of!(_VipsForeignSaveClass, parent_class) - 0usize];
["Offset of field: _VipsForeignSaveClass::saveable"]
[::std::mem::offset_of!(_VipsForeignSaveClass, saveable) - 376usize];
["Offset of field: _VipsForeignSaveClass::format_table"]
[::std::mem::offset_of!(_VipsForeignSaveClass, format_table) - 384usize];
["Offset of field: _VipsForeignSaveClass::coding"]
[::std::mem::offset_of!(_VipsForeignSaveClass, coding) - 392usize];
};
pub type VipsForeignSaveClass = _VipsForeignSaveClass;
unsafe extern "C" {
pub fn vips_foreign_save_get_type() -> GType;
}
unsafe extern "C" {
pub fn vips_foreign_find_save(
filename: *const ::std::os::raw::c_char,
) -> *const ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn vips_foreign_get_suffixes() -> *mut *mut gchar;
}
unsafe extern "C" {
pub fn vips_foreign_find_save_buffer(
suffix: *const ::std::os::raw::c_char,
) -> *const ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn vips_foreign_find_save_target(
suffix: *const ::std::os::raw::c_char,
) -> *const ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn vips_vipsload(
filename: *const ::std::os::raw::c_char,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_vipsload_source(
source: *mut VipsSource,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_vipssave(
in_: *mut VipsImage,
filename: *const ::std::os::raw::c_char,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_vipssave_target(
in_: *mut VipsImage,
target: *mut VipsTarget,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_openslideload(
filename: *const ::std::os::raw::c_char,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_openslideload_source(
source: *mut VipsSource,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
pub const VipsForeignSubsample_VIPS_FOREIGN_SUBSAMPLE_AUTO: VipsForeignSubsample = 0;
pub const VipsForeignSubsample_VIPS_FOREIGN_SUBSAMPLE_ON: VipsForeignSubsample = 1;
pub const VipsForeignSubsample_VIPS_FOREIGN_SUBSAMPLE_OFF: VipsForeignSubsample = 2;
pub const VipsForeignSubsample_VIPS_FOREIGN_SUBSAMPLE_LAST: VipsForeignSubsample = 3;
pub type VipsForeignSubsample = ::std::os::raw::c_uint;
unsafe extern "C" {
pub fn vips_jpegload(
filename: *const ::std::os::raw::c_char,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_jpegload_buffer(
buf: *mut ::std::os::raw::c_void,
len: size_t,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_jpegload_source(
source: *mut VipsSource,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_jpegsave_target(
in_: *mut VipsImage,
target: *mut VipsTarget,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_jpegsave(
in_: *mut VipsImage,
filename: *const ::std::os::raw::c_char,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_jpegsave_buffer(
in_: *mut VipsImage,
buf: *mut *mut ::std::os::raw::c_void,
len: *mut size_t,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_jpegsave_mime(in_: *mut VipsImage, ...) -> ::std::os::raw::c_int;
}
pub const VipsForeignWebpPreset_VIPS_FOREIGN_WEBP_PRESET_DEFAULT: VipsForeignWebpPreset = 0;
pub const VipsForeignWebpPreset_VIPS_FOREIGN_WEBP_PRESET_PICTURE: VipsForeignWebpPreset = 1;
pub const VipsForeignWebpPreset_VIPS_FOREIGN_WEBP_PRESET_PHOTO: VipsForeignWebpPreset = 2;
pub const VipsForeignWebpPreset_VIPS_FOREIGN_WEBP_PRESET_DRAWING: VipsForeignWebpPreset = 3;
pub const VipsForeignWebpPreset_VIPS_FOREIGN_WEBP_PRESET_ICON: VipsForeignWebpPreset = 4;
pub const VipsForeignWebpPreset_VIPS_FOREIGN_WEBP_PRESET_TEXT: VipsForeignWebpPreset = 5;
pub const VipsForeignWebpPreset_VIPS_FOREIGN_WEBP_PRESET_LAST: VipsForeignWebpPreset = 6;
pub type VipsForeignWebpPreset = ::std::os::raw::c_uint;
unsafe extern "C" {
pub fn vips_webpload_source(
source: *mut VipsSource,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_webpload(
filename: *const ::std::os::raw::c_char,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_webpload_buffer(
buf: *mut ::std::os::raw::c_void,
len: size_t,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_webpsave_target(
in_: *mut VipsImage,
target: *mut VipsTarget,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_webpsave(
in_: *mut VipsImage,
filename: *const ::std::os::raw::c_char,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_webpsave_buffer(
in_: *mut VipsImage,
buf: *mut *mut ::std::os::raw::c_void,
len: *mut size_t,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_webpsave_mime(in_: *mut VipsImage, ...) -> ::std::os::raw::c_int;
}
pub const VipsForeignTiffCompression_VIPS_FOREIGN_TIFF_COMPRESSION_NONE:
VipsForeignTiffCompression = 0;
pub const VipsForeignTiffCompression_VIPS_FOREIGN_TIFF_COMPRESSION_JPEG:
VipsForeignTiffCompression = 1;
pub const VipsForeignTiffCompression_VIPS_FOREIGN_TIFF_COMPRESSION_DEFLATE:
VipsForeignTiffCompression = 2;
pub const VipsForeignTiffCompression_VIPS_FOREIGN_TIFF_COMPRESSION_PACKBITS:
VipsForeignTiffCompression = 3;
pub const VipsForeignTiffCompression_VIPS_FOREIGN_TIFF_COMPRESSION_CCITTFAX4:
VipsForeignTiffCompression = 4;
pub const VipsForeignTiffCompression_VIPS_FOREIGN_TIFF_COMPRESSION_LZW: VipsForeignTiffCompression =
5;
pub const VipsForeignTiffCompression_VIPS_FOREIGN_TIFF_COMPRESSION_WEBP:
VipsForeignTiffCompression = 6;
pub const VipsForeignTiffCompression_VIPS_FOREIGN_TIFF_COMPRESSION_ZSTD:
VipsForeignTiffCompression = 7;
pub const VipsForeignTiffCompression_VIPS_FOREIGN_TIFF_COMPRESSION_JP2K:
VipsForeignTiffCompression = 8;
pub const VipsForeignTiffCompression_VIPS_FOREIGN_TIFF_COMPRESSION_LAST:
VipsForeignTiffCompression = 9;
pub type VipsForeignTiffCompression = ::std::os::raw::c_uint;
pub const VipsForeignTiffPredictor_VIPS_FOREIGN_TIFF_PREDICTOR_NONE: VipsForeignTiffPredictor = 1;
pub const VipsForeignTiffPredictor_VIPS_FOREIGN_TIFF_PREDICTOR_HORIZONTAL:
VipsForeignTiffPredictor = 2;
pub const VipsForeignTiffPredictor_VIPS_FOREIGN_TIFF_PREDICTOR_FLOAT: VipsForeignTiffPredictor = 3;
pub const VipsForeignTiffPredictor_VIPS_FOREIGN_TIFF_PREDICTOR_LAST: VipsForeignTiffPredictor = 4;
pub type VipsForeignTiffPredictor = ::std::os::raw::c_uint;
pub const VipsForeignTiffResunit_VIPS_FOREIGN_TIFF_RESUNIT_CM: VipsForeignTiffResunit = 0;
pub const VipsForeignTiffResunit_VIPS_FOREIGN_TIFF_RESUNIT_INCH: VipsForeignTiffResunit = 1;
pub const VipsForeignTiffResunit_VIPS_FOREIGN_TIFF_RESUNIT_LAST: VipsForeignTiffResunit = 2;
pub type VipsForeignTiffResunit = ::std::os::raw::c_uint;
unsafe extern "C" {
pub fn vips_tiffload(
filename: *const ::std::os::raw::c_char,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_tiffload_buffer(
buf: *mut ::std::os::raw::c_void,
len: size_t,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_tiffload_source(
source: *mut VipsSource,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_tiffsave(
in_: *mut VipsImage,
filename: *const ::std::os::raw::c_char,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_tiffsave_buffer(
in_: *mut VipsImage,
buf: *mut *mut ::std::os::raw::c_void,
len: *mut size_t,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_tiffsave_target(
in_: *mut VipsImage,
target: *mut VipsTarget,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_openexrload(
filename: *const ::std::os::raw::c_char,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_fitsload(
filename: *const ::std::os::raw::c_char,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_fitsload_source(
source: *mut VipsSource,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_fitssave(
in_: *mut VipsImage,
filename: *const ::std::os::raw::c_char,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_analyzeload(
filename: *const ::std::os::raw::c_char,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe 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;
}
unsafe extern "C" {
pub fn vips_rawsave(
in_: *mut VipsImage,
filename: *const ::std::os::raw::c_char,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_rawsave_buffer(
in_: *mut VipsImage,
buf: *mut *mut ::std::os::raw::c_void,
len: *mut size_t,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_rawsave_target(
in_: *mut VipsImage,
target: *mut VipsTarget,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_csvload(
filename: *const ::std::os::raw::c_char,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_csvload_source(
source: *mut VipsSource,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_csvsave(
in_: *mut VipsImage,
filename: *const ::std::os::raw::c_char,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_csvsave_target(
in_: *mut VipsImage,
target: *mut VipsTarget,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_matrixload(
filename: *const ::std::os::raw::c_char,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_matrixload_source(
source: *mut VipsSource,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_matrixsave(
in_: *mut VipsImage,
filename: *const ::std::os::raw::c_char,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_matrixsave_target(
in_: *mut VipsImage,
target: *mut VipsTarget,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_matrixprint(in_: *mut VipsImage, ...) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_magickload(
filename: *const ::std::os::raw::c_char,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_magickload_buffer(
buf: *mut ::std::os::raw::c_void,
len: size_t,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_magicksave(
in_: *mut VipsImage,
filename: *const ::std::os::raw::c_char,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_magicksave_buffer(
in_: *mut VipsImage,
buf: *mut *mut ::std::os::raw::c_void,
len: *mut size_t,
...
) -> ::std::os::raw::c_int;
}
pub const VipsForeignPngFilter_VIPS_FOREIGN_PNG_FILTER_NONE: VipsForeignPngFilter = 8;
pub const VipsForeignPngFilter_VIPS_FOREIGN_PNG_FILTER_SUB: VipsForeignPngFilter = 16;
pub const VipsForeignPngFilter_VIPS_FOREIGN_PNG_FILTER_UP: VipsForeignPngFilter = 32;
pub const VipsForeignPngFilter_VIPS_FOREIGN_PNG_FILTER_AVG: VipsForeignPngFilter = 64;
pub const VipsForeignPngFilter_VIPS_FOREIGN_PNG_FILTER_PAETH: VipsForeignPngFilter = 128;
pub const VipsForeignPngFilter_VIPS_FOREIGN_PNG_FILTER_ALL: VipsForeignPngFilter = 248;
pub type VipsForeignPngFilter = ::std::os::raw::c_uint;
unsafe extern "C" {
pub fn vips_pngload_source(
source: *mut VipsSource,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_pngload(
filename: *const ::std::os::raw::c_char,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_pngload_buffer(
buf: *mut ::std::os::raw::c_void,
len: size_t,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_pngsave_target(
in_: *mut VipsImage,
target: *mut VipsTarget,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_pngsave(
in_: *mut VipsImage,
filename: *const ::std::os::raw::c_char,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_pngsave_buffer(
in_: *mut VipsImage,
buf: *mut *mut ::std::os::raw::c_void,
len: *mut size_t,
...
) -> ::std::os::raw::c_int;
}
pub const VipsForeignPpmFormat_VIPS_FOREIGN_PPM_FORMAT_PBM: VipsForeignPpmFormat = 0;
pub const VipsForeignPpmFormat_VIPS_FOREIGN_PPM_FORMAT_PGM: VipsForeignPpmFormat = 1;
pub const VipsForeignPpmFormat_VIPS_FOREIGN_PPM_FORMAT_PPM: VipsForeignPpmFormat = 2;
pub const VipsForeignPpmFormat_VIPS_FOREIGN_PPM_FORMAT_PFM: VipsForeignPpmFormat = 3;
pub const VipsForeignPpmFormat_VIPS_FOREIGN_PPM_FORMAT_PNM: VipsForeignPpmFormat = 4;
pub const VipsForeignPpmFormat_VIPS_FOREIGN_PPM_FORMAT_LAST: VipsForeignPpmFormat = 5;
pub type VipsForeignPpmFormat = ::std::os::raw::c_uint;
unsafe extern "C" {
pub fn vips_ppmload(
filename: *const ::std::os::raw::c_char,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_ppmload_buffer(
buf: *mut ::std::os::raw::c_void,
len: size_t,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_ppmload_source(
source: *mut VipsSource,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_ppmsave(
in_: *mut VipsImage,
filename: *const ::std::os::raw::c_char,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_ppmsave_target(
in_: *mut VipsImage,
target: *mut VipsTarget,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_matload(
filename: *const ::std::os::raw::c_char,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_radload_source(
source: *mut VipsSource,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_radload(
filename: *const ::std::os::raw::c_char,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_radload_buffer(
buf: *mut ::std::os::raw::c_void,
len: size_t,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_radsave(
in_: *mut VipsImage,
filename: *const ::std::os::raw::c_char,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_radsave_buffer(
in_: *mut VipsImage,
buf: *mut *mut ::std::os::raw::c_void,
len: *mut size_t,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_radsave_target(
in_: *mut VipsImage,
target: *mut VipsTarget,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_pdfload(
filename: *const ::std::os::raw::c_char,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_pdfload_buffer(
buf: *mut ::std::os::raw::c_void,
len: size_t,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_pdfload_source(
source: *mut VipsSource,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_svgload(
filename: *const ::std::os::raw::c_char,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_svgload_buffer(
buf: *mut ::std::os::raw::c_void,
len: size_t,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_svgload_string(
str_: *const ::std::os::raw::c_char,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_svgload_source(
source: *mut VipsSource,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_gifload(
filename: *const ::std::os::raw::c_char,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_gifload_buffer(
buf: *mut ::std::os::raw::c_void,
len: size_t,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_gifload_source(
source: *mut VipsSource,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_gifsave(
in_: *mut VipsImage,
filename: *const ::std::os::raw::c_char,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_gifsave_buffer(
in_: *mut VipsImage,
buf: *mut *mut ::std::os::raw::c_void,
len: *mut size_t,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_gifsave_target(
in_: *mut VipsImage,
target: *mut VipsTarget,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_heifload(
filename: *const ::std::os::raw::c_char,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_heifload_buffer(
buf: *mut ::std::os::raw::c_void,
len: size_t,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_heifload_source(
source: *mut VipsSource,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_heifsave(
in_: *mut VipsImage,
filename: *const ::std::os::raw::c_char,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_heifsave_buffer(
in_: *mut VipsImage,
buf: *mut *mut ::std::os::raw::c_void,
len: *mut size_t,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_heifsave_target(
in_: *mut VipsImage,
target: *mut VipsTarget,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_niftiload(
filename: *const ::std::os::raw::c_char,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_niftiload_source(
source: *mut VipsSource,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_niftisave(
in_: *mut VipsImage,
filename: *const ::std::os::raw::c_char,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_jp2kload(
filename: *const ::std::os::raw::c_char,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_jp2kload_buffer(
buf: *mut ::std::os::raw::c_void,
len: size_t,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_jp2kload_source(
source: *mut VipsSource,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_jp2ksave(
in_: *mut VipsImage,
filename: *const ::std::os::raw::c_char,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_jp2ksave_buffer(
in_: *mut VipsImage,
buf: *mut *mut ::std::os::raw::c_void,
len: *mut size_t,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_jp2ksave_target(
in_: *mut VipsImage,
target: *mut VipsTarget,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_jxlload_source(
source: *mut VipsSource,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_jxlload_buffer(
buf: *mut ::std::os::raw::c_void,
len: size_t,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_jxlload(
filename: *const ::std::os::raw::c_char,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_jxlsave(
in_: *mut VipsImage,
filename: *const ::std::os::raw::c_char,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_jxlsave_buffer(
in_: *mut VipsImage,
buf: *mut *mut ::std::os::raw::c_void,
len: *mut size_t,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_jxlsave_target(
in_: *mut VipsImage,
target: *mut VipsTarget,
...
) -> ::std::os::raw::c_int;
}
pub const VipsForeignDzLayout_VIPS_FOREIGN_DZ_LAYOUT_DZ: VipsForeignDzLayout = 0;
pub const VipsForeignDzLayout_VIPS_FOREIGN_DZ_LAYOUT_ZOOMIFY: VipsForeignDzLayout = 1;
pub const VipsForeignDzLayout_VIPS_FOREIGN_DZ_LAYOUT_GOOGLE: VipsForeignDzLayout = 2;
pub const VipsForeignDzLayout_VIPS_FOREIGN_DZ_LAYOUT_IIIF: VipsForeignDzLayout = 3;
pub const VipsForeignDzLayout_VIPS_FOREIGN_DZ_LAYOUT_IIIF3: VipsForeignDzLayout = 4;
pub const VipsForeignDzLayout_VIPS_FOREIGN_DZ_LAYOUT_LAST: VipsForeignDzLayout = 5;
pub type VipsForeignDzLayout = ::std::os::raw::c_uint;
pub const VipsForeignDzDepth_VIPS_FOREIGN_DZ_DEPTH_ONEPIXEL: VipsForeignDzDepth = 0;
pub const VipsForeignDzDepth_VIPS_FOREIGN_DZ_DEPTH_ONETILE: VipsForeignDzDepth = 1;
pub const VipsForeignDzDepth_VIPS_FOREIGN_DZ_DEPTH_ONE: VipsForeignDzDepth = 2;
pub const VipsForeignDzDepth_VIPS_FOREIGN_DZ_DEPTH_LAST: VipsForeignDzDepth = 3;
pub type VipsForeignDzDepth = ::std::os::raw::c_uint;
pub const VipsForeignDzContainer_VIPS_FOREIGN_DZ_CONTAINER_FS: VipsForeignDzContainer = 0;
pub const VipsForeignDzContainer_VIPS_FOREIGN_DZ_CONTAINER_ZIP: VipsForeignDzContainer = 1;
pub const VipsForeignDzContainer_VIPS_FOREIGN_DZ_CONTAINER_SZI: VipsForeignDzContainer = 2;
pub const VipsForeignDzContainer_VIPS_FOREIGN_DZ_CONTAINER_LAST: VipsForeignDzContainer = 3;
pub type VipsForeignDzContainer = ::std::os::raw::c_uint;
unsafe extern "C" {
pub fn vips_dzsave(
in_: *mut VipsImage,
name: *const ::std::os::raw::c_char,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_dzsave_buffer(
in_: *mut VipsImage,
buf: *mut *mut ::std::os::raw::c_void,
len: *mut size_t,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_dzsave_target(
in_: *mut VipsImage,
target: *mut VipsTarget,
...
) -> ::std::os::raw::c_int;
}
pub const VipsForeignHeifCompression_VIPS_FOREIGN_HEIF_COMPRESSION_HEVC:
VipsForeignHeifCompression = 1;
pub const VipsForeignHeifCompression_VIPS_FOREIGN_HEIF_COMPRESSION_AVC: VipsForeignHeifCompression =
2;
pub const VipsForeignHeifCompression_VIPS_FOREIGN_HEIF_COMPRESSION_JPEG:
VipsForeignHeifCompression = 3;
pub const VipsForeignHeifCompression_VIPS_FOREIGN_HEIF_COMPRESSION_AV1: VipsForeignHeifCompression =
4;
pub const VipsForeignHeifCompression_VIPS_FOREIGN_HEIF_COMPRESSION_LAST:
VipsForeignHeifCompression = 5;
pub type VipsForeignHeifCompression = ::std::os::raw::c_uint;
pub const VipsForeignHeifEncoder_VIPS_FOREIGN_HEIF_ENCODER_AUTO: VipsForeignHeifEncoder = 0;
pub const VipsForeignHeifEncoder_VIPS_FOREIGN_HEIF_ENCODER_AOM: VipsForeignHeifEncoder = 1;
pub const VipsForeignHeifEncoder_VIPS_FOREIGN_HEIF_ENCODER_RAV1E: VipsForeignHeifEncoder = 2;
pub const VipsForeignHeifEncoder_VIPS_FOREIGN_HEIF_ENCODER_SVT: VipsForeignHeifEncoder = 3;
pub const VipsForeignHeifEncoder_VIPS_FOREIGN_HEIF_ENCODER_X265: VipsForeignHeifEncoder = 4;
pub const VipsForeignHeifEncoder_VIPS_FOREIGN_HEIF_ENCODER_LAST: VipsForeignHeifEncoder = 5;
pub type VipsForeignHeifEncoder = ::std::os::raw::c_uint;
unsafe extern "C" {
pub fn vips_foreign_jpeg_subsample_get_type() -> GType;
}
unsafe extern "C" {
pub fn vips_operation_math_get_type() -> GType;
}
unsafe extern "C" {
pub fn vips_operation_math2_get_type() -> GType;
}
unsafe extern "C" {
pub fn vips_operation_round_get_type() -> GType;
}
unsafe extern "C" {
pub fn vips_operation_relational_get_type() -> GType;
}
unsafe extern "C" {
pub fn vips_operation_boolean_get_type() -> GType;
}
unsafe extern "C" {
pub fn vips_operation_complex_get_type() -> GType;
}
unsafe extern "C" {
pub fn vips_operation_complex2_get_type() -> GType;
}
unsafe extern "C" {
pub fn vips_operation_complexget_get_type() -> GType;
}
unsafe extern "C" {
pub fn vips_precision_get_type() -> GType;
}
unsafe extern "C" {
pub fn vips_intent_get_type() -> GType;
}
unsafe extern "C" {
pub fn vips_pcs_get_type() -> GType;
}
unsafe extern "C" {
pub fn vips_extend_get_type() -> GType;
}
unsafe extern "C" {
pub fn vips_compass_direction_get_type() -> GType;
}
unsafe extern "C" {
pub fn vips_direction_get_type() -> GType;
}
unsafe extern "C" {
pub fn vips_align_get_type() -> GType;
}
unsafe extern "C" {
pub fn vips_angle_get_type() -> GType;
}
unsafe extern "C" {
pub fn vips_angle45_get_type() -> GType;
}
unsafe extern "C" {
pub fn vips_interesting_get_type() -> GType;
}
unsafe extern "C" {
pub fn vips_blend_mode_get_type() -> GType;
}
unsafe extern "C" {
pub fn vips_combine_get_type() -> GType;
}
unsafe extern "C" {
pub fn vips_text_wrap_get_type() -> GType;
}
unsafe extern "C" {
pub fn vips_sdf_shape_get_type() -> GType;
}
unsafe extern "C" {
pub fn vips_combine_mode_get_type() -> GType;
}
unsafe extern "C" {
pub fn vips_foreign_flags_get_type() -> GType;
}
unsafe extern "C" {
pub fn vips_fail_on_get_type() -> GType;
}
unsafe extern "C" {
pub fn vips_foreign_saveable_get_type() -> GType;
}
unsafe extern "C" {
pub fn vips_foreign_coding_get_type() -> GType;
}
unsafe extern "C" {
pub fn vips_foreign_keep_get_type() -> GType;
}
unsafe extern "C" {
pub fn vips_foreign_subsample_get_type() -> GType;
}
unsafe extern "C" {
pub fn vips_foreign_webp_preset_get_type() -> GType;
}
unsafe extern "C" {
pub fn vips_foreign_tiff_compression_get_type() -> GType;
}
unsafe extern "C" {
pub fn vips_foreign_tiff_predictor_get_type() -> GType;
}
unsafe extern "C" {
pub fn vips_foreign_tiff_resunit_get_type() -> GType;
}
unsafe extern "C" {
pub fn vips_foreign_png_filter_get_type() -> GType;
}
unsafe extern "C" {
pub fn vips_foreign_ppm_format_get_type() -> GType;
}
unsafe extern "C" {
pub fn vips_foreign_dz_layout_get_type() -> GType;
}
unsafe extern "C" {
pub fn vips_foreign_dz_depth_get_type() -> GType;
}
unsafe extern "C" {
pub fn vips_foreign_dz_container_get_type() -> GType;
}
unsafe extern "C" {
pub fn vips_foreign_heif_compression_get_type() -> GType;
}
unsafe extern "C" {
pub fn vips_foreign_heif_encoder_get_type() -> GType;
}
unsafe extern "C" {
pub fn vips_demand_style_get_type() -> GType;
}
unsafe extern "C" {
pub fn vips_image_type_get_type() -> GType;
}
unsafe extern "C" {
pub fn vips_interpretation_get_type() -> GType;
}
unsafe extern "C" {
pub fn vips_band_format_get_type() -> GType;
}
unsafe extern "C" {
pub fn vips_coding_get_type() -> GType;
}
unsafe extern "C" {
pub fn vips_access_get_type() -> GType;
}
unsafe extern "C" {
pub fn vips_operation_morphology_get_type() -> GType;
}
unsafe extern "C" {
pub fn vips_argument_flags_get_type() -> GType;
}
unsafe extern "C" {
pub fn vips_operation_flags_get_type() -> GType;
}
unsafe extern "C" {
pub fn vips_region_shrink_get_type() -> GType;
}
unsafe extern "C" {
pub fn vips_kernel_get_type() -> GType;
}
unsafe extern "C" {
pub fn vips_size_get_type() -> GType;
}
unsafe extern "C" {
pub fn vips_token_get_type() -> GType;
}
unsafe extern "C" {
pub fn vips_saveable_get_type() -> GType;
}
pub const VipsOperationMath_VIPS_OPERATION_MATH_SIN: VipsOperationMath = 0;
pub const VipsOperationMath_VIPS_OPERATION_MATH_COS: VipsOperationMath = 1;
pub const VipsOperationMath_VIPS_OPERATION_MATH_TAN: VipsOperationMath = 2;
pub const VipsOperationMath_VIPS_OPERATION_MATH_ASIN: VipsOperationMath = 3;
pub const VipsOperationMath_VIPS_OPERATION_MATH_ACOS: VipsOperationMath = 4;
pub const VipsOperationMath_VIPS_OPERATION_MATH_ATAN: VipsOperationMath = 5;
pub const VipsOperationMath_VIPS_OPERATION_MATH_LOG: VipsOperationMath = 6;
pub const VipsOperationMath_VIPS_OPERATION_MATH_LOG10: VipsOperationMath = 7;
pub const VipsOperationMath_VIPS_OPERATION_MATH_EXP: VipsOperationMath = 8;
pub const VipsOperationMath_VIPS_OPERATION_MATH_EXP10: VipsOperationMath = 9;
pub const VipsOperationMath_VIPS_OPERATION_MATH_SINH: VipsOperationMath = 10;
pub const VipsOperationMath_VIPS_OPERATION_MATH_COSH: VipsOperationMath = 11;
pub const VipsOperationMath_VIPS_OPERATION_MATH_TANH: VipsOperationMath = 12;
pub const VipsOperationMath_VIPS_OPERATION_MATH_ASINH: VipsOperationMath = 13;
pub const VipsOperationMath_VIPS_OPERATION_MATH_ACOSH: VipsOperationMath = 14;
pub const VipsOperationMath_VIPS_OPERATION_MATH_ATANH: VipsOperationMath = 15;
pub const VipsOperationMath_VIPS_OPERATION_MATH_LAST: VipsOperationMath = 16;
pub type VipsOperationMath = ::std::os::raw::c_uint;
pub const VipsOperationMath2_VIPS_OPERATION_MATH2_POW: VipsOperationMath2 = 0;
pub const VipsOperationMath2_VIPS_OPERATION_MATH2_WOP: VipsOperationMath2 = 1;
pub const VipsOperationMath2_VIPS_OPERATION_MATH2_ATAN2: VipsOperationMath2 = 2;
pub const VipsOperationMath2_VIPS_OPERATION_MATH2_LAST: VipsOperationMath2 = 3;
pub type VipsOperationMath2 = ::std::os::raw::c_uint;
pub const VipsOperationRound_VIPS_OPERATION_ROUND_RINT: VipsOperationRound = 0;
pub const VipsOperationRound_VIPS_OPERATION_ROUND_CEIL: VipsOperationRound = 1;
pub const VipsOperationRound_VIPS_OPERATION_ROUND_FLOOR: VipsOperationRound = 2;
pub const VipsOperationRound_VIPS_OPERATION_ROUND_LAST: VipsOperationRound = 3;
pub type VipsOperationRound = ::std::os::raw::c_uint;
pub const VipsOperationRelational_VIPS_OPERATION_RELATIONAL_EQUAL: VipsOperationRelational = 0;
pub const VipsOperationRelational_VIPS_OPERATION_RELATIONAL_NOTEQ: VipsOperationRelational = 1;
pub const VipsOperationRelational_VIPS_OPERATION_RELATIONAL_LESS: VipsOperationRelational = 2;
pub const VipsOperationRelational_VIPS_OPERATION_RELATIONAL_LESSEQ: VipsOperationRelational = 3;
pub const VipsOperationRelational_VIPS_OPERATION_RELATIONAL_MORE: VipsOperationRelational = 4;
pub const VipsOperationRelational_VIPS_OPERATION_RELATIONAL_MOREEQ: VipsOperationRelational = 5;
pub const VipsOperationRelational_VIPS_OPERATION_RELATIONAL_LAST: VipsOperationRelational = 6;
pub type VipsOperationRelational = ::std::os::raw::c_uint;
pub const VipsOperationBoolean_VIPS_OPERATION_BOOLEAN_AND: VipsOperationBoolean = 0;
pub const VipsOperationBoolean_VIPS_OPERATION_BOOLEAN_OR: VipsOperationBoolean = 1;
pub const VipsOperationBoolean_VIPS_OPERATION_BOOLEAN_EOR: VipsOperationBoolean = 2;
pub const VipsOperationBoolean_VIPS_OPERATION_BOOLEAN_LSHIFT: VipsOperationBoolean = 3;
pub const VipsOperationBoolean_VIPS_OPERATION_BOOLEAN_RSHIFT: VipsOperationBoolean = 4;
pub const VipsOperationBoolean_VIPS_OPERATION_BOOLEAN_LAST: VipsOperationBoolean = 5;
pub type VipsOperationBoolean = ::std::os::raw::c_uint;
pub const VipsOperationComplex_VIPS_OPERATION_COMPLEX_POLAR: VipsOperationComplex = 0;
pub const VipsOperationComplex_VIPS_OPERATION_COMPLEX_RECT: VipsOperationComplex = 1;
pub const VipsOperationComplex_VIPS_OPERATION_COMPLEX_CONJ: VipsOperationComplex = 2;
pub const VipsOperationComplex_VIPS_OPERATION_COMPLEX_LAST: VipsOperationComplex = 3;
pub type VipsOperationComplex = ::std::os::raw::c_uint;
pub const VipsOperationComplex2_VIPS_OPERATION_COMPLEX2_CROSS_PHASE: VipsOperationComplex2 = 0;
pub const VipsOperationComplex2_VIPS_OPERATION_COMPLEX2_LAST: VipsOperationComplex2 = 1;
pub type VipsOperationComplex2 = ::std::os::raw::c_uint;
pub const VipsOperationComplexget_VIPS_OPERATION_COMPLEXGET_REAL: VipsOperationComplexget = 0;
pub const VipsOperationComplexget_VIPS_OPERATION_COMPLEXGET_IMAG: VipsOperationComplexget = 1;
pub const VipsOperationComplexget_VIPS_OPERATION_COMPLEXGET_LAST: VipsOperationComplexget = 2;
pub type VipsOperationComplexget = ::std::os::raw::c_uint;
unsafe extern "C" {
pub fn vips_add(
left: *mut VipsImage,
right: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe 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;
}
unsafe extern "C" {
pub fn vips_subtract(
in1: *mut VipsImage,
in2: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_multiply(
left: *mut VipsImage,
right: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_divide(
left: *mut VipsImage,
right: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_linear(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
a: *const f64,
b: *const f64,
n: ::std::os::raw::c_int,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_linear1(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
a: f64,
b: f64,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_remainder(
left: *mut VipsImage,
right: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_remainder_const(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
c: *const f64,
n: ::std::os::raw::c_int,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_remainder_const1(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
c: f64,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_invert(in_: *mut VipsImage, out: *mut *mut VipsImage, ...)
-> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_abs(in_: *mut VipsImage, out: *mut *mut VipsImage, ...) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_sign(in_: *mut VipsImage, out: *mut *mut VipsImage, ...) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_clamp(in_: *mut VipsImage, out: *mut *mut VipsImage, ...) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_maxpair(
left: *mut VipsImage,
right: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_minpair(
left: *mut VipsImage,
right: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_round(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
round: VipsOperationRound,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_floor(in_: *mut VipsImage, out: *mut *mut VipsImage, ...) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_ceil(in_: *mut VipsImage, out: *mut *mut VipsImage, ...) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_rint(in_: *mut VipsImage, out: *mut *mut VipsImage, ...) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_math(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
math: VipsOperationMath,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_sin(in_: *mut VipsImage, out: *mut *mut VipsImage, ...) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_cos(in_: *mut VipsImage, out: *mut *mut VipsImage, ...) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_tan(in_: *mut VipsImage, out: *mut *mut VipsImage, ...) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_asin(in_: *mut VipsImage, out: *mut *mut VipsImage, ...) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_acos(in_: *mut VipsImage, out: *mut *mut VipsImage, ...) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_atan(in_: *mut VipsImage, out: *mut *mut VipsImage, ...) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_exp(in_: *mut VipsImage, out: *mut *mut VipsImage, ...) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_exp10(in_: *mut VipsImage, out: *mut *mut VipsImage, ...) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_log(in_: *mut VipsImage, out: *mut *mut VipsImage, ...) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_log10(in_: *mut VipsImage, out: *mut *mut VipsImage, ...) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_sinh(in_: *mut VipsImage, out: *mut *mut VipsImage, ...) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_cosh(in_: *mut VipsImage, out: *mut *mut VipsImage, ...) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_tanh(in_: *mut VipsImage, out: *mut *mut VipsImage, ...) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_asinh(in_: *mut VipsImage, out: *mut *mut VipsImage, ...) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_acosh(in_: *mut VipsImage, out: *mut *mut VipsImage, ...) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_atanh(in_: *mut VipsImage, out: *mut *mut VipsImage, ...) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_complex(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
cmplx: VipsOperationComplex,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_polar(in_: *mut VipsImage, out: *mut *mut VipsImage, ...) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_rect(in_: *mut VipsImage, out: *mut *mut VipsImage, ...) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_conj(in_: *mut VipsImage, out: *mut *mut VipsImage, ...) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_complex2(
left: *mut VipsImage,
right: *mut VipsImage,
out: *mut *mut VipsImage,
cmplx: VipsOperationComplex2,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_cross_phase(
left: *mut VipsImage,
right: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_complexget(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
get: VipsOperationComplexget,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_real(in_: *mut VipsImage, out: *mut *mut VipsImage, ...) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_imag(in_: *mut VipsImage, out: *mut *mut VipsImage, ...) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_complexform(
left: *mut VipsImage,
right: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_relational(
left: *mut VipsImage,
right: *mut VipsImage,
out: *mut *mut VipsImage,
relational: VipsOperationRelational,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_equal(
left: *mut VipsImage,
right: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_notequal(
left: *mut VipsImage,
right: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_less(
left: *mut VipsImage,
right: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_lesseq(
left: *mut VipsImage,
right: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_more(
left: *mut VipsImage,
right: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_moreeq(
left: *mut VipsImage,
right: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_relational_const(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
relational: VipsOperationRelational,
c: *const f64,
n: ::std::os::raw::c_int,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_equal_const(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
c: *const f64,
n: ::std::os::raw::c_int,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_notequal_const(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
c: *const f64,
n: ::std::os::raw::c_int,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_less_const(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
c: *const f64,
n: ::std::os::raw::c_int,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_lesseq_const(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
c: *const f64,
n: ::std::os::raw::c_int,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_more_const(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
c: *const f64,
n: ::std::os::raw::c_int,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_moreeq_const(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
c: *const f64,
n: ::std::os::raw::c_int,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_relational_const1(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
relational: VipsOperationRelational,
c: f64,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_equal_const1(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
c: f64,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_notequal_const1(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
c: f64,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_less_const1(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
c: f64,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_lesseq_const1(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
c: f64,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_more_const1(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
c: f64,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_moreeq_const1(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
c: f64,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_boolean(
left: *mut VipsImage,
right: *mut VipsImage,
out: *mut *mut VipsImage,
boolean: VipsOperationBoolean,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_andimage(
left: *mut VipsImage,
right: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_orimage(
left: *mut VipsImage,
right: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_eorimage(
left: *mut VipsImage,
right: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_lshift(
left: *mut VipsImage,
right: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_rshift(
left: *mut VipsImage,
right: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_boolean_const(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
boolean: VipsOperationBoolean,
c: *const f64,
n: ::std::os::raw::c_int,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_andimage_const(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
c: *const f64,
n: ::std::os::raw::c_int,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_orimage_const(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
c: *const f64,
n: ::std::os::raw::c_int,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_eorimage_const(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
c: *const f64,
n: ::std::os::raw::c_int,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_lshift_const(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
c: *const f64,
n: ::std::os::raw::c_int,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_rshift_const(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
c: *const f64,
n: ::std::os::raw::c_int,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_boolean_const1(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
boolean: VipsOperationBoolean,
c: f64,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_andimage_const1(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
c: f64,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_orimage_const1(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
c: f64,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_eorimage_const1(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
c: f64,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_lshift_const1(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
c: f64,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_rshift_const1(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
c: f64,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_math2(
left: *mut VipsImage,
right: *mut VipsImage,
out: *mut *mut VipsImage,
math2: VipsOperationMath2,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_pow(
left: *mut VipsImage,
right: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_wop(
left: *mut VipsImage,
right: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_atan2(
left: *mut VipsImage,
right: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_math2_const(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
math2: VipsOperationMath2,
c: *const f64,
n: ::std::os::raw::c_int,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_pow_const(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
c: *const f64,
n: ::std::os::raw::c_int,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_wop_const(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
c: *const f64,
n: ::std::os::raw::c_int,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_atan2_const(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
c: *const f64,
n: ::std::os::raw::c_int,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_math2_const1(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
math2: VipsOperationMath2,
c: f64,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_pow_const1(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
c: f64,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_wop_const1(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
c: f64,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_atan2_const1(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
c: f64,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_avg(in_: *mut VipsImage, out: *mut f64, ...) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_deviate(in_: *mut VipsImage, out: *mut f64, ...) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_min(in_: *mut VipsImage, out: *mut f64, ...) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_max(in_: *mut VipsImage, out: *mut f64, ...) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_stats(in_: *mut VipsImage, out: *mut *mut VipsImage, ...) -> ::std::os::raw::c_int;
}
unsafe 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;
}
unsafe extern "C" {
pub fn vips_find_trim(
in_: *mut VipsImage,
left: *mut ::std::os::raw::c_int,
top: *mut ::std::os::raw::c_int,
width: *mut ::std::os::raw::c_int,
height: *mut ::std::os::raw::c_int,
...
) -> ::std::os::raw::c_int;
}
unsafe 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;
}
unsafe extern "C" {
pub fn vips_hist_find(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_hist_find_ndim(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_hist_find_indexed(
in_: *mut VipsImage,
index: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_hough_line(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_hough_circle(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_project(
in_: *mut VipsImage,
columns: *mut *mut VipsImage,
rows: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_profile(
in_: *mut VipsImage,
columns: *mut *mut VipsImage,
rows: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
pub const VipsExtend_VIPS_EXTEND_BLACK: VipsExtend = 0;
pub const VipsExtend_VIPS_EXTEND_COPY: VipsExtend = 1;
pub const VipsExtend_VIPS_EXTEND_REPEAT: VipsExtend = 2;
pub const VipsExtend_VIPS_EXTEND_MIRROR: VipsExtend = 3;
pub const VipsExtend_VIPS_EXTEND_WHITE: VipsExtend = 4;
pub const VipsExtend_VIPS_EXTEND_BACKGROUND: VipsExtend = 5;
pub const VipsExtend_VIPS_EXTEND_LAST: VipsExtend = 6;
pub type VipsExtend = ::std::os::raw::c_uint;
pub const VipsCompassDirection_VIPS_COMPASS_DIRECTION_CENTRE: VipsCompassDirection = 0;
pub const VipsCompassDirection_VIPS_COMPASS_DIRECTION_NORTH: VipsCompassDirection = 1;
pub const VipsCompassDirection_VIPS_COMPASS_DIRECTION_EAST: VipsCompassDirection = 2;
pub const VipsCompassDirection_VIPS_COMPASS_DIRECTION_SOUTH: VipsCompassDirection = 3;
pub const VipsCompassDirection_VIPS_COMPASS_DIRECTION_WEST: VipsCompassDirection = 4;
pub const VipsCompassDirection_VIPS_COMPASS_DIRECTION_NORTH_EAST: VipsCompassDirection = 5;
pub const VipsCompassDirection_VIPS_COMPASS_DIRECTION_SOUTH_EAST: VipsCompassDirection = 6;
pub const VipsCompassDirection_VIPS_COMPASS_DIRECTION_SOUTH_WEST: VipsCompassDirection = 7;
pub const VipsCompassDirection_VIPS_COMPASS_DIRECTION_NORTH_WEST: VipsCompassDirection = 8;
pub const VipsCompassDirection_VIPS_COMPASS_DIRECTION_LAST: VipsCompassDirection = 9;
pub type VipsCompassDirection = ::std::os::raw::c_uint;
pub const VipsDirection_VIPS_DIRECTION_HORIZONTAL: VipsDirection = 0;
pub const VipsDirection_VIPS_DIRECTION_VERTICAL: VipsDirection = 1;
pub const VipsDirection_VIPS_DIRECTION_LAST: VipsDirection = 2;
pub type VipsDirection = ::std::os::raw::c_uint;
pub const VipsAlign_VIPS_ALIGN_LOW: VipsAlign = 0;
pub const VipsAlign_VIPS_ALIGN_CENTRE: VipsAlign = 1;
pub const VipsAlign_VIPS_ALIGN_HIGH: VipsAlign = 2;
pub const VipsAlign_VIPS_ALIGN_LAST: VipsAlign = 3;
pub type VipsAlign = ::std::os::raw::c_uint;
pub const VipsAngle_VIPS_ANGLE_D0: VipsAngle = 0;
pub const VipsAngle_VIPS_ANGLE_D90: VipsAngle = 1;
pub const VipsAngle_VIPS_ANGLE_D180: VipsAngle = 2;
pub const VipsAngle_VIPS_ANGLE_D270: VipsAngle = 3;
pub const VipsAngle_VIPS_ANGLE_LAST: VipsAngle = 4;
pub type VipsAngle = ::std::os::raw::c_uint;
pub const VipsAngle45_VIPS_ANGLE45_D0: VipsAngle45 = 0;
pub const VipsAngle45_VIPS_ANGLE45_D45: VipsAngle45 = 1;
pub const VipsAngle45_VIPS_ANGLE45_D90: VipsAngle45 = 2;
pub const VipsAngle45_VIPS_ANGLE45_D135: VipsAngle45 = 3;
pub const VipsAngle45_VIPS_ANGLE45_D180: VipsAngle45 = 4;
pub const VipsAngle45_VIPS_ANGLE45_D225: VipsAngle45 = 5;
pub const VipsAngle45_VIPS_ANGLE45_D270: VipsAngle45 = 6;
pub const VipsAngle45_VIPS_ANGLE45_D315: VipsAngle45 = 7;
pub const VipsAngle45_VIPS_ANGLE45_LAST: VipsAngle45 = 8;
pub type VipsAngle45 = ::std::os::raw::c_uint;
pub const VipsInteresting_VIPS_INTERESTING_NONE: VipsInteresting = 0;
pub const VipsInteresting_VIPS_INTERESTING_CENTRE: VipsInteresting = 1;
pub const VipsInteresting_VIPS_INTERESTING_ENTROPY: VipsInteresting = 2;
pub const VipsInteresting_VIPS_INTERESTING_ATTENTION: VipsInteresting = 3;
pub const VipsInteresting_VIPS_INTERESTING_LOW: VipsInteresting = 4;
pub const VipsInteresting_VIPS_INTERESTING_HIGH: VipsInteresting = 5;
pub const VipsInteresting_VIPS_INTERESTING_ALL: VipsInteresting = 6;
pub const VipsInteresting_VIPS_INTERESTING_LAST: VipsInteresting = 7;
pub type VipsInteresting = ::std::os::raw::c_uint;
pub const VipsBlendMode_VIPS_BLEND_MODE_CLEAR: VipsBlendMode = 0;
pub const VipsBlendMode_VIPS_BLEND_MODE_SOURCE: VipsBlendMode = 1;
pub const VipsBlendMode_VIPS_BLEND_MODE_OVER: VipsBlendMode = 2;
pub const VipsBlendMode_VIPS_BLEND_MODE_IN: VipsBlendMode = 3;
pub const VipsBlendMode_VIPS_BLEND_MODE_OUT: VipsBlendMode = 4;
pub const VipsBlendMode_VIPS_BLEND_MODE_ATOP: VipsBlendMode = 5;
pub const VipsBlendMode_VIPS_BLEND_MODE_DEST: VipsBlendMode = 6;
pub const VipsBlendMode_VIPS_BLEND_MODE_DEST_OVER: VipsBlendMode = 7;
pub const VipsBlendMode_VIPS_BLEND_MODE_DEST_IN: VipsBlendMode = 8;
pub const VipsBlendMode_VIPS_BLEND_MODE_DEST_OUT: VipsBlendMode = 9;
pub const VipsBlendMode_VIPS_BLEND_MODE_DEST_ATOP: VipsBlendMode = 10;
pub const VipsBlendMode_VIPS_BLEND_MODE_XOR: VipsBlendMode = 11;
pub const VipsBlendMode_VIPS_BLEND_MODE_ADD: VipsBlendMode = 12;
pub const VipsBlendMode_VIPS_BLEND_MODE_SATURATE: VipsBlendMode = 13;
pub const VipsBlendMode_VIPS_BLEND_MODE_MULTIPLY: VipsBlendMode = 14;
pub const VipsBlendMode_VIPS_BLEND_MODE_SCREEN: VipsBlendMode = 15;
pub const VipsBlendMode_VIPS_BLEND_MODE_OVERLAY: VipsBlendMode = 16;
pub const VipsBlendMode_VIPS_BLEND_MODE_DARKEN: VipsBlendMode = 17;
pub const VipsBlendMode_VIPS_BLEND_MODE_LIGHTEN: VipsBlendMode = 18;
pub const VipsBlendMode_VIPS_BLEND_MODE_COLOUR_DODGE: VipsBlendMode = 19;
pub const VipsBlendMode_VIPS_BLEND_MODE_COLOUR_BURN: VipsBlendMode = 20;
pub const VipsBlendMode_VIPS_BLEND_MODE_HARD_LIGHT: VipsBlendMode = 21;
pub const VipsBlendMode_VIPS_BLEND_MODE_SOFT_LIGHT: VipsBlendMode = 22;
pub const VipsBlendMode_VIPS_BLEND_MODE_DIFFERENCE: VipsBlendMode = 23;
pub const VipsBlendMode_VIPS_BLEND_MODE_EXCLUSION: VipsBlendMode = 24;
pub const VipsBlendMode_VIPS_BLEND_MODE_LAST: VipsBlendMode = 25;
pub type VipsBlendMode = ::std::os::raw::c_uint;
unsafe extern "C" {
pub fn vips_copy(in_: *mut VipsImage, out: *mut *mut VipsImage, ...) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_tilecache(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_linecache(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_sequential(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_copy_file(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe 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;
}
unsafe extern "C" {
pub fn vips_gravity(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
direction: VipsCompassDirection,
width: ::std::os::raw::c_int,
height: ::std::os::raw::c_int,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_flip(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
direction: VipsDirection,
...
) -> ::std::os::raw::c_int;
}
unsafe 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;
}
unsafe extern "C" {
pub fn vips_join(
in1: *mut VipsImage,
in2: *mut VipsImage,
out: *mut *mut VipsImage,
direction: VipsDirection,
...
) -> ::std::os::raw::c_int;
}
unsafe 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;
}
unsafe 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;
}
unsafe 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;
}
unsafe extern "C" {
pub fn vips_smartcrop(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
width: ::std::os::raw::c_int,
height: ::std::os::raw::c_int,
...
) -> ::std::os::raw::c_int;
}
unsafe 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;
}
unsafe 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;
}
unsafe 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;
}
unsafe extern "C" {
pub fn vips_transpose3d(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_wrap(in_: *mut VipsImage, out: *mut *mut VipsImage, ...) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_rot(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
angle: VipsAngle,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_rot90(in_: *mut VipsImage, out: *mut *mut VipsImage, ...) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_rot180(in_: *mut VipsImage, out: *mut *mut VipsImage, ...)
-> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_rot270(in_: *mut VipsImage, out: *mut *mut VipsImage, ...)
-> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_rot45(in_: *mut VipsImage, out: *mut *mut VipsImage, ...) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_autorot_remove_angle(image: *mut VipsImage);
}
unsafe extern "C" {
pub fn vips_autorot(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe 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;
}
unsafe 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;
}
unsafe extern "C" {
pub fn vips_cast(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
format: VipsBandFormat,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_cast_uchar(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_cast_char(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_cast_ushort(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_cast_short(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_cast_uint(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_cast_int(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_cast_float(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_cast_double(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_cast_complex(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_cast_dpcomplex(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_scale(in_: *mut VipsImage, out: *mut *mut VipsImage, ...) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_msb(in_: *mut VipsImage, out: *mut *mut VipsImage, ...) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_byteswap(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe 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;
}
unsafe extern "C" {
pub fn vips_bandjoin2(
in1: *mut VipsImage,
in2: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe 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;
}
unsafe extern "C" {
pub fn vips_bandjoin_const1(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
c: f64,
...
) -> ::std::os::raw::c_int;
}
unsafe 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;
}
unsafe extern "C" {
pub fn vips_bandfold(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_bandunfold(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_bandbool(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
boolean: VipsOperationBoolean,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_bandand(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_bandor(in_: *mut VipsImage, out: *mut *mut VipsImage, ...)
-> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_bandeor(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_bandmean(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_recomb(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
m: *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_ifthenelse(
cond: *mut VipsImage,
in1: *mut VipsImage,
in2: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_switch(
tests: *mut *mut VipsImage,
out: *mut *mut VipsImage,
n: ::std::os::raw::c_int,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_flatten(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_addalpha(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_premultiply(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_unpremultiply(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_composite(
in_: *mut *mut VipsImage,
out: *mut *mut VipsImage,
n: ::std::os::raw::c_int,
mode: *mut ::std::os::raw::c_int,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_composite2(
base: *mut VipsImage,
overlay: *mut VipsImage,
out: *mut *mut VipsImage,
mode: VipsBlendMode,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_falsecolour(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_gamma(in_: *mut VipsImage, out: *mut *mut VipsImage, ...) -> ::std::os::raw::c_int;
}
pub const VipsCombine_VIPS_COMBINE_MAX: VipsCombine = 0;
pub const VipsCombine_VIPS_COMBINE_SUM: VipsCombine = 1;
pub const VipsCombine_VIPS_COMBINE_MIN: VipsCombine = 2;
pub const VipsCombine_VIPS_COMBINE_LAST: VipsCombine = 3;
pub type VipsCombine = ::std::os::raw::c_uint;
unsafe extern "C" {
pub fn vips_conv(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
mask: *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_convf(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
mask: *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_convi(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
mask: *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_conva(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
mask: *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_convsep(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
mask: *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_convasep(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
mask: *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_compass(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
mask: *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_gaussblur(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
sigma: f64,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_sharpen(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_spcor(
in_: *mut VipsImage,
ref_: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_fastcor(
in_: *mut VipsImage,
ref_: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_sobel(in_: *mut VipsImage, out: *mut *mut VipsImage, ...) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_scharr(in_: *mut VipsImage, out: *mut *mut VipsImage, ...)
-> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_prewitt(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_canny(in_: *mut VipsImage, out: *mut *mut VipsImage, ...) -> ::std::os::raw::c_int;
}
pub const VipsOperationMorphology_VIPS_OPERATION_MORPHOLOGY_ERODE: VipsOperationMorphology = 0;
pub const VipsOperationMorphology_VIPS_OPERATION_MORPHOLOGY_DILATE: VipsOperationMorphology = 1;
pub const VipsOperationMorphology_VIPS_OPERATION_MORPHOLOGY_LAST: VipsOperationMorphology = 2;
pub type VipsOperationMorphology = ::std::os::raw::c_uint;
unsafe extern "C" {
pub fn vips_morph(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
mask: *mut VipsImage,
morph: VipsOperationMorphology,
...
) -> ::std::os::raw::c_int;
}
unsafe 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;
}
unsafe extern "C" {
pub fn vips_median(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
size: ::std::os::raw::c_int,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_countlines(
in_: *mut VipsImage,
nolines: *mut f64,
direction: VipsDirection,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_labelregions(
in_: *mut VipsImage,
mask: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_fill_nearest(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe 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;
}
unsafe 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;
}
unsafe 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;
}
unsafe 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;
}
unsafe extern "C" {
pub fn vips_globalbalance(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe 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;
}
unsafe extern "C" {
pub fn vips_matrixinvert(
m: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_matrixmultiply(
left: *mut VipsImage,
right: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_maplut(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
lut: *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_percent(
in_: *mut VipsImage,
percent: f64,
threshold: *mut ::std::os::raw::c_int,
...
) -> ::std::os::raw::c_int;
}
unsafe 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;
}
unsafe extern "C" {
pub fn vips_hist_cum(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_hist_norm(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_hist_equal(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_hist_plot(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_hist_match(
in_: *mut VipsImage,
ref_: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe 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;
}
unsafe extern "C" {
pub fn vips_hist_ismonotonic(
in_: *mut VipsImage,
out: *mut gboolean,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_hist_entropy(in_: *mut VipsImage, out: *mut f64, ...) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_case(
index: *mut VipsImage,
cases: *mut *mut VipsImage,
out: *mut *mut VipsImage,
n: ::std::os::raw::c_int,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_fwfft(in_: *mut VipsImage, out: *mut *mut VipsImage, ...) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_invfft(in_: *mut VipsImage, out: *mut *mut VipsImage, ...)
-> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_freqmult(
in_: *mut VipsImage,
mask: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_spectrum(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_phasecor(
in1: *mut VipsImage,
in2: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
pub const VipsKernel_VIPS_KERNEL_NEAREST: VipsKernel = 0;
pub const VipsKernel_VIPS_KERNEL_LINEAR: VipsKernel = 1;
pub const VipsKernel_VIPS_KERNEL_CUBIC: VipsKernel = 2;
pub const VipsKernel_VIPS_KERNEL_MITCHELL: VipsKernel = 3;
pub const VipsKernel_VIPS_KERNEL_LANCZOS2: VipsKernel = 4;
pub const VipsKernel_VIPS_KERNEL_LANCZOS3: VipsKernel = 5;
pub const VipsKernel_VIPS_KERNEL_MKS2013: VipsKernel = 6;
pub const VipsKernel_VIPS_KERNEL_MKS2021: VipsKernel = 7;
pub const VipsKernel_VIPS_KERNEL_LAST: VipsKernel = 8;
pub type VipsKernel = ::std::os::raw::c_uint;
pub const VipsSize_VIPS_SIZE_BOTH: VipsSize = 0;
pub const VipsSize_VIPS_SIZE_UP: VipsSize = 1;
pub const VipsSize_VIPS_SIZE_DOWN: VipsSize = 2;
pub const VipsSize_VIPS_SIZE_FORCE: VipsSize = 3;
pub const VipsSize_VIPS_SIZE_LAST: VipsSize = 4;
pub type VipsSize = ::std::os::raw::c_uint;
unsafe extern "C" {
pub fn vips_shrink(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
hshrink: f64,
vshrink: f64,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_shrinkh(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
hshrink: ::std::os::raw::c_int,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_shrinkv(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
vshrink: ::std::os::raw::c_int,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_reduce(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
hshrink: f64,
vshrink: f64,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_reduceh(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
hshrink: f64,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_reducev(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
vshrink: f64,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_thumbnail(
filename: *const ::std::os::raw::c_char,
out: *mut *mut VipsImage,
width: ::std::os::raw::c_int,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_thumbnail_buffer(
buf: *mut ::std::os::raw::c_void,
len: size_t,
out: *mut *mut VipsImage,
width: ::std::os::raw::c_int,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_thumbnail_image(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
width: ::std::os::raw::c_int,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_thumbnail_source(
source: *mut VipsSource,
out: *mut *mut VipsImage,
width: ::std::os::raw::c_int,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_similarity(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_rotate(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
angle: f64,
...
) -> ::std::os::raw::c_int;
}
unsafe 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;
}
unsafe extern "C" {
pub fn vips_resize(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
scale: f64,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_mapim(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
index: *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_quadratic(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
coeff: *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
pub const VipsIntent_VIPS_INTENT_PERCEPTUAL: VipsIntent = 0;
pub const VipsIntent_VIPS_INTENT_RELATIVE: VipsIntent = 1;
pub const VipsIntent_VIPS_INTENT_SATURATION: VipsIntent = 2;
pub const VipsIntent_VIPS_INTENT_ABSOLUTE: VipsIntent = 3;
pub const VipsIntent_VIPS_INTENT_AUTO: VipsIntent = 32;
pub const VipsIntent_VIPS_INTENT_LAST: VipsIntent = 33;
pub type VipsIntent = ::std::os::raw::c_uint;
pub const VipsPCS_VIPS_PCS_LAB: VipsPCS = 0;
pub const VipsPCS_VIPS_PCS_XYZ: VipsPCS = 1;
pub const VipsPCS_VIPS_PCS_LAST: VipsPCS = 2;
pub type VipsPCS = ::std::os::raw::c_uint;
unsafe extern "C" {
pub fn vips_colourspace_issupported(image: *const VipsImage) -> gboolean;
}
unsafe extern "C" {
pub fn vips_colourspace(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
space: VipsInterpretation,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_LabQ2sRGB(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_rad2float(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_float2rad(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_LabS2LabQ(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_LabQ2LabS(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_LabQ2Lab(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_Lab2LabQ(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_LCh2Lab(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_Lab2LCh(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_Lab2XYZ(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_XYZ2Lab(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_XYZ2scRGB(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_scRGB2sRGB(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_scRGB2BW(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_sRGB2scRGB(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_scRGB2XYZ(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_HSV2sRGB(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_sRGB2HSV(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_LCh2CMC(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_CMC2LCh(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_XYZ2Yxy(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_Yxy2XYZ(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_LabS2Lab(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_Lab2LabS(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_CMYK2XYZ(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_XYZ2CMYK(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_profile_load(
name: *const ::std::os::raw::c_char,
profile: *mut *mut VipsBlob,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_icc_present() -> ::std::os::raw::c_int;
}
unsafe 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;
}
unsafe extern "C" {
pub fn vips_icc_import(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_icc_export(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe 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;
}
unsafe extern "C" {
pub fn vips_icc_is_compatible_profile(
image: *mut VipsImage,
data: *const ::std::os::raw::c_void,
data_length: size_t,
) -> gboolean;
}
unsafe extern "C" {
pub fn vips_dE76(
left: *mut VipsImage,
right: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_dE00(
left: *mut VipsImage,
right: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_dECMC(
left: *mut VipsImage,
right: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_col_Lab2XYZ(L: f32, a: f32, b: f32, X: *mut f32, Y: *mut f32, Z: *mut f32);
}
unsafe extern "C" {
pub fn vips_col_XYZ2Lab(X: f32, Y: f32, Z: f32, L: *mut f32, a: *mut f32, b: *mut f32);
}
unsafe extern "C" {
pub fn vips_col_ab2h(a: f64, b: f64) -> f64;
}
unsafe extern "C" {
pub fn vips_col_ab2Ch(a: f32, b: f32, C: *mut f32, h: *mut f32);
}
unsafe extern "C" {
pub fn vips_col_Ch2ab(C: f32, h: f32, a: *mut f32, b: *mut f32);
}
unsafe extern "C" {
pub fn vips_col_L2Lcmc(L: f32) -> f32;
}
unsafe extern "C" {
pub fn vips_col_C2Ccmc(C: f32) -> f32;
}
unsafe extern "C" {
pub fn vips_col_Ch2hcmc(C: f32, h: f32) -> f32;
}
unsafe extern "C" {
pub fn vips_col_make_tables_CMC();
}
unsafe extern "C" {
pub fn vips_col_Lcmc2L(Lcmc: f32) -> f32;
}
unsafe extern "C" {
pub fn vips_col_Ccmc2C(Ccmc: f32) -> f32;
}
unsafe extern "C" {
pub fn vips_col_Chcmc2h(C: f32, hcmc: f32) -> f32;
}
unsafe 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;
}
unsafe 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;
}
unsafe extern "C" {
pub fn vips_col_sRGB2scRGB_8_noclip(
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;
}
unsafe extern "C" {
pub fn vips_col_sRGB2scRGB_16_noclip(
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;
}
unsafe 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;
}
unsafe 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;
}
unsafe 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;
}
unsafe 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;
}
unsafe 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;
}
unsafe 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;
}
unsafe extern "C" {
pub fn vips_pythagoras(L1: f32, a1: f32, b1: f32, L2: f32, a2: f32, b2: f32) -> f32;
}
unsafe extern "C" {
pub fn vips_col_dE00(L1: f32, a1: f32, b1: f32, L2: f32, a2: f32, b2: f32) -> f32;
}
pub const VipsCombineMode_VIPS_COMBINE_MODE_SET: VipsCombineMode = 0;
pub const VipsCombineMode_VIPS_COMBINE_MODE_ADD: VipsCombineMode = 1;
pub const VipsCombineMode_VIPS_COMBINE_MODE_LAST: VipsCombineMode = 2;
pub type VipsCombineMode = ::std::os::raw::c_uint;
unsafe 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;
}
unsafe 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;
}
unsafe 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;
}
unsafe 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;
}
unsafe 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;
}
unsafe 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;
}
unsafe 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;
}
unsafe 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;
}
unsafe 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;
}
unsafe 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;
}
unsafe 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;
}
unsafe 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;
}
unsafe 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;
}
unsafe 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;
}
pub const VipsTextWrap_VIPS_TEXT_WRAP_WORD: VipsTextWrap = 0;
pub const VipsTextWrap_VIPS_TEXT_WRAP_CHAR: VipsTextWrap = 1;
pub const VipsTextWrap_VIPS_TEXT_WRAP_WORD_CHAR: VipsTextWrap = 2;
pub const VipsTextWrap_VIPS_TEXT_WRAP_NONE: VipsTextWrap = 3;
pub const VipsTextWrap_VIPS_TEXT_WRAP_LAST: VipsTextWrap = 4;
pub type VipsTextWrap = ::std::os::raw::c_uint;
pub const VipsSdfShape_VIPS_SDF_SHAPE_CIRCLE: VipsSdfShape = 0;
pub const VipsSdfShape_VIPS_SDF_SHAPE_BOX: VipsSdfShape = 1;
pub const VipsSdfShape_VIPS_SDF_SHAPE_ROUNDED_BOX: VipsSdfShape = 2;
pub const VipsSdfShape_VIPS_SDF_SHAPE_LINE: VipsSdfShape = 3;
pub const VipsSdfShape_VIPS_SDF_SHAPE_LAST: VipsSdfShape = 4;
pub type VipsSdfShape = ::std::os::raw::c_uint;
unsafe 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;
}
unsafe 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;
}
unsafe 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;
}
unsafe extern "C" {
pub fn vips_gaussmat(
out: *mut *mut VipsImage,
sigma: f64,
min_ampl: f64,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_logmat(
out: *mut *mut VipsImage,
sigma: f64,
min_ampl: f64,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_text(
out: *mut *mut VipsImage,
text: *const ::std::os::raw::c_char,
...
) -> ::std::os::raw::c_int;
}
unsafe 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;
}
unsafe 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;
}
unsafe 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;
}
unsafe 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;
}
unsafe extern "C" {
pub fn vips_sdf(
out: *mut *mut VipsImage,
width: ::std::os::raw::c_int,
height: ::std::os::raw::c_int,
shape: VipsSdfShape,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_identity(out: *mut *mut VipsImage, ...) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_buildlut(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_invertlut(
in_: *mut VipsImage,
out: *mut *mut VipsImage,
...
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_tonelut(out: *mut *mut VipsImage, ...) -> ::std::os::raw::c_int;
}
unsafe 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;
}
unsafe 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;
}
unsafe 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;
}
unsafe 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;
}
unsafe 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;
}
unsafe 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;
}
unsafe 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;
}
unsafe 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;
}
unsafe 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;
}
unsafe 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;
}
unsafe 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;
}
unsafe 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;
}
unsafe 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;
}
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
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,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of im__INTMASK"][::std::mem::size_of::<im__INTMASK>() - 32usize];
["Alignment of im__INTMASK"][::std::mem::align_of::<im__INTMASK>() - 8usize];
["Offset of field: im__INTMASK::xsize"][::std::mem::offset_of!(im__INTMASK, xsize) - 0usize];
["Offset of field: im__INTMASK::ysize"][::std::mem::offset_of!(im__INTMASK, ysize) - 4usize];
["Offset of field: im__INTMASK::scale"][::std::mem::offset_of!(im__INTMASK, scale) - 8usize];
["Offset of field: im__INTMASK::offset"][::std::mem::offset_of!(im__INTMASK, offset) - 12usize];
["Offset of field: im__INTMASK::coeff"][::std::mem::offset_of!(im__INTMASK, coeff) - 16usize];
["Offset of field: im__INTMASK::filename"]
[::std::mem::offset_of!(im__INTMASK, filename) - 24usize];
};
pub type INTMASK = im__INTMASK;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq)]
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,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of im__DOUBLEMASK"][::std::mem::size_of::<im__DOUBLEMASK>() - 40usize];
["Alignment of im__DOUBLEMASK"][::std::mem::align_of::<im__DOUBLEMASK>() - 8usize];
["Offset of field: im__DOUBLEMASK::xsize"]
[::std::mem::offset_of!(im__DOUBLEMASK, xsize) - 0usize];
["Offset of field: im__DOUBLEMASK::ysize"]
[::std::mem::offset_of!(im__DOUBLEMASK, ysize) - 4usize];
["Offset of field: im__DOUBLEMASK::scale"]
[::std::mem::offset_of!(im__DOUBLEMASK, scale) - 8usize];
["Offset of field: im__DOUBLEMASK::offset"]
[::std::mem::offset_of!(im__DOUBLEMASK, offset) - 16usize];
["Offset of field: im__DOUBLEMASK::coeff"]
[::std::mem::offset_of!(im__DOUBLEMASK, coeff) - 24usize];
["Offset of field: im__DOUBLEMASK::filename"]
[::std::mem::offset_of!(im__DOUBLEMASK, filename) - 32usize];
};
pub type DOUBLEMASK = im__DOUBLEMASK;
unsafe 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;
}
unsafe 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;
}
unsafe 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;
}
unsafe 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;
}
unsafe extern "C" {
pub fn im_read_imask(filename: *const ::std::os::raw::c_char) -> *mut INTMASK;
}
unsafe extern "C" {
pub fn im_read_dmask(filename: *const ::std::os::raw::c_char) -> *mut DOUBLEMASK;
}
unsafe extern "C" {
pub fn im_print_imask(in_: *mut INTMASK);
}
unsafe extern "C" {
pub fn im_print_dmask(in_: *mut DOUBLEMASK);
}
unsafe extern "C" {
pub fn im_write_imask(in_: *mut INTMASK) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_write_dmask(in_: *mut DOUBLEMASK) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_write_imask_name(
in_: *mut INTMASK,
filename: *const ::std::os::raw::c_char,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_write_dmask_name(
in_: *mut DOUBLEMASK,
filename: *const ::std::os::raw::c_char,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_free_imask(in_: *mut INTMASK) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_free_dmask(in_: *mut DOUBLEMASK) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_log_imask(
filename: *const ::std::os::raw::c_char,
sigma: f64,
min_ampl: f64,
) -> *mut INTMASK;
}
unsafe extern "C" {
pub fn im_log_dmask(
filename: *const ::std::os::raw::c_char,
sigma: f64,
min_ampl: f64,
) -> *mut DOUBLEMASK;
}
unsafe extern "C" {
pub fn im_gauss_imask(
filename: *const ::std::os::raw::c_char,
sigma: f64,
min_ampl: f64,
) -> *mut INTMASK;
}
unsafe extern "C" {
pub fn im_gauss_imask_sep(
filename: *const ::std::os::raw::c_char,
sigma: f64,
min_ampl: f64,
) -> *mut INTMASK;
}
unsafe extern "C" {
pub fn im_gauss_dmask(
filename: *const ::std::os::raw::c_char,
sigma: f64,
min_ampl: f64,
) -> *mut DOUBLEMASK;
}
unsafe extern "C" {
pub fn im_gauss_dmask_sep(
filename: *const ::std::os::raw::c_char,
sigma: f64,
min_ampl: f64,
) -> *mut DOUBLEMASK;
}
unsafe extern "C" {
pub fn im_dup_imask(in_: *mut INTMASK, filename: *const ::std::os::raw::c_char)
-> *mut INTMASK;
}
unsafe extern "C" {
pub fn im_dup_dmask(
in_: *mut DOUBLEMASK,
filename: *const ::std::os::raw::c_char,
) -> *mut DOUBLEMASK;
}
unsafe extern "C" {
pub fn im_scale_dmask(
in_: *mut DOUBLEMASK,
filename: *const ::std::os::raw::c_char,
) -> *mut INTMASK;
}
unsafe extern "C" {
pub fn im_norm_dmask(mask: *mut DOUBLEMASK);
}
unsafe extern "C" {
pub fn im_imask2dmask(
in_: *mut INTMASK,
filename: *const ::std::os::raw::c_char,
) -> *mut DOUBLEMASK;
}
unsafe extern "C" {
pub fn im_dmask2imask(
in_: *mut DOUBLEMASK,
filename: *const ::std::os::raw::c_char,
) -> *mut INTMASK;
}
unsafe extern "C" {
pub fn im_rotate_imask90(
in_: *mut INTMASK,
filename: *const ::std::os::raw::c_char,
) -> *mut INTMASK;
}
unsafe extern "C" {
pub fn im_rotate_imask45(
in_: *mut INTMASK,
filename: *const ::std::os::raw::c_char,
) -> *mut INTMASK;
}
unsafe extern "C" {
pub fn im_rotate_dmask90(
in_: *mut DOUBLEMASK,
filename: *const ::std::os::raw::c_char,
) -> *mut DOUBLEMASK;
}
unsafe extern "C" {
pub fn im_rotate_dmask45(
in_: *mut DOUBLEMASK,
filename: *const ::std::os::raw::c_char,
) -> *mut DOUBLEMASK;
}
unsafe extern "C" {
pub fn im_mattrn(
in_: *mut DOUBLEMASK,
filename: *const ::std::os::raw::c_char,
) -> *mut DOUBLEMASK;
}
unsafe extern "C" {
pub fn im_matcat(
top: *mut DOUBLEMASK,
bottom: *mut DOUBLEMASK,
filename: *const ::std::os::raw::c_char,
) -> *mut DOUBLEMASK;
}
unsafe extern "C" {
pub fn im_matmul(
in1: *mut DOUBLEMASK,
in2: *mut DOUBLEMASK,
filename: *const ::std::os::raw::c_char,
) -> *mut DOUBLEMASK;
}
unsafe extern "C" {
pub fn im_lu_decomp(
mat: *const DOUBLEMASK,
filename: *const ::std::os::raw::c_char,
) -> *mut DOUBLEMASK;
}
unsafe extern "C" {
pub fn im_lu_solve(lu: *const DOUBLEMASK, vec: *mut f64) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_matinv(
mat: *const DOUBLEMASK,
filename: *const ::std::os::raw::c_char,
) -> *mut DOUBLEMASK;
}
unsafe extern "C" {
pub fn im_matinv_inplace(mat: *mut DOUBLEMASK) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_local_dmask(out: *mut _VipsImage, mask: *mut DOUBLEMASK) -> *mut DOUBLEMASK;
}
unsafe extern "C" {
pub fn im_local_imask(out: *mut _VipsImage, mask: *mut INTMASK) -> *mut INTMASK;
}
unsafe extern "C" {
pub static vips__image_sizeof_bandformat: [guint64; 0usize];
}
unsafe extern "C" {
pub fn im_cp_desc(out: *mut VipsImage, in_: *mut VipsImage) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_cp_descv(im: *mut VipsImage, ...) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_demand_hint(im: *mut VipsImage, hint: VipsDemandStyle, ...) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_image_new_mode(
filename: *const ::std::os::raw::c_char,
mode: *const ::std::os::raw::c_char,
) -> *mut VipsImage;
}
unsafe extern "C" {
pub fn vips_image_open_input(image: *mut VipsImage) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_image_open_output(image: *mut VipsImage) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_mapfile(image: *mut VipsImage) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_mapfilerw(image: *mut VipsImage) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_remapfilerw(image: *mut VipsImage) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_init_world(argv0: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_open(
filename: *const ::std::os::raw::c_char,
mode: *const ::std::os::raw::c_char,
) -> *mut VipsImage;
}
unsafe 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;
}
unsafe 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;
}
unsafe 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;
}
unsafe 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,
>;
unsafe 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;
}
unsafe 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;
}
unsafe extern "C" {
pub fn im_close(im: *mut VipsImage) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_init(filename: *const ::std::os::raw::c_char) -> *mut VipsImage;
}
unsafe extern "C" {
pub fn im_Type2char(type_: VipsInterpretation) -> *const ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn im_BandFmt2char(fmt: VipsBandFormat) -> *const ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn im_Coding2char(coding: VipsCoding) -> *const ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn im_Compression2char(n: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn im_dtype2char(n: VipsImageType) -> *const ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn im_dhint2char(style: VipsDemandStyle) -> *const ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn im_char2Type(str_: *const ::std::os::raw::c_char) -> VipsInterpretation;
}
unsafe extern "C" {
pub fn im_char2BandFmt(str_: *const ::std::os::raw::c_char) -> VipsBandFormat;
}
unsafe extern "C" {
pub fn im_char2Coding(str_: *const ::std::os::raw::c_char) -> VipsCoding;
}
unsafe extern "C" {
pub fn im_char2dtype(str_: *const ::std::os::raw::c_char) -> VipsImageType;
}
unsafe 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,
>;
unsafe 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;
}
unsafe 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,
),
>;
unsafe 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,
),
>;
unsafe 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,
),
>;
unsafe 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;
}
unsafe extern "C" {
pub fn im_ref_string_get_length(value: *const GValue) -> size_t;
}
unsafe extern "C" {
pub fn im_add(
in1: *mut VipsImage,
in2: *mut VipsImage,
out: *mut VipsImage,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_subtract(
in1: *mut VipsImage,
in2: *mut VipsImage,
out: *mut VipsImage,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_multiply(
in1: *mut VipsImage,
in2: *mut VipsImage,
out: *mut VipsImage,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_divide(
in1: *mut VipsImage,
in2: *mut VipsImage,
out: *mut VipsImage,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_min(in_: *mut VipsImage, out: *mut f64) -> ::std::os::raw::c_int;
}
unsafe 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;
}
unsafe extern "C" {
pub fn im_max(in_: *mut VipsImage, out: *mut f64) -> ::std::os::raw::c_int;
}
unsafe 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;
}
unsafe extern "C" {
pub fn im_avg(in_: *mut VipsImage, out: *mut f64) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_deviate(in_: *mut VipsImage, out: *mut f64) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_invert(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_lintra(
a: f64,
in_: *mut VipsImage,
b: f64,
out: *mut VipsImage,
) -> ::std::os::raw::c_int;
}
unsafe 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;
}
unsafe extern "C" {
pub fn im_abs(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_sign(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_stats(in_: *mut VipsImage) -> *mut DOUBLEMASK;
}
unsafe 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;
}
unsafe extern "C" {
pub fn im_sintra(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_costra(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_tantra(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_asintra(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_acostra(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_atantra(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_logtra(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_log10tra(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_exptra(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_exp10tra(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_floor(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_rint(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_ceil(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_equal(
in1: *mut VipsImage,
in2: *mut VipsImage,
out: *mut VipsImage,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_notequal(
in1: *mut VipsImage,
in2: *mut VipsImage,
out: *mut VipsImage,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_less(
in1: *mut VipsImage,
in2: *mut VipsImage,
out: *mut VipsImage,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_lesseq(
in1: *mut VipsImage,
in2: *mut VipsImage,
out: *mut VipsImage,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_more(
in1: *mut VipsImage,
in2: *mut VipsImage,
out: *mut VipsImage,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_moreeq(
in1: *mut VipsImage,
in2: *mut VipsImage,
out: *mut VipsImage,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_andimage(
in1: *mut VipsImage,
in2: *mut VipsImage,
out: *mut VipsImage,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_orimage(
in1: *mut VipsImage,
in2: *mut VipsImage,
out: *mut VipsImage,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_eorimage(
in1: *mut VipsImage,
in2: *mut VipsImage,
out: *mut VipsImage,
) -> ::std::os::raw::c_int;
}
unsafe 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;
}
unsafe 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;
}
unsafe 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;
}
unsafe extern "C" {
pub fn im_andimageconst(
in_: *mut VipsImage,
out: *mut VipsImage,
c: f64,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_orimageconst(
in_: *mut VipsImage,
out: *mut VipsImage,
c: f64,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_eorimageconst(
in_: *mut VipsImage,
out: *mut VipsImage,
c: f64,
) -> ::std::os::raw::c_int;
}
unsafe 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;
}
unsafe extern "C" {
pub fn im_shiftleft(
in_: *mut VipsImage,
out: *mut VipsImage,
n: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
unsafe 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;
}
unsafe extern "C" {
pub fn im_shiftright(
in_: *mut VipsImage,
out: *mut VipsImage,
n: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_remainder(
in1: *mut VipsImage,
in2: *mut VipsImage,
out: *mut VipsImage,
) -> ::std::os::raw::c_int;
}
unsafe 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;
}
unsafe extern "C" {
pub fn im_remainderconst(
in_: *mut VipsImage,
out: *mut VipsImage,
c: f64,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_powtra(in_: *mut VipsImage, out: *mut VipsImage, e: f64) -> ::std::os::raw::c_int;
}
unsafe 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;
}
unsafe extern "C" {
pub fn im_expntra(in_: *mut VipsImage, out: *mut VipsImage, e: f64) -> ::std::os::raw::c_int;
}
unsafe 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;
}
unsafe 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;
}
unsafe 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;
}
unsafe 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;
}
unsafe 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;
}
unsafe 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;
}
unsafe 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;
}
unsafe extern "C" {
pub fn im_equalconst(in_: *mut VipsImage, out: *mut VipsImage, c: f64)
-> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_notequalconst(
in_: *mut VipsImage,
out: *mut VipsImage,
c: f64,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_lessconst(in_: *mut VipsImage, out: *mut VipsImage, c: f64) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_lesseqconst(
in_: *mut VipsImage,
out: *mut VipsImage,
c: f64,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_moreconst(in_: *mut VipsImage, out: *mut VipsImage, c: f64) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_moreeqconst(
in_: *mut VipsImage,
out: *mut VipsImage,
c: f64,
) -> ::std::os::raw::c_int;
}
unsafe 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;
}
unsafe 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;
}
unsafe extern "C" {
pub fn im_maxpos_avg(
im: *mut VipsImage,
xpos: *mut f64,
ypos: *mut f64,
out: *mut f64,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_linreg(
ins: *mut *mut VipsImage,
out: *mut VipsImage,
xs: *mut f64,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_cross_phase(
a: *mut VipsImage,
b: *mut VipsImage,
out: *mut VipsImage,
) -> ::std::os::raw::c_int;
}
unsafe 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;
}
unsafe 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;
}
unsafe extern "C" {
pub fn im_copy(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
unsafe 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;
}
unsafe 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;
}
unsafe 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;
}
unsafe extern "C" {
pub fn im_copy_swap(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_copy_file(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_copy_native(
in_: *mut VipsImage,
out: *mut VipsImage,
is_msb_first: gboolean,
) -> ::std::os::raw::c_int;
}
unsafe 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;
}
unsafe extern "C" {
pub fn im_fliphor(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_flipver(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
unsafe 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;
}
unsafe 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;
}
unsafe extern "C" {
pub fn im_lrjoin(
left: *mut VipsImage,
right: *mut VipsImage,
out: *mut VipsImage,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_tbjoin(
top: *mut VipsImage,
bottom: *mut VipsImage,
out: *mut VipsImage,
) -> ::std::os::raw::c_int;
}
unsafe 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;
}
unsafe extern "C" {
pub fn im_extract_band(
in_: *mut VipsImage,
out: *mut VipsImage,
band: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
unsafe 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;
}
unsafe 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;
}
unsafe 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;
}
unsafe 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;
}
unsafe extern "C" {
pub fn im_rotquad(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_clip2fmt(
in_: *mut VipsImage,
out: *mut VipsImage,
fmt: VipsBandFormat,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_bandjoin(
in1: *mut VipsImage,
in2: *mut VipsImage,
out: *mut VipsImage,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_gbandjoin(
in_: *mut *mut VipsImage,
out: *mut VipsImage,
n: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
unsafe 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;
}
unsafe extern "C" {
pub fn im_maxvalue(
in_: *mut *mut VipsImage,
out: *mut VipsImage,
n: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
unsafe 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;
}
unsafe extern "C" {
pub fn im_scale(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_scaleps(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_msb(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_msb_band(
in_: *mut VipsImage,
out: *mut VipsImage,
band: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
unsafe 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;
}
unsafe 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;
}
unsafe 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;
}
unsafe 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;
}
unsafe 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;
}
unsafe 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;
}
unsafe extern "C" {
pub fn im_zone(out: *mut VipsImage, size: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_fzone(out: *mut VipsImage, size: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
unsafe 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;
}
unsafe 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;
}
unsafe 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;
}
unsafe 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;
}
unsafe 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;
}
unsafe extern "C" {
pub fn im_buildlut(input: *mut DOUBLEMASK, output: *mut VipsImage) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_invertlut(
input: *mut DOUBLEMASK,
output: *mut VipsImage,
lut_size: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_identity(lut: *mut VipsImage, bands: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
unsafe 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;
}
unsafe 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;
}
unsafe 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;
}
unsafe 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;
}
unsafe 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;
}
unsafe extern "C" {
pub fn im_c2amph(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_c2rect(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_c2imag(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_c2real(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_ri2c(
in1: *mut VipsImage,
in2: *mut VipsImage,
out: *mut VipsImage,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_rot90(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_rot180(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_rot270(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_ifthenelse(
c: *mut VipsImage,
a: *mut VipsImage,
b: *mut VipsImage,
out: *mut VipsImage,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_blend(
c: *mut VipsImage,
a: *mut VipsImage,
b: *mut VipsImage,
out: *mut VipsImage,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_vips2mask(
in_: *mut VipsImage,
filename: *const ::std::os::raw::c_char,
) -> *mut DOUBLEMASK;
}
unsafe extern "C" {
pub fn im_vips2imask(
in_: *mut VipsImage,
filename: *const ::std::os::raw::c_char,
) -> *mut INTMASK;
}
unsafe extern "C" {
pub fn im_mask2vips(in_: *mut DOUBLEMASK, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_imask2vips(in_: *mut INTMASK, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_bandmean(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_recomb(
in_: *mut VipsImage,
out: *mut VipsImage,
recomb: *mut DOUBLEMASK,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_argb2rgba(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_falsecolour(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_gammacorrect(
in_: *mut VipsImage,
out: *mut VipsImage,
exponent: f64,
) -> ::std::os::raw::c_int;
}
unsafe 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;
}
unsafe extern "C" {
pub fn im_shrink(
in_: *mut VipsImage,
out: *mut VipsImage,
xshrink: f64,
yshrink: f64,
) -> ::std::os::raw::c_int;
}
unsafe 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;
}
unsafe 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;
}
unsafe 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;
}
unsafe extern "C" {
pub fn im_Lab2XYZ_temp(
in_: *mut VipsImage,
out: *mut VipsImage,
X0: f64,
Y0: f64,
Z0: f64,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_Lab2XYZ(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_XYZ2Lab(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_XYZ2Lab_temp(
in_: *mut VipsImage,
out: *mut VipsImage,
X0: f64,
Y0: f64,
Z0: f64,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_Lab2LCh(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_LCh2Lab(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_LCh2UCS(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_UCS2LCh(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_XYZ2Yxy(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_Yxy2XYZ(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_float2rad(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_rad2float(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_Lab2LabQ(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_LabQ2Lab(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_Lab2LabS(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_LabS2Lab(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_LabQ2LabS(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_LabS2LabQ(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_LabQ2sRGB(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_XYZ2sRGB(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
unsafe 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],
}
unsafe extern "C" {
pub fn im_Lab2disp(
in_: *mut VipsImage,
out: *mut VipsImage,
disp: *mut im_col_display,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_disp2Lab(
in_: *mut VipsImage,
out: *mut VipsImage,
disp: *mut im_col_display,
) -> ::std::os::raw::c_int;
}
unsafe 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;
}
unsafe 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;
}
unsafe 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;
}
unsafe 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;
}
unsafe extern "C" {
pub fn im_icc_import_embedded(
in_: *mut VipsImage,
out: *mut VipsImage,
intent: VipsIntent,
) -> ::std::os::raw::c_int;
}
unsafe 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;
}
unsafe 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;
}
unsafe extern "C" {
pub fn im_LabQ2XYZ(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_UCS2XYZ(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_UCS2Lab(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_Lab2UCS(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_XYZ2UCS(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_dE_fromLab(
in1: *mut VipsImage,
in2: *mut VipsImage,
out: *mut VipsImage,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_dECMC_fromLab(
in1: *mut VipsImage,
in2: *mut VipsImage,
out: *mut VipsImage,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_dE_fromXYZ(
in1: *mut VipsImage,
in2: *mut VipsImage,
out: *mut VipsImage,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_dE00_fromLab(
in1: *mut VipsImage,
in2: *mut VipsImage,
out: *mut VipsImage,
) -> ::std::os::raw::c_int;
}
unsafe 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;
}
unsafe extern "C" {
pub fn im_quadratic(
in_: *mut VipsImage,
out: *mut VipsImage,
coeff: *mut VipsImage,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_maplut(
in_: *mut VipsImage,
out: *mut VipsImage,
lut: *mut VipsImage,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_hist(
in_: *mut VipsImage,
out: *mut VipsImage,
bandno: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_histgr(
in_: *mut VipsImage,
out: *mut VipsImage,
bandno: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_histcum(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_histnorm(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_histeq(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_heq(
in_: *mut VipsImage,
out: *mut VipsImage,
bandno: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_histnD(
in_: *mut VipsImage,
out: *mut VipsImage,
bins: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_hist_indexed(
index: *mut VipsImage,
value: *mut VipsImage,
out: *mut VipsImage,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_histplot(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_project(
in_: *mut VipsImage,
hout: *mut VipsImage,
vout: *mut VipsImage,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_profile(
in_: *mut VipsImage,
out: *mut VipsImage,
dir: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_hsp(
in_: *mut VipsImage,
ref_: *mut VipsImage,
out: *mut VipsImage,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_histspec(
in_: *mut VipsImage,
ref_: *mut VipsImage,
out: *mut VipsImage,
) -> ::std::os::raw::c_int;
}
unsafe 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;
}
unsafe 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;
}
unsafe extern "C" {
pub fn im_mpercent(
in_: *mut VipsImage,
percent: f64,
out: *mut ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_mpercent_hist(
hist: *mut VipsImage,
percent: f64,
out: *mut ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_ismonotonic(
lut: *mut VipsImage,
out: *mut ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
unsafe 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;
}
unsafe extern "C" {
pub fn im_tone_map(
in_: *mut VipsImage,
out: *mut VipsImage,
lut: *mut VipsImage,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_dilate(
in_: *mut VipsImage,
out: *mut VipsImage,
mask: *mut INTMASK,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_erode(
in_: *mut VipsImage,
out: *mut VipsImage,
mask: *mut INTMASK,
) -> ::std::os::raw::c_int;
}
unsafe 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;
}
unsafe extern "C" {
pub fn im_conv(
in_: *mut VipsImage,
out: *mut VipsImage,
mask: *mut INTMASK,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_conv_f(
in_: *mut VipsImage,
out: *mut VipsImage,
mask: *mut DOUBLEMASK,
) -> ::std::os::raw::c_int;
}
unsafe 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;
}
unsafe extern "C" {
pub fn im_convsep(
in_: *mut VipsImage,
out: *mut VipsImage,
mask: *mut INTMASK,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_convsep_f(
in_: *mut VipsImage,
out: *mut VipsImage,
mask: *mut DOUBLEMASK,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_compass(
in_: *mut VipsImage,
out: *mut VipsImage,
mask: *mut INTMASK,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_gradient(
in_: *mut VipsImage,
out: *mut VipsImage,
mask: *mut INTMASK,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_lindetect(
in_: *mut VipsImage,
out: *mut VipsImage,
mask: *mut INTMASK,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_addgnoise(
in_: *mut VipsImage,
out: *mut VipsImage,
sigma: f64,
) -> ::std::os::raw::c_int;
}
unsafe 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;
}
unsafe 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;
}
unsafe extern "C" {
pub fn im_grad_x(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_grad_y(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_fastcor(
in_: *mut VipsImage,
ref_: *mut VipsImage,
out: *mut VipsImage,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_spcor(
in_: *mut VipsImage,
ref_: *mut VipsImage,
out: *mut VipsImage,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_gradcor(
in_: *mut VipsImage,
ref_: *mut VipsImage,
out: *mut VipsImage,
) -> ::std::os::raw::c_int;
}
unsafe 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;
}
pub const ImMaskType_IM_MASK_IDEAL_HIGHPASS: ImMaskType = 0;
pub const ImMaskType_IM_MASK_IDEAL_LOWPASS: ImMaskType = 1;
pub const ImMaskType_IM_MASK_BUTTERWORTH_HIGHPASS: ImMaskType = 2;
pub const ImMaskType_IM_MASK_BUTTERWORTH_LOWPASS: ImMaskType = 3;
pub const ImMaskType_IM_MASK_GAUSS_HIGHPASS: ImMaskType = 4;
pub const ImMaskType_IM_MASK_GAUSS_LOWPASS: ImMaskType = 5;
pub const ImMaskType_IM_MASK_IDEAL_RINGPASS: ImMaskType = 6;
pub const ImMaskType_IM_MASK_IDEAL_RINGREJECT: ImMaskType = 7;
pub const ImMaskType_IM_MASK_BUTTERWORTH_RINGPASS: ImMaskType = 8;
pub const ImMaskType_IM_MASK_BUTTERWORTH_RINGREJECT: ImMaskType = 9;
pub const ImMaskType_IM_MASK_GAUSS_RINGPASS: ImMaskType = 10;
pub const ImMaskType_IM_MASK_GAUSS_RINGREJECT: ImMaskType = 11;
pub const ImMaskType_IM_MASK_IDEAL_BANDPASS: ImMaskType = 12;
pub const ImMaskType_IM_MASK_IDEAL_BANDREJECT: ImMaskType = 13;
pub const ImMaskType_IM_MASK_BUTTERWORTH_BANDPASS: ImMaskType = 14;
pub const ImMaskType_IM_MASK_BUTTERWORTH_BANDREJECT: ImMaskType = 15;
pub const ImMaskType_IM_MASK_GAUSS_BANDPASS: ImMaskType = 16;
pub const ImMaskType_IM_MASK_GAUSS_BANDREJECT: ImMaskType = 17;
pub const ImMaskType_IM_MASK_FRACTAL_FLT: ImMaskType = 18;
pub type ImMaskType = ::std::os::raw::c_uint;
unsafe extern "C" {
pub fn im_flt_image_freq(
in_: *mut VipsImage,
out: *mut VipsImage,
flag: ImMaskType,
...
) -> ::std::os::raw::c_int;
}
unsafe 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;
}
unsafe extern "C" {
pub fn im_fwfft(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_invfft(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_invfftr(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_freqflt(
in_: *mut VipsImage,
mask: *mut VipsImage,
out: *mut VipsImage,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_disp_ps(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_fractsurf(
out: *mut VipsImage,
size: ::std::os::raw::c_int,
frd: f64,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_phasecor_fft(
in1: *mut VipsImage,
in2: *mut VipsImage,
out: *mut VipsImage,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_cntlines(
im: *mut VipsImage,
nolines: *mut f64,
flag: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
unsafe 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;
}
unsafe 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;
}
unsafe extern "C" {
pub fn im_zerox(
in_: *mut VipsImage,
out: *mut VipsImage,
sign: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_benchmarkn(
in_: *mut VipsImage,
out: *mut VipsImage,
n: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_benchmark2(in_: *mut VipsImage, out: *mut f64) -> ::std::os::raw::c_int;
}
unsafe 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;
}
unsafe 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;
}
unsafe 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;
}
unsafe 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,
>;
unsafe 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;
}
unsafe 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;
}
unsafe 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;
}
unsafe 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;
}
unsafe 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;
}
unsafe 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;
}
unsafe 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;
}
unsafe 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;
}
unsafe 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;
}
unsafe 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;
}
unsafe 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,
);
}
unsafe extern "C" {
pub fn im_skip_dir(filename: *const ::std::os::raw::c_char) -> *const ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn im_filename_suffix(
path: *const ::std::os::raw::c_char,
suffix: *mut ::std::os::raw::c_char,
);
}
unsafe 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;
}
unsafe extern "C" {
pub fn im_getnextoption(in_: *mut *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn im_getsuboption(buf: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char;
}
unsafe 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;
}
unsafe 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;
}
unsafe extern "C" {
pub fn im_global_balance(
in_: *mut VipsImage,
out: *mut VipsImage,
gamma: f64,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_global_balancef(
in_: *mut VipsImage,
out: *mut VipsImage,
gamma: f64,
) -> ::std::os::raw::c_int;
}
unsafe 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;
}
unsafe 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;
}
unsafe 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;
}
unsafe 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;
}
unsafe 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;
}
unsafe 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;
}
unsafe 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;
}
unsafe 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;
}
unsafe 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;
}
unsafe 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;
}
unsafe extern "C" {
pub fn im_align_bands(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_maxpos_subpel(in_: *mut VipsImage, x: *mut f64, y: *mut f64)
-> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips__deprecated_open_read(
filename: *const ::std::os::raw::c_char,
sequential: gboolean,
) -> *mut VipsImage;
}
unsafe extern "C" {
pub fn vips__deprecated_open_write(filename: *const ::std::os::raw::c_char) -> *mut VipsImage;
}
unsafe extern "C" {
pub fn im__format_init();
}
unsafe extern "C" {
pub fn im_jpeg2vips(
filename: *const ::std::os::raw::c_char,
out: *mut VipsImage,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_bufjpeg2vips(
buf: *mut ::std::os::raw::c_void,
len: size_t,
out: *mut VipsImage,
header_only: gboolean,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_vips2jpeg(
in_: *mut VipsImage,
filename: *const ::std::os::raw::c_char,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_vips2mimejpeg(
in_: *mut VipsImage,
qfac: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
unsafe 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;
}
unsafe extern "C" {
pub fn im_tiff2vips(
filename: *const ::std::os::raw::c_char,
out: *mut VipsImage,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_vips2tiff(
in_: *mut VipsImage,
filename: *const ::std::os::raw::c_char,
) -> ::std::os::raw::c_int;
}
unsafe 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;
}
unsafe extern "C" {
pub fn im_magick2vips(
filename: *const ::std::os::raw::c_char,
out: *mut VipsImage,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_bufmagick2vips(
buf: *mut ::std::os::raw::c_void,
len: size_t,
out: *mut VipsImage,
header_only: gboolean,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_exr2vips(
filename: *const ::std::os::raw::c_char,
out: *mut VipsImage,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_ppm2vips(
filename: *const ::std::os::raw::c_char,
out: *mut VipsImage,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_vips2ppm(
in_: *mut VipsImage,
filename: *const ::std::os::raw::c_char,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_analyze2vips(
filename: *const ::std::os::raw::c_char,
out: *mut VipsImage,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_csv2vips(
filename: *const ::std::os::raw::c_char,
out: *mut VipsImage,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_vips2csv(
in_: *mut VipsImage,
filename: *const ::std::os::raw::c_char,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_png2vips(
filename: *const ::std::os::raw::c_char,
out: *mut VipsImage,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_vips2png(
in_: *mut VipsImage,
filename: *const ::std::os::raw::c_char,
) -> ::std::os::raw::c_int;
}
unsafe 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 size_t,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_webp2vips(
filename: *const ::std::os::raw::c_char,
out: *mut VipsImage,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_vips2webp(
in_: *mut VipsImage,
filename: *const ::std::os::raw::c_char,
) -> ::std::os::raw::c_int;
}
unsafe 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;
}
unsafe extern "C" {
pub fn im_vips2raw(in_: *mut VipsImage, fd: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_mat2vips(
filename: *const ::std::os::raw::c_char,
out: *mut VipsImage,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_rad2vips(
filename: *const ::std::os::raw::c_char,
out: *mut VipsImage,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_vips2rad(
in_: *mut VipsImage,
filename: *const ::std::os::raw::c_char,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_fits2vips(
filename: *const ::std::os::raw::c_char,
out: *mut VipsImage,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_vips2fits(
in_: *mut VipsImage,
filename: *const ::std::os::raw::c_char,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_vips2dz(
in_: *mut VipsImage,
filename: *const ::std::os::raw::c_char,
) -> ::std::os::raw::c_int;
}
unsafe 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;
}
unsafe 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;
}
unsafe 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;
}
unsafe 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;
}
unsafe extern "C" {
pub fn im__formatalike(
in1: *mut VipsImage,
in2: *mut VipsImage,
out1: *mut VipsImage,
out2: *mut VipsImage,
) -> ::std::os::raw::c_int;
}
unsafe 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;
}
unsafe 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;
}
unsafe extern "C" {
pub fn vips__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;
}
unsafe extern "C" {
pub fn vips__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;
}
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq)]
pub struct im_colour_temperature {
pub X0: f64,
pub Y0: f64,
pub Z0: f64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of im_colour_temperature"][::std::mem::size_of::<im_colour_temperature>() - 24usize];
["Alignment of im_colour_temperature"]
[::std::mem::align_of::<im_colour_temperature>() - 8usize];
["Offset of field: im_colour_temperature::X0"]
[::std::mem::offset_of!(im_colour_temperature, X0) - 0usize];
["Offset of field: im_colour_temperature::Y0"]
[::std::mem::offset_of!(im_colour_temperature, Y0) - 8usize];
["Offset of field: im_colour_temperature::Z0"]
[::std::mem::offset_of!(im_colour_temperature, Z0) - 16usize];
};
unsafe extern "C" {
pub fn im_copy_dmask_matrix(mask: *mut DOUBLEMASK, matrix: *mut *mut f64);
}
unsafe extern "C" {
pub fn im_copy_matrix_dmask(matrix: *mut *mut f64, mask: *mut DOUBLEMASK);
}
unsafe extern "C" {
pub fn im_ivector(
nl: ::std::os::raw::c_int,
nh: ::std::os::raw::c_int,
) -> *mut ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_fvector(nl: ::std::os::raw::c_int, nh: ::std::os::raw::c_int) -> *mut f32;
}
unsafe extern "C" {
pub fn im_dvector(nl: ::std::os::raw::c_int, nh: ::std::os::raw::c_int) -> *mut f64;
}
unsafe 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,
);
}
unsafe extern "C" {
pub fn im_free_fvector(v: *mut f32, nl: ::std::os::raw::c_int, nh: ::std::os::raw::c_int);
}
unsafe extern "C" {
pub fn im_free_dvector(v: *mut f64, nl: ::std::os::raw::c_int, nh: ::std::os::raw::c_int);
}
unsafe 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;
}
unsafe 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,
);
}
unsafe 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;
}
unsafe 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,
);
}
unsafe 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;
}
unsafe 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,
);
}
unsafe extern "C" {
pub fn im_invmat(arg1: *mut *mut f64, arg2: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_conv_f_raw(
in_: *mut VipsImage,
out: *mut VipsImage,
mask: *mut DOUBLEMASK,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_convsep_f_raw(
in_: *mut VipsImage,
out: *mut VipsImage,
mask: *mut DOUBLEMASK,
) -> ::std::os::raw::c_int;
}
unsafe 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;
}
unsafe extern "C" {
pub fn vips_check_imask(
domain: *const ::std::os::raw::c_char,
mask: *mut INTMASK,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_check_dmask(
domain: *const ::std::os::raw::c_char,
mask: *mut DOUBLEMASK,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_check_dmask_1d(
domain: *const ::std::os::raw::c_char,
mask: *mut DOUBLEMASK,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_get_option_group() -> *mut GOptionGroup;
}
unsafe extern "C" {
pub fn vips_window_ref(
im: *mut VipsImage,
top: ::std::os::raw::c_int,
height: ::std::os::raw::c_int,
) -> *mut VipsWindow;
}
unsafe extern "C" {
pub fn vips_popenf(
fmt: *const ::std::os::raw::c_char,
mode: *const ::std::os::raw::c_char,
...
) -> *mut FILE;
}
unsafe extern "C" {
pub fn vips__ink_to_vector(
domain: *const ::std::os::raw::c_char,
im: *mut VipsImage,
ink: *mut VipsPel,
n: *mut ::std::os::raw::c_int,
) -> *mut f64;
}
unsafe extern "C" {
pub fn im__vector_to_ink(
domain: *const ::std::os::raw::c_char,
im: *mut VipsImage,
n: ::std::os::raw::c_int,
vec: *mut f64,
) -> *mut VipsPel;
}
unsafe extern "C" {
pub fn vips__init(argv0: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips__get_sizeof_vipsobject() -> size_t;
}
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct VipsVector {
pub name: *const ::std::os::raw::c_char,
pub unique_name: *mut ::std::os::raw::c_char,
pub n_temp: ::std::os::raw::c_int,
pub n_scanline: ::std::os::raw::c_int,
pub n_source: ::std::os::raw::c_int,
pub n_destination: ::std::os::raw::c_int,
pub n_constant: ::std::os::raw::c_int,
pub n_parameter: ::std::os::raw::c_int,
pub n_instruction: ::std::os::raw::c_int,
pub sl: [::std::os::raw::c_int; 10usize],
pub line: [::std::os::raw::c_int; 10usize],
pub s: [::std::os::raw::c_int; 10usize],
pub d1: ::std::os::raw::c_int,
pub compiled: gboolean,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of VipsVector"][::std::mem::size_of::<VipsVector>() - 176usize];
["Alignment of VipsVector"][::std::mem::align_of::<VipsVector>() - 8usize];
["Offset of field: VipsVector::name"][::std::mem::offset_of!(VipsVector, name) - 0usize];
["Offset of field: VipsVector::unique_name"]
[::std::mem::offset_of!(VipsVector, unique_name) - 8usize];
["Offset of field: VipsVector::n_temp"][::std::mem::offset_of!(VipsVector, n_temp) - 16usize];
["Offset of field: VipsVector::n_scanline"]
[::std::mem::offset_of!(VipsVector, n_scanline) - 20usize];
["Offset of field: VipsVector::n_source"]
[::std::mem::offset_of!(VipsVector, n_source) - 24usize];
["Offset of field: VipsVector::n_destination"]
[::std::mem::offset_of!(VipsVector, n_destination) - 28usize];
["Offset of field: VipsVector::n_constant"]
[::std::mem::offset_of!(VipsVector, n_constant) - 32usize];
["Offset of field: VipsVector::n_parameter"]
[::std::mem::offset_of!(VipsVector, n_parameter) - 36usize];
["Offset of field: VipsVector::n_instruction"]
[::std::mem::offset_of!(VipsVector, n_instruction) - 40usize];
["Offset of field: VipsVector::sl"][::std::mem::offset_of!(VipsVector, sl) - 44usize];
["Offset of field: VipsVector::line"][::std::mem::offset_of!(VipsVector, line) - 84usize];
["Offset of field: VipsVector::s"][::std::mem::offset_of!(VipsVector, s) - 124usize];
["Offset of field: VipsVector::d1"][::std::mem::offset_of!(VipsVector, d1) - 164usize];
["Offset of field: VipsVector::compiled"]
[::std::mem::offset_of!(VipsVector, compiled) - 168usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct VipsExecutor {
pub vector: *mut VipsVector,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of VipsExecutor"][::std::mem::size_of::<VipsExecutor>() - 8usize];
["Alignment of VipsExecutor"][::std::mem::align_of::<VipsExecutor>() - 8usize];
["Offset of field: VipsExecutor::vector"]
[::std::mem::offset_of!(VipsExecutor, vector) - 0usize];
};
unsafe extern "C" {
pub fn vips_vector_init();
}
unsafe extern "C" {
pub fn vips_vector_free(vector: *mut VipsVector);
}
unsafe extern "C" {
pub fn vips_vector_new(
name: *const ::std::os::raw::c_char,
dsize: ::std::os::raw::c_int,
) -> *mut VipsVector;
}
unsafe extern "C" {
pub fn vips_vector_constant(
vector: *mut VipsVector,
name: *mut ::std::os::raw::c_char,
value: ::std::os::raw::c_int,
size: ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn vips_vector_source_scanline(
vector: *mut VipsVector,
name: *mut ::std::os::raw::c_char,
line: ::std::os::raw::c_int,
size: ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn vips_vector_source_name(
vector: *mut VipsVector,
name: *const ::std::os::raw::c_char,
size: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_vector_temporary(
vector: *mut VipsVector,
name: *const ::std::os::raw::c_char,
size: ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn vips_vector_parameter(
vector: *mut VipsVector,
name: *const ::std::os::raw::c_char,
size: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_vector_destination(
vector: *mut VipsVector,
name: *const ::std::os::raw::c_char,
size: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_vector_asm2(
vector: *mut VipsVector,
op: *const ::std::os::raw::c_char,
a: *const ::std::os::raw::c_char,
b: *const ::std::os::raw::c_char,
);
}
unsafe extern "C" {
pub fn vips_vector_asm3(
vector: *mut VipsVector,
op: *const ::std::os::raw::c_char,
a: *const ::std::os::raw::c_char,
b: *const ::std::os::raw::c_char,
c: *const ::std::os::raw::c_char,
);
}
unsafe extern "C" {
pub fn vips_vector_full(vector: *mut VipsVector) -> gboolean;
}
unsafe extern "C" {
pub fn vips_vector_compile(vector: *mut VipsVector) -> gboolean;
}
unsafe extern "C" {
pub fn vips_vector_print(vector: *mut VipsVector);
}
unsafe extern "C" {
pub fn vips_executor_set_program(
executor: *mut VipsExecutor,
vector: *mut VipsVector,
n: ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn vips_executor_set_scanline(
executor: *mut VipsExecutor,
ir: *mut VipsRegion,
x: ::std::os::raw::c_int,
y: ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn vips_executor_set_destination(
executor: *mut VipsExecutor,
value: *mut ::std::os::raw::c_void,
);
}
unsafe extern "C" {
pub fn vips_executor_set_parameter(
executor: *mut VipsExecutor,
var: ::std::os::raw::c_int,
value: ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn vips_executor_set_array(
executor: *mut VipsExecutor,
var: ::std::os::raw::c_int,
value: *mut ::std::os::raw::c_void,
);
}
unsafe extern "C" {
pub fn vips_executor_run(executor: *mut VipsExecutor);
}
unsafe extern "C" {
pub fn vips_vector_to_fixed_point(
in_: *mut f64,
out: *mut ::std::os::raw::c_int,
n: ::std::os::raw::c_int,
scale: ::std::os::raw::c_int,
);
}
pub type im_arg_type = *mut ::std::os::raw::c_char;
pub type im_object = *mut ::std::os::raw::c_void;
pub const im_type_flags_IM_TYPE_NONE: im_type_flags = 0;
pub const im_type_flags_IM_TYPE_OUTPUT: im_type_flags = 1;
pub const im_type_flags_IM_TYPE_ARG: im_type_flags = 2;
pub const im_type_flags_IM_TYPE_RW: im_type_flags = 4;
pub type im_type_flags = ::std::os::raw::c_uint;
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, PartialEq, Eq)]
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,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of im_type_desc"][::std::mem::size_of::<im_type_desc>() - 32usize];
["Alignment of im_type_desc"][::std::mem::align_of::<im_type_desc>() - 8usize];
["Offset of field: im_type_desc::type_"][::std::mem::offset_of!(im_type_desc, type_) - 0usize];
["Offset of field: im_type_desc::size"][::std::mem::offset_of!(im_type_desc, size) - 8usize];
["Offset of field: im_type_desc::flags"][::std::mem::offset_of!(im_type_desc, flags) - 12usize];
["Offset of field: im_type_desc::init"][::std::mem::offset_of!(im_type_desc, init) - 16usize];
["Offset of field: im_type_desc::dest"][::std::mem::offset_of!(im_type_desc, dest) - 24usize];
};
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, PartialEq, Eq)]
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,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of im_arg_desc"][::std::mem::size_of::<im_arg_desc>() - 24usize];
["Alignment of im_arg_desc"][::std::mem::align_of::<im_arg_desc>() - 8usize];
["Offset of field: im_arg_desc::name"][::std::mem::offset_of!(im_arg_desc, name) - 0usize];
["Offset of field: im_arg_desc::desc"][::std::mem::offset_of!(im_arg_desc, desc) - 8usize];
["Offset of field: im_arg_desc::print"][::std::mem::offset_of!(im_arg_desc, print) - 16usize];
};
pub type im_dispatch_fn =
::std::option::Option<unsafe extern "C" fn(argv: *mut im_object) -> ::std::os::raw::c_int>;
pub const im_fn_flags_IM_FN_NONE: im_fn_flags = 0;
pub const im_fn_flags_IM_FN_PIO: im_fn_flags = 1;
pub const im_fn_flags_IM_FN_TRANSFORM: im_fn_flags = 2;
pub const im_fn_flags_IM_FN_PTOP: im_fn_flags = 4;
pub const im_fn_flags_IM_FN_NOCACHE: im_fn_flags = 8;
pub type im_fn_flags = ::std::os::raw::c_uint;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
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,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of im_function"][::std::mem::size_of::<im_function>() - 48usize];
["Alignment of im_function"][::std::mem::align_of::<im_function>() - 8usize];
["Offset of field: im_function::name"][::std::mem::offset_of!(im_function, name) - 0usize];
["Offset of field: im_function::desc"][::std::mem::offset_of!(im_function, desc) - 8usize];
["Offset of field: im_function::flags"][::std::mem::offset_of!(im_function, flags) - 16usize];
["Offset of field: im_function::disp"][::std::mem::offset_of!(im_function, disp) - 24usize];
["Offset of field: im_function::argc"][::std::mem::offset_of!(im_function, argc) - 32usize];
["Offset of field: im_function::argv"][::std::mem::offset_of!(im_function, argv) - 40usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
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,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of im_package"][::std::mem::size_of::<im_package>() - 24usize];
["Alignment of im_package"][::std::mem::align_of::<im_package>() - 8usize];
["Offset of field: im_package::name"][::std::mem::offset_of!(im_package, name) - 0usize];
["Offset of field: im_package::nfuncs"][::std::mem::offset_of!(im_package, nfuncs) - 8usize];
["Offset of field: im_package::table"][::std::mem::offset_of!(im_package, table) - 16usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct im_mask_object {
pub name: *mut ::std::os::raw::c_char,
pub mask: *mut ::std::os::raw::c_void,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of im_mask_object"][::std::mem::size_of::<im_mask_object>() - 16usize];
["Alignment of im_mask_object"][::std::mem::align_of::<im_mask_object>() - 8usize];
["Offset of field: im_mask_object::name"]
[::std::mem::offset_of!(im_mask_object, name) - 0usize];
["Offset of field: im_mask_object::mask"]
[::std::mem::offset_of!(im_mask_object, mask) - 8usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct im_doublevec_object {
pub n: ::std::os::raw::c_int,
pub vec: *mut f64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of im_doublevec_object"][::std::mem::size_of::<im_doublevec_object>() - 16usize];
["Alignment of im_doublevec_object"][::std::mem::align_of::<im_doublevec_object>() - 8usize];
["Offset of field: im_doublevec_object::n"]
[::std::mem::offset_of!(im_doublevec_object, n) - 0usize];
["Offset of field: im_doublevec_object::vec"]
[::std::mem::offset_of!(im_doublevec_object, vec) - 8usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct im_intvec_object {
pub n: ::std::os::raw::c_int,
pub vec: *mut ::std::os::raw::c_int,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of im_intvec_object"][::std::mem::size_of::<im_intvec_object>() - 16usize];
["Alignment of im_intvec_object"][::std::mem::align_of::<im_intvec_object>() - 8usize];
["Offset of field: im_intvec_object::n"][::std::mem::offset_of!(im_intvec_object, n) - 0usize];
["Offset of field: im_intvec_object::vec"]
[::std::mem::offset_of!(im_intvec_object, vec) - 8usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct im_imagevec_object {
pub n: ::std::os::raw::c_int,
pub vec: *mut *mut VipsImage,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of im_imagevec_object"][::std::mem::size_of::<im_imagevec_object>() - 16usize];
["Alignment of im_imagevec_object"][::std::mem::align_of::<im_imagevec_object>() - 8usize];
["Offset of field: im_imagevec_object::n"]
[::std::mem::offset_of!(im_imagevec_object, n) - 0usize];
["Offset of field: im_imagevec_object::vec"]
[::std::mem::offset_of!(im_imagevec_object, vec) - 8usize];
};
unsafe extern "C" {
pub static mut im__input_int: im_type_desc;
}
unsafe extern "C" {
pub static mut im__input_intvec: im_type_desc;
}
unsafe extern "C" {
pub static mut im__input_imask: im_type_desc;
}
unsafe extern "C" {
pub static mut im__output_int: im_type_desc;
}
unsafe extern "C" {
pub static mut im__output_intvec: im_type_desc;
}
unsafe extern "C" {
pub static mut im__output_imask: im_type_desc;
}
unsafe extern "C" {
pub static mut im__input_double: im_type_desc;
}
unsafe extern "C" {
pub static mut im__input_doublevec: im_type_desc;
}
unsafe extern "C" {
pub static mut im__input_dmask: im_type_desc;
}
unsafe extern "C" {
pub static mut im__output_double: im_type_desc;
}
unsafe extern "C" {
pub static mut im__output_doublevec: im_type_desc;
}
unsafe extern "C" {
pub static mut im__output_dmask: im_type_desc;
}
unsafe extern "C" {
pub static mut im__output_dmask_screen: im_type_desc;
}
unsafe extern "C" {
pub static mut im__output_complex: im_type_desc;
}
unsafe extern "C" {
pub static mut im__input_string: im_type_desc;
}
unsafe extern "C" {
pub static mut im__output_string: im_type_desc;
}
unsafe extern "C" {
pub static mut im__input_imagevec: im_type_desc;
}
unsafe extern "C" {
pub static mut im__input_image: im_type_desc;
}
unsafe extern "C" {
pub static mut im__output_image: im_type_desc;
}
unsafe extern "C" {
pub static mut im__rw_image: im_type_desc;
}
unsafe extern "C" {
pub static mut im__input_display: im_type_desc;
}
unsafe extern "C" {
pub static mut im__output_display: im_type_desc;
}
unsafe extern "C" {
pub static mut im__input_gvalue: im_type_desc;
}
unsafe extern "C" {
pub static mut im__output_gvalue: im_type_desc;
}
unsafe extern "C" {
pub static mut im__input_interpolate: im_type_desc;
}
unsafe extern "C" {
pub fn im__iprint(obj: im_object) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im__ivprint(obj: im_object) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im__dprint(obj: im_object) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im__dvprint(obj: im_object) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im__dmsprint(obj: im_object) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im__cprint(obj: im_object) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im__sprint(obj: im_object) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im__displayprint(obj: im_object) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im__gprint(obj: im_object) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_load_plugin(name: *const ::std::os::raw::c_char) -> *mut im_package;
}
unsafe extern "C" {
pub fn im_load_plugins(fmt: *const ::std::os::raw::c_char, ...) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_close_plugins() -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_map_packages(
fn_: VipsSListMap2Fn,
a: *mut ::std::os::raw::c_void,
) -> *mut ::std::os::raw::c_void;
}
unsafe extern "C" {
pub fn im_find_function(name: *const ::std::os::raw::c_char) -> *mut im_function;
}
unsafe extern "C" {
pub fn im_find_package(name: *const ::std::os::raw::c_char) -> *mut im_package;
}
unsafe extern "C" {
pub fn im_package_of_function(name: *const ::std::os::raw::c_char) -> *mut im_package;
}
unsafe extern "C" {
pub fn im_free_vargv(fn_: *mut im_function, vargv: *mut im_object) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_allocate_vargv(fn_: *mut im_function, vargv: *mut im_object)
-> ::std::os::raw::c_int;
}
unsafe 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;
}
unsafe extern "C" {
pub fn vips__input_interpolate_init(
obj: *mut im_object,
str_: *mut ::std::os::raw::c_char,
) -> ::std::os::raw::c_int;
}
pub const VipsBBits_IM_BBITS_BYTE: VipsBBits = 8;
pub const VipsBBits_IM_BBITS_SHORT: VipsBBits = 16;
pub const VipsBBits_IM_BBITS_INT: VipsBBits = 32;
pub const VipsBBits_IM_BBITS_FLOAT: VipsBBits = 32;
pub const VipsBBits_IM_BBITS_COMPLEX: VipsBBits = 64;
pub const VipsBBits_IM_BBITS_DOUBLE: VipsBBits = 64;
pub const VipsBBits_IM_BBITS_DPCOMPLEX: VipsBBits = 128;
pub type VipsBBits = ::std::os::raw::c_uint;
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
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,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of IMAGE_BOX"][::std::mem::size_of::<IMAGE_BOX>() - 20usize];
["Alignment of IMAGE_BOX"][::std::mem::align_of::<IMAGE_BOX>() - 4usize];
["Offset of field: IMAGE_BOX::xstart"][::std::mem::offset_of!(IMAGE_BOX, xstart) - 0usize];
["Offset of field: IMAGE_BOX::ystart"][::std::mem::offset_of!(IMAGE_BOX, ystart) - 4usize];
["Offset of field: IMAGE_BOX::xsize"][::std::mem::offset_of!(IMAGE_BOX, xsize) - 8usize];
["Offset of field: IMAGE_BOX::ysize"][::std::mem::offset_of!(IMAGE_BOX, ysize) - 12usize];
["Offset of field: IMAGE_BOX::chsel"][::std::mem::offset_of!(IMAGE_BOX, chsel) - 16usize];
};
unsafe extern "C" {
pub fn im_extract(
arg1: *mut VipsImage,
arg2: *mut VipsImage,
arg3: *mut IMAGE_BOX,
) -> ::std::os::raw::c_int;
}
unsafe 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;
}
unsafe extern "C" {
pub fn im_isuint(im: *mut VipsImage) -> gboolean;
}
unsafe extern "C" {
pub fn im_isint(im: *mut VipsImage) -> gboolean;
}
unsafe extern "C" {
pub fn im_isfloat(im: *mut VipsImage) -> gboolean;
}
unsafe extern "C" {
pub fn im_isscalar(im: *mut VipsImage) -> gboolean;
}
unsafe extern "C" {
pub fn im_iscomplex(im: *mut VipsImage) -> gboolean;
}
unsafe extern "C" {
pub fn im_c2ps(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_clip(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
pub const im_arch_type_IM_ARCH_NATIVE: im_arch_type = 0;
pub const im_arch_type_IM_ARCH_BYTE_SWAPPED: im_arch_type = 1;
pub const im_arch_type_IM_ARCH_LSB_FIRST: im_arch_type = 2;
pub const im_arch_type_IM_ARCH_MSB_FIRST: im_arch_type = 3;
pub type im_arch_type = ::std::os::raw::c_uint;
unsafe extern "C" {
pub fn im_isnative(arch: im_arch_type) -> gboolean;
}
unsafe extern "C" {
pub fn im_copy_from(
in_: *mut VipsImage,
out: *mut VipsImage,
architecture: im_arch_type,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_errormsg(fmt: *const ::std::os::raw::c_char, ...);
}
unsafe extern "C" {
pub fn im_verrormsg(fmt: *const ::std::os::raw::c_char, ap: va_list);
}
unsafe extern "C" {
pub fn im_errormsg_system(err: ::std::os::raw::c_int, fmt: *const ::std::os::raw::c_char, ...);
}
unsafe extern "C" {
pub fn im_diagnostics(fmt: *const ::std::os::raw::c_char, ...);
}
unsafe extern "C" {
pub fn im_warning(fmt: *const ::std::os::raw::c_char, ...);
}
unsafe extern "C" {
pub fn vips_g_mutex_new() -> *mut GMutex;
}
unsafe extern "C" {
pub fn vips_g_mutex_free(arg1: *mut GMutex);
}
unsafe extern "C" {
pub fn vips_g_cond_new() -> *mut GCond;
}
unsafe extern "C" {
pub fn vips_g_cond_free(arg1: *mut GCond);
}
unsafe extern "C" {
pub fn vips_g_thread_join(thread: *mut GThread) -> *mut ::std::os::raw::c_void;
}
unsafe 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;
}
unsafe 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;
}
unsafe extern "C" {
pub fn im_cmulnorm(
in1: *mut VipsImage,
in2: *mut VipsImage,
out: *mut VipsImage,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_fav4(arg1: *mut *mut VipsImage, arg2: *mut VipsImage) -> ::std::os::raw::c_int;
}
unsafe 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;
}
unsafe 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;
}
unsafe 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;
}
unsafe 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;
}
unsafe 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;
}
unsafe extern "C" {
pub fn im_cooc_asm(m: *mut VipsImage, asmoment: *mut f64) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_cooc_contrast(m: *mut VipsImage, contrast: *mut f64) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_cooc_correlation(m: *mut VipsImage, correlation: *mut f64) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_cooc_entropy(m: *mut VipsImage, entropy: *mut f64) -> ::std::os::raw::c_int;
}
unsafe 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;
}
unsafe extern "C" {
pub fn im_glds_asm(m: *mut VipsImage, asmoment: *mut f64) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_glds_contrast(m: *mut VipsImage, contrast: *mut f64) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_glds_entropy(m: *mut VipsImage, entropy: *mut f64) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_glds_mean(m: *mut VipsImage, mean: *mut f64) -> ::std::os::raw::c_int;
}
unsafe 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;
}
unsafe 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;
}
unsafe extern "C" {
pub fn im_spatres(
in_: *mut VipsImage,
out: *mut VipsImage,
step: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_stretch3(
in_: *mut VipsImage,
out: *mut VipsImage,
dx: f64,
dy: f64,
) -> ::std::os::raw::c_int;
}
unsafe 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;
}
unsafe extern "C" {
pub fn im_andconst(
arg1: *mut VipsImage,
arg2: *mut VipsImage,
arg3: f64,
) -> ::std::os::raw::c_int;
}
unsafe 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;
}
unsafe extern "C" {
pub fn im_orconst(
arg1: *mut VipsImage,
arg2: *mut VipsImage,
arg3: f64,
) -> ::std::os::raw::c_int;
}
unsafe 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;
}
unsafe extern "C" {
pub fn im_eorconst(
arg1: *mut VipsImage,
arg2: *mut VipsImage,
arg3: f64,
) -> ::std::os::raw::c_int;
}
unsafe 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;
}
unsafe 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;
}
unsafe 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;
}
unsafe 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;
}
unsafe 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;
}
unsafe extern "C" {
pub fn im_clip2dcm(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_clip2cm(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_clip2us(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_clip2ui(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_clip2s(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_clip2i(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_clip2d(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_clip2f(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_clip2c(in_: *mut VipsImage, out: *mut VipsImage) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_cache(in_: *mut VipsImage, out: *mut *mut VipsImage, ...) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_slice(
in_: *mut VipsImage,
out: *mut VipsImage,
arg1: f64,
arg2: f64,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_thresh(in_: *mut VipsImage, out: *mut VipsImage, arg1: f64) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_print(message: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int;
}
unsafe 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;
}
unsafe 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;
}
unsafe 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;
}
unsafe extern "C" {
pub fn im_convf(
in_: *mut VipsImage,
out: *mut VipsImage,
mask: *mut DOUBLEMASK,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_convsepf(
in_: *mut VipsImage,
out: *mut VipsImage,
mask: *mut DOUBLEMASK,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_conv_raw(
in_: *mut VipsImage,
out: *mut VipsImage,
mask: *mut INTMASK,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_convf_raw(
in_: *mut VipsImage,
out: *mut VipsImage,
mask: *mut DOUBLEMASK,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_convsep_raw(
in_: *mut VipsImage,
out: *mut VipsImage,
mask: *mut INTMASK,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_convsepf_raw(
in_: *mut VipsImage,
out: *mut VipsImage,
mask: *mut DOUBLEMASK,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_fastcor_raw(
in_: *mut VipsImage,
ref_: *mut VipsImage,
out: *mut VipsImage,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_spcor_raw(
in_: *mut VipsImage,
ref_: *mut VipsImage,
out: *mut VipsImage,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_gradcor_raw(
in_: *mut VipsImage,
ref_: *mut VipsImage,
out: *mut VipsImage,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_erode_raw(
in_: *mut VipsImage,
out: *mut VipsImage,
m: *mut INTMASK,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_dilate_raw(
in_: *mut VipsImage,
out: *mut VipsImage,
m: *mut INTMASK,
) -> ::std::os::raw::c_int;
}
unsafe 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;
}
pub const VipsForeignJpegSubsample_VIPS_FOREIGN_JPEG_SUBSAMPLE_AUTO: VipsForeignJpegSubsample = 0;
pub const VipsForeignJpegSubsample_VIPS_FOREIGN_JPEG_SUBSAMPLE_ON: VipsForeignJpegSubsample = 1;
pub const VipsForeignJpegSubsample_VIPS_FOREIGN_JPEG_SUBSAMPLE_OFF: VipsForeignJpegSubsample = 2;
pub const VipsForeignJpegSubsample_VIPS_FOREIGN_JPEG_SUBSAMPLE_LAST: VipsForeignJpegSubsample = 3;
pub type VipsForeignJpegSubsample = ::std::os::raw::c_uint;
unsafe extern "C" {
pub fn vips_rawsave_fd(
in_: *mut VipsImage,
fd: ::std::os::raw::c_int,
...
) -> ::std::os::raw::c_int;
}
unsafe 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;
}
unsafe 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;
}
unsafe extern "C" {
pub fn im_segment(
test: *mut VipsImage,
mask: *mut VipsImage,
segments: *mut ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn im_paintrect(
im: *mut VipsImage,
r: *mut VipsRect,
ink: *mut VipsPel,
) -> ::std::os::raw::c_int;
}
unsafe 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;
}
unsafe 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;
}
unsafe 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;
}
unsafe 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;
}
unsafe 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;
}
unsafe 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;
}
unsafe 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;
}
unsafe 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;
}
unsafe 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;
}
unsafe 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;
}
unsafe 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;
}
unsafe 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;
}
unsafe 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;
}
unsafe 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;
}
unsafe extern "C" {
pub fn vips_warn(
domain: *const ::std::os::raw::c_char,
fmt: *const ::std::os::raw::c_char,
...
);
}
unsafe extern "C" {
pub fn vips_vwarn(
domain: *const ::std::os::raw::c_char,
fmt: *const ::std::os::raw::c_char,
ap: va_list,
);
}
unsafe extern "C" {
pub fn vips_info_set(info: gboolean);
}
unsafe extern "C" {
pub fn vips_info(
domain: *const ::std::os::raw::c_char,
fmt: *const ::std::os::raw::c_char,
...
);
}
unsafe extern "C" {
pub fn vips_vinfo(
domain: *const ::std::os::raw::c_char,
fmt: *const ::std::os::raw::c_char,
ap: va_list,
);
}
unsafe extern "C" {
pub fn vips_autorot_get_angle(image: *mut VipsImage) -> VipsAngle;
}
unsafe extern "C" {
pub fn vips_thread_isworker() -> gboolean;
}
unsafe extern "C" {
pub fn vips_free(buf: *mut ::std::os::raw::c_void) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_target_finish(target: *mut VipsTarget);
}
unsafe extern "C" {
pub fn vips_cache_operation_lookup(operation: *mut VipsOperation) -> *mut VipsOperation;
}
unsafe extern "C" {
pub fn vips_cache_operation_add(operation: *mut VipsOperation);
}
unsafe 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;
}
unsafe 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;
}
unsafe extern "C" {
pub fn vips_ispostfix(
a: *const ::std::os::raw::c_char,
b: *const ::std::os::raw::c_char,
) -> gboolean;
}
unsafe extern "C" {
pub fn vips_vsnprintf(
str_: *mut ::std::os::raw::c_char,
size: size_t,
format: *const ::std::os::raw::c_char,
ap: va_list,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_snprintf(
str_: *mut ::std::os::raw::c_char,
size: size_t,
format: *const ::std::os::raw::c_char,
...
) -> ::std::os::raw::c_int;
}
unsafe 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;
}
unsafe 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;
}
unsafe extern "C" {
pub fn vips_max_coord_get() -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_init(argv0: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn vips_get_argv0() -> *const ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn vips_get_prgname() -> *const ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn vips_shutdown();
}
unsafe extern "C" {
pub fn vips_thread_shutdown();
}
unsafe extern "C" {
pub fn vips_add_option_entries(option_group: *mut GOptionGroup);
}
unsafe extern "C" {
pub fn vips_leak_set(leak: gboolean);
}
unsafe extern "C" {
pub fn vips_block_untrusted_set(state: gboolean);
}
unsafe extern "C" {
pub fn vips_version_string() -> *const ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn vips_version(flag: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
unsafe 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;
}
unsafe 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;
}
pub type __uint128_t = u128;