1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
use crate::UnixMountPoint;
use glib::translate::*;
use std::mem;
impl UnixMountPoint {
#[cfg(any(unix, feature = "dox"))]
#[doc(alias = "g_unix_mount_points_get")]
#[doc(alias = "get_mount_points")]
pub fn mount_points() -> (Vec<UnixMountPoint>, u64) {
unsafe {
let mut time_read = mem::MaybeUninit::uninit();
let ret = FromGlibPtrContainer::from_glib_full(ffi::g_unix_mount_points_get(
time_read.as_mut_ptr(),
));
let time_read = time_read.assume_init();
(ret, time_read)
}
}
#[doc(alias = "g_unix_mount_points_changed_since")]
pub fn is_changed_since(time: u64) -> bool {
unsafe { from_glib(ffi::g_unix_mount_points_changed_since(time)) }
}
}