Update to 2021.5
This commit is contained in:
parent
349933ab16
commit
99ac68cb31
|
|
@ -86,3 +86,4 @@ v2021_1 = ["v2020_8", "ffi/v2021_1"]
|
||||||
v2021_2 = ["v2021_1", "ffi/v2021_2"]
|
v2021_2 = ["v2021_1", "ffi/v2021_2"]
|
||||||
v2021_3 = ["v2021_2", "ffi/v2021_3"]
|
v2021_3 = ["v2021_2", "ffi/v2021_3"]
|
||||||
v2021_4 = ["v2021_3", "ffi/v2021_4"]
|
v2021_4 = ["v2021_3", "ffi/v2021_4"]
|
||||||
|
v2021_5 = ["v2021_4", "ffi/v2021_5"]
|
||||||
|
|
|
||||||
File diff suppressed because it is too large
Load Diff
|
|
@ -36,6 +36,18 @@ impl MutableTree {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[cfg(any(feature = "v2021_5", feature = "dox"))]
|
||||||
|
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2021_5")))]
|
||||||
|
#[doc(alias = "ostree_mutable_tree_new_from_commit")]
|
||||||
|
#[doc(alias = "new_from_commit")]
|
||||||
|
pub fn from_commit(repo: &Repo, rev: &str) -> Result<MutableTree, glib::Error> {
|
||||||
|
unsafe {
|
||||||
|
let mut error = ptr::null_mut();
|
||||||
|
let ret = ffi::ostree_mutable_tree_new_from_commit(repo.to_glib_none().0, rev.to_glib_none().0, &mut error);
|
||||||
|
if error.is_null() { Ok(from_glib_full(ret)) } else { Err(from_glib_full(error)) }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
#[cfg(any(feature = "v2018_7", feature = "dox"))]
|
#[cfg(any(feature = "v2018_7", feature = "dox"))]
|
||||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2018_7")))]
|
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2018_7")))]
|
||||||
#[doc(alias = "ostree_mutable_tree_check_error")]
|
#[doc(alias = "ostree_mutable_tree_check_error")]
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,7 @@
|
||||||
// from gir-files
|
// from gir-files
|
||||||
// DO NOT EDIT
|
// DO NOT EDIT
|
||||||
|
|
||||||
|
use crate::Repo;
|
||||||
use crate::SePolicyRestoreconFlags;
|
use crate::SePolicyRestoreconFlags;
|
||||||
use glib::object::IsA;
|
use glib::object::IsA;
|
||||||
use glib::object::ObjectType as ObjectType_;
|
use glib::object::ObjectType as ObjectType_;
|
||||||
|
|
@ -40,6 +41,16 @@ impl SePolicy {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[doc(alias = "ostree_sepolicy_new_from_commit")]
|
||||||
|
#[doc(alias = "new_from_commit")]
|
||||||
|
pub fn from_commit<P: IsA<gio::Cancellable>>(repo: &Repo, rev: &str, cancellable: Option<&P>) -> Result<SePolicy, glib::Error> {
|
||||||
|
unsafe {
|
||||||
|
let mut error = ptr::null_mut();
|
||||||
|
let ret = ffi::ostree_sepolicy_new_from_commit(repo.to_glib_none().0, rev.to_glib_none().0, cancellable.map(|p| p.as_ref()).to_glib_none().0, &mut error);
|
||||||
|
if error.is_null() { Ok(from_glib_full(ret)) } else { Err(from_glib_full(error)) }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
#[cfg(any(feature = "v2016_5", feature = "dox"))]
|
#[cfg(any(feature = "v2016_5", feature = "dox"))]
|
||||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2016_5")))]
|
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2016_5")))]
|
||||||
#[doc(alias = "ostree_sepolicy_get_csum")]
|
#[doc(alias = "ostree_sepolicy_get_csum")]
|
||||||
|
|
|
||||||
|
|
@ -57,6 +57,7 @@ v2021_1 = ["v2020_8"]
|
||||||
v2021_2 = ["v2021_1"]
|
v2021_2 = ["v2021_1"]
|
||||||
v2021_3 = ["v2021_2"]
|
v2021_3 = ["v2021_2"]
|
||||||
v2021_4 = ["v2021_3"]
|
v2021_4 = ["v2021_3"]
|
||||||
|
v2021_5 = ["v2021_4"]
|
||||||
|
|
||||||
[lib]
|
[lib]
|
||||||
name = "ostree_sys"
|
name = "ostree_sys"
|
||||||
|
|
@ -202,3 +203,6 @@ version = "2021.3"
|
||||||
|
|
||||||
[package.metadata.system-deps.ostree_1.v2021_4]
|
[package.metadata.system-deps.ostree_1.v2021_4]
|
||||||
version = "2021.4"
|
version = "2021.4"
|
||||||
|
|
||||||
|
[package.metadata.system-deps.ostree_1.v2021_5]
|
||||||
|
version = "2021.5"
|
||||||
|
|
|
||||||
|
|
@ -834,16 +834,6 @@ impl ::std::fmt::Debug for OstreeSysrootWriteDeploymentsOpts {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[repr(C)]
|
|
||||||
pub struct _OstreeTlsCertInteraction(c_void);
|
|
||||||
|
|
||||||
pub type OstreeTlsCertInteraction = *mut _OstreeTlsCertInteraction;
|
|
||||||
|
|
||||||
#[repr(C)]
|
|
||||||
pub struct _OstreeTlsCertInteractionClass(c_void);
|
|
||||||
|
|
||||||
pub type OstreeTlsCertInteractionClass = *mut _OstreeTlsCertInteractionClass;
|
|
||||||
|
|
||||||
// Classes
|
// Classes
|
||||||
#[repr(C)]
|
#[repr(C)]
|
||||||
pub struct OstreeAsyncProgress(c_void);
|
pub struct OstreeAsyncProgress(c_void);
|
||||||
|
|
@ -1342,6 +1332,9 @@ extern "C" {
|
||||||
#[cfg(any(feature = "v2018_7", feature = "dox"))]
|
#[cfg(any(feature = "v2018_7", feature = "dox"))]
|
||||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2018_7")))]
|
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2018_7")))]
|
||||||
pub fn ostree_mutable_tree_new_from_checksum(repo: *mut OstreeRepo, contents_checksum: *const c_char, metadata_checksum: *const c_char) -> *mut OstreeMutableTree;
|
pub fn ostree_mutable_tree_new_from_checksum(repo: *mut OstreeRepo, contents_checksum: *const c_char, metadata_checksum: *const c_char) -> *mut OstreeMutableTree;
|
||||||
|
#[cfg(any(feature = "v2021_5", feature = "dox"))]
|
||||||
|
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2021_5")))]
|
||||||
|
pub fn ostree_mutable_tree_new_from_commit(repo: *mut OstreeRepo, rev: *const c_char, error: *mut *mut glib::GError) -> *mut OstreeMutableTree;
|
||||||
#[cfg(any(feature = "v2018_7", feature = "dox"))]
|
#[cfg(any(feature = "v2018_7", feature = "dox"))]
|
||||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2018_7")))]
|
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2018_7")))]
|
||||||
pub fn ostree_mutable_tree_check_error(self_: *mut OstreeMutableTree, error: *mut *mut glib::GError) -> gboolean;
|
pub fn ostree_mutable_tree_check_error(self_: *mut OstreeMutableTree, error: *mut *mut glib::GError) -> gboolean;
|
||||||
|
|
@ -1685,6 +1678,7 @@ extern "C" {
|
||||||
#[cfg(any(feature = "v2017_4", feature = "dox"))]
|
#[cfg(any(feature = "v2017_4", feature = "dox"))]
|
||||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2017_4")))]
|
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2017_4")))]
|
||||||
pub fn ostree_sepolicy_new_at(rootfs_dfd: c_int, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> *mut OstreeSePolicy;
|
pub fn ostree_sepolicy_new_at(rootfs_dfd: c_int, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> *mut OstreeSePolicy;
|
||||||
|
pub fn ostree_sepolicy_new_from_commit(repo: *mut OstreeRepo, rev: *const c_char, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> *mut OstreeSePolicy;
|
||||||
pub fn ostree_sepolicy_fscreatecon_cleanup(unused: *mut *mut c_void);
|
pub fn ostree_sepolicy_fscreatecon_cleanup(unused: *mut *mut c_void);
|
||||||
#[cfg(any(feature = "v2016_5", feature = "dox"))]
|
#[cfg(any(feature = "v2016_5", feature = "dox"))]
|
||||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2016_5")))]
|
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2016_5")))]
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue