diff --git a/rust-bindings/rust/src/auto/enums.rs b/rust-bindings/rust/src/auto/enums.rs index 11f8b411..0ae3ac64 100644 --- a/rust-bindings/rust/src/auto/enums.rs +++ b/rust-bindings/rust/src/auto/enums.rs @@ -69,6 +69,8 @@ pub enum GpgSignatureAttr { UserName, UserEmail, FingerprintPrimary, + KeyExpTimestamp, + KeyExpTimestampPrimary, #[doc(hidden)] __Unknown(i32), } @@ -89,6 +91,8 @@ impl fmt::Display for GpgSignatureAttr { GpgSignatureAttr::UserName => "UserName", GpgSignatureAttr::UserEmail => "UserEmail", GpgSignatureAttr::FingerprintPrimary => "FingerprintPrimary", + GpgSignatureAttr::KeyExpTimestamp => "KeyExpTimestamp", + GpgSignatureAttr::KeyExpTimestampPrimary => "KeyExpTimestampPrimary", _ => "Unknown", }) } @@ -113,6 +117,8 @@ impl ToGlib for GpgSignatureAttr { GpgSignatureAttr::UserName => ostree_sys::OSTREE_GPG_SIGNATURE_ATTR_USER_NAME, GpgSignatureAttr::UserEmail => ostree_sys::OSTREE_GPG_SIGNATURE_ATTR_USER_EMAIL, GpgSignatureAttr::FingerprintPrimary => ostree_sys::OSTREE_GPG_SIGNATURE_ATTR_FINGERPRINT_PRIMARY, + GpgSignatureAttr::KeyExpTimestamp => ostree_sys::OSTREE_GPG_SIGNATURE_ATTR_KEY_EXP_TIMESTAMP, + GpgSignatureAttr::KeyExpTimestampPrimary => ostree_sys::OSTREE_GPG_SIGNATURE_ATTR_KEY_EXP_TIMESTAMP_PRIMARY, GpgSignatureAttr::__Unknown(value) => value } } @@ -135,6 +141,8 @@ impl FromGlib for GpgSignatureAttr { 10 => GpgSignatureAttr::UserName, 11 => GpgSignatureAttr::UserEmail, 12 => GpgSignatureAttr::FingerprintPrimary, + 13 => GpgSignatureAttr::KeyExpTimestamp, + 14 => GpgSignatureAttr::KeyExpTimestampPrimary, value => GpgSignatureAttr::__Unknown(value), } } diff --git a/rust-bindings/rust/src/auto/mutable_tree.rs b/rust-bindings/rust/src/auto/mutable_tree.rs index 57acdbae..dce8c5c1 100644 --- a/rust-bindings/rust/src/auto/mutable_tree.rs +++ b/rust-bindings/rust/src/auto/mutable_tree.rs @@ -60,7 +60,7 @@ pub trait MutableTreeExt: 'static { fn get_metadata_checksum(&self) -> Option; - //fn get_subdirs(&self) -> /*Unknown conversion*//*Unimplemented*/HashTable TypeId { ns_id: 0, id: 28 }/TypeId { ns_id: 1, id: 37 }; + //fn get_subdirs(&self) -> /*Unknown conversion*//*Unimplemented*/HashTable TypeId { ns_id: 0, id: 28 }/TypeId { ns_id: 1, id: 38 }; fn lookup(&self, name: &str) -> Result<(GString, MutableTree), Error>; @@ -122,7 +122,7 @@ impl> MutableTreeExt for O { } } - //fn get_subdirs(&self) -> /*Unknown conversion*//*Unimplemented*/HashTable TypeId { ns_id: 0, id: 28 }/TypeId { ns_id: 1, id: 37 } { + //fn get_subdirs(&self) -> /*Unknown conversion*//*Unimplemented*/HashTable TypeId { ns_id: 0, id: 28 }/TypeId { ns_id: 1, id: 38 } { // unsafe { TODO: call ostree_sys:ostree_mutable_tree_get_subdirs() } //} diff --git a/rust-bindings/rust/src/auto/repo.rs b/rust-bindings/rust/src/auto/repo.rs index 75dd4a66..beee244e 100644 --- a/rust-bindings/rust/src/auto/repo.rs +++ b/rust-bindings/rust/src/auto/repo.rs @@ -848,6 +848,14 @@ impl Repo { } } + pub fn write_archive_to_mtree_from_fd, Q: IsA>(&self, fd: i32, mtree: &P, modifier: Option<&RepoCommitModifier>, autocreate_parents: bool, cancellable: Option<&Q>) -> Result<(), Error> { + unsafe { + let mut error = ptr::null_mut(); + let _ = ostree_sys::ostree_repo_write_archive_to_mtree_from_fd(self.to_glib_none().0, fd, mtree.as_ref().to_glib_none().0, modifier.to_glib_none().0, autocreate_parents.to_glib(), cancellable.map(|p| p.as_ref()).to_glib_none().0, &mut error); + if error.is_null() { Ok(()) } else { Err(from_glib_full(error)) } + } + } + pub fn write_commit, Q: IsA>(&self, parent: Option<&str>, subject: Option<&str>, body: Option<&str>, metadata: Option<&glib::Variant>, root: &P, cancellable: Option<&Q>) -> Result { unsafe { let mut out_commit = ptr::null_mut();