Commit 9a7ede1d authored by Sebastian Dröge's avatar Sebastian Dröge 🍵

Bus::add_signal_watch_full() should take a Priority, not u32 for the priority

parent 49627b8d
......@@ -118,6 +118,11 @@ trait = false
# Needs manual bindings and GSource support in glib-rs
ignore = true
[[object.function]]
name = "add_signal_watch_full"
# Priority
ignore = true
[[object.function]]
name = "timed_pop_filtered"
# Uses enum as flags
......
......@@ -37,12 +37,6 @@ impl Bus {
}
}
pub fn add_signal_watch_full(&self, priority: i32) {
unsafe {
ffi::gst_bus_add_signal_watch_full(self.to_glib_none().0, priority);
}
}
//pub fn add_watch<P: Into<Option</*Unimplemented*/Fundamental: Pointer>>>(&self, func: /*Unknown conversion*//*Unimplemented*/BusFunc, user_data: P) -> u32 {
// unsafe { TODO: call ffi::gst_bus_add_watch() }
//}
......
......@@ -70,6 +70,12 @@ fn into_raw_sync<F: Fn(&Bus, &Message) -> BusSyncReply + Send + Sync + 'static>(
}
impl Bus {
pub fn add_signal_watch_full(&self, priority: Priority) {
unsafe {
ffi::gst_bus_add_signal_watch_full(self.to_glib_none().0, priority.to_glib());
}
}
pub fn create_watch<'a, N: Into<Option<&'a str>>, F>(
&self,
name: N,
......
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