mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-11-25 11:01:10 +00:00
Regenerate with latest gir to get rid of unneeded notify signal connectors for construct-only properties
This commit is contained in:
parent
0f704646f6
commit
8f71a81cb5
27 changed files with 12 additions and 407 deletions
|
@ -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 @ ???)
|
from gir-files (https://github.com/gtk-rs/gir-files @ ???)
|
||||||
|
|
|
@ -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 @ ???)
|
from gir-files (https://github.com/gtk-rs/gir-files @ ???)
|
||||||
|
|
|
@ -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 @ ???)
|
from gir-files (https://github.com/gtk-rs/gir-files @ ???)
|
||||||
|
|
|
@ -137,14 +137,6 @@ impl NetClientClock {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn connect_property_base_time_notify<F: Fn(&NetClientClock) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId {
|
|
||||||
unsafe {
|
|
||||||
let f: Box_<Box_<Fn(&NetClientClock) + Send + Sync + 'static>> = 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<F: Fn(&NetClientClock) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId {
|
pub fn connect_property_bus_notify<F: Fn(&NetClientClock) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId {
|
||||||
unsafe {
|
unsafe {
|
||||||
let f: Box_<Box_<Fn(&NetClientClock) + Send + Sync + 'static>> = Box_::new(Box_::new(f));
|
let f: Box_<Box_<Fn(&NetClientClock) + Send + Sync + 'static>> = 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))
|
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) {
|
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);
|
let f: &&(Fn(&NetClientClock) + Send + Sync + 'static) = transmute(f);
|
||||||
f(&from_glib_borrow(this))
|
f(&from_glib_borrow(this))
|
||||||
|
|
|
@ -88,30 +88,6 @@ impl NetTimeProvider {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn connect_property_address_notify<F: Fn(&NetTimeProvider) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId {
|
|
||||||
unsafe {
|
|
||||||
let f: Box_<Box_<Fn(&NetTimeProvider) + Send + Sync + 'static>> = 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<F: Fn(&NetTimeProvider) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId {
|
|
||||||
unsafe {
|
|
||||||
let f: Box_<Box_<Fn(&NetTimeProvider) + Send + Sync + 'static>> = 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<F: Fn(&NetTimeProvider) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId {
|
|
||||||
unsafe {
|
|
||||||
let f: Box_<Box_<Fn(&NetTimeProvider) + Send + Sync + 'static>> = 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<F: Fn(&NetTimeProvider) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId {
|
pub fn connect_property_qos_dscp_notify<F: Fn(&NetTimeProvider) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId {
|
||||||
unsafe {
|
unsafe {
|
||||||
let f: Box_<Box_<Fn(&NetTimeProvider) + Send + Sync + 'static>> = Box_::new(Box_::new(f));
|
let f: Box_<Box_<Fn(&NetTimeProvider) + Send + Sync + 'static>> = 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))
|
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) {
|
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);
|
let f: &&(Fn(&NetTimeProvider) + Send + Sync + 'static) = transmute(f);
|
||||||
f(&from_glib_borrow(this))
|
f(&from_glib_borrow(this))
|
||||||
|
|
|
@ -61,14 +61,6 @@ impl PtpClock {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn connect_property_domain_notify<F: Fn(&PtpClock) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId {
|
|
||||||
unsafe {
|
|
||||||
let f: Box_<Box_<Fn(&PtpClock) + Send + Sync + 'static>> = 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<F: Fn(&PtpClock) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId {
|
pub fn connect_property_grandmaster_clock_id_notify<F: Fn(&PtpClock) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId {
|
||||||
unsafe {
|
unsafe {
|
||||||
let f: Box_<Box_<Fn(&PtpClock) + Send + Sync + 'static>> = Box_::new(Box_::new(f));
|
let f: Box_<Box_<Fn(&PtpClock) + Send + Sync + 'static>> = Box_::new(Box_::new(f));
|
||||||
|
@ -97,11 +89,6 @@ impl PtpClock {
|
||||||
unsafe impl Send for PtpClock {}
|
unsafe impl Send for PtpClock {}
|
||||||
unsafe impl Sync 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) {
|
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);
|
let f: &&(Fn(&PtpClock) + Send + Sync + 'static) = transmute(f);
|
||||||
f(&from_glib_borrow(this))
|
f(&from_glib_borrow(this))
|
||||||
|
|
|
@ -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 @ ???)
|
from gir-files (https://github.com/gtk-rs/gir-files @ ???)
|
||||||
|
|
|
@ -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 @ ???)
|
from gir-files (https://github.com/gtk-rs/gir-files @ ???)
|
||||||
|
|
|
@ -514,14 +514,6 @@ impl Player {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn connect_property_signal_dispatcher_notify<F: Fn(&Player) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId {
|
|
||||||
unsafe {
|
|
||||||
let f: Box_<Box_<Fn(&Player) + Send + Sync + 'static>> = 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<F: Fn(&Player) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId {
|
pub fn connect_property_suburi_notify<F: Fn(&Player) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId {
|
||||||
unsafe {
|
unsafe {
|
||||||
let f: Box_<Box_<Fn(&Player) + Send + Sync + 'static>> = Box_::new(Box_::new(f));
|
let f: Box_<Box_<Fn(&Player) + Send + Sync + 'static>> = Box_::new(Box_::new(f));
|
||||||
|
@ -554,14 +546,6 @@ impl Player {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn connect_property_video_renderer_notify<F: Fn(&Player) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId {
|
|
||||||
unsafe {
|
|
||||||
let f: Box_<Box_<Fn(&Player) + Send + Sync + 'static>> = 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<F: Fn(&Player) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId {
|
pub fn connect_property_volume_notify<F: Fn(&Player) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId {
|
||||||
unsafe {
|
unsafe {
|
||||||
let f: Box_<Box_<Fn(&Player) + Send + Sync + 'static>> = Box_::new(Box_::new(f));
|
let f: Box_<Box_<Fn(&Player) + Send + Sync + 'static>> = 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))
|
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) {
|
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);
|
let f: &&(Fn(&Player) + Send + Sync + 'static) = transmute(f);
|
||||||
f(&from_glib_borrow(this))
|
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))
|
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) {
|
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);
|
let f: &&(Fn(&Player) + Send + Sync + 'static) = transmute(f);
|
||||||
f(&from_glib_borrow(this))
|
f(&from_glib_borrow(this))
|
||||||
|
|
|
@ -7,14 +7,10 @@ use ffi;
|
||||||
use glib;
|
use glib;
|
||||||
use glib::StaticType;
|
use glib::StaticType;
|
||||||
use glib::Value;
|
use glib::Value;
|
||||||
use glib::signal::SignalHandlerId;
|
|
||||||
use glib::signal::connect;
|
|
||||||
use glib::translate::*;
|
use glib::translate::*;
|
||||||
use glib_ffi;
|
use glib_ffi;
|
||||||
use gobject_ffi;
|
use gobject_ffi;
|
||||||
use std::boxed::Box as Box_;
|
|
||||||
use std::mem;
|
use std::mem;
|
||||||
use std::mem::transmute;
|
|
||||||
use std::ptr;
|
use std::ptr;
|
||||||
|
|
||||||
glib_wrapper! {
|
glib_wrapper! {
|
||||||
|
@ -33,20 +29,7 @@ impl PlayerGMainContextSignalDispatcher {
|
||||||
value.get()
|
value.get()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn connect_property_application_context_notify<F: Fn(&PlayerGMainContextSignalDispatcher) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId {
|
|
||||||
unsafe {
|
|
||||||
let f: Box_<Box_<Fn(&PlayerGMainContextSignalDispatcher) + Send + Sync + 'static>> = 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 Send for PlayerGMainContextSignalDispatcher {}
|
||||||
unsafe impl Sync 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))
|
|
||||||
}
|
|
||||||
|
|
|
@ -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 @ ???)
|
from gir-files (https://github.com/gtk-rs/gir-files @ ???)
|
||||||
|
|
|
@ -188,8 +188,6 @@ pub trait RTSPMediaExt {
|
||||||
|
|
||||||
fn connect_property_clock_notify<F: Fn(&Self) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId;
|
fn connect_property_clock_notify<F: Fn(&Self) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId;
|
||||||
|
|
||||||
fn connect_property_element_notify<F: Fn(&Self) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId;
|
|
||||||
|
|
||||||
fn connect_property_eos_shutdown_notify<F: Fn(&Self) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId;
|
fn connect_property_eos_shutdown_notify<F: Fn(&Self) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId;
|
||||||
|
|
||||||
fn connect_property_latency_notify<F: Fn(&Self) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId;
|
fn connect_property_latency_notify<F: Fn(&Self) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId;
|
||||||
|
@ -640,14 +638,6 @@ impl<O: IsA<RTSPMedia> + IsA<glib::object::Object>> RTSPMediaExt for O {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn connect_property_element_notify<F: Fn(&Self) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId {
|
|
||||||
unsafe {
|
|
||||||
let f: Box_<Box_<Fn(&Self) + Send + Sync + 'static>> = Box_::new(Box_::new(f));
|
|
||||||
connect(self.to_glib_none().0, "notify::element",
|
|
||||||
transmute(notify_element_trampoline::<Self> as usize), Box_::into_raw(f) as *mut _)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
fn connect_property_eos_shutdown_notify<F: Fn(&Self) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId {
|
fn connect_property_eos_shutdown_notify<F: Fn(&Self) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId {
|
||||||
unsafe {
|
unsafe {
|
||||||
let f: Box_<Box_<Fn(&Self) + Send + Sync + 'static>> = Box_::new(Box_::new(f));
|
let f: Box_<Box_<Fn(&Self) + Send + Sync + 'static>> = Box_::new(Box_::new(f));
|
||||||
|
@ -777,12 +767,6 @@ where P: IsA<RTSPMedia> {
|
||||||
f(&RTSPMedia::from_glib_borrow(this).downcast_unchecked())
|
f(&RTSPMedia::from_glib_borrow(this).downcast_unchecked())
|
||||||
}
|
}
|
||||||
|
|
||||||
unsafe extern "C" fn notify_element_trampoline<P>(this: *mut ffi::GstRTSPMedia, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
|
|
||||||
where P: IsA<RTSPMedia> {
|
|
||||||
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<P>(this: *mut ffi::GstRTSPMedia, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
|
unsafe extern "C" fn notify_eos_shutdown_trampoline<P>(this: *mut ffi::GstRTSPMedia, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
|
||||||
where P: IsA<RTSPMedia> {
|
where P: IsA<RTSPMedia> {
|
||||||
let f: &&(Fn(&P) + Send + Sync + 'static) = transmute(f);
|
let f: &&(Fn(&P) + Send + Sync + 'static) = transmute(f);
|
||||||
|
|
|
@ -75,8 +75,6 @@ pub trait RTSPSessionExt {
|
||||||
|
|
||||||
fn set_property_timeout_always_visible(&self, timeout_always_visible: bool);
|
fn set_property_timeout_always_visible(&self, timeout_always_visible: bool);
|
||||||
|
|
||||||
fn connect_property_sessionid_notify<F: Fn(&Self) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId;
|
|
||||||
|
|
||||||
fn connect_property_timeout_notify<F: Fn(&Self) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId;
|
fn connect_property_timeout_notify<F: Fn(&Self) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId;
|
||||||
|
|
||||||
fn connect_property_timeout_always_visible_notify<F: Fn(&Self) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId;
|
fn connect_property_timeout_always_visible_notify<F: Fn(&Self) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId;
|
||||||
|
@ -183,14 +181,6 @@ impl<O: IsA<RTSPSession> + IsA<glib::object::Object>> RTSPSessionExt for O {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn connect_property_sessionid_notify<F: Fn(&Self) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId {
|
|
||||||
unsafe {
|
|
||||||
let f: Box_<Box_<Fn(&Self) + Send + Sync + 'static>> = Box_::new(Box_::new(f));
|
|
||||||
connect(self.to_glib_none().0, "notify::sessionid",
|
|
||||||
transmute(notify_sessionid_trampoline::<Self> as usize), Box_::into_raw(f) as *mut _)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
fn connect_property_timeout_notify<F: Fn(&Self) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId {
|
fn connect_property_timeout_notify<F: Fn(&Self) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId {
|
||||||
unsafe {
|
unsafe {
|
||||||
let f: Box_<Box_<Fn(&Self) + Send + Sync + 'static>> = Box_::new(Box_::new(f));
|
let f: Box_<Box_<Fn(&Self) + Send + Sync + 'static>> = Box_::new(Box_::new(f));
|
||||||
|
@ -208,12 +198,6 @@ impl<O: IsA<RTSPSession> + IsA<glib::object::Object>> RTSPSessionExt for O {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
unsafe extern "C" fn notify_sessionid_trampoline<P>(this: *mut ffi::GstRTSPSession, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
|
|
||||||
where P: IsA<RTSPSession> {
|
|
||||||
let f: &&(Fn(&P) + Send + Sync + 'static) = transmute(f);
|
|
||||||
f(&RTSPSession::from_glib_borrow(this).downcast_unchecked())
|
|
||||||
}
|
|
||||||
|
|
||||||
unsafe extern "C" fn notify_timeout_trampoline<P>(this: *mut ffi::GstRTSPSession, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
|
unsafe extern "C" fn notify_timeout_trampoline<P>(this: *mut ffi::GstRTSPSession, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
|
||||||
where P: IsA<RTSPSession> {
|
where P: IsA<RTSPSession> {
|
||||||
let f: &&(Fn(&P) + Send + Sync + 'static) = transmute(f);
|
let f: &&(Fn(&P) + Send + Sync + 'static) = transmute(f);
|
||||||
|
|
|
@ -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 @ ???)
|
from gir-files (https://github.com/gtk-rs/gir-files @ ???)
|
||||||
|
|
|
@ -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 @ ???)
|
from gir-files (https://github.com/gtk-rs/gir-files @ ???)
|
||||||
|
|
|
@ -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 @ ???)
|
from gir-files (https://github.com/gtk-rs/gir-files @ ???)
|
||||||
|
|
|
@ -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 @ ???)
|
from gir-files (https://github.com/gtk-rs/gir-files @ ???)
|
||||||
|
|
|
@ -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 @ ???)
|
from gir-files (https://github.com/gtk-rs/gir-files @ ???)
|
||||||
|
|
|
@ -131,22 +131,6 @@ impl WebRTCDTLSTransport {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn connect_property_rtcp_notify<F: Fn(&WebRTCDTLSTransport) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId {
|
|
||||||
unsafe {
|
|
||||||
let f: Box_<Box_<Fn(&WebRTCDTLSTransport) + Send + Sync + 'static>> = 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<F: Fn(&WebRTCDTLSTransport) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId {
|
|
||||||
unsafe {
|
|
||||||
let f: Box_<Box_<Fn(&WebRTCDTLSTransport) + Send + Sync + 'static>> = 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<F: Fn(&WebRTCDTLSTransport) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId {
|
pub fn connect_property_state_notify<F: Fn(&WebRTCDTLSTransport) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId {
|
||||||
unsafe {
|
unsafe {
|
||||||
let f: Box_<Box_<Fn(&WebRTCDTLSTransport) + Send + Sync + 'static>> = Box_::new(Box_::new(f));
|
let f: Box_<Box_<Fn(&WebRTCDTLSTransport) + Send + Sync + 'static>> = 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))
|
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) {
|
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);
|
let f: &&(Fn(&WebRTCDTLSTransport) + Send + Sync + 'static) = transmute(f);
|
||||||
f(&from_glib_borrow(this))
|
f(&from_glib_borrow(this))
|
||||||
|
|
|
@ -92,14 +92,6 @@ impl WebRTCICETransport {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn connect_property_component_notify<F: Fn(&WebRTCICETransport) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId {
|
|
||||||
unsafe {
|
|
||||||
let f: Box_<Box_<Fn(&WebRTCICETransport) + Send + Sync + 'static>> = 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<F: Fn(&WebRTCICETransport) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId {
|
pub fn connect_property_gathering_state_notify<F: Fn(&WebRTCICETransport) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId {
|
||||||
unsafe {
|
unsafe {
|
||||||
let f: Box_<Box_<Fn(&WebRTCICETransport) + Send + Sync + 'static>> = Box_::new(Box_::new(f));
|
let f: Box_<Box_<Fn(&WebRTCICETransport) + Send + Sync + 'static>> = 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))
|
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) {
|
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);
|
let f: &&(Fn(&WebRTCICETransport) + Send + Sync + 'static) = transmute(f);
|
||||||
f(&from_glib_borrow(this))
|
f(&from_glib_borrow(this))
|
||||||
|
|
|
@ -7,14 +7,10 @@ use WebRTCRTPSender;
|
||||||
use ffi;
|
use ffi;
|
||||||
use glib::StaticType;
|
use glib::StaticType;
|
||||||
use glib::Value;
|
use glib::Value;
|
||||||
use glib::signal::SignalHandlerId;
|
|
||||||
use glib::signal::connect;
|
|
||||||
use glib::translate::*;
|
use glib::translate::*;
|
||||||
use glib_ffi;
|
use glib_ffi;
|
||||||
use gobject_ffi;
|
use gobject_ffi;
|
||||||
use std::boxed::Box as Box_;
|
|
||||||
use std::mem;
|
use std::mem;
|
||||||
use std::mem::transmute;
|
|
||||||
use std::ptr;
|
use std::ptr;
|
||||||
|
|
||||||
glib_wrapper! {
|
glib_wrapper! {
|
||||||
|
@ -49,46 +45,7 @@ impl WebRTCRTPTransceiver {
|
||||||
value.get()
|
value.get()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn connect_property_mlineindex_notify<F: Fn(&WebRTCRTPTransceiver) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId {
|
|
||||||
unsafe {
|
|
||||||
let f: Box_<Box_<Fn(&WebRTCRTPTransceiver) + Send + Sync + 'static>> = 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<F: Fn(&WebRTCRTPTransceiver) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId {
|
|
||||||
unsafe {
|
|
||||||
let f: Box_<Box_<Fn(&WebRTCRTPTransceiver) + Send + Sync + 'static>> = 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<F: Fn(&WebRTCRTPTransceiver) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId {
|
|
||||||
unsafe {
|
|
||||||
let f: Box_<Box_<Fn(&WebRTCRTPTransceiver) + Send + Sync + 'static>> = 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 Send for WebRTCRTPTransceiver {}
|
||||||
unsafe impl Sync 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))
|
|
||||||
}
|
|
||||||
|
|
|
@ -139,14 +139,6 @@ impl Bus {
|
||||||
transmute(sync_message_trampoline as usize), Box_::into_raw(f) as *mut _)
|
transmute(sync_message_trampoline as usize), Box_::into_raw(f) as *mut _)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn connect_property_enable_async_notify<F: Fn(&Bus) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId {
|
|
||||||
unsafe {
|
|
||||||
let f: Box_<Box_<Fn(&Bus) + Send + Sync + 'static>> = 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 {
|
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);
|
let f: &&(Fn(&Bus, &Message) + Send + Sync + 'static) = transmute(f);
|
||||||
f(&from_glib_borrow(this), &from_glib_borrow(message))
|
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))
|
|
||||||
}
|
|
||||||
|
|
|
@ -49,14 +49,6 @@ pub trait DeviceExt {
|
||||||
fn reconfigure_element<P: IsA<Element>>(&self, element: &P) -> bool;
|
fn reconfigure_element<P: IsA<Element>>(&self, element: &P) -> bool;
|
||||||
|
|
||||||
fn connect_removed<F: Fn(&Self) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId;
|
fn connect_removed<F: Fn(&Self) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId;
|
||||||
|
|
||||||
fn connect_property_caps_notify<F: Fn(&Self) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId;
|
|
||||||
|
|
||||||
fn connect_property_device_class_notify<F: Fn(&Self) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId;
|
|
||||||
|
|
||||||
fn connect_property_display_name_notify<F: Fn(&Self) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId;
|
|
||||||
|
|
||||||
fn connect_property_properties_notify<F: Fn(&Self) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<O: IsA<Device> + IsA<glib::object::Object>> DeviceExt for O {
|
impl<O: IsA<Device> + IsA<glib::object::Object>> DeviceExt for O {
|
||||||
|
@ -117,38 +109,6 @@ impl<O: IsA<Device> + IsA<glib::object::Object>> DeviceExt for O {
|
||||||
transmute(removed_trampoline::<Self> as usize), Box_::into_raw(f) as *mut _)
|
transmute(removed_trampoline::<Self> as usize), Box_::into_raw(f) as *mut _)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn connect_property_caps_notify<F: Fn(&Self) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId {
|
|
||||||
unsafe {
|
|
||||||
let f: Box_<Box_<Fn(&Self) + Send + Sync + 'static>> = Box_::new(Box_::new(f));
|
|
||||||
connect(self.to_glib_none().0, "notify::caps",
|
|
||||||
transmute(notify_caps_trampoline::<Self> as usize), Box_::into_raw(f) as *mut _)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
fn connect_property_device_class_notify<F: Fn(&Self) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId {
|
|
||||||
unsafe {
|
|
||||||
let f: Box_<Box_<Fn(&Self) + Send + Sync + 'static>> = Box_::new(Box_::new(f));
|
|
||||||
connect(self.to_glib_none().0, "notify::device-class",
|
|
||||||
transmute(notify_device_class_trampoline::<Self> as usize), Box_::into_raw(f) as *mut _)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
fn connect_property_display_name_notify<F: Fn(&Self) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId {
|
|
||||||
unsafe {
|
|
||||||
let f: Box_<Box_<Fn(&Self) + Send + Sync + 'static>> = Box_::new(Box_::new(f));
|
|
||||||
connect(self.to_glib_none().0, "notify::display-name",
|
|
||||||
transmute(notify_display_name_trampoline::<Self> as usize), Box_::into_raw(f) as *mut _)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
fn connect_property_properties_notify<F: Fn(&Self) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId {
|
|
||||||
unsafe {
|
|
||||||
let f: Box_<Box_<Fn(&Self) + Send + Sync + 'static>> = Box_::new(Box_::new(f));
|
|
||||||
connect(self.to_glib_none().0, "notify::properties",
|
|
||||||
transmute(notify_properties_trampoline::<Self> as usize), Box_::into_raw(f) as *mut _)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
unsafe extern "C" fn removed_trampoline<P>(this: *mut ffi::GstDevice, f: glib_ffi::gpointer)
|
unsafe extern "C" fn removed_trampoline<P>(this: *mut ffi::GstDevice, f: glib_ffi::gpointer)
|
||||||
|
@ -156,27 +116,3 @@ where P: IsA<Device> {
|
||||||
let f: &&(Fn(&P) + Send + Sync + 'static) = transmute(f);
|
let f: &&(Fn(&P) + Send + Sync + 'static) = transmute(f);
|
||||||
f(&Device::from_glib_borrow(this).downcast_unchecked())
|
f(&Device::from_glib_borrow(this).downcast_unchecked())
|
||||||
}
|
}
|
||||||
|
|
||||||
unsafe extern "C" fn notify_caps_trampoline<P>(this: *mut ffi::GstDevice, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
|
|
||||||
where P: IsA<Device> {
|
|
||||||
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<P>(this: *mut ffi::GstDevice, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
|
|
||||||
where P: IsA<Device> {
|
|
||||||
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<P>(this: *mut ffi::GstDevice, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
|
|
||||||
where P: IsA<Device> {
|
|
||||||
let f: &&(Fn(&P) + Send + Sync + 'static) = transmute(f);
|
|
||||||
f(&Device::from_glib_borrow(this).downcast_unchecked())
|
|
||||||
}
|
|
||||||
|
|
||||||
unsafe extern "C" fn notify_properties_trampoline<P>(this: *mut ffi::GstDevice, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
|
|
||||||
where P: IsA<Device> {
|
|
||||||
let f: &&(Fn(&P) + Send + Sync + 'static) = transmute(f);
|
|
||||||
f(&Device::from_glib_borrow(this).downcast_unchecked())
|
|
||||||
}
|
|
||||||
|
|
|
@ -201,8 +201,6 @@ pub trait PadExt {
|
||||||
|
|
||||||
fn connect_property_caps_notify<F: Fn(&Self) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId;
|
fn connect_property_caps_notify<F: Fn(&Self) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId;
|
||||||
|
|
||||||
fn connect_property_direction_notify<F: Fn(&Self) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId;
|
|
||||||
|
|
||||||
fn connect_property_offset_notify<F: Fn(&Self) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId;
|
fn connect_property_offset_notify<F: Fn(&Self) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId;
|
||||||
|
|
||||||
fn connect_property_template_notify<F: Fn(&Self) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId;
|
fn connect_property_template_notify<F: Fn(&Self) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId;
|
||||||
|
@ -583,14 +581,6 @@ impl<O: IsA<Pad> + IsA<glib::object::Object>> PadExt for O {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn connect_property_direction_notify<F: Fn(&Self) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId {
|
|
||||||
unsafe {
|
|
||||||
let f: Box_<Box_<Fn(&Self) + Send + Sync + 'static>> = Box_::new(Box_::new(f));
|
|
||||||
connect(self.to_glib_none().0, "notify::direction",
|
|
||||||
transmute(notify_direction_trampoline::<Self> as usize), Box_::into_raw(f) as *mut _)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
fn connect_property_offset_notify<F: Fn(&Self) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId {
|
fn connect_property_offset_notify<F: Fn(&Self) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId {
|
||||||
unsafe {
|
unsafe {
|
||||||
let f: Box_<Box_<Fn(&Self) + Send + Sync + 'static>> = Box_::new(Box_::new(f));
|
let f: Box_<Box_<Fn(&Self) + Send + Sync + 'static>> = Box_::new(Box_::new(f));
|
||||||
|
@ -626,12 +616,6 @@ where P: IsA<Pad> {
|
||||||
f(&Pad::from_glib_borrow(this).downcast_unchecked())
|
f(&Pad::from_glib_borrow(this).downcast_unchecked())
|
||||||
}
|
}
|
||||||
|
|
||||||
unsafe extern "C" fn notify_direction_trampoline<P>(this: *mut ffi::GstPad, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
|
|
||||||
where P: IsA<Pad> {
|
|
||||||
let f: &&(Fn(&P) + Send + Sync + 'static) = transmute(f);
|
|
||||||
f(&Pad::from_glib_borrow(this).downcast_unchecked())
|
|
||||||
}
|
|
||||||
|
|
||||||
unsafe extern "C" fn notify_offset_trampoline<P>(this: *mut ffi::GstPad, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
|
unsafe extern "C" fn notify_offset_trampoline<P>(this: *mut ffi::GstPad, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
|
||||||
where P: IsA<Pad> {
|
where P: IsA<Pad> {
|
||||||
let f: &&(Fn(&P) + Send + Sync + 'static) = transmute(f);
|
let f: &&(Fn(&P) + Send + Sync + 'static) = transmute(f);
|
||||||
|
|
|
@ -99,47 +99,6 @@ impl PadTemplate {
|
||||||
transmute(pad_created_trampoline as usize), Box_::into_raw(f) as *mut _)
|
transmute(pad_created_trampoline as usize), Box_::into_raw(f) as *mut _)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn connect_property_caps_notify<F: Fn(&PadTemplate) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId {
|
|
||||||
unsafe {
|
|
||||||
let f: Box_<Box_<Fn(&PadTemplate) + Send + Sync + 'static>> = 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<F: Fn(&PadTemplate) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId {
|
|
||||||
unsafe {
|
|
||||||
let f: Box_<Box_<Fn(&PadTemplate) + Send + Sync + 'static>> = 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<F: Fn(&PadTemplate) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId {
|
|
||||||
unsafe {
|
|
||||||
let f: Box_<Box_<Fn(&PadTemplate) + Send + Sync + 'static>> = 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<F: Fn(&PadTemplate) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId {
|
|
||||||
unsafe {
|
|
||||||
let f: Box_<Box_<Fn(&PadTemplate) + Send + Sync + 'static>> = 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<F: Fn(&PadTemplate) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId {
|
|
||||||
unsafe {
|
|
||||||
let f: Box_<Box_<Fn(&PadTemplate) + Send + Sync + 'static>> = 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 {}
|
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);
|
let f: &&(Fn(&PadTemplate, &Pad) + Send + Sync + 'static) = transmute(f);
|
||||||
f(&from_glib_borrow(this), &from_glib_borrow(pad))
|
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))
|
|
||||||
}
|
|
||||||
|
|
|
@ -176,14 +176,6 @@ impl Stream {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn connect_property_stream_id_notify<F: Fn(&Stream) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId {
|
|
||||||
unsafe {
|
|
||||||
let f: Box_<Box_<Fn(&Stream) + Send + Sync + 'static>> = 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<F: Fn(&Stream) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId {
|
pub fn connect_property_stream_type_notify<F: Fn(&Stream) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId {
|
||||||
unsafe {
|
unsafe {
|
||||||
let f: Box_<Box_<Fn(&Stream) + Send + Sync + 'static>> = Box_::new(Box_::new(f));
|
let f: Box_<Box_<Fn(&Stream) + Send + Sync + 'static>> = 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))
|
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) {
|
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);
|
let f: &&(Fn(&Stream) + Send + Sync + 'static) = transmute(f);
|
||||||
f(&from_glib_borrow(this))
|
f(&from_glib_borrow(this))
|
||||||
|
|
|
@ -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 @ ???)
|
from gir-files (https://github.com/gtk-rs/gir-files @ ???)
|
||||||
|
|
Loading…
Reference in a new issue