mirror of
https://github.com/ostreedev/ostree.git
synced 2025-01-09 01:18:35 +03:00
conf: ignore some more special-cased functions
This commit is contained in:
parent
86897a520c
commit
5ae1a4005c
@ -139,8 +139,8 @@ status = "generate"
|
||||
name = "OSTree.Repo"
|
||||
status = "generate"
|
||||
[[object.function]]
|
||||
# [FAIL] this one generates a guchar** incorrectly
|
||||
name = "write_content_async"
|
||||
# [MANUAL] we special-case the checksum value
|
||||
pattern = "write_content|write_content_async|write_metadata|write_metadata_async"
|
||||
ignore = true
|
||||
|
||||
[[object.function]]
|
||||
|
@ -903,18 +903,6 @@ impl Repo {
|
||||
}
|
||||
}
|
||||
|
||||
//pub fn write_content<P: IsA<gio::InputStream>, Q: IsA<gio::Cancellable>>(&self, expected_checksum: Option<&str>, object_input: &P, length: u64, out_csum: /*Unimplemented*/FixedArray TypeId { ns_id: 0, id: 3 }; 32, cancellable: Option<&Q>) -> Result<(), glib::Error> {
|
||||
// unsafe { TODO: call ostree_sys:ostree_repo_write_content() }
|
||||
//}
|
||||
|
||||
pub fn write_content_trusted<P: IsA<gio::InputStream>, Q: IsA<gio::Cancellable>>(&self, checksum: &str, object_input: &P, length: u64, cancellable: Option<&Q>) -> Result<(), glib::Error> {
|
||||
unsafe {
|
||||
let mut error = ptr::null_mut();
|
||||
let _ = ostree_sys::ostree_repo_write_content_trusted(self.to_glib_none().0, checksum.to_glib_none().0, object_input.as_ref().to_glib_none().0, length, cancellable.map(|p| p.as_ref()).to_glib_none().0, &mut error);
|
||||
if error.is_null() { Ok(()) } else { Err(from_glib_full(error)) }
|
||||
}
|
||||
}
|
||||
|
||||
pub fn write_dfd_to_mtree<P: IsA<MutableTree>, Q: IsA<gio::Cancellable>>(&self, dfd: i32, path: &str, mtree: &P, modifier: Option<&RepoCommitModifier>, cancellable: Option<&Q>) -> Result<(), glib::Error> {
|
||||
unsafe {
|
||||
let mut error = ptr::null_mut();
|
||||
@ -931,51 +919,6 @@ impl Repo {
|
||||
}
|
||||
}
|
||||
|
||||
//pub fn write_metadata<P: IsA<gio::Cancellable>>(&self, objtype: ObjectType, expected_checksum: Option<&str>, object: &glib::Variant, out_csum: /*Unimplemented*/FixedArray TypeId { ns_id: 0, id: 3 }; 32, cancellable: Option<&P>) -> Result<(), glib::Error> {
|
||||
// unsafe { TODO: call ostree_sys:ostree_repo_write_metadata() }
|
||||
//}
|
||||
|
||||
//pub fn write_metadata_async<P: IsA<gio::Cancellable>, Q: FnOnce(Result</*Unimplemented*/FixedArray TypeId { ns_id: 0, id: 3 }; 32, glib::Error>) + Send + 'static>(&self, objtype: ObjectType, expected_checksum: Option<&str>, object: &glib::Variant, cancellable: Option<&P>, callback: Q) {
|
||||
// unsafe { TODO: call ostree_sys:ostree_repo_write_metadata_async() }
|
||||
//}
|
||||
|
||||
//
|
||||
//pub fn write_metadata_async_future(&self, objtype: ObjectType, expected_checksum: Option<&str>, object: &glib::Variant) -> Pin<Box_<dyn std::future::Future<Output = Result</*Unimplemented*/FixedArray TypeId { ns_id: 0, id: 3 }; 32, glib::Error>> + 'static>> {
|
||||
|
||||
//let expected_checksum = expected_checksum.map(ToOwned::to_owned);
|
||||
//let object = object.clone();
|
||||
//Box_::pin(gio::GioFuture::new(self, move |obj, send| {
|
||||
// let cancellable = gio::Cancellable::new();
|
||||
// obj.write_metadata_async(
|
||||
// objtype,
|
||||
// expected_checksum.as_ref().map(::std::borrow::Borrow::borrow),
|
||||
// &object,
|
||||
// Some(&cancellable),
|
||||
// move |res| {
|
||||
// send.resolve(res);
|
||||
// },
|
||||
// );
|
||||
|
||||
// cancellable
|
||||
//}))
|
||||
//}
|
||||
|
||||
pub fn write_metadata_stream_trusted<P: IsA<gio::InputStream>, Q: IsA<gio::Cancellable>>(&self, objtype: ObjectType, checksum: &str, object_input: &P, length: u64, cancellable: Option<&Q>) -> Result<(), glib::Error> {
|
||||
unsafe {
|
||||
let mut error = ptr::null_mut();
|
||||
let _ = ostree_sys::ostree_repo_write_metadata_stream_trusted(self.to_glib_none().0, objtype.to_glib(), checksum.to_glib_none().0, object_input.as_ref().to_glib_none().0, length, cancellable.map(|p| p.as_ref()).to_glib_none().0, &mut error);
|
||||
if error.is_null() { Ok(()) } else { Err(from_glib_full(error)) }
|
||||
}
|
||||
}
|
||||
|
||||
pub fn write_metadata_trusted<P: IsA<gio::Cancellable>>(&self, objtype: ObjectType, checksum: &str, variant: &glib::Variant, cancellable: Option<&P>) -> Result<(), glib::Error> {
|
||||
unsafe {
|
||||
let mut error = ptr::null_mut();
|
||||
let _ = ostree_sys::ostree_repo_write_metadata_trusted(self.to_glib_none().0, objtype.to_glib(), checksum.to_glib_none().0, variant.to_glib_none().0, cancellable.map(|p| p.as_ref()).to_glib_none().0, &mut error);
|
||||
if error.is_null() { Ok(()) } else { Err(from_glib_full(error)) }
|
||||
}
|
||||
}
|
||||
|
||||
pub fn write_mtree<P: IsA<MutableTree>, Q: IsA<gio::Cancellable>>(&self, mtree: &P, cancellable: Option<&Q>) -> Result<gio::File, glib::Error> {
|
||||
unsafe {
|
||||
let mut out_file = ptr::null_mut();
|
||||
|
@ -1,2 +1,2 @@
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ 2d1ffab1)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 7815425)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 26bb987)
|
||||
|
@ -1,2 +1,2 @@
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ 2d1ffab1)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 7815425)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 26bb987)
|
||||
|
Loading…
Reference in New Issue
Block a user