mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-11-29 04:51:09 +00:00
The message signal of Bus only has to require Send for the closure
This commit is contained in:
parent
be6f03a1af
commit
88f4fe5ea3
33 changed files with 39 additions and 35 deletions
|
@ -122,6 +122,10 @@ trait = false
|
|||
# More convenient manual implementation
|
||||
ignore = true
|
||||
|
||||
[[object.signal]]
|
||||
name = "message"
|
||||
concurrency = "send"
|
||||
|
||||
[[object]]
|
||||
name = "Gst.Caps"
|
||||
status = "manual"
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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)]
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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<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))
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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")]
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue