Skip to content

Commit

Permalink
Regenerate with latest gir/gir-files
Browse files Browse the repository at this point in the history
  • Loading branch information
bilelmoussaoui committed Jan 18, 2024
1 parent 29d7ecd commit a1d4e1d
Show file tree
Hide file tree
Showing 43 changed files with 1,572 additions and 190 deletions.
4 changes: 2 additions & 2 deletions 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 @ a2f936b77195)
from gir-files (https://github.com/gtk-rs/gir-files @ 20031a537e40)
Generated by gir (https://github.com/gtk-rs/gir @ 1c7a6b57a5fc)
from gir-files (https://github.com/gtk-rs/gir-files @ 21b29d0e0c1a)
2 changes: 1 addition & 1 deletion gdk-pixbuf/sys/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ pub struct _GdkPixbufSimpleAnimClass {
_marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
}

pub type GdkPixbufSimpleAnimClass = *mut _GdkPixbufSimpleAnimClass;
pub type GdkPixbufSimpleAnimClass = _GdkPixbufSimpleAnimClass;

// Classes
#[repr(C)]
Expand Down
4 changes: 2 additions & 2 deletions 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 @ a2f936b77195)
from gir-files (https://github.com/gtk-rs/gir-files @ 20031a537e40)
Generated by gir (https://github.com/gtk-rs/gir @ 1c7a6b57a5fc)
from gir-files (https://github.com/gtk-rs/gir-files @ 21b29d0e0c1a)
33 changes: 33 additions & 0 deletions gio/src/auto/application_command_line.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,15 @@ pub trait ApplicationCommandLineExt:
}
}

#[cfg(feature = "v2_80")]
#[cfg_attr(docsrs, doc(cfg(feature = "v2_80")))]
#[doc(alias = "g_application_command_line_done")]
fn done(&self) {
unsafe {
ffi::g_application_command_line_done(self.as_ref().to_glib_none().0);
}
}

#[doc(alias = "g_application_command_line_get_arguments")]
#[doc(alias = "get_arguments")]
fn arguments(&self) -> Vec<std::ffi::OsString> {
Expand Down Expand Up @@ -138,11 +147,35 @@ pub trait ApplicationCommandLineExt:
// unsafe { TODO: call ffi:g_application_command_line_print() }
//}

#[cfg(feature = "v2_80")]
#[cfg_attr(docsrs, doc(cfg(feature = "v2_80")))]
#[doc(alias = "g_application_command_line_print_literal")]
fn print_literal(&self, message: &str) {
unsafe {
ffi::g_application_command_line_print_literal(
self.as_ref().to_glib_none().0,
message.to_glib_none().0,
);
}
}

//#[doc(alias = "g_application_command_line_printerr")]
//fn printerr(&self, format: &str, : /*Unknown conversion*//*Unimplemented*/Basic: VarArgs) {
// unsafe { TODO: call ffi:g_application_command_line_printerr() }
//}

#[cfg(feature = "v2_80")]
#[cfg_attr(docsrs, doc(cfg(feature = "v2_80")))]
#[doc(alias = "g_application_command_line_printerr_literal")]
fn printerr_literal(&self, message: &str) {
unsafe {
ffi::g_application_command_line_printerr_literal(
self.as_ref().to_glib_none().0,
message.to_glib_none().0,
);
}
}

#[doc(alias = "g_application_command_line_set_exit_status")]
fn set_exit_status(&self, exit_status: i32) {
unsafe {
Expand Down
8 changes: 8 additions & 0 deletions gio/src/auto/dbus_message.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,14 @@ impl DBusMessage {
unsafe { from_glib_none(ffi::g_dbus_message_get_arg0(self.to_glib_none().0)) }
}

#[cfg(feature = "v2_80")]
#[cfg_attr(docsrs, doc(cfg(feature = "v2_80")))]
#[doc(alias = "g_dbus_message_get_arg0_path")]
#[doc(alias = "get_arg0_path")]
pub fn arg0_path(&self) -> Option<glib::GString> {
unsafe { from_glib_none(ffi::g_dbus_message_get_arg0_path(self.to_glib_none().0)) }
}

#[doc(alias = "g_dbus_message_get_body")]
#[doc(alias = "get_body")]
pub fn body(&self) -> Option<glib::Variant> {
Expand Down
11 changes: 11 additions & 0 deletions gio/src/auto/enums.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1606,6 +1606,8 @@ pub enum IOErrorEnum {
#[cfg_attr(docsrs, doc(cfg(feature = "v2_72")))]
#[doc(alias = "G_IO_ERROR_NO_SUCH_DEVICE")]
NoSuchDevice,
#[doc(alias = "G_IO_ERROR_DESTINATION_UNSET")]
DestinationUnset,
#[doc(hidden)]
__Unknown(i32),
}
Expand Down Expand Up @@ -1665,6 +1667,7 @@ impl IntoGlib for IOErrorEnum {
Self::MessageTooLarge => ffi::G_IO_ERROR_MESSAGE_TOO_LARGE,
#[cfg(feature = "v2_72")]
Self::NoSuchDevice => ffi::G_IO_ERROR_NO_SUCH_DEVICE,
Self::DestinationUnset => ffi::G_IO_ERROR_DESTINATION_UNSET,
Self::__Unknown(value) => value,
}
}
Expand Down Expand Up @@ -1723,6 +1726,7 @@ impl FromGlib<ffi::GIOErrorEnum> for IOErrorEnum {
ffi::G_IO_ERROR_MESSAGE_TOO_LARGE => Self::MessageTooLarge,
#[cfg(feature = "v2_72")]
ffi::G_IO_ERROR_NO_SUCH_DEVICE => Self::NoSuchDevice,
ffi::G_IO_ERROR_DESTINATION_UNSET => Self::DestinationUnset,
value => Self::__Unknown(value),
}
}
Expand Down Expand Up @@ -2557,6 +2561,13 @@ pub enum ResolverRecordType {
__Unknown(i32),
}

impl ResolverRecordType {
#[doc(alias = "g_resolver_record_type_to_rrtype")]
pub fn to_rrtype(self) -> i32 {
unsafe { ffi::g_resolver_record_type_to_rrtype(self.into_glib()) }
}
}

#[doc(hidden)]
impl IntoGlib for ResolverRecordType {
type GlibType = ffi::GResolverRecordType;
Expand Down
2 changes: 2 additions & 0 deletions gio/src/auto/flags.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1590,6 +1590,8 @@ bitflags! {
const NO_FALLBACK_FOR_MOVE = ffi::G_FILE_COPY_NO_FALLBACK_FOR_MOVE as _;
#[doc(alias = "G_FILE_COPY_TARGET_DEFAULT_PERMS")]
const TARGET_DEFAULT_PERMS = ffi::G_FILE_COPY_TARGET_DEFAULT_PERMS as _;
#[doc(alias = "G_FILE_COPY_TARGET_DEFAULT_MODIFIED_TIME")]
const TARGET_DEFAULT_MODIFIED_TIME = ffi::G_FILE_COPY_TARGET_DEFAULT_MODIFIED_TIME as _;
}
}

Expand Down
5 changes: 5 additions & 0 deletions gio/src/auto/resolver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ impl Resolver {
pub fn default() -> Resolver {
unsafe { from_glib_full(ffi::g_resolver_get_default()) }
}

//#[doc(alias = "g_resolver_records_from_res_query")]
//pub fn records_from_res_query(rrname: &str, rrtype: i32, answer: u8, len: isize, herr: i32) -> Result</*Unimplemented*/Vec<Basic: Pointer>, glib::Error> {
// unsafe { TODO: call ffi:g_resolver_records_from_res_query() }
//}
}

mod sealed {
Expand Down
4 changes: 2 additions & 2 deletions gio/src/auto/subprocess_launcher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,11 +108,11 @@ impl SubprocessLauncher {
#[cfg(unix)]
#[cfg_attr(docsrs, doc(cfg(unix)))]
#[doc(alias = "g_subprocess_launcher_set_stdin_file_path")]
pub fn set_stdin_file_path(&self, path: &str) {
pub fn set_stdin_file_path(&self, path: Option<impl AsRef<std::path::Path>>) {
unsafe {
ffi::g_subprocess_launcher_set_stdin_file_path(
self.to_glib_none().0,
path.to_glib_none().0,
path.as_ref().map(|p| p.as_ref()).to_glib_none().0,
);
}
}
Expand Down
4 changes: 2 additions & 2 deletions 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 @ a2f936b77195)
from gir-files (https://github.com/gtk-rs/gir-files @ 20031a537e40)
Generated by gir (https://github.com/gtk-rs/gir @ 1c7a6b57a5fc)
from gir-files (https://github.com/gtk-rs/gir-files @ 21b29d0e0c1a)
4 changes: 4 additions & 0 deletions gio/sys/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ v2_72 = ["v2_70"]
v2_74 = ["v2_72"]
v2_76 = ["v2_74"]
v2_78 = ["v2_76"]
v2_80 = ["v2_78"]

[lib]
name = "gio_sys"
Expand Down Expand Up @@ -86,6 +87,9 @@ version = "2.76"
[package.metadata.system-deps.gio_2_0.v2_78]
version = "2.77"

[package.metadata.system-deps.gio_2_0.v2_80]
version = "2.80"

[package.metadata.docs.rs]
rustc-args = ["--cfg", "docsrs"]
rustdoc-args = ["--cfg", "docsrs", "--generate-link-to-definition"]
Expand Down
Loading

0 comments on commit a1d4e1d

Please sign in to comment.