From 86fc001e35faa3a35e77849953055c459d4bbce1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Thu, 3 Aug 2017 21:56:39 +0300 Subject: [PATCH] Regenerate code with new GIR and suppress various clippy warnings in generated code Now only a few are left in the manually written code. --- Gir_GstApp.toml | 20 ++++++ gstreamer-app/src/auto/app_sink.rs | 68 ++----------------- gstreamer-app/src/auto/app_src.rs | 8 +-- gstreamer-app/src/auto/enums.rs | 2 +- gstreamer-app/src/auto/flags.rs | 2 +- gstreamer-app/src/auto/mod.rs | 2 +- gstreamer-app/src/lib.rs | 4 ++ gstreamer/src/auto/alias.rs | 2 +- gstreamer/src/auto/bin.rs | 12 ++-- gstreamer/src/auto/bus.rs | 12 +++- gstreamer/src/auto/child_proxy.rs | 6 +- gstreamer/src/auto/clock.rs | 4 +- gstreamer/src/auto/date_time.rs | 2 +- gstreamer/src/auto/device.rs | 4 +- gstreamer/src/auto/device_monitor.rs | 8 ++- gstreamer/src/auto/device_provider.rs | 6 +- gstreamer/src/auto/device_provider_factory.rs | 2 +- gstreamer/src/auto/element.rs | 8 +-- gstreamer/src/auto/element_factory.rs | 2 +- gstreamer/src/auto/enums.rs | 2 +- gstreamer/src/auto/flags.rs | 2 +- gstreamer/src/auto/functions.rs | 2 +- gstreamer/src/auto/ghost_pad.rs | 2 +- gstreamer/src/auto/mod.rs | 2 +- gstreamer/src/auto/pad.rs | 6 +- gstreamer/src/auto/pad_template.rs | 4 +- gstreamer/src/auto/pipeline.rs | 2 +- gstreamer/src/auto/plugin.rs | 2 +- gstreamer/src/auto/preset.rs | 2 +- gstreamer/src/auto/proxy_pad.rs | 2 +- gstreamer/src/auto/stream.rs | 2 +- gstreamer/src/auto/stream_collection.rs | 2 +- gstreamer/src/auto/tag_setter.rs | 2 +- gstreamer/src/auto/u_r_i_handler.rs | 2 +- gstreamer/src/lib.rs | 4 ++ 35 files changed, 97 insertions(+), 117 deletions(-) diff --git a/Gir_GstApp.toml b/Gir_GstApp.toml index c416bd7d9..18a4502b6 100644 --- a/Gir_GstApp.toml +++ b/Gir_GstApp.toml @@ -42,6 +42,26 @@ trait = false # Has getter function 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]] name = "GstApp.AppSrc" status = "generate" diff --git a/gstreamer-app/src/auto/app_sink.rs b/gstreamer-app/src/auto/app_sink.rs index 51f0d1a84..59880ec1e 100644 --- a/gstreamer-app/src/auto/app_sink.rs +++ b/gstreamer-app/src/auto/app_sink.rs @@ -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 use ffi; @@ -158,40 +158,6 @@ impl AppSink { transmute(new_sample_trampoline as usize), Box_::into_raw(f) as *mut _) } } - - pub fn connect_pull_preroll gst::Sample + Send + Sync + 'static>(&self, f: F) -> u64 { - unsafe { - let f: Box_ 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 gst::Sample + Send + Sync + 'static>(&self, f: F) -> u64 { - unsafe { - let f: Box_ 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 gst::Sample + Send + Sync + 'static>(&self, f: F) -> u64 { - unsafe { - let f: Box_ 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 gst::Sample + Send + Sync + 'static>(&self, f: F) -> u64 { - unsafe { - let f: Box_ 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 {} @@ -199,44 +165,18 @@ unsafe impl Sync for AppSink {} unsafe extern "C" fn eos_trampoline(this: *mut ffi::GstAppSink, f: glib_ffi::gpointer) { callback_guard!(); - let f: &Box_ = transmute(f); + let f: &&(Fn(&AppSink) + Send + Sync + 'static) = transmute(f); f(&from_glib_none(this)) } unsafe extern "C" fn new_preroll_trampoline(this: *mut ffi::GstAppSink, f: glib_ffi::gpointer) -> gst_ffi::GstFlowReturn { callback_guard!(); - let f: &Box_ 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() } unsafe extern "C" fn new_sample_trampoline(this: *mut ffi::GstAppSink, f: glib_ffi::gpointer) -> gst_ffi::GstFlowReturn { callback_guard!(); - let f: &Box_ 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() } - -unsafe extern "C" fn pull_preroll_trampoline(this: *mut ffi::GstAppSink, f: glib_ffi::gpointer) -> *mut gst_ffi::GstSample { - callback_guard!(); - let f: &Box_ 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_ 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_ 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_ gst::Sample + Send + Sync + 'static> = transmute(f); - f(&from_glib_none(this), timeout).to_glib_full() -} diff --git a/gstreamer-app/src/auto/app_src.rs b/gstreamer-app/src/auto/app_src.rs index 1bf24ecfb..607666b06 100644 --- a/gstreamer-app/src/auto/app_src.rs +++ b/gstreamer-app/src/auto/app_src.rs @@ -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 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) { callback_guard!(); - let f: &Box_ = transmute(f); + let f: &&(Fn(&AppSrc) + Send + Sync + 'static) = transmute(f); f(&from_glib_none(this)) } unsafe extern "C" fn need_data_trampoline(this: *mut ffi::GstAppSrc, length: libc::c_uint, f: glib_ffi::gpointer) { callback_guard!(); - let f: &Box_ = transmute(f); + let f: &&(Fn(&AppSrc, u32) + Send + Sync + 'static) = transmute(f); 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 { callback_guard!(); - let f: &Box_ 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() } diff --git a/gstreamer-app/src/auto/enums.rs b/gstreamer-app/src/auto/enums.rs index 231e512c0..655f94e28 100644 --- a/gstreamer-app/src/auto/enums.rs +++ b/gstreamer-app/src/auto/enums.rs @@ -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 use ffi; diff --git a/gstreamer-app/src/auto/flags.rs b/gstreamer-app/src/auto/flags.rs index 0d24c0bba..f2fb60fcf 100644 --- a/gstreamer-app/src/auto/flags.rs +++ b/gstreamer-app/src/auto/flags.rs @@ -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 use ffi; diff --git a/gstreamer-app/src/auto/mod.rs b/gstreamer-app/src/auto/mod.rs index 7720eceae..d8278c5e9 100644 --- a/gstreamer-app/src/auto/mod.rs +++ b/gstreamer-app/src/auto/mod.rs @@ -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 mod app_sink; diff --git a/gstreamer-app/src/lib.rs b/gstreamer-app/src/lib.rs index c4ab14850..93dc8c812 100644 --- a/gstreamer-app/src/lib.rs +++ b/gstreamer-app/src/lib.rs @@ -30,6 +30,10 @@ macro_rules! skip_assert_initialized { 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; pub use auto::*; pub use auto::traits::*; diff --git a/gstreamer/src/auto/alias.rs b/gstreamer/src/auto/alias.rs index 87500324f..a12c67d78 100644 --- a/gstreamer/src/auto/alias.rs +++ b/gstreamer/src/auto/alias.rs @@ -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 #[allow(unused_imports)] diff --git a/gstreamer/src/auto/bin.rs b/gstreamer/src/auto/bin.rs index 4e6e3bb77..fc63b3273 100644 --- a/gstreamer/src/auto/bin.rs +++ b/gstreamer/src/auto/bin.rs @@ -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 use ChildProxy; @@ -281,7 +281,7 @@ impl + IsA> BinExt for O { unsafe extern "C" fn deep_element_added_trampoline

(this: *mut ffi::GstBin, sub_bin: *mut ffi::GstBin, element: *mut ffi::GstElement, f: glib_ffi::gpointer) where P: IsA { callback_guard!(); - let f: &Box_ = 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)) } @@ -289,27 +289,27 @@ where P: IsA { unsafe extern "C" fn deep_element_removed_trampoline

(this: *mut ffi::GstBin, sub_bin: *mut ffi::GstBin, element: *mut ffi::GstElement, f: glib_ffi::gpointer) where P: IsA { callback_guard!(); - let f: &Box_ = 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)) } unsafe extern "C" fn do_latency_trampoline

(this: *mut ffi::GstBin, f: glib_ffi::gpointer) -> glib_ffi::gboolean where P: IsA { callback_guard!(); - let f: &Box_ 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() } unsafe extern "C" fn element_added_trampoline

(this: *mut ffi::GstBin, element: *mut ffi::GstElement, f: glib_ffi::gpointer) where P: IsA { callback_guard!(); - let f: &Box_ = transmute(f); + let f: &&(Fn(&P, &Element) + Send + Sync + 'static) = transmute(f); f(&Bin::from_glib_none(this).downcast_unchecked(), &from_glib_none(element)) } unsafe extern "C" fn element_removed_trampoline

(this: *mut ffi::GstBin, element: *mut ffi::GstElement, f: glib_ffi::gpointer) where P: IsA { callback_guard!(); - let f: &Box_ = transmute(f); + let f: &&(Fn(&P, &Element) + Send + Sync + 'static) = transmute(f); f(&Bin::from_glib_none(this).downcast_unchecked(), &from_glib_none(element)) } diff --git a/gstreamer/src/auto/bus.rs b/gstreamer/src/auto/bus.rs index fa913eceb..69058371a 100644 --- a/gstreamer/src/auto/bus.rs +++ b/gstreamer/src/auto/bus.rs @@ -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 use ClockTime; @@ -133,17 +133,23 @@ impl Bus { } } +impl Default for Bus { + fn default() -> Self { + Self::new() + } +} + unsafe impl Send 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) { callback_guard!(); - let f: &Box_ = transmute(f); + let f: &&(Fn(&Bus, &Message) + Send + Sync + 'static) = transmute(f); 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) { callback_guard!(); - let f: &Box_ = transmute(f); + let f: &&(Fn(&Bus, &Message) + Send + Sync + 'static) = transmute(f); f(&from_glib_none(this), &from_glib_none(message)) } diff --git a/gstreamer/src/auto/child_proxy.rs b/gstreamer/src/auto/child_proxy.rs index e086c7b75..f1e87a31d 100644 --- a/gstreamer/src/auto/child_proxy.rs +++ b/gstreamer/src/auto/child_proxy.rs @@ -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 use ffi; @@ -135,13 +135,13 @@ impl + IsA> ChildProxyExt for O { unsafe extern "C" fn child_added_trampoline

(this: *mut ffi::GstChildProxy, object: *mut gobject_ffi::GObject, name: *mut libc::c_char, f: glib_ffi::gpointer) where P: IsA { callback_guard!(); - let f: &Box_ = 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)) } unsafe extern "C" fn child_removed_trampoline

(this: *mut ffi::GstChildProxy, object: *mut gobject_ffi::GObject, name: *mut libc::c_char, f: glib_ffi::gpointer) where P: IsA { callback_guard!(); - let f: &Box_ = 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)) } diff --git a/gstreamer/src/auto/clock.rs b/gstreamer/src/auto/clock.rs index 67626bb26..d02c9697a 100644 --- a/gstreamer/src/auto/clock.rs +++ b/gstreamer/src/auto/clock.rs @@ -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 use ClockTime; @@ -302,6 +302,6 @@ impl + IsA> ClockExt for O { unsafe extern "C" fn synced_trampoline

(this: *mut ffi::GstClock, synced: glib_ffi::gboolean, f: glib_ffi::gpointer) where P: IsA { callback_guard!(); - let f: &Box_ = transmute(f); + let f: &&(Fn(&P, bool) + Send + Sync + 'static) = transmute(f); f(&Clock::from_glib_none(this).downcast_unchecked(), from_glib(synced)) } diff --git a/gstreamer/src/auto/date_time.rs b/gstreamer/src/auto/date_time.rs index 651b457ae..55112b317 100644 --- a/gstreamer/src/auto/date_time.rs +++ b/gstreamer/src/auto/date_time.rs @@ -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 use ffi; diff --git a/gstreamer/src/auto/device.rs b/gstreamer/src/auto/device.rs index ea4d53fd5..3fa3af232 100644 --- a/gstreamer/src/auto/device.rs +++ b/gstreamer/src/auto/device.rs @@ -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 use Caps; @@ -112,6 +112,6 @@ impl + IsA> DeviceExt for O { unsafe extern "C" fn removed_trampoline

(this: *mut ffi::GstDevice, f: glib_ffi::gpointer) where P: IsA { callback_guard!(); - let f: &Box_ = transmute(f); + let f: &&(Fn(&P) + Send + Sync + 'static) = transmute(f); f(&Device::from_glib_none(this).downcast_unchecked()) } diff --git a/gstreamer/src/auto/device_monitor.rs b/gstreamer/src/auto/device_monitor.rs index 466afc993..07b550b2a 100644 --- a/gstreamer/src/auto/device_monitor.rs +++ b/gstreamer/src/auto/device_monitor.rs @@ -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 use Bus; @@ -30,6 +30,12 @@ impl DeviceMonitor { } } +impl Default for DeviceMonitor { + fn default() -> Self { + Self::new() + } +} + unsafe impl Send for DeviceMonitor {} unsafe impl Sync for DeviceMonitor {} diff --git a/gstreamer/src/auto/device_provider.rs b/gstreamer/src/auto/device_provider.rs index 7bc90e375..41c7de8b1 100644 --- a/gstreamer/src/auto/device_provider.rs +++ b/gstreamer/src/auto/device_provider.rs @@ -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 use Bus; @@ -157,13 +157,13 @@ impl + IsA> DeviceProviderExt for O unsafe extern "C" fn provider_hidden_trampoline

(this: *mut ffi::GstDeviceProvider, object: *mut libc::c_char, f: glib_ffi::gpointer) where P: IsA { callback_guard!(); - let f: &Box_ = 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)) } unsafe extern "C" fn provider_unhidden_trampoline

(this: *mut ffi::GstDeviceProvider, object: *mut libc::c_char, f: glib_ffi::gpointer) where P: IsA { callback_guard!(); - let f: &Box_ = 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)) } diff --git a/gstreamer/src/auto/device_provider_factory.rs b/gstreamer/src/auto/device_provider_factory.rs index fcedce2e8..023c7d60f 100644 --- a/gstreamer/src/auto/device_provider_factory.rs +++ b/gstreamer/src/auto/device_provider_factory.rs @@ -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 use DeviceProvider; diff --git a/gstreamer/src/auto/element.rs b/gstreamer/src/auto/element.rs index aaea46ca0..1b29b9498 100644 --- a/gstreamer/src/auto/element.rs +++ b/gstreamer/src/auto/element.rs @@ -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 use Bus; @@ -597,20 +597,20 @@ impl + IsA> ElementExt for O { unsafe extern "C" fn no_more_pads_trampoline

(this: *mut ffi::GstElement, f: glib_ffi::gpointer) where P: IsA { callback_guard!(); - let f: &Box_ = transmute(f); + let f: &&(Fn(&P) + Send + Sync + 'static) = transmute(f); f(&Element::from_glib_none(this).downcast_unchecked()) } unsafe extern "C" fn pad_added_trampoline

(this: *mut ffi::GstElement, new_pad: *mut ffi::GstPad, f: glib_ffi::gpointer) where P: IsA { callback_guard!(); - let f: &Box_ = 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)) } unsafe extern "C" fn pad_removed_trampoline

(this: *mut ffi::GstElement, old_pad: *mut ffi::GstPad, f: glib_ffi::gpointer) where P: IsA { callback_guard!(); - let f: &Box_ = 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)) } diff --git a/gstreamer/src/auto/element_factory.rs b/gstreamer/src/auto/element_factory.rs index 1c70bbb92..8a18f8acf 100644 --- a/gstreamer/src/auto/element_factory.rs +++ b/gstreamer/src/auto/element_factory.rs @@ -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 use Caps; diff --git a/gstreamer/src/auto/enums.rs b/gstreamer/src/auto/enums.rs index eddcac40e..dd4174f03 100644 --- a/gstreamer/src/auto/enums.rs +++ b/gstreamer/src/auto/enums.rs @@ -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 use ffi; diff --git a/gstreamer/src/auto/flags.rs b/gstreamer/src/auto/flags.rs index e041cfdf1..57b2a2e46 100644 --- a/gstreamer/src/auto/flags.rs +++ b/gstreamer/src/auto/flags.rs @@ -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 use ffi; diff --git a/gstreamer/src/auto/functions.rs b/gstreamer/src/auto/functions.rs index 1e4c23e7e..22ce883a2 100644 --- a/gstreamer/src/auto/functions.rs +++ b/gstreamer/src/auto/functions.rs @@ -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 use Bin; diff --git a/gstreamer/src/auto/ghost_pad.rs b/gstreamer/src/auto/ghost_pad.rs index 9bcb81b94..24fcb6f13 100644 --- a/gstreamer/src/auto/ghost_pad.rs +++ b/gstreamer/src/auto/ghost_pad.rs @@ -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 use Object; diff --git a/gstreamer/src/auto/mod.rs b/gstreamer/src/auto/mod.rs index f16a474b6..ba9f62327 100644 --- a/gstreamer/src/auto/mod.rs +++ b/gstreamer/src/auto/mod.rs @@ -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 mod bin; diff --git a/gstreamer/src/auto/pad.rs b/gstreamer/src/auto/pad.rs index e8a252be7..edb590081 100644 --- a/gstreamer/src/auto/pad.rs +++ b/gstreamer/src/auto/pad.rs @@ -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 use Caps; @@ -621,13 +621,13 @@ impl + IsA> PadExt for O { unsafe extern "C" fn linked_trampoline

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

(this: *mut ffi::GstPad, peer: *mut ffi::GstPad, f: glib_ffi::gpointer) where P: IsA { callback_guard!(); - let f: &Box_ = transmute(f); + let f: &&(Fn(&P, &Pad) + Send + Sync + 'static) = transmute(f); f(&Pad::from_glib_none(this).downcast_unchecked(), &from_glib_none(peer)) } diff --git a/gstreamer/src/auto/pad_template.rs b/gstreamer/src/auto/pad_template.rs index 2cf4c759f..60a058586 100644 --- a/gstreamer/src/auto/pad_template.rs +++ b/gstreamer/src/auto/pad_template.rs @@ -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 use Caps; @@ -103,6 +103,6 @@ impl + IsA> PadTemplateExt for O { unsafe extern "C" fn pad_created_trampoline

(this: *mut ffi::GstPadTemplate, pad: *mut ffi::GstPad, f: glib_ffi::gpointer) where P: IsA { callback_guard!(); - let f: &Box_ = transmute(f); + let f: &&(Fn(&P, &Pad) + Send + Sync + 'static) = transmute(f); f(&PadTemplate::from_glib_none(this).downcast_unchecked(), &from_glib_none(pad)) } diff --git a/gstreamer/src/auto/pipeline.rs b/gstreamer/src/auto/pipeline.rs index 9e519976e..a280a4047 100644 --- a/gstreamer/src/auto/pipeline.rs +++ b/gstreamer/src/auto/pipeline.rs @@ -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 use Bin; diff --git a/gstreamer/src/auto/plugin.rs b/gstreamer/src/auto/plugin.rs index 997984264..d1e28fe81 100644 --- a/gstreamer/src/auto/plugin.rs +++ b/gstreamer/src/auto/plugin.rs @@ -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 use Error; diff --git a/gstreamer/src/auto/preset.rs b/gstreamer/src/auto/preset.rs index d289e5ea2..541b16ec8 100644 --- a/gstreamer/src/auto/preset.rs +++ b/gstreamer/src/auto/preset.rs @@ -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 use ffi; diff --git a/gstreamer/src/auto/proxy_pad.rs b/gstreamer/src/auto/proxy_pad.rs index 5c59ec1f9..3ac37d496 100644 --- a/gstreamer/src/auto/proxy_pad.rs +++ b/gstreamer/src/auto/proxy_pad.rs @@ -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 use Iterator; diff --git a/gstreamer/src/auto/stream.rs b/gstreamer/src/auto/stream.rs index 7d894234a..43e917dff 100644 --- a/gstreamer/src/auto/stream.rs +++ b/gstreamer/src/auto/stream.rs @@ -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 #[cfg(feature = "v1_10")] diff --git a/gstreamer/src/auto/stream_collection.rs b/gstreamer/src/auto/stream_collection.rs index a9cb17846..4bfb8110b 100644 --- a/gstreamer/src/auto/stream_collection.rs +++ b/gstreamer/src/auto/stream_collection.rs @@ -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 use Object; diff --git a/gstreamer/src/auto/tag_setter.rs b/gstreamer/src/auto/tag_setter.rs index 3e560f6f7..a276c1d57 100644 --- a/gstreamer/src/auto/tag_setter.rs +++ b/gstreamer/src/auto/tag_setter.rs @@ -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 use Element; diff --git a/gstreamer/src/auto/u_r_i_handler.rs b/gstreamer/src/auto/u_r_i_handler.rs index 7c1cef82c..bc11737a8 100644 --- a/gstreamer/src/auto/u_r_i_handler.rs +++ b/gstreamer/src/auto/u_r_i_handler.rs @@ -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 use Error; diff --git a/gstreamer/src/lib.rs b/gstreamer/src/lib.rs index da56d3df3..249b5a75c 100644 --- a/gstreamer/src/lib.rs +++ b/gstreamer/src/lib.rs @@ -43,6 +43,10 @@ macro_rules! skip_assert_initialized { 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; pub use auto::*; pub use auto::traits::*;