Advertisement
wellthatsucks

Untitled

Feb 20th, 2018
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. pub trait RTSPMediaFactoryExtManual {
  2. fn add_role<'a, T: 'static + GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType> + StaticType>(&self, role: &str, v: T);
  3. }
  4.  
  5. impl<O: IsA<RTSPMediaFactory>> RTSPMediaFactoryExtManual for O {
  6. fn add_role<'a, T: 'static + GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType> + StaticType>(&self, role: &str, v: T) {
  7. unsafe {
  8. ffi::gst_rtsp_media_factory_add_role(self.to_glib_none().0, role.to_glib_none().0, T::static_type().to_glib() as *const _, v.to_glib_none().0, ptr::null_mut::<u8>());
  9. }
  10. }
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement