Skip to content

Commit 500fc7b

Browse files
committed
Regenerate with latest gir / gir-files
1 parent 02a7042 commit 500fc7b

File tree

20 files changed

+366
-30
lines changed

20 files changed

+366
-30
lines changed

gdk-pixbuf/src/auto/versions.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Generated by gir (https://github.com/gtk-rs/gir @ e5ad53c3ad05)
2-
from gir-files (https://github.com/gtk-rs/gir-files @ f7af0e711383)
1+
Generated by gir (https://github.com/gtk-rs/gir @ 25fc925cd3da)
2+
from gir-files (https://github.com/gtk-rs/gir-files @ 3e07ae5a14c7)

gdk-pixbuf/sys/versions.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Generated by gir (https://github.com/gtk-rs/gir @ e5ad53c3ad05)
2-
from gir-files (https://github.com/gtk-rs/gir-files @ f7af0e711383)
1+
Generated by gir (https://github.com/gtk-rs/gir @ 25fc925cd3da)
2+
from gir-files (https://github.com/gtk-rs/gir-files @ 3e07ae5a14c7)

gio/src/auto/unix_mount_entry.rs

Lines changed: 212 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,227 @@
33
// DO NOT EDIT
44

55
use crate::ffi;
6+
#[cfg(feature = "v2_84")]
7+
#[cfg_attr(docsrs, doc(cfg(feature = "v2_84")))]
8+
use crate::Icon;
9+
#[cfg(feature = "v2_84")]
10+
#[cfg_attr(docsrs, doc(cfg(feature = "v2_84")))]
11+
use glib::translate::*;
612

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

1117
match fn {
12-
copy => |ptr| glib::gobject_ffi::g_boxed_copy(ffi::g_unix_mount_entry_get_type(), ptr as *mut _) as *mut ffi::GUnixMountEntry,
13-
free => |ptr| glib::gobject_ffi::g_boxed_free(ffi::g_unix_mount_entry_get_type(), ptr as *mut _),
18+
copy => |ptr| ffi::g_unix_mount_entry_copy(mut_override(ptr)),
19+
free => |ptr| ffi::g_unix_mount_entry_free(ptr),
1420
type_ => || ffi::g_unix_mount_entry_get_type(),
1521
}
1622
}
1723

24+
impl UnixMountEntry {
25+
#[cfg(feature = "v2_84")]
26+
#[cfg_attr(docsrs, doc(cfg(feature = "v2_84")))]
27+
#[doc(alias = "g_unix_mount_entry_compare")]
28+
fn compare(&mut self, mount2: &mut UnixMountEntry) -> i32 {
29+
unsafe {
30+
ffi::g_unix_mount_entry_compare(self.to_glib_none_mut().0, mount2.to_glib_none_mut().0)
31+
}
32+
}
33+
34+
#[cfg(feature = "v2_84")]
35+
#[cfg_attr(docsrs, doc(cfg(feature = "v2_84")))]
36+
#[doc(alias = "g_unix_mount_entry_get_device_path")]
37+
#[doc(alias = "get_device_path")]
38+
pub fn device_path(&mut self) -> std::path::PathBuf {
39+
unsafe {
40+
from_glib_none(ffi::g_unix_mount_entry_get_device_path(
41+
self.to_glib_none_mut().0,
42+
))
43+
}
44+
}
45+
46+
#[cfg(feature = "v2_84")]
47+
#[cfg_attr(docsrs, doc(cfg(feature = "v2_84")))]
48+
#[doc(alias = "g_unix_mount_entry_get_fs_type")]
49+
#[doc(alias = "get_fs_type")]
50+
pub fn fs_type(&mut self) -> glib::GString {
51+
unsafe {
52+
from_glib_none(ffi::g_unix_mount_entry_get_fs_type(
53+
self.to_glib_none_mut().0,
54+
))
55+
}
56+
}
57+
58+
#[cfg(feature = "v2_84")]
59+
#[cfg_attr(docsrs, doc(cfg(feature = "v2_84")))]
60+
#[doc(alias = "g_unix_mount_entry_get_mount_path")]
61+
#[doc(alias = "get_mount_path")]
62+
pub fn mount_path(&mut self) -> std::path::PathBuf {
63+
unsafe {
64+
from_glib_none(ffi::g_unix_mount_entry_get_mount_path(
65+
self.to_glib_none_mut().0,
66+
))
67+
}
68+
}
69+
70+
#[cfg(feature = "v2_84")]
71+
#[cfg_attr(docsrs, doc(cfg(feature = "v2_84")))]
72+
#[doc(alias = "g_unix_mount_entry_get_options")]
73+
#[doc(alias = "get_options")]
74+
pub fn options(&mut self) -> Option<glib::GString> {
75+
unsafe {
76+
from_glib_none(ffi::g_unix_mount_entry_get_options(
77+
self.to_glib_none_mut().0,
78+
))
79+
}
80+
}
81+
82+
#[cfg(feature = "v2_84")]
83+
#[cfg_attr(docsrs, doc(cfg(feature = "v2_84")))]
84+
#[doc(alias = "g_unix_mount_entry_get_root_path")]
85+
#[doc(alias = "get_root_path")]
86+
pub fn root_path(&mut self) -> Option<glib::GString> {
87+
unsafe {
88+
from_glib_none(ffi::g_unix_mount_entry_get_root_path(
89+
self.to_glib_none_mut().0,
90+
))
91+
}
92+
}
93+
94+
#[cfg(feature = "v2_84")]
95+
#[cfg_attr(docsrs, doc(cfg(feature = "v2_84")))]
96+
#[doc(alias = "g_unix_mount_entry_guess_can_eject")]
97+
pub fn guess_can_eject(&mut self) -> bool {
98+
unsafe {
99+
from_glib(ffi::g_unix_mount_entry_guess_can_eject(
100+
self.to_glib_none_mut().0,
101+
))
102+
}
103+
}
104+
105+
#[cfg(feature = "v2_84")]
106+
#[cfg_attr(docsrs, doc(cfg(feature = "v2_84")))]
107+
#[doc(alias = "g_unix_mount_entry_guess_icon")]
108+
pub fn guess_icon(&mut self) -> Icon {
109+
unsafe {
110+
from_glib_full(ffi::g_unix_mount_entry_guess_icon(
111+
self.to_glib_none_mut().0,
112+
))
113+
}
114+
}
115+
116+
#[cfg(feature = "v2_84")]
117+
#[cfg_attr(docsrs, doc(cfg(feature = "v2_84")))]
118+
#[doc(alias = "g_unix_mount_entry_guess_name")]
119+
pub fn guess_name(&mut self) -> glib::GString {
120+
unsafe {
121+
from_glib_full(ffi::g_unix_mount_entry_guess_name(
122+
self.to_glib_none_mut().0,
123+
))
124+
}
125+
}
126+
127+
#[cfg(feature = "v2_84")]
128+
#[cfg_attr(docsrs, doc(cfg(feature = "v2_84")))]
129+
#[doc(alias = "g_unix_mount_entry_guess_should_display")]
130+
pub fn guess_should_display(&mut self) -> bool {
131+
unsafe {
132+
from_glib(ffi::g_unix_mount_entry_guess_should_display(
133+
self.to_glib_none_mut().0,
134+
))
135+
}
136+
}
137+
138+
#[cfg(feature = "v2_84")]
139+
#[cfg_attr(docsrs, doc(cfg(feature = "v2_84")))]
140+
#[doc(alias = "g_unix_mount_entry_guess_symbolic_icon")]
141+
pub fn guess_symbolic_icon(&mut self) -> Icon {
142+
unsafe {
143+
from_glib_full(ffi::g_unix_mount_entry_guess_symbolic_icon(
144+
self.to_glib_none_mut().0,
145+
))
146+
}
147+
}
148+
149+
#[cfg(feature = "v2_84")]
150+
#[cfg_attr(docsrs, doc(cfg(feature = "v2_84")))]
151+
#[doc(alias = "g_unix_mount_entry_is_readonly")]
152+
pub fn is_readonly(&mut self) -> bool {
153+
unsafe {
154+
from_glib(ffi::g_unix_mount_entry_is_readonly(
155+
self.to_glib_none_mut().0,
156+
))
157+
}
158+
}
159+
160+
#[cfg(feature = "v2_84")]
161+
#[cfg_attr(docsrs, doc(cfg(feature = "v2_84")))]
162+
#[doc(alias = "g_unix_mount_entry_is_system_internal")]
163+
pub fn is_system_internal(&mut self) -> bool {
164+
unsafe {
165+
from_glib(ffi::g_unix_mount_entry_is_system_internal(
166+
self.to_glib_none_mut().0,
167+
))
168+
}
169+
}
170+
171+
#[cfg(feature = "v2_84")]
172+
#[cfg_attr(docsrs, doc(cfg(feature = "v2_84")))]
173+
#[doc(alias = "g_unix_mount_entry_at")]
174+
pub fn at(mount_path: impl AsRef<std::path::Path>) -> (Option<UnixMountEntry>, u64) {
175+
unsafe {
176+
let mut time_read = std::mem::MaybeUninit::uninit();
177+
let ret = from_glib_full(ffi::g_unix_mount_entry_at(
178+
mount_path.as_ref().to_glib_none().0,
179+
time_read.as_mut_ptr(),
180+
));
181+
(ret, time_read.assume_init())
182+
}
183+
}
184+
185+
#[cfg(feature = "v2_84")]
186+
#[cfg_attr(docsrs, doc(cfg(feature = "v2_84")))]
187+
#[doc(alias = "g_unix_mount_entry_for")]
188+
#[doc(alias = "for")]
189+
pub fn for_(file_path: impl AsRef<std::path::Path>) -> (Option<UnixMountEntry>, u64) {
190+
unsafe {
191+
let mut time_read = std::mem::MaybeUninit::uninit();
192+
let ret = from_glib_full(ffi::g_unix_mount_entry_for(
193+
file_path.as_ref().to_glib_none().0,
194+
time_read.as_mut_ptr(),
195+
));
196+
(ret, time_read.assume_init())
197+
}
198+
}
199+
}
200+
201+
#[cfg(feature = "v2_84")]
202+
#[cfg_attr(docsrs, doc(cfg(feature = "v2_84")))]
203+
impl PartialEq for UnixMountEntry {
204+
#[inline]
205+
fn eq(&self, other: &Self) -> bool {
206+
self.compare(other) == 0
207+
}
208+
}
209+
210+
impl Eq for UnixMountEntry {}
211+
212+
#[cfg(feature = "v2_84")]
213+
#[cfg_attr(docsrs, doc(cfg(feature = "v2_84")))]
214+
impl PartialOrd for UnixMountEntry {
215+
#[inline]
216+
fn partial_cmp(&self, other: &Self) -> Option<std::cmp::Ordering> {
217+
Some(self.cmp(other))
218+
}
219+
}
220+
221+
impl Ord for UnixMountEntry {
222+
#[inline]
223+
fn cmp(&self, other: &Self) -> std::cmp::Ordering {
224+
self.compare(other).cmp(&0)
225+
}
226+
}
227+
18228
unsafe impl Send for UnixMountEntry {}
19229
unsafe impl Sync for UnixMountEntry {}

gio/src/auto/versions.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Generated by gir (https://github.com/gtk-rs/gir @ e5ad53c3ad05)
2-
from gir-files (https://github.com/gtk-rs/gir-files @ f7af0e711383)
1+
Generated by gir (https://github.com/gtk-rs/gir @ 25fc925cd3da)
2+
from gir-files (https://github.com/gtk-rs/gir-files @ 3e07ae5a14c7)

gio/sys/src/lib.rs

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10161,6 +10161,66 @@ extern "C" {
1016110161
// GUnixMountEntry
1016210162
//=========================================================================
1016310163
pub fn g_unix_mount_entry_get_type() -> GType;
10164+
#[cfg(feature = "v2_84")]
10165+
#[cfg_attr(docsrs, doc(cfg(feature = "v2_84")))]
10166+
pub fn g_unix_mount_entry_compare(
10167+
mount1: *mut GUnixMountEntry,
10168+
mount2: *mut GUnixMountEntry,
10169+
) -> c_int;
10170+
#[cfg(feature = "v2_84")]
10171+
#[cfg_attr(docsrs, doc(cfg(feature = "v2_84")))]
10172+
pub fn g_unix_mount_entry_copy(mount_entry: *mut GUnixMountEntry) -> *mut GUnixMountEntry;
10173+
#[cfg(feature = "v2_84")]
10174+
#[cfg_attr(docsrs, doc(cfg(feature = "v2_84")))]
10175+
pub fn g_unix_mount_entry_free(mount_entry: *mut GUnixMountEntry);
10176+
#[cfg(feature = "v2_84")]
10177+
#[cfg_attr(docsrs, doc(cfg(feature = "v2_84")))]
10178+
pub fn g_unix_mount_entry_get_device_path(mount_entry: *mut GUnixMountEntry) -> *const c_char;
10179+
#[cfg(feature = "v2_84")]
10180+
#[cfg_attr(docsrs, doc(cfg(feature = "v2_84")))]
10181+
pub fn g_unix_mount_entry_get_fs_type(mount_entry: *mut GUnixMountEntry) -> *const c_char;
10182+
#[cfg(feature = "v2_84")]
10183+
#[cfg_attr(docsrs, doc(cfg(feature = "v2_84")))]
10184+
pub fn g_unix_mount_entry_get_mount_path(mount_entry: *mut GUnixMountEntry) -> *const c_char;
10185+
#[cfg(feature = "v2_84")]
10186+
#[cfg_attr(docsrs, doc(cfg(feature = "v2_84")))]
10187+
pub fn g_unix_mount_entry_get_options(mount_entry: *mut GUnixMountEntry) -> *const c_char;
10188+
#[cfg(feature = "v2_84")]
10189+
#[cfg_attr(docsrs, doc(cfg(feature = "v2_84")))]
10190+
pub fn g_unix_mount_entry_get_root_path(mount_entry: *mut GUnixMountEntry) -> *const c_char;
10191+
#[cfg(feature = "v2_84")]
10192+
#[cfg_attr(docsrs, doc(cfg(feature = "v2_84")))]
10193+
pub fn g_unix_mount_entry_guess_can_eject(mount_entry: *mut GUnixMountEntry) -> gboolean;
10194+
#[cfg(feature = "v2_84")]
10195+
#[cfg_attr(docsrs, doc(cfg(feature = "v2_84")))]
10196+
pub fn g_unix_mount_entry_guess_icon(mount_entry: *mut GUnixMountEntry) -> *mut GIcon;
10197+
#[cfg(feature = "v2_84")]
10198+
#[cfg_attr(docsrs, doc(cfg(feature = "v2_84")))]
10199+
pub fn g_unix_mount_entry_guess_name(mount_entry: *mut GUnixMountEntry) -> *mut c_char;
10200+
#[cfg(feature = "v2_84")]
10201+
#[cfg_attr(docsrs, doc(cfg(feature = "v2_84")))]
10202+
pub fn g_unix_mount_entry_guess_should_display(mount_entry: *mut GUnixMountEntry) -> gboolean;
10203+
#[cfg(feature = "v2_84")]
10204+
#[cfg_attr(docsrs, doc(cfg(feature = "v2_84")))]
10205+
pub fn g_unix_mount_entry_guess_symbolic_icon(mount_entry: *mut GUnixMountEntry) -> *mut GIcon;
10206+
#[cfg(feature = "v2_84")]
10207+
#[cfg_attr(docsrs, doc(cfg(feature = "v2_84")))]
10208+
pub fn g_unix_mount_entry_is_readonly(mount_entry: *mut GUnixMountEntry) -> gboolean;
10209+
#[cfg(feature = "v2_84")]
10210+
#[cfg_attr(docsrs, doc(cfg(feature = "v2_84")))]
10211+
pub fn g_unix_mount_entry_is_system_internal(mount_entry: *mut GUnixMountEntry) -> gboolean;
10212+
#[cfg(feature = "v2_84")]
10213+
#[cfg_attr(docsrs, doc(cfg(feature = "v2_84")))]
10214+
pub fn g_unix_mount_entry_at(
10215+
mount_path: *const c_char,
10216+
time_read: *mut u64,
10217+
) -> *mut GUnixMountEntry;
10218+
#[cfg(feature = "v2_84")]
10219+
#[cfg_attr(docsrs, doc(cfg(feature = "v2_84")))]
10220+
pub fn g_unix_mount_entry_for(
10221+
file_path: *const c_char,
10222+
time_read: *mut u64,
10223+
) -> *mut GUnixMountEntry;
1016410224

1016510225
//=========================================================================
1016610226
// GUnixMountPoint
@@ -17301,6 +17361,17 @@ extern "C" {
1730117361
mount2: *mut GUnixMountEntry,
1730217362
) -> c_int;
1730317363
pub fn g_unix_mount_copy(mount_entry: *mut GUnixMountEntry) -> *mut GUnixMountEntry;
17364+
pub fn g_unix_mount_entries_changed_since(time: u64) -> gboolean;
17365+
#[cfg(feature = "v2_84")]
17366+
#[cfg_attr(docsrs, doc(cfg(feature = "v2_84")))]
17367+
pub fn g_unix_mount_entries_get(time_read: *mut u64) -> *mut glib::GList;
17368+
#[cfg(feature = "v2_84")]
17369+
#[cfg_attr(docsrs, doc(cfg(feature = "v2_84")))]
17370+
pub fn g_unix_mount_entries_get_from_file(
17371+
table_path: *const c_char,
17372+
time_read_out: *mut u64,
17373+
n_entries_out: *mut size_t,
17374+
) -> *mut *mut GUnixMountEntry;
1730417375
pub fn g_unix_mount_for(file_path: *const c_char, time_read: *mut u64) -> *mut GUnixMountEntry;
1730517376
pub fn g_unix_mount_free(mount_entry: *mut GUnixMountEntry);
1730617377
pub fn g_unix_mount_get_device_path(mount_entry: *mut GUnixMountEntry) -> *const c_char;

gio/sys/versions.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Generated by gir (https://github.com/gtk-rs/gir @ e5ad53c3ad05)
2-
from gir-files (https://github.com/gtk-rs/gir-files @ f7af0e711383)
1+
Generated by gir (https://github.com/gtk-rs/gir @ 25fc925cd3da)
2+
from gir-files (https://github.com/gtk-rs/gir-files @ 3e07ae5a14c7)

glib/gobject-sys/versions.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Generated by gir (https://github.com/gtk-rs/gir @ e5ad53c3ad05)
2-
from gir-files (https://github.com/gtk-rs/gir-files @ f7af0e711383)
1+
Generated by gir (https://github.com/gtk-rs/gir @ 25fc925cd3da)
2+
from gir-files (https://github.com/gtk-rs/gir-files @ 3e07ae5a14c7)

glib/src/auto/enums.rs

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1514,6 +1514,20 @@ pub enum UnicodeScript {
15141514
#[cfg_attr(docsrs, doc(cfg(feature = "v2_74")))]
15151515
#[doc(alias = "G_UNICODE_SCRIPT_NAG_MUNDARI")]
15161516
NagMundari,
1517+
#[doc(alias = "G_UNICODE_SCRIPT_TODHRI")]
1518+
Todhri,
1519+
#[doc(alias = "G_UNICODE_SCRIPT_GARAY")]
1520+
Garay,
1521+
#[doc(alias = "G_UNICODE_SCRIPT_TULU_TIGALARI")]
1522+
TuluTigalari,
1523+
#[doc(alias = "G_UNICODE_SCRIPT_SUNUWAR")]
1524+
Sunuwar,
1525+
#[doc(alias = "G_UNICODE_SCRIPT_GURUNG_KHEMA")]
1526+
GurungKhema,
1527+
#[doc(alias = "G_UNICODE_SCRIPT_KIRAT_RAI")]
1528+
KiratRai,
1529+
#[doc(alias = "G_UNICODE_SCRIPT_OL_ONAL")]
1530+
OlOnal,
15171531
#[doc(hidden)]
15181532
__Unknown(i32),
15191533
}
@@ -1710,6 +1724,13 @@ impl IntoGlib for UnicodeScript {
17101724
Self::Kawi => ffi::G_UNICODE_SCRIPT_KAWI,
17111725
#[cfg(feature = "v2_74")]
17121726
Self::NagMundari => ffi::G_UNICODE_SCRIPT_NAG_MUNDARI,
1727+
Self::Todhri => ffi::G_UNICODE_SCRIPT_TODHRI,
1728+
Self::Garay => ffi::G_UNICODE_SCRIPT_GARAY,
1729+
Self::TuluTigalari => ffi::G_UNICODE_SCRIPT_TULU_TIGALARI,
1730+
Self::Sunuwar => ffi::G_UNICODE_SCRIPT_SUNUWAR,
1731+
Self::GurungKhema => ffi::G_UNICODE_SCRIPT_GURUNG_KHEMA,
1732+
Self::KiratRai => ffi::G_UNICODE_SCRIPT_KIRAT_RAI,
1733+
Self::OlOnal => ffi::G_UNICODE_SCRIPT_OL_ONAL,
17131734
Self::__Unknown(value) => value,
17141735
}
17151736
}
@@ -1893,6 +1914,13 @@ impl FromGlib<ffi::GUnicodeScript> for UnicodeScript {
18931914
ffi::G_UNICODE_SCRIPT_KAWI => Self::Kawi,
18941915
#[cfg(feature = "v2_74")]
18951916
ffi::G_UNICODE_SCRIPT_NAG_MUNDARI => Self::NagMundari,
1917+
ffi::G_UNICODE_SCRIPT_TODHRI => Self::Todhri,
1918+
ffi::G_UNICODE_SCRIPT_GARAY => Self::Garay,
1919+
ffi::G_UNICODE_SCRIPT_TULU_TIGALARI => Self::TuluTigalari,
1920+
ffi::G_UNICODE_SCRIPT_SUNUWAR => Self::Sunuwar,
1921+
ffi::G_UNICODE_SCRIPT_GURUNG_KHEMA => Self::GurungKhema,
1922+
ffi::G_UNICODE_SCRIPT_KIRAT_RAI => Self::KiratRai,
1923+
ffi::G_UNICODE_SCRIPT_OL_ONAL => Self::OlOnal,
18961924
value => Self::__Unknown(value),
18971925
}
18981926
}

glib/src/auto/functions.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -559,7 +559,7 @@ pub fn on_error_query(prg_name: &str) {
559559
}
560560

561561
#[doc(alias = "g_on_error_stack_trace")]
562-
pub fn on_error_stack_trace(prg_name: &str) {
562+
pub fn on_error_stack_trace(prg_name: Option<&str>) {
563563
unsafe {
564564
ffi::g_on_error_stack_trace(prg_name.to_glib_none().0);
565565
}

0 commit comments

Comments
 (0)