Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update gir files #1572

Merged
merged 6 commits into from
Nov 12, 2024
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @ e5ad53c3ad05)
from gir-files (https://github.com/gtk-rs/gir-files @ f7af0e711383)
Generated by gir (https://github.com/gtk-rs/gir @ 25fc925cd3da)
from gir-files (https://github.com/gtk-rs/gir-files @ 3e07ae5a14c7)
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 @ e5ad53c3ad05)
from gir-files (https://github.com/gtk-rs/gir-files @ f7af0e711383)
Generated by gir (https://github.com/gtk-rs/gir @ 25fc925cd3da)
from gir-files (https://github.com/gtk-rs/gir-files @ 3e07ae5a14c7)
214 changes: 212 additions & 2 deletions gio/src/auto/unix_mount_entry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,227 @@
// DO NOT EDIT

use crate::ffi;
#[cfg(feature = "v2_84")]
#[cfg_attr(docsrs, doc(cfg(feature = "v2_84")))]
use crate::Icon;
#[cfg(feature = "v2_84")]
#[cfg_attr(docsrs, doc(cfg(feature = "v2_84")))]
use glib::translate::*;

glib::wrapper! {
#[derive(Debug)]
pub struct UnixMountEntry(Boxed<ffi::GUnixMountEntry>);

match fn {
copy => |ptr| glib::gobject_ffi::g_boxed_copy(ffi::g_unix_mount_entry_get_type(), ptr as *mut _) as *mut ffi::GUnixMountEntry,
free => |ptr| glib::gobject_ffi::g_boxed_free(ffi::g_unix_mount_entry_get_type(), ptr as *mut _),
copy => |ptr| ffi::g_unix_mount_entry_copy(mut_override(ptr)),
free => |ptr| ffi::g_unix_mount_entry_free(ptr),
sdroege marked this conversation as resolved.
Show resolved Hide resolved
type_ => || ffi::g_unix_mount_entry_get_type(),
}
}

impl UnixMountEntry {
#[cfg(feature = "v2_84")]
#[cfg_attr(docsrs, doc(cfg(feature = "v2_84")))]
#[doc(alias = "g_unix_mount_entry_compare")]
fn compare(&mut self, mount2: &mut UnixMountEntry) -> i32 {
sdroege marked this conversation as resolved.
Show resolved Hide resolved
unsafe {
ffi::g_unix_mount_entry_compare(self.to_glib_none_mut().0, mount2.to_glib_none_mut().0)
}
}

#[cfg(feature = "v2_84")]
#[cfg_attr(docsrs, doc(cfg(feature = "v2_84")))]
#[doc(alias = "g_unix_mount_entry_get_device_path")]
#[doc(alias = "get_device_path")]
pub fn device_path(&mut self) -> std::path::PathBuf {
unsafe {
from_glib_none(ffi::g_unix_mount_entry_get_device_path(
self.to_glib_none_mut().0,
))
}
}

#[cfg(feature = "v2_84")]
#[cfg_attr(docsrs, doc(cfg(feature = "v2_84")))]
#[doc(alias = "g_unix_mount_entry_get_fs_type")]
#[doc(alias = "get_fs_type")]
pub fn fs_type(&mut self) -> glib::GString {
unsafe {
from_glib_none(ffi::g_unix_mount_entry_get_fs_type(
self.to_glib_none_mut().0,
))
}
}

#[cfg(feature = "v2_84")]
#[cfg_attr(docsrs, doc(cfg(feature = "v2_84")))]
#[doc(alias = "g_unix_mount_entry_get_mount_path")]
#[doc(alias = "get_mount_path")]
pub fn mount_path(&mut self) -> std::path::PathBuf {
unsafe {
from_glib_none(ffi::g_unix_mount_entry_get_mount_path(
self.to_glib_none_mut().0,
))
}
}

#[cfg(feature = "v2_84")]
#[cfg_attr(docsrs, doc(cfg(feature = "v2_84")))]
#[doc(alias = "g_unix_mount_entry_get_options")]
#[doc(alias = "get_options")]
pub fn options(&mut self) -> Option<glib::GString> {
unsafe {
from_glib_none(ffi::g_unix_mount_entry_get_options(
self.to_glib_none_mut().0,
))
}
}

#[cfg(feature = "v2_84")]
#[cfg_attr(docsrs, doc(cfg(feature = "v2_84")))]
#[doc(alias = "g_unix_mount_entry_get_root_path")]
#[doc(alias = "get_root_path")]
pub fn root_path(&mut self) -> Option<glib::GString> {
unsafe {
from_glib_none(ffi::g_unix_mount_entry_get_root_path(
self.to_glib_none_mut().0,
))
}
}

#[cfg(feature = "v2_84")]
#[cfg_attr(docsrs, doc(cfg(feature = "v2_84")))]
#[doc(alias = "g_unix_mount_entry_guess_can_eject")]
pub fn guess_can_eject(&mut self) -> bool {
unsafe {
from_glib(ffi::g_unix_mount_entry_guess_can_eject(
self.to_glib_none_mut().0,
))
}
}

#[cfg(feature = "v2_84")]
#[cfg_attr(docsrs, doc(cfg(feature = "v2_84")))]
#[doc(alias = "g_unix_mount_entry_guess_icon")]
pub fn guess_icon(&mut self) -> Icon {
unsafe {
from_glib_full(ffi::g_unix_mount_entry_guess_icon(
self.to_glib_none_mut().0,
))
}
}

#[cfg(feature = "v2_84")]
#[cfg_attr(docsrs, doc(cfg(feature = "v2_84")))]
#[doc(alias = "g_unix_mount_entry_guess_name")]
pub fn guess_name(&mut self) -> glib::GString {
unsafe {
from_glib_full(ffi::g_unix_mount_entry_guess_name(
self.to_glib_none_mut().0,
))
}
}

#[cfg(feature = "v2_84")]
#[cfg_attr(docsrs, doc(cfg(feature = "v2_84")))]
#[doc(alias = "g_unix_mount_entry_guess_should_display")]
pub fn guess_should_display(&mut self) -> bool {
unsafe {
from_glib(ffi::g_unix_mount_entry_guess_should_display(
self.to_glib_none_mut().0,
))
}
}

#[cfg(feature = "v2_84")]
#[cfg_attr(docsrs, doc(cfg(feature = "v2_84")))]
#[doc(alias = "g_unix_mount_entry_guess_symbolic_icon")]
pub fn guess_symbolic_icon(&mut self) -> Icon {
unsafe {
from_glib_full(ffi::g_unix_mount_entry_guess_symbolic_icon(
self.to_glib_none_mut().0,
))
}
}

#[cfg(feature = "v2_84")]
#[cfg_attr(docsrs, doc(cfg(feature = "v2_84")))]
#[doc(alias = "g_unix_mount_entry_is_readonly")]
pub fn is_readonly(&mut self) -> bool {
unsafe {
from_glib(ffi::g_unix_mount_entry_is_readonly(
self.to_glib_none_mut().0,
))
}
}

#[cfg(feature = "v2_84")]
#[cfg_attr(docsrs, doc(cfg(feature = "v2_84")))]
#[doc(alias = "g_unix_mount_entry_is_system_internal")]
pub fn is_system_internal(&mut self) -> bool {
unsafe {
from_glib(ffi::g_unix_mount_entry_is_system_internal(
self.to_glib_none_mut().0,
))
}
}

#[cfg(feature = "v2_84")]
#[cfg_attr(docsrs, doc(cfg(feature = "v2_84")))]
#[doc(alias = "g_unix_mount_entry_at")]
pub fn at(mount_path: impl AsRef<std::path::Path>) -> (Option<UnixMountEntry>, u64) {
unsafe {
let mut time_read = std::mem::MaybeUninit::uninit();
let ret = from_glib_full(ffi::g_unix_mount_entry_at(
mount_path.as_ref().to_glib_none().0,
time_read.as_mut_ptr(),
));
(ret, time_read.assume_init())
}
}

#[cfg(feature = "v2_84")]
#[cfg_attr(docsrs, doc(cfg(feature = "v2_84")))]
#[doc(alias = "g_unix_mount_entry_for")]
#[doc(alias = "for")]
pub fn for_(file_path: impl AsRef<std::path::Path>) -> (Option<UnixMountEntry>, u64) {
unsafe {
let mut time_read = std::mem::MaybeUninit::uninit();
let ret = from_glib_full(ffi::g_unix_mount_entry_for(
file_path.as_ref().to_glib_none().0,
time_read.as_mut_ptr(),
));
(ret, time_read.assume_init())
}
}
}

#[cfg(feature = "v2_84")]
#[cfg_attr(docsrs, doc(cfg(feature = "v2_84")))]
impl PartialEq for UnixMountEntry {
#[inline]
fn eq(&self, other: &Self) -> bool {
self.compare(other) == 0
}
}

impl Eq for UnixMountEntry {}
sdroege marked this conversation as resolved.
Show resolved Hide resolved

#[cfg(feature = "v2_84")]
#[cfg_attr(docsrs, doc(cfg(feature = "v2_84")))]
impl PartialOrd for UnixMountEntry {
#[inline]
fn partial_cmp(&self, other: &Self) -> Option<std::cmp::Ordering> {
Some(self.cmp(other))
}
}

impl Ord for UnixMountEntry {
#[inline]
fn cmp(&self, other: &Self) -> std::cmp::Ordering {
self.compare(other).cmp(&0)
}
}

unsafe impl Send for UnixMountEntry {}
unsafe impl Sync for UnixMountEntry {}
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 @ e5ad53c3ad05)
from gir-files (https://github.com/gtk-rs/gir-files @ f7af0e711383)
Generated by gir (https://github.com/gtk-rs/gir @ 25fc925cd3da)
from gir-files (https://github.com/gtk-rs/gir-files @ 3e07ae5a14c7)
71 changes: 71 additions & 0 deletions gio/sys/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10161,6 +10161,66 @@ extern "C" {
// GUnixMountEntry
//=========================================================================
pub fn g_unix_mount_entry_get_type() -> GType;
#[cfg(feature = "v2_84")]
#[cfg_attr(docsrs, doc(cfg(feature = "v2_84")))]
pub fn g_unix_mount_entry_compare(
mount1: *mut GUnixMountEntry,
mount2: *mut GUnixMountEntry,
) -> c_int;
#[cfg(feature = "v2_84")]
#[cfg_attr(docsrs, doc(cfg(feature = "v2_84")))]
pub fn g_unix_mount_entry_copy(mount_entry: *mut GUnixMountEntry) -> *mut GUnixMountEntry;
#[cfg(feature = "v2_84")]
#[cfg_attr(docsrs, doc(cfg(feature = "v2_84")))]
pub fn g_unix_mount_entry_free(mount_entry: *mut GUnixMountEntry);
#[cfg(feature = "v2_84")]
#[cfg_attr(docsrs, doc(cfg(feature = "v2_84")))]
pub fn g_unix_mount_entry_get_device_path(mount_entry: *mut GUnixMountEntry) -> *const c_char;
#[cfg(feature = "v2_84")]
#[cfg_attr(docsrs, doc(cfg(feature = "v2_84")))]
pub fn g_unix_mount_entry_get_fs_type(mount_entry: *mut GUnixMountEntry) -> *const c_char;
#[cfg(feature = "v2_84")]
#[cfg_attr(docsrs, doc(cfg(feature = "v2_84")))]
pub fn g_unix_mount_entry_get_mount_path(mount_entry: *mut GUnixMountEntry) -> *const c_char;
#[cfg(feature = "v2_84")]
#[cfg_attr(docsrs, doc(cfg(feature = "v2_84")))]
pub fn g_unix_mount_entry_get_options(mount_entry: *mut GUnixMountEntry) -> *const c_char;
#[cfg(feature = "v2_84")]
#[cfg_attr(docsrs, doc(cfg(feature = "v2_84")))]
pub fn g_unix_mount_entry_get_root_path(mount_entry: *mut GUnixMountEntry) -> *const c_char;
#[cfg(feature = "v2_84")]
#[cfg_attr(docsrs, doc(cfg(feature = "v2_84")))]
pub fn g_unix_mount_entry_guess_can_eject(mount_entry: *mut GUnixMountEntry) -> gboolean;
#[cfg(feature = "v2_84")]
#[cfg_attr(docsrs, doc(cfg(feature = "v2_84")))]
pub fn g_unix_mount_entry_guess_icon(mount_entry: *mut GUnixMountEntry) -> *mut GIcon;
#[cfg(feature = "v2_84")]
#[cfg_attr(docsrs, doc(cfg(feature = "v2_84")))]
pub fn g_unix_mount_entry_guess_name(mount_entry: *mut GUnixMountEntry) -> *mut c_char;
#[cfg(feature = "v2_84")]
#[cfg_attr(docsrs, doc(cfg(feature = "v2_84")))]
pub fn g_unix_mount_entry_guess_should_display(mount_entry: *mut GUnixMountEntry) -> gboolean;
#[cfg(feature = "v2_84")]
#[cfg_attr(docsrs, doc(cfg(feature = "v2_84")))]
pub fn g_unix_mount_entry_guess_symbolic_icon(mount_entry: *mut GUnixMountEntry) -> *mut GIcon;
#[cfg(feature = "v2_84")]
#[cfg_attr(docsrs, doc(cfg(feature = "v2_84")))]
pub fn g_unix_mount_entry_is_readonly(mount_entry: *mut GUnixMountEntry) -> gboolean;
#[cfg(feature = "v2_84")]
#[cfg_attr(docsrs, doc(cfg(feature = "v2_84")))]
pub fn g_unix_mount_entry_is_system_internal(mount_entry: *mut GUnixMountEntry) -> gboolean;
#[cfg(feature = "v2_84")]
#[cfg_attr(docsrs, doc(cfg(feature = "v2_84")))]
pub fn g_unix_mount_entry_at(
mount_path: *const c_char,
time_read: *mut u64,
) -> *mut GUnixMountEntry;
#[cfg(feature = "v2_84")]
#[cfg_attr(docsrs, doc(cfg(feature = "v2_84")))]
pub fn g_unix_mount_entry_for(
file_path: *const c_char,
time_read: *mut u64,
) -> *mut GUnixMountEntry;

//=========================================================================
// GUnixMountPoint
Expand Down Expand Up @@ -17301,6 +17361,17 @@ extern "C" {
mount2: *mut GUnixMountEntry,
) -> c_int;
pub fn g_unix_mount_copy(mount_entry: *mut GUnixMountEntry) -> *mut GUnixMountEntry;
pub fn g_unix_mount_entries_changed_since(time: u64) -> gboolean;
#[cfg(feature = "v2_84")]
#[cfg_attr(docsrs, doc(cfg(feature = "v2_84")))]
pub fn g_unix_mount_entries_get(time_read: *mut u64) -> *mut glib::GList;
#[cfg(feature = "v2_84")]
#[cfg_attr(docsrs, doc(cfg(feature = "v2_84")))]
pub fn g_unix_mount_entries_get_from_file(
table_path: *const c_char,
time_read_out: *mut u64,
n_entries_out: *mut size_t,
) -> *mut *mut GUnixMountEntry;
sdroege marked this conversation as resolved.
Show resolved Hide resolved
pub fn g_unix_mount_for(file_path: *const c_char, time_read: *mut u64) -> *mut GUnixMountEntry;
pub fn g_unix_mount_free(mount_entry: *mut GUnixMountEntry);
pub fn g_unix_mount_get_device_path(mount_entry: *mut GUnixMountEntry) -> *const c_char;
Expand Down
4 changes: 2 additions & 2 deletions 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 @ e5ad53c3ad05)
from gir-files (https://github.com/gtk-rs/gir-files @ f7af0e711383)
Generated by gir (https://github.com/gtk-rs/gir @ 25fc925cd3da)
from gir-files (https://github.com/gtk-rs/gir-files @ 3e07ae5a14c7)
2 changes: 1 addition & 1 deletion gir
Submodule gir updated 1 files
+34 −34 Cargo.lock
2 changes: 1 addition & 1 deletion gir-files
Submodule gir-files updated 5 files
+360 −301 GLib-2.0.gir
+14 −9 GObject-2.0.gir
+22 −4 Gdk-4.0.gir
+434 −30 Gio-2.0.gir
+643 −25 GioUnix-2.0.gir
4 changes: 2 additions & 2 deletions 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 @ e5ad53c3ad05)
from gir-files (https://github.com/gtk-rs/gir-files @ f7af0e711383)
Generated by gir (https://github.com/gtk-rs/gir @ 25fc925cd3da)
from gir-files (https://github.com/gtk-rs/gir-files @ 3e07ae5a14c7)
28 changes: 28 additions & 0 deletions glib/src/auto/enums.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1514,6 +1514,20 @@ pub enum UnicodeScript {
#[cfg_attr(docsrs, doc(cfg(feature = "v2_74")))]
#[doc(alias = "G_UNICODE_SCRIPT_NAG_MUNDARI")]
NagMundari,
#[doc(alias = "G_UNICODE_SCRIPT_TODHRI")]
Todhri,
#[doc(alias = "G_UNICODE_SCRIPT_GARAY")]
Garay,
#[doc(alias = "G_UNICODE_SCRIPT_TULU_TIGALARI")]
TuluTigalari,
#[doc(alias = "G_UNICODE_SCRIPT_SUNUWAR")]
Sunuwar,
#[doc(alias = "G_UNICODE_SCRIPT_GURUNG_KHEMA")]
GurungKhema,
#[doc(alias = "G_UNICODE_SCRIPT_KIRAT_RAI")]
KiratRai,
#[doc(alias = "G_UNICODE_SCRIPT_OL_ONAL")]
OlOnal,
sdroege marked this conversation as resolved.
Show resolved Hide resolved
#[doc(hidden)]
__Unknown(i32),
}
Expand Down Expand Up @@ -1710,6 +1724,13 @@ impl IntoGlib for UnicodeScript {
Self::Kawi => ffi::G_UNICODE_SCRIPT_KAWI,
#[cfg(feature = "v2_74")]
Self::NagMundari => ffi::G_UNICODE_SCRIPT_NAG_MUNDARI,
Self::Todhri => ffi::G_UNICODE_SCRIPT_TODHRI,
Self::Garay => ffi::G_UNICODE_SCRIPT_GARAY,
Self::TuluTigalari => ffi::G_UNICODE_SCRIPT_TULU_TIGALARI,
Self::Sunuwar => ffi::G_UNICODE_SCRIPT_SUNUWAR,
Self::GurungKhema => ffi::G_UNICODE_SCRIPT_GURUNG_KHEMA,
Self::KiratRai => ffi::G_UNICODE_SCRIPT_KIRAT_RAI,
Self::OlOnal => ffi::G_UNICODE_SCRIPT_OL_ONAL,
Self::__Unknown(value) => value,
}
}
Expand Down Expand Up @@ -1893,6 +1914,13 @@ impl FromGlib<ffi::GUnicodeScript> for UnicodeScript {
ffi::G_UNICODE_SCRIPT_KAWI => Self::Kawi,
#[cfg(feature = "v2_74")]
ffi::G_UNICODE_SCRIPT_NAG_MUNDARI => Self::NagMundari,
ffi::G_UNICODE_SCRIPT_TODHRI => Self::Todhri,
ffi::G_UNICODE_SCRIPT_GARAY => Self::Garay,
ffi::G_UNICODE_SCRIPT_TULU_TIGALARI => Self::TuluTigalari,
ffi::G_UNICODE_SCRIPT_SUNUWAR => Self::Sunuwar,
ffi::G_UNICODE_SCRIPT_GURUNG_KHEMA => Self::GurungKhema,
ffi::G_UNICODE_SCRIPT_KIRAT_RAI => Self::KiratRai,
ffi::G_UNICODE_SCRIPT_OL_ONAL => Self::OlOnal,
value => Self::__Unknown(value),
}
}
Expand Down
Loading
Loading