--- rust-glib-sys-0.19.0.orig/Cargo.toml +++ rust-glib-sys-0.19.0/Cargo.toml @@ -1,14 +1,3 @@ -# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO -# -# When uploading crates to the registry Cargo will automatically -# "normalize" Cargo.toml files for maximal compatibility -# with all versions of Cargo and also rewrite `path` dependencies -# to registry (e.g., crates.io) dependencies. -# -# If you are reading this file be aware that the original Cargo.toml -# will likely look very different (and much more reasonable). -# See Cargo.toml.orig for the original contents. - [package] edition = "2021" rust-version = "1.70" @@ -19,26 +8,14 @@ build = "build.rs" exclude = ["gir-files/*"] description = "FFI bindings to libglib-2.0" homepage = "https://gtk-rs.org/" -keywords = [ - "glib", - "ffi", - "gtk-rs", - "gnome", -] +keywords = ["glib", "ffi", "gtk-rs", "gnome"] license = "MIT" repository = "https://github.com/gtk-rs/gtk-rs-core" [package.metadata.docs.rs] all-features = true -rustc-args = [ - "--cfg", - "docsrs", -] -rustdoc-args = [ - "--cfg", - "docsrs", - "--generate-link-to-definition", -] +rustc-args = ["--cfg", "docsrs"] +rustdoc-args = ["--cfg", "docsrs", "--generate-link-to-definition"] [package.metadata.system-deps.glib_2_0] name = "glib-2.0" @@ -93,17 +70,15 @@ version = "2.62" [lib] name = "glib_sys" -[dependencies.libc] -version = "0.2" - -[dev-dependencies.shell-words] -version = "1.0.0" +[dependencies] +libc = "0.2" -[dev-dependencies.tempfile] -version = "3" +[dev-dependencies] +shell-words = "1.0.0" +tempfile = "3" -[build-dependencies.system-deps] -version = "6" +[build-dependencies] +system-deps = "6" [features] v2_58 = [] --- rust-glib-sys-0.19.0.orig/Gir.toml +++ rust-glib-sys-0.19.0/Gir.toml @@ -4,7 +4,7 @@ library = "GLib" version = "2.0" min_cfg_version = "2.56" single_version_file = "." -girs_directories = ["../../gir-files"] +girs_directories=["."] ignore = [ "GLib.ANALYZER_ANALYZING", --- rust-glib-sys-0.19.0.orig/build.rs +++ rust-glib-sys-0.19.0/build.rs @@ -1,5 +1,5 @@ // This file was generated by gir (https://github.com/gtk-rs/gir) -// from gir-files (https://github.com/gtk-rs/gir-files) +// from // DO NOT EDIT #[cfg(not(docsrs))] --- rust-glib-sys-0.19.0.orig/src/lib.rs +++ rust-glib-sys-0.19.0/src/lib.rs @@ -1,33 +1,32 @@ // This file was generated by gir (https://github.com/gtk-rs/gir) -// from gir-files (https://github.com/gtk-rs/gir-files) +// from // DO NOT EDIT #![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)] -#![allow( - clippy::approx_constant, - clippy::type_complexity, - clippy::unreadable_literal, - clippy::upper_case_acronyms -)] +#![allow(clippy::approx_constant, clippy::type_complexity, clippy::unreadable_literal, clippy::upper_case_acronyms)] #![cfg_attr(docsrs, feature(doc_cfg))] + mod manual; pub use manual::*; #[allow(unused_imports)] -use libc::{ - c_char, c_double, c_float, c_int, c_long, c_short, c_uchar, c_uint, c_ulong, c_ushort, c_void, - intptr_t, size_t, ssize_t, uintptr_t, FILE, -}; +use libc::{c_int, c_char, c_uchar, c_float, c_uint, c_double, + c_short, c_ushort, c_long, c_ulong, + c_void, size_t, ssize_t, time_t, off_t, intptr_t, uintptr_t, FILE}; +#[cfg(unix)] +#[allow(unused_imports)] +use libc::{dev_t, gid_t, pid_t, socklen_t, uid_t}; pub type gboolean = c_int; -pub const GFALSE: c_int = 0; -pub const GTRUE: c_int = 1; +pub const GFALSE: c_int = 0; +pub const GTRUE: c_int = 1; pub type gconstpointer = *const c_void; pub type gpointer = *mut c_void; + // Aliases pub type GDateDay = u8; pub type GDateYear = u16; @@ -41,6 +40,7 @@ pub type GRefString = c_char; pub type GStrv = *mut *mut c_char; pub type GTime = i32; pub type GTimeSpan = i64; +pub type GType = size_t; // Enums pub type GBookmarkFileError = c_int; @@ -343,12 +343,6 @@ pub const G_TEST_RUN_INCOMPLETE: GTestRe pub type GThreadError = c_int; pub const G_THREAD_ERROR_AGAIN: GThreadError = 0; -pub type GThreadPriority = c_int; -pub const G_THREAD_PRIORITY_LOW: GThreadPriority = 0; -pub const G_THREAD_PRIORITY_NORMAL: GThreadPriority = 1; -pub const G_THREAD_PRIORITY_HIGH: GThreadPriority = 2; -pub const G_THREAD_PRIORITY_URGENT: GThreadPriority = 3; - pub type GTimeType = c_int; pub const G_TIME_TYPE_STANDARD: GTimeType = 0; pub const G_TIME_TYPE_DAYLIGHT: GTimeType = 1; @@ -430,11 +424,6 @@ pub const G_UNICODE_BREAK_REGIONAL_INDIC pub const G_UNICODE_BREAK_EMOJI_BASE: GUnicodeBreakType = 40; pub const G_UNICODE_BREAK_EMOJI_MODIFIER: GUnicodeBreakType = 41; pub const G_UNICODE_BREAK_ZERO_WIDTH_JOINER: GUnicodeBreakType = 42; -pub const G_UNICODE_BREAK_AKSARA: GUnicodeBreakType = 43; -pub const G_UNICODE_BREAK_AKSARA_PRE_BASE: GUnicodeBreakType = 44; -pub const G_UNICODE_BREAK_AKSARA_START: GUnicodeBreakType = 45; -pub const G_UNICODE_BREAK_VIRAMA_FINAL: GUnicodeBreakType = 46; -pub const G_UNICODE_BREAK_VIRAMA: GUnicodeBreakType = 47; pub type GUnicodeScript = c_int; pub const G_UNICODE_SCRIPT_INVALID_CODE: GUnicodeScript = -1; @@ -636,16 +625,6 @@ pub const G_UNICODE_LINE_SEPARATOR: GUni pub const G_UNICODE_PARAGRAPH_SEPARATOR: GUnicodeType = 28; pub const G_UNICODE_SPACE_SEPARATOR: GUnicodeType = 29; -#[cfg(unix)] -#[cfg_attr(docsrs, doc(cfg(unix)))] -pub type GUnixPipeEnd = c_int; -#[cfg(unix)] -#[cfg_attr(docsrs, doc(cfg(unix)))] -pub const G_UNIX_PIPE_END_READ: GUnixPipeEnd = 0; -#[cfg(unix)] -#[cfg_attr(docsrs, doc(cfg(unix)))] -pub const G_UNIX_PIPE_END_WRITE: GUnixPipeEnd = 1; - pub type GUriError = c_int; pub const G_URI_ERROR_FAILED: GUriError = 0; pub const G_URI_ERROR_BAD_SCHEME: GUriError = 1; @@ -710,25 +689,7 @@ pub const G_VARIANT_PARSE_ERROR_UNTERMIN pub const G_VARIANT_PARSE_ERROR_VALUE_EXPECTED: GVariantParseError = 17; pub const G_VARIANT_PARSE_ERROR_RECURSION: GVariantParseError = 18; -#[cfg(windows)] -#[cfg_attr(docsrs, doc(cfg(windows)))] -pub type GWin32OSType = c_int; -#[cfg(windows)] -#[cfg_attr(docsrs, doc(cfg(windows)))] -pub const G_WIN32_OS_ANY: GWin32OSType = 0; -#[cfg(windows)] -#[cfg_attr(docsrs, doc(cfg(windows)))] -pub const G_WIN32_OS_WORKSTATION: GWin32OSType = 1; -#[cfg(windows)] -#[cfg_attr(docsrs, doc(cfg(windows)))] -pub const G_WIN32_OS_SERVER: GWin32OSType = 2; - // Constants -pub const G_ALLOCATOR_LIST: c_int = 1; -pub const G_ALLOCATOR_NODE: c_int = 3; -pub const G_ALLOCATOR_SLIST: c_int = 2; -pub const G_ALLOC_AND_FREE: c_int = 2; -pub const G_ALLOC_ONLY: c_int = 1; pub const G_ASCII_DTOSTR_BUF_SIZE: c_int = 39; pub const G_ATOMIC_REF_COUNT_INIT: c_int = 1; pub const G_BIG_ENDIAN: c_int = 4321; @@ -801,7 +762,6 @@ pub const G_TIME_SPAN_HOUR: i64 = 360000 pub const G_TIME_SPAN_MILLISECOND: i64 = 1000; pub const G_TIME_SPAN_MINUTE: i64 = 60000000; pub const G_TIME_SPAN_SECOND: i64 = 1000000; -pub const G_TRACE_CURRENT_TIME: c_int = 0; pub const G_UNICHAR_MAX_DECOMPOSITION_LENGTH: c_int = 18; pub const G_URI_RESERVED_CHARS_GENERIC_DELIMITERS: &[u8] = b":/?#[]@\0"; pub const G_URI_RESERVED_CHARS_SUBCOMPONENT_DELIMITERS: &[u8] = b"!$&'()*+,;=\0"; @@ -1029,7 +989,7 @@ pub struct GDoubleIEEE754 { impl ::std::fmt::Debug for GDoubleIEEE754 { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GDoubleIEEE754 @ {self:p}")) - .finish() + .finish() } } @@ -1042,7 +1002,7 @@ pub struct GFloatIEEE754 { impl ::std::fmt::Debug for GFloatIEEE754 { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GFloatIEEE754 @ {self:p}")) - .finish() + .finish() } } @@ -1055,7 +1015,8 @@ pub union GMutex { impl ::std::fmt::Debug for GMutex { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GMutex @ {self:p}")).finish() + f.debug_struct(&format!("GMutex @ {self:p}")) + .finish() } } @@ -1079,19 +1040,19 @@ pub union GTokenValue { impl ::std::fmt::Debug for GTokenValue { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GTokenValue @ {self:p}")) - .field("v_symbol", unsafe { &self.v_symbol }) - .field("v_identifier", unsafe { &self.v_identifier }) - .field("v_binary", unsafe { &self.v_binary }) - .field("v_octal", unsafe { &self.v_octal }) - .field("v_int", unsafe { &self.v_int }) - .field("v_int64", unsafe { &self.v_int64 }) - .field("v_float", unsafe { &self.v_float }) - .field("v_hex", unsafe { &self.v_hex }) - .field("v_string", unsafe { &self.v_string }) - .field("v_comment", unsafe { &self.v_comment }) - .field("v_char", unsafe { &self.v_char }) - .field("v_error", unsafe { &self.v_error }) - .finish() + .field("v_symbol", unsafe { &self.v_symbol }) + .field("v_identifier", unsafe { &self.v_identifier }) + .field("v_binary", unsafe { &self.v_binary }) + .field("v_octal", unsafe { &self.v_octal }) + .field("v_int", unsafe { &self.v_int }) + .field("v_int64", unsafe { &self.v_int64 }) + .field("v_float", unsafe { &self.v_float }) + .field("v_hex", unsafe { &self.v_hex }) + .field("v_string", unsafe { &self.v_string }) + .field("v_comment", unsafe { &self.v_comment }) + .field("v_char", unsafe { &self.v_char }) + .field("v_error", unsafe { &self.v_error }) + .finish() } } @@ -1105,9 +1066,9 @@ pub union GVariantBuilder_u { impl ::std::fmt::Debug for GVariantBuilder_u { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GVariantBuilder_u @ {self:p}")) - .field("s", unsafe { &self.s }) - .field("x", unsafe { &self.x }) - .finish() + .field("s", unsafe { &self.s }) + .field("x", unsafe { &self.x }) + .finish() } } @@ -1121,31 +1082,23 @@ pub union GVariantDict_u { impl ::std::fmt::Debug for GVariantDict_u { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GVariantDict_u @ {self:p}")) - .field("s", unsafe { &self.s }) - .field("x", unsafe { &self.x }) - .finish() + .field("s", unsafe { &self.s }) + .field("x", unsafe { &self.x }) + .finish() } } // Callbacks -pub type GCacheDestroyFunc = Option; -pub type GCacheDupFunc = Option gpointer>; -pub type GCacheNewFunc = Option gpointer>; pub type GChildWatchFunc = Option; pub type GClearHandleFunc = Option; -pub type GCompareDataFunc = - Option c_int>; +pub type GCompareDataFunc = Option c_int>; pub type GCompareFunc = Option c_int>; -pub type GCompletionFunc = Option *mut c_char>; -pub type GCompletionStrncmpFunc = - Option c_int>; pub type GCopyFunc = Option gpointer>; pub type GDataForeachFunc = Option; pub type GDestroyNotify = Option; pub type GDuplicateFunc = Option gpointer>; pub type GEqualFunc = Option gboolean>; -pub type GEqualFuncFull = - Option gboolean>; +pub type GEqualFuncFull = Option gboolean>; pub type GErrorClearFunc = Option; pub type GErrorCopyFunc = Option; pub type GErrorInitFunc = Option; @@ -1161,36 +1114,19 @@ pub type GHookFinalizeFunc = Option gboolean>; pub type GHookFunc = Option; pub type GHookMarshaller = Option; -pub type GIOFunc = - Option gboolean>; -pub type GLogFunc = - Option; -pub type GLogWriterFunc = Option< - unsafe extern "C" fn(GLogLevelFlags, *const GLogField, size_t, gpointer) -> GLogWriterOutput, ->; +pub type GIOFunc = Option gboolean>; +pub type GLogFunc = Option; +pub type GLogWriterFunc = Option GLogWriterOutput>; pub type GNodeForeachFunc = Option; pub type GNodeTraverseFunc = Option gboolean>; -pub type GOptionArgFunc = Option< - unsafe extern "C" fn(*const c_char, *const c_char, gpointer, *mut *mut GError) -> gboolean, ->; -pub type GOptionErrorFunc = Option< - unsafe extern "C" fn(*mut GOptionContext, *mut GOptionGroup, gpointer, *mut *mut GError), ->; -pub type GOptionParseFunc = Option< - unsafe extern "C" fn( - *mut GOptionContext, - *mut GOptionGroup, - gpointer, - *mut *mut GError, - ) -> gboolean, ->; +pub type GOptionArgFunc = Option gboolean>; +pub type GOptionErrorFunc = Option; +pub type GOptionParseFunc = Option gboolean>; pub type GPollFunc = Option c_int>; pub type GPrintFunc = Option; -pub type GRegexEvalCallback = - Option gboolean>; +pub type GRegexEvalCallback = Option gboolean>; pub type GScannerMsgFunc = Option; -pub type GSequenceIterCompareFunc = - Option c_int>; +pub type GSequenceIterCompareFunc = Option c_int>; pub type GSourceDisposeFunc = Option; pub type GSourceDummyMarshal = Option; pub type GSourceFunc = Option gboolean>; @@ -1199,26 +1135,15 @@ pub type GSpawnChildSetupFunc = Option; pub type GTestFixtureFunc = Option; pub type GTestFunc = Option; -pub type GTestLogFatalFunc = Option< - unsafe extern "C" fn(*const c_char, GLogLevelFlags, *const c_char, gpointer) -> gboolean, ->; +pub type GTestLogFatalFunc = Option gboolean>; pub type GThreadFunc = Option gpointer>; pub type GTranslateFunc = Option *const c_char>; pub type GTraverseFunc = Option gboolean>; pub type GTraverseNodeFunc = Option gboolean>; -pub type GUnixFDSourceFunc = - Option gboolean>; +pub type GUnixFDSourceFunc = Option gboolean>; pub type GVoidFunc = Option; // Records -#[repr(C)] -pub struct _GAllocator { - _data: [u8; 0], - _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, -} - -pub type GAllocator = _GAllocator; - #[derive(Copy, Clone)] #[repr(C)] pub struct GArray { @@ -1229,9 +1154,9 @@ pub struct GArray { impl ::std::fmt::Debug for GArray { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GArray @ {self:p}")) - .field("data", &self.data) - .field("len", &self.len) - .finish() + .field("data", &self.data) + .field("len", &self.len) + .finish() } } @@ -1252,7 +1177,7 @@ pub struct GBookmarkFile { impl ::std::fmt::Debug for GBookmarkFile { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GBookmarkFile @ {self:p}")) - .finish() + .finish() } } @@ -1266,9 +1191,9 @@ pub struct GByteArray { impl ::std::fmt::Debug for GByteArray { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GByteArray @ {self:p}")) - .field("data", &self.data) - .field("len", &self.len) - .finish() + .field("data", &self.data) + .field("len", &self.len) + .finish() } } @@ -1280,19 +1205,12 @@ pub struct GBytes { impl ::std::fmt::Debug for GBytes { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GBytes @ {self:p}")).finish() + f.debug_struct(&format!("GBytes @ {self:p}")) + .finish() } } #[repr(C)] -pub struct _GCache { - _data: [u8; 0], - _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, -} - -pub type GCache = _GCache; - -#[repr(C)] pub struct GChecksum { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, @@ -1300,29 +1218,8 @@ pub struct GChecksum { impl ::std::fmt::Debug for GChecksum { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GChecksum @ {self:p}")).finish() - } -} - -#[derive(Copy, Clone)] -#[repr(C)] -pub struct GCompletion { - pub items: *mut GList, - pub func: GCompletionFunc, - pub prefix: *mut c_char, - pub cache: *mut GList, - pub strncmp_func: GCompletionStrncmpFunc, -} - -impl ::std::fmt::Debug for GCompletion { - fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GCompletion @ {self:p}")) - .field("items", &self.items) - .field("func", &self.func) - .field("prefix", &self.prefix) - .field("cache", &self.cache) - .field("strncmp_func", &self.strncmp_func) - .finish() + f.debug_struct(&format!("GChecksum @ {self:p}")) + .finish() } } @@ -1335,7 +1232,8 @@ pub struct GCond { impl ::std::fmt::Debug for GCond { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GCond @ {self:p}")).finish() + f.debug_struct(&format!("GCond @ {self:p}")) + .finish() } } @@ -1357,9 +1255,9 @@ pub struct GDate { impl ::std::fmt::Debug for GDate { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GDate @ {self:p}")) - .field("julian_days", &self.julian_days) - .field("flags_dmy", &self.flags_dmy) - .finish() + .field("julian_days", &self.julian_days) + .field("flags_dmy", &self.flags_dmy) + .finish() } } @@ -1371,7 +1269,8 @@ pub struct GDateTime { impl ::std::fmt::Debug for GDateTime { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GDateTime @ {self:p}")).finish() + f.debug_struct(&format!("GDateTime @ {self:p}")) + .finish() } } @@ -1385,23 +1284,19 @@ pub struct GDebugKey { impl ::std::fmt::Debug for GDebugKey { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GDebugKey @ {self:p}")) - .field("key", &self.key) - .field("value", &self.value) - .finish() + .field("key", &self.key) + .field("value", &self.value) + .finish() } } #[repr(C)] -pub struct GDir { +pub struct _GDir { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, } -impl ::std::fmt::Debug for GDir { - fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GDir @ {self:p}")).finish() - } -} +pub type GDir = _GDir; #[repr(C)] pub struct GDoubleIEEE754_mpn { @@ -1413,8 +1308,8 @@ pub struct GDoubleIEEE754_mpn { impl ::std::fmt::Debug for GDoubleIEEE754_mpn { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GDoubleIEEE754_mpn @ {self:p}")) - .field("mantissa_low", &self.mantissa_low) - .finish() + .field("mantissa_low", &self.mantissa_low) + .finish() } } @@ -1429,10 +1324,10 @@ pub struct GError { impl ::std::fmt::Debug for GError { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GError @ {self:p}")) - .field("domain", &self.domain) - .field("code", &self.code) - .field("message", &self.message) - .finish() + .field("domain", &self.domain) + .field("code", &self.code) + .field("message", &self.message) + .finish() } } @@ -1446,8 +1341,8 @@ pub struct GFloatIEEE754_mpn { impl ::std::fmt::Debug for GFloatIEEE754_mpn { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GFloatIEEE754_mpn @ {self:p}")) - .field("mantissa", &self.mantissa) - .finish() + .field("mantissa", &self.mantissa) + .finish() } } @@ -1459,7 +1354,8 @@ pub struct GHashTable { impl ::std::fmt::Debug for GHashTable { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GHashTable @ {self:p}")).finish() + f.debug_struct(&format!("GHashTable @ {self:p}")) + .finish() } } @@ -1477,21 +1373,17 @@ pub struct GHashTableIter { impl ::std::fmt::Debug for GHashTableIter { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GHashTableIter @ {self:p}")) - .finish() + .finish() } } #[repr(C)] -pub struct GHmac { +pub struct _GHmac { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, } -impl ::std::fmt::Debug for GHmac { - fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GHmac @ {self:p}")).finish() - } -} +pub type GHmac = _GHmac; #[derive(Copy, Clone)] #[repr(C)] @@ -1509,15 +1401,15 @@ pub struct GHook { impl ::std::fmt::Debug for GHook { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GHook @ {self:p}")) - .field("data", &self.data) - .field("next", &self.next) - .field("prev", &self.prev) - .field("ref_count", &self.ref_count) - .field("hook_id", &self.hook_id) - .field("flags", &self.flags) - .field("func", &self.func) - .field("destroy", &self.destroy) - .finish() + .field("data", &self.data) + .field("next", &self.next) + .field("prev", &self.prev) + .field("ref_count", &self.ref_count) + .field("hook_id", &self.hook_id) + .field("flags", &self.flags) + .field("func", &self.func) + .field("destroy", &self.destroy) + .finish() } } @@ -1570,55 +1462,36 @@ pub struct GIOChannel { impl ::std::fmt::Debug for GIOChannel { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GIOChannel @ {self:p}")).finish() + f.debug_struct(&format!("GIOChannel @ {self:p}")) + .finish() } } #[derive(Copy, Clone)] #[repr(C)] pub struct GIOFuncs { - pub io_read: Option< - unsafe extern "C" fn( - *mut GIOChannel, - *const c_char, - size_t, - *mut size_t, - *mut *mut GError, - ) -> GIOStatus, - >, - pub io_write: Option< - unsafe extern "C" fn( - *mut GIOChannel, - *const c_char, - size_t, - *mut size_t, - *mut *mut GError, - ) -> GIOStatus, - >, - pub io_seek: Option< - unsafe extern "C" fn(*mut GIOChannel, i64, GSeekType, *mut *mut GError) -> GIOStatus, - >, + pub io_read: Option GIOStatus>, + pub io_write: Option GIOStatus>, + pub io_seek: Option GIOStatus>, pub io_close: Option GIOStatus>, - pub io_create_watch: - Option *mut GSource>, + pub io_create_watch: Option *mut GSource>, pub io_free: Option, - pub io_set_flags: - Option GIOStatus>, + pub io_set_flags: Option GIOStatus>, pub io_get_flags: Option GIOFlags>, } impl ::std::fmt::Debug for GIOFuncs { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GIOFuncs @ {self:p}")) - .field("io_read", &self.io_read) - .field("io_write", &self.io_write) - .field("io_seek", &self.io_seek) - .field("io_close", &self.io_close) - .field("io_create_watch", &self.io_create_watch) - .field("io_free", &self.io_free) - .field("io_set_flags", &self.io_set_flags) - .field("io_get_flags", &self.io_get_flags) - .finish() + .field("io_read", &self.io_read) + .field("io_write", &self.io_write) + .field("io_seek", &self.io_seek) + .field("io_close", &self.io_close) + .field("io_create_watch", &self.io_create_watch) + .field("io_free", &self.io_free) + .field("io_set_flags", &self.io_set_flags) + .field("io_get_flags", &self.io_get_flags) + .finish() } } @@ -1630,7 +1503,8 @@ pub struct GKeyFile { impl ::std::fmt::Debug for GKeyFile { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GKeyFile @ {self:p}")).finish() + f.debug_struct(&format!("GKeyFile @ {self:p}")) + .finish() } } @@ -1645,10 +1519,10 @@ pub struct GList { impl ::std::fmt::Debug for GList { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GList @ {self:p}")) - .field("data", &self.data) - .field("next", &self.next) - .field("prev", &self.prev) - .finish() + .field("data", &self.data) + .field("next", &self.next) + .field("prev", &self.prev) + .finish() } } @@ -1663,10 +1537,10 @@ pub struct GLogField { impl ::std::fmt::Debug for GLogField { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GLogField @ {self:p}")) - .field("key", &self.key) - .field("value", &self.value) - .field("length", &self.length) - .finish() + .field("key", &self.key) + .field("value", &self.value) + .field("length", &self.length) + .finish() } } @@ -1678,7 +1552,8 @@ pub struct GMainContext { impl ::std::fmt::Debug for GMainContext { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GMainContext @ {self:p}")).finish() + f.debug_struct(&format!("GMainContext @ {self:p}")) + .finish() } } @@ -1690,7 +1565,8 @@ pub struct GMainLoop { impl ::std::fmt::Debug for GMainLoop { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GMainLoop @ {self:p}")).finish() + f.debug_struct(&format!("GMainLoop @ {self:p}")) + .finish() } } @@ -1702,7 +1578,8 @@ pub struct GMappedFile { impl ::std::fmt::Debug for GMappedFile { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GMappedFile @ {self:p}")).finish() + f.debug_struct(&format!("GMappedFile @ {self:p}")) + .finish() } } @@ -1715,56 +1592,29 @@ pub struct GMarkupParseContext { impl ::std::fmt::Debug for GMarkupParseContext { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GMarkupParseContext @ {self:p}")) - .finish() + .finish() } } #[derive(Copy, Clone)] #[repr(C)] pub struct GMarkupParser { - pub start_element: Option< - unsafe extern "C" fn( - *mut GMarkupParseContext, - *const c_char, - *mut *const c_char, - *mut *const c_char, - gpointer, - *mut *mut GError, - ), - >, - pub end_element: Option< - unsafe extern "C" fn(*mut GMarkupParseContext, *const c_char, gpointer, *mut *mut GError), - >, - pub text: Option< - unsafe extern "C" fn( - *mut GMarkupParseContext, - *const c_char, - size_t, - gpointer, - *mut *mut GError, - ), - >, - pub passthrough: Option< - unsafe extern "C" fn( - *mut GMarkupParseContext, - *const c_char, - size_t, - gpointer, - *mut *mut GError, - ), - >, + pub start_element: Option, + pub end_element: Option, + pub text: Option, + pub passthrough: Option, pub error: Option, } impl ::std::fmt::Debug for GMarkupParser { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GMarkupParser @ {self:p}")) - .field("start_element", &self.start_element) - .field("end_element", &self.end_element) - .field("text", &self.text) - .field("passthrough", &self.passthrough) - .field("error", &self.error) - .finish() + .field("start_element", &self.start_element) + .field("end_element", &self.end_element) + .field("text", &self.text) + .field("passthrough", &self.passthrough) + .field("error", &self.error) + .finish() } } @@ -1776,18 +1626,11 @@ pub struct GMatchInfo { impl ::std::fmt::Debug for GMatchInfo { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GMatchInfo @ {self:p}")).finish() + f.debug_struct(&format!("GMatchInfo @ {self:p}")) + .finish() } } -#[repr(C)] -pub struct _GMemChunk { - _data: [u8; 0], - _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, -} - -pub type GMemChunk = _GMemChunk; - #[derive(Copy, Clone)] #[repr(C)] pub struct GMemVTable { @@ -1802,13 +1645,13 @@ pub struct GMemVTable { impl ::std::fmt::Debug for GMemVTable { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GMemVTable @ {self:p}")) - .field("malloc", &self.malloc) - .field("realloc", &self.realloc) - .field("free", &self.free) - .field("calloc", &self.calloc) - .field("try_malloc", &self.try_malloc) - .field("try_realloc", &self.try_realloc) - .finish() + .field("malloc", &self.malloc) + .field("realloc", &self.realloc) + .field("free", &self.free) + .field("calloc", &self.calloc) + .field("try_malloc", &self.try_malloc) + .field("try_realloc", &self.try_realloc) + .finish() } } @@ -1825,25 +1668,26 @@ pub struct GNode { impl ::std::fmt::Debug for GNode { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GNode @ {self:p}")) - .field("data", &self.data) - .field("next", &self.next) - .field("prev", &self.prev) - .field("parent", &self.parent) - .field("children", &self.children) - .finish() + .field("data", &self.data) + .field("next", &self.next) + .field("prev", &self.prev) + .field("parent", &self.parent) + .field("children", &self.children) + .finish() } } #[derive(Copy, Clone)] #[repr(C)] pub struct GOnce { - pub status: GOnceStatus, - pub retval: gpointer, + pub status: /*volatile*/GOnceStatus, + pub retval: /*volatile*/gpointer, } impl ::std::fmt::Debug for GOnce { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GOnce @ {self:p}")).finish() + f.debug_struct(&format!("GOnce @ {self:p}")) + .finish() } } @@ -1870,14 +1714,14 @@ pub struct GOptionEntry { impl ::std::fmt::Debug for GOptionEntry { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GOptionEntry @ {self:p}")) - .field("long_name", &self.long_name) - .field("short_name", &self.short_name) - .field("flags", &self.flags) - .field("arg", &self.arg) - .field("arg_data", &self.arg_data) - .field("description", &self.description) - .field("arg_description", &self.arg_description) - .finish() + .field("long_name", &self.long_name) + .field("short_name", &self.short_name) + .field("flags", &self.flags) + .field("arg", &self.arg) + .field("arg_data", &self.arg_data) + .field("description", &self.description) + .field("arg_description", &self.arg_description) + .finish() } } @@ -1889,7 +1733,8 @@ pub struct GOptionGroup { impl ::std::fmt::Debug for GOptionGroup { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GOptionGroup @ {self:p}")).finish() + f.debug_struct(&format!("GOptionGroup @ {self:p}")) + .finish() } } @@ -1901,7 +1746,8 @@ pub struct GPathBuf { impl ::std::fmt::Debug for GPathBuf { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GPathBuf @ {self:p}")).finish() + f.debug_struct(&format!("GPathBuf @ {self:p}")) + .finish() } } @@ -1913,7 +1759,8 @@ pub struct GPatternSpec { impl ::std::fmt::Debug for GPatternSpec { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GPatternSpec @ {self:p}")).finish() + f.debug_struct(&format!("GPatternSpec @ {self:p}")) + .finish() } } @@ -1927,7 +1774,8 @@ pub struct GPrivate { impl ::std::fmt::Debug for GPrivate { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GPrivate @ {self:p}")).finish() + f.debug_struct(&format!("GPrivate @ {self:p}")) + .finish() } } @@ -1941,9 +1789,9 @@ pub struct GPtrArray { impl ::std::fmt::Debug for GPtrArray { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GPtrArray @ {self:p}")) - .field("pdata", &self.pdata) - .field("len", &self.len) - .finish() + .field("pdata", &self.pdata) + .field("len", &self.len) + .finish() } } @@ -1958,10 +1806,10 @@ pub struct GQueue { impl ::std::fmt::Debug for GQueue { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GQueue @ {self:p}")) - .field("head", &self.head) - .field("tail", &self.tail) - .field("length", &self.length) - .finish() + .field("head", &self.head) + .field("tail", &self.tail) + .field("length", &self.length) + .finish() } } @@ -1974,21 +1822,18 @@ pub struct GRWLock { impl ::std::fmt::Debug for GRWLock { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GRWLock @ {self:p}")).finish() + f.debug_struct(&format!("GRWLock @ {self:p}")) + .finish() } } #[repr(C)] -pub struct GRand { +pub struct _GRand { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, } -impl ::std::fmt::Debug for GRand { - fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GRand @ {self:p}")).finish() - } -} +pub type GRand = _GRand; #[derive(Copy, Clone)] #[repr(C)] @@ -1999,7 +1844,8 @@ pub struct GRecMutex { impl ::std::fmt::Debug for GRecMutex { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GRecMutex @ {self:p}")).finish() + f.debug_struct(&format!("GRecMutex @ {self:p}")) + .finish() } } @@ -2011,18 +1857,11 @@ pub struct GRegex { impl ::std::fmt::Debug for GRegex { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GRegex @ {self:p}")).finish() + f.debug_struct(&format!("GRegex @ {self:p}")) + .finish() } } -#[repr(C)] -pub struct _GRelation { - _data: [u8; 0], - _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, -} - -pub type GRelation = _GRelation; - #[derive(Copy, Clone)] #[repr(C)] pub struct GSList { @@ -2033,9 +1872,9 @@ pub struct GSList { impl ::std::fmt::Debug for GSList { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GSList @ {self:p}")) - .field("data", &self.data) - .field("next", &self.next) - .finish() + .field("data", &self.data) + .field("next", &self.next) + .finish() } } @@ -2068,22 +1907,22 @@ pub struct GScanner { impl ::std::fmt::Debug for GScanner { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GScanner @ {self:p}")) - .field("user_data", &self.user_data) - .field("max_parse_errors", &self.max_parse_errors) - .field("parse_errors", &self.parse_errors) - .field("input_name", &self.input_name) - .field("qdata", &self.qdata) - .field("config", &self.config) - .field("token", &self.token) - .field("value", &self.value) - .field("line", &self.line) - .field("position", &self.position) - .field("next_token", &self.next_token) - .field("next_value", &self.next_value) - .field("next_line", &self.next_line) - .field("next_position", &self.next_position) - .field("msg_handler", &self.msg_handler) - .finish() + .field("user_data", &self.user_data) + .field("max_parse_errors", &self.max_parse_errors) + .field("parse_errors", &self.parse_errors) + .field("input_name", &self.input_name) + .field("qdata", &self.qdata) + .field("config", &self.config) + .field("token", &self.token) + .field("value", &self.value) + .field("line", &self.line) + .field("position", &self.position) + .field("next_token", &self.next_token) + .field("next_value", &self.next_value) + .field("next_line", &self.next_line) + .field("next_position", &self.next_position) + .field("msg_handler", &self.msg_handler) + .finish() } } @@ -2101,12 +1940,12 @@ pub struct GScannerConfig { impl ::std::fmt::Debug for GScannerConfig { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GScannerConfig @ {self:p}")) - .field("cset_skip_characters", &self.cset_skip_characters) - .field("cset_identifier_first", &self.cset_identifier_first) - .field("cset_identifier_nth", &self.cset_identifier_nth) - .field("cpair_comment_single", &self.cpair_comment_single) - .field("case_sensitive", &self.case_sensitive) - .finish() + .field("cset_skip_characters", &self.cset_skip_characters) + .field("cset_identifier_first", &self.cset_identifier_first) + .field("cset_identifier_nth", &self.cset_identifier_nth) + .field("cpair_comment_single", &self.cpair_comment_single) + .field("case_sensitive", &self.case_sensitive) + .finish() } } @@ -2146,7 +1985,8 @@ pub struct GSource { impl ::std::fmt::Debug for GSource { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GSource @ {self:p}")).finish() + f.debug_struct(&format!("GSource @ {self:p}")) + .finish() } } @@ -2161,10 +2001,10 @@ pub struct GSourceCallbackFuncs { impl ::std::fmt::Debug for GSourceCallbackFuncs { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GSourceCallbackFuncs @ {self:p}")) - .field("ref_", &self.ref_) - .field("unref", &self.unref) - .field("get", &self.get) - .finish() + .field("ref_", &self.ref_) + .field("unref", &self.unref) + .field("get", &self.get) + .finish() } } @@ -2182,11 +2022,11 @@ pub struct GSourceFuncs { impl ::std::fmt::Debug for GSourceFuncs { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GSourceFuncs @ {self:p}")) - .field("prepare", &self.prepare) - .field("check", &self.check) - .field("dispatch", &self.dispatch) - .field("finalize", &self.finalize) - .finish() + .field("prepare", &self.prepare) + .field("check", &self.check) + .field("dispatch", &self.dispatch) + .field("finalize", &self.finalize) + .finish() } } @@ -2208,66 +2048,6 @@ pub type GStatBuf = _GStatBuf; #[derive(Copy, Clone)] #[repr(C)] -pub struct GStaticMutex { - pub mutex: *mut GMutex, -} - -impl ::std::fmt::Debug for GStaticMutex { - fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GStaticMutex @ {self:p}")) - .field("mutex", &self.mutex) - .finish() - } -} - -#[derive(Copy, Clone)] -#[repr(C)] -pub struct GStaticPrivate { - pub index: c_uint, -} - -impl ::std::fmt::Debug for GStaticPrivate { - fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GStaticPrivate @ {self:p}")) - .finish() - } -} - -#[derive(Copy, Clone)] -#[repr(C)] -pub struct GStaticRWLock { - pub mutex: GStaticMutex, - pub read_cond: *mut GCond, - pub write_cond: *mut GCond, - pub read_counter: c_uint, - pub have_writer: gboolean, - pub want_to_read: c_uint, - pub want_to_write: c_uint, -} - -impl ::std::fmt::Debug for GStaticRWLock { - fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GStaticRWLock @ {self:p}")) - .finish() - } -} - -#[derive(Copy, Clone)] -#[repr(C)] -pub struct GStaticRecMutex { - pub mutex: GStaticMutex, - pub depth: c_uint, -} - -impl ::std::fmt::Debug for GStaticRecMutex { - fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GStaticRecMutex @ {self:p}")) - .finish() - } -} - -#[derive(Copy, Clone)] -#[repr(C)] pub struct GString { pub str: *mut c_char, pub len: size_t, @@ -2277,10 +2057,10 @@ pub struct GString { impl ::std::fmt::Debug for GString { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GString @ {self:p}")) - .field("str", &self.str) - .field("len", &self.len) - .field("allocated_len", &self.allocated_len) - .finish() + .field("str", &self.str) + .field("len", &self.len) + .field("allocated_len", &self.allocated_len) + .finish() } } @@ -2293,16 +2073,12 @@ pub struct _GStringChunk { pub type GStringChunk = _GStringChunk; #[repr(C)] -pub struct GStrvBuilder { +pub struct _GStrvBuilder { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, } -impl ::std::fmt::Debug for GStrvBuilder { - fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GStrvBuilder @ {self:p}")).finish() - } -} +pub type GStrvBuilder = _GStrvBuilder; #[repr(C)] pub struct _GTestCase { @@ -2326,13 +2102,13 @@ pub struct GTestConfig { impl ::std::fmt::Debug for GTestConfig { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GTestConfig @ {self:p}")) - .field("test_initialized", &self.test_initialized) - .field("test_quick", &self.test_quick) - .field("test_perf", &self.test_perf) - .field("test_verbose", &self.test_verbose) - .field("test_quiet", &self.test_quiet) - .field("test_undefined", &self.test_undefined) - .finish() + .field("test_initialized", &self.test_initialized) + .field("test_quick", &self.test_quick) + .field("test_perf", &self.test_perf) + .field("test_verbose", &self.test_verbose) + .field("test_quiet", &self.test_quiet) + .field("test_undefined", &self.test_undefined) + .finish() } } @@ -2346,7 +2122,7 @@ pub struct GTestLogBuffer { impl ::std::fmt::Debug for GTestLogBuffer { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GTestLogBuffer @ {self:p}")) - .finish() + .finish() } } @@ -2358,84 +2134,16 @@ pub struct _GTestSuite { pub type GTestSuite = _GTestSuite; -#[derive(Copy, Clone)] #[repr(C)] pub struct GThread { - pub func: GThreadFunc, - pub data: gpointer, - pub joinable: gboolean, - pub priority: GThreadPriority, + _data: [u8; 0], + _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, } impl ::std::fmt::Debug for GThread { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GThread @ {self:p}")).finish() - } -} - -#[derive(Copy, Clone)] -#[repr(C)] -pub struct GThreadFunctions { - pub mutex_new: Option *mut GMutex>, - pub mutex_lock: Option, - pub mutex_trylock: Option gboolean>, - pub mutex_unlock: Option, - pub mutex_free: Option, - pub cond_new: Option *mut GCond>, - pub cond_signal: Option, - pub cond_broadcast: Option, - pub cond_wait: Option, - pub cond_timed_wait: - Option gboolean>, - pub cond_free: Option, - pub private_new: Option *mut GPrivate>, - pub private_get: Option gpointer>, - pub private_set: Option, - pub thread_create: Option< - unsafe extern "C" fn( - GThreadFunc, - gpointer, - c_ulong, - gboolean, - gboolean, - GThreadPriority, - gpointer, - *mut *mut GError, - ), - >, - pub thread_yield: Option, - pub thread_join: Option, - pub thread_exit: Option, - pub thread_set_priority: Option, - pub thread_self: Option, - pub thread_equal: Option gboolean>, -} - -impl ::std::fmt::Debug for GThreadFunctions { - fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GThreadFunctions @ {self:p}")) - .field("mutex_new", &self.mutex_new) - .field("mutex_lock", &self.mutex_lock) - .field("mutex_trylock", &self.mutex_trylock) - .field("mutex_unlock", &self.mutex_unlock) - .field("mutex_free", &self.mutex_free) - .field("cond_new", &self.cond_new) - .field("cond_signal", &self.cond_signal) - .field("cond_broadcast", &self.cond_broadcast) - .field("cond_wait", &self.cond_wait) - .field("cond_timed_wait", &self.cond_timed_wait) - .field("cond_free", &self.cond_free) - .field("private_new", &self.private_new) - .field("private_get", &self.private_get) - .field("private_set", &self.private_set) - .field("thread_create", &self.thread_create) - .field("thread_yield", &self.thread_yield) - .field("thread_join", &self.thread_join) - .field("thread_exit", &self.thread_exit) - .field("thread_set_priority", &self.thread_set_priority) - .field("thread_self", &self.thread_self) - .field("thread_equal", &self.thread_equal) - .finish() + f.debug_struct(&format!("GThread @ {self:p}")) + .finish() } } @@ -2450,10 +2158,10 @@ pub struct GThreadPool { impl ::std::fmt::Debug for GThreadPool { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GThreadPool @ {self:p}")) - .field("func", &self.func) - .field("user_data", &self.user_data) - .field("exclusive", &self.exclusive) - .finish() + .field("func", &self.func) + .field("user_data", &self.user_data) + .field("exclusive", &self.exclusive) + .finish() } } @@ -2467,9 +2175,9 @@ pub struct GTimeVal { impl ::std::fmt::Debug for GTimeVal { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GTimeVal @ {self:p}")) - .field("tv_sec", &self.tv_sec) - .field("tv_usec", &self.tv_usec) - .finish() + .field("tv_sec", &self.tv_sec) + .field("tv_usec", &self.tv_usec) + .finish() } } @@ -2481,7 +2189,8 @@ pub struct GTimeZone { impl ::std::fmt::Debug for GTimeZone { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GTimeZone @ {self:p}")).finish() + f.debug_struct(&format!("GTimeZone @ {self:p}")) + .finish() } } @@ -2502,8 +2211,8 @@ pub struct GTrashStack { impl ::std::fmt::Debug for GTrashStack { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GTrashStack @ {self:p}")) - .field("next", &self.next) - .finish() + .field("next", &self.next) + .finish() } } @@ -2515,7 +2224,8 @@ pub struct GTree { impl ::std::fmt::Debug for GTree { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GTree @ {self:p}")).finish() + f.debug_struct(&format!("GTree @ {self:p}")) + .finish() } } @@ -2527,38 +2237,6 @@ pub struct _GTreeNode { pub type GTreeNode = _GTreeNode; -#[derive(Copy, Clone)] -#[repr(C)] -pub struct GTuples { - pub len: c_uint, -} - -impl ::std::fmt::Debug for GTuples { - fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GTuples @ {self:p}")) - .field("len", &self.len) - .finish() - } -} - -#[cfg(unix)] -#[cfg_attr(docsrs, doc(cfg(unix)))] -#[derive(Copy, Clone)] -#[repr(C)] -pub struct GUnixPipe { - pub fds: [c_int; 2], -} - -#[cfg(unix)] -#[cfg_attr(docsrs, doc(cfg(unix)))] -impl ::std::fmt::Debug for GUnixPipe { - fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GUnixPipe @ {self:p}")) - .field("fds", &self.fds) - .finish() - } -} - #[repr(C)] pub struct GUri { _data: [u8; 0], @@ -2567,7 +2245,8 @@ pub struct GUri { impl ::std::fmt::Debug for GUri { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GUri @ {self:p}")).finish() + f.debug_struct(&format!("GUri @ {self:p}")) + .finish() } } @@ -2583,7 +2262,7 @@ pub struct GUriParamsIter { impl ::std::fmt::Debug for GUriParamsIter { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GUriParamsIter @ {self:p}")) - .finish() + .finish() } } @@ -2595,7 +2274,8 @@ pub struct GVariant { impl ::std::fmt::Debug for GVariant { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GVariant @ {self:p}")).finish() + f.debug_struct(&format!("GVariant @ {self:p}")) + .finish() } } @@ -2608,8 +2288,8 @@ pub struct GVariantBuilder { impl ::std::fmt::Debug for GVariantBuilder { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GVariantBuilder @ {self:p}")) - .field("u", &self.u) - .finish() + .field("u", &self.u) + .finish() } } @@ -2624,10 +2304,10 @@ pub struct GVariantBuilder_u_s { impl ::std::fmt::Debug for GVariantBuilder_u_s { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GVariantBuilder_u_s @ {self:p}")) - .field("partial_magic", &self.partial_magic) - .field("type_", &self.type_) - .field("y", &self.y) - .finish() + .field("partial_magic", &self.partial_magic) + .field("type_", &self.type_) + .field("y", &self.y) + .finish() } } @@ -2640,8 +2320,8 @@ pub struct GVariantDict { impl ::std::fmt::Debug for GVariantDict { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GVariantDict @ {self:p}")) - .field("u", &self.u) - .finish() + .field("u", &self.u) + .finish() } } @@ -2656,10 +2336,10 @@ pub struct GVariantDict_u_s { impl ::std::fmt::Debug for GVariantDict_u_s { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GVariantDict_u_s @ {self:p}")) - .field("asv", &self.asv) - .field("partial_magic", &self.partial_magic) - .field("y", &self.y) - .finish() + .field("asv", &self.asv) + .field("partial_magic", &self.partial_magic) + .field("y", &self.y) + .finish() } } @@ -2671,7 +2351,8 @@ pub struct GVariantIter { impl ::std::fmt::Debug for GVariantIter { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GVariantIter @ {self:p}")).finish() + f.debug_struct(&format!("GVariantIter @ {self:p}")) + .finish() } } @@ -2683,7 +2364,8 @@ pub struct GVariantType { impl ::std::fmt::Debug for GVariantType { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GVariantType @ {self:p}")).finish() + f.debug_struct(&format!("GVariantType @ {self:p}")) + .finish() } } @@ -2692,28 +2374,6 @@ impl ::std::fmt::Debug for GVariantType extern "C" { //========================================================================= - // GNormalizeMode - //========================================================================= - pub fn g_normalize_mode_get_type() -> GType; - - //========================================================================= - // GUnicodeBreakType - //========================================================================= - pub fn g_unicode_break_type_get_type() -> GType; - - //========================================================================= - // GUnicodeScript - //========================================================================= - pub fn g_unicode_script_get_type() -> GType; - pub fn g_unicode_script_from_iso15924(iso15924: u32) -> GUnicodeScript; - pub fn g_unicode_script_to_iso15924(script: GUnicodeScript) -> u32; - - //========================================================================= - // GUnicodeType - //========================================================================= - pub fn g_unicode_type_get_type() -> GType; - - //========================================================================= // GIOCondition //========================================================================= pub fn g_io_condition_get_type() -> GType; @@ -2722,87 +2382,42 @@ extern "C" { // GMutex //========================================================================= pub fn g_mutex_clear(mutex: *mut GMutex); - pub fn g_mutex_free(mutex: *mut GMutex); pub fn g_mutex_init(mutex: *mut GMutex); pub fn g_mutex_lock(mutex: *mut GMutex); pub fn g_mutex_trylock(mutex: *mut GMutex) -> gboolean; pub fn g_mutex_unlock(mutex: *mut GMutex); - pub fn g_mutex_new() -> *mut GMutex; - - //========================================================================= - // GAllocator - //========================================================================= - pub fn g_allocator_free(allocator: *mut GAllocator); - pub fn g_allocator_new(name: *const c_char, n_preallocs: c_uint) -> *mut GAllocator; //========================================================================= // GArray //========================================================================= pub fn g_array_get_type() -> GType; - pub fn g_array_append_vals(array: *mut GArray, data: gconstpointer, len: c_uint) - -> *mut GArray; + pub fn g_array_append_vals(array: *mut GArray, data: gconstpointer, len: c_uint) -> *mut GArray; #[cfg(feature = "v2_62")] #[cfg_attr(docsrs, doc(cfg(feature = "v2_62")))] - pub fn g_array_binary_search( - array: *mut GArray, - target: gconstpointer, - compare_func: GCompareFunc, - out_match_index: *mut c_uint, - ) -> gboolean; + pub fn g_array_binary_search(array: *mut GArray, target: gconstpointer, compare_func: GCompareFunc, out_match_index: *mut c_uint) -> gboolean; #[cfg(feature = "v2_62")] #[cfg_attr(docsrs, doc(cfg(feature = "v2_62")))] pub fn g_array_copy(array: *mut GArray) -> *mut GArray; pub fn g_array_free(array: *mut GArray, free_segment: gboolean) -> *mut c_char; pub fn g_array_get_element_size(array: *mut GArray) -> c_uint; - pub fn g_array_insert_vals( - array: *mut GArray, - index_: c_uint, - data: gconstpointer, - len: c_uint, - ) -> *mut GArray; - pub fn g_array_new( - zero_terminated: gboolean, - clear_: gboolean, - element_size: c_uint, - ) -> *mut GArray; + pub fn g_array_insert_vals(array: *mut GArray, index_: c_uint, data: gconstpointer, len: c_uint) -> *mut GArray; + pub fn g_array_new(zero_terminated: gboolean, clear_: gboolean, element_size: c_uint) -> *mut GArray; #[cfg(feature = "v2_76")] #[cfg_attr(docsrs, doc(cfg(feature = "v2_76")))] - pub fn g_array_new_take( - data: gpointer, - len: size_t, - clear: gboolean, - element_size: size_t, - ) -> *mut GArray; + pub fn g_array_new_take(data: gpointer, len: size_t, clear: gboolean, element_size: size_t) -> *mut GArray; #[cfg(feature = "v2_76")] #[cfg_attr(docsrs, doc(cfg(feature = "v2_76")))] - pub fn g_array_new_take_zero_terminated( - data: gpointer, - clear: gboolean, - element_size: size_t, - ) -> *mut GArray; - pub fn g_array_prepend_vals( - array: *mut GArray, - data: gconstpointer, - len: c_uint, - ) -> *mut GArray; + pub fn g_array_new_take_zero_terminated(data: gpointer, clear: gboolean, element_size: size_t) -> *mut GArray; + pub fn g_array_prepend_vals(array: *mut GArray, data: gconstpointer, len: c_uint) -> *mut GArray; pub fn g_array_ref(array: *mut GArray) -> *mut GArray; pub fn g_array_remove_index(array: *mut GArray, index_: c_uint) -> *mut GArray; pub fn g_array_remove_index_fast(array: *mut GArray, index_: c_uint) -> *mut GArray; pub fn g_array_remove_range(array: *mut GArray, index_: c_uint, length: c_uint) -> *mut GArray; pub fn g_array_set_clear_func(array: *mut GArray, clear_func: GDestroyNotify); pub fn g_array_set_size(array: *mut GArray, length: c_uint) -> *mut GArray; - pub fn g_array_sized_new( - zero_terminated: gboolean, - clear_: gboolean, - element_size: c_uint, - reserved_size: c_uint, - ) -> *mut GArray; + pub fn g_array_sized_new(zero_terminated: gboolean, clear_: gboolean, element_size: c_uint, reserved_size: c_uint) -> *mut GArray; pub fn g_array_sort(array: *mut GArray, compare_func: GCompareFunc); - pub fn g_array_sort_with_data( - array: *mut GArray, - compare_func: GCompareDataFunc, - user_data: gpointer, - ); + pub fn g_array_sort_with_data(array: *mut GArray, compare_func: GCompareDataFunc, user_data: gpointer); #[cfg(feature = "v2_64")] #[cfg_attr(docsrs, doc(cfg(feature = "v2_64")))] pub fn g_array_steal(array: *mut GArray, len: *mut size_t) -> gpointer; @@ -2819,34 +2434,17 @@ extern "C" { pub fn g_async_queue_push(queue: *mut GAsyncQueue, data: gpointer); pub fn g_async_queue_push_front(queue: *mut GAsyncQueue, item: gpointer); pub fn g_async_queue_push_front_unlocked(queue: *mut GAsyncQueue, item: gpointer); - pub fn g_async_queue_push_sorted( - queue: *mut GAsyncQueue, - data: gpointer, - func: GCompareDataFunc, - user_data: gpointer, - ); - pub fn g_async_queue_push_sorted_unlocked( - queue: *mut GAsyncQueue, - data: gpointer, - func: GCompareDataFunc, - user_data: gpointer, - ); + pub fn g_async_queue_push_sorted(queue: *mut GAsyncQueue, data: gpointer, func: GCompareDataFunc, user_data: gpointer); + pub fn g_async_queue_push_sorted_unlocked(queue: *mut GAsyncQueue, data: gpointer, func: GCompareDataFunc, user_data: gpointer); pub fn g_async_queue_push_unlocked(queue: *mut GAsyncQueue, data: gpointer); pub fn g_async_queue_ref(queue: *mut GAsyncQueue) -> *mut GAsyncQueue; pub fn g_async_queue_ref_unlocked(queue: *mut GAsyncQueue); pub fn g_async_queue_remove(queue: *mut GAsyncQueue, item: gpointer) -> gboolean; pub fn g_async_queue_remove_unlocked(queue: *mut GAsyncQueue, item: gpointer) -> gboolean; pub fn g_async_queue_sort(queue: *mut GAsyncQueue, func: GCompareDataFunc, user_data: gpointer); - pub fn g_async_queue_sort_unlocked( - queue: *mut GAsyncQueue, - func: GCompareDataFunc, - user_data: gpointer, - ); + pub fn g_async_queue_sort_unlocked(queue: *mut GAsyncQueue, func: GCompareDataFunc, user_data: gpointer); pub fn g_async_queue_timed_pop(queue: *mut GAsyncQueue, end_time: *mut GTimeVal) -> gpointer; - pub fn g_async_queue_timed_pop_unlocked( - queue: *mut GAsyncQueue, - end_time: *mut GTimeVal, - ) -> gpointer; + pub fn g_async_queue_timed_pop_unlocked(queue: *mut GAsyncQueue, end_time: *mut GTimeVal) -> gpointer; pub fn g_async_queue_timeout_pop(queue: *mut GAsyncQueue, timeout: u64) -> gpointer; pub fn g_async_queue_timeout_pop_unlocked(queue: *mut GAsyncQueue, timeout: u64) -> gpointer; pub fn g_async_queue_try_pop(queue: *mut GAsyncQueue) -> gpointer; @@ -2862,311 +2460,91 @@ extern "C" { //========================================================================= pub fn g_bookmark_file_get_type() -> GType; pub fn g_bookmark_file_new() -> *mut GBookmarkFile; - pub fn g_bookmark_file_add_application( - bookmark: *mut GBookmarkFile, - uri: *const c_char, - name: *const c_char, - exec: *const c_char, - ); - pub fn g_bookmark_file_add_group( - bookmark: *mut GBookmarkFile, - uri: *const c_char, - group: *const c_char, - ); + pub fn g_bookmark_file_add_application(bookmark: *mut GBookmarkFile, uri: *const c_char, name: *const c_char, exec: *const c_char); + pub fn g_bookmark_file_add_group(bookmark: *mut GBookmarkFile, uri: *const c_char, group: *const c_char); #[cfg(feature = "v2_76")] #[cfg_attr(docsrs, doc(cfg(feature = "v2_76")))] pub fn g_bookmark_file_copy(bookmark: *mut GBookmarkFile) -> *mut GBookmarkFile; pub fn g_bookmark_file_free(bookmark: *mut GBookmarkFile); - pub fn g_bookmark_file_get_added( - bookmark: *mut GBookmarkFile, - uri: *const c_char, - error: *mut *mut GError, - ) -> c_long; - #[cfg(feature = "v2_66")] - #[cfg_attr(docsrs, doc(cfg(feature = "v2_66")))] - pub fn g_bookmark_file_get_added_date_time( - bookmark: *mut GBookmarkFile, - uri: *const c_char, - error: *mut *mut GError, - ) -> *mut GDateTime; - pub fn g_bookmark_file_get_app_info( - bookmark: *mut GBookmarkFile, - uri: *const c_char, - name: *const c_char, - exec: *mut *mut c_char, - count: *mut c_uint, - stamp: *mut c_long, - error: *mut *mut GError, - ) -> gboolean; - #[cfg(feature = "v2_66")] - #[cfg_attr(docsrs, doc(cfg(feature = "v2_66")))] - pub fn g_bookmark_file_get_application_info( - bookmark: *mut GBookmarkFile, - uri: *const c_char, - name: *const c_char, - exec: *mut *mut c_char, - count: *mut c_uint, - stamp: *mut *mut GDateTime, - error: *mut *mut GError, - ) -> gboolean; - pub fn g_bookmark_file_get_applications( - bookmark: *mut GBookmarkFile, - uri: *const c_char, - length: *mut size_t, - error: *mut *mut GError, - ) -> *mut *mut c_char; - pub fn g_bookmark_file_get_description( - bookmark: *mut GBookmarkFile, - uri: *const c_char, - error: *mut *mut GError, - ) -> *mut c_char; - pub fn g_bookmark_file_get_groups( - bookmark: *mut GBookmarkFile, - uri: *const c_char, - length: *mut size_t, - error: *mut *mut GError, - ) -> *mut *mut c_char; - pub fn g_bookmark_file_get_icon( - bookmark: *mut GBookmarkFile, - uri: *const c_char, - href: *mut *mut c_char, - mime_type: *mut *mut c_char, - error: *mut *mut GError, - ) -> gboolean; - pub fn g_bookmark_file_get_is_private( - bookmark: *mut GBookmarkFile, - uri: *const c_char, - error: *mut *mut GError, - ) -> gboolean; - pub fn g_bookmark_file_get_mime_type( - bookmark: *mut GBookmarkFile, - uri: *const c_char, - error: *mut *mut GError, - ) -> *mut c_char; - pub fn g_bookmark_file_get_modified( - bookmark: *mut GBookmarkFile, - uri: *const c_char, - error: *mut *mut GError, - ) -> c_long; - #[cfg(feature = "v2_66")] - #[cfg_attr(docsrs, doc(cfg(feature = "v2_66")))] - pub fn g_bookmark_file_get_modified_date_time( - bookmark: *mut GBookmarkFile, - uri: *const c_char, - error: *mut *mut GError, - ) -> *mut GDateTime; + pub fn g_bookmark_file_get_added(bookmark: *mut GBookmarkFile, uri: *const c_char, error: *mut *mut GError) -> time_t; + #[cfg(feature = "v2_66")] + #[cfg_attr(docsrs, doc(cfg(feature = "v2_66")))] + pub fn g_bookmark_file_get_added_date_time(bookmark: *mut GBookmarkFile, uri: *const c_char, error: *mut *mut GError) -> *mut GDateTime; + pub fn g_bookmark_file_get_app_info(bookmark: *mut GBookmarkFile, uri: *const c_char, name: *const c_char, exec: *mut *mut c_char, count: *mut c_uint, stamp: *mut c_long, error: *mut *mut GError) -> gboolean; + #[cfg(feature = "v2_66")] + #[cfg_attr(docsrs, doc(cfg(feature = "v2_66")))] + pub fn g_bookmark_file_get_application_info(bookmark: *mut GBookmarkFile, uri: *const c_char, name: *const c_char, exec: *mut *mut c_char, count: *mut c_uint, stamp: *mut *mut GDateTime, error: *mut *mut GError) -> gboolean; + pub fn g_bookmark_file_get_applications(bookmark: *mut GBookmarkFile, uri: *const c_char, length: *mut size_t, error: *mut *mut GError) -> *mut *mut c_char; + pub fn g_bookmark_file_get_description(bookmark: *mut GBookmarkFile, uri: *const c_char, error: *mut *mut GError) -> *mut c_char; + pub fn g_bookmark_file_get_groups(bookmark: *mut GBookmarkFile, uri: *const c_char, length: *mut size_t, error: *mut *mut GError) -> *mut *mut c_char; + pub fn g_bookmark_file_get_icon(bookmark: *mut GBookmarkFile, uri: *const c_char, href: *mut *mut c_char, mime_type: *mut *mut c_char, error: *mut *mut GError) -> gboolean; + pub fn g_bookmark_file_get_is_private(bookmark: *mut GBookmarkFile, uri: *const c_char, error: *mut *mut GError) -> gboolean; + pub fn g_bookmark_file_get_mime_type(bookmark: *mut GBookmarkFile, uri: *const c_char, error: *mut *mut GError) -> *mut c_char; + pub fn g_bookmark_file_get_modified(bookmark: *mut GBookmarkFile, uri: *const c_char, error: *mut *mut GError) -> time_t; + #[cfg(feature = "v2_66")] + #[cfg_attr(docsrs, doc(cfg(feature = "v2_66")))] + pub fn g_bookmark_file_get_modified_date_time(bookmark: *mut GBookmarkFile, uri: *const c_char, error: *mut *mut GError) -> *mut GDateTime; pub fn g_bookmark_file_get_size(bookmark: *mut GBookmarkFile) -> c_int; - pub fn g_bookmark_file_get_title( - bookmark: *mut GBookmarkFile, - uri: *const c_char, - error: *mut *mut GError, - ) -> *mut c_char; - pub fn g_bookmark_file_get_uris( - bookmark: *mut GBookmarkFile, - length: *mut size_t, - ) -> *mut *mut c_char; - pub fn g_bookmark_file_get_visited( - bookmark: *mut GBookmarkFile, - uri: *const c_char, - error: *mut *mut GError, - ) -> c_long; - #[cfg(feature = "v2_66")] - #[cfg_attr(docsrs, doc(cfg(feature = "v2_66")))] - pub fn g_bookmark_file_get_visited_date_time( - bookmark: *mut GBookmarkFile, - uri: *const c_char, - error: *mut *mut GError, - ) -> *mut GDateTime; - pub fn g_bookmark_file_has_application( - bookmark: *mut GBookmarkFile, - uri: *const c_char, - name: *const c_char, - error: *mut *mut GError, - ) -> gboolean; - pub fn g_bookmark_file_has_group( - bookmark: *mut GBookmarkFile, - uri: *const c_char, - group: *const c_char, - error: *mut *mut GError, - ) -> gboolean; + pub fn g_bookmark_file_get_title(bookmark: *mut GBookmarkFile, uri: *const c_char, error: *mut *mut GError) -> *mut c_char; + pub fn g_bookmark_file_get_uris(bookmark: *mut GBookmarkFile, length: *mut size_t) -> *mut *mut c_char; + pub fn g_bookmark_file_get_visited(bookmark: *mut GBookmarkFile, uri: *const c_char, error: *mut *mut GError) -> time_t; + #[cfg(feature = "v2_66")] + #[cfg_attr(docsrs, doc(cfg(feature = "v2_66")))] + pub fn g_bookmark_file_get_visited_date_time(bookmark: *mut GBookmarkFile, uri: *const c_char, error: *mut *mut GError) -> *mut GDateTime; + pub fn g_bookmark_file_has_application(bookmark: *mut GBookmarkFile, uri: *const c_char, name: *const c_char, error: *mut *mut GError) -> gboolean; + pub fn g_bookmark_file_has_group(bookmark: *mut GBookmarkFile, uri: *const c_char, group: *const c_char, error: *mut *mut GError) -> gboolean; pub fn g_bookmark_file_has_item(bookmark: *mut GBookmarkFile, uri: *const c_char) -> gboolean; - pub fn g_bookmark_file_load_from_data( - bookmark: *mut GBookmarkFile, - data: *const u8, - length: size_t, - error: *mut *mut GError, - ) -> gboolean; - pub fn g_bookmark_file_load_from_data_dirs( - bookmark: *mut GBookmarkFile, - file: *const c_char, - full_path: *mut *mut c_char, - error: *mut *mut GError, - ) -> gboolean; - pub fn g_bookmark_file_load_from_file( - bookmark: *mut GBookmarkFile, - filename: *const c_char, - error: *mut *mut GError, - ) -> gboolean; - pub fn g_bookmark_file_move_item( - bookmark: *mut GBookmarkFile, - old_uri: *const c_char, - new_uri: *const c_char, - error: *mut *mut GError, - ) -> gboolean; - pub fn g_bookmark_file_remove_application( - bookmark: *mut GBookmarkFile, - uri: *const c_char, - name: *const c_char, - error: *mut *mut GError, - ) -> gboolean; - pub fn g_bookmark_file_remove_group( - bookmark: *mut GBookmarkFile, - uri: *const c_char, - group: *const c_char, - error: *mut *mut GError, - ) -> gboolean; - pub fn g_bookmark_file_remove_item( - bookmark: *mut GBookmarkFile, - uri: *const c_char, - error: *mut *mut GError, - ) -> gboolean; - pub fn g_bookmark_file_set_added( - bookmark: *mut GBookmarkFile, - uri: *const c_char, - added: c_long, - ); - #[cfg(feature = "v2_66")] - #[cfg_attr(docsrs, doc(cfg(feature = "v2_66")))] - pub fn g_bookmark_file_set_added_date_time( - bookmark: *mut GBookmarkFile, - uri: *const c_char, - added: *mut GDateTime, - ); - pub fn g_bookmark_file_set_app_info( - bookmark: *mut GBookmarkFile, - uri: *const c_char, - name: *const c_char, - exec: *const c_char, - count: c_int, - stamp: c_long, - error: *mut *mut GError, - ) -> gboolean; - #[cfg(feature = "v2_66")] - #[cfg_attr(docsrs, doc(cfg(feature = "v2_66")))] - pub fn g_bookmark_file_set_application_info( - bookmark: *mut GBookmarkFile, - uri: *const c_char, - name: *const c_char, - exec: *const c_char, - count: c_int, - stamp: *mut GDateTime, - error: *mut *mut GError, - ) -> gboolean; - pub fn g_bookmark_file_set_description( - bookmark: *mut GBookmarkFile, - uri: *const c_char, - description: *const c_char, - ); - pub fn g_bookmark_file_set_groups( - bookmark: *mut GBookmarkFile, - uri: *const c_char, - groups: *mut *const c_char, - length: size_t, - ); - pub fn g_bookmark_file_set_icon( - bookmark: *mut GBookmarkFile, - uri: *const c_char, - href: *const c_char, - mime_type: *const c_char, - ); - pub fn g_bookmark_file_set_is_private( - bookmark: *mut GBookmarkFile, - uri: *const c_char, - is_private: gboolean, - ); - pub fn g_bookmark_file_set_mime_type( - bookmark: *mut GBookmarkFile, - uri: *const c_char, - mime_type: *const c_char, - ); - pub fn g_bookmark_file_set_modified( - bookmark: *mut GBookmarkFile, - uri: *const c_char, - modified: c_long, - ); - #[cfg(feature = "v2_66")] - #[cfg_attr(docsrs, doc(cfg(feature = "v2_66")))] - pub fn g_bookmark_file_set_modified_date_time( - bookmark: *mut GBookmarkFile, - uri: *const c_char, - modified: *mut GDateTime, - ); - pub fn g_bookmark_file_set_title( - bookmark: *mut GBookmarkFile, - uri: *const c_char, - title: *const c_char, - ); - pub fn g_bookmark_file_set_visited( - bookmark: *mut GBookmarkFile, - uri: *const c_char, - visited: c_long, - ); - #[cfg(feature = "v2_66")] - #[cfg_attr(docsrs, doc(cfg(feature = "v2_66")))] - pub fn g_bookmark_file_set_visited_date_time( - bookmark: *mut GBookmarkFile, - uri: *const c_char, - visited: *mut GDateTime, - ); - pub fn g_bookmark_file_to_data( - bookmark: *mut GBookmarkFile, - length: *mut size_t, - error: *mut *mut GError, - ) -> *mut u8; - pub fn g_bookmark_file_to_file( - bookmark: *mut GBookmarkFile, - filename: *const c_char, - error: *mut *mut GError, - ) -> gboolean; + pub fn g_bookmark_file_load_from_data(bookmark: *mut GBookmarkFile, data: *const u8, length: size_t, error: *mut *mut GError) -> gboolean; + pub fn g_bookmark_file_load_from_data_dirs(bookmark: *mut GBookmarkFile, file: *const c_char, full_path: *mut *mut c_char, error: *mut *mut GError) -> gboolean; + pub fn g_bookmark_file_load_from_file(bookmark: *mut GBookmarkFile, filename: *const c_char, error: *mut *mut GError) -> gboolean; + pub fn g_bookmark_file_move_item(bookmark: *mut GBookmarkFile, old_uri: *const c_char, new_uri: *const c_char, error: *mut *mut GError) -> gboolean; + pub fn g_bookmark_file_remove_application(bookmark: *mut GBookmarkFile, uri: *const c_char, name: *const c_char, error: *mut *mut GError) -> gboolean; + pub fn g_bookmark_file_remove_group(bookmark: *mut GBookmarkFile, uri: *const c_char, group: *const c_char, error: *mut *mut GError) -> gboolean; + pub fn g_bookmark_file_remove_item(bookmark: *mut GBookmarkFile, uri: *const c_char, error: *mut *mut GError) -> gboolean; + pub fn g_bookmark_file_set_added(bookmark: *mut GBookmarkFile, uri: *const c_char, added: time_t); + #[cfg(feature = "v2_66")] + #[cfg_attr(docsrs, doc(cfg(feature = "v2_66")))] + pub fn g_bookmark_file_set_added_date_time(bookmark: *mut GBookmarkFile, uri: *const c_char, added: *mut GDateTime); + pub fn g_bookmark_file_set_app_info(bookmark: *mut GBookmarkFile, uri: *const c_char, name: *const c_char, exec: *const c_char, count: c_int, stamp: time_t, error: *mut *mut GError) -> gboolean; + #[cfg(feature = "v2_66")] + #[cfg_attr(docsrs, doc(cfg(feature = "v2_66")))] + pub fn g_bookmark_file_set_application_info(bookmark: *mut GBookmarkFile, uri: *const c_char, name: *const c_char, exec: *const c_char, count: c_int, stamp: *mut GDateTime, error: *mut *mut GError) -> gboolean; + pub fn g_bookmark_file_set_description(bookmark: *mut GBookmarkFile, uri: *const c_char, description: *const c_char); + pub fn g_bookmark_file_set_groups(bookmark: *mut GBookmarkFile, uri: *const c_char, groups: *mut *const c_char, length: size_t); + pub fn g_bookmark_file_set_icon(bookmark: *mut GBookmarkFile, uri: *const c_char, href: *const c_char, mime_type: *const c_char); + pub fn g_bookmark_file_set_is_private(bookmark: *mut GBookmarkFile, uri: *const c_char, is_private: gboolean); + pub fn g_bookmark_file_set_mime_type(bookmark: *mut GBookmarkFile, uri: *const c_char, mime_type: *const c_char); + pub fn g_bookmark_file_set_modified(bookmark: *mut GBookmarkFile, uri: *const c_char, modified: time_t); + #[cfg(feature = "v2_66")] + #[cfg_attr(docsrs, doc(cfg(feature = "v2_66")))] + pub fn g_bookmark_file_set_modified_date_time(bookmark: *mut GBookmarkFile, uri: *const c_char, modified: *mut GDateTime); + pub fn g_bookmark_file_set_title(bookmark: *mut GBookmarkFile, uri: *const c_char, title: *const c_char); + pub fn g_bookmark_file_set_visited(bookmark: *mut GBookmarkFile, uri: *const c_char, visited: time_t); + #[cfg(feature = "v2_66")] + #[cfg_attr(docsrs, doc(cfg(feature = "v2_66")))] + pub fn g_bookmark_file_set_visited_date_time(bookmark: *mut GBookmarkFile, uri: *const c_char, visited: *mut GDateTime); + pub fn g_bookmark_file_to_data(bookmark: *mut GBookmarkFile, length: *mut size_t, error: *mut *mut GError) -> *mut u8; + pub fn g_bookmark_file_to_file(bookmark: *mut GBookmarkFile, filename: *const c_char, error: *mut *mut GError) -> gboolean; pub fn g_bookmark_file_error_quark() -> GQuark; //========================================================================= // GByteArray //========================================================================= pub fn g_byte_array_get_type() -> GType; - pub fn g_byte_array_append( - array: *mut GByteArray, - data: *const u8, - len: c_uint, - ) -> *mut GByteArray; + pub fn g_byte_array_append(array: *mut GByteArray, data: *const u8, len: c_uint) -> *mut GByteArray; pub fn g_byte_array_free(array: *mut GByteArray, free_segment: gboolean) -> *mut u8; pub fn g_byte_array_free_to_bytes(array: *mut GByteArray) -> *mut GBytes; pub fn g_byte_array_new() -> *mut GByteArray; pub fn g_byte_array_new_take(data: *mut u8, len: size_t) -> *mut GByteArray; - pub fn g_byte_array_prepend( - array: *mut GByteArray, - data: *const u8, - len: c_uint, - ) -> *mut GByteArray; + pub fn g_byte_array_prepend(array: *mut GByteArray, data: *const u8, len: c_uint) -> *mut GByteArray; pub fn g_byte_array_ref(array: *mut GByteArray) -> *mut GByteArray; pub fn g_byte_array_remove_index(array: *mut GByteArray, index_: c_uint) -> *mut GByteArray; - pub fn g_byte_array_remove_index_fast( - array: *mut GByteArray, - index_: c_uint, - ) -> *mut GByteArray; - pub fn g_byte_array_remove_range( - array: *mut GByteArray, - index_: c_uint, - length: c_uint, - ) -> *mut GByteArray; + pub fn g_byte_array_remove_index_fast(array: *mut GByteArray, index_: c_uint) -> *mut GByteArray; + pub fn g_byte_array_remove_range(array: *mut GByteArray, index_: c_uint, length: c_uint) -> *mut GByteArray; pub fn g_byte_array_set_size(array: *mut GByteArray, length: c_uint) -> *mut GByteArray; pub fn g_byte_array_sized_new(reserved_size: c_uint) -> *mut GByteArray; pub fn g_byte_array_sort(array: *mut GByteArray, compare_func: GCompareFunc); - pub fn g_byte_array_sort_with_data( - array: *mut GByteArray, - compare_func: GCompareDataFunc, - user_data: gpointer, - ); + pub fn g_byte_array_sort_with_data(array: *mut GByteArray, compare_func: GCompareDataFunc, user_data: gpointer); #[cfg(feature = "v2_64")] #[cfg_attr(docsrs, doc(cfg(feature = "v2_64")))] pub fn g_byte_array_steal(array: *mut GByteArray, len: *mut size_t) -> *mut u8; @@ -3179,106 +2557,43 @@ extern "C" { pub fn g_bytes_new(data: gconstpointer, size: size_t) -> *mut GBytes; pub fn g_bytes_new_static(data: gconstpointer, size: size_t) -> *mut GBytes; pub fn g_bytes_new_take(data: gpointer, size: size_t) -> *mut GBytes; - pub fn g_bytes_new_with_free_func( - data: gconstpointer, - size: size_t, - free_func: GDestroyNotify, - user_data: gpointer, - ) -> *mut GBytes; + pub fn g_bytes_new_with_free_func(data: gconstpointer, size: size_t, free_func: GDestroyNotify, user_data: gpointer) -> *mut GBytes; pub fn g_bytes_compare(bytes1: gconstpointer, bytes2: gconstpointer) -> c_int; pub fn g_bytes_equal(bytes1: gconstpointer, bytes2: gconstpointer) -> gboolean; pub fn g_bytes_get_data(bytes: *mut GBytes, size: *mut size_t) -> gconstpointer; #[cfg(feature = "v2_70")] #[cfg_attr(docsrs, doc(cfg(feature = "v2_70")))] - pub fn g_bytes_get_region( - bytes: *mut GBytes, - element_size: size_t, - offset: size_t, - n_elements: size_t, - ) -> gconstpointer; + pub fn g_bytes_get_region(bytes: *mut GBytes, element_size: size_t, offset: size_t, n_elements: size_t) -> gconstpointer; pub fn g_bytes_get_size(bytes: *mut GBytes) -> size_t; pub fn g_bytes_hash(bytes: gconstpointer) -> c_uint; - pub fn g_bytes_new_from_bytes( - bytes: *mut GBytes, - offset: size_t, - length: size_t, - ) -> *mut GBytes; + pub fn g_bytes_new_from_bytes(bytes: *mut GBytes, offset: size_t, length: size_t) -> *mut GBytes; pub fn g_bytes_ref(bytes: *mut GBytes) -> *mut GBytes; pub fn g_bytes_unref(bytes: *mut GBytes); pub fn g_bytes_unref_to_array(bytes: *mut GBytes) -> *mut GByteArray; pub fn g_bytes_unref_to_data(bytes: *mut GBytes, size: *mut size_t) -> gpointer; //========================================================================= - // GCache - //========================================================================= - pub fn g_cache_destroy(cache: *mut GCache); - pub fn g_cache_insert(cache: *mut GCache, key: gpointer) -> gpointer; - pub fn g_cache_key_foreach(cache: *mut GCache, func: GHFunc, user_data: gpointer); - pub fn g_cache_remove(cache: *mut GCache, value: gconstpointer); - pub fn g_cache_value_foreach(cache: *mut GCache, func: GHFunc, user_data: gpointer); - 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; - - //========================================================================= // GChecksum //========================================================================= pub fn g_checksum_get_type() -> GType; pub fn g_checksum_new(checksum_type: GChecksumType) -> *mut GChecksum; pub fn g_checksum_copy(checksum: *const GChecksum) -> *mut GChecksum; pub fn g_checksum_free(checksum: *mut GChecksum); - pub fn g_checksum_get_digest( - checksum: *mut GChecksum, - buffer: *mut u8, - digest_len: *mut size_t, - ); + pub fn g_checksum_get_digest(checksum: *mut GChecksum, buffer: *mut u8, digest_len: *mut size_t); pub fn g_checksum_get_string(checksum: *mut GChecksum) -> *const c_char; pub fn g_checksum_reset(checksum: *mut GChecksum); pub fn g_checksum_update(checksum: *mut GChecksum, data: *const u8, length: ssize_t); pub fn g_checksum_type_get_length(checksum_type: GChecksumType) -> ssize_t; //========================================================================= - // GCompletion - //========================================================================= - pub fn g_completion_add_items(cmp: *mut GCompletion, items: *mut GList); - pub fn g_completion_clear_items(cmp: *mut GCompletion); - pub fn g_completion_complete( - cmp: *mut GCompletion, - prefix: *const c_char, - new_prefix: *mut *mut c_char, - ) -> *mut GList; - pub fn g_completion_complete_utf8( - cmp: *mut GCompletion, - prefix: *const c_char, - new_prefix: *mut *mut c_char, - ) -> *mut GList; - pub fn g_completion_free(cmp: *mut GCompletion); - pub fn g_completion_remove_items(cmp: *mut GCompletion, items: *mut GList); - pub fn g_completion_set_compare(cmp: *mut GCompletion, strncmp_func: GCompletionStrncmpFunc); - pub fn g_completion_new(func: GCompletionFunc) -> *mut GCompletion; - - //========================================================================= // GCond //========================================================================= pub fn g_cond_broadcast(cond: *mut GCond); pub fn g_cond_clear(cond: *mut GCond); - pub fn g_cond_free(cond: *mut GCond); pub fn g_cond_init(cond: *mut GCond); pub fn g_cond_signal(cond: *mut GCond); - pub fn g_cond_timed_wait( - cond: *mut GCond, - mutex: *mut GMutex, - abs_time: *mut GTimeVal, - ) -> gboolean; pub fn g_cond_wait(cond: *mut GCond, mutex: *mut GMutex); pub fn g_cond_wait_until(cond: *mut GCond, mutex: *mut GMutex, end_time: i64) -> gboolean; - pub fn g_cond_new() -> *mut GCond; //========================================================================= // GDate @@ -3314,7 +2629,7 @@ extern "C" { pub fn g_date_set_month(date: *mut GDate, month: GDateMonth); pub fn g_date_set_parse(date: *mut GDate, str: *const c_char); pub fn g_date_set_time(date: *mut GDate, time_: GTime); - pub fn g_date_set_time_t(date: *mut GDate, timet: c_long); + pub fn g_date_set_time_t(date: *mut GDate, timet: time_t); pub fn g_date_set_time_val(date: *mut GDate, timeval: *mut GTimeVal); pub fn g_date_set_year(date: *mut GDate, year: GDateYear); pub fn g_date_subtract_days(date: *mut GDate, n_days: c_uint); @@ -3326,12 +2641,7 @@ extern "C" { pub fn g_date_get_monday_weeks_in_year(year: GDateYear) -> u8; pub fn g_date_get_sunday_weeks_in_year(year: GDateYear) -> u8; pub fn g_date_is_leap_year(year: GDateYear) -> gboolean; - pub fn g_date_strftime( - s: *mut c_char, - slen: size_t, - format: *const c_char, - date: *const GDate, - ) -> size_t; + pub fn g_date_strftime(s: *mut c_char, slen: size_t, format: *const c_char, date: *const GDate) -> size_t; pub fn g_date_valid_day(day: GDateDay) -> gboolean; pub fn g_date_valid_dmy(day: GDateDay, month: GDateMonth, year: GDateYear) -> gboolean; pub fn g_date_valid_julian(julian_date: u32) -> gboolean; @@ -3343,59 +2653,20 @@ extern "C" { // GDateTime //========================================================================= pub fn g_date_time_get_type() -> GType; - pub fn g_date_time_new( - tz: *mut GTimeZone, - year: c_int, - month: c_int, - day: c_int, - hour: c_int, - minute: c_int, - seconds: c_double, - ) -> *mut GDateTime; - pub fn g_date_time_new_from_iso8601( - text: *const c_char, - default_tz: *mut GTimeZone, - ) -> *mut GDateTime; + pub fn g_date_time_new(tz: *mut GTimeZone, year: c_int, month: c_int, day: c_int, hour: c_int, minute: c_int, seconds: c_double) -> *mut GDateTime; + pub fn g_date_time_new_from_iso8601(text: *const c_char, default_tz: *mut GTimeZone) -> *mut GDateTime; pub fn g_date_time_new_from_timeval_local(tv: *const GTimeVal) -> *mut GDateTime; pub fn g_date_time_new_from_timeval_utc(tv: *const GTimeVal) -> *mut GDateTime; pub fn g_date_time_new_from_unix_local(t: i64) -> *mut GDateTime; - #[cfg(feature = "v2_80")] - #[cfg_attr(docsrs, doc(cfg(feature = "v2_80")))] - pub fn g_date_time_new_from_unix_local_usec(usecs: i64) -> *mut GDateTime; pub fn g_date_time_new_from_unix_utc(t: i64) -> *mut GDateTime; - #[cfg(feature = "v2_80")] - #[cfg_attr(docsrs, doc(cfg(feature = "v2_80")))] - pub fn g_date_time_new_from_unix_utc_usec(usecs: i64) -> *mut GDateTime; - pub fn g_date_time_new_local( - year: c_int, - month: c_int, - day: c_int, - hour: c_int, - minute: c_int, - seconds: c_double, - ) -> *mut GDateTime; + pub fn g_date_time_new_local(year: c_int, month: c_int, day: c_int, hour: c_int, minute: c_int, seconds: c_double) -> *mut GDateTime; pub fn g_date_time_new_now(tz: *mut GTimeZone) -> *mut GDateTime; pub fn g_date_time_new_now_local() -> *mut GDateTime; pub fn g_date_time_new_now_utc() -> *mut GDateTime; - pub fn g_date_time_new_utc( - year: c_int, - month: c_int, - day: c_int, - hour: c_int, - minute: c_int, - seconds: c_double, - ) -> *mut GDateTime; + pub fn g_date_time_new_utc(year: c_int, month: c_int, day: c_int, hour: c_int, minute: c_int, seconds: c_double) -> *mut GDateTime; pub fn g_date_time_add(datetime: *mut GDateTime, timespan: GTimeSpan) -> *mut GDateTime; pub fn g_date_time_add_days(datetime: *mut GDateTime, days: c_int) -> *mut GDateTime; - pub fn g_date_time_add_full( - datetime: *mut GDateTime, - years: c_int, - months: c_int, - days: c_int, - hours: c_int, - minutes: c_int, - seconds: c_double, - ) -> *mut GDateTime; + pub fn g_date_time_add_full(datetime: *mut GDateTime, years: c_int, months: c_int, days: c_int, hours: c_int, minutes: c_int, seconds: c_double) -> *mut GDateTime; pub fn g_date_time_add_hours(datetime: *mut GDateTime, hours: c_int) -> *mut GDateTime; pub fn g_date_time_add_minutes(datetime: *mut GDateTime, minutes: c_int) -> *mut GDateTime; pub fn g_date_time_add_months(datetime: *mut GDateTime, months: c_int) -> *mut GDateTime; @@ -3426,12 +2697,7 @@ extern "C" { pub fn g_date_time_get_week_numbering_year(datetime: *mut GDateTime) -> c_int; pub fn g_date_time_get_week_of_year(datetime: *mut GDateTime) -> c_int; pub fn g_date_time_get_year(datetime: *mut GDateTime) -> c_int; - pub fn g_date_time_get_ymd( - datetime: *mut GDateTime, - year: *mut c_int, - month: *mut c_int, - day: *mut c_int, - ); + pub fn g_date_time_get_ymd(datetime: *mut GDateTime, year: *mut c_int, month: *mut c_int, day: *mut c_int); pub fn g_date_time_hash(datetime: gconstpointer) -> c_uint; pub fn g_date_time_is_daylight_savings(datetime: *mut GDateTime) -> gboolean; pub fn g_date_time_ref(datetime: *mut GDateTime) -> *mut GDateTime; @@ -3439,27 +2705,17 @@ extern "C" { pub fn g_date_time_to_timeval(datetime: *mut GDateTime, tv: *mut GTimeVal) -> gboolean; pub fn g_date_time_to_timezone(datetime: *mut GDateTime, tz: *mut GTimeZone) -> *mut GDateTime; pub fn g_date_time_to_unix(datetime: *mut GDateTime) -> i64; - #[cfg(feature = "v2_80")] - #[cfg_attr(docsrs, doc(cfg(feature = "v2_80")))] - pub fn g_date_time_to_unix_usec(datetime: *mut GDateTime) -> i64; pub fn g_date_time_to_utc(datetime: *mut GDateTime) -> *mut GDateTime; pub fn g_date_time_unref(datetime: *mut GDateTime); //========================================================================= // GDir //========================================================================= - pub fn g_dir_get_type() -> GType; - pub fn g_dir_open(path: *const c_char, flags: c_uint, error: *mut *mut GError) -> *mut GDir; pub fn g_dir_close(dir: *mut GDir); pub fn g_dir_read_name(dir: *mut GDir) -> *const c_char; - #[cfg(feature = "v2_80")] - #[cfg_attr(docsrs, doc(cfg(feature = "v2_80")))] - pub fn g_dir_ref(dir: *mut GDir) -> *mut GDir; pub fn g_dir_rewind(dir: *mut GDir); - #[cfg(feature = "v2_80")] - #[cfg_attr(docsrs, doc(cfg(feature = "v2_80")))] - pub fn g_dir_unref(dir: *mut GDir); pub fn g_dir_make_tmp(tmpl: *const c_char, error: *mut *mut GError) -> *mut c_char; + pub fn g_dir_open(path: *const c_char, flags: c_uint, error: *mut *mut GError) -> *mut GDir; //========================================================================= // GError @@ -3473,22 +2729,10 @@ extern "C" { pub fn g_error_matches(error: *const GError, domain: GQuark, code: c_int) -> gboolean; #[cfg(feature = "v2_68")] #[cfg_attr(docsrs, doc(cfg(feature = "v2_68")))] - pub fn g_error_domain_register( - error_type_name: *const c_char, - error_type_private_size: size_t, - error_type_init: GErrorInitFunc, - error_type_copy: GErrorCopyFunc, - error_type_clear: GErrorClearFunc, - ) -> GQuark; + pub fn g_error_domain_register(error_type_name: *const c_char, error_type_private_size: size_t, error_type_init: GErrorInitFunc, error_type_copy: GErrorCopyFunc, error_type_clear: GErrorClearFunc) -> GQuark; #[cfg(feature = "v2_68")] #[cfg_attr(docsrs, doc(cfg(feature = "v2_68")))] - pub fn g_error_domain_register_static( - error_type_name: *const c_char, - error_type_private_size: size_t, - error_type_init: GErrorInitFunc, - error_type_copy: GErrorCopyFunc, - error_type_clear: GErrorClearFunc, - ) -> GQuark; + pub fn g_error_domain_register_static(error_type_name: *const c_char, error_type_private_size: size_t, error_type_init: GErrorInitFunc, error_type_copy: GErrorCopyFunc, error_type_clear: GErrorClearFunc) -> GQuark; //========================================================================= // GHashTable @@ -3497,27 +2741,12 @@ extern "C" { pub fn g_hash_table_add(hash_table: *mut GHashTable, key: gpointer) -> gboolean; pub fn g_hash_table_contains(hash_table: *mut GHashTable, key: gconstpointer) -> gboolean; pub fn g_hash_table_destroy(hash_table: *mut GHashTable); - pub fn g_hash_table_find( - hash_table: *mut GHashTable, - predicate: GHRFunc, - user_data: gpointer, - ) -> gpointer; + pub fn g_hash_table_find(hash_table: *mut GHashTable, predicate: GHRFunc, user_data: gpointer) -> gpointer; pub fn g_hash_table_foreach(hash_table: *mut GHashTable, func: GHFunc, user_data: gpointer); - pub fn g_hash_table_foreach_remove( - hash_table: *mut GHashTable, - func: GHRFunc, - user_data: gpointer, - ) -> c_uint; - pub fn g_hash_table_foreach_steal( - hash_table: *mut GHashTable, - func: GHRFunc, - user_data: gpointer, - ) -> c_uint; + pub fn g_hash_table_foreach_remove(hash_table: *mut GHashTable, func: GHRFunc, user_data: gpointer) -> c_uint; + pub fn g_hash_table_foreach_steal(hash_table: *mut GHashTable, func: GHRFunc, user_data: gpointer) -> c_uint; pub fn g_hash_table_get_keys(hash_table: *mut GHashTable) -> *mut GList; - pub fn g_hash_table_get_keys_as_array( - hash_table: *mut GHashTable, - length: *mut c_uint, - ) -> *mut gpointer; + pub fn g_hash_table_get_keys_as_array(hash_table: *mut GHashTable, length: *mut c_uint) -> *mut gpointer; #[cfg(feature = "v2_76")] #[cfg_attr(docsrs, doc(cfg(feature = "v2_76")))] pub fn g_hash_table_get_keys_as_ptr_array(hash_table: *mut GHashTable) -> *mut GPtrArray; @@ -3525,36 +2754,18 @@ extern "C" { #[cfg(feature = "v2_76")] #[cfg_attr(docsrs, doc(cfg(feature = "v2_76")))] pub fn g_hash_table_get_values_as_ptr_array(hash_table: *mut GHashTable) -> *mut GPtrArray; - pub fn g_hash_table_insert( - hash_table: *mut GHashTable, - key: gpointer, - value: gpointer, - ) -> gboolean; + pub fn g_hash_table_insert(hash_table: *mut GHashTable, key: gpointer, value: gpointer) -> gboolean; pub fn g_hash_table_lookup(hash_table: *mut GHashTable, key: gconstpointer) -> gpointer; - pub fn g_hash_table_lookup_extended( - hash_table: *mut GHashTable, - lookup_key: gconstpointer, - orig_key: *mut gpointer, - value: *mut gpointer, - ) -> gboolean; + pub fn g_hash_table_lookup_extended(hash_table: *mut GHashTable, lookup_key: gconstpointer, orig_key: *mut gpointer, value: *mut gpointer) -> gboolean; pub fn g_hash_table_new(hash_func: GHashFunc, key_equal_func: GEqualFunc) -> *mut GHashTable; - pub fn g_hash_table_new_full( - hash_func: GHashFunc, - key_equal_func: GEqualFunc, - key_destroy_func: GDestroyNotify, - value_destroy_func: GDestroyNotify, - ) -> *mut GHashTable; + pub fn g_hash_table_new_full(hash_func: GHashFunc, key_equal_func: GEqualFunc, key_destroy_func: GDestroyNotify, value_destroy_func: GDestroyNotify) -> *mut GHashTable; #[cfg(feature = "v2_72")] #[cfg_attr(docsrs, doc(cfg(feature = "v2_72")))] pub fn g_hash_table_new_similar(other_hash_table: *mut GHashTable) -> *mut GHashTable; pub fn g_hash_table_ref(hash_table: *mut GHashTable) -> *mut GHashTable; pub fn g_hash_table_remove(hash_table: *mut GHashTable, key: gconstpointer) -> gboolean; pub fn g_hash_table_remove_all(hash_table: *mut GHashTable); - pub fn g_hash_table_replace( - hash_table: *mut GHashTable, - key: gpointer, - value: gpointer, - ) -> gboolean; + pub fn g_hash_table_replace(hash_table: *mut GHashTable, key: gpointer, value: gpointer) -> gboolean; pub fn g_hash_table_size(hash_table: *mut GHashTable) -> c_uint; pub fn g_hash_table_steal(hash_table: *mut GHashTable, key: gconstpointer) -> gboolean; pub fn g_hash_table_steal_all(hash_table: *mut GHashTable); @@ -3566,12 +2777,7 @@ extern "C" { pub fn g_hash_table_steal_all_values(hash_table: *mut GHashTable) -> *mut GPtrArray; #[cfg(feature = "v2_58")] #[cfg_attr(docsrs, doc(cfg(feature = "v2_58")))] - pub fn g_hash_table_steal_extended( - hash_table: *mut GHashTable, - lookup_key: gconstpointer, - stolen_key: *mut gpointer, - stolen_value: *mut gpointer, - ) -> gboolean; + pub fn g_hash_table_steal_extended(hash_table: *mut GHashTable, lookup_key: gconstpointer, stolen_key: *mut gpointer, stolen_value: *mut gpointer) -> gboolean; pub fn g_hash_table_unref(hash_table: *mut GHashTable); //========================================================================= @@ -3579,11 +2785,7 @@ extern "C" { //========================================================================= pub fn g_hash_table_iter_get_hash_table(iter: *mut GHashTableIter) -> *mut GHashTable; pub fn g_hash_table_iter_init(iter: *mut GHashTableIter, hash_table: *mut GHashTable); - pub fn g_hash_table_iter_next( - iter: *mut GHashTableIter, - key: *mut gpointer, - value: *mut gpointer, - ) -> gboolean; + pub fn g_hash_table_iter_next(iter: *mut GHashTableIter, key: *mut gpointer, value: *mut gpointer) -> gboolean; pub fn g_hash_table_iter_remove(iter: *mut GHashTableIter); pub fn g_hash_table_iter_replace(iter: *mut GHashTableIter, value: gpointer); pub fn g_hash_table_iter_steal(iter: *mut GHashTableIter); @@ -3591,14 +2793,13 @@ extern "C" { //========================================================================= // GHmac //========================================================================= - pub fn g_hmac_get_type() -> GType; - pub fn g_hmac_new(digest_type: GChecksumType, key: *const u8, key_len: size_t) -> *mut GHmac; pub fn g_hmac_copy(hmac: *const GHmac) -> *mut GHmac; pub fn g_hmac_get_digest(hmac: *mut GHmac, buffer: *mut u8, digest_len: *mut size_t); pub fn g_hmac_get_string(hmac: *mut GHmac) -> *const c_char; pub fn g_hmac_ref(hmac: *mut GHmac) -> *mut GHmac; pub fn g_hmac_unref(hmac: *mut GHmac); pub fn g_hmac_update(hmac: *mut GHmac, data: *const u8, length: ssize_t); + pub fn g_hmac_new(digest_type: GChecksumType, key: *const u8, key_len: size_t) -> *mut GHmac; //========================================================================= // GHook @@ -3607,42 +2808,16 @@ extern "C" { pub fn g_hook_alloc(hook_list: *mut GHookList) -> *mut GHook; pub fn g_hook_destroy(hook_list: *mut GHookList, hook_id: c_ulong) -> gboolean; pub fn g_hook_destroy_link(hook_list: *mut GHookList, hook: *mut GHook); - pub fn g_hook_find( - hook_list: *mut GHookList, - need_valids: gboolean, - func: GHookFindFunc, - data: gpointer, - ) -> *mut GHook; - pub fn g_hook_find_data( - hook_list: *mut GHookList, - need_valids: gboolean, - data: gpointer, - ) -> *mut GHook; - pub fn g_hook_find_func( - hook_list: *mut GHookList, - need_valids: gboolean, - func: gpointer, - ) -> *mut GHook; - pub fn g_hook_find_func_data( - hook_list: *mut GHookList, - need_valids: gboolean, - func: gpointer, - data: gpointer, - ) -> *mut GHook; + pub fn g_hook_find(hook_list: *mut GHookList, need_valids: gboolean, func: GHookFindFunc, data: gpointer) -> *mut GHook; + pub fn g_hook_find_data(hook_list: *mut GHookList, need_valids: gboolean, data: gpointer) -> *mut GHook; + pub fn g_hook_find_func(hook_list: *mut GHookList, need_valids: gboolean, func: gpointer) -> *mut GHook; + pub fn g_hook_find_func_data(hook_list: *mut GHookList, need_valids: gboolean, func: gpointer, data: gpointer) -> *mut GHook; pub fn g_hook_first_valid(hook_list: *mut GHookList, may_be_in_call: gboolean) -> *mut GHook; pub fn g_hook_free(hook_list: *mut GHookList, hook: *mut GHook); pub fn g_hook_get(hook_list: *mut GHookList, hook_id: c_ulong) -> *mut GHook; pub fn g_hook_insert_before(hook_list: *mut GHookList, sibling: *mut GHook, hook: *mut GHook); - pub fn g_hook_insert_sorted( - hook_list: *mut GHookList, - hook: *mut GHook, - func: GHookCompareFunc, - ); - pub fn g_hook_next_valid( - hook_list: *mut GHookList, - hook: *mut GHook, - may_be_in_call: gboolean, - ) -> *mut GHook; + pub fn g_hook_insert_sorted(hook_list: *mut GHookList, hook: *mut GHook, func: GHookCompareFunc); + pub fn g_hook_next_valid(hook_list: *mut GHookList, hook: *mut GHook, may_be_in_call: gboolean) -> *mut GHook; pub fn g_hook_prepend(hook_list: *mut GHookList, hook: *mut GHook); pub fn g_hook_ref(hook_list: *mut GHookList, hook: *mut GHook) -> *mut GHook; pub fn g_hook_unref(hook_list: *mut GHookList, hook: *mut GHook); @@ -3654,18 +2829,8 @@ extern "C" { pub fn g_hook_list_init(hook_list: *mut GHookList, hook_size: c_uint); pub fn g_hook_list_invoke(hook_list: *mut GHookList, may_recurse: gboolean); pub fn g_hook_list_invoke_check(hook_list: *mut GHookList, may_recurse: gboolean); - pub fn g_hook_list_marshal( - hook_list: *mut GHookList, - may_recurse: gboolean, - marshaller: GHookMarshaller, - marshal_data: gpointer, - ); - pub fn g_hook_list_marshal_check( - hook_list: *mut GHookList, - may_recurse: gboolean, - marshaller: GHookCheckMarshaller, - marshal_data: gpointer, - ); + pub fn g_hook_list_marshal(hook_list: *mut GHookList, may_recurse: gboolean, marshaller: GHookMarshaller, marshal_data: gpointer); + pub fn g_hook_list_marshal_check(hook_list: *mut GHookList, may_recurse: gboolean, marshaller: GHookCheckMarshaller, marshal_data: gpointer); //========================================================================= // GIConv @@ -3677,11 +2842,7 @@ extern "C" { // GIOChannel //========================================================================= pub fn g_io_channel_get_type() -> GType; - pub fn g_io_channel_new_file( - filename: *const c_char, - mode: *const c_char, - error: *mut *mut GError, - ) -> *mut GIOChannel; + pub fn g_io_channel_new_file(filename: *const c_char, mode: *const c_char, error: *mut *mut GError) -> *mut GIOChannel; pub fn g_io_channel_unix_new(fd: c_int) -> *mut GIOChannel; pub fn g_io_channel_close(channel: *mut GIOChannel); pub fn g_io_channel_flush(channel: *mut GIOChannel, error: *mut *mut GError) -> GIOStatus; @@ -3691,99 +2852,29 @@ extern "C" { pub fn g_io_channel_get_close_on_unref(channel: *mut GIOChannel) -> gboolean; pub fn g_io_channel_get_encoding(channel: *mut GIOChannel) -> *const c_char; pub fn g_io_channel_get_flags(channel: *mut GIOChannel) -> GIOFlags; - pub fn g_io_channel_get_line_term( - channel: *mut GIOChannel, - length: *mut c_int, - ) -> *const c_char; + pub fn g_io_channel_get_line_term(channel: *mut GIOChannel, length: *mut c_int) -> *const c_char; pub fn g_io_channel_init(channel: *mut GIOChannel); - pub fn g_io_channel_read( - channel: *mut GIOChannel, - buf: *mut c_char, - count: size_t, - bytes_read: *mut size_t, - ) -> GIOError; - pub fn g_io_channel_read_chars( - channel: *mut GIOChannel, - buf: *mut u8, - count: size_t, - bytes_read: *mut size_t, - error: *mut *mut GError, - ) -> GIOStatus; - pub fn g_io_channel_read_line( - channel: *mut GIOChannel, - str_return: *mut *mut c_char, - length: *mut size_t, - terminator_pos: *mut size_t, - error: *mut *mut GError, - ) -> GIOStatus; - pub fn g_io_channel_read_line_string( - channel: *mut GIOChannel, - buffer: *mut GString, - terminator_pos: *mut size_t, - error: *mut *mut GError, - ) -> GIOStatus; - pub fn g_io_channel_read_to_end( - channel: *mut GIOChannel, - str_return: *mut *mut u8, - length: *mut size_t, - error: *mut *mut GError, - ) -> GIOStatus; - pub fn g_io_channel_read_unichar( - channel: *mut GIOChannel, - thechar: *mut u32, - error: *mut *mut GError, - ) -> GIOStatus; + pub fn g_io_channel_read(channel: *mut GIOChannel, buf: *mut c_char, count: size_t, bytes_read: *mut size_t) -> GIOError; + pub fn g_io_channel_read_chars(channel: *mut GIOChannel, buf: *mut u8, count: size_t, bytes_read: *mut size_t, error: *mut *mut GError) -> GIOStatus; + pub fn g_io_channel_read_line(channel: *mut GIOChannel, str_return: *mut *mut c_char, length: *mut size_t, terminator_pos: *mut size_t, error: *mut *mut GError) -> GIOStatus; + pub fn g_io_channel_read_line_string(channel: *mut GIOChannel, buffer: *mut GString, terminator_pos: *mut size_t, error: *mut *mut GError) -> GIOStatus; + pub fn g_io_channel_read_to_end(channel: *mut GIOChannel, str_return: *mut *mut u8, length: *mut size_t, error: *mut *mut GError) -> GIOStatus; + pub fn g_io_channel_read_unichar(channel: *mut GIOChannel, thechar: *mut u32, error: *mut *mut GError) -> GIOStatus; pub fn g_io_channel_ref(channel: *mut GIOChannel) -> *mut GIOChannel; pub fn g_io_channel_seek(channel: *mut GIOChannel, offset: i64, type_: GSeekType) -> GIOError; - pub fn g_io_channel_seek_position( - channel: *mut GIOChannel, - offset: i64, - type_: GSeekType, - error: *mut *mut GError, - ) -> GIOStatus; + pub fn g_io_channel_seek_position(channel: *mut GIOChannel, offset: i64, type_: GSeekType, error: *mut *mut GError) -> GIOStatus; pub fn g_io_channel_set_buffer_size(channel: *mut GIOChannel, size: size_t); pub fn g_io_channel_set_buffered(channel: *mut GIOChannel, buffered: gboolean); pub fn g_io_channel_set_close_on_unref(channel: *mut GIOChannel, do_close: gboolean); - pub fn g_io_channel_set_encoding( - channel: *mut GIOChannel, - encoding: *const c_char, - error: *mut *mut GError, - ) -> GIOStatus; - pub fn g_io_channel_set_flags( - channel: *mut GIOChannel, - flags: GIOFlags, - error: *mut *mut GError, - ) -> GIOStatus; - pub fn g_io_channel_set_line_term( - channel: *mut GIOChannel, - line_term: *const c_char, - length: c_int, - ); - pub fn g_io_channel_shutdown( - channel: *mut GIOChannel, - flush: gboolean, - error: *mut *mut GError, - ) -> GIOStatus; + pub fn g_io_channel_set_encoding(channel: *mut GIOChannel, encoding: *const c_char, error: *mut *mut GError) -> GIOStatus; + pub fn g_io_channel_set_flags(channel: *mut GIOChannel, flags: GIOFlags, error: *mut *mut GError) -> GIOStatus; + pub fn g_io_channel_set_line_term(channel: *mut GIOChannel, line_term: *const c_char, length: c_int); + pub fn g_io_channel_shutdown(channel: *mut GIOChannel, flush: gboolean, error: *mut *mut GError) -> GIOStatus; pub fn g_io_channel_unix_get_fd(channel: *mut GIOChannel) -> c_int; pub fn g_io_channel_unref(channel: *mut GIOChannel); - pub fn g_io_channel_write( - channel: *mut GIOChannel, - buf: *const c_char, - count: size_t, - bytes_written: *mut size_t, - ) -> GIOError; - pub fn g_io_channel_write_chars( - channel: *mut GIOChannel, - buf: *const u8, - count: ssize_t, - bytes_written: *mut size_t, - error: *mut *mut GError, - ) -> GIOStatus; - pub fn g_io_channel_write_unichar( - channel: *mut GIOChannel, - thechar: u32, - error: *mut *mut GError, - ) -> GIOStatus; + pub fn g_io_channel_write(channel: *mut GIOChannel, buf: *const c_char, count: size_t, bytes_written: *mut size_t) -> GIOError; + pub fn g_io_channel_write_chars(channel: *mut GIOChannel, buf: *const u8, count: ssize_t, bytes_written: *mut size_t, error: *mut *mut GError) -> GIOStatus; + pub fn g_io_channel_write_unichar(channel: *mut GIOChannel, thechar: u32, error: *mut *mut GError) -> GIOStatus; pub fn g_io_channel_error_from_errno(en: c_int) -> GIOChannelError; pub fn g_io_channel_error_quark() -> GQuark; @@ -3793,273 +2884,52 @@ extern "C" { pub fn g_key_file_get_type() -> GType; pub fn g_key_file_new() -> *mut GKeyFile; pub fn g_key_file_free(key_file: *mut GKeyFile); - pub fn g_key_file_get_boolean( - key_file: *mut GKeyFile, - group_name: *const c_char, - key: *const c_char, - error: *mut *mut GError, - ) -> gboolean; - pub fn g_key_file_get_boolean_list( - key_file: *mut GKeyFile, - group_name: *const c_char, - key: *const c_char, - length: *mut size_t, - error: *mut *mut GError, - ) -> *mut gboolean; - pub fn g_key_file_get_comment( - key_file: *mut GKeyFile, - group_name: *const c_char, - key: *const c_char, - error: *mut *mut GError, - ) -> *mut c_char; - pub fn g_key_file_get_double( - key_file: *mut GKeyFile, - group_name: *const c_char, - key: *const c_char, - error: *mut *mut GError, - ) -> c_double; - pub fn g_key_file_get_double_list( - key_file: *mut GKeyFile, - group_name: *const c_char, - key: *const c_char, - length: *mut size_t, - error: *mut *mut GError, - ) -> *mut c_double; + pub fn g_key_file_get_boolean(key_file: *mut GKeyFile, group_name: *const c_char, key: *const c_char, error: *mut *mut GError) -> gboolean; + pub fn g_key_file_get_boolean_list(key_file: *mut GKeyFile, group_name: *const c_char, key: *const c_char, length: *mut size_t, error: *mut *mut GError) -> *mut gboolean; + pub fn g_key_file_get_comment(key_file: *mut GKeyFile, group_name: *const c_char, key: *const c_char, error: *mut *mut GError) -> *mut c_char; + pub fn g_key_file_get_double(key_file: *mut GKeyFile, group_name: *const c_char, key: *const c_char, error: *mut *mut GError) -> c_double; + pub fn g_key_file_get_double_list(key_file: *mut GKeyFile, group_name: *const c_char, key: *const c_char, length: *mut size_t, error: *mut *mut GError) -> *mut c_double; pub fn g_key_file_get_groups(key_file: *mut GKeyFile, length: *mut size_t) -> *mut *mut c_char; - pub fn g_key_file_get_int64( - key_file: *mut GKeyFile, - group_name: *const c_char, - key: *const c_char, - error: *mut *mut GError, - ) -> i64; - pub fn g_key_file_get_integer( - key_file: *mut GKeyFile, - group_name: *const c_char, - key: *const c_char, - error: *mut *mut GError, - ) -> c_int; - pub fn g_key_file_get_integer_list( - key_file: *mut GKeyFile, - group_name: *const c_char, - key: *const c_char, - length: *mut size_t, - error: *mut *mut GError, - ) -> *mut c_int; - pub fn g_key_file_get_keys( - key_file: *mut GKeyFile, - group_name: *const c_char, - length: *mut size_t, - error: *mut *mut GError, - ) -> *mut *mut c_char; - pub fn g_key_file_get_locale_for_key( - key_file: *mut GKeyFile, - group_name: *const c_char, - key: *const c_char, - locale: *const c_char, - ) -> *mut c_char; - pub fn g_key_file_get_locale_string( - key_file: *mut GKeyFile, - group_name: *const c_char, - key: *const c_char, - locale: *const c_char, - error: *mut *mut GError, - ) -> *mut c_char; - pub fn g_key_file_get_locale_string_list( - key_file: *mut GKeyFile, - group_name: *const c_char, - key: *const c_char, - locale: *const c_char, - length: *mut size_t, - error: *mut *mut GError, - ) -> *mut *mut c_char; + pub fn g_key_file_get_int64(key_file: *mut GKeyFile, group_name: *const c_char, key: *const c_char, error: *mut *mut GError) -> i64; + pub fn g_key_file_get_integer(key_file: *mut GKeyFile, group_name: *const c_char, key: *const c_char, error: *mut *mut GError) -> c_int; + pub fn g_key_file_get_integer_list(key_file: *mut GKeyFile, group_name: *const c_char, key: *const c_char, length: *mut size_t, error: *mut *mut GError) -> *mut c_int; + pub fn g_key_file_get_keys(key_file: *mut GKeyFile, group_name: *const c_char, length: *mut size_t, error: *mut *mut GError) -> *mut *mut c_char; + pub fn g_key_file_get_locale_for_key(key_file: *mut GKeyFile, group_name: *const c_char, key: *const c_char, locale: *const c_char) -> *mut c_char; + pub fn g_key_file_get_locale_string(key_file: *mut GKeyFile, group_name: *const c_char, key: *const c_char, locale: *const c_char, error: *mut *mut GError) -> *mut c_char; + pub fn g_key_file_get_locale_string_list(key_file: *mut GKeyFile, group_name: *const c_char, key: *const c_char, locale: *const c_char, length: *mut size_t, error: *mut *mut GError) -> *mut *mut c_char; pub fn g_key_file_get_start_group(key_file: *mut GKeyFile) -> *mut c_char; - pub fn g_key_file_get_string( - key_file: *mut GKeyFile, - group_name: *const c_char, - key: *const c_char, - error: *mut *mut GError, - ) -> *mut c_char; - pub fn g_key_file_get_string_list( - key_file: *mut GKeyFile, - group_name: *const c_char, - key: *const c_char, - length: *mut size_t, - error: *mut *mut GError, - ) -> *mut *mut c_char; - pub fn g_key_file_get_uint64( - key_file: *mut GKeyFile, - group_name: *const c_char, - key: *const c_char, - error: *mut *mut GError, - ) -> u64; - pub fn g_key_file_get_value( - key_file: *mut GKeyFile, - group_name: *const c_char, - key: *const c_char, - error: *mut *mut GError, - ) -> *mut c_char; + pub fn g_key_file_get_string(key_file: *mut GKeyFile, group_name: *const c_char, key: *const c_char, error: *mut *mut GError) -> *mut c_char; + pub fn g_key_file_get_string_list(key_file: *mut GKeyFile, group_name: *const c_char, key: *const c_char, length: *mut size_t, error: *mut *mut GError) -> *mut *mut c_char; + pub fn g_key_file_get_uint64(key_file: *mut GKeyFile, group_name: *const c_char, key: *const c_char, error: *mut *mut GError) -> u64; + pub fn g_key_file_get_value(key_file: *mut GKeyFile, group_name: *const c_char, key: *const c_char, error: *mut *mut GError) -> *mut c_char; pub fn g_key_file_has_group(key_file: *mut GKeyFile, group_name: *const c_char) -> gboolean; - pub fn g_key_file_has_key( - key_file: *mut GKeyFile, - group_name: *const c_char, - key: *const c_char, - error: *mut *mut GError, - ) -> gboolean; - pub fn g_key_file_load_from_bytes( - key_file: *mut GKeyFile, - bytes: *mut GBytes, - flags: GKeyFileFlags, - error: *mut *mut GError, - ) -> gboolean; - pub fn g_key_file_load_from_data( - key_file: *mut GKeyFile, - data: *const c_char, - length: size_t, - flags: GKeyFileFlags, - error: *mut *mut GError, - ) -> gboolean; - pub fn g_key_file_load_from_data_dirs( - key_file: *mut GKeyFile, - file: *const c_char, - full_path: *mut *mut c_char, - flags: GKeyFileFlags, - error: *mut *mut GError, - ) -> gboolean; - pub fn g_key_file_load_from_dirs( - key_file: *mut GKeyFile, - file: *const c_char, - search_dirs: *mut *const c_char, - full_path: *mut *mut c_char, - flags: GKeyFileFlags, - error: *mut *mut GError, - ) -> gboolean; - pub fn g_key_file_load_from_file( - key_file: *mut GKeyFile, - file: *const c_char, - flags: GKeyFileFlags, - error: *mut *mut GError, - ) -> gboolean; + pub fn g_key_file_has_key(key_file: *mut GKeyFile, group_name: *const c_char, key: *const c_char, error: *mut *mut GError) -> gboolean; + pub fn g_key_file_load_from_bytes(key_file: *mut GKeyFile, bytes: *mut GBytes, flags: GKeyFileFlags, error: *mut *mut GError) -> gboolean; + pub fn g_key_file_load_from_data(key_file: *mut GKeyFile, data: *const c_char, length: size_t, flags: GKeyFileFlags, error: *mut *mut GError) -> gboolean; + pub fn g_key_file_load_from_data_dirs(key_file: *mut GKeyFile, file: *const c_char, full_path: *mut *mut c_char, flags: GKeyFileFlags, error: *mut *mut GError) -> gboolean; + pub fn g_key_file_load_from_dirs(key_file: *mut GKeyFile, file: *const c_char, search_dirs: *mut *const c_char, full_path: *mut *mut c_char, flags: GKeyFileFlags, error: *mut *mut GError) -> gboolean; + pub fn g_key_file_load_from_file(key_file: *mut GKeyFile, file: *const c_char, flags: GKeyFileFlags, error: *mut *mut GError) -> gboolean; pub fn g_key_file_ref(key_file: *mut GKeyFile) -> *mut GKeyFile; - pub fn g_key_file_remove_comment( - key_file: *mut GKeyFile, - group_name: *const c_char, - key: *const c_char, - error: *mut *mut GError, - ) -> gboolean; - pub fn g_key_file_remove_group( - key_file: *mut GKeyFile, - group_name: *const c_char, - error: *mut *mut GError, - ) -> gboolean; - pub fn g_key_file_remove_key( - key_file: *mut GKeyFile, - group_name: *const c_char, - key: *const c_char, - error: *mut *mut GError, - ) -> gboolean; - pub fn g_key_file_save_to_file( - key_file: *mut GKeyFile, - filename: *const c_char, - error: *mut *mut GError, - ) -> gboolean; - pub fn g_key_file_set_boolean( - key_file: *mut GKeyFile, - group_name: *const c_char, - key: *const c_char, - value: gboolean, - ); - pub fn g_key_file_set_boolean_list( - key_file: *mut GKeyFile, - group_name: *const c_char, - key: *const c_char, - list: *mut gboolean, - length: size_t, - ); - pub fn g_key_file_set_comment( - key_file: *mut GKeyFile, - group_name: *const c_char, - key: *const c_char, - comment: *const c_char, - error: *mut *mut GError, - ) -> gboolean; - pub fn g_key_file_set_double( - key_file: *mut GKeyFile, - group_name: *const c_char, - key: *const c_char, - value: c_double, - ); - pub fn g_key_file_set_double_list( - key_file: *mut GKeyFile, - group_name: *const c_char, - key: *const c_char, - list: *mut c_double, - length: size_t, - ); - pub fn g_key_file_set_int64( - key_file: *mut GKeyFile, - group_name: *const c_char, - key: *const c_char, - value: i64, - ); - pub fn g_key_file_set_integer( - key_file: *mut GKeyFile, - group_name: *const c_char, - key: *const c_char, - value: c_int, - ); - pub fn g_key_file_set_integer_list( - key_file: *mut GKeyFile, - group_name: *const c_char, - key: *const c_char, - list: *mut c_int, - length: size_t, - ); + pub fn g_key_file_remove_comment(key_file: *mut GKeyFile, group_name: *const c_char, key: *const c_char, error: *mut *mut GError) -> gboolean; + pub fn g_key_file_remove_group(key_file: *mut GKeyFile, group_name: *const c_char, error: *mut *mut GError) -> gboolean; + pub fn g_key_file_remove_key(key_file: *mut GKeyFile, group_name: *const c_char, key: *const c_char, error: *mut *mut GError) -> gboolean; + pub fn g_key_file_save_to_file(key_file: *mut GKeyFile, filename: *const c_char, error: *mut *mut GError) -> gboolean; + pub fn g_key_file_set_boolean(key_file: *mut GKeyFile, group_name: *const c_char, key: *const c_char, value: gboolean); + pub fn g_key_file_set_boolean_list(key_file: *mut GKeyFile, group_name: *const c_char, key: *const c_char, list: *mut gboolean, length: size_t); + pub fn g_key_file_set_comment(key_file: *mut GKeyFile, group_name: *const c_char, key: *const c_char, comment: *const c_char, error: *mut *mut GError) -> gboolean; + pub fn g_key_file_set_double(key_file: *mut GKeyFile, group_name: *const c_char, key: *const c_char, value: c_double); + pub fn g_key_file_set_double_list(key_file: *mut GKeyFile, group_name: *const c_char, key: *const c_char, list: *mut c_double, length: size_t); + pub fn g_key_file_set_int64(key_file: *mut GKeyFile, group_name: *const c_char, key: *const c_char, value: i64); + pub fn g_key_file_set_integer(key_file: *mut GKeyFile, group_name: *const c_char, key: *const c_char, value: c_int); + pub fn g_key_file_set_integer_list(key_file: *mut GKeyFile, group_name: *const c_char, key: *const c_char, list: *mut c_int, length: size_t); pub fn g_key_file_set_list_separator(key_file: *mut GKeyFile, separator: c_char); - pub fn g_key_file_set_locale_string( - key_file: *mut GKeyFile, - group_name: *const c_char, - key: *const c_char, - locale: *const c_char, - string: *const c_char, - ); - pub fn g_key_file_set_locale_string_list( - key_file: *mut GKeyFile, - group_name: *const c_char, - key: *const c_char, - locale: *const c_char, - list: *const *const c_char, - length: size_t, - ); - pub fn g_key_file_set_string( - key_file: *mut GKeyFile, - group_name: *const c_char, - key: *const c_char, - string: *const c_char, - ); - pub fn g_key_file_set_string_list( - key_file: *mut GKeyFile, - group_name: *const c_char, - key: *const c_char, - list: *const *const c_char, - length: size_t, - ); - pub fn g_key_file_set_uint64( - key_file: *mut GKeyFile, - group_name: *const c_char, - key: *const c_char, - value: u64, - ); - pub fn g_key_file_set_value( - key_file: *mut GKeyFile, - group_name: *const c_char, - key: *const c_char, - value: *const c_char, - ); - pub fn g_key_file_to_data( - key_file: *mut GKeyFile, - length: *mut size_t, - error: *mut *mut GError, - ) -> *mut c_char; + pub fn g_key_file_set_locale_string(key_file: *mut GKeyFile, group_name: *const c_char, key: *const c_char, locale: *const c_char, string: *const c_char); + pub fn g_key_file_set_locale_string_list(key_file: *mut GKeyFile, group_name: *const c_char, key: *const c_char, locale: *const c_char, list: *const *const c_char, length: size_t); + pub fn g_key_file_set_string(key_file: *mut GKeyFile, group_name: *const c_char, key: *const c_char, string: *const c_char); + pub fn g_key_file_set_string_list(key_file: *mut GKeyFile, group_name: *const c_char, key: *const c_char, list: *const *const c_char, length: size_t); + pub fn g_key_file_set_uint64(key_file: *mut GKeyFile, group_name: *const c_char, key: *const c_char, value: u64); + pub fn g_key_file_set_value(key_file: *mut GKeyFile, group_name: *const c_char, key: *const c_char, value: *const c_char); + pub fn g_key_file_to_data(key_file: *mut GKeyFile, length: *mut size_t, error: *mut *mut GError) -> *mut c_char; pub fn g_key_file_unref(key_file: *mut GKeyFile); pub fn g_key_file_error_quark() -> GQuark; @@ -4073,11 +2943,7 @@ extern "C" { pub fn g_list_copy_deep(list: *mut GList, func: GCopyFunc, user_data: gpointer) -> *mut GList; pub fn g_list_delete_link(list: *mut GList, link_: *mut GList) -> *mut GList; pub fn g_list_find(list: *mut GList, data: gconstpointer) -> *mut GList; - pub fn g_list_find_custom( - list: *mut GList, - data: gconstpointer, - func: GCompareFunc, - ) -> *mut GList; + pub fn g_list_find_custom(list: *mut GList, data: gconstpointer, func: GCompareFunc) -> *mut GList; pub fn g_list_first(list: *mut GList) -> *mut GList; pub fn g_list_foreach(list: *mut GList, func: GFunc, user_data: gpointer); pub fn g_list_free(list: *mut GList); @@ -4085,45 +2951,25 @@ extern "C" { pub fn g_list_free_full(list: *mut GList, free_func: GDestroyNotify); pub fn g_list_index(list: *mut GList, data: gconstpointer) -> c_int; pub fn g_list_insert(list: *mut GList, data: gpointer, position: c_int) -> *mut GList; - pub fn g_list_insert_before( - list: *mut GList, - sibling: *mut GList, - data: gpointer, - ) -> *mut GList; + pub fn g_list_insert_before(list: *mut GList, sibling: *mut GList, data: gpointer) -> *mut GList; #[cfg(feature = "v2_62")] #[cfg_attr(docsrs, doc(cfg(feature = "v2_62")))] - pub fn g_list_insert_before_link( - list: *mut GList, - sibling: *mut GList, - link_: *mut GList, - ) -> *mut GList; - pub fn g_list_insert_sorted(list: *mut GList, data: gpointer, func: GCompareFunc) - -> *mut GList; - pub fn g_list_insert_sorted_with_data( - list: *mut GList, - data: gpointer, - func: GCompareDataFunc, - user_data: gpointer, - ) -> *mut GList; + pub fn g_list_insert_before_link(list: *mut GList, sibling: *mut GList, link_: *mut GList) -> *mut GList; + pub fn g_list_insert_sorted(list: *mut GList, data: gpointer, func: GCompareFunc) -> *mut GList; + pub fn g_list_insert_sorted_with_data(list: *mut GList, data: gpointer, func: GCompareDataFunc, user_data: gpointer) -> *mut GList; pub fn g_list_last(list: *mut GList) -> *mut GList; pub fn g_list_length(list: *mut GList) -> c_uint; pub fn g_list_nth(list: *mut GList, n: c_uint) -> *mut GList; pub fn g_list_nth_data(list: *mut GList, n: c_uint) -> gpointer; pub fn g_list_nth_prev(list: *mut GList, n: c_uint) -> *mut GList; - pub fn g_list_pop_allocator(); pub fn g_list_position(list: *mut GList, llink: *mut GList) -> c_int; pub fn g_list_prepend(list: *mut GList, data: gpointer) -> *mut GList; - pub fn g_list_push_allocator(allocator: *mut GAllocator); pub fn g_list_remove(list: *mut GList, data: gconstpointer) -> *mut GList; pub fn g_list_remove_all(list: *mut GList, data: gconstpointer) -> *mut GList; pub fn g_list_remove_link(list: *mut GList, llink: *mut GList) -> *mut GList; pub fn g_list_reverse(list: *mut GList) -> *mut GList; pub fn g_list_sort(list: *mut GList, compare_func: GCompareFunc) -> *mut GList; - pub fn g_list_sort_with_data( - list: *mut GList, - compare_func: GCompareDataFunc, - user_data: gpointer, - ) -> *mut GList; + pub fn g_list_sort_with_data(list: *mut GList, compare_func: GCompareDataFunc, user_data: gpointer) -> *mut GList; //========================================================================= // GMainContext @@ -4135,58 +2981,27 @@ extern "C" { pub fn g_main_context_new_with_flags(flags: GMainContextFlags) -> *mut GMainContext; pub fn g_main_context_acquire(context: *mut GMainContext) -> gboolean; pub fn g_main_context_add_poll(context: *mut GMainContext, fd: *mut GPollFD, priority: c_int); - pub fn g_main_context_check( - context: *mut GMainContext, - max_priority: c_int, - fds: *mut GPollFD, - n_fds: c_int, - ) -> gboolean; + pub fn g_main_context_check(context: *mut GMainContext, max_priority: c_int, fds: *mut GPollFD, n_fds: c_int) -> gboolean; pub fn g_main_context_dispatch(context: *mut GMainContext); - pub fn g_main_context_find_source_by_funcs_user_data( - context: *mut GMainContext, - funcs: *mut GSourceFuncs, - user_data: gpointer, - ) -> *mut GSource; - pub fn g_main_context_find_source_by_id( - context: *mut GMainContext, - source_id: c_uint, - ) -> *mut GSource; - pub fn g_main_context_find_source_by_user_data( - context: *mut GMainContext, - user_data: gpointer, - ) -> *mut GSource; + pub fn g_main_context_find_source_by_funcs_user_data(context: *mut GMainContext, funcs: *mut GSourceFuncs, user_data: gpointer) -> *mut GSource; + pub fn g_main_context_find_source_by_id(context: *mut GMainContext, source_id: c_uint) -> *mut GSource; + pub fn g_main_context_find_source_by_user_data(context: *mut GMainContext, user_data: gpointer) -> *mut GSource; pub fn g_main_context_get_poll_func(context: *mut GMainContext) -> GPollFunc; pub fn g_main_context_invoke(context: *mut GMainContext, function: GSourceFunc, data: gpointer); - pub fn g_main_context_invoke_full( - context: *mut GMainContext, - priority: c_int, - function: GSourceFunc, - data: gpointer, - notify: GDestroyNotify, - ); + pub fn g_main_context_invoke_full(context: *mut GMainContext, priority: c_int, function: GSourceFunc, data: gpointer, notify: GDestroyNotify); pub fn g_main_context_is_owner(context: *mut GMainContext) -> gboolean; pub fn g_main_context_iteration(context: *mut GMainContext, may_block: gboolean) -> gboolean; pub fn g_main_context_pending(context: *mut GMainContext) -> gboolean; pub fn g_main_context_pop_thread_default(context: *mut GMainContext); pub fn g_main_context_prepare(context: *mut GMainContext, priority: *mut c_int) -> gboolean; pub fn g_main_context_push_thread_default(context: *mut GMainContext); - pub fn g_main_context_query( - context: *mut GMainContext, - max_priority: c_int, - timeout_: *mut c_int, - fds: *mut GPollFD, - n_fds: c_int, - ) -> c_int; + pub fn g_main_context_query(context: *mut GMainContext, max_priority: c_int, timeout_: *mut c_int, fds: *mut GPollFD, n_fds: c_int) -> c_int; pub fn g_main_context_ref(context: *mut GMainContext) -> *mut GMainContext; pub fn g_main_context_release(context: *mut GMainContext); pub fn g_main_context_remove_poll(context: *mut GMainContext, fd: *mut GPollFD); pub fn g_main_context_set_poll_func(context: *mut GMainContext, func: GPollFunc); pub fn g_main_context_unref(context: *mut GMainContext); - pub fn g_main_context_wait( - context: *mut GMainContext, - cond: *mut GCond, - mutex: *mut GMutex, - ) -> gboolean; + pub fn g_main_context_wait(context: *mut GMainContext, cond: *mut GCond, mutex: *mut GMutex) -> gboolean; pub fn g_main_context_wakeup(context: *mut GMainContext); pub fn g_main_context_default() -> *mut GMainContext; pub fn g_main_context_get_thread_default() -> *mut GMainContext; @@ -4208,16 +3023,8 @@ extern "C" { // GMappedFile //========================================================================= pub fn g_mapped_file_get_type() -> GType; - pub fn g_mapped_file_new( - filename: *const c_char, - writable: gboolean, - error: *mut *mut GError, - ) -> *mut GMappedFile; - pub fn g_mapped_file_new_from_fd( - fd: c_int, - writable: gboolean, - error: *mut *mut GError, - ) -> *mut GMappedFile; + pub fn g_mapped_file_new(filename: *const c_char, writable: gboolean, error: *mut *mut GError) -> *mut GMappedFile; + pub fn g_mapped_file_new_from_fd(fd: c_int, writable: gboolean, error: *mut *mut GError) -> *mut GMappedFile; pub fn g_mapped_file_free(file: *mut GMappedFile); pub fn g_mapped_file_get_bytes(file: *mut GMappedFile) -> *mut GBytes; pub fn g_mapped_file_get_contents(file: *mut GMappedFile) -> *mut c_char; @@ -4229,71 +3036,29 @@ extern "C" { // GMarkupParseContext //========================================================================= pub fn g_markup_parse_context_get_type() -> GType; - pub fn g_markup_parse_context_new( - parser: *const GMarkupParser, - flags: GMarkupParseFlags, - user_data: gpointer, - user_data_dnotify: GDestroyNotify, - ) -> *mut GMarkupParseContext; - pub fn g_markup_parse_context_end_parse( - context: *mut GMarkupParseContext, - error: *mut *mut GError, - ) -> gboolean; + pub fn g_markup_parse_context_new(parser: *const GMarkupParser, flags: GMarkupParseFlags, user_data: gpointer, user_data_dnotify: GDestroyNotify) -> *mut GMarkupParseContext; + pub fn g_markup_parse_context_end_parse(context: *mut GMarkupParseContext, error: *mut *mut GError) -> gboolean; pub fn g_markup_parse_context_free(context: *mut GMarkupParseContext); pub fn g_markup_parse_context_get_element(context: *mut GMarkupParseContext) -> *const c_char; - pub fn g_markup_parse_context_get_element_stack( - context: *mut GMarkupParseContext, - ) -> *const GSList; - pub fn g_markup_parse_context_get_position( - context: *mut GMarkupParseContext, - line_number: *mut c_int, - char_number: *mut c_int, - ); + pub fn g_markup_parse_context_get_element_stack(context: *mut GMarkupParseContext) -> *const GSList; + pub fn g_markup_parse_context_get_position(context: *mut GMarkupParseContext, line_number: *mut c_int, char_number: *mut c_int); pub fn g_markup_parse_context_get_user_data(context: *mut GMarkupParseContext) -> gpointer; - pub fn g_markup_parse_context_parse( - context: *mut GMarkupParseContext, - text: *const c_char, - text_len: ssize_t, - error: *mut *mut GError, - ) -> gboolean; + pub fn g_markup_parse_context_parse(context: *mut GMarkupParseContext, text: *const c_char, text_len: ssize_t, error: *mut *mut GError) -> gboolean; pub fn g_markup_parse_context_pop(context: *mut GMarkupParseContext) -> gpointer; - pub fn g_markup_parse_context_push( - context: *mut GMarkupParseContext, - parser: *const GMarkupParser, - user_data: gpointer, - ); - pub fn g_markup_parse_context_ref( - context: *mut GMarkupParseContext, - ) -> *mut GMarkupParseContext; + pub fn g_markup_parse_context_push(context: *mut GMarkupParseContext, parser: *const GMarkupParser, user_data: gpointer); + pub fn g_markup_parse_context_ref(context: *mut GMarkupParseContext) -> *mut GMarkupParseContext; pub fn g_markup_parse_context_unref(context: *mut GMarkupParseContext); //========================================================================= // GMatchInfo //========================================================================= pub fn g_match_info_get_type() -> GType; - pub fn g_match_info_expand_references( - match_info: *const GMatchInfo, - string_to_expand: *const c_char, - error: *mut *mut GError, - ) -> *mut c_char; + pub fn g_match_info_expand_references(match_info: *const GMatchInfo, string_to_expand: *const c_char, error: *mut *mut GError) -> *mut c_char; pub fn g_match_info_fetch(match_info: *const GMatchInfo, match_num: c_int) -> *mut c_char; pub fn g_match_info_fetch_all(match_info: *const GMatchInfo) -> *mut *mut c_char; - pub fn g_match_info_fetch_named( - match_info: *const GMatchInfo, - name: *const c_char, - ) -> *mut c_char; - pub fn g_match_info_fetch_named_pos( - match_info: *const GMatchInfo, - name: *const c_char, - start_pos: *mut c_int, - end_pos: *mut c_int, - ) -> gboolean; - pub fn g_match_info_fetch_pos( - match_info: *const GMatchInfo, - match_num: c_int, - start_pos: *mut c_int, - end_pos: *mut c_int, - ) -> gboolean; + pub fn g_match_info_fetch_named(match_info: *const GMatchInfo, name: *const c_char) -> *mut c_char; + pub fn g_match_info_fetch_named_pos(match_info: *const GMatchInfo, name: *const c_char, start_pos: *mut c_int, end_pos: *mut c_int) -> gboolean; + pub fn g_match_info_fetch_pos(match_info: *const GMatchInfo, match_num: c_int, start_pos: *mut c_int, end_pos: *mut c_int) -> gboolean; pub fn g_match_info_free(match_info: *mut GMatchInfo); pub fn g_match_info_get_match_count(match_info: *const GMatchInfo) -> c_int; pub fn g_match_info_get_regex(match_info: *const GMatchInfo) -> *mut GRegex; @@ -4305,59 +3070,22 @@ extern "C" { pub fn g_match_info_unref(match_info: *mut GMatchInfo); //========================================================================= - // GMemChunk - //========================================================================= - pub fn g_mem_chunk_alloc(mem_chunk: *mut GMemChunk) -> gpointer; - pub fn g_mem_chunk_alloc0(mem_chunk: *mut GMemChunk) -> gpointer; - pub fn g_mem_chunk_clean(mem_chunk: *mut GMemChunk); - pub fn g_mem_chunk_destroy(mem_chunk: *mut GMemChunk); - pub fn g_mem_chunk_free(mem_chunk: *mut GMemChunk, mem: gpointer); - pub fn g_mem_chunk_print(mem_chunk: *mut GMemChunk); - pub fn g_mem_chunk_reset(mem_chunk: *mut GMemChunk); - pub fn g_mem_chunk_info(); - pub fn g_mem_chunk_new( - name: *const c_char, - atom_size: c_int, - area_size: size_t, - type_: c_int, - ) -> *mut GMemChunk; - - //========================================================================= // GNode //========================================================================= pub fn g_node_child_index(node: *mut GNode, data: gpointer) -> c_int; pub fn g_node_child_position(node: *mut GNode, child: *mut GNode) -> c_int; - pub fn g_node_children_foreach( - node: *mut GNode, - flags: GTraverseFlags, - func: GNodeForeachFunc, - data: gpointer, - ); + pub fn g_node_children_foreach(node: *mut GNode, flags: GTraverseFlags, func: GNodeForeachFunc, data: gpointer); pub fn g_node_copy(node: *mut GNode) -> *mut GNode; pub fn g_node_copy_deep(node: *mut GNode, copy_func: GCopyFunc, data: gpointer) -> *mut GNode; pub fn g_node_depth(node: *mut GNode) -> c_uint; pub fn g_node_destroy(root: *mut GNode); - pub fn g_node_find( - root: *mut GNode, - order: GTraverseType, - flags: GTraverseFlags, - data: gpointer, - ) -> *mut GNode; - pub fn g_node_find_child(node: *mut GNode, flags: GTraverseFlags, data: gpointer) - -> *mut GNode; + pub fn g_node_find(root: *mut GNode, order: GTraverseType, flags: GTraverseFlags, data: gpointer) -> *mut GNode; + pub fn g_node_find_child(node: *mut GNode, flags: GTraverseFlags, data: gpointer) -> *mut GNode; pub fn g_node_first_sibling(node: *mut GNode) -> *mut GNode; pub fn g_node_get_root(node: *mut GNode) -> *mut GNode; pub fn g_node_insert(parent: *mut GNode, position: c_int, node: *mut GNode) -> *mut GNode; - pub fn g_node_insert_after( - parent: *mut GNode, - sibling: *mut GNode, - node: *mut GNode, - ) -> *mut GNode; - pub fn g_node_insert_before( - parent: *mut GNode, - sibling: *mut GNode, - node: *mut GNode, - ) -> *mut GNode; + pub fn g_node_insert_after(parent: *mut GNode, sibling: *mut GNode, node: *mut GNode) -> *mut GNode; + pub fn g_node_insert_before(parent: *mut GNode, sibling: *mut GNode, node: *mut GNode) -> *mut GNode; pub fn g_node_is_ancestor(node: *mut GNode, descendant: *mut GNode) -> gboolean; pub fn g_node_last_child(node: *mut GNode) -> *mut GNode; pub fn g_node_last_sibling(node: *mut GNode) -> *mut GNode; @@ -4367,115 +3095,53 @@ extern "C" { pub fn g_node_nth_child(node: *mut GNode, n: c_uint) -> *mut GNode; pub fn g_node_prepend(parent: *mut GNode, node: *mut GNode) -> *mut GNode; pub fn g_node_reverse_children(node: *mut GNode); - pub fn g_node_traverse( - root: *mut GNode, - order: GTraverseType, - flags: GTraverseFlags, - max_depth: c_int, - func: GNodeTraverseFunc, - data: gpointer, - ); + pub fn g_node_traverse(root: *mut GNode, order: GTraverseType, flags: GTraverseFlags, max_depth: c_int, func: GNodeTraverseFunc, data: gpointer); pub fn g_node_unlink(node: *mut GNode); pub fn g_node_new(data: gpointer) -> *mut GNode; - pub fn g_node_pop_allocator(); - pub fn g_node_push_allocator(allocator: *mut GAllocator); //========================================================================= // GOnce //========================================================================= pub fn g_once_impl(once: *mut GOnce, func: GThreadFunc, arg: gpointer) -> gpointer; pub fn g_once_init_enter(location: *mut c_void) -> gboolean; - pub fn g_once_init_enter_impl(location: *mut size_t) -> gboolean; - #[cfg(feature = "v2_80")] - #[cfg_attr(docsrs, doc(cfg(feature = "v2_80")))] - pub fn g_once_init_enter_pointer(location: *mut c_void) -> gboolean; pub fn g_once_init_leave(location: *mut c_void, result: size_t); - #[cfg(feature = "v2_80")] - #[cfg_attr(docsrs, doc(cfg(feature = "v2_80")))] - pub fn g_once_init_leave_pointer(location: *mut c_void, result: gpointer); //========================================================================= // GOptionContext //========================================================================= pub fn g_option_context_add_group(context: *mut GOptionContext, group: *mut GOptionGroup); - pub fn g_option_context_add_main_entries( - context: *mut GOptionContext, - entries: *const GOptionEntry, - translation_domain: *const c_char, - ); + pub fn g_option_context_add_main_entries(context: *mut GOptionContext, entries: *const GOptionEntry, translation_domain: *const c_char); pub fn g_option_context_free(context: *mut GOptionContext); pub fn g_option_context_get_description(context: *mut GOptionContext) -> *const c_char; - pub fn g_option_context_get_help( - context: *mut GOptionContext, - main_help: gboolean, - group: *mut GOptionGroup, - ) -> *mut c_char; + pub fn g_option_context_get_help(context: *mut GOptionContext, main_help: gboolean, group: *mut GOptionGroup) -> *mut c_char; pub fn g_option_context_get_help_enabled(context: *mut GOptionContext) -> gboolean; pub fn g_option_context_get_ignore_unknown_options(context: *mut GOptionContext) -> gboolean; pub fn g_option_context_get_main_group(context: *mut GOptionContext) -> *mut GOptionGroup; pub fn g_option_context_get_strict_posix(context: *mut GOptionContext) -> gboolean; pub fn g_option_context_get_summary(context: *mut GOptionContext) -> *const c_char; - pub fn g_option_context_parse( - context: *mut GOptionContext, - argc: *mut c_int, - argv: *mut *mut *mut c_char, - error: *mut *mut GError, - ) -> gboolean; - pub fn g_option_context_parse_strv( - context: *mut GOptionContext, - arguments: *mut *mut *mut c_char, - error: *mut *mut GError, - ) -> gboolean; - pub fn g_option_context_set_description( - context: *mut GOptionContext, - description: *const c_char, - ); + pub fn g_option_context_parse(context: *mut GOptionContext, argc: *mut c_int, argv: *mut *mut *mut c_char, error: *mut *mut GError) -> gboolean; + pub fn g_option_context_parse_strv(context: *mut GOptionContext, arguments: *mut *mut *mut c_char, error: *mut *mut GError) -> gboolean; + pub fn g_option_context_set_description(context: *mut GOptionContext, description: *const c_char); pub fn g_option_context_set_help_enabled(context: *mut GOptionContext, help_enabled: gboolean); - pub fn g_option_context_set_ignore_unknown_options( - context: *mut GOptionContext, - ignore_unknown: gboolean, - ); + pub fn g_option_context_set_ignore_unknown_options(context: *mut GOptionContext, ignore_unknown: gboolean); pub fn g_option_context_set_main_group(context: *mut GOptionContext, group: *mut GOptionGroup); pub fn g_option_context_set_strict_posix(context: *mut GOptionContext, strict_posix: gboolean); pub fn g_option_context_set_summary(context: *mut GOptionContext, summary: *const c_char); - pub fn g_option_context_set_translate_func( - context: *mut GOptionContext, - func: GTranslateFunc, - data: gpointer, - destroy_notify: GDestroyNotify, - ); - pub fn g_option_context_set_translation_domain( - context: *mut GOptionContext, - domain: *const c_char, - ); + pub fn g_option_context_set_translate_func(context: *mut GOptionContext, func: GTranslateFunc, data: gpointer, destroy_notify: GDestroyNotify); + pub fn g_option_context_set_translation_domain(context: *mut GOptionContext, domain: *const c_char); pub fn g_option_context_new(parameter_string: *const c_char) -> *mut GOptionContext; //========================================================================= // GOptionGroup //========================================================================= pub fn g_option_group_get_type() -> GType; - pub fn g_option_group_new( - name: *const c_char, - description: *const c_char, - help_description: *const c_char, - user_data: gpointer, - destroy: GDestroyNotify, - ) -> *mut GOptionGroup; + pub fn g_option_group_new(name: *const c_char, description: *const c_char, help_description: *const c_char, user_data: gpointer, destroy: GDestroyNotify) -> *mut GOptionGroup; pub fn g_option_group_add_entries(group: *mut GOptionGroup, entries: *const GOptionEntry); pub fn g_option_group_free(group: *mut GOptionGroup); pub fn g_option_group_ref(group: *mut GOptionGroup) -> *mut GOptionGroup; pub fn g_option_group_set_error_hook(group: *mut GOptionGroup, error_func: GOptionErrorFunc); - pub fn g_option_group_set_parse_hooks( - group: *mut GOptionGroup, - pre_parse_func: GOptionParseFunc, - post_parse_func: GOptionParseFunc, - ); - pub fn g_option_group_set_translate_func( - group: *mut GOptionGroup, - func: GTranslateFunc, - data: gpointer, - destroy_notify: GDestroyNotify, - ); + pub fn g_option_group_set_parse_hooks(group: *mut GOptionGroup, pre_parse_func: GOptionParseFunc, post_parse_func: GOptionParseFunc); + pub fn g_option_group_set_translate_func(group: *mut GOptionGroup, func: GTranslateFunc, data: gpointer, destroy_notify: GDestroyNotify); pub fn g_option_group_set_translation_domain(group: *mut GOptionGroup, domain: *const c_char); pub fn g_option_group_unref(group: *mut GOptionGroup); @@ -4540,16 +3206,10 @@ extern "C" { pub fn g_pattern_spec_free(pspec: *mut GPatternSpec); #[cfg(feature = "v2_70")] #[cfg_attr(docsrs, doc(cfg(feature = "v2_70")))] - pub fn g_pattern_spec_match( - pspec: *mut GPatternSpec, - string_length: size_t, - string: *const c_char, - string_reversed: *const c_char, - ) -> gboolean; + pub fn g_pattern_spec_match(pspec: *mut GPatternSpec, string_length: size_t, string: *const c_char, string_reversed: *const c_char) -> gboolean; #[cfg(feature = "v2_70")] #[cfg_attr(docsrs, doc(cfg(feature = "v2_70")))] - pub fn g_pattern_spec_match_string(pspec: *mut GPatternSpec, string: *const c_char) - -> gboolean; + pub fn g_pattern_spec_match_string(pspec: *mut GPatternSpec, string: *const c_char) -> gboolean; //========================================================================= // GPollFD @@ -4562,7 +3222,6 @@ extern "C" { pub fn g_private_get(key: *mut GPrivate) -> gpointer; pub fn g_private_replace(key: *mut GPrivate, value: gpointer); pub fn g_private_set(key: *mut GPrivate, value: gpointer); - pub fn g_private_new(notify: GDestroyNotify) -> *mut GPrivate; //========================================================================= // GPtrArray @@ -4571,33 +3230,15 @@ extern "C" { pub fn g_ptr_array_add(array: *mut GPtrArray, data: gpointer); #[cfg(feature = "v2_62")] #[cfg_attr(docsrs, doc(cfg(feature = "v2_62")))] - pub fn g_ptr_array_copy( - array: *mut GPtrArray, - func: GCopyFunc, - user_data: gpointer, - ) -> *mut GPtrArray; + pub fn g_ptr_array_copy(array: *mut GPtrArray, func: GCopyFunc, user_data: gpointer) -> *mut GPtrArray; #[cfg(feature = "v2_62")] #[cfg_attr(docsrs, doc(cfg(feature = "v2_62")))] - pub fn g_ptr_array_extend( - array_to_extend: *mut GPtrArray, - array: *mut GPtrArray, - func: GCopyFunc, - user_data: gpointer, - ); + pub fn g_ptr_array_extend(array_to_extend: *mut GPtrArray, array: *mut GPtrArray, func: GCopyFunc, user_data: gpointer); #[cfg(feature = "v2_62")] #[cfg_attr(docsrs, doc(cfg(feature = "v2_62")))] pub fn g_ptr_array_extend_and_steal(array_to_extend: *mut GPtrArray, array: *mut GPtrArray); - pub fn g_ptr_array_find( - haystack: *mut GPtrArray, - needle: gconstpointer, - index_: *mut c_uint, - ) -> gboolean; - pub fn g_ptr_array_find_with_equal_func( - haystack: *mut GPtrArray, - needle: gconstpointer, - equal_func: GEqualFunc, - index_: *mut c_uint, - ) -> gboolean; + pub fn g_ptr_array_find(haystack: *mut GPtrArray, needle: gconstpointer, index_: *mut c_uint) -> gboolean; + pub fn g_ptr_array_find_with_equal_func(haystack: *mut GPtrArray, needle: gconstpointer, equal_func: GEqualFunc, index_: *mut c_uint) -> gboolean; pub fn g_ptr_array_foreach(array: *mut GPtrArray, func: GFunc, user_data: gpointer); pub fn g_ptr_array_free(array: *mut GPtrArray, free_seg: gboolean) -> *mut gpointer; pub fn g_ptr_array_insert(array: *mut GPtrArray, index_: c_int, data: gpointer); @@ -4607,56 +3248,27 @@ extern "C" { pub fn g_ptr_array_new() -> *mut GPtrArray; #[cfg(feature = "v2_76")] #[cfg_attr(docsrs, doc(cfg(feature = "v2_76")))] - pub fn g_ptr_array_new_from_array( - data: *mut gpointer, - len: size_t, - copy_func: GCopyFunc, - copy_func_user_data: gpointer, - element_free_func: GDestroyNotify, - ) -> *mut GPtrArray; + pub fn g_ptr_array_new_from_array(data: *mut gpointer, len: size_t, copy_func: GCopyFunc, copy_func_user_data: gpointer, element_free_func: GDestroyNotify) -> *mut GPtrArray; #[cfg(feature = "v2_76")] #[cfg_attr(docsrs, doc(cfg(feature = "v2_76")))] - 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; - pub fn g_ptr_array_new_full( - reserved_size: c_uint, - element_free_func: GDestroyNotify, - ) -> *mut GPtrArray; + 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; + pub fn g_ptr_array_new_full(reserved_size: c_uint, element_free_func: GDestroyNotify) -> *mut GPtrArray; #[cfg(feature = "v2_74")] #[cfg_attr(docsrs, doc(cfg(feature = "v2_74")))] - pub fn g_ptr_array_new_null_terminated( - reserved_size: c_uint, - element_free_func: GDestroyNotify, - null_terminated: gboolean, - ) -> *mut GPtrArray; + pub fn g_ptr_array_new_null_terminated(reserved_size: c_uint, element_free_func: GDestroyNotify, null_terminated: gboolean) -> *mut GPtrArray; #[cfg(feature = "v2_76")] #[cfg_attr(docsrs, doc(cfg(feature = "v2_76")))] - pub fn g_ptr_array_new_take( - data: *mut gpointer, - len: size_t, - element_free_func: GDestroyNotify, - ) -> *mut GPtrArray; + pub fn g_ptr_array_new_take(data: *mut gpointer, len: size_t, element_free_func: GDestroyNotify) -> *mut GPtrArray; #[cfg(feature = "v2_76")] #[cfg_attr(docsrs, doc(cfg(feature = "v2_76")))] - pub fn g_ptr_array_new_take_null_terminated( - data: *mut gpointer, - element_free_func: GDestroyNotify, - ) -> *mut GPtrArray; + pub fn g_ptr_array_new_take_null_terminated(data: *mut gpointer, element_free_func: GDestroyNotify) -> *mut GPtrArray; pub fn g_ptr_array_new_with_free_func(element_free_func: GDestroyNotify) -> *mut GPtrArray; pub fn g_ptr_array_ref(array: *mut GPtrArray) -> *mut GPtrArray; pub fn g_ptr_array_remove(array: *mut GPtrArray, data: gpointer) -> gboolean; pub fn g_ptr_array_remove_fast(array: *mut GPtrArray, data: gpointer) -> gboolean; pub fn g_ptr_array_remove_index(array: *mut GPtrArray, index_: c_uint) -> gpointer; pub fn g_ptr_array_remove_index_fast(array: *mut GPtrArray, index_: c_uint) -> gpointer; - pub fn g_ptr_array_remove_range( - array: *mut GPtrArray, - index_: c_uint, - length: c_uint, - ) -> *mut GPtrArray; + pub fn g_ptr_array_remove_range(array: *mut GPtrArray, index_: c_uint, length: c_uint) -> *mut GPtrArray; pub fn g_ptr_array_set_free_func(array: *mut GPtrArray, element_free_func: GDestroyNotify); pub fn g_ptr_array_set_size(array: *mut GPtrArray, length: c_int); pub fn g_ptr_array_sized_new(reserved_size: c_uint) -> *mut GPtrArray; @@ -4666,16 +3278,8 @@ extern "C" { pub fn g_ptr_array_sort_values(array: *mut GPtrArray, compare_func: GCompareFunc); #[cfg(feature = "v2_76")] #[cfg_attr(docsrs, doc(cfg(feature = "v2_76")))] - pub fn g_ptr_array_sort_values_with_data( - array: *mut GPtrArray, - compare_func: GCompareDataFunc, - user_data: gpointer, - ); - pub fn g_ptr_array_sort_with_data( - array: *mut GPtrArray, - compare_func: GCompareDataFunc, - user_data: gpointer, - ); + pub fn g_ptr_array_sort_values_with_data(array: *mut GPtrArray, compare_func: GCompareDataFunc, user_data: gpointer); + pub fn g_ptr_array_sort_with_data(array: *mut GPtrArray, compare_func: GCompareDataFunc, user_data: gpointer); #[cfg(feature = "v2_64")] #[cfg_attr(docsrs, doc(cfg(feature = "v2_64")))] pub fn g_ptr_array_steal(array: *mut GPtrArray, len: *mut size_t) -> *mut gpointer; @@ -4697,11 +3301,7 @@ extern "C" { pub fn g_queue_copy(queue: *mut GQueue) -> *mut GQueue; pub fn g_queue_delete_link(queue: *mut GQueue, link_: *mut GList); pub fn g_queue_find(queue: *mut GQueue, data: gconstpointer) -> *mut GList; - pub fn g_queue_find_custom( - queue: *mut GQueue, - data: gconstpointer, - func: GCompareFunc, - ) -> *mut GList; + pub fn g_queue_find_custom(queue: *mut GQueue, data: gconstpointer, func: GCompareFunc) -> *mut GList; pub fn g_queue_foreach(queue: *mut GQueue, func: GFunc, user_data: gpointer); pub fn g_queue_free(queue: *mut GQueue); pub fn g_queue_free_full(queue: *mut GQueue, free_func: GDestroyNotify); @@ -4716,12 +3316,7 @@ extern "C" { #[cfg(feature = "v2_62")] #[cfg_attr(docsrs, doc(cfg(feature = "v2_62")))] pub fn g_queue_insert_before_link(queue: *mut GQueue, sibling: *mut GList, link_: *mut GList); - pub fn g_queue_insert_sorted( - queue: *mut GQueue, - data: gpointer, - func: GCompareDataFunc, - user_data: gpointer, - ); + pub fn g_queue_insert_sorted(queue: *mut GQueue, data: gpointer, func: GCompareDataFunc, user_data: gpointer); pub fn g_queue_is_empty(queue: *mut GQueue) -> gboolean; pub fn g_queue_link_index(queue: *mut GQueue, link_: *mut GList) -> c_int; pub fn g_queue_peek_head(queue: *mut GQueue) -> gpointer; @@ -4764,10 +3359,6 @@ extern "C" { //========================================================================= // GRand //========================================================================= - pub fn g_rand_get_type() -> GType; - pub fn g_rand_new() -> *mut GRand; - pub fn g_rand_new_with_seed(seed: u32) -> *mut GRand; - pub fn g_rand_new_with_seed_array(seed: *const u32, seed_length: c_uint) -> *mut GRand; pub fn g_rand_copy(rand_: *mut GRand) -> *mut GRand; pub fn g_rand_double(rand_: *mut GRand) -> c_double; pub fn g_rand_double_range(rand_: *mut GRand, begin: c_double, end: c_double) -> c_double; @@ -4776,6 +3367,9 @@ extern "C" { pub fn g_rand_int_range(rand_: *mut GRand, begin: i32, end: i32) -> i32; pub fn g_rand_set_seed(rand_: *mut GRand, seed: u32); pub fn g_rand_set_seed_array(rand_: *mut GRand, seed: *const u32, seed_length: c_uint); + pub fn g_rand_new() -> *mut GRand; + pub fn g_rand_new_with_seed(seed: u32) -> *mut GRand; + pub fn g_rand_new_with_seed_array(seed: *const u32, seed_length: c_uint) -> *mut GRand; //========================================================================= // GRecMutex @@ -4790,12 +3384,7 @@ extern "C" { // GRegex //========================================================================= pub fn g_regex_get_type() -> GType; - pub fn g_regex_new( - pattern: *const c_char, - compile_options: GRegexCompileFlags, - match_options: GRegexMatchFlags, - error: *mut *mut GError, - ) -> *mut GRegex; + pub fn g_regex_new(pattern: *const c_char, compile_options: GRegexCompileFlags, match_options: GRegexMatchFlags, error: *mut *mut GError) -> *mut GRegex; pub fn g_regex_get_capture_count(regex: *const GRegex) -> c_int; pub fn g_regex_get_compile_flags(regex: *const GRegex) -> GRegexCompileFlags; pub fn g_regex_get_has_cr_or_lf(regex: *const GRegex) -> gboolean; @@ -4804,122 +3393,23 @@ extern "C" { pub fn g_regex_get_max_lookbehind(regex: *const GRegex) -> c_int; pub fn g_regex_get_pattern(regex: *const GRegex) -> *const c_char; pub fn g_regex_get_string_number(regex: *const GRegex, name: *const c_char) -> c_int; - pub fn g_regex_match( - regex: *const GRegex, - string: *const c_char, - match_options: GRegexMatchFlags, - match_info: *mut *mut GMatchInfo, - ) -> gboolean; - pub fn g_regex_match_all( - regex: *const GRegex, - string: *const c_char, - match_options: GRegexMatchFlags, - match_info: *mut *mut GMatchInfo, - ) -> gboolean; - pub fn g_regex_match_all_full( - regex: *const GRegex, - string: *const c_char, - string_len: ssize_t, - start_position: c_int, - match_options: GRegexMatchFlags, - match_info: *mut *mut GMatchInfo, - error: *mut *mut GError, - ) -> gboolean; - pub fn g_regex_match_full( - regex: *const GRegex, - string: *const c_char, - string_len: ssize_t, - start_position: c_int, - match_options: GRegexMatchFlags, - match_info: *mut *mut GMatchInfo, - error: *mut *mut GError, - ) -> gboolean; + pub fn g_regex_match(regex: *const GRegex, string: *const c_char, match_options: GRegexMatchFlags, match_info: *mut *mut GMatchInfo) -> gboolean; + pub fn g_regex_match_all(regex: *const GRegex, string: *const c_char, match_options: GRegexMatchFlags, match_info: *mut *mut GMatchInfo) -> gboolean; + pub fn g_regex_match_all_full(regex: *const GRegex, string: *const c_char, string_len: ssize_t, start_position: c_int, match_options: GRegexMatchFlags, match_info: *mut *mut GMatchInfo, error: *mut *mut GError) -> gboolean; + pub fn g_regex_match_full(regex: *const GRegex, string: *const c_char, string_len: ssize_t, start_position: c_int, match_options: GRegexMatchFlags, match_info: *mut *mut GMatchInfo, error: *mut *mut GError) -> gboolean; pub fn g_regex_ref(regex: *mut GRegex) -> *mut GRegex; - pub fn g_regex_replace( - regex: *const GRegex, - string: *const c_char, - string_len: ssize_t, - start_position: c_int, - replacement: *const c_char, - match_options: GRegexMatchFlags, - error: *mut *mut GError, - ) -> *mut c_char; - pub fn g_regex_replace_eval( - regex: *const GRegex, - string: *const c_char, - string_len: ssize_t, - start_position: c_int, - match_options: GRegexMatchFlags, - eval: GRegexEvalCallback, - user_data: gpointer, - error: *mut *mut GError, - ) -> *mut c_char; - pub fn g_regex_replace_literal( - regex: *const GRegex, - string: *const c_char, - string_len: ssize_t, - start_position: c_int, - replacement: *const c_char, - match_options: GRegexMatchFlags, - error: *mut *mut GError, - ) -> *mut c_char; - pub fn g_regex_split( - regex: *const GRegex, - string: *const c_char, - match_options: GRegexMatchFlags, - ) -> *mut *mut c_char; - pub fn g_regex_split_full( - regex: *const GRegex, - string: *const c_char, - string_len: ssize_t, - start_position: c_int, - match_options: GRegexMatchFlags, - max_tokens: c_int, - error: *mut *mut GError, - ) -> *mut *mut c_char; + pub fn g_regex_replace(regex: *const GRegex, string: *const c_char, string_len: ssize_t, start_position: c_int, replacement: *const c_char, match_options: GRegexMatchFlags, error: *mut *mut GError) -> *mut c_char; + pub fn g_regex_replace_eval(regex: *const GRegex, string: *const c_char, string_len: ssize_t, start_position: c_int, match_options: GRegexMatchFlags, eval: GRegexEvalCallback, user_data: gpointer, error: *mut *mut GError) -> *mut c_char; + pub fn g_regex_replace_literal(regex: *const GRegex, string: *const c_char, string_len: ssize_t, start_position: c_int, replacement: *const c_char, match_options: GRegexMatchFlags, error: *mut *mut GError) -> *mut c_char; + pub fn g_regex_split(regex: *const GRegex, string: *const c_char, match_options: GRegexMatchFlags) -> *mut *mut c_char; + pub fn g_regex_split_full(regex: *const GRegex, string: *const c_char, string_len: ssize_t, start_position: c_int, match_options: GRegexMatchFlags, max_tokens: c_int, error: *mut *mut GError) -> *mut *mut c_char; pub fn g_regex_unref(regex: *mut GRegex); - pub fn g_regex_check_replacement( - replacement: *const c_char, - has_references: *mut gboolean, - error: *mut *mut GError, - ) -> gboolean; + pub fn g_regex_check_replacement(replacement: *const c_char, has_references: *mut gboolean, error: *mut *mut GError) -> gboolean; pub fn g_regex_error_quark() -> GQuark; pub fn g_regex_escape_nul(string: *const c_char, length: c_int) -> *mut c_char; pub fn g_regex_escape_string(string: *const c_char, length: c_int) -> *mut c_char; - pub fn g_regex_match_simple( - pattern: *const c_char, - string: *const c_char, - compile_options: GRegexCompileFlags, - match_options: GRegexMatchFlags, - ) -> gboolean; - pub fn g_regex_split_simple( - pattern: *const c_char, - string: *const c_char, - compile_options: GRegexCompileFlags, - match_options: GRegexMatchFlags, - ) -> *mut *mut c_char; - - //========================================================================= - // GRelation - //========================================================================= - pub fn g_relation_count(relation: *mut GRelation, key: gconstpointer, field: c_int) -> c_int; - pub fn g_relation_delete(relation: *mut GRelation, key: gconstpointer, field: c_int) -> c_int; - pub fn g_relation_destroy(relation: *mut GRelation); - pub fn g_relation_exists(relation: *mut GRelation, ...) -> gboolean; - pub fn g_relation_index( - relation: *mut GRelation, - field: c_int, - hash_func: GHashFunc, - key_equal_func: GEqualFunc, - ); - pub fn g_relation_insert(relation: *mut GRelation, ...); - pub fn g_relation_print(relation: *mut GRelation); - pub fn g_relation_select( - relation: *mut GRelation, - key: gconstpointer, - field: c_int, - ) -> *mut GTuples; - pub fn g_relation_new(fields: c_int) -> *mut GRelation; + pub fn g_regex_match_simple(pattern: *const c_char, string: *const c_char, compile_options: GRegexCompileFlags, match_options: GRegexMatchFlags) -> gboolean; + pub fn g_regex_split_simple(pattern: *const c_char, string: *const c_char, compile_options: GRegexCompileFlags, match_options: GRegexMatchFlags) -> *mut *mut c_char; //========================================================================= // GSList @@ -4928,58 +3418,31 @@ extern "C" { pub fn g_slist_append(list: *mut GSList, data: gpointer) -> *mut GSList; pub fn g_slist_concat(list1: *mut GSList, list2: *mut GSList) -> *mut GSList; pub fn g_slist_copy(list: *mut GSList) -> *mut GSList; - pub fn g_slist_copy_deep( - list: *mut GSList, - func: GCopyFunc, - user_data: gpointer, - ) -> *mut GSList; + pub fn g_slist_copy_deep(list: *mut GSList, func: GCopyFunc, user_data: gpointer) -> *mut GSList; pub fn g_slist_delete_link(list: *mut GSList, link_: *mut GSList) -> *mut GSList; pub fn g_slist_find(list: *mut GSList, data: gconstpointer) -> *mut GSList; - pub fn g_slist_find_custom( - list: *mut GSList, - data: gconstpointer, - func: GCompareFunc, - ) -> *mut GSList; + pub fn g_slist_find_custom(list: *mut GSList, data: gconstpointer, func: GCompareFunc) -> *mut GSList; pub fn g_slist_foreach(list: *mut GSList, func: GFunc, user_data: gpointer); pub fn g_slist_free(list: *mut GSList); pub fn g_slist_free_1(list: *mut GSList); pub fn g_slist_free_full(list: *mut GSList, free_func: GDestroyNotify); pub fn g_slist_index(list: *mut GSList, data: gconstpointer) -> c_int; pub fn g_slist_insert(list: *mut GSList, data: gpointer, position: c_int) -> *mut GSList; - pub fn g_slist_insert_before( - slist: *mut GSList, - sibling: *mut GSList, - data: gpointer, - ) -> *mut GSList; - pub fn g_slist_insert_sorted( - list: *mut GSList, - data: gpointer, - func: GCompareFunc, - ) -> *mut GSList; - pub fn g_slist_insert_sorted_with_data( - list: *mut GSList, - data: gpointer, - func: GCompareDataFunc, - user_data: gpointer, - ) -> *mut GSList; + pub fn g_slist_insert_before(slist: *mut GSList, sibling: *mut GSList, data: gpointer) -> *mut GSList; + pub fn g_slist_insert_sorted(list: *mut GSList, data: gpointer, func: GCompareFunc) -> *mut GSList; + pub fn g_slist_insert_sorted_with_data(list: *mut GSList, data: gpointer, func: GCompareDataFunc, user_data: gpointer) -> *mut GSList; pub fn g_slist_last(list: *mut GSList) -> *mut GSList; pub fn g_slist_length(list: *mut GSList) -> c_uint; pub fn g_slist_nth(list: *mut GSList, n: c_uint) -> *mut GSList; pub fn g_slist_nth_data(list: *mut GSList, n: c_uint) -> gpointer; - pub fn g_slist_pop_allocator(); pub fn g_slist_position(list: *mut GSList, llink: *mut GSList) -> c_int; pub fn g_slist_prepend(list: *mut GSList, data: gpointer) -> *mut GSList; - pub fn g_slist_push_allocator(allocator: *mut GAllocator); pub fn g_slist_remove(list: *mut GSList, data: gconstpointer) -> *mut GSList; pub fn g_slist_remove_all(list: *mut GSList, data: gconstpointer) -> *mut GSList; pub fn g_slist_remove_link(list: *mut GSList, link_: *mut GSList) -> *mut GSList; pub fn g_slist_reverse(list: *mut GSList) -> *mut GSList; pub fn g_slist_sort(list: *mut GSList, compare_func: GCompareFunc) -> *mut GSList; - pub fn g_slist_sort_with_data( - list: *mut GSList, - compare_func: GCompareDataFunc, - user_data: gpointer, - ) -> *mut GSList; + pub fn g_slist_sort_with_data(list: *mut GSList, compare_func: GCompareDataFunc, user_data: gpointer) -> *mut GSList; //========================================================================= // GScanner @@ -4996,39 +3459,13 @@ extern "C" { pub fn g_scanner_input_text(scanner: *mut GScanner, text: *const c_char, text_len: c_uint); pub fn g_scanner_lookup_symbol(scanner: *mut GScanner, symbol: *const c_char) -> gpointer; pub fn g_scanner_peek_next_token(scanner: *mut GScanner) -> GTokenType; - pub fn g_scanner_scope_add_symbol( - scanner: *mut GScanner, - scope_id: c_uint, - symbol: *const c_char, - value: gpointer, - ); - pub fn g_scanner_scope_foreach_symbol( - scanner: *mut GScanner, - scope_id: c_uint, - func: GHFunc, - user_data: gpointer, - ); - pub fn g_scanner_scope_lookup_symbol( - scanner: *mut GScanner, - scope_id: c_uint, - symbol: *const c_char, - ) -> gpointer; - pub fn g_scanner_scope_remove_symbol( - scanner: *mut GScanner, - scope_id: c_uint, - symbol: *const c_char, - ); + pub fn g_scanner_scope_add_symbol(scanner: *mut GScanner, scope_id: c_uint, symbol: *const c_char, value: gpointer); + pub fn g_scanner_scope_foreach_symbol(scanner: *mut GScanner, scope_id: c_uint, func: GHFunc, user_data: gpointer); + pub fn g_scanner_scope_lookup_symbol(scanner: *mut GScanner, scope_id: c_uint, symbol: *const c_char) -> gpointer; + pub fn g_scanner_scope_remove_symbol(scanner: *mut GScanner, scope_id: c_uint, symbol: *const c_char); pub fn g_scanner_set_scope(scanner: *mut GScanner, scope_id: c_uint) -> c_uint; pub fn g_scanner_sync_file_offset(scanner: *mut GScanner); - pub fn g_scanner_unexp_token( - scanner: *mut GScanner, - expected_token: GTokenType, - identifier_spec: *const c_char, - symbol_spec: *const c_char, - symbol_name: *const c_char, - message: *const c_char, - is_error: c_int, - ); + pub fn g_scanner_unexp_token(scanner: *mut GScanner, expected_token: GTokenType, identifier_spec: *const c_char, symbol_spec: *const c_char, symbol_name: *const c_char, message: *const c_char, is_error: c_int); pub fn g_scanner_warn(scanner: *mut GScanner, format: *const c_char, ...); pub fn g_scanner_new(config_templ: *const GScannerConfig) -> *mut GScanner; @@ -5042,83 +3479,28 @@ extern "C" { pub fn g_sequence_get_end_iter(seq: *mut GSequence) -> *mut GSequenceIter; pub fn g_sequence_get_iter_at_pos(seq: *mut GSequence, pos: c_int) -> *mut GSequenceIter; pub fn g_sequence_get_length(seq: *mut GSequence) -> c_int; - pub fn g_sequence_insert_sorted( - seq: *mut GSequence, - data: gpointer, - cmp_func: GCompareDataFunc, - cmp_data: gpointer, - ) -> *mut GSequenceIter; - pub fn g_sequence_insert_sorted_iter( - seq: *mut GSequence, - data: gpointer, - iter_cmp: GSequenceIterCompareFunc, - cmp_data: gpointer, - ) -> *mut GSequenceIter; + pub fn g_sequence_insert_sorted(seq: *mut GSequence, data: gpointer, cmp_func: GCompareDataFunc, cmp_data: gpointer) -> *mut GSequenceIter; + pub fn g_sequence_insert_sorted_iter(seq: *mut GSequence, data: gpointer, iter_cmp: GSequenceIterCompareFunc, cmp_data: gpointer) -> *mut GSequenceIter; pub fn g_sequence_is_empty(seq: *mut GSequence) -> gboolean; - pub fn g_sequence_lookup( - seq: *mut GSequence, - data: gpointer, - cmp_func: GCompareDataFunc, - cmp_data: gpointer, - ) -> *mut GSequenceIter; - pub fn g_sequence_lookup_iter( - seq: *mut GSequence, - data: gpointer, - iter_cmp: GSequenceIterCompareFunc, - cmp_data: gpointer, - ) -> *mut GSequenceIter; + pub fn g_sequence_lookup(seq: *mut GSequence, data: gpointer, cmp_func: GCompareDataFunc, cmp_data: gpointer) -> *mut GSequenceIter; + pub fn g_sequence_lookup_iter(seq: *mut GSequence, data: gpointer, iter_cmp: GSequenceIterCompareFunc, cmp_data: gpointer) -> *mut GSequenceIter; pub fn g_sequence_prepend(seq: *mut GSequence, data: gpointer) -> *mut GSequenceIter; - pub fn g_sequence_search( - seq: *mut GSequence, - data: gpointer, - cmp_func: GCompareDataFunc, - cmp_data: gpointer, - ) -> *mut GSequenceIter; - pub fn g_sequence_search_iter( - seq: *mut GSequence, - data: gpointer, - iter_cmp: GSequenceIterCompareFunc, - cmp_data: gpointer, - ) -> *mut GSequenceIter; + pub fn g_sequence_search(seq: *mut GSequence, data: gpointer, cmp_func: GCompareDataFunc, cmp_data: gpointer) -> *mut GSequenceIter; + pub fn g_sequence_search_iter(seq: *mut GSequence, data: gpointer, iter_cmp: GSequenceIterCompareFunc, cmp_data: gpointer) -> *mut GSequenceIter; pub fn g_sequence_sort(seq: *mut GSequence, cmp_func: GCompareDataFunc, cmp_data: gpointer); - pub fn g_sequence_sort_iter( - seq: *mut GSequence, - cmp_func: GSequenceIterCompareFunc, - cmp_data: gpointer, - ); - pub fn g_sequence_foreach_range( - begin: *mut GSequenceIter, - end: *mut GSequenceIter, - func: GFunc, - user_data: gpointer, - ); + pub fn g_sequence_sort_iter(seq: *mut GSequence, cmp_func: GSequenceIterCompareFunc, cmp_data: gpointer); + pub fn g_sequence_foreach_range(begin: *mut GSequenceIter, end: *mut GSequenceIter, func: GFunc, user_data: gpointer); pub fn g_sequence_get(iter: *mut GSequenceIter) -> gpointer; - pub fn g_sequence_insert_before(iter: *mut GSequenceIter, data: gpointer) - -> *mut GSequenceIter; + pub fn g_sequence_insert_before(iter: *mut GSequenceIter, data: gpointer) -> *mut GSequenceIter; pub fn g_sequence_move(src: *mut GSequenceIter, dest: *mut GSequenceIter); - pub fn g_sequence_move_range( - dest: *mut GSequenceIter, - begin: *mut GSequenceIter, - end: *mut GSequenceIter, - ); + pub fn g_sequence_move_range(dest: *mut GSequenceIter, begin: *mut GSequenceIter, end: *mut GSequenceIter); pub fn g_sequence_new(data_destroy: GDestroyNotify) -> *mut GSequence; - pub fn g_sequence_range_get_midpoint( - begin: *mut GSequenceIter, - end: *mut GSequenceIter, - ) -> *mut GSequenceIter; + pub fn g_sequence_range_get_midpoint(begin: *mut GSequenceIter, end: *mut GSequenceIter) -> *mut GSequenceIter; pub fn g_sequence_remove(iter: *mut GSequenceIter); pub fn g_sequence_remove_range(begin: *mut GSequenceIter, end: *mut GSequenceIter); pub fn g_sequence_set(iter: *mut GSequenceIter, data: gpointer); - pub fn g_sequence_sort_changed( - iter: *mut GSequenceIter, - cmp_func: GCompareDataFunc, - cmp_data: gpointer, - ); - pub fn g_sequence_sort_changed_iter( - iter: *mut GSequenceIter, - iter_cmp: GSequenceIterCompareFunc, - cmp_data: gpointer, - ); + pub fn g_sequence_sort_changed(iter: *mut GSequenceIter, cmp_func: GCompareDataFunc, cmp_data: gpointer); + pub fn g_sequence_sort_changed_iter(iter: *mut GSequenceIter, iter_cmp: GSequenceIterCompareFunc, cmp_data: gpointer); pub fn g_sequence_swap(a: *mut GSequenceIter, b: *mut GSequenceIter); //========================================================================= @@ -5158,17 +3540,8 @@ extern "C" { pub fn g_source_remove_child_source(source: *mut GSource, child_source: *mut GSource); pub fn g_source_remove_poll(source: *mut GSource, fd: *mut GPollFD); pub fn g_source_remove_unix_fd(source: *mut GSource, tag: gpointer); - pub fn g_source_set_callback( - source: *mut GSource, - func: GSourceFunc, - data: gpointer, - notify: GDestroyNotify, - ); - pub fn g_source_set_callback_indirect( - source: *mut GSource, - callback_data: gpointer, - callback_funcs: *mut GSourceCallbackFuncs, - ); + pub fn g_source_set_callback(source: *mut GSource, func: GSourceFunc, data: gpointer, notify: GDestroyNotify); + pub fn g_source_set_callback_indirect(source: *mut GSource, callback_data: gpointer, callback_funcs: *mut GSourceCallbackFuncs); pub fn g_source_set_can_recurse(source: *mut GSource, can_recurse: gboolean); #[cfg(feature = "v2_64")] #[cfg_attr(docsrs, doc(cfg(feature = "v2_64")))] @@ -5182,56 +3555,11 @@ extern "C" { pub fn g_source_set_static_name(source: *mut GSource, name: *const c_char); pub fn g_source_unref(source: *mut GSource); pub fn g_source_remove(tag: c_uint) -> gboolean; - pub fn g_source_remove_by_funcs_user_data( - funcs: *mut GSourceFuncs, - user_data: gpointer, - ) -> gboolean; + pub fn g_source_remove_by_funcs_user_data(funcs: *mut GSourceFuncs, user_data: gpointer) -> gboolean; pub fn g_source_remove_by_user_data(user_data: gpointer) -> gboolean; pub fn g_source_set_name_by_id(tag: c_uint, name: *const c_char); //========================================================================= - // GStaticMutex - //========================================================================= - pub fn g_static_mutex_free(mutex: *mut GStaticMutex); - pub fn g_static_mutex_get_mutex_impl(mutex: *mut GStaticMutex) -> *mut GMutex; - pub fn g_static_mutex_init(mutex: *mut GStaticMutex); - - //========================================================================= - // GStaticPrivate - //========================================================================= - pub fn g_static_private_free(private_key: *mut GStaticPrivate); - pub fn g_static_private_get(private_key: *mut GStaticPrivate) -> gpointer; - pub fn g_static_private_init(private_key: *mut GStaticPrivate); - pub fn g_static_private_set( - private_key: *mut GStaticPrivate, - data: gpointer, - notify: GDestroyNotify, - ); - - //========================================================================= - // GStaticRWLock - //========================================================================= - pub fn g_static_rw_lock_free(lock: *mut GStaticRWLock); - pub fn g_static_rw_lock_init(lock: *mut GStaticRWLock); - pub fn g_static_rw_lock_reader_lock(lock: *mut GStaticRWLock); - pub fn g_static_rw_lock_reader_trylock(lock: *mut GStaticRWLock) -> gboolean; - pub fn g_static_rw_lock_reader_unlock(lock: *mut GStaticRWLock); - pub fn g_static_rw_lock_writer_lock(lock: *mut GStaticRWLock); - pub fn g_static_rw_lock_writer_trylock(lock: *mut GStaticRWLock) -> gboolean; - pub fn g_static_rw_lock_writer_unlock(lock: *mut GStaticRWLock); - - //========================================================================= - // GStaticRecMutex - //========================================================================= - pub fn g_static_rec_mutex_free(mutex: *mut GStaticRecMutex); - pub fn g_static_rec_mutex_init(mutex: *mut GStaticRecMutex); - pub fn g_static_rec_mutex_lock(mutex: *mut GStaticRecMutex); - pub fn g_static_rec_mutex_lock_full(mutex: *mut GStaticRecMutex, depth: c_uint); - pub fn g_static_rec_mutex_trylock(mutex: *mut GStaticRecMutex) -> gboolean; - pub fn g_static_rec_mutex_unlock(mutex: *mut GStaticRecMutex); - pub fn g_static_rec_mutex_unlock_full(mutex: *mut GStaticRecMutex) -> c_uint; - - //========================================================================= // GString //========================================================================= pub fn g_gstring_get_type() -> GType; @@ -5243,19 +3571,10 @@ extern "C" { pub fn g_string_sized_new(dfl_size: size_t) -> *mut GString; pub fn g_string_append(string: *mut GString, val: *const c_char) -> *mut GString; pub fn g_string_append_c(string: *mut GString, c: c_char) -> *mut GString; - pub fn g_string_append_len( - string: *mut GString, - val: *const c_char, - len: ssize_t, - ) -> *mut GString; + pub fn g_string_append_len(string: *mut GString, val: *const c_char, len: ssize_t) -> *mut GString; pub fn g_string_append_printf(string: *mut GString, format: *const c_char, ...); pub fn g_string_append_unichar(string: *mut GString, wc: u32) -> *mut GString; - pub fn g_string_append_uri_escaped( - string: *mut GString, - unescaped: *const c_char, - reserved_chars_allowed: *const c_char, - allow_utf8: gboolean, - ) -> *mut GString; + pub fn g_string_append_uri_escaped(string: *mut GString, unescaped: *const c_char, reserved_chars_allowed: *const c_char, allow_utf8: gboolean) -> *mut GString; //pub fn g_string_append_vprintf(string: *mut GString, format: *const c_char, args: /*Unimplemented*/va_list); pub fn g_string_ascii_down(string: *mut GString) -> *mut GString; pub fn g_string_ascii_up(string: *mut GString) -> *mut GString; @@ -5271,41 +3590,18 @@ extern "C" { pub fn g_string_hash(str: *const GString) -> c_uint; pub fn g_string_insert(string: *mut GString, pos: ssize_t, val: *const c_char) -> *mut GString; pub fn g_string_insert_c(string: *mut GString, pos: ssize_t, c: c_char) -> *mut GString; - pub fn g_string_insert_len( - string: *mut GString, - pos: ssize_t, - val: *const c_char, - len: ssize_t, - ) -> *mut GString; + pub fn g_string_insert_len(string: *mut GString, pos: ssize_t, val: *const c_char, len: ssize_t) -> *mut GString; pub fn g_string_insert_unichar(string: *mut GString, pos: ssize_t, wc: u32) -> *mut GString; - pub fn g_string_overwrite( - string: *mut GString, - pos: size_t, - val: *const c_char, - ) -> *mut GString; - pub fn g_string_overwrite_len( - string: *mut GString, - pos: size_t, - val: *const c_char, - len: ssize_t, - ) -> *mut GString; + pub fn g_string_overwrite(string: *mut GString, pos: size_t, val: *const c_char) -> *mut GString; + pub fn g_string_overwrite_len(string: *mut GString, pos: size_t, val: *const c_char, len: ssize_t) -> *mut GString; pub fn g_string_prepend(string: *mut GString, val: *const c_char) -> *mut GString; pub fn g_string_prepend_c(string: *mut GString, c: c_char) -> *mut GString; - pub fn g_string_prepend_len( - string: *mut GString, - val: *const c_char, - len: ssize_t, - ) -> *mut GString; + pub fn g_string_prepend_len(string: *mut GString, val: *const c_char, len: ssize_t) -> *mut GString; pub fn g_string_prepend_unichar(string: *mut GString, wc: u32) -> *mut GString; pub fn g_string_printf(string: *mut GString, format: *const c_char, ...); #[cfg(feature = "v2_68")] #[cfg_attr(docsrs, doc(cfg(feature = "v2_68")))] - pub fn g_string_replace( - string: *mut GString, - find: *const c_char, - replace: *const c_char, - limit: c_uint, - ) -> c_uint; + pub fn g_string_replace(string: *mut GString, find: *const c_char, replace: *const c_char, limit: c_uint) -> c_uint; pub fn g_string_set_size(string: *mut GString, len: size_t) -> *mut GString; pub fn g_string_truncate(string: *mut GString, len: size_t) -> *mut GString; pub fn g_string_up(string: *mut GString) -> *mut GString; @@ -5317,15 +3613,8 @@ extern "C" { pub fn g_string_chunk_clear(chunk: *mut GStringChunk); pub fn g_string_chunk_free(chunk: *mut GStringChunk); pub fn g_string_chunk_insert(chunk: *mut GStringChunk, string: *const c_char) -> *mut c_char; - pub fn g_string_chunk_insert_const( - chunk: *mut GStringChunk, - string: *const c_char, - ) -> *mut c_char; - pub fn g_string_chunk_insert_len( - chunk: *mut GStringChunk, - string: *const c_char, - len: ssize_t, - ) -> *mut c_char; + pub fn g_string_chunk_insert_const(chunk: *mut GStringChunk, string: *const c_char) -> *mut c_char; + pub fn g_string_chunk_insert_len(chunk: *mut GStringChunk, string: *const c_char, len: ssize_t) -> *mut c_char; pub fn g_string_chunk_new(size: size_t) -> *mut GStringChunk; //========================================================================= @@ -5333,12 +3622,6 @@ extern "C" { //========================================================================= #[cfg(feature = "v2_68")] #[cfg_attr(docsrs, doc(cfg(feature = "v2_68")))] - pub fn g_strv_builder_get_type() -> GType; - #[cfg(feature = "v2_68")] - #[cfg_attr(docsrs, doc(cfg(feature = "v2_68")))] - pub fn g_strv_builder_new() -> *mut GStrvBuilder; - #[cfg(feature = "v2_68")] - #[cfg_attr(docsrs, doc(cfg(feature = "v2_68")))] pub fn g_strv_builder_add(builder: *mut GStrvBuilder, value: *const c_char); #[cfg(feature = "v2_68")] #[cfg_attr(docsrs, doc(cfg(feature = "v2_68")))] @@ -5354,10 +3637,10 @@ extern "C" { pub fn g_strv_builder_ref(builder: *mut GStrvBuilder) -> *mut GStrvBuilder; #[cfg(feature = "v2_68")] #[cfg_attr(docsrs, doc(cfg(feature = "v2_68")))] - pub fn g_strv_builder_take(builder: *mut GStrvBuilder, value: *mut c_char); + pub fn g_strv_builder_unref(builder: *mut GStrvBuilder); #[cfg(feature = "v2_68")] #[cfg_attr(docsrs, doc(cfg(feature = "v2_68")))] - pub fn g_strv_builder_unref(builder: *mut GStrvBuilder); + pub fn g_strv_builder_new() -> *mut GStrvBuilder; //========================================================================= // GTestCase @@ -5393,37 +3676,12 @@ extern "C" { //========================================================================= pub fn g_thread_get_type() -> GType; pub fn g_thread_new(name: *const c_char, func: GThreadFunc, data: gpointer) -> *mut GThread; - pub fn g_thread_try_new( - name: *const c_char, - func: GThreadFunc, - data: gpointer, - error: *mut *mut GError, - ) -> *mut GThread; + pub fn g_thread_try_new(name: *const c_char, func: GThreadFunc, data: gpointer, error: *mut *mut GError) -> *mut GThread; pub fn g_thread_join(thread: *mut GThread) -> gpointer; pub fn g_thread_ref(thread: *mut GThread) -> *mut GThread; - pub fn g_thread_set_priority(thread: *mut GThread, priority: GThreadPriority); pub fn g_thread_unref(thread: *mut GThread); - pub fn g_thread_create( - func: GThreadFunc, - data: gpointer, - joinable: gboolean, - error: *mut *mut GError, - ) -> *mut GThread; - pub fn g_thread_create_full( - func: GThreadFunc, - data: gpointer, - stack_size: c_ulong, - joinable: gboolean, - bound: gboolean, - priority: GThreadPriority, - error: *mut *mut GError, - ) -> *mut GThread; pub fn g_thread_error_quark() -> GQuark; pub fn g_thread_exit(retval: gpointer); - pub fn g_thread_foreach(thread_func: GFunc, user_data: gpointer); - pub fn g_thread_get_initialized() -> gboolean; - pub fn g_thread_init(vtable: gpointer); - pub fn g_thread_init_with_errorcheck_mutexes(vtable: gpointer); pub fn g_thread_self() -> *mut GThread; pub fn g_thread_yield(); @@ -5434,42 +3692,17 @@ extern "C" { pub fn g_thread_pool_get_max_threads(pool: *mut GThreadPool) -> c_int; pub fn g_thread_pool_get_num_threads(pool: *mut GThreadPool) -> c_uint; pub fn g_thread_pool_move_to_front(pool: *mut GThreadPool, data: gpointer) -> gboolean; - pub fn g_thread_pool_push( - pool: *mut GThreadPool, - data: gpointer, - error: *mut *mut GError, - ) -> gboolean; - pub fn g_thread_pool_set_max_threads( - pool: *mut GThreadPool, - max_threads: c_int, - error: *mut *mut GError, - ) -> gboolean; - pub fn g_thread_pool_set_sort_function( - pool: *mut GThreadPool, - func: GCompareDataFunc, - user_data: gpointer, - ); + pub fn g_thread_pool_push(pool: *mut GThreadPool, data: gpointer, error: *mut *mut GError) -> gboolean; + pub fn g_thread_pool_set_max_threads(pool: *mut GThreadPool, max_threads: c_int, error: *mut *mut GError) -> gboolean; + pub fn g_thread_pool_set_sort_function(pool: *mut GThreadPool, func: GCompareDataFunc, user_data: gpointer); pub fn g_thread_pool_unprocessed(pool: *mut GThreadPool) -> c_uint; pub fn g_thread_pool_get_max_idle_time() -> c_uint; pub fn g_thread_pool_get_max_unused_threads() -> c_int; pub fn g_thread_pool_get_num_unused_threads() -> c_uint; - pub fn g_thread_pool_new( - func: GFunc, - user_data: gpointer, - max_threads: c_int, - exclusive: gboolean, - error: *mut *mut GError, - ) -> *mut GThreadPool; + pub fn g_thread_pool_new(func: GFunc, user_data: gpointer, max_threads: c_int, exclusive: gboolean, error: *mut *mut GError) -> *mut GThreadPool; #[cfg(feature = "v2_70")] #[cfg_attr(docsrs, doc(cfg(feature = "v2_70")))] - pub fn g_thread_pool_new_full( - func: GFunc, - user_data: gpointer, - item_free_func: GDestroyNotify, - max_threads: c_int, - exclusive: gboolean, - error: *mut *mut GError, - ) -> *mut GThreadPool; + pub fn g_thread_pool_new_full(func: GFunc, user_data: gpointer, item_free_func: GDestroyNotify, max_threads: c_int, exclusive: gboolean, error: *mut *mut GError) -> *mut GThreadPool; pub fn g_thread_pool_set_max_idle_time(interval: c_uint); pub fn g_thread_pool_set_max_unused_threads(max_threads: c_int); pub fn g_thread_pool_stop_unused_threads(); @@ -5532,16 +3765,8 @@ extern "C" { //========================================================================= pub fn g_tree_get_type() -> GType; pub fn g_tree_new(key_compare_func: GCompareFunc) -> *mut GTree; - pub fn g_tree_new_full( - key_compare_func: GCompareDataFunc, - key_compare_data: gpointer, - key_destroy_func: GDestroyNotify, - value_destroy_func: GDestroyNotify, - ) -> *mut GTree; - pub fn g_tree_new_with_data( - key_compare_func: GCompareDataFunc, - key_compare_data: gpointer, - ) -> *mut GTree; + pub fn g_tree_new_full(key_compare_func: GCompareDataFunc, key_compare_data: gpointer, key_destroy_func: GDestroyNotify, value_destroy_func: GDestroyNotify) -> *mut GTree; + pub fn g_tree_new_with_data(key_compare_func: GCompareDataFunc, key_compare_data: gpointer) -> *mut GTree; pub fn g_tree_destroy(tree: *mut GTree); pub fn g_tree_foreach(tree: *mut GTree, func: GTraverseFunc, user_data: gpointer); #[cfg(feature = "v2_68")] @@ -5553,12 +3778,7 @@ extern "C" { #[cfg_attr(docsrs, doc(cfg(feature = "v2_68")))] pub fn g_tree_insert_node(tree: *mut GTree, key: gpointer, value: gpointer) -> *mut GTreeNode; pub fn g_tree_lookup(tree: *mut GTree, key: gconstpointer) -> gpointer; - pub fn g_tree_lookup_extended( - tree: *mut GTree, - lookup_key: gconstpointer, - orig_key: *mut gpointer, - value: *mut gpointer, - ) -> gboolean; + pub fn g_tree_lookup_extended(tree: *mut GTree, lookup_key: gconstpointer, orig_key: *mut gpointer, value: *mut gpointer) -> gboolean; #[cfg(feature = "v2_68")] #[cfg_attr(docsrs, doc(cfg(feature = "v2_68")))] pub fn g_tree_lookup_node(tree: *mut GTree, key: gconstpointer) -> *mut GTreeNode; @@ -5581,25 +3801,12 @@ extern "C" { #[cfg(feature = "v2_68")] #[cfg_attr(docsrs, doc(cfg(feature = "v2_68")))] pub fn g_tree_replace_node(tree: *mut GTree, key: gpointer, value: gpointer) -> *mut GTreeNode; - pub fn g_tree_search( - tree: *mut GTree, - search_func: GCompareFunc, - user_data: gconstpointer, - ) -> gpointer; + pub fn g_tree_search(tree: *mut GTree, search_func: GCompareFunc, user_data: gconstpointer) -> gpointer; #[cfg(feature = "v2_68")] #[cfg_attr(docsrs, doc(cfg(feature = "v2_68")))] - pub fn g_tree_search_node( - tree: *mut GTree, - search_func: GCompareFunc, - user_data: gconstpointer, - ) -> *mut GTreeNode; + pub fn g_tree_search_node(tree: *mut GTree, search_func: GCompareFunc, user_data: gconstpointer) -> *mut GTreeNode; pub fn g_tree_steal(tree: *mut GTree, key: gconstpointer) -> gboolean; - pub fn g_tree_traverse( - tree: *mut GTree, - traverse_func: GTraverseFunc, - traverse_type: GTraverseType, - user_data: gpointer, - ); + pub fn g_tree_traverse(tree: *mut GTree, traverse_func: GTraverseFunc, traverse_type: GTraverseType, user_data: gpointer); pub fn g_tree_unref(tree: *mut GTree); #[cfg(feature = "v2_68")] #[cfg_attr(docsrs, doc(cfg(feature = "v2_68")))] @@ -5622,12 +3829,6 @@ extern "C" { pub fn g_tree_node_value(node: *mut GTreeNode) -> gpointer; //========================================================================= - // GTuples - //========================================================================= - pub fn g_tuples_destroy(tuples: *mut GTuples); - pub fn g_tuples_index(tuples: *mut GTuples, index_: c_int, field: c_int) -> gpointer; - - //========================================================================= // GUri //========================================================================= #[cfg(feature = "v2_66")] @@ -5668,12 +3869,7 @@ extern "C" { pub fn g_uri_get_userinfo(uri: *mut GUri) -> *const c_char; #[cfg(feature = "v2_66")] #[cfg_attr(docsrs, doc(cfg(feature = "v2_66")))] - pub fn g_uri_parse_relative( - base_uri: *mut GUri, - uri_ref: *const c_char, - flags: GUriFlags, - error: *mut *mut GError, - ) -> *mut GUri; + pub fn g_uri_parse_relative(base_uri: *mut GUri, uri_ref: *const c_char, flags: GUriFlags, error: *mut *mut GError) -> *mut GUri; #[cfg(feature = "v2_66")] #[cfg_attr(docsrs, doc(cfg(feature = "v2_66")))] pub fn g_uri_ref(uri: *mut GUri) -> *mut GUri; @@ -5688,231 +3884,84 @@ extern "C" { pub fn g_uri_unref(uri: *mut GUri); #[cfg(feature = "v2_66")] #[cfg_attr(docsrs, doc(cfg(feature = "v2_66")))] - pub fn g_uri_build( - flags: GUriFlags, - scheme: *const c_char, - userinfo: *const c_char, - host: *const c_char, - port: c_int, - path: *const c_char, - query: *const c_char, - fragment: *const c_char, - ) -> *mut GUri; - #[cfg(feature = "v2_66")] - #[cfg_attr(docsrs, doc(cfg(feature = "v2_66")))] - pub fn g_uri_build_with_user( - flags: GUriFlags, - scheme: *const c_char, - user: *const c_char, - password: *const c_char, - auth_params: *const c_char, - host: *const c_char, - port: c_int, - path: *const c_char, - query: *const c_char, - fragment: *const c_char, - ) -> *mut GUri; + pub fn g_uri_build(flags: GUriFlags, scheme: *const c_char, userinfo: *const c_char, host: *const c_char, port: c_int, path: *const c_char, query: *const c_char, fragment: *const c_char) -> *mut GUri; + #[cfg(feature = "v2_66")] + #[cfg_attr(docsrs, doc(cfg(feature = "v2_66")))] + pub fn g_uri_build_with_user(flags: GUriFlags, scheme: *const c_char, user: *const c_char, password: *const c_char, auth_params: *const c_char, host: *const c_char, port: c_int, path: *const c_char, query: *const c_char, fragment: *const c_char) -> *mut GUri; #[cfg(feature = "v2_66")] #[cfg_attr(docsrs, doc(cfg(feature = "v2_66")))] pub fn g_uri_error_quark() -> GQuark; #[cfg(feature = "v2_66")] #[cfg_attr(docsrs, doc(cfg(feature = "v2_66")))] - pub fn g_uri_escape_bytes( - unescaped: *const u8, - length: size_t, - reserved_chars_allowed: *const c_char, - ) -> *mut c_char; - pub fn g_uri_escape_string( - unescaped: *const c_char, - reserved_chars_allowed: *const c_char, - allow_utf8: gboolean, - ) -> *mut c_char; - #[cfg(feature = "v2_66")] - #[cfg_attr(docsrs, doc(cfg(feature = "v2_66")))] - pub fn g_uri_is_valid( - uri_string: *const c_char, - flags: GUriFlags, - error: *mut *mut GError, - ) -> gboolean; - #[cfg(feature = "v2_66")] - #[cfg_attr(docsrs, doc(cfg(feature = "v2_66")))] - pub fn g_uri_join( - flags: GUriFlags, - scheme: *const c_char, - userinfo: *const c_char, - host: *const c_char, - port: c_int, - path: *const c_char, - query: *const c_char, - fragment: *const c_char, - ) -> *mut c_char; - #[cfg(feature = "v2_66")] - #[cfg_attr(docsrs, doc(cfg(feature = "v2_66")))] - pub fn g_uri_join_with_user( - flags: GUriFlags, - scheme: *const c_char, - user: *const c_char, - password: *const c_char, - auth_params: *const c_char, - host: *const c_char, - port: c_int, - path: *const c_char, - query: *const c_char, - fragment: *const c_char, - ) -> *mut c_char; + pub fn g_uri_escape_bytes(unescaped: *const u8, length: size_t, reserved_chars_allowed: *const c_char) -> *mut c_char; + pub fn g_uri_escape_string(unescaped: *const c_char, reserved_chars_allowed: *const c_char, allow_utf8: gboolean) -> *mut c_char; + #[cfg(feature = "v2_66")] + #[cfg_attr(docsrs, doc(cfg(feature = "v2_66")))] + pub fn g_uri_is_valid(uri_string: *const c_char, flags: GUriFlags, error: *mut *mut GError) -> gboolean; + #[cfg(feature = "v2_66")] + #[cfg_attr(docsrs, doc(cfg(feature = "v2_66")))] + pub fn g_uri_join(flags: GUriFlags, scheme: *const c_char, userinfo: *const c_char, host: *const c_char, port: c_int, path: *const c_char, query: *const c_char, fragment: *const c_char) -> *mut c_char; + #[cfg(feature = "v2_66")] + #[cfg_attr(docsrs, doc(cfg(feature = "v2_66")))] + pub fn g_uri_join_with_user(flags: GUriFlags, scheme: *const c_char, user: *const c_char, password: *const c_char, auth_params: *const c_char, host: *const c_char, port: c_int, path: *const c_char, query: *const c_char, fragment: *const c_char) -> *mut c_char; pub fn g_uri_list_extract_uris(uri_list: *const c_char) -> *mut *mut c_char; #[cfg(feature = "v2_66")] #[cfg_attr(docsrs, doc(cfg(feature = "v2_66")))] - pub fn g_uri_parse( - uri_string: *const c_char, - flags: GUriFlags, - error: *mut *mut GError, - ) -> *mut GUri; + pub fn g_uri_parse(uri_string: *const c_char, flags: GUriFlags, error: *mut *mut GError) -> *mut GUri; #[cfg(feature = "v2_66")] #[cfg_attr(docsrs, doc(cfg(feature = "v2_66")))] - pub fn g_uri_parse_params( - params: *const c_char, - length: ssize_t, - separators: *const c_char, - flags: GUriParamsFlags, - error: *mut *mut GError, - ) -> *mut GHashTable; + pub fn g_uri_parse_params(params: *const c_char, length: ssize_t, separators: *const c_char, flags: GUriParamsFlags, error: *mut *mut GError) -> *mut GHashTable; pub fn g_uri_parse_scheme(uri: *const c_char) -> *mut c_char; #[cfg(feature = "v2_66")] #[cfg_attr(docsrs, doc(cfg(feature = "v2_66")))] pub fn g_uri_peek_scheme(uri: *const c_char) -> *const c_char; #[cfg(feature = "v2_66")] #[cfg_attr(docsrs, doc(cfg(feature = "v2_66")))] - pub fn g_uri_resolve_relative( - base_uri_string: *const c_char, - uri_ref: *const c_char, - flags: GUriFlags, - error: *mut *mut GError, - ) -> *mut c_char; - #[cfg(feature = "v2_66")] - #[cfg_attr(docsrs, doc(cfg(feature = "v2_66")))] - pub fn g_uri_split( - uri_ref: *const c_char, - flags: GUriFlags, - scheme: *mut *mut c_char, - userinfo: *mut *mut c_char, - host: *mut *mut c_char, - port: *mut c_int, - path: *mut *mut c_char, - query: *mut *mut c_char, - fragment: *mut *mut c_char, - error: *mut *mut GError, - ) -> gboolean; - #[cfg(feature = "v2_66")] - #[cfg_attr(docsrs, doc(cfg(feature = "v2_66")))] - pub fn g_uri_split_network( - uri_string: *const c_char, - flags: GUriFlags, - scheme: *mut *mut c_char, - host: *mut *mut c_char, - port: *mut c_int, - error: *mut *mut GError, - ) -> gboolean; - #[cfg(feature = "v2_66")] - #[cfg_attr(docsrs, doc(cfg(feature = "v2_66")))] - pub fn g_uri_split_with_user( - uri_ref: *const c_char, - flags: GUriFlags, - scheme: *mut *mut c_char, - user: *mut *mut c_char, - password: *mut *mut c_char, - auth_params: *mut *mut c_char, - host: *mut *mut c_char, - port: *mut c_int, - path: *mut *mut c_char, - query: *mut *mut c_char, - fragment: *mut *mut c_char, - error: *mut *mut GError, - ) -> gboolean; - #[cfg(feature = "v2_66")] - #[cfg_attr(docsrs, doc(cfg(feature = "v2_66")))] - pub fn g_uri_unescape_bytes( - escaped_string: *const c_char, - length: ssize_t, - illegal_characters: *const c_char, - error: *mut *mut GError, - ) -> *mut GBytes; - pub fn g_uri_unescape_segment( - escaped_string: *const c_char, - escaped_string_end: *const c_char, - illegal_characters: *const c_char, - ) -> *mut c_char; - pub fn g_uri_unescape_string( - escaped_string: *const c_char, - illegal_characters: *const c_char, - ) -> *mut c_char; + pub fn g_uri_resolve_relative(base_uri_string: *const c_char, uri_ref: *const c_char, flags: GUriFlags, error: *mut *mut GError) -> *mut c_char; + #[cfg(feature = "v2_66")] + #[cfg_attr(docsrs, doc(cfg(feature = "v2_66")))] + pub fn g_uri_split(uri_ref: *const c_char, flags: GUriFlags, scheme: *mut *mut c_char, userinfo: *mut *mut c_char, host: *mut *mut c_char, port: *mut c_int, path: *mut *mut c_char, query: *mut *mut c_char, fragment: *mut *mut c_char, error: *mut *mut GError) -> gboolean; + #[cfg(feature = "v2_66")] + #[cfg_attr(docsrs, doc(cfg(feature = "v2_66")))] + pub fn g_uri_split_network(uri_string: *const c_char, flags: GUriFlags, scheme: *mut *mut c_char, host: *mut *mut c_char, port: *mut c_int, error: *mut *mut GError) -> gboolean; + #[cfg(feature = "v2_66")] + #[cfg_attr(docsrs, doc(cfg(feature = "v2_66")))] + pub fn g_uri_split_with_user(uri_ref: *const c_char, flags: GUriFlags, scheme: *mut *mut c_char, user: *mut *mut c_char, password: *mut *mut c_char, auth_params: *mut *mut c_char, host: *mut *mut c_char, port: *mut c_int, path: *mut *mut c_char, query: *mut *mut c_char, fragment: *mut *mut c_char, error: *mut *mut GError) -> gboolean; + #[cfg(feature = "v2_66")] + #[cfg_attr(docsrs, doc(cfg(feature = "v2_66")))] + pub fn g_uri_unescape_bytes(escaped_string: *const c_char, length: ssize_t, illegal_characters: *const c_char, error: *mut *mut GError) -> *mut GBytes; + pub fn g_uri_unescape_segment(escaped_string: *const c_char, escaped_string_end: *const c_char, illegal_characters: *const c_char) -> *mut c_char; + pub fn g_uri_unescape_string(escaped_string: *const c_char, illegal_characters: *const c_char) -> *mut c_char; //========================================================================= // GUriParamsIter //========================================================================= #[cfg(feature = "v2_66")] #[cfg_attr(docsrs, doc(cfg(feature = "v2_66")))] - pub fn g_uri_params_iter_init( - iter: *mut GUriParamsIter, - params: *const c_char, - length: ssize_t, - separators: *const c_char, - flags: GUriParamsFlags, - ); + pub fn g_uri_params_iter_init(iter: *mut GUriParamsIter, params: *const c_char, length: ssize_t, separators: *const c_char, flags: GUriParamsFlags); #[cfg(feature = "v2_66")] #[cfg_attr(docsrs, doc(cfg(feature = "v2_66")))] - pub fn g_uri_params_iter_next( - iter: *mut GUriParamsIter, - attribute: *mut *mut c_char, - value: *mut *mut c_char, - error: *mut *mut GError, - ) -> gboolean; + pub fn g_uri_params_iter_next(iter: *mut GUriParamsIter, attribute: *mut *mut c_char, value: *mut *mut c_char, error: *mut *mut GError) -> gboolean; //========================================================================= // GVariant //========================================================================= pub fn g_variant_new(format_string: *const c_char, ...) -> *mut GVariant; - pub fn g_variant_new_array( - child_type: *const GVariantType, - children: *const *mut GVariant, - n_children: size_t, - ) -> *mut GVariant; + pub fn g_variant_new_array(child_type: *const GVariantType, children: *const *mut GVariant, n_children: size_t) -> *mut GVariant; pub fn g_variant_new_boolean(value: gboolean) -> *mut GVariant; pub fn g_variant_new_byte(value: u8) -> *mut GVariant; pub fn g_variant_new_bytestring(string: *const u8) -> *mut GVariant; - pub fn g_variant_new_bytestring_array( - strv: *const *const c_char, - length: ssize_t, - ) -> *mut GVariant; + pub fn g_variant_new_bytestring_array(strv: *const *const c_char, length: ssize_t) -> *mut GVariant; pub fn g_variant_new_dict_entry(key: *mut GVariant, value: *mut GVariant) -> *mut GVariant; pub fn g_variant_new_double(value: c_double) -> *mut GVariant; - pub fn g_variant_new_fixed_array( - element_type: *const GVariantType, - elements: gconstpointer, - n_elements: size_t, - element_size: size_t, - ) -> *mut GVariant; - pub fn g_variant_new_from_bytes( - type_: *const GVariantType, - bytes: *mut GBytes, - trusted: gboolean, - ) -> *mut GVariant; - pub fn g_variant_new_from_data( - type_: *const GVariantType, - data: gconstpointer, - size: size_t, - trusted: gboolean, - notify: GDestroyNotify, - user_data: gpointer, - ) -> *mut GVariant; + pub fn g_variant_new_fixed_array(element_type: *const GVariantType, elements: gconstpointer, n_elements: size_t, element_size: size_t) -> *mut GVariant; + pub fn g_variant_new_from_bytes(type_: *const GVariantType, bytes: *mut GBytes, trusted: gboolean) -> *mut GVariant; + pub fn g_variant_new_from_data(type_: *const GVariantType, data: gconstpointer, size: size_t, trusted: gboolean, notify: GDestroyNotify, user_data: gpointer) -> *mut GVariant; pub fn g_variant_new_handle(value: i32) -> *mut GVariant; pub fn g_variant_new_int16(value: i16) -> *mut GVariant; pub fn g_variant_new_int32(value: i32) -> *mut GVariant; pub fn g_variant_new_int64(value: i64) -> *mut GVariant; - pub fn g_variant_new_maybe( - child_type: *const GVariantType, - child: *mut GVariant, - ) -> *mut GVariant; + pub fn g_variant_new_maybe(child_type: *const GVariantType, child: *mut GVariant) -> *mut GVariant; pub fn g_variant_new_object_path(object_path: *const c_char) -> *mut GVariant; pub fn g_variant_new_objv(strv: *const *const c_char, length: ssize_t) -> *mut GVariant; pub fn g_variant_new_parsed(format: *const c_char, ...) -> *mut GVariant; @@ -5922,26 +3971,18 @@ extern "C" { pub fn g_variant_new_string(string: *const c_char) -> *mut GVariant; pub fn g_variant_new_strv(strv: *const *const c_char, length: ssize_t) -> *mut GVariant; pub fn g_variant_new_take_string(string: *mut c_char) -> *mut GVariant; - pub fn g_variant_new_tuple(children: *const *mut GVariant, n_children: size_t) - -> *mut GVariant; + pub fn g_variant_new_tuple(children: *const *mut GVariant, n_children: size_t) -> *mut GVariant; pub fn g_variant_new_uint16(value: u16) -> *mut GVariant; pub fn g_variant_new_uint32(value: u32) -> *mut GVariant; pub fn g_variant_new_uint64(value: u64) -> *mut GVariant; //pub fn g_variant_new_va(format_string: *const c_char, endptr: *mut *const c_char, app: /*Unimplemented*/*mut va_list) -> *mut GVariant; pub fn g_variant_new_variant(value: *mut GVariant) -> *mut GVariant; pub fn g_variant_byteswap(value: *mut GVariant) -> *mut GVariant; - pub fn g_variant_check_format_string( - value: *mut GVariant, - format_string: *const c_char, - copy_only: gboolean, - ) -> gboolean; + pub fn g_variant_check_format_string(value: *mut GVariant, format_string: *const c_char, copy_only: gboolean) -> gboolean; pub fn g_variant_classify(value: *mut GVariant) -> GVariantClass; pub fn g_variant_compare(one: gconstpointer, two: gconstpointer) -> c_int; pub fn g_variant_dup_bytestring(value: *mut GVariant, length: *mut size_t) -> *mut u8; - pub fn g_variant_dup_bytestring_array( - value: *mut GVariant, - length: *mut size_t, - ) -> *mut *mut c_char; + pub fn g_variant_dup_bytestring_array(value: *mut GVariant, length: *mut size_t) -> *mut *mut c_char; pub fn g_variant_dup_objv(value: *mut GVariant, length: *mut size_t) -> *mut *mut c_char; pub fn g_variant_dup_string(value: *mut GVariant, length: *mut size_t) -> *mut c_char; pub fn g_variant_dup_strv(value: *mut GVariant, length: *mut size_t) -> *mut *mut c_char; @@ -5950,25 +3991,13 @@ extern "C" { pub fn g_variant_get_boolean(value: *mut GVariant) -> gboolean; pub fn g_variant_get_byte(value: *mut GVariant) -> u8; pub fn g_variant_get_bytestring(value: *mut GVariant) -> *const u8; - pub fn g_variant_get_bytestring_array( - value: *mut GVariant, - length: *mut size_t, - ) -> *mut *const c_char; - pub fn g_variant_get_child( - value: *mut GVariant, - index_: size_t, - format_string: *const c_char, - ... - ); + pub fn g_variant_get_bytestring_array(value: *mut GVariant, length: *mut size_t) -> *mut *const c_char; + pub fn g_variant_get_child(value: *mut GVariant, index_: size_t, format_string: *const c_char, ...); pub fn g_variant_get_child_value(value: *mut GVariant, index_: size_t) -> *mut GVariant; pub fn g_variant_get_data(value: *mut GVariant) -> gconstpointer; pub fn g_variant_get_data_as_bytes(value: *mut GVariant) -> *mut GBytes; pub fn g_variant_get_double(value: *mut GVariant) -> c_double; - pub fn g_variant_get_fixed_array( - value: *mut GVariant, - n_elements: *mut size_t, - element_size: size_t, - ) -> gconstpointer; + pub fn g_variant_get_fixed_array(value: *mut GVariant, n_elements: *mut size_t, element_size: size_t) -> gconstpointer; pub fn g_variant_get_handle(value: *mut GVariant) -> i32; pub fn g_variant_get_int16(value: *mut GVariant) -> i16; pub fn g_variant_get_int32(value: *mut GVariant) -> i32; @@ -5992,24 +4021,11 @@ extern "C" { pub fn g_variant_is_normal_form(value: *mut GVariant) -> gboolean; pub fn g_variant_is_of_type(value: *mut GVariant, type_: *const GVariantType) -> gboolean; pub fn g_variant_iter_new(value: *mut GVariant) -> *mut GVariantIter; - pub fn g_variant_lookup( - dictionary: *mut GVariant, - key: *const c_char, - format_string: *const c_char, - ... - ) -> gboolean; - pub fn g_variant_lookup_value( - dictionary: *mut GVariant, - key: *const c_char, - expected_type: *const GVariantType, - ) -> *mut GVariant; + pub fn g_variant_lookup(dictionary: *mut GVariant, key: *const c_char, format_string: *const c_char, ...) -> gboolean; + pub fn g_variant_lookup_value(dictionary: *mut GVariant, key: *const c_char, expected_type: *const GVariantType) -> *mut GVariant; pub fn g_variant_n_children(value: *mut GVariant) -> size_t; pub fn g_variant_print(value: *mut GVariant, type_annotate: gboolean) -> *mut c_char; - pub fn g_variant_print_string( - value: *mut GVariant, - string: *mut GString, - type_annotate: gboolean, - ) -> *mut GString; + pub fn g_variant_print_string(value: *mut GVariant, string: *mut GString, type_annotate: gboolean) -> *mut GString; pub fn g_variant_ref(value: *mut GVariant) -> *mut GVariant; pub fn g_variant_ref_sink(value: *mut GVariant) -> *mut GVariant; pub fn g_variant_store(value: *mut GVariant, data: gpointer); @@ -6017,17 +4033,8 @@ extern "C" { pub fn g_variant_unref(value: *mut GVariant); pub fn g_variant_is_object_path(string: *const c_char) -> gboolean; pub fn g_variant_is_signature(string: *const c_char) -> gboolean; - pub fn g_variant_parse( - type_: *const GVariantType, - text: *const c_char, - limit: *const c_char, - endptr: *mut *const c_char, - error: *mut *mut GError, - ) -> *mut GVariant; - pub fn g_variant_parse_error_print_context( - error: *mut GError, - source_str: *const c_char, - ) -> *mut c_char; + pub fn g_variant_parse(type_: *const GVariantType, text: *const c_char, limit: *const c_char, endptr: *mut *const c_char, error: *mut *mut GError) -> *mut GVariant; + pub fn g_variant_parse_error_print_context(error: *mut GError, source_str: *const c_char) -> *mut c_char; pub fn g_variant_parse_error_quark() -> GQuark; pub fn g_variant_parser_get_error_quark() -> GQuark; @@ -6056,28 +4063,10 @@ extern "C" { pub fn g_variant_dict_contains(dict: *mut GVariantDict, key: *const c_char) -> gboolean; pub fn g_variant_dict_end(dict: *mut GVariantDict) -> *mut GVariant; pub fn g_variant_dict_init(dict: *mut GVariantDict, from_asv: *mut GVariant); - pub fn g_variant_dict_insert( - dict: *mut GVariantDict, - key: *const c_char, - format_string: *const c_char, - ... - ); - pub fn g_variant_dict_insert_value( - dict: *mut GVariantDict, - key: *const c_char, - value: *mut GVariant, - ); - pub fn g_variant_dict_lookup( - dict: *mut GVariantDict, - key: *const c_char, - format_string: *const c_char, - ... - ) -> gboolean; - pub fn g_variant_dict_lookup_value( - dict: *mut GVariantDict, - key: *const c_char, - expected_type: *const GVariantType, - ) -> *mut GVariant; + pub fn g_variant_dict_insert(dict: *mut GVariantDict, key: *const c_char, format_string: *const c_char, ...); + pub fn g_variant_dict_insert_value(dict: *mut GVariantDict, key: *const c_char, value: *mut GVariant); + pub fn g_variant_dict_lookup(dict: *mut GVariantDict, key: *const c_char, format_string: *const c_char, ...) -> gboolean; + pub fn g_variant_dict_lookup_value(dict: *mut GVariantDict, key: *const c_char, expected_type: *const GVariantType) -> *mut GVariant; pub fn g_variant_dict_ref(dict: *mut GVariantDict) -> *mut GVariantDict; pub fn g_variant_dict_remove(dict: *mut GVariantDict, key: *const c_char) -> gboolean; pub fn g_variant_dict_unref(dict: *mut GVariantDict); @@ -6088,17 +4077,9 @@ extern "C" { pub fn g_variant_iter_copy(iter: *mut GVariantIter) -> *mut GVariantIter; pub fn g_variant_iter_free(iter: *mut GVariantIter); pub fn g_variant_iter_init(iter: *mut GVariantIter, value: *mut GVariant) -> size_t; - pub fn g_variant_iter_loop( - iter: *mut GVariantIter, - format_string: *const c_char, - ... - ) -> gboolean; + pub fn g_variant_iter_loop(iter: *mut GVariantIter, format_string: *const c_char, ...) -> gboolean; pub fn g_variant_iter_n_children(iter: *mut GVariantIter) -> size_t; - pub fn g_variant_iter_next( - iter: *mut GVariantIter, - format_string: *const c_char, - ... - ) -> gboolean; + pub fn g_variant_iter_next(iter: *mut GVariantIter, format_string: *const c_char, ...) -> gboolean; pub fn g_variant_iter_next_value(iter: *mut GVariantIter) -> *mut GVariant; //========================================================================= @@ -6107,15 +4088,9 @@ extern "C" { pub fn g_variant_type_get_gtype() -> GType; pub fn g_variant_type_new(type_string: *const c_char) -> *mut GVariantType; pub fn g_variant_type_new_array(element: *const GVariantType) -> *mut GVariantType; - pub fn g_variant_type_new_dict_entry( - key: *const GVariantType, - value: *const GVariantType, - ) -> *mut GVariantType; + pub fn g_variant_type_new_dict_entry(key: *const GVariantType, value: *const GVariantType) -> *mut GVariantType; pub fn g_variant_type_new_maybe(element: *const GVariantType) -> *mut GVariantType; - pub fn g_variant_type_new_tuple( - items: *const *const GVariantType, - length: c_int, - ) -> *mut GVariantType; + pub fn g_variant_type_new_tuple(items: *const *const GVariantType, length: c_int) -> *mut GVariantType; pub fn g_variant_type_copy(type_: *const GVariantType) -> *mut GVariantType; pub fn g_variant_type_dup_string(type_: *const GVariantType) -> *mut c_char; pub fn g_variant_type_element(type_: *const GVariantType) -> *const GVariantType; @@ -6130,10 +4105,7 @@ extern "C" { pub fn g_variant_type_is_definite(type_: *const GVariantType) -> gboolean; pub fn g_variant_type_is_dict_entry(type_: *const GVariantType) -> gboolean; pub fn g_variant_type_is_maybe(type_: *const GVariantType) -> gboolean; - pub fn g_variant_type_is_subtype_of( - type_: *const GVariantType, - supertype: *const GVariantType, - ) -> gboolean; + pub fn g_variant_type_is_subtype_of(type_: *const GVariantType, supertype: *const GVariantType) -> gboolean; pub fn g_variant_type_is_tuple(type_: *const GVariantType) -> gboolean; pub fn g_variant_type_is_variant(type_: *const GVariantType) -> gboolean; pub fn g_variant_type_key(type_: *const GVariantType) -> *const GVariantType; @@ -6141,14 +4113,10 @@ extern "C" { pub fn g_variant_type_next(type_: *const GVariantType) -> *const GVariantType; pub fn g_variant_type_peek_string(type_: *const GVariantType) -> *const c_char; pub fn g_variant_type_value(type_: *const GVariantType) -> *const GVariantType; - pub fn g_variant_type_checked_(type_string: *const c_char) -> *const GVariantType; + pub fn g_variant_type_checked_(arg0: *const c_char) -> *const GVariantType; pub fn g_variant_type_string_get_depth_(type_string: *const c_char) -> size_t; pub fn g_variant_type_string_is_valid(type_string: *const c_char) -> gboolean; - pub fn g_variant_type_string_scan( - string: *const c_char, - limit: *const c_char, - endptr: *mut *const c_char, - ) -> gboolean; + pub fn g_variant_type_string_scan(string: *const c_char, limit: *const c_char, endptr: *mut *const c_char) -> gboolean; //========================================================================= // Other functions @@ -6159,8 +4127,7 @@ extern "C" { pub fn g_aligned_alloc(n_blocks: size_t, n_block_bytes: size_t, alignment: size_t) -> gpointer; #[cfg(feature = "v2_72")] #[cfg_attr(docsrs, doc(cfg(feature = "v2_72")))] - pub fn g_aligned_alloc0(n_blocks: size_t, n_block_bytes: size_t, alignment: size_t) - -> gpointer; + pub fn g_aligned_alloc0(n_blocks: size_t, n_block_bytes: size_t, alignment: size_t) -> gpointer; #[cfg(feature = "v2_72")] #[cfg_attr(docsrs, doc(cfg(feature = "v2_72")))] pub fn g_aligned_free(mem: gpointer); @@ -6169,30 +4136,11 @@ extern "C" { pub fn g_aligned_free_sized(mem: gpointer, alignment: size_t, size: size_t); pub fn g_ascii_digit_value(c: c_char) -> c_int; pub fn g_ascii_dtostr(buffer: *mut c_char, buf_len: c_int, d: c_double) -> *mut c_char; - pub fn g_ascii_formatd( - buffer: *mut c_char, - buf_len: c_int, - format: *const c_char, - d: c_double, - ) -> *mut c_char; + pub fn g_ascii_formatd(buffer: *mut c_char, buf_len: c_int, format: *const c_char, d: c_double) -> *mut c_char; pub fn g_ascii_strcasecmp(s1: *const c_char, s2: *const c_char) -> c_int; pub fn g_ascii_strdown(str: *const c_char, len: ssize_t) -> *mut c_char; - pub fn g_ascii_string_to_signed( - str: *const c_char, - base: c_uint, - min: i64, - max: i64, - out_num: *mut i64, - error: *mut *mut GError, - ) -> gboolean; - pub fn g_ascii_string_to_unsigned( - str: *const c_char, - base: c_uint, - min: u64, - max: u64, - out_num: *mut u64, - error: *mut *mut GError, - ) -> gboolean; + pub fn g_ascii_string_to_signed(str: *const c_char, base: c_uint, min: i64, max: i64, out_num: *mut i64, error: *mut *mut GError) -> gboolean; + pub fn g_ascii_string_to_unsigned(str: *const c_char, base: c_uint, min: u64, max: u64, out_num: *mut u64, error: *mut *mut GError) -> gboolean; pub fn g_ascii_strncasecmp(s1: *const c_char, s2: *const c_char, n: size_t) -> c_int; pub fn g_ascii_strtod(nptr: *const c_char, endptr: *mut *mut c_char) -> c_double; pub fn g_ascii_strtoll(nptr: *const c_char, endptr: *mut *mut c_char, base: c_uint) -> i64; @@ -6201,119 +4149,46 @@ extern "C" { pub fn g_ascii_tolower(c: c_char) -> c_char; pub fn g_ascii_toupper(c: c_char) -> c_char; pub fn g_ascii_xdigit_value(c: c_char) -> c_int; - pub fn g_assert_warning( - log_domain: *const c_char, - file: *const c_char, - line: c_int, - pretty_function: *const c_char, - expression: *const c_char, - ); - pub fn g_assertion_message( - domain: *const c_char, - file: *const c_char, - line: c_int, - func: *const c_char, - message: *const c_char, - ); + pub fn g_assert_warning(log_domain: *const c_char, file: *const c_char, line: c_int, pretty_function: *const c_char, expression: *const c_char); + pub fn g_assertion_message(domain: *const c_char, file: *const c_char, line: c_int, func: *const c_char, message: *const c_char); #[cfg(feature = "v2_78")] #[cfg_attr(docsrs, doc(cfg(feature = "v2_78")))] - pub fn g_assertion_message_cmpint( - domain: *const c_char, - file: *const c_char, - line: c_int, - func: *const c_char, - expr: *const c_char, - arg1: u64, - cmp: *const c_char, - arg2: u64, - numtype: c_char, - ); + pub fn g_assertion_message_cmpint(domain: *const c_char, file: *const c_char, line: c_int, func: *const c_char, expr: *const c_char, arg1: u64, cmp: *const c_char, arg2: u64, numtype: c_char); //pub fn g_assertion_message_cmpnum(domain: *const c_char, file: *const c_char, line: c_int, func: *const c_char, expr: *const c_char, arg1: /*Unimplemented*/long double, cmp: *const c_char, arg2: /*Unimplemented*/long double, numtype: c_char); - pub fn g_assertion_message_cmpstr( - domain: *const c_char, - file: *const c_char, - line: c_int, - func: *const c_char, - expr: *const c_char, - arg1: *const c_char, - cmp: *const c_char, - arg2: *const c_char, - ); - pub fn g_assertion_message_cmpstrv( - domain: *const c_char, - file: *const c_char, - line: c_int, - func: *const c_char, - expr: *const c_char, - arg1: *const *const c_char, - arg2: *const *const c_char, - first_wrong_idx: size_t, - ); - pub fn g_assertion_message_error( - domain: *const c_char, - file: *const c_char, - line: c_int, - func: *const c_char, - expr: *const c_char, - error: *const GError, - error_domain: GQuark, - error_code: c_int, - ); - pub fn g_assertion_message_expr( - domain: *const c_char, - file: *const c_char, - line: c_int, - func: *const c_char, - expr: *const c_char, - ); + pub fn g_assertion_message_cmpstr(domain: *const c_char, file: *const c_char, line: c_int, func: *const c_char, expr: *const c_char, arg1: *const c_char, cmp: *const c_char, arg2: *const c_char); + pub fn g_assertion_message_cmpstrv(domain: *const c_char, file: *const c_char, line: c_int, func: *const c_char, expr: *const c_char, arg1: *const *const c_char, arg2: *const *const c_char, first_wrong_idx: size_t); + pub fn g_assertion_message_error(domain: *const c_char, file: *const c_char, line: c_int, func: *const c_char, expr: *const c_char, error: *const GError, error_domain: GQuark, error_code: c_int); + pub fn g_assertion_message_expr(domain: *const c_char, file: *const c_char, line: c_int, func: *const c_char, expr: *const c_char); pub fn g_atexit(func: GVoidFunc); - pub fn g_atomic_int_add(atomic: *mut c_int, val: c_int) -> c_int; - pub fn g_atomic_int_and(atomic: *mut c_uint, val: c_uint) -> c_uint; - pub fn g_atomic_int_compare_and_exchange( - atomic: *mut c_int, - oldval: c_int, - newval: c_int, - ) -> gboolean; + pub fn g_atomic_int_add(atomic: *mut /*volatile*/c_int, val: c_int) -> c_int; + pub fn g_atomic_int_and(atomic: *mut /*volatile*/c_uint, val: c_uint) -> c_uint; + pub fn g_atomic_int_compare_and_exchange(atomic: *mut /*volatile*/c_int, oldval: c_int, newval: c_int) -> gboolean; #[cfg(feature = "v2_74")] #[cfg_attr(docsrs, doc(cfg(feature = "v2_74")))] - pub fn g_atomic_int_compare_and_exchange_full( - atomic: *mut c_int, - oldval: c_int, - newval: c_int, - preval: *mut c_int, - ) -> gboolean; - pub fn g_atomic_int_dec_and_test(atomic: *mut c_int) -> gboolean; + pub fn g_atomic_int_compare_and_exchange_full(atomic: *mut c_int, oldval: c_int, newval: c_int, preval: *mut c_int) -> gboolean; + pub fn g_atomic_int_dec_and_test(atomic: *mut /*volatile*/c_int) -> gboolean; #[cfg(feature = "v2_74")] #[cfg_attr(docsrs, doc(cfg(feature = "v2_74")))] pub fn g_atomic_int_exchange(atomic: *mut c_int, newval: c_int) -> c_int; - pub fn g_atomic_int_exchange_and_add(atomic: *mut c_int, val: c_int) -> c_int; + pub fn g_atomic_int_exchange_and_add(atomic: *mut /*volatile*/c_int, val: c_int) -> c_int; pub fn g_atomic_int_get(atomic: *const c_int) -> c_int; - pub fn g_atomic_int_inc(atomic: *mut c_int); - pub fn g_atomic_int_or(atomic: *mut c_uint, val: c_uint) -> c_uint; - pub fn g_atomic_int_set(atomic: *mut c_int, newval: c_int); - pub fn g_atomic_int_xor(atomic: *mut c_uint, val: c_uint) -> c_uint; - pub fn g_atomic_pointer_add(atomic: *mut c_void, val: ssize_t) -> intptr_t; - pub fn g_atomic_pointer_and(atomic: *mut c_void, val: size_t) -> uintptr_t; - pub fn g_atomic_pointer_compare_and_exchange( - atomic: *mut c_void, - oldval: gpointer, - newval: gpointer, - ) -> gboolean; + pub fn g_atomic_int_inc(atomic: *mut /*volatile*/c_int); + pub fn g_atomic_int_or(atomic: *mut /*volatile*/c_uint, val: c_uint) -> c_uint; + pub fn g_atomic_int_set(atomic: *mut /*volatile*/c_int, newval: c_int); + pub fn g_atomic_int_xor(atomic: *mut /*volatile*/c_uint, val: c_uint) -> c_uint; + pub fn g_atomic_pointer_add(atomic: *mut c_void, val: ssize_t) -> ssize_t; + pub fn g_atomic_pointer_and(atomic: *mut c_void, val: size_t) -> size_t; + pub fn g_atomic_pointer_compare_and_exchange(atomic: *mut c_void, oldval: gpointer, newval: gpointer) -> gboolean; #[cfg(feature = "v2_74")] #[cfg_attr(docsrs, doc(cfg(feature = "v2_74")))] - pub fn g_atomic_pointer_compare_and_exchange_full( - atomic: *mut c_void, - oldval: gpointer, - newval: gpointer, - preval: *mut c_void, - ) -> gboolean; + pub fn g_atomic_pointer_compare_and_exchange_full(atomic: *mut c_void, oldval: gpointer, newval: gpointer, preval: *mut c_void) -> gboolean; #[cfg(feature = "v2_74")] #[cfg_attr(docsrs, doc(cfg(feature = "v2_74")))] pub fn g_atomic_pointer_exchange(atomic: *mut c_void, newval: gpointer) -> gpointer; pub fn g_atomic_pointer_get(atomic: *mut c_void) -> gpointer; - pub fn g_atomic_pointer_or(atomic: *mut c_void, val: size_t) -> uintptr_t; + pub fn g_atomic_pointer_or(atomic: *mut c_void, val: size_t) -> size_t; pub fn g_atomic_pointer_set(atomic: *mut c_void, newval: gpointer); - pub fn g_atomic_pointer_xor(atomic: *mut c_void, val: size_t) -> uintptr_t; + pub fn g_atomic_pointer_xor(atomic: *mut c_void, val: size_t) -> size_t; #[cfg(feature = "v2_58")] #[cfg_attr(docsrs, doc(cfg(feature = "v2_58")))] pub fn g_atomic_rc_box_acquire(mem_block: gpointer) -> gpointer; @@ -6349,61 +4224,29 @@ extern "C" { pub fn g_atomic_ref_count_init(arc: *mut c_int); pub fn g_base64_decode(text: *const c_char, out_len: *mut size_t) -> *mut u8; pub fn g_base64_decode_inplace(text: *mut u8, out_len: *mut size_t) -> *mut u8; - pub fn g_base64_decode_step( - in_: *const u8, - len: size_t, - out: *mut u8, - state: *mut c_int, - save: *mut c_uint, - ) -> size_t; + pub fn g_base64_decode_step(in_: *const u8, len: size_t, out: *mut u8, state: *mut c_int, save: *mut c_uint) -> size_t; pub fn g_base64_encode(data: *const u8, len: size_t) -> *mut c_char; - pub fn g_base64_encode_close( - break_lines: gboolean, - out: *mut u8, - state: *mut c_int, - save: *mut c_int, - ) -> size_t; - pub fn g_base64_encode_step( - in_: *const u8, - len: size_t, - break_lines: gboolean, - out: *mut u8, - state: *mut c_int, - save: *mut c_int, - ) -> size_t; + pub fn g_base64_encode_close(break_lines: gboolean, out: *mut u8, state: *mut c_int, save: *mut c_int) -> size_t; + pub fn g_base64_encode_step(in_: *const u8, len: size_t, break_lines: gboolean, out: *mut u8, state: *mut c_int, save: *mut c_int) -> size_t; pub fn g_basename(file_name: *const c_char) -> *const c_char; - pub fn g_bit_lock(address: *mut c_int, lock_bit: c_int); + pub fn g_bit_lock(address: *mut /*volatile*/c_int, lock_bit: c_int); pub fn g_bit_nth_lsf(mask: c_ulong, nth_bit: c_int) -> c_int; pub fn g_bit_nth_msf(mask: c_ulong, nth_bit: c_int) -> c_int; pub fn g_bit_storage(number: c_ulong) -> c_uint; - pub fn g_bit_trylock(address: *mut c_int, lock_bit: c_int) -> gboolean; - pub fn g_bit_unlock(address: *mut c_int, lock_bit: c_int); + pub fn g_bit_trylock(address: *mut /*volatile*/c_int, lock_bit: c_int) -> gboolean; + pub fn g_bit_unlock(address: *mut /*volatile*/c_int, lock_bit: c_int); pub fn g_build_filename(first_element: *const c_char, ...) -> *mut c_char; //pub fn g_build_filename_valist(first_element: *const c_char, args: /*Unimplemented*/*mut va_list) -> *mut c_char; pub fn g_build_filenamev(args: *mut *mut c_char) -> *mut c_char; - pub fn g_build_path(separator: *const c_char, first_element: *const c_char, ...) - -> *mut c_char; + pub fn g_build_path(separator: *const c_char, first_element: *const c_char, ...) -> *mut c_char; pub fn g_build_pathv(separator: *const c_char, args: *mut *mut c_char) -> *mut c_char; #[cfg(feature = "v2_58")] #[cfg_attr(docsrs, doc(cfg(feature = "v2_58")))] - pub fn g_canonicalize_filename( - filename: *const c_char, - relative_to: *const c_char, - ) -> *mut c_char; + pub fn g_canonicalize_filename(filename: *const c_char, relative_to: *const c_char) -> *mut c_char; pub fn g_chdir(path: *const c_char) -> c_int; - pub fn glib_check_version( - required_major: c_uint, - required_minor: c_uint, - required_micro: c_uint, - ) -> *const c_char; + pub fn glib_check_version(required_major: c_uint, required_minor: c_uint, required_micro: c_uint) -> *const c_char; pub fn g_child_watch_add(pid: GPid, function: GChildWatchFunc, data: gpointer) -> c_uint; - pub fn g_child_watch_add_full( - priority: c_int, - pid: GPid, - function: GChildWatchFunc, - data: gpointer, - notify: GDestroyNotify, - ) -> c_uint; + pub fn g_child_watch_add_full(priority: c_int, pid: GPid, function: GChildWatchFunc, data: gpointer, notify: GDestroyNotify) -> c_uint; pub fn g_child_watch_source_new(pid: GPid) -> *mut GSource; pub fn g_clear_error(error: *mut *mut GError); pub fn g_clear_handle_id(tag_ptr: *mut c_uint, clear_func: GClearHandleFunc); @@ -6415,215 +4258,64 @@ extern "C" { #[cfg_attr(docsrs, doc(cfg(feature = "v2_64")))] pub fn g_clear_slist(slist_ptr: *mut *mut GSList, destroy: GDestroyNotify); pub fn g_close(fd: c_int, error: *mut *mut GError) -> gboolean; - pub fn g_compute_checksum_for_bytes( - checksum_type: GChecksumType, - data: *mut GBytes, - ) -> *mut c_char; - pub fn g_compute_checksum_for_data( - checksum_type: GChecksumType, - data: *const u8, - length: size_t, - ) -> *mut c_char; - pub fn g_compute_checksum_for_string( - checksum_type: GChecksumType, - str: *const c_char, - length: ssize_t, - ) -> *mut c_char; - pub fn g_compute_hmac_for_bytes( - digest_type: GChecksumType, - key: *mut GBytes, - data: *mut GBytes, - ) -> *mut c_char; - pub fn g_compute_hmac_for_data( - digest_type: GChecksumType, - key: *const u8, - key_len: size_t, - data: *const u8, - length: size_t, - ) -> *mut c_char; - pub fn g_compute_hmac_for_string( - digest_type: GChecksumType, - key: *const u8, - key_len: size_t, - str: *const c_char, - length: ssize_t, - ) -> *mut c_char; - pub fn g_convert( - str: *const u8, - len: ssize_t, - to_codeset: *const c_char, - from_codeset: *const c_char, - bytes_read: *mut size_t, - bytes_written: *mut size_t, - error: *mut *mut GError, - ) -> *mut u8; + pub fn g_compute_checksum_for_bytes(checksum_type: GChecksumType, data: *mut GBytes) -> *mut c_char; + pub fn g_compute_checksum_for_data(checksum_type: GChecksumType, data: *const u8, length: size_t) -> *mut c_char; + pub fn g_compute_checksum_for_string(checksum_type: GChecksumType, str: *const c_char, length: ssize_t) -> *mut c_char; + pub fn g_compute_hmac_for_bytes(digest_type: GChecksumType, key: *mut GBytes, data: *mut GBytes) -> *mut c_char; + pub fn g_compute_hmac_for_data(digest_type: GChecksumType, key: *const u8, key_len: size_t, data: *const u8, length: size_t) -> *mut c_char; + pub fn g_compute_hmac_for_string(digest_type: GChecksumType, key: *const u8, key_len: size_t, str: *const c_char, length: ssize_t) -> *mut c_char; + pub fn g_convert(str: *const u8, len: ssize_t, to_codeset: *const c_char, from_codeset: *const c_char, bytes_read: *mut size_t, bytes_written: *mut size_t, error: *mut *mut GError) -> *mut u8; pub fn g_convert_error_quark() -> GQuark; - pub fn g_convert_with_fallback( - str: *const u8, - len: ssize_t, - to_codeset: *const c_char, - from_codeset: *const c_char, - fallback: *const c_char, - bytes_read: *mut size_t, - bytes_written: *mut size_t, - error: *mut *mut GError, - ) -> *mut u8; - pub fn g_convert_with_iconv( - str: *const u8, - len: ssize_t, - converter: GIConv, - bytes_read: *mut size_t, - bytes_written: *mut size_t, - error: *mut *mut GError, - ) -> *mut u8; + pub fn g_convert_with_fallback(str: *const u8, len: ssize_t, to_codeset: *const c_char, from_codeset: *const c_char, fallback: *const c_char, bytes_read: *mut size_t, bytes_written: *mut size_t, error: *mut *mut GError) -> *mut u8; + pub fn g_convert_with_iconv(str: *const u8, len: ssize_t, converter: GIConv, bytes_read: *mut size_t, bytes_written: *mut size_t, error: *mut *mut GError) -> *mut u8; pub fn g_datalist_clear(datalist: *mut *mut GData); - pub fn g_datalist_foreach( - datalist: *mut *mut GData, - func: GDataForeachFunc, - user_data: gpointer, - ); + pub fn g_datalist_foreach(datalist: *mut *mut GData, func: GDataForeachFunc, user_data: gpointer); pub fn g_datalist_get_data(datalist: *mut *mut GData, key: *const c_char) -> gpointer; pub fn g_datalist_get_flags(datalist: *mut *mut GData) -> c_uint; - pub fn g_datalist_id_dup_data( - datalist: *mut *mut GData, - key_id: GQuark, - dup_func: GDuplicateFunc, - user_data: gpointer, - ) -> gpointer; + pub fn g_datalist_id_dup_data(datalist: *mut *mut GData, key_id: GQuark, dup_func: GDuplicateFunc, user_data: gpointer) -> gpointer; pub fn g_datalist_id_get_data(datalist: *mut *mut GData, key_id: GQuark) -> gpointer; #[cfg(feature = "v2_74")] #[cfg_attr(docsrs, doc(cfg(feature = "v2_74")))] - pub fn g_datalist_id_remove_multiple( - datalist: *mut *mut GData, - keys: *mut GQuark, - n_keys: size_t, - ); + pub fn g_datalist_id_remove_multiple(datalist: *mut *mut GData, keys: *mut GQuark, n_keys: size_t); pub fn g_datalist_id_remove_no_notify(datalist: *mut *mut GData, key_id: GQuark) -> gpointer; - 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; - pub fn g_datalist_id_set_data_full( - datalist: *mut *mut GData, - key_id: GQuark, - data: gpointer, - destroy_func: GDestroyNotify, - ); + 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; + pub fn g_datalist_id_set_data_full(datalist: *mut *mut GData, key_id: GQuark, data: gpointer, destroy_func: GDestroyNotify); pub fn g_datalist_init(datalist: *mut *mut GData); pub fn g_datalist_set_flags(datalist: *mut *mut GData, flags: c_uint); pub fn g_datalist_unset_flags(datalist: *mut *mut GData, flags: c_uint); pub fn g_dataset_destroy(dataset_location: gconstpointer); - pub fn g_dataset_foreach( - dataset_location: gconstpointer, - func: GDataForeachFunc, - user_data: gpointer, - ); + pub fn g_dataset_foreach(dataset_location: gconstpointer, func: GDataForeachFunc, user_data: gpointer); pub fn g_dataset_id_get_data(dataset_location: gconstpointer, key_id: GQuark) -> gpointer; - pub fn g_dataset_id_remove_no_notify( - dataset_location: gconstpointer, - key_id: GQuark, - ) -> gpointer; - pub fn g_dataset_id_set_data_full( - dataset_location: gconstpointer, - key_id: GQuark, - data: gpointer, - destroy_func: GDestroyNotify, - ); - pub fn g_dcgettext( - domain: *const c_char, - msgid: *const c_char, - category: c_int, - ) -> *const c_char; + pub fn g_dataset_id_remove_no_notify(dataset_location: gconstpointer, key_id: GQuark) -> gpointer; + pub fn g_dataset_id_set_data_full(dataset_location: gconstpointer, key_id: GQuark, data: gpointer, destroy_func: GDestroyNotify); + pub fn g_dcgettext(domain: *const c_char, msgid: *const c_char, category: c_int) -> *const c_char; pub fn g_dgettext(domain: *const c_char, msgid: *const c_char) -> *const c_char; pub fn g_direct_equal(v1: gconstpointer, v2: gconstpointer) -> gboolean; pub fn g_direct_hash(v: gconstpointer) -> c_uint; - pub fn g_dngettext( - domain: *const c_char, - msgid: *const c_char, - msgid_plural: *const c_char, - n: c_ulong, - ) -> *const c_char; + pub fn g_dngettext(domain: *const c_char, msgid: *const c_char, msgid_plural: *const c_char, n: c_ulong) -> *const c_char; pub fn g_double_equal(v1: gconstpointer, v2: gconstpointer) -> gboolean; pub fn g_double_hash(v: gconstpointer) -> c_uint; - pub fn g_dpgettext( - domain: *const c_char, - msgctxtid: *const c_char, - msgidoffset: size_t, - ) -> *const c_char; - pub fn g_dpgettext2( - domain: *const c_char, - context: *const c_char, - msgid: *const c_char, - ) -> *const c_char; + pub fn g_dpgettext(domain: *const c_char, msgctxtid: *const c_char, msgidoffset: size_t) -> *const c_char; + pub fn g_dpgettext2(domain: *const c_char, context: *const c_char, msgid: *const c_char) -> *const c_char; pub fn g_environ_getenv(envp: *mut *mut c_char, variable: *const c_char) -> *const c_char; - pub fn g_environ_setenv( - envp: *mut *mut c_char, - variable: *const c_char, - value: *const c_char, - overwrite: gboolean, - ) -> *mut *mut c_char; + pub fn g_environ_setenv(envp: *mut *mut c_char, variable: *const c_char, value: *const c_char, overwrite: gboolean) -> *mut *mut c_char; pub fn g_environ_unsetenv(envp: *mut *mut c_char, variable: *const c_char) -> *mut *mut c_char; pub fn g_file_error_from_errno(err_no: c_int) -> GFileError; pub fn g_file_error_quark() -> GQuark; - pub fn g_file_get_contents( - filename: *const c_char, - contents: *mut *mut u8, - length: *mut size_t, - error: *mut *mut GError, - ) -> gboolean; - pub fn g_file_open_tmp( - tmpl: *const c_char, - name_used: *mut *mut c_char, - error: *mut *mut GError, - ) -> c_int; + pub fn g_file_get_contents(filename: *const c_char, contents: *mut *mut u8, length: *mut size_t, error: *mut *mut GError) -> gboolean; + pub fn g_file_open_tmp(tmpl: *const c_char, name_used: *mut *mut c_char, error: *mut *mut GError) -> c_int; pub fn g_file_read_link(filename: *const c_char, error: *mut *mut GError) -> *mut c_char; - pub fn g_file_set_contents( - filename: *const c_char, - contents: *const u8, - length: ssize_t, - error: *mut *mut GError, - ) -> gboolean; - #[cfg(feature = "v2_66")] - #[cfg_attr(docsrs, doc(cfg(feature = "v2_66")))] - pub fn g_file_set_contents_full( - filename: *const c_char, - contents: *const u8, - length: ssize_t, - flags: GFileSetContentsFlags, - mode: c_int, - error: *mut *mut GError, - ) -> gboolean; + pub fn g_file_set_contents(filename: *const c_char, contents: *const u8, length: ssize_t, error: *mut *mut GError) -> gboolean; + #[cfg(feature = "v2_66")] + #[cfg_attr(docsrs, doc(cfg(feature = "v2_66")))] + pub fn g_file_set_contents_full(filename: *const c_char, contents: *const u8, length: ssize_t, flags: GFileSetContentsFlags, mode: c_int, error: *mut *mut GError) -> gboolean; pub fn g_file_test(filename: *const c_char, test: GFileTest) -> gboolean; pub fn g_filename_display_basename(filename: *const c_char) -> *mut c_char; pub fn g_filename_display_name(filename: *const c_char) -> *mut c_char; - pub fn g_filename_from_uri( - uri: *const c_char, - hostname: *mut *mut c_char, - error: *mut *mut GError, - ) -> *mut c_char; - pub fn g_filename_from_utf8( - utf8string: *const c_char, - len: ssize_t, - bytes_read: *mut size_t, - bytes_written: *mut size_t, - error: *mut *mut GError, - ) -> *mut c_char; - pub fn g_filename_to_uri( - filename: *const c_char, - hostname: *const c_char, - error: *mut *mut GError, - ) -> *mut c_char; - pub fn g_filename_to_utf8( - opsysstring: *const c_char, - len: ssize_t, - bytes_read: *mut size_t, - bytes_written: *mut size_t, - error: *mut *mut GError, - ) -> *mut c_char; + pub fn g_filename_from_uri(uri: *const c_char, hostname: *mut *mut c_char, error: *mut *mut GError) -> *mut c_char; + pub fn g_filename_from_utf8(utf8string: *const c_char, len: ssize_t, bytes_read: *mut size_t, bytes_written: *mut size_t, error: *mut *mut GError) -> *mut c_char; + pub fn g_filename_to_uri(filename: *const c_char, hostname: *const c_char, error: *mut *mut GError) -> *mut c_char; + pub fn g_filename_to_utf8(opsysstring: *const c_char, len: ssize_t, bytes_read: *mut size_t, bytes_written: *mut size_t, error: *mut *mut GError) -> *mut c_char; pub fn g_find_program_in_path(program: *const c_char) -> *mut c_char; pub fn g_format_size(size: u64) -> *mut c_char; pub fn g_format_size_for_display(size: i64) -> *mut c_char; @@ -6648,8 +4340,7 @@ extern "C" { pub fn g_get_language_names() -> *const *const c_char; #[cfg(feature = "v2_58")] #[cfg_attr(docsrs, doc(cfg(feature = "v2_58")))] - pub fn g_get_language_names_with_category(category_name: *const c_char) - -> *const *const c_char; + pub fn g_get_language_names_with_category(category_name: *const c_char) -> *const *const c_char; pub fn g_get_locale_variants(locale: *const c_char) -> *mut *mut c_char; pub fn g_get_monotonic_time() -> i64; pub fn g_get_num_processors() -> c_uint; @@ -6677,20 +4368,9 @@ extern "C" { pub fn g_hostname_is_non_ascii(hostname: *const c_char) -> gboolean; pub fn g_hostname_to_ascii(hostname: *const c_char) -> *mut c_char; pub fn g_hostname_to_unicode(hostname: *const c_char) -> *mut c_char; - pub fn g_iconv( - converter: GIConv, - inbuf: *mut *mut c_char, - inbytes_left: *mut size_t, - outbuf: *mut *mut c_char, - outbytes_left: *mut size_t, - ) -> size_t; + pub fn g_iconv(converter: GIConv, inbuf: *mut *mut c_char, inbytes_left: *mut size_t, outbuf: *mut *mut c_char, outbytes_left: *mut size_t) -> size_t; pub fn g_idle_add(function: GSourceFunc, data: gpointer) -> c_uint; - pub fn g_idle_add_full( - priority: c_int, - function: GSourceFunc, - data: gpointer, - notify: GDestroyNotify, - ) -> c_uint; + pub fn g_idle_add_full(priority: c_int, function: GSourceFunc, data: gpointer, notify: GDestroyNotify) -> c_uint; #[cfg(feature = "v2_74")] #[cfg_attr(docsrs, doc(cfg(feature = "v2_74")))] pub fn g_idle_add_once(function: GSourceOnceFunc, data: gpointer) -> c_uint; @@ -6702,43 +4382,14 @@ extern "C" { pub fn g_int_hash(v: gconstpointer) -> c_uint; pub fn g_intern_static_string(string: *const c_char) -> *const c_char; pub fn g_intern_string(string: *const c_char) -> *const c_char; - pub fn g_io_add_watch( - channel: *mut GIOChannel, - condition: GIOCondition, - func: GIOFunc, - user_data: gpointer, - ) -> c_uint; - pub fn g_io_add_watch_full( - channel: *mut GIOChannel, - priority: c_int, - condition: GIOCondition, - func: GIOFunc, - user_data: gpointer, - notify: GDestroyNotify, - ) -> c_uint; + pub fn g_io_add_watch(channel: *mut GIOChannel, condition: GIOCondition, func: GIOFunc, user_data: gpointer) -> c_uint; + pub fn g_io_add_watch_full(channel: *mut GIOChannel, priority: c_int, condition: GIOCondition, func: GIOFunc, user_data: gpointer, notify: GDestroyNotify) -> c_uint; pub fn g_io_create_watch(channel: *mut GIOChannel, condition: GIOCondition) -> *mut GSource; pub fn g_listenv() -> *mut *mut c_char; - pub fn g_locale_from_utf8( - utf8string: *const c_char, - len: ssize_t, - bytes_read: *mut size_t, - bytes_written: *mut size_t, - error: *mut *mut GError, - ) -> *mut u8; - pub fn g_locale_to_utf8( - opsysstring: *const u8, - len: ssize_t, - bytes_read: *mut size_t, - bytes_written: *mut size_t, - error: *mut *mut GError, - ) -> *mut c_char; + pub fn g_locale_from_utf8(utf8string: *const c_char, len: ssize_t, bytes_read: *mut size_t, bytes_written: *mut size_t, error: *mut *mut GError) -> *mut u8; + pub fn g_locale_to_utf8(opsysstring: *const u8, len: ssize_t, bytes_read: *mut size_t, bytes_written: *mut size_t, error: *mut *mut GError) -> *mut c_char; pub fn g_log(log_domain: *const c_char, log_level: GLogLevelFlags, format: *const c_char, ...); - pub fn g_log_default_handler( - log_domain: *const c_char, - log_level: GLogLevelFlags, - message: *const c_char, - unused_data: gpointer, - ); + pub fn g_log_default_handler(log_domain: *const c_char, log_level: GLogLevelFlags, message: *const c_char, unused_data: gpointer); #[cfg(feature = "v2_72")] #[cfg_attr(docsrs, doc(cfg(feature = "v2_72")))] pub fn g_log_get_debug_enabled() -> gboolean; @@ -6748,94 +4399,26 @@ extern "C" { #[cfg_attr(docsrs, doc(cfg(feature = "v2_72")))] pub fn g_log_set_debug_enabled(enabled: gboolean); pub fn g_log_set_default_handler(log_func: GLogFunc, user_data: gpointer) -> GLogFunc; - pub fn g_log_set_fatal_mask( - log_domain: *const c_char, - fatal_mask: GLogLevelFlags, - ) -> GLogLevelFlags; - pub fn g_log_set_handler( - log_domain: *const c_char, - log_levels: GLogLevelFlags, - log_func: GLogFunc, - user_data: gpointer, - ) -> c_uint; - pub fn g_log_set_handler_full( - log_domain: *const c_char, - log_levels: GLogLevelFlags, - log_func: GLogFunc, - user_data: gpointer, - destroy: GDestroyNotify, - ) -> c_uint; - pub fn g_log_set_writer_func( - func: GLogWriterFunc, - user_data: gpointer, - user_data_free: GDestroyNotify, - ); + pub fn g_log_set_fatal_mask(log_domain: *const c_char, fatal_mask: GLogLevelFlags) -> GLogLevelFlags; + pub fn g_log_set_handler(log_domain: *const c_char, log_levels: GLogLevelFlags, log_func: GLogFunc, user_data: gpointer) -> c_uint; + pub fn g_log_set_handler_full(log_domain: *const c_char, log_levels: GLogLevelFlags, log_func: GLogFunc, user_data: gpointer, destroy: GDestroyNotify) -> c_uint; + pub fn g_log_set_writer_func(func: GLogWriterFunc, user_data: gpointer, user_data_free: GDestroyNotify); pub fn g_log_structured(log_domain: *const c_char, log_level: GLogLevelFlags, ...); - pub fn g_log_structured_array( - log_level: GLogLevelFlags, - fields: *const GLogField, - n_fields: size_t, - ); - pub fn g_log_structured_standard( - log_domain: *const c_char, - log_level: GLogLevelFlags, - file: *const c_char, - line: *const c_char, - func: *const c_char, - message_format: *const c_char, - ... - ); - pub fn g_log_variant( - log_domain: *const c_char, - log_level: GLogLevelFlags, - fields: *mut GVariant, - ); - pub fn g_log_writer_default( - log_level: GLogLevelFlags, - fields: *const GLogField, - n_fields: size_t, - user_data: gpointer, - ) -> GLogWriterOutput; - #[cfg(feature = "v2_80")] - #[cfg_attr(docsrs, doc(cfg(feature = "v2_80")))] - pub fn g_log_writer_default_set_debug_domains(domains: *const *const c_char); + pub fn g_log_structured_array(log_level: GLogLevelFlags, fields: *const GLogField, n_fields: size_t); + pub fn g_log_structured_standard(log_domain: *const c_char, log_level: GLogLevelFlags, file: *const c_char, line: *const c_char, func: *const c_char, message_format: *const c_char, ...); + pub fn g_log_variant(log_domain: *const c_char, log_level: GLogLevelFlags, fields: *mut GVariant); + pub fn g_log_writer_default(log_level: GLogLevelFlags, fields: *const GLogField, n_fields: size_t, user_data: gpointer) -> GLogWriterOutput; #[cfg(feature = "v2_68")] #[cfg_attr(docsrs, doc(cfg(feature = "v2_68")))] pub fn g_log_writer_default_set_use_stderr(use_stderr: gboolean); #[cfg(feature = "v2_68")] #[cfg_attr(docsrs, doc(cfg(feature = "v2_68")))] - pub fn g_log_writer_default_would_drop( - log_level: GLogLevelFlags, - log_domain: *const c_char, - ) -> gboolean; - pub fn g_log_writer_format_fields( - log_level: GLogLevelFlags, - fields: *const GLogField, - n_fields: size_t, - use_color: gboolean, - ) -> *mut c_char; + pub fn g_log_writer_default_would_drop(log_level: GLogLevelFlags, log_domain: *const c_char) -> gboolean; + pub fn g_log_writer_format_fields(log_level: GLogLevelFlags, fields: *const GLogField, n_fields: size_t, use_color: gboolean) -> *mut c_char; pub fn g_log_writer_is_journald(output_fd: c_int) -> gboolean; - pub fn g_log_writer_journald( - log_level: GLogLevelFlags, - fields: *const GLogField, - n_fields: size_t, - user_data: gpointer, - ) -> GLogWriterOutput; - pub fn g_log_writer_standard_streams( - log_level: GLogLevelFlags, - fields: *const GLogField, - n_fields: size_t, - user_data: gpointer, - ) -> GLogWriterOutput; + pub fn g_log_writer_journald(log_level: GLogLevelFlags, fields: *const GLogField, n_fields: size_t, user_data: gpointer) -> GLogWriterOutput; + pub fn g_log_writer_standard_streams(log_level: GLogLevelFlags, fields: *const GLogField, n_fields: size_t, user_data: gpointer) -> GLogWriterOutput; pub fn g_log_writer_supports_color(output_fd: c_int) -> gboolean; - #[cfg(feature = "v2_80")] - #[cfg_attr(docsrs, doc(cfg(feature = "v2_80")))] - pub fn g_log_writer_syslog( - log_level: GLogLevelFlags, - fields: *const GLogField, - n_fields: size_t, - user_data: gpointer, - ) -> GLogWriterOutput; //pub fn g_logv(log_domain: *const c_char, log_level: GLogLevelFlags, format: *const c_char, args: /*Unimplemented*/va_list); pub fn g_main_current_source() -> *mut GSource; pub fn g_main_depth() -> c_int; @@ -6843,15 +4426,7 @@ extern "C" { pub fn g_malloc0(n_bytes: size_t) -> gpointer; pub fn g_malloc0_n(n_blocks: size_t, n_block_bytes: size_t) -> gpointer; pub fn g_malloc_n(n_blocks: size_t, n_block_bytes: size_t) -> gpointer; - pub fn g_markup_collect_attributes( - element_name: *const c_char, - attribute_names: *mut *const c_char, - attribute_values: *mut *const c_char, - error: *mut *mut GError, - first_type: GMarkupCollectType, - first_attr: *const c_char, - ... - ) -> gboolean; + pub fn g_markup_collect_attributes(element_name: *const c_char, attribute_names: *mut *const c_char, attribute_values: *mut *const c_char, error: *mut *mut GError, first_type: GMarkupCollectType, first_attr: *const c_char, ...) -> gboolean; pub fn g_markup_error_quark() -> GQuark; pub fn g_markup_escape_text(text: *const c_char, length: ssize_t) -> *mut c_char; pub fn g_markup_printf_escaped(format: *const c_char, ...) -> *mut c_char; @@ -6873,46 +4448,17 @@ extern "C" { pub fn g_on_error_query(prg_name: *const c_char); pub fn g_on_error_stack_trace(prg_name: *const c_char); pub fn g_option_error_quark() -> GQuark; - pub fn g_parse_debug_string( - string: *const c_char, - keys: *const GDebugKey, - nkeys: c_uint, - ) -> c_uint; + pub fn g_parse_debug_string(string: *const c_char, keys: *const GDebugKey, nkeys: c_uint) -> c_uint; pub fn g_path_get_basename(file_name: *const c_char) -> *mut c_char; pub fn g_path_get_dirname(file_name: *const c_char) -> *mut c_char; pub fn g_path_is_absolute(file_name: *const c_char) -> gboolean; pub fn g_path_skip_root(file_name: *const c_char) -> *const c_char; - pub fn g_pattern_match( - pspec: *mut GPatternSpec, - string_length: c_uint, - string: *const c_char, - string_reversed: *const c_char, - ) -> gboolean; + pub fn g_pattern_match(pspec: *mut GPatternSpec, string_length: c_uint, string: *const c_char, string_reversed: *const c_char) -> gboolean; pub fn g_pattern_match_simple(pattern: *const c_char, string: *const c_char) -> gboolean; pub fn g_pattern_match_string(pspec: *mut GPatternSpec, string: *const c_char) -> gboolean; pub fn g_pointer_bit_lock(address: *mut c_void, lock_bit: c_int); - #[cfg(feature = "v2_80")] - #[cfg_attr(docsrs, doc(cfg(feature = "v2_80")))] - pub fn g_pointer_bit_lock_and_get(address: gpointer, lock_bit: c_uint, out_ptr: *mut uintptr_t); - #[cfg(feature = "v2_80")] - #[cfg_attr(docsrs, doc(cfg(feature = "v2_80")))] - pub fn g_pointer_bit_lock_mask_ptr( - ptr: gpointer, - lock_bit: c_uint, - set: gboolean, - preserve_mask: uintptr_t, - preserve_ptr: gpointer, - ) -> gpointer; pub fn g_pointer_bit_trylock(address: *mut c_void, lock_bit: c_int) -> gboolean; pub fn g_pointer_bit_unlock(address: *mut c_void, lock_bit: c_int); - #[cfg(feature = "v2_80")] - #[cfg_attr(docsrs, doc(cfg(feature = "v2_80")))] - pub fn g_pointer_bit_unlock_and_set( - address: *mut c_void, - lock_bit: c_uint, - ptr: gpointer, - preserve_mask: uintptr_t, - ); pub fn g_poll(fds: *mut GPollFD, nfds: c_uint, timeout: c_int) -> c_int; pub fn g_prefix_error(err: *mut *mut GError, format: *const c_char, ...); #[cfg(feature = "v2_70")] @@ -6923,19 +4469,8 @@ extern "C" { pub fn g_printf(format: *const c_char, ...) -> c_int; //pub fn g_printf_string_upper_bound(format: *const c_char, args: /*Unimplemented*/va_list) -> size_t; pub fn g_propagate_error(dest: *mut *mut GError, src: *mut GError); - pub fn g_propagate_prefixed_error( - dest: *mut *mut GError, - src: *mut GError, - format: *const c_char, - ... - ); - pub fn g_qsort_with_data( - pbase: gconstpointer, - total_elems: c_int, - size: size_t, - compare_func: GCompareDataFunc, - user_data: gpointer, - ); + pub fn g_propagate_prefixed_error(dest: *mut *mut GError, src: *mut GError, format: *const c_char, ...); + pub fn g_qsort_with_data(pbase: gconstpointer, total_elems: c_int, size: size_t, compare_func: GCompareDataFunc, user_data: gpointer); pub fn g_quark_from_static_string(string: *const c_char) -> GQuark; pub fn g_quark_from_string(string: *const c_char) -> GQuark; pub fn g_quark_to_string(quark: GQuark) -> *const c_char; @@ -6999,183 +4534,65 @@ extern "C" { #[cfg_attr(docsrs, doc(cfg(feature = "v2_58")))] pub fn g_ref_string_release(str: *mut c_char); pub fn g_reload_user_special_dirs_cache(); - pub fn g_return_if_fail_warning( - log_domain: *const c_char, - pretty_function: *const c_char, - expression: *const c_char, - ); + pub fn g_return_if_fail_warning(log_domain: *const c_char, pretty_function: *const c_char, expression: *const c_char); pub fn g_rmdir(filename: *const c_char) -> c_int; pub fn g_set_application_name(application_name: *const c_char); - pub fn g_set_error( - err: *mut *mut GError, - domain: GQuark, - code: c_int, - format: *const c_char, - ... - ); - pub fn g_set_error_literal( - err: *mut *mut GError, - domain: GQuark, - code: c_int, - message: *const c_char, - ); + pub fn g_set_error(err: *mut *mut GError, domain: GQuark, code: c_int, format: *const c_char, ...); + pub fn g_set_error_literal(err: *mut *mut GError, domain: GQuark, code: c_int, message: *const c_char); pub fn g_set_prgname(prgname: *const c_char); pub fn g_set_print_handler(func: GPrintFunc) -> GPrintFunc; pub fn g_set_printerr_handler(func: GPrintFunc) -> GPrintFunc; - pub fn g_set_user_dirs(first_dir_type: *const c_char, ...); - pub fn g_setenv(variable: *const c_char, value: *const c_char, overwrite: gboolean) - -> gboolean; + pub fn g_setenv(variable: *const c_char, value: *const c_char, overwrite: gboolean) -> gboolean; pub fn g_shell_error_quark() -> GQuark; - pub fn g_shell_parse_argv( - command_line: *const c_char, - argcp: *mut c_int, - argvp: *mut *mut *mut c_char, - error: *mut *mut GError, - ) -> gboolean; + pub fn g_shell_parse_argv(command_line: *const c_char, argcp: *mut c_int, argvp: *mut *mut *mut c_char, error: *mut *mut GError) -> gboolean; pub fn g_shell_quote(unquoted_string: *const c_char) -> *mut c_char; pub fn g_shell_unquote(quoted_string: *const c_char, error: *mut *mut GError) -> *mut c_char; pub fn g_slice_alloc(block_size: size_t) -> gpointer; pub fn g_slice_alloc0(block_size: size_t) -> gpointer; pub fn g_slice_copy(block_size: size_t, mem_block: gconstpointer) -> gpointer; pub fn g_slice_free1(block_size: size_t, mem_block: gpointer); - pub fn g_slice_free_chain_with_offset( - block_size: size_t, - mem_chain: gpointer, - next_offset: size_t, - ); + pub fn g_slice_free_chain_with_offset(block_size: size_t, mem_chain: gpointer, next_offset: size_t); pub fn g_slice_get_config(ckey: GSliceConfig) -> i64; - pub fn g_slice_get_config_state( - ckey: GSliceConfig, - address: i64, - n_values: *mut c_uint, - ) -> *mut i64; + pub fn g_slice_get_config_state(ckey: GSliceConfig, address: i64, n_values: *mut c_uint) -> *mut i64; pub fn g_slice_set_config(ckey: GSliceConfig, value: i64); pub fn g_snprintf(string: *mut c_char, n: c_ulong, format: *const c_char, ...) -> c_int; pub fn g_spaced_primes_closest(num: c_uint) -> c_uint; - pub fn g_spawn_async( - working_directory: *const c_char, - argv: *mut *mut c_char, - envp: *mut *mut c_char, - flags: GSpawnFlags, - child_setup: GSpawnChildSetupFunc, - user_data: gpointer, - child_pid: *mut GPid, - error: *mut *mut GError, - ) -> gboolean; + pub fn g_spawn_async(working_directory: *const c_char, argv: *mut *mut c_char, envp: *mut *mut c_char, flags: GSpawnFlags, child_setup: GSpawnChildSetupFunc, user_data: gpointer, child_pid: *mut GPid, error: *mut *mut GError) -> gboolean; #[cfg(feature = "v2_58")] #[cfg_attr(docsrs, doc(cfg(feature = "v2_58")))] - pub fn g_spawn_async_with_fds( - working_directory: *const c_char, - argv: *mut *mut c_char, - envp: *mut *mut c_char, - flags: GSpawnFlags, - child_setup: GSpawnChildSetupFunc, - user_data: gpointer, - child_pid: *mut GPid, - stdin_fd: c_int, - stdout_fd: c_int, - stderr_fd: c_int, - error: *mut *mut GError, - ) -> gboolean; - pub fn g_spawn_async_with_pipes( - working_directory: *const c_char, - argv: *mut *mut c_char, - envp: *mut *mut c_char, - flags: GSpawnFlags, - child_setup: GSpawnChildSetupFunc, - user_data: gpointer, - child_pid: *mut GPid, - standard_input: *mut c_int, - standard_output: *mut c_int, - standard_error: *mut c_int, - error: *mut *mut GError, - ) -> gboolean; + pub fn g_spawn_async_with_fds(working_directory: *const c_char, argv: *mut *mut c_char, envp: *mut *mut c_char, flags: GSpawnFlags, child_setup: GSpawnChildSetupFunc, user_data: gpointer, child_pid: *mut GPid, stdin_fd: c_int, stdout_fd: c_int, stderr_fd: c_int, error: *mut *mut GError) -> gboolean; + pub fn g_spawn_async_with_pipes(working_directory: *const c_char, argv: *mut *mut c_char, envp: *mut *mut c_char, flags: GSpawnFlags, child_setup: GSpawnChildSetupFunc, user_data: gpointer, child_pid: *mut GPid, standard_input: *mut c_int, standard_output: *mut c_int, standard_error: *mut c_int, error: *mut *mut GError) -> gboolean; #[cfg(feature = "v2_68")] #[cfg_attr(docsrs, doc(cfg(feature = "v2_68")))] - pub fn g_spawn_async_with_pipes_and_fds( - working_directory: *const c_char, - argv: *const *const c_char, - envp: *const *const c_char, - flags: GSpawnFlags, - child_setup: GSpawnChildSetupFunc, - user_data: gpointer, - stdin_fd: c_int, - stdout_fd: c_int, - stderr_fd: c_int, - source_fds: *const c_int, - target_fds: *const c_int, - n_fds: size_t, - child_pid_out: *mut GPid, - stdin_pipe_out: *mut c_int, - stdout_pipe_out: *mut c_int, - stderr_pipe_out: *mut c_int, - error: *mut *mut GError, - ) -> gboolean; + pub fn g_spawn_async_with_pipes_and_fds(working_directory: *const c_char, argv: *const *const c_char, envp: *const *const c_char, flags: GSpawnFlags, child_setup: GSpawnChildSetupFunc, user_data: gpointer, stdin_fd: c_int, stdout_fd: c_int, stderr_fd: c_int, source_fds: *const c_int, target_fds: *const c_int, n_fds: size_t, child_pid_out: *mut GPid, stdin_pipe_out: *mut c_int, stdout_pipe_out: *mut c_int, stderr_pipe_out: *mut c_int, error: *mut *mut GError) -> gboolean; pub fn g_spawn_check_exit_status(wait_status: c_int, error: *mut *mut GError) -> gboolean; #[cfg(feature = "v2_70")] #[cfg_attr(docsrs, doc(cfg(feature = "v2_70")))] pub fn g_spawn_check_wait_status(wait_status: c_int, error: *mut *mut GError) -> gboolean; pub fn g_spawn_close_pid(pid: GPid); - pub fn g_spawn_command_line_async( - command_line: *const c_char, - error: *mut *mut GError, - ) -> gboolean; - pub fn g_spawn_command_line_sync( - command_line: *const c_char, - standard_output: *mut *mut u8, - standard_error: *mut *mut u8, - wait_status: *mut c_int, - error: *mut *mut GError, - ) -> gboolean; + pub fn g_spawn_command_line_async(command_line: *const c_char, error: *mut *mut GError) -> gboolean; + pub fn g_spawn_command_line_sync(command_line: *const c_char, standard_output: *mut *mut u8, standard_error: *mut *mut u8, wait_status: *mut c_int, error: *mut *mut GError) -> gboolean; pub fn g_spawn_error_quark() -> GQuark; pub fn g_spawn_exit_error_quark() -> GQuark; - pub fn g_spawn_sync( - working_directory: *const c_char, - argv: *mut *mut c_char, - envp: *mut *mut c_char, - flags: GSpawnFlags, - child_setup: GSpawnChildSetupFunc, - user_data: gpointer, - standard_output: *mut *mut u8, - standard_error: *mut *mut u8, - wait_status: *mut c_int, - error: *mut *mut GError, - ) -> gboolean; + pub fn g_spawn_sync(working_directory: *const c_char, argv: *mut *mut c_char, envp: *mut *mut c_char, flags: GSpawnFlags, child_setup: GSpawnChildSetupFunc, user_data: gpointer, standard_output: *mut *mut u8, standard_error: *mut *mut u8, wait_status: *mut c_int, error: *mut *mut GError) -> gboolean; pub fn g_sprintf(string: *mut c_char, format: *const c_char, ...) -> c_int; - pub fn g_stat(filename: *const c_char, buf: *mut GStatBuf) -> c_int; pub fn g_stpcpy(dest: *mut c_char, src: *const c_char) -> *mut c_char; pub fn g_str_equal(v1: gconstpointer, v2: gconstpointer) -> gboolean; pub fn g_str_has_prefix(str: *const c_char, prefix: *const c_char) -> gboolean; pub fn g_str_has_suffix(str: *const c_char, suffix: *const c_char) -> gboolean; pub fn g_str_hash(v: gconstpointer) -> c_uint; pub fn g_str_is_ascii(str: *const c_char) -> gboolean; - pub fn g_str_match_string( - search_term: *const c_char, - potential_hit: *const c_char, - accept_alternates: gboolean, - ) -> gboolean; + pub fn g_str_match_string(search_term: *const c_char, potential_hit: *const c_char, accept_alternates: gboolean) -> gboolean; pub fn g_str_to_ascii(str: *const c_char, from_locale: *const c_char) -> *mut c_char; - pub fn g_str_tokenize_and_fold( - string: *const c_char, - translit_locale: *const c_char, - ascii_alternates: *mut *mut *mut c_char, - ) -> *mut *mut c_char; - pub fn g_strcanon( - string: *mut c_char, - valid_chars: *const c_char, - substitutor: c_char, - ) -> *mut c_char; + pub fn g_str_tokenize_and_fold(string: *const c_char, translit_locale: *const c_char, ascii_alternates: *mut *mut *mut c_char) -> *mut *mut c_char; + pub fn g_strcanon(string: *mut c_char, valid_chars: *const c_char, substitutor: c_char) -> *mut c_char; pub fn g_strcasecmp(s1: *const c_char, s2: *const c_char) -> c_int; pub fn g_strchomp(string: *mut c_char) -> *mut c_char; pub fn g_strchug(string: *mut c_char) -> *mut c_char; pub fn g_strcmp0(str1: *const c_char, str2: *const c_char) -> c_int; pub fn g_strcompress(source: *const c_char) -> *mut c_char; pub fn g_strconcat(string1: *const c_char, ...) -> *mut c_char; - pub fn g_strdelimit( - string: *mut c_char, - delimiters: *const c_char, - new_delimiter: c_char, - ) -> *mut c_char; + pub fn g_strdelimit(string: *mut c_char, delimiters: *const c_char, new_delimiter: c_char) -> *mut c_char; pub fn g_strdown(string: *mut c_char) -> *mut c_char; pub fn g_strdup(str: *const c_char) -> *mut c_char; pub fn g_strdup_printf(format: *const c_char, ...) -> *mut c_char; @@ -7194,27 +4611,11 @@ extern "C" { pub fn g_strnfill(length: size_t, fill_char: c_char) -> *mut c_char; pub fn g_strreverse(string: *mut c_char) -> *mut c_char; pub fn g_strrstr(haystack: *const c_char, needle: *const c_char) -> *mut c_char; - pub fn g_strrstr_len( - haystack: *const c_char, - haystack_len: ssize_t, - needle: *const c_char, - ) -> *mut c_char; + pub fn g_strrstr_len(haystack: *const c_char, haystack_len: ssize_t, needle: *const c_char) -> *mut c_char; pub fn g_strsignal(signum: c_int) -> *const c_char; - pub fn g_strsplit( - string: *const c_char, - delimiter: *const c_char, - max_tokens: c_int, - ) -> *mut *mut c_char; - pub fn g_strsplit_set( - string: *const c_char, - delimiters: *const c_char, - max_tokens: c_int, - ) -> *mut *mut c_char; - pub fn g_strstr_len( - haystack: *const c_char, - haystack_len: ssize_t, - needle: *const c_char, - ) -> *mut c_char; + pub fn g_strsplit(string: *const c_char, delimiter: *const c_char, max_tokens: c_int) -> *mut *mut c_char; + pub fn g_strsplit_set(string: *const c_char, delimiters: *const c_char, max_tokens: c_int) -> *mut *mut c_char; + pub fn g_strstr_len(haystack: *const c_char, haystack_len: ssize_t, needle: *const c_char) -> *mut c_char; pub fn g_strtod(nptr: *const c_char, endptr: *mut *mut c_char) -> c_double; pub fn g_strup(string: *mut c_char) -> *mut c_char; pub fn g_strv_contains(strv: *const *const c_char, str: *const c_char) -> gboolean; @@ -7223,67 +4624,27 @@ extern "C" { pub fn g_strv_equal(strv1: *const *const c_char, strv2: *const *const c_char) -> gboolean; pub fn g_strv_get_type() -> GType; pub fn g_strv_length(str_array: *mut *mut c_char) -> c_uint; - pub fn g_test_add_data_func( - testpath: *const c_char, - test_data: gconstpointer, - test_func: GTestDataFunc, - ); - pub fn g_test_add_data_func_full( - testpath: *const c_char, - test_data: gpointer, - test_func: GTestDataFunc, - data_free_func: GDestroyNotify, - ); + pub fn g_test_add_data_func(testpath: *const c_char, test_data: gconstpointer, test_func: GTestDataFunc); + pub fn g_test_add_data_func_full(testpath: *const c_char, test_data: gpointer, test_func: GTestDataFunc, data_free_func: GDestroyNotify); pub fn g_test_add_func(testpath: *const c_char, test_func: GTestFunc); - pub fn g_test_add_vtable( - testpath: *const c_char, - data_size: size_t, - test_data: gconstpointer, - data_setup: GTestFixtureFunc, - data_test: GTestFixtureFunc, - data_teardown: GTestFixtureFunc, - ); - pub fn g_test_assert_expected_messages_internal( - domain: *const c_char, - file: *const c_char, - line: c_int, - func: *const c_char, - ); + pub fn g_test_add_vtable(testpath: *const c_char, data_size: size_t, test_data: gconstpointer, data_setup: GTestFixtureFunc, data_test: GTestFixtureFunc, data_teardown: GTestFixtureFunc); + pub fn g_test_assert_expected_messages_internal(domain: *const c_char, file: *const c_char, line: c_int, func: *const c_char); pub fn g_test_bug(bug_uri_snippet: *const c_char); pub fn g_test_bug_base(uri_pattern: *const c_char); - pub fn g_test_build_filename( - file_type: GTestFileType, - first_path: *const c_char, - ... - ) -> *mut c_char; - pub fn g_test_create_case( - test_name: *const c_char, - data_size: size_t, - test_data: gconstpointer, - data_setup: GTestFixtureFunc, - data_test: GTestFixtureFunc, - data_teardown: GTestFixtureFunc, - ) -> *mut GTestCase; + pub fn g_test_build_filename(file_type: GTestFileType, first_path: *const c_char, ...) -> *mut c_char; + pub fn g_test_create_case(test_name: *const c_char, data_size: size_t, test_data: gconstpointer, data_setup: GTestFixtureFunc, data_test: GTestFixtureFunc, data_teardown: GTestFixtureFunc) -> *mut GTestCase; pub fn g_test_create_suite(suite_name: *const c_char) -> *mut GTestSuite; #[cfg(feature = "v2_78")] #[cfg_attr(docsrs, doc(cfg(feature = "v2_78")))] pub fn g_test_disable_crash_reporting(); - pub fn g_test_expect_message( - log_domain: *const c_char, - log_level: GLogLevelFlags, - pattern: *const c_char, - ); + pub fn g_test_expect_message(log_domain: *const c_char, log_level: GLogLevelFlags, pattern: *const c_char); pub fn g_test_fail(); #[cfg(feature = "v2_70")] #[cfg_attr(docsrs, doc(cfg(feature = "v2_70")))] pub fn g_test_fail_printf(format: *const c_char, ...); pub fn g_test_failed() -> gboolean; pub fn g_test_get_dir(file_type: GTestFileType) -> *const c_char; - pub fn g_test_get_filename( - file_type: GTestFileType, - first_path: *const c_char, - ... - ) -> *const c_char; + pub fn g_test_get_filename(file_type: GTestFileType, first_path: *const c_char, ...) -> *const c_char; #[cfg(feature = "v2_68")] #[cfg_attr(docsrs, doc(cfg(feature = "v2_68")))] pub fn g_test_get_path() -> *const c_char; @@ -7318,61 +4679,21 @@ extern "C" { pub fn g_test_timer_elapsed() -> c_double; pub fn g_test_timer_last() -> c_double; pub fn g_test_timer_start(); - pub fn g_test_trap_assertions( - domain: *const c_char, - file: *const c_char, - line: c_int, - func: *const c_char, - assertion_flags: u64, - pattern: *const c_char, - ); + pub fn g_test_trap_assertions(domain: *const c_char, file: *const c_char, line: c_int, func: *const c_char, assertion_flags: u64, pattern: *const c_char); pub fn g_test_trap_fork(usec_timeout: u64, test_trap_flags: GTestTrapFlags) -> gboolean; pub fn g_test_trap_has_passed() -> gboolean; pub fn g_test_trap_reached_timeout() -> gboolean; - pub fn g_test_trap_subprocess( - test_path: *const c_char, - usec_timeout: u64, - test_flags: GTestSubprocessFlags, - ); - #[cfg(feature = "v2_80")] - #[cfg_attr(docsrs, doc(cfg(feature = "v2_80")))] - pub fn g_test_trap_subprocess_with_envp( - test_path: *const c_char, - envp: *const *const c_char, - usec_timeout: u64, - test_flags: GTestSubprocessFlags, - ); + pub fn g_test_trap_subprocess(test_path: *const c_char, usec_timeout: u64, test_flags: GTestSubprocessFlags); pub fn g_timeout_add(interval: c_uint, function: GSourceFunc, data: gpointer) -> c_uint; - pub fn g_timeout_add_full( - priority: c_int, - interval: c_uint, - function: GSourceFunc, - data: gpointer, - notify: GDestroyNotify, - ) -> c_uint; + pub fn g_timeout_add_full(priority: c_int, interval: c_uint, function: GSourceFunc, data: gpointer, notify: GDestroyNotify) -> c_uint; #[cfg(feature = "v2_74")] #[cfg_attr(docsrs, doc(cfg(feature = "v2_74")))] - pub fn g_timeout_add_once( - interval: c_uint, - function: GSourceOnceFunc, - data: gpointer, - ) -> c_uint; - pub fn g_timeout_add_seconds(interval: c_uint, function: GSourceFunc, data: gpointer) - -> c_uint; - pub fn g_timeout_add_seconds_full( - priority: c_int, - interval: c_uint, - function: GSourceFunc, - data: gpointer, - notify: GDestroyNotify, - ) -> c_uint; + pub fn g_timeout_add_once(interval: c_uint, function: GSourceOnceFunc, data: gpointer) -> c_uint; + pub fn g_timeout_add_seconds(interval: c_uint, function: GSourceFunc, data: gpointer) -> c_uint; + pub fn g_timeout_add_seconds_full(priority: c_int, interval: c_uint, function: GSourceFunc, data: gpointer, notify: GDestroyNotify) -> c_uint; #[cfg(feature = "v2_78")] #[cfg_attr(docsrs, doc(cfg(feature = "v2_78")))] - pub fn g_timeout_add_seconds_once( - interval: c_uint, - function: GSourceOnceFunc, - data: gpointer, - ) -> c_uint; + pub fn g_timeout_add_seconds_once(interval: c_uint, function: GSourceOnceFunc, data: gpointer) -> c_uint; pub fn g_timeout_source_new(interval: c_uint) -> *mut GSource; pub fn g_timeout_source_new_seconds(interval: c_uint) -> *mut GSource; pub fn g_try_malloc(n_bytes: size_t) -> gpointer; @@ -7381,31 +4702,14 @@ extern "C" { pub fn g_try_malloc_n(n_blocks: size_t, n_block_bytes: size_t) -> gpointer; pub fn g_try_realloc(mem: gpointer, n_bytes: size_t) -> gpointer; pub fn g_try_realloc_n(mem: gpointer, n_blocks: size_t, n_block_bytes: size_t) -> gpointer; - pub fn g_ucs4_to_utf16( - str: *const u32, - len: c_long, - items_read: *mut c_long, - items_written: *mut c_long, - error: *mut *mut GError, - ) -> *mut u16; - pub fn g_ucs4_to_utf8( - str: *const u32, - len: c_long, - items_read: *mut c_long, - items_written: *mut c_long, - error: *mut *mut GError, - ) -> *mut c_char; + pub fn g_ucs4_to_utf16(str: *const u32, len: c_long, items_read: *mut c_long, items_written: *mut c_long, error: *mut *mut GError) -> *mut u16; + pub fn g_ucs4_to_utf8(str: *const u32, len: c_long, items_read: *mut c_long, items_written: *mut c_long, error: *mut *mut GError) -> *mut c_char; pub fn g_unichar_break_type(c: u32) -> GUnicodeBreakType; pub fn g_unichar_combining_class(uc: u32) -> c_int; pub fn g_unichar_compose(a: u32, b: u32, ch: *mut u32) -> gboolean; pub fn g_unichar_decompose(ch: u32, a: *mut u32, b: *mut u32) -> gboolean; pub fn g_unichar_digit_value(c: u32) -> c_int; - pub fn g_unichar_fully_decompose( - ch: u32, - compat: gboolean, - result: *mut u32, - result_len: size_t, - ) -> size_t; + pub fn g_unichar_fully_decompose(ch: u32, compat: gboolean, result: *mut u32, result_len: size_t) -> size_t; pub fn g_unichar_get_mirror_char(ch: u32, mirrored_ch: *mut u32) -> gboolean; pub fn g_unichar_get_script(ch: u32) -> GUnicodeScript; pub fn g_unichar_isalnum(c: u32) -> gboolean; @@ -7434,66 +4738,27 @@ extern "C" { pub fn g_unichar_xdigit_value(c: u32) -> c_int; pub fn g_unicode_canonical_decomposition(ch: u32, result_len: *mut size_t) -> *mut u32; pub fn g_unicode_canonical_ordering(string: *mut u32, len: size_t); + pub fn g_unicode_script_from_iso15924(iso15924: u32) -> GUnicodeScript; + pub fn g_unicode_script_to_iso15924(script: GUnicodeScript) -> u32; pub fn g_unix_error_quark() -> GQuark; - pub fn g_unix_fd_add( - fd: c_int, - condition: GIOCondition, - function: GUnixFDSourceFunc, - user_data: gpointer, - ) -> c_uint; - pub fn g_unix_fd_add_full( - priority: c_int, - fd: c_int, - condition: GIOCondition, - function: GUnixFDSourceFunc, - user_data: gpointer, - notify: GDestroyNotify, - ) -> c_uint; + pub fn g_unix_fd_add(fd: c_int, condition: GIOCondition, function: GUnixFDSourceFunc, user_data: gpointer) -> c_uint; + pub fn g_unix_fd_add_full(priority: c_int, fd: c_int, condition: GIOCondition, function: GUnixFDSourceFunc, user_data: gpointer, notify: GDestroyNotify) -> c_uint; pub fn g_unix_fd_source_new(fd: c_int, condition: GIOCondition) -> *mut GSource; #[cfg(feature = "v2_64")] #[cfg_attr(docsrs, doc(cfg(feature = "v2_64")))] #[cfg(unix)] #[cfg_attr(docsrs, doc(cfg(unix)))] - pub fn g_unix_get_passwd_entry( - user_name: *const c_char, - error: *mut *mut GError, - ) -> *mut passwd; - pub fn g_unix_open_pipe( - fds: *mut [c_int; 2], - flags: c_int, - error: *mut *mut GError, - ) -> gboolean; - pub fn g_unix_set_fd_nonblocking( - fd: c_int, - nonblock: gboolean, - error: *mut *mut GError, - ) -> gboolean; + pub fn g_unix_get_passwd_entry(user_name: *const c_char, error: *mut *mut GError) -> *mut passwd; + pub fn g_unix_open_pipe(fds: *mut [c_int; 2], flags: c_int, error: *mut *mut GError) -> gboolean; + pub fn g_unix_set_fd_nonblocking(fd: c_int, nonblock: gboolean, error: *mut *mut GError) -> gboolean; pub fn g_unix_signal_add(signum: c_int, handler: GSourceFunc, user_data: gpointer) -> c_uint; - pub fn g_unix_signal_add_full( - priority: c_int, - signum: c_int, - handler: GSourceFunc, - user_data: gpointer, - notify: GDestroyNotify, - ) -> c_uint; + pub fn g_unix_signal_add_full(priority: c_int, signum: c_int, handler: GSourceFunc, user_data: gpointer, notify: GDestroyNotify) -> c_uint; pub fn g_unix_signal_source_new(signum: c_int) -> *mut GSource; pub fn g_unlink(filename: *const c_char) -> c_int; pub fn g_unsetenv(variable: *const c_char); pub fn g_usleep(microseconds: c_ulong); - pub fn g_utf16_to_ucs4( - str: *const u16, - len: c_long, - items_read: *mut c_long, - items_written: *mut c_long, - error: *mut *mut GError, - ) -> *mut u32; - pub fn g_utf16_to_utf8( - str: *const u16, - len: c_long, - items_read: *mut c_long, - items_written: *mut c_long, - error: *mut *mut GError, - ) -> *mut c_char; + pub fn g_utf16_to_ucs4(str: *const u16, len: c_long, items_read: *mut c_long, items_written: *mut c_long, error: *mut *mut GError) -> *mut u32; + pub fn g_utf16_to_utf8(str: *const u16, len: c_long, items_read: *mut c_long, items_written: *mut c_long, error: *mut *mut GError) -> *mut c_char; pub fn g_utf8_casefold(str: *const c_char, len: ssize_t) -> *mut c_char; pub fn g_utf8_collate(str1: *const c_char, str2: *const c_char) -> c_int; pub fn g_utf8_collate_key(str: *const c_char, len: ssize_t) -> *mut c_char; @@ -7515,36 +4780,16 @@ extern "C" { pub fn g_utf8_strreverse(str: *const c_char, len: ssize_t) -> *mut c_char; pub fn g_utf8_strup(str: *const c_char, len: ssize_t) -> *mut c_char; pub fn g_utf8_substring(str: *const c_char, start_pos: c_long, end_pos: c_long) -> *mut c_char; - pub fn g_utf8_to_ucs4( - str: *const c_char, - len: c_long, - items_read: *mut c_long, - items_written: *mut c_long, - error: *mut *mut GError, - ) -> *mut u32; - pub fn g_utf8_to_ucs4_fast( - str: *const c_char, - len: c_long, - items_written: *mut c_long, - ) -> *mut u32; - pub fn g_utf8_to_utf16( - str: *const c_char, - len: c_long, - items_read: *mut c_long, - items_written: *mut c_long, - error: *mut *mut GError, - ) -> *mut u16; + pub fn g_utf8_to_ucs4(str: *const c_char, len: c_long, items_read: *mut c_long, items_written: *mut c_long, error: *mut *mut GError) -> *mut u32; + pub fn g_utf8_to_ucs4_fast(str: *const c_char, len: c_long, items_written: *mut c_long) -> *mut u32; + pub fn g_utf8_to_utf16(str: *const c_char, len: c_long, items_read: *mut c_long, items_written: *mut c_long, error: *mut *mut GError) -> *mut u16; #[cfg(feature = "v2_78")] #[cfg_attr(docsrs, doc(cfg(feature = "v2_78")))] pub fn g_utf8_truncate_middle(string: *const c_char, truncate_length: size_t) -> *mut c_char; pub fn g_utf8_validate(str: *const u8, max_len: ssize_t, end: *mut *const c_char) -> gboolean; #[cfg(feature = "v2_60")] #[cfg_attr(docsrs, doc(cfg(feature = "v2_60")))] - pub fn g_utf8_validate_len( - str: *const u8, - max_len: size_t, - end: *mut *const c_char, - ) -> gboolean; + pub fn g_utf8_validate_len(str: *const u8, max_len: size_t, end: *mut *const c_char) -> gboolean; pub fn g_uuid_string_is_valid(str: *const c_char) -> gboolean; pub fn g_uuid_string_random() -> *mut c_char; pub fn g_variant_get_gtype() -> GType; @@ -7553,54 +4798,6 @@ extern "C" { //pub fn g_vprintf(format: *const c_char, args: /*Unimplemented*/va_list) -> c_int; //pub fn g_vsnprintf(string: *mut c_char, n: c_ulong, format: *const c_char, args: /*Unimplemented*/va_list) -> c_int; //pub fn g_vsprintf(string: *mut c_char, format: *const c_char, args: /*Unimplemented*/va_list) -> c_int; - pub fn g_warn_message( - domain: *const c_char, - file: *const c_char, - line: c_int, - func: *const c_char, - warnexpr: *const c_char, - ); - #[cfg(windows)] - #[cfg_attr(docsrs, doc(cfg(windows)))] - pub fn g_win32_check_windows_version( - major: c_int, - minor: c_int, - spver: c_int, - os_type: GWin32OSType, - ) -> gboolean; - #[cfg(windows)] - #[cfg_attr(docsrs, doc(cfg(windows)))] - pub fn g_win32_error_message(error: c_int) -> *mut c_char; - #[cfg(windows)] - #[cfg_attr(docsrs, doc(cfg(windows)))] - pub fn g_win32_ftruncate(f: c_int, size: c_uint) -> c_int; - #[cfg(windows)] - #[cfg_attr(docsrs, doc(cfg(windows)))] - pub fn g_win32_get_command_line() -> *mut *mut c_char; - #[cfg(windows)] - #[cfg_attr(docsrs, doc(cfg(windows)))] - pub fn g_win32_get_package_installation_directory( - package: *const c_char, - dll_name: *const c_char, - ) -> *mut c_char; - #[cfg(windows)] - #[cfg_attr(docsrs, doc(cfg(windows)))] - pub fn g_win32_get_package_installation_directory_of_module(hmodule: gpointer) -> *mut c_char; - #[cfg(windows)] - #[cfg_attr(docsrs, doc(cfg(windows)))] - pub fn g_win32_get_package_installation_subdirectory( - package: *const c_char, - dll_name: *const c_char, - subdir: *const c_char, - ) -> *mut c_char; - #[cfg(windows)] - #[cfg_attr(docsrs, doc(cfg(windows)))] - pub fn g_win32_get_windows_version() -> c_uint; - #[cfg(windows)] - #[cfg_attr(docsrs, doc(cfg(windows)))] - pub fn g_win32_getlocale() -> *mut c_char; - #[cfg(windows)] - #[cfg_attr(docsrs, doc(cfg(windows)))] - pub fn g_win32_locale_filename_from_utf8(utf8filename: *const c_char) -> *mut c_char; + pub fn g_warn_message(domain: *const c_char, file: *const c_char, line: c_int, func: *const c_char, warnexpr: *const c_char); } --- rust-glib-sys-0.19.0.orig/tests/abi.rs +++ rust-glib-sys-0.19.0/tests/abi.rs @@ -1,14 +1,14 @@ // This file was generated by gir (https://github.com/gtk-rs/gir) -// from gir-files (https://github.com/gtk-rs/gir-files) +// from // DO NOT EDIT #![cfg(unix)] use glib_sys::*; +use std::mem::{align_of, size_of}; use std::env; use std::error::Error; use std::ffi::OsString; -use std::mem::{align_of, size_of}; use std::path::Path; use std::process::{Command, Stdio}; use std::str; @@ -66,7 +66,8 @@ fn pkg_config_cflags(packages: &[&str]) if packages.is_empty() { return Ok(Vec::new()); } - let pkg_config = env::var_os("PKG_CONFIG").unwrap_or_else(|| OsString::from("pkg-config")); + let pkg_config = env::var_os("PKG_CONFIG") + .unwrap_or_else(|| OsString::from("pkg-config")); let mut cmd = Command::new(pkg_config); cmd.arg("--cflags"); cmd.args(packages); @@ -80,6 +81,7 @@ fn pkg_config_cflags(packages: &[&str]) Ok(shell_words::split(stdout.trim())?) } + #[derive(Copy, Clone, Debug, Eq, PartialEq)] struct Layout { size: usize, @@ -161,7 +163,8 @@ fn cross_validate_layout_with_c() { let mut results = Results::default(); - for ((rust_name, rust_layout), (c_name, c_layout)) in RUST_LAYOUTS.iter().zip(c_layouts.iter()) + for ((rust_name, rust_layout), (c_name, c_layout)) in + RUST_LAYOUTS.iter().zip(c_layouts.iter()) { if rust_name != c_name { results.record_failed(); @@ -171,7 +174,9 @@ fn cross_validate_layout_with_c() { if rust_layout != c_layout { results.record_failed(); - eprintln!("Layout mismatch for {rust_name}\nRust: {rust_layout:?}\nC: {c_layout:?}",); + eprintln!( + "Layout mismatch for {rust_name}\nRust: {rust_layout:?}\nC: {c_layout:?}", + ); continue; } @@ -201,859 +206,116 @@ fn get_c_output(name: &str) -> Result(), - alignment: align_of::(), - }, - ), - ( - "GAsciiType", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "GBookmarkFileError", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "GByteArray", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "GChecksumType", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "GCompletion", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "GCond", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "GConvertError", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "GDate", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "GDateDMY", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "GDateDay", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "GDateMonth", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "GDateWeekday", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "GDateYear", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "GDebugKey", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "GError", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "GErrorType", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "GFileError", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "GFileSetContentsFlags", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "GFileTest", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "GFormatSizeFlags", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "GHashTableIter", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "GHook", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "GHookFlagMask", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "GHookList", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "GIOChannelError", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "GIOCondition", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "GIOError", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "GIOFlags", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "GIOFuncs", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "GIOStatus", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "GKeyFileError", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "GKeyFileFlags", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "GList", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "GLogField", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "GLogLevelFlags", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "GLogWriterOutput", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "GMainContextFlags", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "GMarkupCollectType", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "GMarkupError", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "GMarkupParseFlags", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "GMarkupParser", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "GMemVTable", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "GMutex", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "GNode", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "GNormalizeMode", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "GNumberParserError", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "GOnce", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "GOnceStatus", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "GOptionArg", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "GOptionEntry", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "GOptionError", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "GOptionFlags", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "GPathBuf", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "GPid", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "GPollFD", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "GPrivate", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "GPtrArray", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "GQuark", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "GQueue", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "GRWLock", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "GRecMutex", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "GRefString", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "GRegexCompileFlags", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "GRegexError", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "GRegexMatchFlags", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "GSList", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "GScanner", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "GSeekType", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "GShellError", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "GSliceConfig", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "GSource", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "GSourceCallbackFuncs", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "GSourceFuncs", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "GSpawnError", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "GSpawnFlags", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "GStaticMutex", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "GStaticPrivate", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "GStaticRWLock", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "GStaticRecMutex", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "GString", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "GStrv", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "GTestConfig", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "GTestFileType", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "GTestLogBuffer", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "GTestLogType", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "GTestResult", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "GTestSubprocessFlags", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "GTestTrapFlags", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "GThread", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "GThreadError", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "GThreadFunctions", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "GThreadPool", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "GThreadPriority", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "GTime", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "GTimeSpan", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "GTimeType", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "GTimeVal", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "GTokenType", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "GTokenValue", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "GTrashStack", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "GTraverseFlags", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "GTraverseType", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "GTuples", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "GUnicodeBreakType", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "GUnicodeScript", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "GUnicodeType", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - #[cfg(unix)] - #[cfg_attr(docsrs, doc(cfg(unix)))] - ( - "GUnixPipe", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - #[cfg(unix)] - #[cfg_attr(docsrs, doc(cfg(unix)))] - ( - "GUnixPipeEnd", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "GUriError", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "GUriFlags", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "GUriHideFlags", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "GUriParamsFlags", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "GUriParamsIter", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "GUserDirectory", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "GVariantBuilder", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "GVariantClass", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "GVariantDict", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "GVariantIter", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "GVariantParseError", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - #[cfg(windows)] - #[cfg_attr(docsrs, doc(cfg(windows)))] - ( - "GWin32OSType", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), + ("GArray", Layout {size: size_of::(), alignment: align_of::()}), + ("GAsciiType", Layout {size: size_of::(), alignment: align_of::()}), + ("GBookmarkFileError", Layout {size: size_of::(), alignment: align_of::()}), + ("GByteArray", Layout {size: size_of::(), alignment: align_of::()}), + ("GChecksumType", Layout {size: size_of::(), alignment: align_of::()}), + ("GCond", Layout {size: size_of::(), alignment: align_of::()}), + ("GConvertError", Layout {size: size_of::(), alignment: align_of::()}), + ("GDate", Layout {size: size_of::(), alignment: align_of::()}), + ("GDateDMY", Layout {size: size_of::(), alignment: align_of::()}), + ("GDateDay", Layout {size: size_of::(), alignment: align_of::()}), + ("GDateMonth", Layout {size: size_of::(), alignment: align_of::()}), + ("GDateWeekday", Layout {size: size_of::(), alignment: align_of::()}), + ("GDateYear", Layout {size: size_of::(), alignment: align_of::()}), + ("GDebugKey", Layout {size: size_of::(), alignment: align_of::()}), + ("GError", Layout {size: size_of::(), alignment: align_of::()}), + ("GErrorType", Layout {size: size_of::(), alignment: align_of::()}), + ("GFileError", Layout {size: size_of::(), alignment: align_of::()}), + ("GFileSetContentsFlags", Layout {size: size_of::(), alignment: align_of::()}), + ("GFileTest", Layout {size: size_of::(), alignment: align_of::()}), + ("GFormatSizeFlags", Layout {size: size_of::(), alignment: align_of::()}), + ("GHashTableIter", Layout {size: size_of::(), alignment: align_of::()}), + ("GHook", Layout {size: size_of::(), alignment: align_of::()}), + ("GHookFlagMask", Layout {size: size_of::(), alignment: align_of::()}), + ("GHookList", Layout {size: size_of::(), alignment: align_of::()}), + ("GIOChannelError", Layout {size: size_of::(), alignment: align_of::()}), + ("GIOCondition", Layout {size: size_of::(), alignment: align_of::()}), + ("GIOError", Layout {size: size_of::(), alignment: align_of::()}), + ("GIOFlags", Layout {size: size_of::(), alignment: align_of::()}), + ("GIOFuncs", Layout {size: size_of::(), alignment: align_of::()}), + ("GIOStatus", Layout {size: size_of::(), alignment: align_of::()}), + ("GKeyFileError", Layout {size: size_of::(), alignment: align_of::()}), + ("GKeyFileFlags", Layout {size: size_of::(), alignment: align_of::()}), + ("GList", Layout {size: size_of::(), alignment: align_of::()}), + ("GLogField", Layout {size: size_of::(), alignment: align_of::()}), + ("GLogLevelFlags", Layout {size: size_of::(), alignment: align_of::()}), + ("GLogWriterOutput", Layout {size: size_of::(), alignment: align_of::()}), + ("GMainContextFlags", Layout {size: size_of::(), alignment: align_of::()}), + ("GMarkupCollectType", Layout {size: size_of::(), alignment: align_of::()}), + ("GMarkupError", Layout {size: size_of::(), alignment: align_of::()}), + ("GMarkupParseFlags", Layout {size: size_of::(), alignment: align_of::()}), + ("GMarkupParser", Layout {size: size_of::(), alignment: align_of::()}), + ("GMemVTable", Layout {size: size_of::(), alignment: align_of::()}), + ("GMutex", Layout {size: size_of::(), alignment: align_of::()}), + ("GNode", Layout {size: size_of::(), alignment: align_of::()}), + ("GNormalizeMode", Layout {size: size_of::(), alignment: align_of::()}), + ("GNumberParserError", Layout {size: size_of::(), alignment: align_of::()}), + ("GOnce", Layout {size: size_of::(), alignment: align_of::()}), + ("GOnceStatus", Layout {size: size_of::(), alignment: align_of::()}), + ("GOptionArg", Layout {size: size_of::(), alignment: align_of::()}), + ("GOptionEntry", Layout {size: size_of::(), alignment: align_of::()}), + ("GOptionError", Layout {size: size_of::(), alignment: align_of::()}), + ("GOptionFlags", Layout {size: size_of::(), alignment: align_of::()}), + ("GPathBuf", Layout {size: size_of::(), alignment: align_of::()}), + ("GPid", Layout {size: size_of::(), alignment: align_of::()}), + ("GPollFD", Layout {size: size_of::(), alignment: align_of::()}), + ("GPrivate", Layout {size: size_of::(), alignment: align_of::()}), + ("GPtrArray", Layout {size: size_of::(), alignment: align_of::()}), + ("GQuark", Layout {size: size_of::(), alignment: align_of::()}), + ("GQueue", Layout {size: size_of::(), alignment: align_of::()}), + ("GRWLock", Layout {size: size_of::(), alignment: align_of::()}), + ("GRecMutex", Layout {size: size_of::(), alignment: align_of::()}), + ("GRefString", Layout {size: size_of::(), alignment: align_of::()}), + ("GRegexCompileFlags", Layout {size: size_of::(), alignment: align_of::()}), + ("GRegexError", Layout {size: size_of::(), alignment: align_of::()}), + ("GRegexMatchFlags", Layout {size: size_of::(), alignment: align_of::()}), + ("GSList", Layout {size: size_of::(), alignment: align_of::()}), + ("GScanner", Layout {size: size_of::(), alignment: align_of::()}), + ("GSeekType", Layout {size: size_of::(), alignment: align_of::()}), + ("GShellError", Layout {size: size_of::(), alignment: align_of::()}), + ("GSliceConfig", Layout {size: size_of::(), alignment: align_of::()}), + ("GSource", Layout {size: size_of::(), alignment: align_of::()}), + ("GSourceCallbackFuncs", Layout {size: size_of::(), alignment: align_of::()}), + ("GSourceFuncs", Layout {size: size_of::(), alignment: align_of::()}), + ("GSpawnError", Layout {size: size_of::(), alignment: align_of::()}), + ("GSpawnFlags", Layout {size: size_of::(), alignment: align_of::()}), + ("GString", Layout {size: size_of::(), alignment: align_of::()}), + ("GStrv", Layout {size: size_of::(), alignment: align_of::()}), + ("GTestConfig", Layout {size: size_of::(), alignment: align_of::()}), + ("GTestFileType", Layout {size: size_of::(), alignment: align_of::()}), + ("GTestLogBuffer", Layout {size: size_of::(), alignment: align_of::()}), + ("GTestLogType", Layout {size: size_of::(), alignment: align_of::()}), + ("GTestResult", Layout {size: size_of::(), alignment: align_of::()}), + ("GTestSubprocessFlags", Layout {size: size_of::(), alignment: align_of::()}), + ("GTestTrapFlags", Layout {size: size_of::(), alignment: align_of::()}), + ("GThreadError", Layout {size: size_of::(), alignment: align_of::()}), + ("GThreadPool", Layout {size: size_of::(), alignment: align_of::()}), + ("GTime", Layout {size: size_of::(), alignment: align_of::()}), + ("GTimeSpan", Layout {size: size_of::(), alignment: align_of::()}), + ("GTimeType", Layout {size: size_of::(), alignment: align_of::()}), + ("GTimeVal", Layout {size: size_of::(), alignment: align_of::()}), + ("GTokenType", Layout {size: size_of::(), alignment: align_of::()}), + ("GTokenValue", Layout {size: size_of::(), alignment: align_of::()}), + ("GTrashStack", Layout {size: size_of::(), alignment: align_of::()}), + ("GTraverseFlags", Layout {size: size_of::(), alignment: align_of::()}), + ("GTraverseType", Layout {size: size_of::(), alignment: align_of::()}), + ("GType", Layout {size: size_of::(), alignment: align_of::()}), + ("GUnicodeBreakType", Layout {size: size_of::(), alignment: align_of::()}), + ("GUnicodeScript", Layout {size: size_of::(), alignment: align_of::()}), + ("GUnicodeType", Layout {size: size_of::(), alignment: align_of::()}), + ("GUriError", Layout {size: size_of::(), alignment: align_of::()}), + ("GUriFlags", Layout {size: size_of::(), alignment: align_of::()}), + ("GUriHideFlags", Layout {size: size_of::(), alignment: align_of::()}), + ("GUriParamsFlags", Layout {size: size_of::(), alignment: align_of::()}), + ("GUriParamsIter", Layout {size: size_of::(), alignment: align_of::()}), + ("GUserDirectory", Layout {size: size_of::(), alignment: align_of::()}), + ("GVariantBuilder", Layout {size: size_of::(), alignment: align_of::()}), + ("GVariantClass", Layout {size: size_of::(), alignment: align_of::()}), + ("GVariantDict", Layout {size: size_of::(), alignment: align_of::()}), + ("GVariantIter", Layout {size: size_of::(), alignment: align_of::()}), + ("GVariantParseError", Layout {size: size_of::(), alignment: align_of::()}), ]; const RUST_CONSTANTS: &[(&str, &str)] = &[ @@ -1063,11 +325,6 @@ const RUST_CONSTANTS: &[(&str, &str)] = ("GLIB_SYSDEF_MSG_DONTROUTE", "4"), ("GLIB_SYSDEF_MSG_OOB", "1"), ("GLIB_SYSDEF_MSG_PEEK", "2"), - ("G_ALLOCATOR_LIST", "1"), - ("G_ALLOCATOR_NODE", "3"), - ("G_ALLOCATOR_SLIST", "2"), - ("G_ALLOC_AND_FREE", "2"), - ("G_ALLOC_ONLY", "1"), ("(guint) G_ASCII_ALNUM", "1"), ("(guint) G_ASCII_ALPHA", "2"), ("(guint) G_ASCII_CNTRL", "4"), @@ -1349,14 +606,8 @@ const RUST_CONSTANTS: &[(&str, &str)] = ("(guint) G_REGEX_DOTALL", "4"), ("(guint) G_REGEX_DUPNAMES", "524288"), ("(gint) G_REGEX_ERROR_ASSERTION_EXPECTED", "128"), - ( - "(gint) G_REGEX_ERROR_BACKTRACKING_CONTROL_VERB_ARGUMENT_FORBIDDEN", - "159", - ), - ( - "(gint) G_REGEX_ERROR_BACKTRACKING_CONTROL_VERB_ARGUMENT_REQUIRED", - "166", - ), + ("(gint) G_REGEX_ERROR_BACKTRACKING_CONTROL_VERB_ARGUMENT_FORBIDDEN", "159"), + ("(gint) G_REGEX_ERROR_BACKTRACKING_CONTROL_VERB_ARGUMENT_REQUIRED", "166"), ("(gint) G_REGEX_ERROR_CHARACTER_VALUE_TOO_LARGE", "176"), ("(gint) G_REGEX_ERROR_COMPILE", "0"), ("(gint) G_REGEX_ERROR_DEFINE_REPETION", "155"), @@ -1365,19 +616,13 @@ const RUST_CONSTANTS: &[(&str, &str)] = ("(gint) G_REGEX_ERROR_EXTRA_SUBPATTERN_NAME", "165"), ("(gint) G_REGEX_ERROR_HEX_CODE_TOO_LARGE", "134"), ("(gint) G_REGEX_ERROR_INCONSISTENT_NEWLINE_OPTIONS", "156"), - ( - "(gint) G_REGEX_ERROR_INEXISTENT_SUBPATTERN_REFERENCE", - "115", - ), + ("(gint) G_REGEX_ERROR_INEXISTENT_SUBPATTERN_REFERENCE", "115"), ("(gint) G_REGEX_ERROR_INFINITE_LOOP", "140"), ("(gint) G_REGEX_ERROR_INTERNAL", "4"), ("(gint) G_REGEX_ERROR_INVALID_CONDITION", "135"), ("(gint) G_REGEX_ERROR_INVALID_CONTROL_CHAR", "168"), ("(gint) G_REGEX_ERROR_INVALID_DATA_CHARACTER", "164"), - ( - "(gint) G_REGEX_ERROR_INVALID_ESCAPE_IN_CHARACTER_CLASS", - "107", - ), + ("(gint) G_REGEX_ERROR_INVALID_ESCAPE_IN_CHARACTER_CLASS", "107"), ("(gint) G_REGEX_ERROR_INVALID_OCTAL_VALUE", "151"), ("(gint) G_REGEX_ERROR_INVALID_RELATIVE_REFERENCE", "158"), ("(gint) G_REGEX_ERROR_MALFORMED_CONDITION", "126"), @@ -1389,41 +634,26 @@ const RUST_CONSTANTS: &[(&str, &str)] = ("(gint) G_REGEX_ERROR_MISSING_DIGIT", "163"), ("(gint) G_REGEX_ERROR_MISSING_NAME", "169"), ("(gint) G_REGEX_ERROR_MISSING_SUBPATTERN_NAME", "162"), - ( - "(gint) G_REGEX_ERROR_MISSING_SUBPATTERN_NAME_TERMINATOR", - "142", - ), + ("(gint) G_REGEX_ERROR_MISSING_SUBPATTERN_NAME_TERMINATOR", "142"), ("(gint) G_REGEX_ERROR_NAME_TOO_LONG", "175"), ("(gint) G_REGEX_ERROR_NOTHING_TO_REPEAT", "109"), ("(gint) G_REGEX_ERROR_NOT_SUPPORTED_IN_CLASS", "171"), ("(gint) G_REGEX_ERROR_NUMBER_TOO_BIG", "161"), ("(gint) G_REGEX_ERROR_OPTIMIZE", "1"), - ( - "(gint) G_REGEX_ERROR_POSIX_COLLATING_ELEMENTS_NOT_SUPPORTED", - "131", - ), - ( - "(gint) G_REGEX_ERROR_POSIX_NAMED_CLASS_OUTSIDE_CLASS", - "113", - ), + ("(gint) G_REGEX_ERROR_POSIX_COLLATING_ELEMENTS_NOT_SUPPORTED", "131"), + ("(gint) G_REGEX_ERROR_POSIX_NAMED_CLASS_OUTSIDE_CLASS", "113"), ("(gint) G_REGEX_ERROR_QUANTIFIERS_OUT_OF_ORDER", "104"), ("(gint) G_REGEX_ERROR_QUANTIFIER_TOO_BIG", "105"), ("(gint) G_REGEX_ERROR_RANGE_OUT_OF_ORDER", "108"), ("(gint) G_REGEX_ERROR_REPLACE", "2"), - ( - "(gint) G_REGEX_ERROR_SINGLE_BYTE_MATCH_IN_LOOKBEHIND", - "136", - ), + ("(gint) G_REGEX_ERROR_SINGLE_BYTE_MATCH_IN_LOOKBEHIND", "136"), ("(gint) G_REGEX_ERROR_STRAY_BACKSLASH", "101"), ("(gint) G_REGEX_ERROR_SUBPATTERN_NAME_TOO_LONG", "148"), ("(gint) G_REGEX_ERROR_TOO_MANY_BRANCHES_IN_DEFINE", "154"), ("(gint) G_REGEX_ERROR_TOO_MANY_CONDITIONAL_BRANCHES", "127"), ("(gint) G_REGEX_ERROR_TOO_MANY_FORWARD_REFERENCES", "172"), ("(gint) G_REGEX_ERROR_TOO_MANY_SUBPATTERNS", "149"), - ( - "(gint) G_REGEX_ERROR_UNKNOWN_BACKTRACKING_CONTROL_VERB", - "160", - ), + ("(gint) G_REGEX_ERROR_UNKNOWN_BACKTRACKING_CONTROL_VERB", "160"), ("(gint) G_REGEX_ERROR_UNKNOWN_POSIX_CLASS_NAME", "130"), ("(gint) G_REGEX_ERROR_UNKNOWN_PROPERTY", "147"), ("(gint) G_REGEX_ERROR_UNMATCHED_PARENTHESIS", "114"), @@ -1538,10 +768,6 @@ const RUST_CONSTANTS: &[(&str, &str)] = ("(guint) G_TEST_TRAP_SILENCE_STDERR", "256"), ("(guint) G_TEST_TRAP_SILENCE_STDOUT", "128"), ("(gint) G_THREAD_ERROR_AGAIN", "0"), - ("(gint) G_THREAD_PRIORITY_HIGH", "2"), - ("(gint) G_THREAD_PRIORITY_LOW", "0"), - ("(gint) G_THREAD_PRIORITY_NORMAL", "1"), - ("(gint) G_THREAD_PRIORITY_URGENT", "3"), ("G_TIME_SPAN_DAY", "86400000000"), ("G_TIME_SPAN_HOUR", "3600000000"), ("G_TIME_SPAN_MILLISECOND", "1000"), @@ -1573,7 +799,6 @@ const RUST_CONSTANTS: &[(&str, &str)] = ("(gint) G_TOKEN_RIGHT_PAREN", "41"), ("(gint) G_TOKEN_STRING", "264"), ("(gint) G_TOKEN_SYMBOL", "265"), - ("G_TRACE_CURRENT_TIME", "0"), ("(guint) G_TRAVERSE_ALL", "3"), ("(guint) G_TRAVERSE_LEAFS", "1"), ("(guint) G_TRAVERSE_LEAVES", "1"), @@ -1582,9 +807,6 @@ const RUST_CONSTANTS: &[(&str, &str)] = ("(guint) G_TRAVERSE_NON_LEAVES", "2"), ("G_UNICHAR_MAX_DECOMPOSITION_LENGTH", "18"), ("(gint) G_UNICODE_BREAK_AFTER", "10"), - ("(gint) G_UNICODE_BREAK_AKSARA", "43"), - ("(gint) G_UNICODE_BREAK_AKSARA_PRE_BASE", "44"), - ("(gint) G_UNICODE_BREAK_AKSARA_START", "45"), ("(gint) G_UNICODE_BREAK_ALPHABETIC", "23"), ("(gint) G_UNICODE_BREAK_AMBIGUOUS", "27"), ("(gint) G_UNICODE_BREAK_BEFORE", "11"), @@ -1625,8 +847,6 @@ const RUST_CONSTANTS: &[(&str, &str)] = ("(gint) G_UNICODE_BREAK_SURROGATE", "4"), ("(gint) G_UNICODE_BREAK_SYMBOL", "22"), ("(gint) G_UNICODE_BREAK_UNKNOWN", "28"), - ("(gint) G_UNICODE_BREAK_VIRAMA", "47"), - ("(gint) G_UNICODE_BREAK_VIRAMA_FINAL", "46"), ("(gint) G_UNICODE_BREAK_WORD_JOINER", "30"), ("(gint) G_UNICODE_BREAK_ZERO_WIDTH_JOINER", "42"), ("(gint) G_UNICODE_BREAK_ZERO_WIDTH_SPACE", "5"), @@ -1826,8 +1046,6 @@ const RUST_CONSTANTS: &[(&str, &str)] = ("(gint) G_UNICODE_TITLECASE_LETTER", "8"), ("(gint) G_UNICODE_UNASSIGNED", "2"), ("(gint) G_UNICODE_UPPERCASE_LETTER", "9"), - ("(gint) G_UNIX_PIPE_END_READ", "0"), - ("(gint) G_UNIX_PIPE_END_WRITE", "1"), ("(gint) G_URI_ERROR_BAD_AUTH_PARAMS", "4"), ("(gint) G_URI_ERROR_BAD_FRAGMENT", "9"), ("(gint) G_URI_ERROR_BAD_HOST", "5"), @@ -1859,10 +1077,7 @@ const RUST_CONSTANTS: &[(&str, &str)] = ("(guint) G_URI_PARAMS_PARSE_RELAXED", "4"), ("(guint) G_URI_PARAMS_WWW_FORM", "2"), ("G_URI_RESERVED_CHARS_GENERIC_DELIMITERS", ":/?#[]@"), - ( - "G_URI_RESERVED_CHARS_SUBCOMPONENT_DELIMITERS", - "!$&'()*+,;=", - ), + ("G_URI_RESERVED_CHARS_SUBCOMPONENT_DELIMITERS", "!$&'()*+,;="), ("G_USEC_PER_SEC", "1000000"), ("(gint) G_USER_DIRECTORY_DESKTOP", "0"), ("(gint) G_USER_DIRECTORY_DOCUMENTS", "1"), @@ -1908,13 +1123,9 @@ const RUST_CONSTANTS: &[(&str, &str)] = ("(gint) G_VARIANT_PARSE_ERROR_TYPE_ERROR", "13"), ("(gint) G_VARIANT_PARSE_ERROR_UNEXPECTED_TOKEN", "14"), ("(gint) G_VARIANT_PARSE_ERROR_UNKNOWN_KEYWORD", "15"), - ( - "(gint) G_VARIANT_PARSE_ERROR_UNTERMINATED_STRING_CONSTANT", - "16", - ), + ("(gint) G_VARIANT_PARSE_ERROR_UNTERMINATED_STRING_CONSTANT", "16"), ("(gint) G_VARIANT_PARSE_ERROR_VALUE_EXPECTED", "17"), ("G_WIN32_MSG_HANDLE", "19981206"), - ("(gint) G_WIN32_OS_ANY", "0"), - ("(gint) G_WIN32_OS_SERVER", "2"), - ("(gint) G_WIN32_OS_WORKSTATION", "1"), ]; + + --- rust-glib-sys-0.19.0.orig/tests/constant.c +++ rust-glib-sys-0.19.0/tests/constant.c @@ -1,5 +1,5 @@ // This file was generated by gir (https://github.com/gtk-rs/gir) -// from gir-files (https://github.com/gtk-rs/gir-files) +// from // DO NOT EDIT #include "manual.h" @@ -34,11 +34,6 @@ int main() { PRINT_CONSTANT(GLIB_SYSDEF_MSG_DONTROUTE); PRINT_CONSTANT(GLIB_SYSDEF_MSG_OOB); PRINT_CONSTANT(GLIB_SYSDEF_MSG_PEEK); - PRINT_CONSTANT(G_ALLOCATOR_LIST); - PRINT_CONSTANT(G_ALLOCATOR_NODE); - PRINT_CONSTANT(G_ALLOCATOR_SLIST); - PRINT_CONSTANT(G_ALLOC_AND_FREE); - PRINT_CONSTANT(G_ALLOC_ONLY); PRINT_CONSTANT((guint) G_ASCII_ALNUM); PRINT_CONSTANT((guint) G_ASCII_ALPHA); PRINT_CONSTANT((guint) G_ASCII_CNTRL); @@ -482,10 +477,6 @@ int main() { PRINT_CONSTANT((guint) G_TEST_TRAP_SILENCE_STDERR); PRINT_CONSTANT((guint) G_TEST_TRAP_SILENCE_STDOUT); PRINT_CONSTANT((gint) G_THREAD_ERROR_AGAIN); - PRINT_CONSTANT((gint) G_THREAD_PRIORITY_HIGH); - PRINT_CONSTANT((gint) G_THREAD_PRIORITY_LOW); - PRINT_CONSTANT((gint) G_THREAD_PRIORITY_NORMAL); - PRINT_CONSTANT((gint) G_THREAD_PRIORITY_URGENT); PRINT_CONSTANT(G_TIME_SPAN_DAY); PRINT_CONSTANT(G_TIME_SPAN_HOUR); PRINT_CONSTANT(G_TIME_SPAN_MILLISECOND); @@ -517,7 +508,6 @@ int main() { PRINT_CONSTANT((gint) G_TOKEN_RIGHT_PAREN); PRINT_CONSTANT((gint) G_TOKEN_STRING); PRINT_CONSTANT((gint) G_TOKEN_SYMBOL); - PRINT_CONSTANT(G_TRACE_CURRENT_TIME); PRINT_CONSTANT((guint) G_TRAVERSE_ALL); PRINT_CONSTANT((guint) G_TRAVERSE_LEAFS); PRINT_CONSTANT((guint) G_TRAVERSE_LEAVES); @@ -526,9 +516,6 @@ int main() { PRINT_CONSTANT((guint) G_TRAVERSE_NON_LEAVES); PRINT_CONSTANT(G_UNICHAR_MAX_DECOMPOSITION_LENGTH); PRINT_CONSTANT((gint) G_UNICODE_BREAK_AFTER); - PRINT_CONSTANT((gint) G_UNICODE_BREAK_AKSARA); - PRINT_CONSTANT((gint) G_UNICODE_BREAK_AKSARA_PRE_BASE); - PRINT_CONSTANT((gint) G_UNICODE_BREAK_AKSARA_START); PRINT_CONSTANT((gint) G_UNICODE_BREAK_ALPHABETIC); PRINT_CONSTANT((gint) G_UNICODE_BREAK_AMBIGUOUS); PRINT_CONSTANT((gint) G_UNICODE_BREAK_BEFORE); @@ -569,8 +556,6 @@ int main() { PRINT_CONSTANT((gint) G_UNICODE_BREAK_SURROGATE); PRINT_CONSTANT((gint) G_UNICODE_BREAK_SYMBOL); PRINT_CONSTANT((gint) G_UNICODE_BREAK_UNKNOWN); - PRINT_CONSTANT((gint) G_UNICODE_BREAK_VIRAMA); - PRINT_CONSTANT((gint) G_UNICODE_BREAK_VIRAMA_FINAL); PRINT_CONSTANT((gint) G_UNICODE_BREAK_WORD_JOINER); PRINT_CONSTANT((gint) G_UNICODE_BREAK_ZERO_WIDTH_JOINER); PRINT_CONSTANT((gint) G_UNICODE_BREAK_ZERO_WIDTH_SPACE); @@ -770,8 +755,6 @@ int main() { PRINT_CONSTANT((gint) G_UNICODE_TITLECASE_LETTER); PRINT_CONSTANT((gint) G_UNICODE_UNASSIGNED); PRINT_CONSTANT((gint) G_UNICODE_UPPERCASE_LETTER); - PRINT_CONSTANT((gint) G_UNIX_PIPE_END_READ); - PRINT_CONSTANT((gint) G_UNIX_PIPE_END_WRITE); PRINT_CONSTANT((gint) G_URI_ERROR_BAD_AUTH_PARAMS); PRINT_CONSTANT((gint) G_URI_ERROR_BAD_FRAGMENT); PRINT_CONSTANT((gint) G_URI_ERROR_BAD_HOST); @@ -852,8 +835,5 @@ int main() { PRINT_CONSTANT((gint) G_VARIANT_PARSE_ERROR_UNTERMINATED_STRING_CONSTANT); PRINT_CONSTANT((gint) G_VARIANT_PARSE_ERROR_VALUE_EXPECTED); PRINT_CONSTANT(G_WIN32_MSG_HANDLE); - PRINT_CONSTANT((gint) G_WIN32_OS_ANY); - PRINT_CONSTANT((gint) G_WIN32_OS_SERVER); - PRINT_CONSTANT((gint) G_WIN32_OS_WORKSTATION); return 0; } --- rust-glib-sys-0.19.0.orig/tests/layout.c +++ rust-glib-sys-0.19.0/tests/layout.c @@ -1,5 +1,5 @@ // This file was generated by gir (https://github.com/gtk-rs/gir) -// from gir-files (https://github.com/gtk-rs/gir-files) +// from // DO NOT EDIT #include "manual.h" @@ -12,7 +12,6 @@ int main() { printf("%s;%zu;%zu\n", "GBookmarkFileError", sizeof(GBookmarkFileError), alignof(GBookmarkFileError)); printf("%s;%zu;%zu\n", "GByteArray", sizeof(GByteArray), alignof(GByteArray)); printf("%s;%zu;%zu\n", "GChecksumType", sizeof(GChecksumType), alignof(GChecksumType)); - printf("%s;%zu;%zu\n", "GCompletion", sizeof(GCompletion), alignof(GCompletion)); printf("%s;%zu;%zu\n", "GCond", sizeof(GCond), alignof(GCond)); printf("%s;%zu;%zu\n", "GConvertError", sizeof(GConvertError), alignof(GConvertError)); printf("%s;%zu;%zu\n", "GDate", sizeof(GDate), alignof(GDate)); @@ -83,10 +82,6 @@ int main() { printf("%s;%zu;%zu\n", "GSourceFuncs", sizeof(GSourceFuncs), alignof(GSourceFuncs)); printf("%s;%zu;%zu\n", "GSpawnError", sizeof(GSpawnError), alignof(GSpawnError)); printf("%s;%zu;%zu\n", "GSpawnFlags", sizeof(GSpawnFlags), alignof(GSpawnFlags)); - printf("%s;%zu;%zu\n", "GStaticMutex", sizeof(GStaticMutex), alignof(GStaticMutex)); - printf("%s;%zu;%zu\n", "GStaticPrivate", sizeof(GStaticPrivate), alignof(GStaticPrivate)); - printf("%s;%zu;%zu\n", "GStaticRWLock", sizeof(GStaticRWLock), alignof(GStaticRWLock)); - printf("%s;%zu;%zu\n", "GStaticRecMutex", sizeof(GStaticRecMutex), alignof(GStaticRecMutex)); printf("%s;%zu;%zu\n", "GString", sizeof(GString), alignof(GString)); printf("%s;%zu;%zu\n", "GStrv", sizeof(GStrv), alignof(GStrv)); printf("%s;%zu;%zu\n", "GTestConfig", sizeof(GTestConfig), alignof(GTestConfig)); @@ -96,11 +91,8 @@ int main() { printf("%s;%zu;%zu\n", "GTestResult", sizeof(GTestResult), alignof(GTestResult)); printf("%s;%zu;%zu\n", "GTestSubprocessFlags", sizeof(GTestSubprocessFlags), alignof(GTestSubprocessFlags)); printf("%s;%zu;%zu\n", "GTestTrapFlags", sizeof(GTestTrapFlags), alignof(GTestTrapFlags)); - printf("%s;%zu;%zu\n", "GThread", sizeof(GThread), alignof(GThread)); printf("%s;%zu;%zu\n", "GThreadError", sizeof(GThreadError), alignof(GThreadError)); - printf("%s;%zu;%zu\n", "GThreadFunctions", sizeof(GThreadFunctions), alignof(GThreadFunctions)); printf("%s;%zu;%zu\n", "GThreadPool", sizeof(GThreadPool), alignof(GThreadPool)); - printf("%s;%zu;%zu\n", "GThreadPriority", sizeof(GThreadPriority), alignof(GThreadPriority)); printf("%s;%zu;%zu\n", "GTime", sizeof(GTime), alignof(GTime)); printf("%s;%zu;%zu\n", "GTimeSpan", sizeof(GTimeSpan), alignof(GTimeSpan)); printf("%s;%zu;%zu\n", "GTimeType", sizeof(GTimeType), alignof(GTimeType)); @@ -110,12 +102,10 @@ int main() { printf("%s;%zu;%zu\n", "GTrashStack", sizeof(GTrashStack), alignof(GTrashStack)); printf("%s;%zu;%zu\n", "GTraverseFlags", sizeof(GTraverseFlags), alignof(GTraverseFlags)); printf("%s;%zu;%zu\n", "GTraverseType", sizeof(GTraverseType), alignof(GTraverseType)); - printf("%s;%zu;%zu\n", "GTuples", sizeof(GTuples), alignof(GTuples)); + printf("%s;%zu;%zu\n", "GType", sizeof(GType), alignof(GType)); printf("%s;%zu;%zu\n", "GUnicodeBreakType", sizeof(GUnicodeBreakType), alignof(GUnicodeBreakType)); printf("%s;%zu;%zu\n", "GUnicodeScript", sizeof(GUnicodeScript), alignof(GUnicodeScript)); printf("%s;%zu;%zu\n", "GUnicodeType", sizeof(GUnicodeType), alignof(GUnicodeType)); - printf("%s;%zu;%zu\n", "GUnixPipe", sizeof(GUnixPipe), alignof(GUnixPipe)); - printf("%s;%zu;%zu\n", "GUnixPipeEnd", sizeof(GUnixPipeEnd), alignof(GUnixPipeEnd)); printf("%s;%zu;%zu\n", "GUriError", sizeof(GUriError), alignof(GUriError)); printf("%s;%zu;%zu\n", "GUriFlags", sizeof(GUriFlags), alignof(GUriFlags)); printf("%s;%zu;%zu\n", "GUriHideFlags", sizeof(GUriHideFlags), alignof(GUriHideFlags)); @@ -127,6 +117,5 @@ int main() { printf("%s;%zu;%zu\n", "GVariantDict", sizeof(GVariantDict), alignof(GVariantDict)); printf("%s;%zu;%zu\n", "GVariantIter", sizeof(GVariantIter), alignof(GVariantIter)); printf("%s;%zu;%zu\n", "GVariantParseError", sizeof(GVariantParseError), alignof(GVariantParseError)); - printf("%s;%zu;%zu\n", "GWin32OSType", sizeof(GWin32OSType), alignof(GWin32OSType)); return 0; } --- rust-glib-sys-0.19.0.orig/versions.txt +++ rust-glib-sys-0.19.0/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 9ebc44374393) -from gir-files (https://github.com/gtk-rs/gir-files @ 4d83970797d4) +Generated by gir (https://github.com/gtk-rs/gir @ 0.0.1) +from (@ ???)