Commit 3b0e6843 authored by Sebastian Dröge's avatar Sebastian Dröge 🍵

Regenerate everything with latest GIR

parent ca6c597f
......@@ -54,7 +54,7 @@ unsafe extern "C" fn trampoline_eos(appsink: *mut ffi::GstAppSink, callbacks: gp
let _guard = CallbackGuard::new();
let callbacks = &*(callbacks as *const AppSinkCallbacks);
(callbacks.eos)(&from_glib_none(appsink));
(callbacks.eos)(&from_glib_borrow(appsink));
}
unsafe extern "C" fn trampoline_new_preroll(
......@@ -64,7 +64,7 @@ unsafe extern "C" fn trampoline_new_preroll(
let _guard = CallbackGuard::new();
let callbacks = &*(callbacks as *const AppSinkCallbacks);
(callbacks.new_preroll)(&from_glib_none(appsink)).to_glib()
(callbacks.new_preroll)(&from_glib_borrow(appsink)).to_glib()
}
unsafe extern "C" fn trampoline_new_sample(
......@@ -74,7 +74,7 @@ unsafe extern "C" fn trampoline_new_sample(
let _guard = CallbackGuard::new();
let callbacks = &*(callbacks as *const AppSinkCallbacks);
(callbacks.new_sample)(&from_glib_none(appsink)).to_glib()
(callbacks.new_sample)(&from_glib_borrow(appsink)).to_glib()
}
unsafe extern "C" fn destroy_callbacks(ptr: gpointer) {
......
......@@ -57,14 +57,14 @@ unsafe extern "C" fn trampoline_need_data(
let _guard = CallbackGuard::new();
let callbacks = &*(callbacks as *const AppSrcCallbacks);
(callbacks.need_data)(&from_glib_none(appsrc), length);
(callbacks.need_data)(&from_glib_borrow(appsrc), length);
}
unsafe extern "C" fn trampoline_enough_data(appsrc: *mut ffi::GstAppSrc, callbacks: gpointer) {
let _guard = CallbackGuard::new();
let callbacks = &*(callbacks as *const AppSrcCallbacks);
(callbacks.enough_data)(&from_glib_none(appsrc));
(callbacks.enough_data)(&from_glib_borrow(appsrc));
}
unsafe extern "C" fn trampoline_seek_data(
......@@ -75,7 +75,7 @@ unsafe extern "C" fn trampoline_seek_data(
let _guard = CallbackGuard::new();
let callbacks = &*(callbacks as *const AppSrcCallbacks);
(callbacks.seek_data)(&from_glib_none(appsrc), offset).to_glib()
(callbacks.seek_data)(&from_glib_borrow(appsrc), offset).to_glib()
}
unsafe extern "C" fn destroy_callbacks(ptr: gpointer) {
......
// This file was generated by gir (e43d6c3) from gir-files (???)
// This file was generated by gir (6a48033) from gir-files (???)
// DO NOT EDIT
use ffi;
use glib::Value;
use glib::signal::SignalHandlerId;
use glib::signal::connect;
use glib::translate::*;
use glib_ffi;
......@@ -158,7 +159,7 @@ impl AppSink {
value.get().unwrap()
}
pub fn connect_eos<F: Fn(&AppSink) + Send + Sync + 'static>(&self, f: F) -> u64 {
pub fn connect_eos<F: Fn(&AppSink) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId {
unsafe {
let f: Box_<Box_<Fn(&AppSink) + Send + Sync + 'static>> = Box_::new(Box_::new(f));
connect(self.to_glib_none().0, "eos",
......@@ -166,7 +167,7 @@ impl AppSink {
}
}
pub fn connect_new_preroll<F: Fn(&AppSink) -> gst::FlowReturn + Send + Sync + 'static>(&self, f: F) -> u64 {
pub fn connect_new_preroll<F: Fn(&AppSink) -> gst::FlowReturn + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId {
unsafe {
let f: Box_<Box_<Fn(&AppSink) -> gst::FlowReturn + Send + Sync + 'static>> = Box_::new(Box_::new(f));
connect(self.to_glib_none().0, "new-preroll",
......@@ -174,7 +175,7 @@ impl AppSink {
}
}
pub fn connect_new_sample<F: Fn(&AppSink) -> gst::FlowReturn + Send + Sync + 'static>(&self, f: F) -> u64 {
pub fn connect_new_sample<F: Fn(&AppSink) -> gst::FlowReturn + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId {
unsafe {
let f: Box_<Box_<Fn(&AppSink) -> gst::FlowReturn + Send + Sync + 'static>> = Box_::new(Box_::new(f));
connect(self.to_glib_none().0, "new-sample",
......@@ -182,7 +183,7 @@ impl AppSink {
}
}
pub fn connect_property_buffer_list_notify<F: Fn(&AppSink) + Send + Sync + 'static>(&self, f: F) -> u64 {
pub fn connect_property_buffer_list_notify<F: Fn(&AppSink) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId {
unsafe {
let f: Box_<Box_<Fn(&AppSink) + Send + Sync + 'static>> = Box_::new(Box_::new(f));
connect(self.to_glib_none().0, "notify::buffer-list",
......@@ -190,7 +191,7 @@ impl AppSink {
}
}
pub fn connect_property_caps_notify<F: Fn(&AppSink) + Send + Sync + 'static>(&self, f: F) -> u64 {
pub fn connect_property_caps_notify<F: Fn(&AppSink) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId {
unsafe {
let f: Box_<Box_<Fn(&AppSink) + Send + Sync + 'static>> = Box_::new(Box_::new(f));
connect(self.to_glib_none().0, "notify::caps",
......@@ -198,7 +199,7 @@ impl AppSink {
}
}
pub fn connect_property_drop_notify<F: Fn(&AppSink) + Send + Sync + 'static>(&self, f: F) -> u64 {
pub fn connect_property_drop_notify<F: Fn(&AppSink) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId {
unsafe {
let f: Box_<Box_<Fn(&AppSink) + Send + Sync + 'static>> = Box_::new(Box_::new(f));
connect(self.to_glib_none().0, "notify::drop",
......@@ -206,7 +207,7 @@ impl AppSink {
}
}
pub fn connect_property_emit_signals_notify<F: Fn(&AppSink) + Send + Sync + 'static>(&self, f: F) -> u64 {
pub fn connect_property_emit_signals_notify<F: Fn(&AppSink) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId {
unsafe {
let f: Box_<Box_<Fn(&AppSink) + Send + Sync + 'static>> = Box_::new(Box_::new(f));
connect(self.to_glib_none().0, "notify::emit-signals",
......@@ -214,7 +215,7 @@ impl AppSink {
}
}
pub fn connect_property_eos_notify<F: Fn(&AppSink) + Send + Sync + 'static>(&self, f: F) -> u64 {
pub fn connect_property_eos_notify<F: Fn(&AppSink) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId {
unsafe {
let f: Box_<Box_<Fn(&AppSink) + Send + Sync + 'static>> = Box_::new(Box_::new(f));
connect(self.to_glib_none().0, "notify::eos",
......@@ -222,7 +223,7 @@ impl AppSink {
}
}
pub fn connect_property_max_buffers_notify<F: Fn(&AppSink) + Send + Sync + 'static>(&self, f: F) -> u64 {
pub fn connect_property_max_buffers_notify<F: Fn(&AppSink) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId {
unsafe {
let f: Box_<Box_<Fn(&AppSink) + Send + Sync + 'static>> = Box_::new(Box_::new(f));
connect(self.to_glib_none().0, "notify::max-buffers",
......@@ -230,7 +231,7 @@ impl AppSink {
}
}
pub fn connect_property_wait_on_eos_notify<F: Fn(&AppSink) + Send + Sync + 'static>(&self, f: F) -> u64 {
pub fn connect_property_wait_on_eos_notify<F: Fn(&AppSink) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId {
unsafe {
let f: Box_<Box_<Fn(&AppSink) + Send + Sync + 'static>> = Box_::new(Box_::new(f));
connect(self.to_glib_none().0, "notify::wait-on-eos",
......@@ -245,59 +246,59 @@ unsafe impl Sync for AppSink {}
unsafe extern "C" fn eos_trampoline(this: *mut ffi::GstAppSink, f: glib_ffi::gpointer) {
callback_guard!();
let f: &&(Fn(&AppSink) + Send + Sync + 'static) = transmute(f);
f(&from_glib_none(this))
f(&from_glib_borrow(this))
}
unsafe extern "C" fn new_preroll_trampoline(this: *mut ffi::GstAppSink, f: glib_ffi::gpointer) -> gst_ffi::GstFlowReturn {
callback_guard!();
let f: &&(Fn(&AppSink) -> gst::FlowReturn + Send + Sync + 'static) = transmute(f);
f(&from_glib_none(this)).to_glib()
f(&from_glib_borrow(this)).to_glib()
}
unsafe extern "C" fn new_sample_trampoline(this: *mut ffi::GstAppSink, f: glib_ffi::gpointer) -> gst_ffi::GstFlowReturn {
callback_guard!();
let f: &&(Fn(&AppSink) -> gst::FlowReturn + Send + Sync + 'static) = transmute(f);
f(&from_glib_none(this)).to_glib()
f(&from_glib_borrow(this)).to_glib()
}
unsafe extern "C" fn notify_buffer_list_trampoline(this: *mut ffi::GstAppSink, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) {
callback_guard!();
let f: &&(Fn(&AppSink) + Send + Sync + 'static) = transmute(f);
f(&from_glib_none(this))
f(&from_glib_borrow(this))
}
unsafe extern "C" fn notify_caps_trampoline(this: *mut ffi::GstAppSink, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) {
callback_guard!();
let f: &&(Fn(&AppSink) + Send + Sync + 'static) = transmute(f);
f(&from_glib_none(this))
f(&from_glib_borrow(this))
}
unsafe extern "C" fn notify_drop_trampoline(this: *mut ffi::GstAppSink, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) {
callback_guard!();
let f: &&(Fn(&AppSink) + Send + Sync + 'static) = transmute(f);
f(&from_glib_none(this))
f(&from_glib_borrow(this))
}
unsafe extern "C" fn notify_emit_signals_trampoline(this: *mut ffi::GstAppSink, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) {
callback_guard!();
let f: &&(Fn(&AppSink) + Send + Sync + 'static) = transmute(f);
f(&from_glib_none(this))
f(&from_glib_borrow(this))
}
unsafe extern "C" fn notify_eos_trampoline(this: *mut ffi::GstAppSink, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) {
callback_guard!();
let f: &&(Fn(&AppSink) + Send + Sync + 'static) = transmute(f);
f(&from_glib_none(this))
f(&from_glib_borrow(this))
}
unsafe extern "C" fn notify_max_buffers_trampoline(this: *mut ffi::GstAppSink, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) {
callback_guard!();
let f: &&(Fn(&AppSink) + Send + Sync + 'static) = transmute(f);
f(&from_glib_none(this))
f(&from_glib_borrow(this))
}
unsafe extern "C" fn notify_wait_on_eos_trampoline(this: *mut ffi::GstAppSink, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) {
callback_guard!();
let f: &&(Fn(&AppSink) + Send + Sync + 'static) = transmute(f);
f(&from_glib_none(this))
f(&from_glib_borrow(this))
}
This diff is collapsed.
// This file was generated by gir (e43d6c3) from gir-files (???)
// This file was generated by gir (6a48033) from gir-files (???)
// DO NOT EDIT
use ffi;
......
// This file was generated by gir (e43d6c3) from gir-files (???)
// This file was generated by gir (6a48033) from gir-files (???)
// DO NOT EDIT
use ffi;
......
// This file was generated by gir (e43d6c3) from gir-files (???)
// This file was generated by gir (6a48033) from gir-files (???)
// DO NOT EDIT
mod app_sink;
......
// This file was generated by gir (e43d6c3) from gir-files (???)
// This file was generated by gir (6a48033) from gir-files (???)
// DO NOT EDIT
use ffi;
......
// This file was generated by gir (e43d6c3) from gir-files (???)
// This file was generated by gir (6a48033) from gir-files (???)
// DO NOT EDIT
use ffi;
......
// This file was generated by gir (e43d6c3) from gir-files (???)
// This file was generated by gir (6a48033) from gir-files (???)
// DO NOT EDIT
mod stream_volume;
......
// This file was generated by gir (e43d6c3) from gir-files (???)
// This file was generated by gir (6a48033) from gir-files (???)
// DO NOT EDIT
use StreamVolumeFormat;
......@@ -6,6 +6,7 @@ use ffi;
use glib;
use glib::object::Downcast;
use glib::object::IsA;
use glib::signal::SignalHandlerId;
use glib::signal::connect;
use glib::translate::*;
use glib_ffi;
......@@ -44,9 +45,9 @@ pub trait StreamVolumeExt {
fn set_volume(&self, format: StreamVolumeFormat, val: f64);
fn connect_property_mute_notify<F: Fn(&Self) + Send + Sync + 'static>(&self, f: F) -> u64;
fn connect_property_mute_notify<F: Fn(&Self) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId;
fn connect_property_volume_notify<F: Fn(&Self) + Send + Sync + 'static>(&self, f: F) -> u64;
fn connect_property_volume_notify<F: Fn(&Self) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId;
}
impl<O: IsA<StreamVolume> + IsA<glib::object::Object>> StreamVolumeExt for O {
......@@ -74,7 +75,7 @@ impl<O: IsA<StreamVolume> + IsA<glib::object::Object>> StreamVolumeExt for O {
}
}
fn connect_property_mute_notify<F: Fn(&Self) + Send + Sync + 'static>(&self, f: F) -> u64 {
fn connect_property_mute_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::mute",
......@@ -82,7 +83,7 @@ impl<O: IsA<StreamVolume> + IsA<glib::object::Object>> StreamVolumeExt for O {
}
}
fn connect_property_volume_notify<F: Fn(&Self) + Send + Sync + 'static>(&self, f: F) -> u64 {
fn connect_property_volume_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::volume",
......@@ -95,12 +96,12 @@ unsafe extern "C" fn notify_mute_trampoline<P>(this: *mut ffi::GstStreamVolume,
where P: IsA<StreamVolume> {
callback_guard!();
let f: &&(Fn(&P) + Send + Sync + 'static) = transmute(f);
f(&StreamVolume::from_glib_none(this).downcast_unchecked())
f(&StreamVolume::from_glib_borrow(this).downcast_unchecked())
}
unsafe extern "C" fn notify_volume_trampoline<P>(this: *mut ffi::GstStreamVolume, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
where P: IsA<StreamVolume> {
callback_guard!();
let f: &&(Fn(&P) + Send + Sync + 'static) = transmute(f);
f(&StreamVolume::from_glib_none(this).downcast_unchecked())
f(&StreamVolume::from_glib_borrow(this).downcast_unchecked())
}
// This file was generated by gir (e43d6c3) from gir-files (???)
// This file was generated by gir (6a48033) from gir-files (???)
// DO NOT EDIT
use ffi;
......
// This file was generated by gir (e43d6c3) from gir-files (???)
// This file was generated by gir (6a48033) from gir-files (???)
// DO NOT EDIT
use ffi;
......
// This file was generated by gir (e43d6c3) from gir-files (???)
// This file was generated by gir (6a48033) from gir-files (???)
// DO NOT EDIT
mod player;
......
This diff is collapsed.
// This file was generated by gir (e43d6c3) from gir-files (???)
// This file was generated by gir (6a48033) from gir-files (???)
// DO NOT EDIT
use PlayerStreamInfo;
......
// This file was generated by gir (e43d6c3) from gir-files (???)
// This file was generated by gir (6a48033) from gir-files (???)
// DO NOT EDIT
use PlayerSignalDispatcher;
use ffi;
use glib;
use glib::Value;
use glib::signal::SignalHandlerId;
use glib::signal::connect;
use glib::translate::*;
use glib_ffi;
......@@ -40,7 +41,7 @@ impl PlayerGMainContextSignalDispatcher {
}
}
pub fn connect_property_application_context_notify<F: Fn(&PlayerGMainContextSignalDispatcher) + Send + Sync + 'static>(&self, f: F) -> u64 {
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",
......@@ -55,5 +56,5 @@ 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) {
callback_guard!();
let f: &&(Fn(&PlayerGMainContextSignalDispatcher) + Send + Sync + 'static) = transmute(f);
f(&from_glib_none(this))
f(&from_glib_borrow(this))
}
// This file was generated by gir (e43d6c3) from gir-files (???)
// This file was generated by gir (6a48033) from gir-files (???)
// DO NOT EDIT
use PlayerAudioInfo;
......
// This file was generated by gir (e43d6c3) from gir-files (???)
// This file was generated by gir (6a48033) from gir-files (???)
// DO NOT EDIT
use ffi;
......
// This file was generated by gir (e43d6c3) from gir-files (???)
// This file was generated by gir (6a48033) from gir-files (???)
// DO NOT EDIT
use ffi;
......
// This file was generated by gir (e43d6c3) from gir-files (???)
// This file was generated by gir (6a48033) from gir-files (???)
// DO NOT EDIT
use PlayerStreamInfo;
......
// This file was generated by gir (e43d6c3) from gir-files (???)
// This file was generated by gir (6a48033) from gir-files (???)
// DO NOT EDIT
use PlayerStreamInfo;
......
// This file was generated by gir (e43d6c3) from gir-files (???)
// This file was generated by gir (6a48033) from gir-files (???)
// DO NOT EDIT
use PlayerVideoRenderer;
......@@ -6,6 +6,7 @@ use ffi;
use glib;
use glib::Value;
use glib::object::IsA;
use glib::signal::SignalHandlerId;
use glib::signal::connect;
use glib::translate::*;
use glib_ffi;
......@@ -78,7 +79,7 @@ impl PlayerVideoOverlayVideoRenderer {
// unsafe { TODO: call ffi::gst_player_video_overlay_video_renderer_new_with_sink() }
//}
pub fn connect_property_video_sink_notify<F: Fn(&PlayerVideoOverlayVideoRenderer) + Send + Sync + 'static>(&self, f: F) -> u64 {
pub fn connect_property_video_sink_notify<F: Fn(&PlayerVideoOverlayVideoRenderer) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId {
unsafe {
let f: Box_<Box_<Fn(&PlayerVideoOverlayVideoRenderer) + Send + Sync + 'static>> = Box_::new(Box_::new(f));
connect(self.to_glib_none().0, "notify::video-sink",
......@@ -86,7 +87,7 @@ impl PlayerVideoOverlayVideoRenderer {
}
}
pub fn connect_property_window_handle_notify<F: Fn(&PlayerVideoOverlayVideoRenderer) + Send + Sync + 'static>(&self, f: F) -> u64 {
pub fn connect_property_window_handle_notify<F: Fn(&PlayerVideoOverlayVideoRenderer) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId {
unsafe {
let f: Box_<Box_<Fn(&PlayerVideoOverlayVideoRenderer) + Send + Sync + 'static>> = Box_::new(Box_::new(f));
connect(self.to_glib_none().0, "notify::window-handle",
......@@ -101,11 +102,11 @@ unsafe impl Sync for PlayerVideoOverlayVideoRenderer {}
unsafe extern "C" fn notify_video_sink_trampoline(this: *mut ffi::GstPlayerVideoOverlayVideoRenderer, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) {
callback_guard!();
let f: &&(Fn(&PlayerVideoOverlayVideoRenderer) + Send + Sync + 'static) = transmute(f);
f(&from_glib_none(this))
f(&from_glib_borrow(this))
}
unsafe extern "C" fn notify_window_handle_trampoline(this: *mut ffi::GstPlayerVideoOverlayVideoRenderer, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) {
callback_guard!();
let f: &&(Fn(&PlayerVideoOverlayVideoRenderer) + Send + Sync + 'static) = transmute(f);
f(&from_glib_none(this))
f(&from_glib_borrow(this))
}
// This file was generated by gir (e43d6c3) from gir-files (???)
// This file was generated by gir (6a48033) from gir-files (???)
// DO NOT EDIT
use ffi;
......
// This file was generated by gir (e43d6c3) from gir-files (???)
// This file was generated by gir (6a48033) from gir-files (???)
// DO NOT EDIT
use ffi;
......
// This file was generated by gir (e43d6c3) from gir-files (???)
// This file was generated by gir (6a48033) from gir-files (???)
// DO NOT EDIT
use ffi;
......
// This file was generated by gir (e43d6c3) from gir-files (???)
// This file was generated by gir (6a48033) from gir-files (???)
// DO NOT EDIT
use ffi;
......
// This file was generated by gir (e43d6c3) from gir-files (???)
// This file was generated by gir (6a48033) from gir-files (???)
// DO NOT EDIT
mod video_overlay;
......
// This file was generated by gir (e43d6c3) from gir-files (???)
// This file was generated by gir (6a48033) from gir-files (???)
// DO NOT EDIT
use ffi;
......
// This file was generated by gir (e43d6c3) from gir-files (???)
// This file was generated by gir (6a48033) from gir-files (???)
// DO NOT EDIT
#[allow(unused_imports)]
......
// This file was generated by gir (e43d6c3) from gir-files (???)
// This file was generated by gir (6a48033) from gir-files (???)
// DO NOT EDIT
use ChildProxy;
......@@ -14,6 +14,7 @@ use glib;
use glib::Value;
use glib::object::Downcast;
use glib::object::IsA;
use glib::signal::SignalHandlerId;
use glib::signal::connect;
use glib::translate::*;
use glib_ffi;
......@@ -93,20 +94,20 @@ pub trait BinExt {
fn set_property_message_forward(&self, message_forward: bool);
#[cfg(feature = "v1_10")]
fn connect_deep_element_added<F: Fn(&Self, &Bin, &Element) + Send + Sync + 'static>(&self, f: F) -> u64;
fn connect_deep_element_added<F: Fn(&Self, &Bin, &Element) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId;
#[cfg(feature = "v1_10")]
fn connect_deep_element_removed<F: Fn(&Self, &Bin, &Element) + Send + Sync + 'static>(&self, f: F) -> u64;
fn connect_deep_element_removed<F: Fn(&Self, &Bin, &Element) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId;
fn connect_do_latency<F: Fn(&Self) -> bool + Send + Sync + 'static>(&self, f: F) -> u64;
fn connect_do_latency<F: Fn(&Self) -> bool + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId;
fn connect_element_added<F: Fn(&Self, &Element) + Send + Sync + 'static>(&self, f: F) -> u64;
fn connect_element_added<F: Fn(&Self, &Element) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId;
fn connect_element_removed<F: Fn(&Self, &Element) + Send + Sync + 'static>(&self, f: F) -> u64;
fn connect_element_removed<F: Fn(&Self, &Element) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId;
fn connect_property_async_handling_notify<F: Fn(&Self) + Send + Sync + 'static>(&self, f: F) -> u64;
fn connect_property_async_handling_notify<F: Fn(&Self) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId;
fn connect_property_message_forward_notify<F: Fn(&Self) + Send + Sync + 'static>(&self, f: F) -> u64;
fn connect_property_message_forward_notify<F: Fn(&Self) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId;
}
impl<O: IsA<Bin> + IsA<glib::object::Object>> BinExt for O {
......@@ -245,7 +246,7 @@ impl<O: IsA<Bin> + IsA<glib::object::Object>> BinExt for O {
}
#[cfg(feature = "v1_10")]
fn connect_deep_element_added<F: Fn(&Self, &Bin, &Element) + Send + Sync + 'static>(&self, f: F) -> u64 {
fn connect_deep_element_added<F: Fn(&Self, &Bin, &Element) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId {
unsafe {
let f: Box_<Box_<Fn(&Self, &Bin, &Element) + Send + Sync + 'static>> = Box_::new(Box_::new(f));
connect(self.to_glib_none().0, "deep-element-added",
......@@ -254,7 +255,7 @@ impl<O: IsA<Bin> + IsA<glib::object::Object>> BinExt for O {
}
#[cfg(feature = "v1_10")]
fn connect_deep_element_removed<F: Fn(&Self, &Bin, &Element) + Send + Sync + 'static>(&self, f: F) -> u64 {
fn connect_deep_element_removed<F: Fn(&Self, &Bin, &Element) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId {
unsafe {
let f: Box_<Box_<Fn(&Self, &Bin, &Element) + Send + Sync + 'static>> = Box_::new(Box_::new(f));
connect(self.to_glib_none().0, "deep-element-removed",
......@@ -262,7 +263,7 @@ impl<O: IsA<Bin> + IsA<glib::object::Object>> BinExt for O {
}
}
fn connect_do_latency<F: Fn(&Self) -> bool + Send + Sync + 'static>(&self, f: F) -> u64 {
fn connect_do_latency<F: Fn(&Self) -> bool + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId {
unsafe {
let f: Box_<Box_<Fn(&Self) -> bool + Send + Sync + 'static>> = Box_::new(Box_::new(f));
connect(self.to_glib_none().0, "do-latency",
......@@ -270,7 +271,7 @@ impl<O: IsA<Bin> + IsA<glib::object::Object>> BinExt for O {
}
}
fn connect_element_added<F: Fn(&Self, &Element) + Send + Sync + 'static>(&self, f: F) -> u64 {
fn connect_element_added<F: Fn(&Self, &Element) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId {
unsafe {
let f: Box_<Box_<Fn(&Self, &Element) + Send + Sync + 'static>> = Box_::new(Box_::new(f));
connect(self.to_glib_none().0, "element-added",
......@@ -278,7 +279,7 @@ impl<O: IsA<Bin> + IsA<glib::object::Object>> BinExt for O {
}
}
fn connect_element_removed<F: Fn(&Self, &Element) + Send + Sync + 'static>(&self, f: F) -> u64 {
fn connect_element_removed<F: Fn(&Self, &Element) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId {
unsafe {
let f: Box_<Box_<Fn(&Self, &Element) + Send + Sync + 'static>> = Box_::new(Box_::new(f));
connect(self.to_glib_none().0, "element-removed",
......@@ -286,7 +287,7 @@ impl<O: IsA<Bin> + IsA<glib::object::Object>> BinExt for O {
}
}
fn connect_property_async_handling_notify<F: Fn(&Self) + Send + Sync + 'static>(&self, f: F) -> u64 {
fn connect_property_async_handling_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::async-handling",
......@@ -294,7 +295,7 @@ impl<O: IsA<Bin> + IsA<glib::object::Object>> BinExt for O {
}
}
fn connect_property_message_forward_notify<F: Fn(&Self) + Send + Sync + 'static>(&self, f: F) -> u64 {
fn connect_property_message_forward_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::message-forward",
......@@ -308,7 +309,7 @@ unsafe extern "C" fn deep_element_added_trampoline<P>(this: *mut ffi::GstBin, su
where P: IsA<Bin> {
callback_guard!();
let f: &&(Fn(&P, &Bin, &Element) + Send + Sync + 'static) = transmute(f);
f(&Bin::from_glib_none(this).downcast_unchecked(), &from_glib_none(sub_bin), &from_glib_none(element))
f(&Bin::from_glib_borrow(this).downcast_unchecked(), &from_glib_borrow(sub_bin), &from_glib_borrow(element))
}
#[cfg(feature = "v1_10")]
......@@ -316,40 +317,40 @@ unsafe extern "C" fn deep_element_removed_trampoline<P>(this: *mut ffi::GstBin,
where P: IsA<Bin> {
callback_guard!();
let f: &&(Fn(&P, &Bin, &Element) + Send + Sync + 'static) = transmute(f);
f(&Bin::from_glib_none(this).downcast_unchecked(), &from_glib_none(sub_bin), &from_glib_none(element))
f(&Bin::from_glib_borrow(this).downcast_unchecked(), &from_glib_borrow(sub_bin), &from_glib_borrow(element))
}
unsafe extern "C" fn do_latency_trampoline<P>(this: *mut ffi::GstBin, f: glib_ffi::gpointer) -> glib_ffi::gboolean
where P: IsA<Bin> {
callback_guard!();
let f: &&(Fn(&P) -> bool + Send + Sync + 'static) = transmute(f);
f(&Bin::from_glib_none(this).downcast_unchecked()).to_glib()
f(&Bin::from_glib_borrow(this).downcast_unchecked()).to_glib()
}
unsafe extern "C" fn element_added_trampoline<P>(this: *mut ffi::GstBin, element: *mut ffi::GstElement, f: glib_ffi::gpointer)
where P: IsA<Bin> {
callback_guard!();
let f: &&(Fn(&P, &Element) + Send + Sync + 'static) = transmute(f);
f(&Bin::from_glib_none(this).downcast_unchecked(), &from_glib_none(element))
f(&Bin::from_glib_borrow(this).downcast_unchecked(), &from_glib_borrow(element))
}
unsafe extern "C" fn element_removed_trampoline<P>(this: *mut ffi::GstBin, element: *mut ffi::GstElement, f: glib_ffi::gpointer)
where P: IsA<Bin> {
callback_guard!();
let f: &&(Fn(&P, &Element) + Send + Sync + 'static) = transmute(f);
f(&Bin::from_glib_none(this).downcast_unchecked(), &from_glib_none(element))
f(&Bin::from_glib_borrow(this).downcast_unchecked(), &from_glib_borrow(element))
}
unsafe extern "C" fn notify_async_handling_trampoline<P>(this: *mut ffi::GstBin, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
where P: IsA<Bin> {
callback_guard!();
let f: &&(Fn(&P) + Send + Sync + 'static) = transmute(f);
f(&Bin::from_glib_none(this).downcast_unchecked())
f(&Bin::from_glib_borrow(this).downcast_unchecked())
}
unsafe extern "C" fn notify_message_forward_trampoline<P>(this: *mut ffi::GstBin, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
where P: IsA<Bin> {
callback_guard!();
let f: &&(Fn(&P) + Send + Sync + 'static) = transmute(f);
f(&Bin::from_glib_none(this).downcast_unchecked())
f(&Bin::from_glib_borrow(this).downcast_unchecked())
}
// This file was generated by gir (e43d6c3) from gir-files (???)
// This file was generated by gir (6a48033) from gir-files (???)