rename remaining connect_property_...

This commit is contained in:
François Laignel 2021-05-03 20:40:21 +02:00
parent 49583597ed
commit 9c86aa9f76
2 changed files with 9 additions and 7 deletions

View file

@ -33,16 +33,18 @@ pub trait AggregatorExtManual: 'static {
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
#[doc(alias = "get_property_min_upstream_latency")] #[doc(alias = "min-upstream-latency")]
fn min_upstream_latency(&self) -> gst::ClockTime; fn min_upstream_latency(&self) -> gst::ClockTime;
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
#[doc(alias = "min-upstream-latency")]
fn set_min_upstream_latency(&self, min_upstream_latency: gst::ClockTime); fn set_min_upstream_latency(&self, min_upstream_latency: gst::ClockTime);
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
fn connect_property_min_upstream_latency_notify<F: Fn(&Self) + Send + Sync + 'static>( #[doc(alias = "min-upstream-latency")]
fn connect_min_upstream_latency_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self, &self,
f: F, f: F,
) -> SignalHandlerId; ) -> SignalHandlerId;
@ -151,7 +153,7 @@ impl<O: IsA<Aggregator>> AggregatorExtManual for O {
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
fn connect_property_min_upstream_latency_notify<F: Fn(&Self) + Send + Sync + 'static>( fn connect_min_upstream_latency_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self, &self,
f: F, f: F,
) -> SignalHandlerId { ) -> SignalHandlerId {

View file

@ -12,7 +12,7 @@ use std::boxed::Box as Box_;
use std::mem::transmute; use std::mem::transmute;
impl Discoverer { impl Discoverer {
pub fn set_property_timeout(&self, timeout: gst::ClockTime) { pub fn set_timeout(&self, timeout: gst::ClockTime) {
unsafe { unsafe {
glib::gobject_ffi::g_object_set_property( glib::gobject_ffi::g_object_set_property(
self.as_ptr() as *mut _, self.as_ptr() as *mut _,
@ -22,8 +22,7 @@ impl Discoverer {
} }
} }
#[doc(alias = "get_property_timeout")] pub fn timeout(&self) -> gst::ClockTime {
pub fn property_timeout(&self) -> gst::ClockTime {
let mut value = Value::from(&0u64); let mut value = Value::from(&0u64);
unsafe { unsafe {
glib::gobject_ffi::g_object_get_property( glib::gobject_ffi::g_object_get_property(
@ -35,7 +34,8 @@ impl Discoverer {
value.get().expect("Discoverer::get_property_timeout") value.get().expect("Discoverer::get_property_timeout")
} }
pub fn connect_property_timeout_notify<F: Fn(&Self) + Send + Sync + 'static>( #[doc(alias = "timeout")]
pub fn connect_timeout_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self, &self,
f: F, f: F,
) -> SignalHandlerId { ) -> SignalHandlerId {