rust-bindings: Regenerate for 2023.1
authorColin Walters <walters@verbum.org>
Sat, 4 Mar 2023 15:54:04 +0000 (10:54 -0500)
committerColin Walters <walters@verbum.org>
Sat, 4 Mar 2023 15:54:04 +0000 (10:54 -0500)
Still need to automate this...

rust-bindings/src/auto/gpg_verify_result.rs
rust-bindings/src/auto/mutable_tree.rs
rust-bindings/src/auto/repo.rs
rust-bindings/src/auto/versions.txt
rust-bindings/sys/Cargo.toml
rust-bindings/sys/src/auto/versions.txt
rust-bindings/sys/src/lib.rs

index 048037d916676c31e642f9afd6504bdb7b9748b0..6748f2545b5627b0de84950baccecbebc72c8612 100644 (file)
@@ -34,7 +34,7 @@ impl GpgVerifyResult {
     }
 
     //#[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() }
     //}
 
index ca3ba8d14c6a30843b373c8b88a6dd86d259424b..98206f312bdcd34026e7c47bb6a553eaaf01627d 100644 (file)
@@ -115,7 +115,7 @@ impl MutableTree {
 
     //#[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() }
     //}
 
index 3d9bf74ab49720d9624e007115ac1b4753a7d363..58babf96fa439ee0dc43943dd95c0cf643660edd 100644 (file)
@@ -687,6 +687,18 @@ impl Repo {
         }
     }
 
+    #[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 {
index 97f80dcd5da1eabb4ec79087efeda96abdbd0030..0553f42ab5778a5cdfe144350cb5cbcd21ea7441 100644 (file)
@@ -1,2 +1,2 @@
 Generated by gir (https://github.com/gtk-rs/gir @ 0eeebbdf9d4d)
-from gir-files (@ 8c831311be59)
+from gir-files (@ a43b14381142)
index d77055a0c808e8ff78859a77d5ce87d3d557b944..74e7d3db8d74bbf587cba3284b60b6d11b460453 100644 (file)
@@ -68,6 +68,7 @@ v2022_2 = ["v2021_5"]
 v2022_5 = ["v2022_2"]
 v2022_6 = ["v2022_5"]
 v2022_7 = ["v2022_5"]
+v2023_1 = ["v2022_7"]
 
 [lib]
 name = "ostree_sys"
@@ -228,3 +229,6 @@ version = "2022.6"
 
 [package.metadata.system-deps.ostree_1.v2022_7]
 version = "2022.7"
+
+[package.metadata.system-deps.ostree_1.v2023_1]
+version = "2023.1"
index 97f80dcd5da1eabb4ec79087efeda96abdbd0030..0553f42ab5778a5cdfe144350cb5cbcd21ea7441 100644 (file)
@@ -1,2 +1,2 @@
 Generated by gir (https://github.com/gtk-rs/gir @ 0eeebbdf9d4d)
-from gir-files (@ 8c831311be59)
+from gir-files (@ a43b14381142)
index 9c270d3d7bd48eef344ca789f2eacf51876e8a6e..d6e576d2f22b7851f3778f51838b9d74e3613086 100644 (file)
@@ -318,28 +318,28 @@ pub struct _OstreeBootloader {
 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 {
@@ -2382,6 +2382,15 @@ extern "C" {
         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,