PATCH: version on ostree_repo_commit_modifier_set_sepolicy_from_commit

This commit is contained in:
Felix Krull 2020-08-25 19:12:01 +02:00 committed by Colin Walters
parent 2504c97a8d
commit 7c72d297ef
5 changed files with 8 additions and 3 deletions

View File

@ -11222,7 +11222,8 @@ policy wins.</doc>
</method>
<method name="set_sepolicy_from_commit"
c:identifier="ostree_repo_commit_modifier_set_sepolicy_from_commit"
throws="1">
throws="1"
version="2020.4">
<doc xml:space="preserve"
filename="ostree-repo-commit.c"
line="4324">In many cases, one wants to create a "derived" commit from base commit.

View File

@ -4,11 +4,13 @@
use gio;
use glib;
#[cfg(any(feature = "v2020_4", feature = "dox"))]
use glib::object::IsA;
use glib::translate::*;
use glib::GString;
use ostree_sys;
use std::boxed::Box as Box_;
#[cfg(any(feature = "v2020_4", feature = "dox"))]
use std::ptr;
use Repo;
use RepoCommitFilterResult;
@ -67,6 +69,7 @@ impl RepoCommitModifier {
}
}
#[cfg(any(feature = "v2020_4", feature = "dox"))]
pub fn set_sepolicy_from_commit<P: IsA<gio::Cancellable>>(&self, repo: &Repo, rev: &str, cancellable: Option<&P>) -> Result<(), glib::Error> {
unsafe {
let mut error = ptr::null_mut();

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 @ 48a4a23+)
from gir-files (https://github.com/gtk-rs/gir-files @ b1a822b+)

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 @ 48a4a23+)
from gir-files (https://github.com/gtk-rs/gir-files @ b1a822b+)

View File

@ -1102,6 +1102,7 @@ extern "C" {
#[cfg(any(feature = "v2017_13", feature = "dox"))]
pub fn ostree_repo_commit_modifier_set_devino_cache(modifier: *mut OstreeRepoCommitModifier, cache: *mut OstreeRepoDevInoCache);
pub fn ostree_repo_commit_modifier_set_sepolicy(modifier: *mut OstreeRepoCommitModifier, sepolicy: *mut OstreeSePolicy);
#[cfg(any(feature = "v2020_4", feature = "dox"))]
pub fn ostree_repo_commit_modifier_set_sepolicy_from_commit(modifier: *mut OstreeRepoCommitModifier, repo: *mut OstreeRepo, rev: *const c_char, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean;
pub fn ostree_repo_commit_modifier_set_xattr_callback(modifier: *mut OstreeRepoCommitModifier, callback: OstreeRepoCommitModifierXattrCallback, destroy: glib::GDestroyNotify, user_data: gpointer);
pub fn ostree_repo_commit_modifier_unref(modifier: *mut OstreeRepoCommitModifier);