Switch to patched ostree gir

This commit is contained in:
Felix Krull 2020-10-17 22:19:52 +02:00 committed by Colin Walters
parent 75848b26ef
commit d345ea0110
5 changed files with 15 additions and 8 deletions

View File

@ -1,7 +1,7 @@
GIR_REPO := https://github.com/gtk-rs/gir.git
GIR_VERSION := 2d1ffab19eb5f9a2f0d7a294dbf07517dab4d989
OSTREE_REPO := https://github.com/ostreedev/ostree.git
OSTREE_VERSION := v2020.7
OSTREE_REPO := https://github.com/fkrull/ostree.git
OSTREE_VERSION := patch-v2020.7
RUSTDOC_STRIPPER_VERSION := 0.1.13
all: gir

View File

@ -9263,7 +9263,13 @@ signature engine provided, FALSE otherwise.</doc>
line="1078">Signature engine used to check superblock</doc>
<type name="Sign" c:type="OstreeSign*"/>
</parameter>
<parameter name="out_success_message" transfer-ownership="none">
<parameter name="out_success_message"
direction="out"
caller-allocates="0"
transfer-ownership="full"
nullable="1"
optional="1"
allow-none="1">
<doc xml:space="preserve"
filename="ostree-repo-static-delta-core.c"
line="1079">success message</doc>

View File

@ -795,11 +795,12 @@ impl Repo {
}
#[cfg(any(feature = "v2020_7", feature = "dox"))]
pub fn static_delta_verify_signature<P: IsA<Sign>>(&self, delta_id: &str, sign: &P, out_success_message: &str) -> Result<(), glib::Error> {
pub fn static_delta_verify_signature<P: IsA<Sign>>(&self, delta_id: &str, sign: &P) -> Result<Option<GString>, glib::Error> {
unsafe {
let mut out_success_message = ptr::null_mut();
let mut error = ptr::null_mut();
let _ = ostree_sys::ostree_repo_static_delta_verify_signature(self.to_glib_none().0, delta_id.to_glib_none().0, sign.as_ref().to_glib_none().0, out_success_message.to_glib_none().0, &mut error);
if error.is_null() { Ok(()) } else { Err(from_glib_full(error)) }
let _ = ostree_sys::ostree_repo_static_delta_verify_signature(self.to_glib_none().0, delta_id.to_glib_none().0, sign.as_ref().to_glib_none().0, &mut out_success_message, &mut error);
if error.is_null() { Ok(from_glib_full(out_success_message)) } else { Err(from_glib_full(error)) }
}
}

View File

@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2d1ffab1)
from gir-files (https://github.com/gtk-rs/gir-files @ ???)
from gir-files (https://github.com/gtk-rs/gir-files @ 28a5895+)

View File

@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2d1ffab1)
from gir-files (https://github.com/gtk-rs/gir-files @ ???)
from gir-files (https://github.com/gtk-rs/gir-files @ 28a5895+)