From ce77a67382b8b73b4b7313fae2598ea37084b495 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Laignel?= Date: Wed, 6 Nov 2024 11:13:09 +0100 Subject: [PATCH] gir: regenerate Part-of: --- gstreamer/src/auto/element.rs | 72 ----------------------------------- 1 file changed, 72 deletions(-) diff --git a/gstreamer/src/auto/element.rs b/gstreamer/src/auto/element.rs index 221f4f5f0..4d1bb5773 100644 --- a/gstreamer/src/auto/element.rs +++ b/gstreamer/src/auto/element.rs @@ -120,78 +120,6 @@ pub trait ElementExt: IsA + 'static { } } - #[doc(alias = "gst_element_foreach_pad")] - fn foreach_pad bool>(&self, func: P) -> bool { - let mut func_data: P = func; - unsafe extern "C" fn func_func 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::

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 bool>(&self, func: P) -> bool { - let mut func_data: P = func; - unsafe extern "C" fn func_func 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::

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 bool>(&self, func: P) -> bool { - let mut func_data: P = func; - unsafe extern "C" fn func_func 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::

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 = "get_base_time")] fn base_time(&self) -> Option {