mirror of
https://github.com/ostreedev/ostree.git
synced 2025-03-21 02:50:37 +03:00
Merge pull request #2627 from cgwalters/bindings-drop-committed-gir
This commit is contained in:
commit
231ab7b321
@ -49,17 +49,4 @@ gir-files:
|
||||
curl -o $@ -L https://github.com/gtk-rs/gir-files/raw/master/${@F}
|
||||
|
||||
gir-files/OSTree-1.0.gir:
|
||||
podman build \
|
||||
--pull \
|
||||
--build-arg OSTREE_REPO=$(OSTREE_REPO) \
|
||||
--build-arg OSTREE_VERSION=$(OSTREE_VERSION) \
|
||||
-t ostree-build \
|
||||
.
|
||||
podman create \
|
||||
--name ostree-gir-container \
|
||||
ostree-build
|
||||
podman cp \
|
||||
ostree-gir-container:/build/OSTree-1.0.gir \
|
||||
gir-files/OSTree-1.0.gir
|
||||
podman rm \
|
||||
ostree-gir-container
|
||||
ln -sfr ../OSTree-1.0.gir $@
|
||||
|
1
rust-bindings/gir-files/.gitignore
vendored
Normal file
1
rust-bindings/gir-files/.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
*.gir
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
18
rust-bindings/src/auto/functions.rs
generated
18
rust-bindings/src/auto/functions.rs
generated
@ -168,6 +168,24 @@ pub fn diff_print<P: IsA<gio::File>, Q: IsA<gio::File>>(a: &P, b: &Q, modified:
|
||||
}
|
||||
}
|
||||
|
||||
#[doc(alias = "ostree_fs_get_all_xattrs")]
|
||||
pub fn fs_get_all_xattrs<P: IsA<gio::Cancellable>>(fd: i32, cancellable: Option<&P>) -> Result<glib::Variant, glib::Error> {
|
||||
unsafe {
|
||||
let mut error = ptr::null_mut();
|
||||
let ret = ffi::ostree_fs_get_all_xattrs(fd, 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)) }
|
||||
}
|
||||
}
|
||||
|
||||
#[doc(alias = "ostree_fs_get_all_xattrs_at")]
|
||||
pub fn fs_get_all_xattrs_at<P: IsA<gio::Cancellable>>(dfd: i32, path: &str, cancellable: Option<&P>) -> Result<glib::Variant, glib::Error> {
|
||||
unsafe {
|
||||
let mut error = ptr::null_mut();
|
||||
let ret = ffi::ostree_fs_get_all_xattrs_at(dfd, path.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 = "v2017_10", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2017_10")))]
|
||||
#[doc(alias = "ostree_gpg_error_quark")]
|
||||
|
2
rust-bindings/src/auto/gpg_verify_result.rs
generated
2
rust-bindings/src/auto/gpg_verify_result.rs
generated
@ -42,7 +42,7 @@ impl GpgVerifyResult {
|
||||
}
|
||||
|
||||
//#[doc(alias = "ostree_gpg_verify_result_get")]
|
||||
//pub fn get(&self, signature_index: u32, attrs: /*Unimplemented*/&CArray TypeId { ns_id: 1, id: 31 }) -> Option<glib::Variant> {
|
||||
//pub fn get(&self, signature_index: u32, attrs: /*Unimplemented*/&CArray TypeId { ns_id: 1, id: 28 }) -> Option<glib::Variant> {
|
||||
// unsafe { TODO: call ffi:ostree_gpg_verify_result_get() }
|
||||
//}
|
||||
|
||||
|
4
rust-bindings/src/auto/mutable_tree.rs
generated
4
rust-bindings/src/auto/mutable_tree.rs
generated
@ -112,12 +112,12 @@ impl MutableTree {
|
||||
|
||||
//#[doc(alias = "ostree_mutable_tree_get_subdirs")]
|
||||
//#[doc(alias = "get_subdirs")]
|
||||
//pub fn subdirs(&self) -> /*Unknown conversion*//*Unimplemented*/HashTable TypeId { ns_id: 0, id: 28 }/TypeId { ns_id: 1, id: 44 } {
|
||||
//pub fn subdirs(&self) -> /*Unknown conversion*//*Unimplemented*/HashTable TypeId { ns_id: 0, id: 28 }/TypeId { ns_id: 1, id: 41 } {
|
||||
// unsafe { TODO: call ffi:ostree_mutable_tree_get_subdirs() }
|
||||
//}
|
||||
|
||||
#[doc(alias = "ostree_mutable_tree_lookup")]
|
||||
pub fn lookup(&self, name: &str) -> Result<(glib::GString, MutableTree), glib::Error> {
|
||||
pub fn lookup(&self, name: &str) -> Result<(Option<glib::GString>, Option<MutableTree>), glib::Error> {
|
||||
unsafe {
|
||||
let mut out_file_checksum = ptr::null_mut();
|
||||
let mut out_subdir = ptr::null_mut();
|
||||
|
12
rust-bindings/src/auto/repo.rs
generated
12
rust-bindings/src/auto/repo.rs
generated
@ -429,12 +429,12 @@ impl Repo {
|
||||
//}
|
||||
|
||||
//#[doc(alias = "ostree_repo_list_commit_objects_starting_with")]
|
||||
//pub fn list_commit_objects_starting_with<P: IsA<gio::Cancellable>>(&self, start: &str, out_commits: /*Unknown conversion*//*Unimplemented*/HashTable TypeId { ns_id: 2, id: 194 }/TypeId { ns_id: 2, id: 194 }, cancellable: Option<&P>) -> Result<(), glib::Error> {
|
||||
//pub fn list_commit_objects_starting_with<P: IsA<gio::Cancellable>>(&self, start: &str, out_commits: /*Unknown conversion*//*Unimplemented*/HashTable TypeId { ns_id: 2, id: 202 }/TypeId { ns_id: 2, id: 202 }, cancellable: Option<&P>) -> Result<(), glib::Error> {
|
||||
// unsafe { TODO: call ffi:ostree_repo_list_commit_objects_starting_with() }
|
||||
//}
|
||||
|
||||
//#[doc(alias = "ostree_repo_list_objects")]
|
||||
//pub fn list_objects<P: IsA<gio::Cancellable>>(&self, flags: RepoListObjectsFlags, out_objects: /*Unknown conversion*//*Unimplemented*/HashTable TypeId { ns_id: 2, id: 194 }/TypeId { ns_id: 2, id: 194 }, cancellable: Option<&P>) -> Result<(), glib::Error> {
|
||||
//pub fn list_objects<P: IsA<gio::Cancellable>>(&self, flags: RepoListObjectsFlags, out_objects: /*Unknown conversion*//*Unimplemented*/HashTable TypeId { ns_id: 2, id: 202 }/TypeId { ns_id: 2, id: 202 }, cancellable: Option<&P>) -> Result<(), glib::Error> {
|
||||
// unsafe { TODO: call ffi:ostree_repo_list_objects() }
|
||||
//}
|
||||
|
||||
@ -1039,7 +1039,7 @@ impl Repo {
|
||||
}
|
||||
|
||||
//#[doc(alias = "ostree_repo_traverse_commit")]
|
||||
//pub fn traverse_commit<P: IsA<gio::Cancellable>>(&self, commit_checksum: &str, maxdepth: i32, out_reachable: /*Unknown conversion*//*Unimplemented*/HashTable TypeId { ns_id: 2, id: 194 }/TypeId { ns_id: 2, id: 194 }, cancellable: Option<&P>) -> Result<(), glib::Error> {
|
||||
//pub fn traverse_commit<P: IsA<gio::Cancellable>>(&self, commit_checksum: &str, maxdepth: i32, out_reachable: /*Unknown conversion*//*Unimplemented*/HashTable TypeId { ns_id: 2, id: 202 }/TypeId { ns_id: 2, id: 202 }, cancellable: Option<&P>) -> Result<(), glib::Error> {
|
||||
// unsafe { TODO: call ffi:ostree_repo_traverse_commit() }
|
||||
//}
|
||||
|
||||
@ -1065,7 +1065,7 @@ impl Repo {
|
||||
//#[cfg(any(feature = "v2018_6", feature = "dox"))]
|
||||
//#[cfg_attr(feature = "dox", doc(cfg(feature = "v2018_6")))]
|
||||
//#[doc(alias = "ostree_repo_traverse_reachable_refs")]
|
||||
//pub fn traverse_reachable_refs<P: IsA<gio::Cancellable>>(&self, depth: u32, reachable: /*Unknown conversion*//*Unimplemented*/HashTable TypeId { ns_id: 2, id: 194 }/TypeId { ns_id: 2, id: 194 }, cancellable: Option<&P>) -> Result<(), glib::Error> {
|
||||
//pub fn traverse_reachable_refs<P: IsA<gio::Cancellable>>(&self, depth: u32, reachable: /*Unknown conversion*//*Unimplemented*/HashTable TypeId { ns_id: 2, id: 202 }/TypeId { ns_id: 2, id: 202 }, cancellable: Option<&P>) -> Result<(), glib::Error> {
|
||||
// unsafe { TODO: call ffi:ostree_repo_traverse_reachable_refs() }
|
||||
//}
|
||||
|
||||
@ -1311,12 +1311,12 @@ impl Repo {
|
||||
//#[cfg(any(feature = "v2018_5", feature = "dox"))]
|
||||
//#[cfg_attr(feature = "dox", doc(cfg(feature = "v2018_5")))]
|
||||
//#[doc(alias = "ostree_repo_traverse_new_parents")]
|
||||
//pub fn traverse_new_parents() -> /*Unknown conversion*//*Unimplemented*/HashTable TypeId { ns_id: 2, id: 194 }/TypeId { ns_id: 2, id: 194 } {
|
||||
//pub fn traverse_new_parents() -> /*Unknown conversion*//*Unimplemented*/HashTable TypeId { ns_id: 2, id: 202 }/TypeId { ns_id: 2, id: 202 } {
|
||||
// unsafe { TODO: call ffi:ostree_repo_traverse_new_parents() }
|
||||
//}
|
||||
|
||||
//#[doc(alias = "ostree_repo_traverse_new_reachable")]
|
||||
//pub fn traverse_new_reachable() -> /*Unknown conversion*//*Unimplemented*/HashTable TypeId { ns_id: 2, id: 194 }/TypeId { ns_id: 2, id: 194 } {
|
||||
//pub fn traverse_new_reachable() -> /*Unknown conversion*//*Unimplemented*/HashTable TypeId { ns_id: 2, id: 202 }/TypeId { ns_id: 2, id: 202 } {
|
||||
// unsafe { TODO: call ffi:ostree_repo_traverse_new_reachable() }
|
||||
//}
|
||||
|
||||
|
2
rust-bindings/src/auto/versions.txt
generated
2
rust-bindings/src/auto/versions.txt
generated
@ -1,2 +1,2 @@
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ e8f82cf6)
|
||||
from gir-files
|
||||
from gir-files (@ 21901c2d)
|
||||
|
@ -1,2 +1,2 @@
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ e8f82cf6)
|
||||
from gir-files
|
||||
from gir-files (@ 21901c2d)
|
||||
|
@ -3588,7 +3588,6 @@ extern "C" {
|
||||
pub fn ostree_checksum_inplace_to_bytes(checksum: *const c_char, buf: *mut u8);
|
||||
pub fn ostree_checksum_to_bytes(checksum: *const c_char) -> *mut [c_uchar; 32];
|
||||
pub fn ostree_checksum_to_bytes_v(checksum: *const c_char) -> *mut glib::GVariant;
|
||||
//pub fn ostree_cmd__private__() -> /*Ignored*/*const OstreeCmdPrivateVTable;
|
||||
pub fn ostree_cmp_checksum_bytes(a: *const u8, b: *const u8) -> c_int;
|
||||
#[cfg(any(feature = "v2018_2", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2018_2")))]
|
||||
@ -3678,6 +3677,17 @@ extern "C" {
|
||||
removed: *mut glib::GPtrArray,
|
||||
added: *mut glib::GPtrArray,
|
||||
);
|
||||
pub fn ostree_fs_get_all_xattrs(
|
||||
fd: c_int,
|
||||
cancellable: *mut gio::GCancellable,
|
||||
error: *mut *mut glib::GError,
|
||||
) -> *mut glib::GVariant;
|
||||
pub fn ostree_fs_get_all_xattrs_at(
|
||||
dfd: c_int,
|
||||
path: *const c_char,
|
||||
cancellable: *mut gio::GCancellable,
|
||||
error: *mut *mut glib::GError,
|
||||
) -> *mut glib::GVariant;
|
||||
#[cfg(any(feature = "v2017_10", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2017_10")))]
|
||||
pub fn ostree_gpg_error_quark() -> glib::GQuark;
|
||||
|
Loading…
x
Reference in New Issue
Block a user