}
}
+ #[cfg(any(feature = "v2022_7", feature = "dox"))]
+ #[cfg_attr(feature = "dox", doc(cfg(feature = "v2022_7")))]
+ #[doc(alias = "ostree_sysroot_initialize_with_mount_namespace")]
+ pub fn initialize_with_mount_namespace(&self, cancellable: Option<&impl IsA<gio::Cancellable>>) -> Result<(), glib::Error> {
+ unsafe {
+ let mut error = ptr::null_mut();
+ let is_ok = ffi::ostree_sysroot_initialize_with_mount_namespace(self.to_glib_none().0, cancellable.map(|p| p.as_ref()).to_glib_none().0, &mut error);
+ assert_eq!(is_ok == glib::ffi::GFALSE, !error.is_null());
+ if error.is_null() { Ok(()) } else { Err(from_glib_full(error)) }
+ }
+ }
+
#[cfg(any(feature = "v2020_1", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2020_1")))]
#[doc(alias = "ostree_sysroot_is_booted")]
#[cfg(any(feature = "v2022_5", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2022_5")))]
pub fn ostree_kernel_args_append_if_missing(kargs: *mut OstreeKernelArgs, arg: *const c_char);
- #[cfg(any(feature = "v2022_7", feature = "dox"))]
- #[cfg_attr(feature = "dox", doc(cfg(feature = "v2022_7")))]
- pub fn ostree_kernel_args_contains(
+ #[cfg(any(feature = "v2019_3", feature = "dox"))]
+ #[cfg_attr(feature = "dox", doc(cfg(feature = "v2019_3")))]
+ pub fn ostree_kernel_args_append_proc_cmdline(
kargs: *mut OstreeKernelArgs,
- arg: *const c_char,
+ cancellable: *mut gio::GCancellable,
+ error: *mut *mut glib::GError,
) -> gboolean;
#[cfg(any(feature = "v2022_7", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2022_7")))]
- pub fn ostree_kernel_args_delete_if_present(
+ pub fn ostree_kernel_args_contains(
kargs: *mut OstreeKernelArgs,
arg: *const c_char,
- error: *mut *mut glib::GError,
) -> gboolean;
- #[cfg(any(feature = "v2019_3", feature = "dox"))]
- #[cfg_attr(feature = "dox", doc(cfg(feature = "v2019_3")))]
- pub fn ostree_kernel_args_append_proc_cmdline(
+ pub fn ostree_kernel_args_delete(
kargs: *mut OstreeKernelArgs,
- cancellable: *mut gio::GCancellable,
+ arg: *const c_char,
error: *mut *mut glib::GError,
) -> gboolean;
- pub fn ostree_kernel_args_delete(
+ #[cfg(any(feature = "v2022_7", feature = "dox"))]
+ #[cfg_attr(feature = "dox", doc(cfg(feature = "v2022_7")))]
+ pub fn ostree_kernel_args_delete_if_present(
kargs: *mut OstreeKernelArgs,
arg: *const c_char,
error: *mut *mut glib::GError,
self_: *mut OstreeSysroot,
error: *mut *mut glib::GError,
) -> gboolean;
+ #[cfg(any(feature = "v2022_7", feature = "dox"))]
+ #[cfg_attr(feature = "dox", doc(cfg(feature = "v2022_7")))]
+ pub fn ostree_sysroot_initialize_with_mount_namespace(
+ self_: *mut OstreeSysroot,
+ cancellable: *mut gio::GCancellable,
+ error: *mut *mut glib::GError,
+ ) -> gboolean;
#[cfg(any(feature = "v2020_1", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2020_1")))]
pub fn ostree_sysroot_is_booted(self_: *mut OstreeSysroot) -> gboolean;