From 88f4fe5ea3657e46cd23b2d0de2d87c891624a52 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Fri, 4 Aug 2017 23:04:42 +0300 Subject: [PATCH] The message signal of Bus only has to require Send for the closure --- Gir_Gst.toml | 4 ++++ gstreamer-app/src/auto/app_sink.rs | 2 +- gstreamer-app/src/auto/app_src.rs | 2 +- gstreamer-app/src/auto/enums.rs | 2 +- gstreamer-app/src/auto/flags.rs | 2 +- gstreamer-app/src/auto/mod.rs | 2 +- gstreamer/src/auto/alias.rs | 2 +- gstreamer/src/auto/bin.rs | 2 +- gstreamer/src/auto/bus.rs | 8 ++++---- gstreamer/src/auto/child_proxy.rs | 2 +- gstreamer/src/auto/clock.rs | 2 +- gstreamer/src/auto/date_time.rs | 2 +- gstreamer/src/auto/device.rs | 2 +- gstreamer/src/auto/device_monitor.rs | 2 +- gstreamer/src/auto/device_provider.rs | 2 +- gstreamer/src/auto/device_provider_factory.rs | 2 +- gstreamer/src/auto/element.rs | 2 +- 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 | 2 +- gstreamer/src/auto/pad_template.rs | 2 +- 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 +- 33 files changed, 39 insertions(+), 35 deletions(-) diff --git a/Gir_Gst.toml b/Gir_Gst.toml index f2fd0ff03..170661b8c 100644 --- a/Gir_Gst.toml +++ b/Gir_Gst.toml @@ -122,6 +122,10 @@ trait = false # More convenient manual implementation ignore = true + [[object.signal]] + name = "message" + concurrency = "send" + [[object]] name = "Gst.Caps" status = "manual" diff --git a/gstreamer-app/src/auto/app_sink.rs b/gstreamer-app/src/auto/app_sink.rs index 59880ec1e..e25065b61 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 (ede90a4) from gir-files (???) +// This file was generated by gir (9f70278) from gir-files (???) // DO NOT EDIT use ffi; diff --git a/gstreamer-app/src/auto/app_src.rs b/gstreamer-app/src/auto/app_src.rs index 607666b06..cc1a61d7d 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 (ede90a4) from gir-files (???) +// This file was generated by gir (9f70278) from gir-files (???) // DO NOT EDIT use AppStreamType; diff --git a/gstreamer-app/src/auto/enums.rs b/gstreamer-app/src/auto/enums.rs index 655f94e28..21cff52e7 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 (ede90a4) from gir-files (???) +// This file was generated by gir (9f70278) 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 f2fb60fcf..bfe56f629 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 (ede90a4) from gir-files (???) +// This file was generated by gir (9f70278) 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 d8278c5e9..e9c1eccd9 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 (ede90a4) from gir-files (???) +// This file was generated by gir (9f70278) from gir-files (???) // DO NOT EDIT mod app_sink; diff --git a/gstreamer/src/auto/alias.rs b/gstreamer/src/auto/alias.rs index a12c67d78..29bdc91ab 100644 --- a/gstreamer/src/auto/alias.rs +++ b/gstreamer/src/auto/alias.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (ede90a4) from gir-files (???) +// This file was generated by gir (9f70278) from gir-files (???) // DO NOT EDIT #[allow(unused_imports)] diff --git a/gstreamer/src/auto/bin.rs b/gstreamer/src/auto/bin.rs index fc63b3273..661f97b49 100644 --- a/gstreamer/src/auto/bin.rs +++ b/gstreamer/src/auto/bin.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (ede90a4) from gir-files (???) +// This file was generated by gir (9f70278) from gir-files (???) // DO NOT EDIT use ChildProxy; diff --git a/gstreamer/src/auto/bus.rs b/gstreamer/src/auto/bus.rs index 69058371a..9eba99b38 100644 --- a/gstreamer/src/auto/bus.rs +++ b/gstreamer/src/auto/bus.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (ede90a4) from gir-files (???) +// This file was generated by gir (9f70278) from gir-files (???) // DO NOT EDIT use ClockTime; @@ -116,9 +116,9 @@ impl Bus { } } - pub fn connect_message(&self, f: F) -> u64 { + pub fn connect_message(&self, f: F) -> u64 { unsafe { - let f: Box_> = Box_::new(Box_::new(f)); + let f: Box_> = Box_::new(Box_::new(f)); connect(self.to_glib_none().0, "message", transmute(message_trampoline as usize), Box_::into_raw(f) as *mut _) } @@ -144,7 +144,7 @@ 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: &&(Fn(&Bus, &Message) + Send + Sync + 'static) = transmute(f); + let f: &&(Fn(&Bus, &Message) + Send + '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 f1e87a31d..9079edb9f 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 (ede90a4) from gir-files (???) +// This file was generated by gir (9f70278) from gir-files (???) // DO NOT EDIT use ffi; diff --git a/gstreamer/src/auto/clock.rs b/gstreamer/src/auto/clock.rs index d02c9697a..31154461d 100644 --- a/gstreamer/src/auto/clock.rs +++ b/gstreamer/src/auto/clock.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (ede90a4) from gir-files (???) +// This file was generated by gir (9f70278) from gir-files (???) // DO NOT EDIT use ClockTime; diff --git a/gstreamer/src/auto/date_time.rs b/gstreamer/src/auto/date_time.rs index 55112b317..cd3b5c13b 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 (ede90a4) from gir-files (???) +// This file was generated by gir (9f70278) from gir-files (???) // DO NOT EDIT use ffi; diff --git a/gstreamer/src/auto/device.rs b/gstreamer/src/auto/device.rs index 3fa3af232..dceec8ea8 100644 --- a/gstreamer/src/auto/device.rs +++ b/gstreamer/src/auto/device.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (ede90a4) from gir-files (???) +// This file was generated by gir (9f70278) from gir-files (???) // DO NOT EDIT use Caps; diff --git a/gstreamer/src/auto/device_monitor.rs b/gstreamer/src/auto/device_monitor.rs index 07b550b2a..c2bf5399b 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 (ede90a4) from gir-files (???) +// This file was generated by gir (9f70278) from gir-files (???) // DO NOT EDIT use Bus; diff --git a/gstreamer/src/auto/device_provider.rs b/gstreamer/src/auto/device_provider.rs index 41c7de8b1..9d8e4b1e3 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 (ede90a4) from gir-files (???) +// This file was generated by gir (9f70278) from gir-files (???) // DO NOT EDIT use Bus; diff --git a/gstreamer/src/auto/device_provider_factory.rs b/gstreamer/src/auto/device_provider_factory.rs index 023c7d60f..31010f8dd 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 (ede90a4) from gir-files (???) +// This file was generated by gir (9f70278) from gir-files (???) // DO NOT EDIT use DeviceProvider; diff --git a/gstreamer/src/auto/element.rs b/gstreamer/src/auto/element.rs index 1b29b9498..f26d440fd 100644 --- a/gstreamer/src/auto/element.rs +++ b/gstreamer/src/auto/element.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (ede90a4) from gir-files (???) +// This file was generated by gir (9f70278) from gir-files (???) // DO NOT EDIT use Bus; diff --git a/gstreamer/src/auto/element_factory.rs b/gstreamer/src/auto/element_factory.rs index 8a18f8acf..e5850a02b 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 (ede90a4) from gir-files (???) +// This file was generated by gir (9f70278) from gir-files (???) // DO NOT EDIT use Caps; diff --git a/gstreamer/src/auto/enums.rs b/gstreamer/src/auto/enums.rs index dd4174f03..b1522bdcc 100644 --- a/gstreamer/src/auto/enums.rs +++ b/gstreamer/src/auto/enums.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (ede90a4) from gir-files (???) +// This file was generated by gir (9f70278) from gir-files (???) // DO NOT EDIT use ffi; diff --git a/gstreamer/src/auto/flags.rs b/gstreamer/src/auto/flags.rs index 57b2a2e46..85040a91c 100644 --- a/gstreamer/src/auto/flags.rs +++ b/gstreamer/src/auto/flags.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (ede90a4) from gir-files (???) +// This file was generated by gir (9f70278) from gir-files (???) // DO NOT EDIT use ffi; diff --git a/gstreamer/src/auto/functions.rs b/gstreamer/src/auto/functions.rs index 22ce883a2..aadfc81f0 100644 --- a/gstreamer/src/auto/functions.rs +++ b/gstreamer/src/auto/functions.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (ede90a4) from gir-files (???) +// This file was generated by gir (9f70278) 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 24fcb6f13..3fc25f5cf 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 (ede90a4) from gir-files (???) +// This file was generated by gir (9f70278) from gir-files (???) // DO NOT EDIT use Object; diff --git a/gstreamer/src/auto/mod.rs b/gstreamer/src/auto/mod.rs index ba9f62327..fe0f5da58 100644 --- a/gstreamer/src/auto/mod.rs +++ b/gstreamer/src/auto/mod.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (ede90a4) from gir-files (???) +// This file was generated by gir (9f70278) from gir-files (???) // DO NOT EDIT mod bin; diff --git a/gstreamer/src/auto/pad.rs b/gstreamer/src/auto/pad.rs index edb590081..50cf5c445 100644 --- a/gstreamer/src/auto/pad.rs +++ b/gstreamer/src/auto/pad.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (ede90a4) from gir-files (???) +// This file was generated by gir (9f70278) from gir-files (???) // DO NOT EDIT use Caps; diff --git a/gstreamer/src/auto/pad_template.rs b/gstreamer/src/auto/pad_template.rs index 60a058586..a74b58d85 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 (ede90a4) from gir-files (???) +// This file was generated by gir (9f70278) from gir-files (???) // DO NOT EDIT use Caps; diff --git a/gstreamer/src/auto/pipeline.rs b/gstreamer/src/auto/pipeline.rs index a280a4047..72f57f72c 100644 --- a/gstreamer/src/auto/pipeline.rs +++ b/gstreamer/src/auto/pipeline.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (ede90a4) from gir-files (???) +// This file was generated by gir (9f70278) from gir-files (???) // DO NOT EDIT use Bin; diff --git a/gstreamer/src/auto/plugin.rs b/gstreamer/src/auto/plugin.rs index d1e28fe81..124a7bbf1 100644 --- a/gstreamer/src/auto/plugin.rs +++ b/gstreamer/src/auto/plugin.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (ede90a4) from gir-files (???) +// This file was generated by gir (9f70278) from gir-files (???) // DO NOT EDIT use Error; diff --git a/gstreamer/src/auto/preset.rs b/gstreamer/src/auto/preset.rs index 541b16ec8..095a18e20 100644 --- a/gstreamer/src/auto/preset.rs +++ b/gstreamer/src/auto/preset.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (ede90a4) from gir-files (???) +// This file was generated by gir (9f70278) 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 3ac37d496..f9d09957c 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 (ede90a4) from gir-files (???) +// This file was generated by gir (9f70278) from gir-files (???) // DO NOT EDIT use Iterator; diff --git a/gstreamer/src/auto/stream.rs b/gstreamer/src/auto/stream.rs index 43e917dff..6443c8290 100644 --- a/gstreamer/src/auto/stream.rs +++ b/gstreamer/src/auto/stream.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (ede90a4) from gir-files (???) +// This file was generated by gir (9f70278) 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 4bfb8110b..9ff18a33f 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 (ede90a4) from gir-files (???) +// This file was generated by gir (9f70278) 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 a276c1d57..f210c9f6d 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 (ede90a4) from gir-files (???) +// This file was generated by gir (9f70278) 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 bc11737a8..4b67fcd33 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 (ede90a4) from gir-files (???) +// This file was generated by gir (9f70278) from gir-files (???) // DO NOT EDIT use Error;