Skip to content

Commit

Permalink
Regenerate with latest gir-files
Browse files Browse the repository at this point in the history
  • Loading branch information
bilelmoussaoui committed Sep 17, 2023
1 parent fe89a17 commit b49ac88
Show file tree
Hide file tree
Showing 15 changed files with 29 additions and 123 deletions.
2 changes: 1 addition & 1 deletion gdk-pixbuf/src/auto/versions.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ 0f2c059e0939)
from gir-files (https://github.com/gtk-rs/gir-files @ 615ef8fb32f2)
from gir-files (https://github.com/gtk-rs/gir-files @ 326eb5f2d5d8)
2 changes: 1 addition & 1 deletion gdk-pixbuf/sys/versions.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ 0f2c059e0939)
from gir-files (https://github.com/gtk-rs/gir-files @ 615ef8fb32f2)
from gir-files (https://github.com/gtk-rs/gir-files @ 326eb5f2d5d8)
2 changes: 1 addition & 1 deletion gio/src/auto/versions.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ 0f2c059e0939)
from gir-files (https://github.com/gtk-rs/gir-files @ 615ef8fb32f2)
from gir-files (https://github.com/gtk-rs/gir-files @ 326eb5f2d5d8)
2 changes: 1 addition & 1 deletion gio/sys/versions.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ 0f2c059e0939)
from gir-files (https://github.com/gtk-rs/gir-files @ 615ef8fb32f2)
from gir-files (https://github.com/gtk-rs/gir-files @ 326eb5f2d5d8)
2 changes: 1 addition & 1 deletion glib/gobject-sys/versions.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ 0f2c059e0939)
from gir-files (https://github.com/gtk-rs/gir-files @ 615ef8fb32f2)
from gir-files (https://github.com/gtk-rs/gir-files @ 326eb5f2d5d8)
97 changes: 0 additions & 97 deletions glib/src/auto/enums.rs
Original file line number Diff line number Diff line change
Expand Up @@ -908,61 +908,6 @@ pub enum UnicodeBreakType {
__Unknown(i32),
}

impl fmt::Display for UnicodeBreakType {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(
f,
"UnicodeBreakType::{}",
match *self {
Self::Mandatory => "Mandatory",
Self::CarriageReturn => "CarriageReturn",
Self::LineFeed => "LineFeed",
Self::CombiningMark => "CombiningMark",
Self::Surrogate => "Surrogate",
Self::ZeroWidthSpace => "ZeroWidthSpace",
Self::Inseparable => "Inseparable",
Self::NonBreakingGlue => "NonBreakingGlue",
Self::Contingent => "Contingent",
Self::Space => "Space",
Self::After => "After",
Self::Before => "Before",
Self::BeforeAndAfter => "BeforeAndAfter",
Self::Hyphen => "Hyphen",
Self::NonStarter => "NonStarter",
Self::OpenPunctuation => "OpenPunctuation",
Self::ClosePunctuation => "ClosePunctuation",
Self::Quotation => "Quotation",
Self::Exclamation => "Exclamation",
Self::Ideographic => "Ideographic",
Self::Numeric => "Numeric",
Self::InfixSeparator => "InfixSeparator",
Self::Symbol => "Symbol",
Self::Alphabetic => "Alphabetic",
Self::Prefix => "Prefix",
Self::Postfix => "Postfix",
Self::ComplexContext => "ComplexContext",
Self::Ambiguous => "Ambiguous",
Self::Unknown => "Unknown",
Self::NextLine => "NextLine",
Self::WordJoiner => "WordJoiner",
Self::HangulLJamo => "HangulLJamo",
Self::HangulVJamo => "HangulVJamo",
Self::HangulTJamo => "HangulTJamo",
Self::HangulLvSyllable => "HangulLvSyllable",
Self::HangulLvtSyllable => "HangulLvtSyllable",
Self::CloseParenthesis => "CloseParenthesis",
Self::ConditionalJapaneseStarter => "ConditionalJapaneseStarter",
Self::HebrewLetter => "HebrewLetter",
Self::RegionalIndicator => "RegionalIndicator",
Self::EmojiBase => "EmojiBase",
Self::EmojiModifier => "EmojiModifier",
Self::ZeroWidthJoiner => "ZeroWidthJoiner",
_ => "Unknown",
}
)
}
}

#[doc(hidden)]
impl IntoGlib for UnicodeBreakType {
type GlibType = ffi::GUnicodeBreakType;
Expand Down Expand Up @@ -1861,48 +1806,6 @@ pub enum UnicodeType {
__Unknown(i32),
}

impl fmt::Display for UnicodeType {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(
f,
"UnicodeType::{}",
match *self {
Self::Control => "Control",
Self::Format => "Format",
Self::Unassigned => "Unassigned",
Self::PrivateUse => "PrivateUse",
Self::Surrogate => "Surrogate",
Self::LowercaseLetter => "LowercaseLetter",
Self::ModifierLetter => "ModifierLetter",
Self::OtherLetter => "OtherLetter",
Self::TitlecaseLetter => "TitlecaseLetter",
Self::UppercaseLetter => "UppercaseLetter",
Self::SpacingMark => "SpacingMark",
Self::EnclosingMark => "EnclosingMark",
Self::NonSpacingMark => "NonSpacingMark",
Self::DecimalNumber => "DecimalNumber",
Self::LetterNumber => "LetterNumber",
Self::OtherNumber => "OtherNumber",
Self::ConnectPunctuation => "ConnectPunctuation",
Self::DashPunctuation => "DashPunctuation",
Self::ClosePunctuation => "ClosePunctuation",
Self::FinalPunctuation => "FinalPunctuation",
Self::InitialPunctuation => "InitialPunctuation",
Self::OtherPunctuation => "OtherPunctuation",
Self::OpenPunctuation => "OpenPunctuation",
Self::CurrencySymbol => "CurrencySymbol",
Self::ModifierSymbol => "ModifierSymbol",
Self::MathSymbol => "MathSymbol",
Self::OtherSymbol => "OtherSymbol",
Self::LineSeparator => "LineSeparator",
Self::ParagraphSeparator => "ParagraphSeparator",
Self::SpaceSeparator => "SpaceSeparator",
_ => "Unknown",
}
)
}
}

#[doc(hidden)]
impl IntoGlib for UnicodeType {
type GlibType = ffi::GUnicodeType;
Expand Down
29 changes: 16 additions & 13 deletions glib/src/auto/functions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -701,22 +701,25 @@ pub fn spaced_primes_closest(num: u32) -> u32 {
}

#[doc(alias = "g_spawn_async")]
pub fn spawn_async<P: FnOnce() + Send + Sync + 'static>(
pub fn spawn_async(
working_directory: Option<impl AsRef<std::path::Path>>,
argv: &[&std::path::Path],
envp: &[&std::path::Path],
flags: SpawnFlags,
child_setup: P,
child_setup: Option<Box_<dyn FnOnce() + 'static>>,
) -> Result<Pid, crate::Error> {
let child_setup_data: Box_<P> = Box_::new(child_setup);
unsafe extern "C" fn child_setup_func<P: FnOnce() + Send + Sync + 'static>(
data: ffi::gpointer,
) {
let callback: Box_<P> = Box_::from_raw(data as *mut _);
(*callback)()
}
let child_setup = Some(child_setup_func::<P> as _);
let super_callback0: Box_<P> = child_setup_data;
let child_setup_data: Box_<Option<Box_<dyn FnOnce() + 'static>>> = Box_::new(child_setup);
unsafe extern "C" fn child_setup_func(data: ffi::gpointer) {
let callback: Box_<Option<Box_<dyn FnOnce() + 'static>>> = Box_::from_raw(data as *mut _);
let callback = (*callback).expect("cannot get closure...");
callback()
}
let child_setup = if child_setup_data.is_some() {
Some(child_setup_func as _)
} else {
None
};
let super_callback0: Box_<Option<Box_<dyn FnOnce() + 'static>>> = child_setup_data;
unsafe {
let mut child_pid = std::mem::MaybeUninit::uninit();
let mut error = std::ptr::null_mut();
Expand Down Expand Up @@ -746,7 +749,7 @@ pub fn spawn_async<P: FnOnce() + Send + Sync + 'static>(
//#[cfg(feature = "v2_68")]
//#[cfg_attr(docsrs, doc(cfg(feature = "v2_68")))]
//#[doc(alias = "g_spawn_async_with_pipes_and_fds")]
//pub fn spawn_async_with_pipes_and_fds<P: FnOnce() + Send + Sync + 'static>(working_directory: Option<impl AsRef<std::path::Path>>, argv: &[&std::path::Path], envp: &[&std::path::Path], flags: SpawnFlags, child_setup: P, stdin_fd: i32, stdout_fd: i32, stderr_fd: i32, source_fds: &[i32], target_fds: &[i32], n_fds: usize) -> Result<(Pid, i32, i32, i32), crate::Error> {
//pub fn spawn_async_with_pipes_and_fds(working_directory: Option<impl AsRef<std::path::Path>>, argv: &[&std::path::Path], envp: &[&std::path::Path], flags: SpawnFlags, child_setup: Option<Box_<dyn FnOnce() + 'static>>, stdin_fd: i32, stdout_fd: i32, stderr_fd: i32, source_fds: &[i32], target_fds: &[i32], n_fds: usize) -> Result<(Pid, i32, i32, i32), crate::Error> {
// unsafe { TODO: call ffi:g_spawn_async_with_pipes_and_fds() }
//}

Expand Down Expand Up @@ -807,7 +810,7 @@ pub fn spawn_command_line_async(
//}

//#[doc(alias = "g_spawn_sync")]
//pub fn spawn_sync<P: FnOnce() + Send + Sync + 'static>(working_directory: Option<impl AsRef<std::path::Path>>, argv: &[&std::path::Path], envp: &[&std::path::Path], flags: SpawnFlags, child_setup: P, standard_output: Vec<u8>, standard_error: Vec<u8>) -> Result<i32, crate::Error> {
//pub fn spawn_sync(working_directory: Option<impl AsRef<std::path::Path>>, argv: &[&std::path::Path], envp: &[&std::path::Path], flags: SpawnFlags, child_setup: Option<&mut dyn (FnMut())>, standard_output: Vec<u8>, standard_error: Vec<u8>) -> Result<i32, crate::Error> {
// unsafe { TODO: call ffi:g_spawn_sync() }
//}

Expand Down
2 changes: 1 addition & 1 deletion glib/src/auto/versions.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ 0f2c059e0939)
from gir-files (https://github.com/gtk-rs/gir-files @ 615ef8fb32f2)
from gir-files (https://github.com/gtk-rs/gir-files @ 326eb5f2d5d8)
2 changes: 1 addition & 1 deletion glib/sys/versions.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ 0f2c059e0939)
from gir-files (https://github.com/gtk-rs/gir-files @ 615ef8fb32f2)
from gir-files (https://github.com/gtk-rs/gir-files @ 326eb5f2d5d8)
2 changes: 1 addition & 1 deletion graphene/src/auto/versions.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ 0f2c059e0939)
from gir-files (https://github.com/gtk-rs/gir-files @ 615ef8fb32f2)
from gir-files (https://github.com/gtk-rs/gir-files @ 326eb5f2d5d8)
2 changes: 1 addition & 1 deletion graphene/sys/versions.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ 0f2c059e0939)
from gir-files (https://github.com/gtk-rs/gir-files @ 615ef8fb32f2)
from gir-files (https://github.com/gtk-rs/gir-files @ 326eb5f2d5d8)
2 changes: 1 addition & 1 deletion pango/src/auto/versions.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ 0f2c059e0939)
from gir-files (https://github.com/gtk-rs/gir-files @ 615ef8fb32f2)
from gir-files (https://github.com/gtk-rs/gir-files @ 326eb5f2d5d8)
2 changes: 1 addition & 1 deletion pango/sys/versions.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ 0f2c059e0939)
from gir-files (https://github.com/gtk-rs/gir-files @ 615ef8fb32f2)
from gir-files (https://github.com/gtk-rs/gir-files @ 326eb5f2d5d8)
2 changes: 1 addition & 1 deletion pangocairo/src/auto/versions.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ 0f2c059e0939)
from gir-files (https://github.com/gtk-rs/gir-files @ 615ef8fb32f2)
from gir-files (https://github.com/gtk-rs/gir-files @ 326eb5f2d5d8)
2 changes: 1 addition & 1 deletion pangocairo/sys/versions.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ 0f2c059e0939)
from gir-files (https://github.com/gtk-rs/gir-files @ 615ef8fb32f2)
from gir-files (https://github.com/gtk-rs/gir-files @ 326eb5f2d5d8)

0 comments on commit b49ac88

Please sign in to comment.