Disable some irrelevant functions
This commit is contained in:
parent
e49ee07373
commit
3d8d5ce53e
|
|
@ -195,8 +195,13 @@ status = "generate"
|
||||||
name = "OSTree.*"
|
name = "OSTree.*"
|
||||||
status = "generate"
|
status = "generate"
|
||||||
[[object.function]]
|
[[object.function]]
|
||||||
# both too low-level to be generated safely
|
# low-level functions with unsafe APIs
|
||||||
pattern = "cmp_checksum_bytes|checksum_inplace_to_bytes"
|
pattern = "cmp_checksum_bytes|checksum_inplace_to_bytes|hash_object_name"
|
||||||
|
ignore = true
|
||||||
|
|
||||||
|
[[object.function]]
|
||||||
|
# private API
|
||||||
|
pattern = "cmd__private__"
|
||||||
ignore = true
|
ignore = true
|
||||||
|
|
||||||
[[object.constant]]
|
[[object.constant]]
|
||||||
|
|
|
||||||
|
|
@ -98,10 +98,6 @@ pub fn checksum_to_bytes_v(checksum: &str) -> Option<glib::Variant> {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//pub fn cmd__private__() -> /*Ignored*/Option<CmdPrivateVTable> {
|
|
||||||
// unsafe { TODO: call ostree_sys:ostree_cmd__private__() }
|
|
||||||
//}
|
|
||||||
|
|
||||||
#[cfg(any(feature = "v2018_2", feature = "dox"))]
|
#[cfg(any(feature = "v2018_2", feature = "dox"))]
|
||||||
pub fn commit_get_content_checksum(commit_variant: &glib::Variant) -> Option<GString> {
|
pub fn commit_get_content_checksum(commit_variant: &glib::Variant) -> Option<GString> {
|
||||||
unsafe {
|
unsafe {
|
||||||
|
|
@ -192,10 +188,6 @@ pub fn gpg_error_quark() -> glib::Quark {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//pub fn hash_object_name(a: /*Unimplemented*/Option<Fundamental: Pointer>) -> u32 {
|
|
||||||
// unsafe { TODO: call ostree_sys:ostree_hash_object_name() }
|
|
||||||
//}
|
|
||||||
|
|
||||||
pub fn metadata_variant_type(objtype: ObjectType) -> Option<glib::VariantType> {
|
pub fn metadata_variant_type(objtype: ObjectType) -> Option<glib::VariantType> {
|
||||||
unsafe {
|
unsafe {
|
||||||
from_glib_none(ostree_sys::ostree_metadata_variant_type(objtype.to_glib()))
|
from_glib_none(ostree_sys::ostree_metadata_variant_type(objtype.to_glib()))
|
||||||
|
|
|
||||||
|
|
@ -1,2 +1,2 @@
|
||||||
Generated by gir (https://github.com/gtk-rs/gir @ 2d1ffab1)
|
Generated by gir (https://github.com/gtk-rs/gir @ 2d1ffab1)
|
||||||
from gir-files (https://github.com/gtk-rs/gir-files @ 9b77077+)
|
from gir-files (https://github.com/gtk-rs/gir-files @ eec42a9)
|
||||||
|
|
|
||||||
|
|
@ -1,2 +1,2 @@
|
||||||
Generated by gir (https://github.com/gtk-rs/gir @ 2d1ffab1)
|
Generated by gir (https://github.com/gtk-rs/gir @ 2d1ffab1)
|
||||||
from gir-files (https://github.com/gtk-rs/gir-files @ 9b77077+)
|
from gir-files (https://github.com/gtk-rs/gir-files @ eec42a9)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue