mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-11-24 18:41:02 +00:00
gir: regenerate
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1584>
This commit is contained in:
parent
d8573d86a8
commit
ce77a67382
1 changed files with 0 additions and 72 deletions
|
@ -120,78 +120,6 @@ pub trait ElementExt: IsA<Element> + 'static {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[doc(alias = "gst_element_foreach_pad")]
|
|
||||||
fn foreach_pad<P: FnMut(&Element, &Pad) -> bool>(&self, func: P) -> bool {
|
|
||||||
let mut func_data: P = func;
|
|
||||||
unsafe extern "C" fn func_func<P: FnMut(&Element, &Pad) -> bool>(
|
|
||||||
element: *mut ffi::GstElement,
|
|
||||||
pad: *mut ffi::GstPad,
|
|
||||||
user_data: glib::ffi::gpointer,
|
|
||||||
) -> glib::ffi::gboolean {
|
|
||||||
let element = from_glib_borrow(element);
|
|
||||||
let pad = from_glib_borrow(pad);
|
|
||||||
let callback = user_data as *mut P;
|
|
||||||
(*callback)(&element, &pad).into_glib()
|
|
||||||
}
|
|
||||||
let func = Some(func_func::<P> as _);
|
|
||||||
let super_callback0: &mut P = &mut func_data;
|
|
||||||
unsafe {
|
|
||||||
from_glib(ffi::gst_element_foreach_pad(
|
|
||||||
self.as_ref().to_glib_none().0,
|
|
||||||
func,
|
|
||||||
super_callback0 as *mut _ as *mut _,
|
|
||||||
))
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#[doc(alias = "gst_element_foreach_sink_pad")]
|
|
||||||
fn foreach_sink_pad<P: FnMut(&Element, &Pad) -> bool>(&self, func: P) -> bool {
|
|
||||||
let mut func_data: P = func;
|
|
||||||
unsafe extern "C" fn func_func<P: FnMut(&Element, &Pad) -> bool>(
|
|
||||||
element: *mut ffi::GstElement,
|
|
||||||
pad: *mut ffi::GstPad,
|
|
||||||
user_data: glib::ffi::gpointer,
|
|
||||||
) -> glib::ffi::gboolean {
|
|
||||||
let element = from_glib_borrow(element);
|
|
||||||
let pad = from_glib_borrow(pad);
|
|
||||||
let callback = user_data as *mut P;
|
|
||||||
(*callback)(&element, &pad).into_glib()
|
|
||||||
}
|
|
||||||
let func = Some(func_func::<P> as _);
|
|
||||||
let super_callback0: &mut P = &mut func_data;
|
|
||||||
unsafe {
|
|
||||||
from_glib(ffi::gst_element_foreach_sink_pad(
|
|
||||||
self.as_ref().to_glib_none().0,
|
|
||||||
func,
|
|
||||||
super_callback0 as *mut _ as *mut _,
|
|
||||||
))
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#[doc(alias = "gst_element_foreach_src_pad")]
|
|
||||||
fn foreach_src_pad<P: FnMut(&Element, &Pad) -> bool>(&self, func: P) -> bool {
|
|
||||||
let mut func_data: P = func;
|
|
||||||
unsafe extern "C" fn func_func<P: FnMut(&Element, &Pad) -> bool>(
|
|
||||||
element: *mut ffi::GstElement,
|
|
||||||
pad: *mut ffi::GstPad,
|
|
||||||
user_data: glib::ffi::gpointer,
|
|
||||||
) -> glib::ffi::gboolean {
|
|
||||||
let element = from_glib_borrow(element);
|
|
||||||
let pad = from_glib_borrow(pad);
|
|
||||||
let callback = user_data as *mut P;
|
|
||||||
(*callback)(&element, &pad).into_glib()
|
|
||||||
}
|
|
||||||
let func = Some(func_func::<P> as _);
|
|
||||||
let super_callback0: &mut P = &mut func_data;
|
|
||||||
unsafe {
|
|
||||||
from_glib(ffi::gst_element_foreach_src_pad(
|
|
||||||
self.as_ref().to_glib_none().0,
|
|
||||||
func,
|
|
||||||
super_callback0 as *mut _ as *mut _,
|
|
||||||
))
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#[doc(alias = "gst_element_get_base_time")]
|
#[doc(alias = "gst_element_get_base_time")]
|
||||||
#[doc(alias = "get_base_time")]
|
#[doc(alias = "get_base_time")]
|
||||||
fn base_time(&self) -> Option<ClockTime> {
|
fn base_time(&self) -> Option<ClockTime> {
|
||||||
|
|
Loading…
Reference in a new issue