Commit 88f4fe5e authored by Sebastian Dröge's avatar Sebastian Dröge 🍵

The message signal of Bus only has to require Send for the closure

parent be6f03a1
......@@ -122,6 +122,10 @@ trait = false
# More convenient manual implementation
ignore = true
[[object.signal]]
name = "message"
concurrency = "send"
[[object]]
name = "Gst.Caps"
status = "manual"
......
// 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;
......
// 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;
......
// 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;
......
// 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;
......
// 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;
......
// 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)]
......
// 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;
......
// 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<F: Fn(&Bus, &Message) + Send + Sync + 'static>(&self, f: F) -> u64 {
pub fn connect_message<F: Fn(&Bus, &Message) + Send + 'static>(&self, f: F) -> u64 {
unsafe {
let f: Box_<Box_<Fn(&Bus, &Message) + Send + Sync + 'static>> = Box_::new(Box_::new(f));
let f: Box_<Box_<Fn(&Bus, &Message) + Send + 'static>> = 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))
}
......
// 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;
......
// 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;
......
// 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;
......
// 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;
......
// 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;
......
// 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;
......
// 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;
......
// 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;
......
// 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;
......
// 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;
......
// 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;
......
// 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;
......
// 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;
......
// 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;
......
// 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;
......
// 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;
......
// 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;
......
// 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;
......
// 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;
......
// 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;
......
// 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")]
......
// 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;
......
// 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;
......
// 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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment