rust-bindings: Regenerate for 2023.1

Still need to automate this...
This commit is contained in:
Colin Walters 2023-03-04 10:54:04 -05:00
parent a43b143811
commit be0dbf02d7
7 changed files with 37 additions and 12 deletions

View 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() }
//}

View 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() }
//}

View 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 {

View File

@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ 0eeebbdf9d4d)
from gir-files (@ 8c831311be59)
from gir-files (@ a43b14381142)

View 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"

View File

@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ 0eeebbdf9d4d)
from gir-files (@ 8c831311be59)
from gir-files (@ a43b14381142)

View File

@ -317,6 +317,14 @@ pub struct _OstreeBootloader {
pub type OstreeBootloader = *mut _OstreeBootloader;
#[repr(C)]
pub struct _OstreeBootloaderAboot {
_data: [u8; 0],
_marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
}
pub type OstreeBootloaderAboot = *mut _OstreeBootloaderAboot;
#[repr(C)]
pub struct _OstreeBootloaderGrub2 {
_data: [u8; 0],
@ -333,14 +341,6 @@ pub struct _OstreeBootloaderSyslinux {
pub type OstreeBootloaderSyslinux = *mut _OstreeBootloaderSyslinux;
#[repr(C)]
pub struct _OstreeBootloaderAboot {
_data: [u8; 0],
_marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
}
pub type OstreeBootloaderAboot = *mut _OstreeBootloaderAboot;
#[repr(C)]
pub struct _OstreeBootloaderUboot {
_data: [u8; 0],
@ -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,