Implement StaticType for Structure

This commit is contained in:
Sebastian Dröge 2017-07-10 17:13:49 +03:00
parent 1264f2f5c0
commit 944c71f953

View file

@ -151,6 +151,14 @@ impl ToOwned for StructureRef {
} }
} }
impl glib::types::StaticType for Structure {
fn static_type() -> glib::types::Type {
unsafe {
from_glib(ffi::gst_structure_get_type())
}
}
}
impl<'a> ToGlibPtr<'a, *const ffi::GstStructure> for Structure { impl<'a> ToGlibPtr<'a, *const ffi::GstStructure> for Structure {
type Storage = &'a Self; type Storage = &'a Self;