mirror of
https://github.com/ostreedev/ostree.git
synced 2025-01-09 01:18:35 +03:00
conf: remove some unfixable TODOs
This commit is contained in:
parent
5b1bc50418
commit
4e7abb3101
@ -48,7 +48,6 @@ generate = [
|
||||
"OSTree.RepoPullFlags",
|
||||
"OSTree.RepoRemoteChange",
|
||||
"OSTree.RepoResolveRevExtFlags",
|
||||
"OSTree.SePolicy",
|
||||
"OSTree.SePolicyRestoreconFlags",
|
||||
"OSTree.StaticDeltaGenerateOpt",
|
||||
"OSTree.Sysroot",
|
||||
@ -185,6 +184,14 @@ status = "generate"
|
||||
init_function_expression = "|_ptr| ()"
|
||||
clear_function_expression = "|_ptr| ()"
|
||||
|
||||
[[object]]
|
||||
name = "OSTree.SePolicy"
|
||||
status = "generate"
|
||||
[[object.function]]
|
||||
# has an unused raw pointer parameter so we wrap it by hand
|
||||
name = "fscreatecon_cleanup"
|
||||
ignore = true
|
||||
|
||||
[[object]]
|
||||
name = "OSTree.Sign"
|
||||
status = "generate"
|
||||
@ -197,7 +204,7 @@ name = "OSTree.*"
|
||||
status = "generate"
|
||||
[[object.function]]
|
||||
# low-level functions with unsafe APIs
|
||||
pattern = "cmp_checksum_bytes|checksum_inplace_to_bytes|hash_object_name"
|
||||
pattern = "cmp_checksum_bytes|checksum_inplace_from_bytes|checksum_inplace_to_bytes|checksum_b64_inplace_from_bytes|checksum_b64_inplace_to_bytes|hash_object_name"
|
||||
ignore = true
|
||||
|
||||
[[object.function]]
|
||||
|
@ -38,14 +38,6 @@ pub fn check_version(required_year: u32, required_release: u32) -> bool {
|
||||
// unsafe { TODO: call ostree_sys:ostree_checksum_b64_from_bytes() }
|
||||
//}
|
||||
|
||||
//pub fn checksum_b64_inplace_from_bytes(csum: /*Unimplemented*/FixedArray TypeId { ns_id: 0, id: 3 }; 32, buf: &str) {
|
||||
// unsafe { TODO: call ostree_sys:ostree_checksum_b64_inplace_from_bytes() }
|
||||
//}
|
||||
|
||||
//pub fn checksum_b64_inplace_to_bytes(checksum: /*Unimplemented*/FixedArray TypeId { ns_id: 0, id: 28 }; 32, buf: u8) {
|
||||
// unsafe { TODO: call ostree_sys:ostree_checksum_b64_inplace_to_bytes() }
|
||||
//}
|
||||
|
||||
//#[cfg(any(feature = "v2016_8", feature = "dox"))]
|
||||
//pub fn checksum_b64_to_bytes(checksum: &str) -> /*Unimplemented*/FixedArray TypeId { ns_id: 0, id: 3 }; 32 {
|
||||
// unsafe { TODO: call ostree_sys:ostree_checksum_b64_to_bytes() }
|
||||
@ -86,10 +78,6 @@ pub fn checksum_from_bytes_v(csum_v: &glib::Variant) -> Option<GString> {
|
||||
}
|
||||
}
|
||||
|
||||
//pub fn checksum_inplace_from_bytes(csum: /*Unimplemented*/FixedArray TypeId { ns_id: 0, id: 3 }; 32, buf: &str) {
|
||||
// unsafe { TODO: call ostree_sys:ostree_checksum_inplace_from_bytes() }
|
||||
//}
|
||||
|
||||
//pub fn checksum_to_bytes(checksum: &str) -> /*Unimplemented*/FixedArray TypeId { ns_id: 0, id: 3 }; 32 {
|
||||
// unsafe { TODO: call ostree_sys:ostree_checksum_to_bytes() }
|
||||
//}
|
||||
|
@ -94,10 +94,6 @@ impl SePolicy {
|
||||
value.get().expect("Return Value for property `rootfs-dfd` getter").unwrap()
|
||||
}
|
||||
}
|
||||
|
||||
//pub fn fscreatecon_cleanup(unused: /*Unimplemented*/Option<Fundamental: Pointer>) {
|
||||
// unsafe { TODO: call ostree_sys:ostree_sepolicy_fscreatecon_cleanup() }
|
||||
//}
|
||||
}
|
||||
|
||||
impl fmt::Display for SePolicy {
|
||||
|
@ -1,2 +1,2 @@
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ 2d1ffab1)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ ff904f0)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 203ae47)
|
||||
|
@ -45,7 +45,6 @@ impl Checksum {
|
||||
/// Unfortunately, the underlying libostree function has no way to report parsing errors. If the
|
||||
/// string is not a valid SHA256 string, the program will abort!
|
||||
pub fn from_hex(checksum: &str) -> Checksum {
|
||||
// TODO: implement by hand to avoid stupid assertions?
|
||||
assert_eq!(checksum.len(), HEX_LEN);
|
||||
unsafe {
|
||||
// We know checksum is at least as long as needed, trailing NUL is unnecessary.
|
||||
@ -60,7 +59,6 @@ impl Checksum {
|
||||
/// Invalid base64 characters will not be reported, but will cause unknown output instead, most
|
||||
/// likely 0.
|
||||
pub fn from_base64(b64_checksum: &str) -> Checksum {
|
||||
// TODO: implement by hand for better error reporting?
|
||||
assert_eq!(b64_checksum.len(), B64_LEN);
|
||||
unsafe {
|
||||
let buf = g_malloc0(BYTES_LEN) as *mut [u8; BYTES_LEN];
|
||||
|
@ -1,2 +1,2 @@
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ 2d1ffab1)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ ff904f0)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 203ae47)
|
||||
|
Loading…
Reference in New Issue
Block a user