From d900c581486734b10ef0fd28a28016fca54571b3 Mon Sep 17 00:00:00 2001 From: Felix Krull Date: Tue, 25 Aug 2020 20:24:04 +0200 Subject: [PATCH] gir: add missing version tag --- rust-bindings/rust/gir-files/OSTree-1.0.gir | 5 ++++- rust-bindings/rust/src/auto/mod.rs | 4 ++++ rust-bindings/rust/src/auto/sign.rs | 6 ++++++ rust-bindings/rust/src/auto/versions.txt | 2 +- rust-bindings/rust/sys/src/auto/versions.txt | 2 +- rust-bindings/rust/sys/src/lib.rs | 1 + 6 files changed, 17 insertions(+), 3 deletions(-) diff --git a/rust-bindings/rust/gir-files/OSTree-1.0.gir b/rust-bindings/rust/gir-files/OSTree-1.0.gir index 00a2e096..87775ddc 100644 --- a/rust-bindings/rust/gir-files/OSTree-1.0.gir +++ b/rust-bindings/rust/gir-files/OSTree-1.0.gir @@ -14872,7 +14872,10 @@ The @secret_key argument depends of the particular engine implementation. - + Add a signature to a summary file. diff --git a/rust-bindings/rust/src/auto/mod.rs b/rust-bindings/rust/src/auto/mod.rs index 64123ae8..468b873b 100644 --- a/rust-bindings/rust/src/auto/mod.rs +++ b/rust-bindings/rust/src/auto/mod.rs @@ -62,8 +62,11 @@ pub use self::repo_finder_override::RepoFinderOverrideExt; mod se_policy; pub use self::se_policy::{SePolicy, SePolicyClass}; +#[cfg(any(feature = "v2020_2", feature = "dox"))] mod sign; +#[cfg(any(feature = "v2020_2", feature = "dox"))] pub use self::sign::{Sign, NONE_SIGN}; +#[cfg(any(feature = "v2020_2", feature = "dox"))] pub use self::sign::SignExt; mod sysroot; @@ -177,5 +180,6 @@ pub mod traits { pub use super::RepoFinderMountExt; #[cfg(any(feature = "v2018_6", feature = "dox"))] pub use super::RepoFinderOverrideExt; + #[cfg(any(feature = "v2020_2", feature = "dox"))] pub use super::SignExt; } diff --git a/rust-bindings/rust/src/auto/sign.rs b/rust-bindings/rust/src/auto/sign.rs index 005a6018..b92b953b 100644 --- a/rust-bindings/rust/src/auto/sign.rs +++ b/rust-bindings/rust/src/auto/sign.rs @@ -2,7 +2,9 @@ // from gir-files (https://github.com/gtk-rs/gir-files) // DO NOT EDIT +#[cfg(any(feature = "v2020_2", feature = "dox"))] use gio; +#[cfg(any(feature = "v2020_2", feature = "dox"))] use glib; use glib::object::IsA; use glib::translate::*; @@ -10,7 +12,9 @@ use glib::translate::*; use glib::GString; use ostree_sys; use std::fmt; +#[cfg(any(feature = "v2020_2", feature = "dox"))] use std::ptr; +#[cfg(any(feature = "v2020_2", feature = "dox"))] use Repo; glib_wrapper! { @@ -78,6 +82,7 @@ pub trait SignExt: 'static { #[cfg(any(feature = "v2020_2", feature = "dox"))] fn set_sk(&self, secret_key: &glib::Variant) -> Result<(), glib::Error>; + #[cfg(any(feature = "v2020_2", feature = "dox"))] fn summary>(&self, repo: &Repo, keys: &glib::Variant, cancellable: Option<&P>) -> Result<(), glib::Error>; } @@ -184,6 +189,7 @@ impl> SignExt for O { } } + #[cfg(any(feature = "v2020_2", feature = "dox"))] fn summary>(&self, repo: &Repo, keys: &glib::Variant, cancellable: Option<&P>) -> Result<(), glib::Error> { unsafe { let mut error = ptr::null_mut(); diff --git a/rust-bindings/rust/src/auto/versions.txt b/rust-bindings/rust/src/auto/versions.txt index b1be1873..b396b526 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 @ 2d1ffab1) -from gir-files (https://github.com/gtk-rs/gir-files @ e0f160c+) +from gir-files (https://github.com/gtk-rs/gir-files @ a7da7c9+) diff --git a/rust-bindings/rust/sys/src/auto/versions.txt b/rust-bindings/rust/sys/src/auto/versions.txt index b1be1873..b396b526 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 @ 2d1ffab1) -from gir-files (https://github.com/gtk-rs/gir-files @ e0f160c+) +from gir-files (https://github.com/gtk-rs/gir-files @ a7da7c9+) diff --git a/rust-bindings/rust/sys/src/lib.rs b/rust-bindings/rust/sys/src/lib.rs index ed4508e3..2498fcef 100644 --- a/rust-bindings/rust/sys/src/lib.rs +++ b/rust-bindings/rust/sys/src/lib.rs @@ -1648,6 +1648,7 @@ extern "C" { pub fn ostree_sign_set_pk(self_: *mut OstreeSign, public_key: *mut glib::GVariant, error: *mut *mut glib::GError) -> gboolean; #[cfg(any(feature = "v2020_2", feature = "dox"))] pub fn ostree_sign_set_sk(self_: *mut OstreeSign, secret_key: *mut glib::GVariant, error: *mut *mut glib::GError) -> gboolean; + #[cfg(any(feature = "v2020_2", feature = "dox"))] pub fn ostree_sign_summary(self_: *mut OstreeSign, repo: *mut OstreeRepo, keys: *mut glib::GVariant, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean; //=========================================================================