1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
use crate::auto::Navigation;
use glib::object::IsA;
use glib::translate::ToGlibPtr;

pub trait NavigationExtManual: 'static {
    #[doc(alias = "gst_navigation_send_event")]
    fn send_event(&self, structure: gst::Structure);
}

impl<O: IsA<Navigation>> NavigationExtManual for O {
    fn send_event(&self, structure: gst::Structure) {
        unsafe {
            ffi::gst_navigation_send_event(self.as_ref().to_glib_none().0, structure.into_ptr());
        }
    }
}