rust-bindings: Update to latest git

This commit is contained in:
Colin Walters committed 2022-06-03 10:13:36 -04:00
1 parent 70c8499a38
commit fa3b6c9872
7 files changed
+40 -12

No files matched your search

+18
View File
@@ -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")]
+1 -1
View File
@@ -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() }
//}
+2 -2
View File
@@ -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();
+6 -6
View File
@@ -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() }
//}
+1 -1
View File
@@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ e8f82cf6)
from gir-files
from gir-files (@ 21901c2d)