From 8f71a81cb555cf7f39c150f0ef6452de53473a72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Wed, 3 Oct 2018 13:57:07 +0300 Subject: [PATCH] Regenerate with latest gir to get rid of unneeded notify signal connectors for construct-only properties --- gstreamer-app/src/auto/versions.txt | 2 +- gstreamer-audio/src/auto/versions.txt | 2 +- gstreamer-base/src/auto/versions.txt | 2 +- gstreamer-net/src/auto/net_client_clock.rs | 13 ---- gstreamer-net/src/auto/net_time_provider.rs | 39 ----------- gstreamer-net/src/auto/ptp_clock.rs | 13 ---- gstreamer-net/src/auto/versions.txt | 2 +- gstreamer-pbutils/src/auto/versions.txt | 2 +- gstreamer-player/src/auto/player.rs | 26 ------- .../player_gmain_context_signal_dispatcher.rs | 17 ----- gstreamer-player/src/auto/versions.txt | 2 +- gstreamer-rtsp-server/src/auto/rtsp_media.rs | 16 ----- .../src/auto/rtsp_session.rs | 16 ----- gstreamer-rtsp-server/src/auto/versions.txt | 2 +- gstreamer-rtsp/src/auto/versions.txt | 2 +- gstreamer-sdp/src/auto/versions.txt | 2 +- gstreamer-video/src/auto/versions.txt | 2 +- gstreamer-webrtc/src/auto/versions.txt | 2 +- .../src/auto/web_rtcdtls_transport.rs | 26 ------- .../src/auto/web_rtcice_transport.rs | 13 ---- .../src/auto/web_rtcrtp_transceiver.rs | 43 ------------ gstreamer/src/auto/bus.rs | 13 ---- gstreamer/src/auto/device.rs | 64 ------------------ gstreamer/src/auto/pad.rs | 16 ----- gstreamer/src/auto/pad_template.rs | 67 ------------------- gstreamer/src/auto/stream.rs | 13 ---- gstreamer/src/auto/versions.txt | 2 +- 27 files changed, 12 insertions(+), 407 deletions(-) diff --git a/gstreamer-app/src/auto/versions.txt b/gstreamer-app/src/auto/versions.txt index 59fe339ba..253bea937 100644 --- a/gstreamer-app/src/auto/versions.txt +++ b/gstreamer-app/src/auto/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 04c26a8) +Generated by gir (https://github.com/gtk-rs/gir @ c385982) from gir-files (https://github.com/gtk-rs/gir-files @ ???) diff --git a/gstreamer-audio/src/auto/versions.txt b/gstreamer-audio/src/auto/versions.txt index 59fe339ba..253bea937 100644 --- a/gstreamer-audio/src/auto/versions.txt +++ b/gstreamer-audio/src/auto/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 04c26a8) +Generated by gir (https://github.com/gtk-rs/gir @ c385982) from gir-files (https://github.com/gtk-rs/gir-files @ ???) diff --git a/gstreamer-base/src/auto/versions.txt b/gstreamer-base/src/auto/versions.txt index 59fe339ba..253bea937 100644 --- a/gstreamer-base/src/auto/versions.txt +++ b/gstreamer-base/src/auto/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 04c26a8) +Generated by gir (https://github.com/gtk-rs/gir @ c385982) from gir-files (https://github.com/gtk-rs/gir-files @ ???) diff --git a/gstreamer-net/src/auto/net_client_clock.rs b/gstreamer-net/src/auto/net_client_clock.rs index 0dc6b6226..9fa94beaa 100644 --- a/gstreamer-net/src/auto/net_client_clock.rs +++ b/gstreamer-net/src/auto/net_client_clock.rs @@ -137,14 +137,6 @@ impl NetClientClock { } } - pub fn connect_property_base_time_notify(&self, f: F) -> SignalHandlerId { - unsafe { - let f: Box_> = Box_::new(Box_::new(f)); - connect(self.to_glib_none().0, "notify::base-time", - transmute(notify_base_time_trampoline as usize), Box_::into_raw(f) as *mut _) - } - } - pub fn connect_property_bus_notify(&self, f: F) -> SignalHandlerId { unsafe { let f: Box_> = Box_::new(Box_::new(f)); @@ -202,11 +194,6 @@ unsafe extern "C" fn notify_address_trampoline(this: *mut ffi::GstNetClientClock f(&from_glib_borrow(this)) } -unsafe extern "C" fn notify_base_time_trampoline(this: *mut ffi::GstNetClientClock, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) { - let f: &&(Fn(&NetClientClock) + Send + Sync + 'static) = transmute(f); - f(&from_glib_borrow(this)) -} - unsafe extern "C" fn notify_bus_trampoline(this: *mut ffi::GstNetClientClock, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) { let f: &&(Fn(&NetClientClock) + Send + Sync + 'static) = transmute(f); f(&from_glib_borrow(this)) diff --git a/gstreamer-net/src/auto/net_time_provider.rs b/gstreamer-net/src/auto/net_time_provider.rs index 74961662b..f53630397 100644 --- a/gstreamer-net/src/auto/net_time_provider.rs +++ b/gstreamer-net/src/auto/net_time_provider.rs @@ -88,30 +88,6 @@ impl NetTimeProvider { } } - pub fn connect_property_address_notify(&self, f: F) -> SignalHandlerId { - unsafe { - let f: Box_> = Box_::new(Box_::new(f)); - connect(self.to_glib_none().0, "notify::address", - transmute(notify_address_trampoline as usize), Box_::into_raw(f) as *mut _) - } - } - - pub fn connect_property_clock_notify(&self, f: F) -> SignalHandlerId { - unsafe { - let f: Box_> = Box_::new(Box_::new(f)); - connect(self.to_glib_none().0, "notify::clock", - transmute(notify_clock_trampoline as usize), Box_::into_raw(f) as *mut _) - } - } - - pub fn connect_property_port_notify(&self, f: F) -> SignalHandlerId { - unsafe { - let f: Box_> = Box_::new(Box_::new(f)); - connect(self.to_glib_none().0, "notify::port", - transmute(notify_port_trampoline as usize), Box_::into_raw(f) as *mut _) - } - } - pub fn connect_property_qos_dscp_notify(&self, f: F) -> SignalHandlerId { unsafe { let f: Box_> = Box_::new(Box_::new(f)); @@ -129,21 +105,6 @@ unsafe extern "C" fn notify_active_trampoline(this: *mut ffi::GstNetTimeProvider f(&from_glib_borrow(this)) } -unsafe extern "C" fn notify_address_trampoline(this: *mut ffi::GstNetTimeProvider, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) { - let f: &&(Fn(&NetTimeProvider) + Send + Sync + 'static) = transmute(f); - f(&from_glib_borrow(this)) -} - -unsafe extern "C" fn notify_clock_trampoline(this: *mut ffi::GstNetTimeProvider, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) { - let f: &&(Fn(&NetTimeProvider) + Send + Sync + 'static) = transmute(f); - f(&from_glib_borrow(this)) -} - -unsafe extern "C" fn notify_port_trampoline(this: *mut ffi::GstNetTimeProvider, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) { - let f: &&(Fn(&NetTimeProvider) + Send + Sync + 'static) = transmute(f); - f(&from_glib_borrow(this)) -} - unsafe extern "C" fn notify_qos_dscp_trampoline(this: *mut ffi::GstNetTimeProvider, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) { let f: &&(Fn(&NetTimeProvider) + Send + Sync + 'static) = transmute(f); f(&from_glib_borrow(this)) diff --git a/gstreamer-net/src/auto/ptp_clock.rs b/gstreamer-net/src/auto/ptp_clock.rs index ef2758355..2f94a4334 100644 --- a/gstreamer-net/src/auto/ptp_clock.rs +++ b/gstreamer-net/src/auto/ptp_clock.rs @@ -61,14 +61,6 @@ impl PtpClock { } } - pub fn connect_property_domain_notify(&self, f: F) -> SignalHandlerId { - unsafe { - let f: Box_> = Box_::new(Box_::new(f)); - connect(self.to_glib_none().0, "notify::domain", - transmute(notify_domain_trampoline as usize), Box_::into_raw(f) as *mut _) - } - } - pub fn connect_property_grandmaster_clock_id_notify(&self, f: F) -> SignalHandlerId { unsafe { let f: Box_> = Box_::new(Box_::new(f)); @@ -97,11 +89,6 @@ impl PtpClock { unsafe impl Send for PtpClock {} unsafe impl Sync for PtpClock {} -unsafe extern "C" fn notify_domain_trampoline(this: *mut ffi::GstPtpClock, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) { - let f: &&(Fn(&PtpClock) + Send + Sync + 'static) = transmute(f); - f(&from_glib_borrow(this)) -} - unsafe extern "C" fn notify_grandmaster_clock_id_trampoline(this: *mut ffi::GstPtpClock, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) { let f: &&(Fn(&PtpClock) + Send + Sync + 'static) = transmute(f); f(&from_glib_borrow(this)) diff --git a/gstreamer-net/src/auto/versions.txt b/gstreamer-net/src/auto/versions.txt index 59fe339ba..253bea937 100644 --- a/gstreamer-net/src/auto/versions.txt +++ b/gstreamer-net/src/auto/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 04c26a8) +Generated by gir (https://github.com/gtk-rs/gir @ c385982) from gir-files (https://github.com/gtk-rs/gir-files @ ???) diff --git a/gstreamer-pbutils/src/auto/versions.txt b/gstreamer-pbutils/src/auto/versions.txt index 59fe339ba..253bea937 100644 --- a/gstreamer-pbutils/src/auto/versions.txt +++ b/gstreamer-pbutils/src/auto/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 04c26a8) +Generated by gir (https://github.com/gtk-rs/gir @ c385982) from gir-files (https://github.com/gtk-rs/gir-files @ ???) diff --git a/gstreamer-player/src/auto/player.rs b/gstreamer-player/src/auto/player.rs index 58bd38342..d034ee3f8 100644 --- a/gstreamer-player/src/auto/player.rs +++ b/gstreamer-player/src/auto/player.rs @@ -514,14 +514,6 @@ impl Player { } } - pub fn connect_property_signal_dispatcher_notify(&self, f: F) -> SignalHandlerId { - unsafe { - let f: Box_> = Box_::new(Box_::new(f)); - connect(self.to_glib_none().0, "notify::signal-dispatcher", - transmute(notify_signal_dispatcher_trampoline as usize), Box_::into_raw(f) as *mut _) - } - } - pub fn connect_property_suburi_notify(&self, f: F) -> SignalHandlerId { unsafe { let f: Box_> = Box_::new(Box_::new(f)); @@ -554,14 +546,6 @@ impl Player { } } - pub fn connect_property_video_renderer_notify(&self, f: F) -> SignalHandlerId { - unsafe { - let f: Box_> = Box_::new(Box_::new(f)); - connect(self.to_glib_none().0, "notify::video-renderer", - transmute(notify_video_renderer_trampoline as usize), Box_::into_raw(f) as *mut _) - } - } - pub fn connect_property_volume_notify(&self, f: F) -> SignalHandlerId { unsafe { let f: Box_> = Box_::new(Box_::new(f)); @@ -674,11 +658,6 @@ unsafe extern "C" fn notify_rate_trampoline(this: *mut ffi::GstPlayer, _param_sp f(&from_glib_borrow(this)) } -unsafe extern "C" fn notify_signal_dispatcher_trampoline(this: *mut ffi::GstPlayer, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) { - let f: &&(Fn(&Player) + Send + Sync + 'static) = transmute(f); - f(&from_glib_borrow(this)) -} - unsafe extern "C" fn notify_suburi_trampoline(this: *mut ffi::GstPlayer, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) { let f: &&(Fn(&Player) + Send + Sync + 'static) = transmute(f); f(&from_glib_borrow(this)) @@ -699,11 +678,6 @@ unsafe extern "C" fn notify_video_multiview_mode_trampoline(this: *mut ffi::GstP f(&from_glib_borrow(this)) } -unsafe extern "C" fn notify_video_renderer_trampoline(this: *mut ffi::GstPlayer, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) { - let f: &&(Fn(&Player) + Send + Sync + 'static) = transmute(f); - f(&from_glib_borrow(this)) -} - unsafe extern "C" fn notify_volume_trampoline(this: *mut ffi::GstPlayer, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) { let f: &&(Fn(&Player) + Send + Sync + 'static) = transmute(f); f(&from_glib_borrow(this)) diff --git a/gstreamer-player/src/auto/player_gmain_context_signal_dispatcher.rs b/gstreamer-player/src/auto/player_gmain_context_signal_dispatcher.rs index 68bc3b2f3..d7ff572c7 100644 --- a/gstreamer-player/src/auto/player_gmain_context_signal_dispatcher.rs +++ b/gstreamer-player/src/auto/player_gmain_context_signal_dispatcher.rs @@ -7,14 +7,10 @@ use ffi; use glib; use glib::StaticType; use glib::Value; -use glib::signal::SignalHandlerId; -use glib::signal::connect; use glib::translate::*; use glib_ffi; use gobject_ffi; -use std::boxed::Box as Box_; use std::mem; -use std::mem::transmute; use std::ptr; glib_wrapper! { @@ -33,20 +29,7 @@ impl PlayerGMainContextSignalDispatcher { value.get() } } - - pub fn connect_property_application_context_notify(&self, f: F) -> SignalHandlerId { - unsafe { - let f: Box_> = Box_::new(Box_::new(f)); - connect(self.to_glib_none().0, "notify::application-context", - transmute(notify_application_context_trampoline as usize), Box_::into_raw(f) as *mut _) - } - } } unsafe impl Send for PlayerGMainContextSignalDispatcher {} unsafe impl Sync for PlayerGMainContextSignalDispatcher {} - -unsafe extern "C" fn notify_application_context_trampoline(this: *mut ffi::GstPlayerGMainContextSignalDispatcher, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) { - let f: &&(Fn(&PlayerGMainContextSignalDispatcher) + Send + Sync + 'static) = transmute(f); - f(&from_glib_borrow(this)) -} diff --git a/gstreamer-player/src/auto/versions.txt b/gstreamer-player/src/auto/versions.txt index 59fe339ba..253bea937 100644 --- a/gstreamer-player/src/auto/versions.txt +++ b/gstreamer-player/src/auto/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 04c26a8) +Generated by gir (https://github.com/gtk-rs/gir @ c385982) from gir-files (https://github.com/gtk-rs/gir-files @ ???) diff --git a/gstreamer-rtsp-server/src/auto/rtsp_media.rs b/gstreamer-rtsp-server/src/auto/rtsp_media.rs index ab6ab2588..493bcccbc 100644 --- a/gstreamer-rtsp-server/src/auto/rtsp_media.rs +++ b/gstreamer-rtsp-server/src/auto/rtsp_media.rs @@ -188,8 +188,6 @@ pub trait RTSPMediaExt { fn connect_property_clock_notify(&self, f: F) -> SignalHandlerId; - fn connect_property_element_notify(&self, f: F) -> SignalHandlerId; - fn connect_property_eos_shutdown_notify(&self, f: F) -> SignalHandlerId; fn connect_property_latency_notify(&self, f: F) -> SignalHandlerId; @@ -640,14 +638,6 @@ impl + IsA> RTSPMediaExt for O { } } - fn connect_property_element_notify(&self, f: F) -> SignalHandlerId { - unsafe { - let f: Box_> = Box_::new(Box_::new(f)); - connect(self.to_glib_none().0, "notify::element", - transmute(notify_element_trampoline:: as usize), Box_::into_raw(f) as *mut _) - } - } - fn connect_property_eos_shutdown_notify(&self, f: F) -> SignalHandlerId { unsafe { let f: Box_> = Box_::new(Box_::new(f)); @@ -777,12 +767,6 @@ where P: IsA { f(&RTSPMedia::from_glib_borrow(this).downcast_unchecked()) } -unsafe extern "C" fn notify_element_trampoline

(this: *mut ffi::GstRTSPMedia, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) -where P: IsA { - let f: &&(Fn(&P) + Send + Sync + 'static) = transmute(f); - f(&RTSPMedia::from_glib_borrow(this).downcast_unchecked()) -} - unsafe extern "C" fn notify_eos_shutdown_trampoline

(this: *mut ffi::GstRTSPMedia, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { let f: &&(Fn(&P) + Send + Sync + 'static) = transmute(f); diff --git a/gstreamer-rtsp-server/src/auto/rtsp_session.rs b/gstreamer-rtsp-server/src/auto/rtsp_session.rs index 028e25b15..f438e57af 100644 --- a/gstreamer-rtsp-server/src/auto/rtsp_session.rs +++ b/gstreamer-rtsp-server/src/auto/rtsp_session.rs @@ -75,8 +75,6 @@ pub trait RTSPSessionExt { fn set_property_timeout_always_visible(&self, timeout_always_visible: bool); - fn connect_property_sessionid_notify(&self, f: F) -> SignalHandlerId; - fn connect_property_timeout_notify(&self, f: F) -> SignalHandlerId; fn connect_property_timeout_always_visible_notify(&self, f: F) -> SignalHandlerId; @@ -183,14 +181,6 @@ impl + IsA> RTSPSessionExt for O { } } - fn connect_property_sessionid_notify(&self, f: F) -> SignalHandlerId { - unsafe { - let f: Box_> = Box_::new(Box_::new(f)); - connect(self.to_glib_none().0, "notify::sessionid", - transmute(notify_sessionid_trampoline:: as usize), Box_::into_raw(f) as *mut _) - } - } - fn connect_property_timeout_notify(&self, f: F) -> SignalHandlerId { unsafe { let f: Box_> = Box_::new(Box_::new(f)); @@ -208,12 +198,6 @@ impl + IsA> RTSPSessionExt for O { } } -unsafe extern "C" fn notify_sessionid_trampoline

(this: *mut ffi::GstRTSPSession, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) -where P: IsA { - let f: &&(Fn(&P) + Send + Sync + 'static) = transmute(f); - f(&RTSPSession::from_glib_borrow(this).downcast_unchecked()) -} - unsafe extern "C" fn notify_timeout_trampoline

(this: *mut ffi::GstRTSPSession, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { let f: &&(Fn(&P) + Send + Sync + 'static) = transmute(f); diff --git a/gstreamer-rtsp-server/src/auto/versions.txt b/gstreamer-rtsp-server/src/auto/versions.txt index 59fe339ba..253bea937 100644 --- a/gstreamer-rtsp-server/src/auto/versions.txt +++ b/gstreamer-rtsp-server/src/auto/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 04c26a8) +Generated by gir (https://github.com/gtk-rs/gir @ c385982) from gir-files (https://github.com/gtk-rs/gir-files @ ???) diff --git a/gstreamer-rtsp/src/auto/versions.txt b/gstreamer-rtsp/src/auto/versions.txt index 59fe339ba..253bea937 100644 --- a/gstreamer-rtsp/src/auto/versions.txt +++ b/gstreamer-rtsp/src/auto/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 04c26a8) +Generated by gir (https://github.com/gtk-rs/gir @ c385982) from gir-files (https://github.com/gtk-rs/gir-files @ ???) diff --git a/gstreamer-sdp/src/auto/versions.txt b/gstreamer-sdp/src/auto/versions.txt index 59fe339ba..253bea937 100644 --- a/gstreamer-sdp/src/auto/versions.txt +++ b/gstreamer-sdp/src/auto/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 04c26a8) +Generated by gir (https://github.com/gtk-rs/gir @ c385982) from gir-files (https://github.com/gtk-rs/gir-files @ ???) diff --git a/gstreamer-video/src/auto/versions.txt b/gstreamer-video/src/auto/versions.txt index 59fe339ba..253bea937 100644 --- a/gstreamer-video/src/auto/versions.txt +++ b/gstreamer-video/src/auto/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 04c26a8) +Generated by gir (https://github.com/gtk-rs/gir @ c385982) from gir-files (https://github.com/gtk-rs/gir-files @ ???) diff --git a/gstreamer-webrtc/src/auto/versions.txt b/gstreamer-webrtc/src/auto/versions.txt index 59fe339ba..253bea937 100644 --- a/gstreamer-webrtc/src/auto/versions.txt +++ b/gstreamer-webrtc/src/auto/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 04c26a8) +Generated by gir (https://github.com/gtk-rs/gir @ c385982) from gir-files (https://github.com/gtk-rs/gir-files @ ???) diff --git a/gstreamer-webrtc/src/auto/web_rtcdtls_transport.rs b/gstreamer-webrtc/src/auto/web_rtcdtls_transport.rs index 5102e5493..c6bba477a 100644 --- a/gstreamer-webrtc/src/auto/web_rtcdtls_transport.rs +++ b/gstreamer-webrtc/src/auto/web_rtcdtls_transport.rs @@ -131,22 +131,6 @@ impl WebRTCDTLSTransport { } } - pub fn connect_property_rtcp_notify(&self, f: F) -> SignalHandlerId { - unsafe { - let f: Box_> = Box_::new(Box_::new(f)); - connect(self.to_glib_none().0, "notify::rtcp", - transmute(notify_rtcp_trampoline as usize), Box_::into_raw(f) as *mut _) - } - } - - pub fn connect_property_session_id_notify(&self, f: F) -> SignalHandlerId { - unsafe { - let f: Box_> = Box_::new(Box_::new(f)); - connect(self.to_glib_none().0, "notify::session-id", - transmute(notify_session_id_trampoline as usize), Box_::into_raw(f) as *mut _) - } - } - pub fn connect_property_state_notify(&self, f: F) -> SignalHandlerId { unsafe { let f: Box_> = Box_::new(Box_::new(f)); @@ -182,16 +166,6 @@ unsafe extern "C" fn notify_remote_certificate_trampoline(this: *mut ffi::GstWeb f(&from_glib_borrow(this)) } -unsafe extern "C" fn notify_rtcp_trampoline(this: *mut ffi::GstWebRTCDTLSTransport, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) { - let f: &&(Fn(&WebRTCDTLSTransport) + Send + Sync + 'static) = transmute(f); - f(&from_glib_borrow(this)) -} - -unsafe extern "C" fn notify_session_id_trampoline(this: *mut ffi::GstWebRTCDTLSTransport, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) { - let f: &&(Fn(&WebRTCDTLSTransport) + Send + Sync + 'static) = transmute(f); - f(&from_glib_borrow(this)) -} - unsafe extern "C" fn notify_state_trampoline(this: *mut ffi::GstWebRTCDTLSTransport, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) { let f: &&(Fn(&WebRTCDTLSTransport) + Send + Sync + 'static) = transmute(f); f(&from_glib_borrow(this)) diff --git a/gstreamer-webrtc/src/auto/web_rtcice_transport.rs b/gstreamer-webrtc/src/auto/web_rtcice_transport.rs index 97bde0883..7b8ae7a02 100644 --- a/gstreamer-webrtc/src/auto/web_rtcice_transport.rs +++ b/gstreamer-webrtc/src/auto/web_rtcice_transport.rs @@ -92,14 +92,6 @@ impl WebRTCICETransport { } } - pub fn connect_property_component_notify(&self, f: F) -> SignalHandlerId { - unsafe { - let f: Box_> = Box_::new(Box_::new(f)); - connect(self.to_glib_none().0, "notify::component", - transmute(notify_component_trampoline as usize), Box_::into_raw(f) as *mut _) - } - } - pub fn connect_property_gathering_state_notify(&self, f: F) -> SignalHandlerId { unsafe { let f: Box_> = Box_::new(Box_::new(f)); @@ -130,11 +122,6 @@ unsafe extern "C" fn on_selected_candidate_pair_change_trampoline(this: *mut ffi f(&from_glib_borrow(this)) } -unsafe extern "C" fn notify_component_trampoline(this: *mut ffi::GstWebRTCICETransport, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) { - let f: &&(Fn(&WebRTCICETransport) + Send + Sync + 'static) = transmute(f); - f(&from_glib_borrow(this)) -} - unsafe extern "C" fn notify_gathering_state_trampoline(this: *mut ffi::GstWebRTCICETransport, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) { let f: &&(Fn(&WebRTCICETransport) + Send + Sync + 'static) = transmute(f); f(&from_glib_borrow(this)) diff --git a/gstreamer-webrtc/src/auto/web_rtcrtp_transceiver.rs b/gstreamer-webrtc/src/auto/web_rtcrtp_transceiver.rs index 6ce7cb426..6039d760f 100644 --- a/gstreamer-webrtc/src/auto/web_rtcrtp_transceiver.rs +++ b/gstreamer-webrtc/src/auto/web_rtcrtp_transceiver.rs @@ -7,14 +7,10 @@ use WebRTCRTPSender; use ffi; use glib::StaticType; use glib::Value; -use glib::signal::SignalHandlerId; -use glib::signal::connect; use glib::translate::*; use glib_ffi; use gobject_ffi; -use std::boxed::Box as Box_; use std::mem; -use std::mem::transmute; use std::ptr; glib_wrapper! { @@ -49,46 +45,7 @@ impl WebRTCRTPTransceiver { value.get() } } - - pub fn connect_property_mlineindex_notify(&self, f: F) -> SignalHandlerId { - unsafe { - let f: Box_> = Box_::new(Box_::new(f)); - connect(self.to_glib_none().0, "notify::mlineindex", - transmute(notify_mlineindex_trampoline as usize), Box_::into_raw(f) as *mut _) - } - } - - pub fn connect_property_receiver_notify(&self, f: F) -> SignalHandlerId { - unsafe { - let f: Box_> = Box_::new(Box_::new(f)); - connect(self.to_glib_none().0, "notify::receiver", - transmute(notify_receiver_trampoline as usize), Box_::into_raw(f) as *mut _) - } - } - - pub fn connect_property_sender_notify(&self, f: F) -> SignalHandlerId { - unsafe { - let f: Box_> = Box_::new(Box_::new(f)); - connect(self.to_glib_none().0, "notify::sender", - transmute(notify_sender_trampoline as usize), Box_::into_raw(f) as *mut _) - } - } } unsafe impl Send for WebRTCRTPTransceiver {} unsafe impl Sync for WebRTCRTPTransceiver {} - -unsafe extern "C" fn notify_mlineindex_trampoline(this: *mut ffi::GstWebRTCRTPTransceiver, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) { - let f: &&(Fn(&WebRTCRTPTransceiver) + Send + Sync + 'static) = transmute(f); - f(&from_glib_borrow(this)) -} - -unsafe extern "C" fn notify_receiver_trampoline(this: *mut ffi::GstWebRTCRTPTransceiver, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) { - let f: &&(Fn(&WebRTCRTPTransceiver) + Send + Sync + 'static) = transmute(f); - f(&from_glib_borrow(this)) -} - -unsafe extern "C" fn notify_sender_trampoline(this: *mut ffi::GstWebRTCRTPTransceiver, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) { - let f: &&(Fn(&WebRTCRTPTransceiver) + Send + Sync + 'static) = transmute(f); - f(&from_glib_borrow(this)) -} diff --git a/gstreamer/src/auto/bus.rs b/gstreamer/src/auto/bus.rs index c8f976e7a..fa00f3fc6 100644 --- a/gstreamer/src/auto/bus.rs +++ b/gstreamer/src/auto/bus.rs @@ -139,14 +139,6 @@ impl Bus { transmute(sync_message_trampoline as usize), Box_::into_raw(f) as *mut _) } } - - pub fn connect_property_enable_async_notify(&self, f: F) -> SignalHandlerId { - unsafe { - let f: Box_> = Box_::new(Box_::new(f)); - connect(self.to_glib_none().0, "notify::enable-async", - transmute(notify_enable_async_trampoline as usize), Box_::into_raw(f) as *mut _) - } - } } impl Default for Bus { @@ -167,8 +159,3 @@ unsafe extern "C" fn sync_message_trampoline(this: *mut ffi::GstBus, message: *m let f: &&(Fn(&Bus, &Message) + Send + Sync + 'static) = transmute(f); f(&from_glib_borrow(this), &from_glib_borrow(message)) } - -unsafe extern "C" fn notify_enable_async_trampoline(this: *mut ffi::GstBus, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) { - let f: &&(Fn(&Bus) + Send + Sync + 'static) = transmute(f); - f(&from_glib_borrow(this)) -} diff --git a/gstreamer/src/auto/device.rs b/gstreamer/src/auto/device.rs index 7604317d9..e1ed84671 100644 --- a/gstreamer/src/auto/device.rs +++ b/gstreamer/src/auto/device.rs @@ -49,14 +49,6 @@ pub trait DeviceExt { fn reconfigure_element>(&self, element: &P) -> bool; fn connect_removed(&self, f: F) -> SignalHandlerId; - - fn connect_property_caps_notify(&self, f: F) -> SignalHandlerId; - - fn connect_property_device_class_notify(&self, f: F) -> SignalHandlerId; - - fn connect_property_display_name_notify(&self, f: F) -> SignalHandlerId; - - fn connect_property_properties_notify(&self, f: F) -> SignalHandlerId; } impl + IsA> DeviceExt for O { @@ -117,38 +109,6 @@ impl + IsA> DeviceExt for O { transmute(removed_trampoline:: as usize), Box_::into_raw(f) as *mut _) } } - - fn connect_property_caps_notify(&self, f: F) -> SignalHandlerId { - unsafe { - let f: Box_> = Box_::new(Box_::new(f)); - connect(self.to_glib_none().0, "notify::caps", - transmute(notify_caps_trampoline:: as usize), Box_::into_raw(f) as *mut _) - } - } - - fn connect_property_device_class_notify(&self, f: F) -> SignalHandlerId { - unsafe { - let f: Box_> = Box_::new(Box_::new(f)); - connect(self.to_glib_none().0, "notify::device-class", - transmute(notify_device_class_trampoline:: as usize), Box_::into_raw(f) as *mut _) - } - } - - fn connect_property_display_name_notify(&self, f: F) -> SignalHandlerId { - unsafe { - let f: Box_> = Box_::new(Box_::new(f)); - connect(self.to_glib_none().0, "notify::display-name", - transmute(notify_display_name_trampoline:: as usize), Box_::into_raw(f) as *mut _) - } - } - - fn connect_property_properties_notify(&self, f: F) -> SignalHandlerId { - unsafe { - let f: Box_> = Box_::new(Box_::new(f)); - connect(self.to_glib_none().0, "notify::properties", - transmute(notify_properties_trampoline:: as usize), Box_::into_raw(f) as *mut _) - } - } } unsafe extern "C" fn removed_trampoline

(this: *mut ffi::GstDevice, f: glib_ffi::gpointer) @@ -156,27 +116,3 @@ where P: IsA { let f: &&(Fn(&P) + Send + Sync + 'static) = transmute(f); f(&Device::from_glib_borrow(this).downcast_unchecked()) } - -unsafe extern "C" fn notify_caps_trampoline

(this: *mut ffi::GstDevice, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) -where P: IsA { - let f: &&(Fn(&P) + Send + Sync + 'static) = transmute(f); - f(&Device::from_glib_borrow(this).downcast_unchecked()) -} - -unsafe extern "C" fn notify_device_class_trampoline

(this: *mut ffi::GstDevice, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) -where P: IsA { - let f: &&(Fn(&P) + Send + Sync + 'static) = transmute(f); - f(&Device::from_glib_borrow(this).downcast_unchecked()) -} - -unsafe extern "C" fn notify_display_name_trampoline

(this: *mut ffi::GstDevice, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) -where P: IsA { - let f: &&(Fn(&P) + Send + Sync + 'static) = transmute(f); - f(&Device::from_glib_borrow(this).downcast_unchecked()) -} - -unsafe extern "C" fn notify_properties_trampoline

(this: *mut ffi::GstDevice, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) -where P: IsA { - let f: &&(Fn(&P) + Send + Sync + 'static) = transmute(f); - f(&Device::from_glib_borrow(this).downcast_unchecked()) -} diff --git a/gstreamer/src/auto/pad.rs b/gstreamer/src/auto/pad.rs index 5519e0dce..bf81669d3 100644 --- a/gstreamer/src/auto/pad.rs +++ b/gstreamer/src/auto/pad.rs @@ -201,8 +201,6 @@ pub trait PadExt { fn connect_property_caps_notify(&self, f: F) -> SignalHandlerId; - fn connect_property_direction_notify(&self, f: F) -> SignalHandlerId; - fn connect_property_offset_notify(&self, f: F) -> SignalHandlerId; fn connect_property_template_notify(&self, f: F) -> SignalHandlerId; @@ -583,14 +581,6 @@ impl + IsA> PadExt for O { } } - fn connect_property_direction_notify(&self, f: F) -> SignalHandlerId { - unsafe { - let f: Box_> = Box_::new(Box_::new(f)); - connect(self.to_glib_none().0, "notify::direction", - transmute(notify_direction_trampoline:: as usize), Box_::into_raw(f) as *mut _) - } - } - fn connect_property_offset_notify(&self, f: F) -> SignalHandlerId { unsafe { let f: Box_> = Box_::new(Box_::new(f)); @@ -626,12 +616,6 @@ where P: IsA { f(&Pad::from_glib_borrow(this).downcast_unchecked()) } -unsafe extern "C" fn notify_direction_trampoline

(this: *mut ffi::GstPad, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) -where P: IsA { - let f: &&(Fn(&P) + Send + Sync + 'static) = transmute(f); - f(&Pad::from_glib_borrow(this).downcast_unchecked()) -} - unsafe extern "C" fn notify_offset_trampoline

(this: *mut ffi::GstPad, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { let f: &&(Fn(&P) + Send + Sync + 'static) = transmute(f); diff --git a/gstreamer/src/auto/pad_template.rs b/gstreamer/src/auto/pad_template.rs index 600833afa..fce021e09 100644 --- a/gstreamer/src/auto/pad_template.rs +++ b/gstreamer/src/auto/pad_template.rs @@ -99,47 +99,6 @@ impl PadTemplate { transmute(pad_created_trampoline as usize), Box_::into_raw(f) as *mut _) } } - - pub fn connect_property_caps_notify(&self, f: F) -> SignalHandlerId { - unsafe { - let f: Box_> = Box_::new(Box_::new(f)); - connect(self.to_glib_none().0, "notify::caps", - transmute(notify_caps_trampoline as usize), Box_::into_raw(f) as *mut _) - } - } - - pub fn connect_property_direction_notify(&self, f: F) -> SignalHandlerId { - unsafe { - let f: Box_> = Box_::new(Box_::new(f)); - connect(self.to_glib_none().0, "notify::direction", - transmute(notify_direction_trampoline as usize), Box_::into_raw(f) as *mut _) - } - } - - #[cfg(any(feature = "v1_14", feature = "dox"))] - pub fn connect_property_gtype_notify(&self, f: F) -> SignalHandlerId { - unsafe { - let f: Box_> = Box_::new(Box_::new(f)); - connect(self.to_glib_none().0, "notify::gtype", - transmute(notify_gtype_trampoline as usize), Box_::into_raw(f) as *mut _) - } - } - - pub fn connect_property_name_template_notify(&self, f: F) -> SignalHandlerId { - unsafe { - let f: Box_> = Box_::new(Box_::new(f)); - connect(self.to_glib_none().0, "notify::name-template", - transmute(notify_name_template_trampoline as usize), Box_::into_raw(f) as *mut _) - } - } - - pub fn connect_property_presence_notify(&self, f: F) -> SignalHandlerId { - unsafe { - let f: Box_> = Box_::new(Box_::new(f)); - connect(self.to_glib_none().0, "notify::presence", - transmute(notify_presence_trampoline as usize), Box_::into_raw(f) as *mut _) - } - } } unsafe impl Send for PadTemplate {} @@ -149,29 +108,3 @@ unsafe extern "C" fn pad_created_trampoline(this: *mut ffi::GstPadTemplate, pad: let f: &&(Fn(&PadTemplate, &Pad) + Send + Sync + 'static) = transmute(f); f(&from_glib_borrow(this), &from_glib_borrow(pad)) } - -unsafe extern "C" fn notify_caps_trampoline(this: *mut ffi::GstPadTemplate, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) { - let f: &&(Fn(&PadTemplate) + Send + Sync + 'static) = transmute(f); - f(&from_glib_borrow(this)) -} - -unsafe extern "C" fn notify_direction_trampoline(this: *mut ffi::GstPadTemplate, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) { - let f: &&(Fn(&PadTemplate) + Send + Sync + 'static) = transmute(f); - f(&from_glib_borrow(this)) -} - -#[cfg(any(feature = "v1_14", feature = "dox"))] -unsafe extern "C" fn notify_gtype_trampoline(this: *mut ffi::GstPadTemplate, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) { - let f: &&(Fn(&PadTemplate) + Send + Sync + 'static) = transmute(f); - f(&from_glib_borrow(this)) -} - -unsafe extern "C" fn notify_name_template_trampoline(this: *mut ffi::GstPadTemplate, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) { - let f: &&(Fn(&PadTemplate) + Send + Sync + 'static) = transmute(f); - f(&from_glib_borrow(this)) -} - -unsafe extern "C" fn notify_presence_trampoline(this: *mut ffi::GstPadTemplate, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) { - let f: &&(Fn(&PadTemplate) + Send + Sync + 'static) = transmute(f); - f(&from_glib_borrow(this)) -} diff --git a/gstreamer/src/auto/stream.rs b/gstreamer/src/auto/stream.rs index 52f7973b0..6322f3f9a 100644 --- a/gstreamer/src/auto/stream.rs +++ b/gstreamer/src/auto/stream.rs @@ -176,14 +176,6 @@ impl Stream { } } - pub fn connect_property_stream_id_notify(&self, f: F) -> SignalHandlerId { - unsafe { - let f: Box_> = Box_::new(Box_::new(f)); - connect(self.to_glib_none().0, "notify::stream-id", - transmute(notify_stream_id_trampoline as usize), Box_::into_raw(f) as *mut _) - } - } - pub fn connect_property_stream_type_notify(&self, f: F) -> SignalHandlerId { unsafe { let f: Box_> = Box_::new(Box_::new(f)); @@ -214,11 +206,6 @@ unsafe extern "C" fn notify_stream_flags_trampoline(this: *mut ffi::GstStream, _ f(&from_glib_borrow(this)) } -unsafe extern "C" fn notify_stream_id_trampoline(this: *mut ffi::GstStream, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) { - let f: &&(Fn(&Stream) + Send + Sync + 'static) = transmute(f); - f(&from_glib_borrow(this)) -} - unsafe extern "C" fn notify_stream_type_trampoline(this: *mut ffi::GstStream, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) { let f: &&(Fn(&Stream) + Send + Sync + 'static) = transmute(f); f(&from_glib_borrow(this)) diff --git a/gstreamer/src/auto/versions.txt b/gstreamer/src/auto/versions.txt index 59fe339ba..253bea937 100644 --- a/gstreamer/src/auto/versions.txt +++ b/gstreamer/src/auto/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 04c26a8) +Generated by gir (https://github.com/gtk-rs/gir @ c385982) from gir-files (https://github.com/gtk-rs/gir-files @ ???)