// This file was generated by gir (https://github.com/gtk-rs/gir) // from gir-files (https://github.com/gtk-rs/gir-files) // DO NOT EDIT use glib::object::IsA; use glib::translate::*; glib::glib_wrapper! { pub struct DiscovererStreamInfo(Object); match fn { get_type => || ffi::gst_discoverer_stream_info_get_type(), } } unsafe impl Send for DiscovererStreamInfo {} unsafe impl Sync for DiscovererStreamInfo {} pub const NONE_DISCOVERER_STREAM_INFO: Option<&DiscovererStreamInfo> = None; pub trait DiscovererStreamInfoExt: 'static { #[doc(alias = "gst_discoverer_stream_info_get_caps")] fn get_caps(&self) -> Option; #[doc(alias = "gst_discoverer_stream_info_get_misc")] fn get_misc(&self) -> Option; #[doc(alias = "gst_discoverer_stream_info_get_next")] fn get_next(&self) -> Option; #[doc(alias = "gst_discoverer_stream_info_get_previous")] fn get_previous(&self) -> Option; #[doc(alias = "gst_discoverer_stream_info_get_stream_id")] fn get_stream_id(&self) -> Option; #[doc(alias = "gst_discoverer_stream_info_get_stream_type_nick")] fn get_stream_type_nick(&self) -> glib::GString; #[doc(alias = "gst_discoverer_stream_info_get_tags")] fn get_tags(&self) -> Option; #[doc(alias = "gst_discoverer_stream_info_get_toc")] fn get_toc(&self) -> Option; } impl> DiscovererStreamInfoExt for O { fn get_caps(&self) -> Option { unsafe { from_glib_full(ffi::gst_discoverer_stream_info_get_caps( self.as_ref().to_glib_none().0, )) } } fn get_misc(&self) -> Option { unsafe { from_glib_none(ffi::gst_discoverer_stream_info_get_misc( self.as_ref().to_glib_none().0, )) } } fn get_next(&self) -> Option { unsafe { from_glib_full(ffi::gst_discoverer_stream_info_get_next( self.as_ref().to_glib_none().0, )) } } fn get_previous(&self) -> Option { unsafe { from_glib_full(ffi::gst_discoverer_stream_info_get_previous( self.as_ref().to_glib_none().0, )) } } fn get_stream_id(&self) -> Option { unsafe { from_glib_none(ffi::gst_discoverer_stream_info_get_stream_id( self.as_ref().to_glib_none().0, )) } } fn get_stream_type_nick(&self) -> glib::GString { unsafe { from_glib_none(ffi::gst_discoverer_stream_info_get_stream_type_nick( self.as_ref().to_glib_none().0, )) } } fn get_tags(&self) -> Option { unsafe { from_glib_none(ffi::gst_discoverer_stream_info_get_tags( self.as_ref().to_glib_none().0, )) } } fn get_toc(&self) -> Option { unsafe { from_glib_none(ffi::gst_discoverer_stream_info_get_toc( self.as_ref().to_glib_none().0, )) } } }