Regenerate code with new GIR and suppress various clippy warnings in generated code

Now only a few are left in the manually written code.
This commit is contained in:
Sebastian Dröge 2017-08-03 21:56:39 +03:00
parent e218f7a93c
commit 86fc001e35
35 changed files with 97 additions and 117 deletions

View file

@ -42,6 +42,26 @@ trait = false
# Has getter function # Has getter function
ignore = true ignore = true
[[object.signal]]
name = "pull-sample"
# Action signal
ignore = true
[[object.signal]]
name = "pull-preroll"
# Action signal
ignore = true
[[object.signal]]
name = "try-pull-sample"
# Action signal
ignore = true
[[object.signal]]
name = "try-pull-preroll"
# Action signal
ignore = true
[[object]] [[object]]
name = "GstApp.AppSrc" name = "GstApp.AppSrc"
status = "generate" status = "generate"

View file

@ -1,4 +1,4 @@
// This file was generated by gir (f00d658) from gir-files (???) // This file was generated by gir (ede90a4) from gir-files (???)
// DO NOT EDIT // DO NOT EDIT
use ffi; use ffi;
@ -158,40 +158,6 @@ impl AppSink {
transmute(new_sample_trampoline as usize), Box_::into_raw(f) as *mut _) transmute(new_sample_trampoline as usize), Box_::into_raw(f) as *mut _)
} }
} }
pub fn connect_pull_preroll<F: Fn(&AppSink) -> gst::Sample + Send + Sync + 'static>(&self, f: F) -> u64 {
unsafe {
let f: Box_<Box_<Fn(&AppSink) -> gst::Sample + Send + Sync + 'static>> = Box_::new(Box_::new(f));
connect(self.to_glib_none().0, "pull-preroll",
transmute(pull_preroll_trampoline as usize), Box_::into_raw(f) as *mut _)
}
}
pub fn connect_pull_sample<F: Fn(&AppSink) -> gst::Sample + Send + Sync + 'static>(&self, f: F) -> u64 {
unsafe {
let f: Box_<Box_<Fn(&AppSink) -> gst::Sample + Send + Sync + 'static>> = Box_::new(Box_::new(f));
connect(self.to_glib_none().0, "pull-sample",
transmute(pull_sample_trampoline as usize), Box_::into_raw(f) as *mut _)
}
}
#[cfg(feature = "v1_10")]
pub fn connect_try_pull_preroll<F: Fn(&AppSink, u64) -> gst::Sample + Send + Sync + 'static>(&self, f: F) -> u64 {
unsafe {
let f: Box_<Box_<Fn(&AppSink, u64) -> gst::Sample + Send + Sync + 'static>> = Box_::new(Box_::new(f));
connect(self.to_glib_none().0, "try-pull-preroll",
transmute(try_pull_preroll_trampoline as usize), Box_::into_raw(f) as *mut _)
}
}
#[cfg(feature = "v1_10")]
pub fn connect_try_pull_sample<F: Fn(&AppSink, u64) -> gst::Sample + Send + Sync + 'static>(&self, f: F) -> u64 {
unsafe {
let f: Box_<Box_<Fn(&AppSink, u64) -> gst::Sample + Send + Sync + 'static>> = Box_::new(Box_::new(f));
connect(self.to_glib_none().0, "try-pull-sample",
transmute(try_pull_sample_trampoline as usize), Box_::into_raw(f) as *mut _)
}
}
} }
unsafe impl Send for AppSink {} unsafe impl Send for AppSink {}
@ -199,44 +165,18 @@ unsafe impl Sync for AppSink {}
unsafe extern "C" fn eos_trampoline(this: *mut ffi::GstAppSink, f: glib_ffi::gpointer) { unsafe extern "C" fn eos_trampoline(this: *mut ffi::GstAppSink, f: glib_ffi::gpointer) {
callback_guard!(); callback_guard!();
let f: &Box_<Fn(&AppSink) + Send + Sync + 'static> = transmute(f); let f: &&(Fn(&AppSink) + Send + Sync + 'static) = transmute(f);
f(&from_glib_none(this)) f(&from_glib_none(this))
} }
unsafe extern "C" fn new_preroll_trampoline(this: *mut ffi::GstAppSink, f: glib_ffi::gpointer) -> gst_ffi::GstFlowReturn { unsafe extern "C" fn new_preroll_trampoline(this: *mut ffi::GstAppSink, f: glib_ffi::gpointer) -> gst_ffi::GstFlowReturn {
callback_guard!(); callback_guard!();
let f: &Box_<Fn(&AppSink) -> gst::FlowReturn + Send + Sync + 'static> = transmute(f); let f: &&(Fn(&AppSink) -> gst::FlowReturn + Send + Sync + 'static) = transmute(f);
f(&from_glib_none(this)).to_glib() f(&from_glib_none(this)).to_glib()
} }
unsafe extern "C" fn new_sample_trampoline(this: *mut ffi::GstAppSink, f: glib_ffi::gpointer) -> gst_ffi::GstFlowReturn { unsafe extern "C" fn new_sample_trampoline(this: *mut ffi::GstAppSink, f: glib_ffi::gpointer) -> gst_ffi::GstFlowReturn {
callback_guard!(); callback_guard!();
let f: &Box_<Fn(&AppSink) -> gst::FlowReturn + Send + Sync + 'static> = transmute(f); let f: &&(Fn(&AppSink) -> gst::FlowReturn + Send + Sync + 'static) = transmute(f);
f(&from_glib_none(this)).to_glib() f(&from_glib_none(this)).to_glib()
} }
unsafe extern "C" fn pull_preroll_trampoline(this: *mut ffi::GstAppSink, f: glib_ffi::gpointer) -> *mut gst_ffi::GstSample {
callback_guard!();
let f: &Box_<Fn(&AppSink) -> gst::Sample + Send + Sync + 'static> = transmute(f);
f(&from_glib_none(this)).to_glib_full()
}
unsafe extern "C" fn pull_sample_trampoline(this: *mut ffi::GstAppSink, f: glib_ffi::gpointer) -> *mut gst_ffi::GstSample {
callback_guard!();
let f: &Box_<Fn(&AppSink) -> gst::Sample + Send + Sync + 'static> = transmute(f);
f(&from_glib_none(this)).to_glib_full()
}
#[cfg(feature = "v1_10")]
unsafe extern "C" fn try_pull_preroll_trampoline(this: *mut ffi::GstAppSink, timeout: u64, f: glib_ffi::gpointer) -> *mut gst_ffi::GstSample {
callback_guard!();
let f: &Box_<Fn(&AppSink, u64) -> gst::Sample + Send + Sync + 'static> = transmute(f);
f(&from_glib_none(this), timeout).to_glib_full()
}
#[cfg(feature = "v1_10")]
unsafe extern "C" fn try_pull_sample_trampoline(this: *mut ffi::GstAppSink, timeout: u64, f: glib_ffi::gpointer) -> *mut gst_ffi::GstSample {
callback_guard!();
let f: &Box_<Fn(&AppSink, u64) -> gst::Sample + Send + Sync + 'static> = transmute(f);
f(&from_glib_none(this), timeout).to_glib_full()
}

View file

@ -1,4 +1,4 @@
// This file was generated by gir (f00d658) from gir-files (???) // This file was generated by gir (ede90a4) from gir-files (???)
// DO NOT EDIT // DO NOT EDIT
use AppStreamType; use AppStreamType;
@ -226,18 +226,18 @@ unsafe impl Sync for AppSrc {}
unsafe extern "C" fn enough_data_trampoline(this: *mut ffi::GstAppSrc, f: glib_ffi::gpointer) { unsafe extern "C" fn enough_data_trampoline(this: *mut ffi::GstAppSrc, f: glib_ffi::gpointer) {
callback_guard!(); callback_guard!();
let f: &Box_<Fn(&AppSrc) + Send + Sync + 'static> = transmute(f); let f: &&(Fn(&AppSrc) + Send + Sync + 'static) = transmute(f);
f(&from_glib_none(this)) f(&from_glib_none(this))
} }
unsafe extern "C" fn need_data_trampoline(this: *mut ffi::GstAppSrc, length: libc::c_uint, f: glib_ffi::gpointer) { unsafe extern "C" fn need_data_trampoline(this: *mut ffi::GstAppSrc, length: libc::c_uint, f: glib_ffi::gpointer) {
callback_guard!(); callback_guard!();
let f: &Box_<Fn(&AppSrc, u32) + Send + Sync + 'static> = transmute(f); let f: &&(Fn(&AppSrc, u32) + Send + Sync + 'static) = transmute(f);
f(&from_glib_none(this), length) f(&from_glib_none(this), length)
} }
unsafe extern "C" fn seek_data_trampoline(this: *mut ffi::GstAppSrc, offset: u64, f: glib_ffi::gpointer) -> glib_ffi::gboolean { unsafe extern "C" fn seek_data_trampoline(this: *mut ffi::GstAppSrc, offset: u64, f: glib_ffi::gpointer) -> glib_ffi::gboolean {
callback_guard!(); callback_guard!();
let f: &Box_<Fn(&AppSrc, u64) -> bool + Send + Sync + 'static> = transmute(f); let f: &&(Fn(&AppSrc, u64) -> bool + Send + Sync + 'static) = transmute(f);
f(&from_glib_none(this), offset).to_glib() f(&from_glib_none(this), offset).to_glib()
} }

View file

@ -1,4 +1,4 @@
// This file was generated by gir (f00d658) from gir-files (???) // This file was generated by gir (ede90a4) from gir-files (???)
// DO NOT EDIT // DO NOT EDIT
use ffi; use ffi;

View file

@ -1,4 +1,4 @@
// This file was generated by gir (f00d658) from gir-files (???) // This file was generated by gir (ede90a4) from gir-files (???)
// DO NOT EDIT // DO NOT EDIT
use ffi; use ffi;

View file

@ -1,4 +1,4 @@
// This file was generated by gir (f00d658) from gir-files (???) // This file was generated by gir (ede90a4) from gir-files (???)
// DO NOT EDIT // DO NOT EDIT
mod app_sink; mod app_sink;

View file

@ -30,6 +30,10 @@ macro_rules! skip_assert_initialized {
pub use glib::{Cast, Continue, Error, IsA, StaticType, ToValue, Type, TypedValue, Value}; pub use glib::{Cast, Continue, Error, IsA, StaticType, ToValue, Type, TypedValue, Value};
#[cfg_attr(feature = "cargo-clippy", allow(unreadable_literal))]
#[cfg_attr(feature = "cargo-clippy", allow(transmute_ptr_to_ref))]
#[cfg_attr(feature = "cargo-clippy", allow(too_many_arguments))]
#[cfg_attr(feature = "cargo-clippy", allow(match_same_arms))]
mod auto; mod auto;
pub use auto::*; pub use auto::*;
pub use auto::traits::*; pub use auto::traits::*;

View file

@ -1,4 +1,4 @@
// This file was generated by gir (ef05cf1) from gir-files (???) // This file was generated by gir (ede90a4) from gir-files (???)
// DO NOT EDIT // DO NOT EDIT
#[allow(unused_imports)] #[allow(unused_imports)]

View file

@ -1,4 +1,4 @@
// This file was generated by gir (ef05cf1) from gir-files (???) // This file was generated by gir (ede90a4) from gir-files (???)
// DO NOT EDIT // DO NOT EDIT
use ChildProxy; use ChildProxy;
@ -281,7 +281,7 @@ impl<O: IsA<Bin> + IsA<glib::object::Object>> BinExt for O {
unsafe extern "C" fn deep_element_added_trampoline<P>(this: *mut ffi::GstBin, sub_bin: *mut ffi::GstBin, element: *mut ffi::GstElement, f: glib_ffi::gpointer) unsafe extern "C" fn deep_element_added_trampoline<P>(this: *mut ffi::GstBin, sub_bin: *mut ffi::GstBin, element: *mut ffi::GstElement, f: glib_ffi::gpointer)
where P: IsA<Bin> { where P: IsA<Bin> {
callback_guard!(); callback_guard!();
let f: &Box_<Fn(&P, &Bin, &Element) + Send + Sync + 'static> = transmute(f); 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_none(this).downcast_unchecked(), &from_glib_none(sub_bin), &from_glib_none(element))
} }
@ -289,27 +289,27 @@ where P: IsA<Bin> {
unsafe extern "C" fn deep_element_removed_trampoline<P>(this: *mut ffi::GstBin, sub_bin: *mut ffi::GstBin, element: *mut ffi::GstElement, f: glib_ffi::gpointer) unsafe extern "C" fn deep_element_removed_trampoline<P>(this: *mut ffi::GstBin, sub_bin: *mut ffi::GstBin, element: *mut ffi::GstElement, f: glib_ffi::gpointer)
where P: IsA<Bin> { where P: IsA<Bin> {
callback_guard!(); callback_guard!();
let f: &Box_<Fn(&P, &Bin, &Element) + Send + Sync + 'static> = transmute(f); 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_none(this).downcast_unchecked(), &from_glib_none(sub_bin), &from_glib_none(element))
} }
unsafe extern "C" fn do_latency_trampoline<P>(this: *mut ffi::GstBin, f: glib_ffi::gpointer) -> glib_ffi::gboolean unsafe extern "C" fn do_latency_trampoline<P>(this: *mut ffi::GstBin, f: glib_ffi::gpointer) -> glib_ffi::gboolean
where P: IsA<Bin> { where P: IsA<Bin> {
callback_guard!(); callback_guard!();
let f: &Box_<Fn(&P) -> bool + Send + Sync + 'static> = transmute(f); let f: &&(Fn(&P) -> bool + Send + Sync + 'static) = transmute(f);
f(&Bin::from_glib_none(this).downcast_unchecked()).to_glib() f(&Bin::from_glib_none(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) unsafe extern "C" fn element_added_trampoline<P>(this: *mut ffi::GstBin, element: *mut ffi::GstElement, f: glib_ffi::gpointer)
where P: IsA<Bin> { where P: IsA<Bin> {
callback_guard!(); callback_guard!();
let f: &Box_<Fn(&P, &Element) + Send + Sync + 'static> = transmute(f); 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_none(this).downcast_unchecked(), &from_glib_none(element))
} }
unsafe extern "C" fn element_removed_trampoline<P>(this: *mut ffi::GstBin, element: *mut ffi::GstElement, f: glib_ffi::gpointer) unsafe extern "C" fn element_removed_trampoline<P>(this: *mut ffi::GstBin, element: *mut ffi::GstElement, f: glib_ffi::gpointer)
where P: IsA<Bin> { where P: IsA<Bin> {
callback_guard!(); callback_guard!();
let f: &Box_<Fn(&P, &Element) + Send + Sync + 'static> = transmute(f); 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_none(this).downcast_unchecked(), &from_glib_none(element))
} }

View file

@ -1,4 +1,4 @@
// This file was generated by gir (ef05cf1) from gir-files (???) // This file was generated by gir (ede90a4) from gir-files (???)
// DO NOT EDIT // DO NOT EDIT
use ClockTime; use ClockTime;
@ -133,17 +133,23 @@ impl Bus {
} }
} }
impl Default for Bus {
fn default() -> Self {
Self::new()
}
}
unsafe impl Send for Bus {} unsafe impl Send for Bus {}
unsafe impl Sync for Bus {} unsafe impl Sync for Bus {}
unsafe extern "C" fn message_trampoline(this: *mut ffi::GstBus, message: *mut ffi::GstMessage, f: glib_ffi::gpointer) { unsafe extern "C" fn message_trampoline(this: *mut ffi::GstBus, message: *mut ffi::GstMessage, f: glib_ffi::gpointer) {
callback_guard!(); callback_guard!();
let f: &Box_<Fn(&Bus, &Message) + Send + Sync + 'static> = transmute(f); let f: &&(Fn(&Bus, &Message) + Send + Sync + 'static) = transmute(f);
f(&from_glib_none(this), &from_glib_none(message)) f(&from_glib_none(this), &from_glib_none(message))
} }
unsafe extern "C" fn sync_message_trampoline(this: *mut ffi::GstBus, message: *mut ffi::GstMessage, f: glib_ffi::gpointer) { unsafe extern "C" fn sync_message_trampoline(this: *mut ffi::GstBus, message: *mut ffi::GstMessage, f: glib_ffi::gpointer) {
callback_guard!(); callback_guard!();
let f: &Box_<Fn(&Bus, &Message) + Send + Sync + 'static> = transmute(f); let f: &&(Fn(&Bus, &Message) + Send + Sync + 'static) = transmute(f);
f(&from_glib_none(this), &from_glib_none(message)) f(&from_glib_none(this), &from_glib_none(message))
} }

View file

@ -1,4 +1,4 @@
// This file was generated by gir (ef05cf1) from gir-files (???) // This file was generated by gir (ede90a4) from gir-files (???)
// DO NOT EDIT // DO NOT EDIT
use ffi; use ffi;
@ -135,13 +135,13 @@ impl<O: IsA<ChildProxy> + IsA<glib::object::Object>> ChildProxyExt for O {
unsafe extern "C" fn child_added_trampoline<P>(this: *mut ffi::GstChildProxy, object: *mut gobject_ffi::GObject, name: *mut libc::c_char, f: glib_ffi::gpointer) unsafe extern "C" fn child_added_trampoline<P>(this: *mut ffi::GstChildProxy, object: *mut gobject_ffi::GObject, name: *mut libc::c_char, f: glib_ffi::gpointer)
where P: IsA<ChildProxy> { where P: IsA<ChildProxy> {
callback_guard!(); callback_guard!();
let f: &Box_<Fn(&P, &glib::Object, &str) + Send + Sync + 'static> = transmute(f); let f: &&(Fn(&P, &glib::Object, &str) + Send + Sync + 'static) = transmute(f);
f(&ChildProxy::from_glib_none(this).downcast_unchecked(), &from_glib_none(object), &String::from_glib_none(name)) f(&ChildProxy::from_glib_none(this).downcast_unchecked(), &from_glib_none(object), &String::from_glib_none(name))
} }
unsafe extern "C" fn child_removed_trampoline<P>(this: *mut ffi::GstChildProxy, object: *mut gobject_ffi::GObject, name: *mut libc::c_char, f: glib_ffi::gpointer) unsafe extern "C" fn child_removed_trampoline<P>(this: *mut ffi::GstChildProxy, object: *mut gobject_ffi::GObject, name: *mut libc::c_char, f: glib_ffi::gpointer)
where P: IsA<ChildProxy> { where P: IsA<ChildProxy> {
callback_guard!(); callback_guard!();
let f: &Box_<Fn(&P, &glib::Object, &str) + Send + Sync + 'static> = transmute(f); let f: &&(Fn(&P, &glib::Object, &str) + Send + Sync + 'static) = transmute(f);
f(&ChildProxy::from_glib_none(this).downcast_unchecked(), &from_glib_none(object), &String::from_glib_none(name)) f(&ChildProxy::from_glib_none(this).downcast_unchecked(), &from_glib_none(object), &String::from_glib_none(name))
} }

View file

@ -1,4 +1,4 @@
// This file was generated by gir (ef05cf1) from gir-files (???) // This file was generated by gir (ede90a4) from gir-files (???)
// DO NOT EDIT // DO NOT EDIT
use ClockTime; use ClockTime;
@ -302,6 +302,6 @@ impl<O: IsA<Clock> + IsA<glib::object::Object>> ClockExt for O {
unsafe extern "C" fn synced_trampoline<P>(this: *mut ffi::GstClock, synced: glib_ffi::gboolean, f: glib_ffi::gpointer) unsafe extern "C" fn synced_trampoline<P>(this: *mut ffi::GstClock, synced: glib_ffi::gboolean, f: glib_ffi::gpointer)
where P: IsA<Clock> { where P: IsA<Clock> {
callback_guard!(); callback_guard!();
let f: &Box_<Fn(&P, bool) + Send + Sync + 'static> = transmute(f); let f: &&(Fn(&P, bool) + Send + Sync + 'static) = transmute(f);
f(&Clock::from_glib_none(this).downcast_unchecked(), from_glib(synced)) f(&Clock::from_glib_none(this).downcast_unchecked(), from_glib(synced))
} }

View file

@ -1,4 +1,4 @@
// This file was generated by gir (ef05cf1) from gir-files (???) // This file was generated by gir (ede90a4) from gir-files (???)
// DO NOT EDIT // DO NOT EDIT
use ffi; use ffi;

View file

@ -1,4 +1,4 @@
// This file was generated by gir (ef05cf1) from gir-files (???) // This file was generated by gir (ede90a4) from gir-files (???)
// DO NOT EDIT // DO NOT EDIT
use Caps; use Caps;
@ -112,6 +112,6 @@ impl<O: IsA<Device> + IsA<glib::object::Object>> DeviceExt for O {
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)
where P: IsA<Device> { where P: IsA<Device> {
callback_guard!(); callback_guard!();
let f: &Box_<Fn(&P) + Send + Sync + 'static> = transmute(f); let f: &&(Fn(&P) + Send + Sync + 'static) = transmute(f);
f(&Device::from_glib_none(this).downcast_unchecked()) f(&Device::from_glib_none(this).downcast_unchecked())
} }

View file

@ -1,4 +1,4 @@
// This file was generated by gir (ef05cf1) from gir-files (???) // This file was generated by gir (ede90a4) from gir-files (???)
// DO NOT EDIT // DO NOT EDIT
use Bus; use Bus;
@ -30,6 +30,12 @@ impl DeviceMonitor {
} }
} }
impl Default for DeviceMonitor {
fn default() -> Self {
Self::new()
}
}
unsafe impl Send for DeviceMonitor {} unsafe impl Send for DeviceMonitor {}
unsafe impl Sync for DeviceMonitor {} unsafe impl Sync for DeviceMonitor {}

View file

@ -1,4 +1,4 @@
// This file was generated by gir (ef05cf1) from gir-files (???) // This file was generated by gir (ede90a4) from gir-files (???)
// DO NOT EDIT // DO NOT EDIT
use Bus; use Bus;
@ -157,13 +157,13 @@ impl<O: IsA<DeviceProvider> + IsA<glib::object::Object>> DeviceProviderExt for O
unsafe extern "C" fn provider_hidden_trampoline<P>(this: *mut ffi::GstDeviceProvider, object: *mut libc::c_char, f: glib_ffi::gpointer) unsafe extern "C" fn provider_hidden_trampoline<P>(this: *mut ffi::GstDeviceProvider, object: *mut libc::c_char, f: glib_ffi::gpointer)
where P: IsA<DeviceProvider> { where P: IsA<DeviceProvider> {
callback_guard!(); callback_guard!();
let f: &Box_<Fn(&P, &str) + Send + Sync + 'static> = transmute(f); let f: &&(Fn(&P, &str) + Send + Sync + 'static) = transmute(f);
f(&DeviceProvider::from_glib_none(this).downcast_unchecked(), &String::from_glib_none(object)) f(&DeviceProvider::from_glib_none(this).downcast_unchecked(), &String::from_glib_none(object))
} }
unsafe extern "C" fn provider_unhidden_trampoline<P>(this: *mut ffi::GstDeviceProvider, object: *mut libc::c_char, f: glib_ffi::gpointer) unsafe extern "C" fn provider_unhidden_trampoline<P>(this: *mut ffi::GstDeviceProvider, object: *mut libc::c_char, f: glib_ffi::gpointer)
where P: IsA<DeviceProvider> { where P: IsA<DeviceProvider> {
callback_guard!(); callback_guard!();
let f: &Box_<Fn(&P, &str) + Send + Sync + 'static> = transmute(f); let f: &&(Fn(&P, &str) + Send + Sync + 'static) = transmute(f);
f(&DeviceProvider::from_glib_none(this).downcast_unchecked(), &String::from_glib_none(object)) f(&DeviceProvider::from_glib_none(this).downcast_unchecked(), &String::from_glib_none(object))
} }

View file

@ -1,4 +1,4 @@
// This file was generated by gir (ef05cf1) from gir-files (???) // This file was generated by gir (ede90a4) from gir-files (???)
// DO NOT EDIT // DO NOT EDIT
use DeviceProvider; use DeviceProvider;

View file

@ -1,4 +1,4 @@
// This file was generated by gir (ef05cf1) from gir-files (???) // This file was generated by gir (ede90a4) from gir-files (???)
// DO NOT EDIT // DO NOT EDIT
use Bus; use Bus;
@ -597,20 +597,20 @@ impl<O: IsA<Element> + IsA<glib::object::Object>> ElementExt for O {
unsafe extern "C" fn no_more_pads_trampoline<P>(this: *mut ffi::GstElement, f: glib_ffi::gpointer) unsafe extern "C" fn no_more_pads_trampoline<P>(this: *mut ffi::GstElement, f: glib_ffi::gpointer)
where P: IsA<Element> { where P: IsA<Element> {
callback_guard!(); callback_guard!();
let f: &Box_<Fn(&P) + Send + Sync + 'static> = transmute(f); let f: &&(Fn(&P) + Send + Sync + 'static) = transmute(f);
f(&Element::from_glib_none(this).downcast_unchecked()) f(&Element::from_glib_none(this).downcast_unchecked())
} }
unsafe extern "C" fn pad_added_trampoline<P>(this: *mut ffi::GstElement, new_pad: *mut ffi::GstPad, f: glib_ffi::gpointer) unsafe extern "C" fn pad_added_trampoline<P>(this: *mut ffi::GstElement, new_pad: *mut ffi::GstPad, f: glib_ffi::gpointer)
where P: IsA<Element> { where P: IsA<Element> {
callback_guard!(); callback_guard!();
let f: &Box_<Fn(&P, &Pad) + Send + Sync + 'static> = transmute(f); let f: &&(Fn(&P, &Pad) + Send + Sync + 'static) = transmute(f);
f(&Element::from_glib_none(this).downcast_unchecked(), &from_glib_none(new_pad)) f(&Element::from_glib_none(this).downcast_unchecked(), &from_glib_none(new_pad))
} }
unsafe extern "C" fn pad_removed_trampoline<P>(this: *mut ffi::GstElement, old_pad: *mut ffi::GstPad, f: glib_ffi::gpointer) unsafe extern "C" fn pad_removed_trampoline<P>(this: *mut ffi::GstElement, old_pad: *mut ffi::GstPad, f: glib_ffi::gpointer)
where P: IsA<Element> { where P: IsA<Element> {
callback_guard!(); callback_guard!();
let f: &Box_<Fn(&P, &Pad) + Send + Sync + 'static> = transmute(f); let f: &&(Fn(&P, &Pad) + Send + Sync + 'static) = transmute(f);
f(&Element::from_glib_none(this).downcast_unchecked(), &from_glib_none(old_pad)) f(&Element::from_glib_none(this).downcast_unchecked(), &from_glib_none(old_pad))
} }

View file

@ -1,4 +1,4 @@
// This file was generated by gir (ef05cf1) from gir-files (???) // This file was generated by gir (ede90a4) from gir-files (???)
// DO NOT EDIT // DO NOT EDIT
use Caps; use Caps;

View file

@ -1,4 +1,4 @@
// This file was generated by gir (ef05cf1) from gir-files (???) // This file was generated by gir (ede90a4) from gir-files (???)
// DO NOT EDIT // DO NOT EDIT
use ffi; use ffi;

View file

@ -1,4 +1,4 @@
// This file was generated by gir (ef05cf1) from gir-files (???) // This file was generated by gir (ede90a4) from gir-files (???)
// DO NOT EDIT // DO NOT EDIT
use ffi; use ffi;

View file

@ -1,4 +1,4 @@
// This file was generated by gir (ef05cf1) from gir-files (???) // This file was generated by gir (ede90a4) from gir-files (???)
// DO NOT EDIT // DO NOT EDIT
use Bin; use Bin;

View file

@ -1,4 +1,4 @@
// This file was generated by gir (ef05cf1) from gir-files (???) // This file was generated by gir (ede90a4) from gir-files (???)
// DO NOT EDIT // DO NOT EDIT
use Object; use Object;

View file

@ -1,4 +1,4 @@
// This file was generated by gir (ef05cf1) from gir-files (???) // This file was generated by gir (ede90a4) from gir-files (???)
// DO NOT EDIT // DO NOT EDIT
mod bin; mod bin;

View file

@ -1,4 +1,4 @@
// This file was generated by gir (ef05cf1) from gir-files (???) // This file was generated by gir (ede90a4) from gir-files (???)
// DO NOT EDIT // DO NOT EDIT
use Caps; use Caps;
@ -621,13 +621,13 @@ impl<O: IsA<Pad> + IsA<glib::object::Object>> PadExt for O {
unsafe extern "C" fn linked_trampoline<P>(this: *mut ffi::GstPad, peer: *mut ffi::GstPad, f: glib_ffi::gpointer) unsafe extern "C" fn linked_trampoline<P>(this: *mut ffi::GstPad, peer: *mut ffi::GstPad, f: glib_ffi::gpointer)
where P: IsA<Pad> { where P: IsA<Pad> {
callback_guard!(); callback_guard!();
let f: &Box_<Fn(&P, &Pad) + Send + Sync + 'static> = transmute(f); let f: &&(Fn(&P, &Pad) + Send + Sync + 'static) = transmute(f);
f(&Pad::from_glib_none(this).downcast_unchecked(), &from_glib_none(peer)) f(&Pad::from_glib_none(this).downcast_unchecked(), &from_glib_none(peer))
} }
unsafe extern "C" fn unlinked_trampoline<P>(this: *mut ffi::GstPad, peer: *mut ffi::GstPad, f: glib_ffi::gpointer) unsafe extern "C" fn unlinked_trampoline<P>(this: *mut ffi::GstPad, peer: *mut ffi::GstPad, f: glib_ffi::gpointer)
where P: IsA<Pad> { where P: IsA<Pad> {
callback_guard!(); callback_guard!();
let f: &Box_<Fn(&P, &Pad) + Send + Sync + 'static> = transmute(f); let f: &&(Fn(&P, &Pad) + Send + Sync + 'static) = transmute(f);
f(&Pad::from_glib_none(this).downcast_unchecked(), &from_glib_none(peer)) f(&Pad::from_glib_none(this).downcast_unchecked(), &from_glib_none(peer))
} }

View file

@ -1,4 +1,4 @@
// This file was generated by gir (ef05cf1) from gir-files (???) // This file was generated by gir (ede90a4) from gir-files (???)
// DO NOT EDIT // DO NOT EDIT
use Caps; use Caps;
@ -103,6 +103,6 @@ impl<O: IsA<PadTemplate> + IsA<glib::object::Object>> PadTemplateExt for O {
unsafe extern "C" fn pad_created_trampoline<P>(this: *mut ffi::GstPadTemplate, pad: *mut ffi::GstPad, f: glib_ffi::gpointer) unsafe extern "C" fn pad_created_trampoline<P>(this: *mut ffi::GstPadTemplate, pad: *mut ffi::GstPad, f: glib_ffi::gpointer)
where P: IsA<PadTemplate> { where P: IsA<PadTemplate> {
callback_guard!(); callback_guard!();
let f: &Box_<Fn(&P, &Pad) + Send + Sync + 'static> = transmute(f); let f: &&(Fn(&P, &Pad) + Send + Sync + 'static) = transmute(f);
f(&PadTemplate::from_glib_none(this).downcast_unchecked(), &from_glib_none(pad)) f(&PadTemplate::from_glib_none(this).downcast_unchecked(), &from_glib_none(pad))
} }

View file

@ -1,4 +1,4 @@
// This file was generated by gir (ef05cf1) from gir-files (???) // This file was generated by gir (ede90a4) from gir-files (???)
// DO NOT EDIT // DO NOT EDIT
use Bin; use Bin;

View file

@ -1,4 +1,4 @@
// This file was generated by gir (ef05cf1) from gir-files (???) // This file was generated by gir (ede90a4) from gir-files (???)
// DO NOT EDIT // DO NOT EDIT
use Error; use Error;

View file

@ -1,4 +1,4 @@
// This file was generated by gir (ef05cf1) from gir-files (???) // This file was generated by gir (ede90a4) from gir-files (???)
// DO NOT EDIT // DO NOT EDIT
use ffi; use ffi;

View file

@ -1,4 +1,4 @@
// This file was generated by gir (ef05cf1) from gir-files (???) // This file was generated by gir (ede90a4) from gir-files (???)
// DO NOT EDIT // DO NOT EDIT
use Iterator; use Iterator;

View file

@ -1,4 +1,4 @@
// This file was generated by gir (ef05cf1) from gir-files (???) // This file was generated by gir (ede90a4) from gir-files (???)
// DO NOT EDIT // DO NOT EDIT
#[cfg(feature = "v1_10")] #[cfg(feature = "v1_10")]

View file

@ -1,4 +1,4 @@
// This file was generated by gir (ef05cf1) from gir-files (???) // This file was generated by gir (ede90a4) from gir-files (???)
// DO NOT EDIT // DO NOT EDIT
use Object; use Object;

View file

@ -1,4 +1,4 @@
// This file was generated by gir (ef05cf1) from gir-files (???) // This file was generated by gir (ede90a4) from gir-files (???)
// DO NOT EDIT // DO NOT EDIT
use Element; use Element;

View file

@ -1,4 +1,4 @@
// This file was generated by gir (ef05cf1) from gir-files (???) // This file was generated by gir (ede90a4) from gir-files (???)
// DO NOT EDIT // DO NOT EDIT
use Error; use Error;

View file

@ -43,6 +43,10 @@ macro_rules! skip_assert_initialized {
pub use glib::{Cast, Continue, Error, IsA, StaticType, ToValue, Type, TypedValue, Value}; pub use glib::{Cast, Continue, Error, IsA, StaticType, ToValue, Type, TypedValue, Value};
#[cfg_attr(feature = "cargo-clippy", allow(unreadable_literal))]
#[cfg_attr(feature = "cargo-clippy", allow(transmute_ptr_to_ref))]
#[cfg_attr(feature = "cargo-clippy", allow(too_many_arguments))]
#[cfg_attr(feature = "cargo-clippy", allow(match_same_arms))]
mod auto; mod auto;
pub use auto::*; pub use auto::*;
pub use auto::traits::*; pub use auto::traits::*;