}
//#[doc(alias = "ostree_gpg_verify_result_get")]
- //pub fn get(&self, signature_index: u32, attrs: /*Unimplemented*/&CArray TypeId { ns_id: 1, id: 28 }) -> Option<glib::Variant> {
+ //pub fn get(&self, signature_index: u32, attrs: /*Unimplemented*/&CArray TypeId { ns_id: 1, id: 29 }) -> Option<glib::Variant> {
// unsafe { TODO: call ffi:ostree_gpg_verify_result_get() }
//}
//#[doc(alias = "ostree_mutable_tree_get_subdirs")]
//#[doc(alias = "get_subdirs")]
- //pub fn subdirs(&self) -> /*Unknown conversion*//*Unimplemented*/HashTable TypeId { ns_id: 0, id: 28 }/TypeId { ns_id: 1, id: 41 } {
+ //pub fn subdirs(&self) -> /*Unknown conversion*//*Unimplemented*/HashTable TypeId { ns_id: 0, id: 28 }/TypeId { ns_id: 1, id: 42 } {
// unsafe { TODO: call ffi:ostree_mutable_tree_get_subdirs() }
//}
}
}
+ #[cfg(any(feature = "v2023_1", feature = "dox"))]
+ #[cfg_attr(feature = "dox", doc(cfg(feature = "v2023_1")))]
+ #[doc(alias = "ostree_repo_regenerate_metadata")]
+ pub fn regenerate_metadata(&self, additional_metadata: Option<&glib::Variant>, options: Option<&glib::Variant>, cancellable: Option<&impl IsA<gio::Cancellable>>) -> Result<(), glib::Error> {
+ unsafe {
+ let mut error = ptr::null_mut();
+ let is_ok = ffi::ostree_repo_regenerate_metadata(self.to_glib_none().0, additional_metadata.to_glib_none().0, options.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)) }
+ }
+ }
+
#[doc(alias = "ostree_repo_regenerate_summary")]
pub fn regenerate_summary(&self, additional_metadata: Option<&glib::Variant>, cancellable: Option<&impl IsA<gio::Cancellable>>) -> Result<(), glib::Error> {
unsafe {
pub type OstreeBootloader = *mut _OstreeBootloader;
#[repr(C)]
-pub struct _OstreeBootloaderGrub2 {
+pub struct _OstreeBootloaderAboot {
_data: [u8; 0],
_marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
}
-pub type OstreeBootloaderGrub2 = *mut _OstreeBootloaderGrub2;
+pub type OstreeBootloaderAboot = *mut _OstreeBootloaderAboot;
#[repr(C)]
-pub struct _OstreeBootloaderSyslinux {
+pub struct _OstreeBootloaderGrub2 {
_data: [u8; 0],
_marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
}
-pub type OstreeBootloaderSyslinux = *mut _OstreeBootloaderSyslinux;
+pub type OstreeBootloaderGrub2 = *mut _OstreeBootloaderGrub2;
#[repr(C)]
-pub struct _OstreeBootloaderAboot {
+pub struct _OstreeBootloaderSyslinux {
_data: [u8; 0],
_marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
}
-pub type OstreeBootloaderAboot = *mut _OstreeBootloaderAboot;
+pub type OstreeBootloaderSyslinux = *mut _OstreeBootloaderSyslinux;
#[repr(C)]
pub struct _OstreeBootloaderUboot {
cancellable: *mut gio::GCancellable,
error: *mut *mut glib::GError,
) -> gboolean;
+ #[cfg(any(feature = "v2023_1", feature = "dox"))]
+ #[cfg_attr(feature = "dox", doc(cfg(feature = "v2023_1")))]
+ pub fn ostree_repo_regenerate_metadata(
+ self_: *mut OstreeRepo,
+ additional_metadata: *mut glib::GVariant,
+ options: *mut glib::GVariant,
+ cancellable: *mut gio::GCancellable,
+ error: *mut *mut glib::GError,
+ ) -> gboolean;
pub fn ostree_repo_regenerate_summary(
self_: *mut OstreeRepo,
additional_metadata: *mut glib::GVariant,