diff --git a/rust-bindings/rust/conf/ostree.toml b/rust-bindings/rust/conf/ostree.toml index 0cbdbb02..372d05cb 100644 --- a/rust-bindings/rust/conf/ostree.toml +++ b/rust-bindings/rust/conf/ostree.toml @@ -139,6 +139,7 @@ status = "generate" [[object]] name = "OSTree.Repo" status = "generate" +concurrency = "send" [[object.function]] # [MANUAL] we special-case the checksum value pattern = "^(write_content|write_content_async|write_metadata|write_metadata_async)$" diff --git a/rust-bindings/rust/src/auto/repo.rs b/rust-bindings/rust/src/auto/repo.rs index 6cae471c..ddae0cad 100644 --- a/rust-bindings/rust/src/auto/repo.rs +++ b/rust-bindings/rust/src/auto/repo.rs @@ -1060,8 +1060,8 @@ impl Repo { // unsafe { TODO: call ostree_sys:ostree_repo_traverse_parents_get_commits() } //} - pub fn connect_gpg_verify_result(&self, f: F) -> SignalHandlerId { - unsafe extern "C" fn gpg_verify_result_trampoline(this: *mut ostree_sys::OstreeRepo, checksum: *mut libc::c_char, result: *mut ostree_sys::OstreeGpgVerifyResult, f: glib_sys::gpointer) { + pub fn connect_gpg_verify_result(&self, f: F) -> SignalHandlerId { + unsafe extern "C" fn gpg_verify_result_trampoline(this: *mut ostree_sys::OstreeRepo, checksum: *mut libc::c_char, result: *mut ostree_sys::OstreeGpgVerifyResult, f: glib_sys::gpointer) { let f: &F = &*(f as *const F); f(&from_glib_borrow(this), &GString::from_glib_borrow(checksum), &from_glib_borrow(result)) } @@ -1073,6 +1073,8 @@ impl Repo { } } +unsafe impl Send for Repo {} + impl fmt::Display for Repo { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { write!(f, "Repo") diff --git a/rust-bindings/rust/src/auto/versions.txt b/rust-bindings/rust/src/auto/versions.txt index cba716b0..0d13f9df 100644 --- a/rust-bindings/rust/src/auto/versions.txt +++ b/rust-bindings/rust/src/auto/versions.txt @@ -1,2 +1,2 @@ Generated by gir (https://github.com/gtk-rs/gir @ 2d1ffab) -from gir-files (https://github.com/gtk-rs/gir-files @ b3c601f) +from gir-files (https://github.com/gtk-rs/gir-files @ 9fe8b26) diff --git a/rust-bindings/rust/sys/src/auto/versions.txt b/rust-bindings/rust/sys/src/auto/versions.txt index cba716b0..0d13f9df 100644 --- a/rust-bindings/rust/sys/src/auto/versions.txt +++ b/rust-bindings/rust/sys/src/auto/versions.txt @@ -1,2 +1,2 @@ Generated by gir (https://github.com/gtk-rs/gir @ 2d1ffab) -from gir-files (https://github.com/gtk-rs/gir-files @ b3c601f) +from gir-files (https://github.com/gtk-rs/gir-files @ 9fe8b26)