From 170f7214eb62ed3f8b60f2ef494045488f50eb69 Mon Sep 17 00:00:00 2001 From: Marijn Suijten Date: Wed, 26 May 2021 01:19:25 +0200 Subject: [PATCH] Regen with extended Gir.toml --- gstreamer-audio/src/auto/audio_base_sink.rs | 4 +- gstreamer-base/src/auto/aggregator.rs | 31 ----- gstreamer-base/src/auto/base_src.rs | 8 -- gstreamer-base/src/auto/base_transform.rs | 8 -- gstreamer-check/src/auto/test_clock.rs | 46 +------ .../src/auto/base_effect.rs | 11 -- .../src/auto/pipeline.rs | 2 +- .../src/auto/timeline.rs | 2 +- .../src/auto/timeline_element.rs | 98 ++++++++++---- gstreamer-editing-services/src/auto/track.rs | 2 +- .../src/auto/track_element.rs | 128 ++++++++++++++---- .../player_video_overlay_video_renderer.rs | 21 --- gstreamer-rtsp-server/src/auto/rtsp_client.rs | 7 - gstreamer-rtsp-server/src/auto/rtsp_media.rs | 18 ++- gstreamer-video/src/auto/video_overlay.rs | 14 -- gstreamer/src/auto/bin.rs | 67 --------- gstreamer/src/auto/clock.rs | 28 ---- gstreamer/src/auto/element.rs | 53 -------- gstreamer/src/auto/object.rs | 5 - gstreamer/src/auto/tag_setter.rs | 7 - gstreamer/src/auto/type_find_factory.rs | 5 - 21 files changed, 197 insertions(+), 368 deletions(-) diff --git a/gstreamer-audio/src/auto/audio_base_sink.rs b/gstreamer-audio/src/auto/audio_base_sink.rs index 7f1f32c6c..e261a515e 100644 --- a/gstreamer-audio/src/auto/audio_base_sink.rs +++ b/gstreamer-audio/src/auto/audio_base_sink.rs @@ -57,7 +57,7 @@ pub trait AudioBaseSinkExt: 'static { fn set_alignment_threshold(&self, alignment_threshold: gst::ClockTime); //#[doc(alias = "gst_audio_base_sink_set_custom_slaving_callback")] - //fn set_custom_slaving_callback(&self, callback: /*Unimplemented*/Fn(&AudioBaseSink, gst::ClockTime, gst::ClockTime, /*Ignored*/gst::ClockTimeDiff, /*Ignored*/AudioBaseSinkDiscontReason), user_data: /*Unimplemented*/Option); + //fn set_custom_slaving_callback(&self, callback: /*Unimplemented*/Fn(&AudioBaseSink, gst::ClockTime, gst::ClockTime, gst::ClockTimeDiff, /*Ignored*/AudioBaseSinkDiscontReason), user_data: /*Unimplemented*/Option); #[doc(alias = "gst_audio_base_sink_set_discont_wait")] fn set_discont_wait(&self, discont_wait: gst::ClockTime); @@ -190,7 +190,7 @@ impl> AudioBaseSinkExt for O { } } - //fn set_custom_slaving_callback(&self, callback: /*Unimplemented*/Fn(&AudioBaseSink, gst::ClockTime, gst::ClockTime, /*Ignored*/gst::ClockTimeDiff, /*Ignored*/AudioBaseSinkDiscontReason), user_data: /*Unimplemented*/Option) { + //fn set_custom_slaving_callback(&self, callback: /*Unimplemented*/Fn(&AudioBaseSink, gst::ClockTime, gst::ClockTime, gst::ClockTimeDiff, /*Ignored*/AudioBaseSinkDiscontReason), user_data: /*Unimplemented*/Option) { // unsafe { TODO: call ffi:gst_audio_base_sink_set_custom_slaving_callback() } //} diff --git a/gstreamer-base/src/auto/aggregator.rs b/gstreamer-base/src/auto/aggregator.rs index 31884da82..e1943b2d9 100644 --- a/gstreamer-base/src/auto/aggregator.rs +++ b/gstreamer-base/src/auto/aggregator.rs @@ -33,10 +33,6 @@ unsafe impl Sync for Aggregator {} pub const NONE_AGGREGATOR: Option<&Aggregator> = None; pub trait AggregatorExt: 'static { - //#[doc(alias = "gst_aggregator_get_allocator")] - //#[doc(alias = "get_allocator")] - //fn allocator(&self, allocator: /*Ignored*/Option, params: /*Ignored*/gst::AllocationParams); - #[doc(alias = "gst_aggregator_get_buffer_pool")] #[doc(alias = "get_buffer_pool")] fn buffer_pool(&self) -> Option; @@ -66,11 +62,6 @@ pub trait AggregatorExt: 'static { #[doc(alias = "gst_aggregator_simple_get_next_time")] fn simple_get_next_time(&self) -> gst::ClockTime; - //#[cfg(any(feature = "v1_18", feature = "dox"))] - //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] - //#[doc(alias = "gst_aggregator_update_segment")] - //fn update_segment(&self, segment: /*Ignored*/&gst::Segment); - #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[doc(alias = "emit-signals")] @@ -97,11 +88,6 @@ pub trait AggregatorExt: 'static { #[doc(alias = "start-time-selection")] fn set_start_time_selection(&self, start_time_selection: AggregatorStartTimeSelection); - //#[cfg(any(feature = "v1_18", feature = "dox"))] - //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] - //#[doc(alias = "samples-selected")] - //fn connect_samples_selected(&self, f: F) -> SignalHandlerId; - #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[doc(alias = "emit-signals")] @@ -132,10 +118,6 @@ pub trait AggregatorExt: 'static { } impl> AggregatorExt for O { - //fn allocator(&self, allocator: /*Ignored*/Option, params: /*Ignored*/gst::AllocationParams) { - // unsafe { TODO: call ffi:gst_aggregator_get_allocator() } - //} - fn buffer_pool(&self) -> Option { unsafe { from_glib_full(ffi::gst_aggregator_get_buffer_pool( @@ -199,12 +181,6 @@ impl> AggregatorExt for O { } } - //#[cfg(any(feature = "v1_18", feature = "dox"))] - //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] - //fn update_segment(&self, segment: /*Ignored*/&gst::Segment) { - // unsafe { TODO: call ffi:gst_aggregator_update_segment() } - //} - #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn emits_signals(&self) -> bool { @@ -286,13 +262,6 @@ impl> AggregatorExt for O { } } - //#[cfg(any(feature = "v1_18", feature = "dox"))] - //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] - //#[doc(alias = "samples-selected")] - //fn connect_samples_selected(&self, f: F) -> SignalHandlerId { - // Ignored segment: Gst.Segment - //} - #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[doc(alias = "emit-signals")] diff --git a/gstreamer-base/src/auto/base_src.rs b/gstreamer-base/src/auto/base_src.rs index 4414a9226..15b3b336f 100644 --- a/gstreamer-base/src/auto/base_src.rs +++ b/gstreamer-base/src/auto/base_src.rs @@ -27,10 +27,6 @@ unsafe impl Sync for BaseSrc {} pub const NONE_BASE_SRC: Option<&BaseSrc> = None; pub trait BaseSrcExt: 'static { - //#[doc(alias = "gst_base_src_get_allocator")] - //#[doc(alias = "get_allocator")] - //fn allocator(&self, allocator: /*Ignored*/Option, params: /*Ignored*/gst::AllocationParams); - #[doc(alias = "gst_base_src_get_blocksize")] #[doc(alias = "get_blocksize")] fn blocksize(&self) -> u32; @@ -127,10 +123,6 @@ pub trait BaseSrcExt: 'static { } impl> BaseSrcExt for O { - //fn allocator(&self, allocator: /*Ignored*/Option, params: /*Ignored*/gst::AllocationParams) { - // unsafe { TODO: call ffi:gst_base_src_get_allocator() } - //} - fn blocksize(&self) -> u32 { unsafe { ffi::gst_base_src_get_blocksize(self.as_ref().to_glib_none().0) } } diff --git a/gstreamer-base/src/auto/base_transform.rs b/gstreamer-base/src/auto/base_transform.rs index 8ebd0a168..625cf5831 100644 --- a/gstreamer-base/src/auto/base_transform.rs +++ b/gstreamer-base/src/auto/base_transform.rs @@ -27,10 +27,6 @@ unsafe impl Sync for BaseTransform {} pub const NONE_BASE_TRANSFORM: Option<&BaseTransform> = None; pub trait BaseTransformExt: 'static { - //#[doc(alias = "gst_base_transform_get_allocator")] - //#[doc(alias = "get_allocator")] - //fn allocator(&self, allocator: /*Ignored*/Option, params: /*Ignored*/gst::AllocationParams); - #[doc(alias = "gst_base_transform_get_buffer_pool")] #[doc(alias = "get_buffer_pool")] fn buffer_pool(&self) -> Option; @@ -79,10 +75,6 @@ pub trait BaseTransformExt: 'static { } impl> BaseTransformExt for O { - //fn allocator(&self, allocator: /*Ignored*/Option, params: /*Ignored*/gst::AllocationParams) { - // unsafe { TODO: call ffi:gst_base_transform_get_allocator() } - //} - fn buffer_pool(&self) -> Option { unsafe { from_glib_full(ffi::gst_base_transform_get_buffer_pool( diff --git a/gstreamer-check/src/auto/test_clock.rs b/gstreamer-check/src/auto/test_clock.rs index 2a6671f56..f0898406c 100644 --- a/gstreamer-check/src/auto/test_clock.rs +++ b/gstreamer-check/src/auto/test_clock.rs @@ -62,38 +62,11 @@ impl TestClock { } } - //#[doc(alias = "gst_test_clock_has_id")] - //pub fn has_id(&self, id: /*Ignored*/gst::ClockID) -> bool { - // unsafe { TODO: call ffi:gst_test_clock_has_id() } - //} - #[doc(alias = "gst_test_clock_peek_id_count")] pub fn peek_id_count(&self) -> u32 { unsafe { ffi::gst_test_clock_peek_id_count(self.to_glib_none().0) } } - //#[doc(alias = "gst_test_clock_peek_next_pending_id")] - //pub fn peek_next_pending_id(&self, pending_id: /*Ignored*/&mut gst::ClockID) -> bool { - // unsafe { TODO: call ffi:gst_test_clock_peek_next_pending_id() } - //} - - //#[cfg(any(feature = "v1_18", feature = "dox"))] - //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] - //#[doc(alias = "gst_test_clock_process_id")] - //pub fn process_id(&self, pending_id: /*Ignored*/gst::ClockID) -> bool { - // unsafe { TODO: call ffi:gst_test_clock_process_id() } - //} - - //#[doc(alias = "gst_test_clock_process_id_list")] - //pub fn process_id_list(&self, pending_list: /*Ignored*/&[&gst::ClockID]) -> u32 { - // unsafe { TODO: call ffi:gst_test_clock_process_id_list() } - //} - - //#[doc(alias = "gst_test_clock_process_next_clock_id")] - //pub fn process_next_clock_id(&self) -> /*Ignored*/Option { - // unsafe { TODO: call ffi:gst_test_clock_process_next_clock_id() } - //} - #[doc(alias = "gst_test_clock_set_time")] pub fn set_time(&self, new_time: gst::ClockTime) { unsafe { @@ -101,23 +74,6 @@ impl TestClock { } } - //#[cfg(any(feature = "v1_16", feature = "dox"))] - //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] - //#[doc(alias = "gst_test_clock_timed_wait_for_multiple_pending_ids")] - //pub fn timed_wait_for_multiple_pending_ids(&self, count: u32, timeout_ms: u32, pending_list: /*Unimplemented*/Vec) -> bool { - // unsafe { TODO: call ffi:gst_test_clock_timed_wait_for_multiple_pending_ids() } - //} - - //#[doc(alias = "gst_test_clock_wait_for_multiple_pending_ids")] - //pub fn wait_for_multiple_pending_ids(&self, count: u32, pending_list: /*Unimplemented*/Vec) { - // unsafe { TODO: call ffi:gst_test_clock_wait_for_multiple_pending_ids() } - //} - - //#[doc(alias = "gst_test_clock_wait_for_next_pending_id")] - //pub fn wait_for_next_pending_id(&self, pending_id: /*Ignored*/&mut gst::ClockID) { - // unsafe { TODO: call ffi:gst_test_clock_wait_for_next_pending_id() } - //} - #[doc(alias = "gst_test_clock_wait_for_pending_id_count")] pub fn wait_for_pending_id_count(&self, count: u32) { unsafe { @@ -167,7 +123,7 @@ impl TestClock { } //#[doc(alias = "gst_test_clock_id_list_get_latest_time")] - //pub fn id_list_get_latest_time(pending_list: /*Ignored*/&[&gst::ClockID]) -> gst::ClockTime { + //pub fn id_list_get_latest_time(pending_list: /*Unimplemented*/&[&gst::ClockID]) -> gst::ClockTime { // unsafe { TODO: call ffi:gst_test_clock_id_list_get_latest_time() } //} diff --git a/gstreamer-editing-services/src/auto/base_effect.rs b/gstreamer-editing-services/src/auto/base_effect.rs index 0507e14a5..1445c7493 100644 --- a/gstreamer-editing-services/src/auto/base_effect.rs +++ b/gstreamer-editing-services/src/auto/base_effect.rs @@ -31,11 +31,6 @@ pub trait BaseEffectExt: 'static { #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[doc(alias = "ges_base_effect_register_time_property")] fn register_time_property(&self, child_property_name: &str) -> bool; - - //#[cfg(any(feature = "v1_18", feature = "dox"))] - //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] - //#[doc(alias = "ges_base_effect_set_time_translation_funcs")] - //fn set_time_translation_funcs(&self, source_to_sink_func: /*Unimplemented*/Fn(&BaseEffect, gst::ClockTime, /*Unimplemented*/HashTable TypeId { ns_id: 0, id: 28 }/TypeId { ns_id: 3, id: 11 }) -> gst::ClockTime, sink_to_source_func: /*Unimplemented*/Fn(&BaseEffect, gst::ClockTime, /*Unimplemented*/HashTable TypeId { ns_id: 0, id: 28 }/TypeId { ns_id: 3, id: 11 }) -> gst::ClockTime, user_data: /*Unimplemented*/Option) -> bool; } impl> BaseEffectExt for O { @@ -59,10 +54,4 @@ impl> BaseEffectExt for O { )) } } - - //#[cfg(any(feature = "v1_18", feature = "dox"))] - //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] - //fn set_time_translation_funcs(&self, source_to_sink_func: /*Unimplemented*/Fn(&BaseEffect, gst::ClockTime, /*Unimplemented*/HashTable TypeId { ns_id: 0, id: 28 }/TypeId { ns_id: 3, id: 11 }) -> gst::ClockTime, sink_to_source_func: /*Unimplemented*/Fn(&BaseEffect, gst::ClockTime, /*Unimplemented*/HashTable TypeId { ns_id: 0, id: 28 }/TypeId { ns_id: 3, id: 11 }) -> gst::ClockTime, user_data: /*Unimplemented*/Option) -> bool { - // unsafe { TODO: call ffi:ges_base_effect_set_time_translation_funcs() } - //} } diff --git a/gstreamer-editing-services/src/auto/pipeline.rs b/gstreamer-editing-services/src/auto/pipeline.rs index 07510ac1b..2d7e75509 100644 --- a/gstreamer-editing-services/src/auto/pipeline.rs +++ b/gstreamer-editing-services/src/auto/pipeline.rs @@ -17,7 +17,7 @@ use std::mem::transmute; use std::ptr; glib::wrapper! { - pub struct Pipeline(Object) @extends gst::Pipeline, gst::Element, gst::Object; + pub struct Pipeline(Object) @extends gst::Pipeline, gst::Bin, gst::Element, gst::Object; match fn { type_ => || ffi::ges_pipeline_get_type(), diff --git a/gstreamer-editing-services/src/auto/timeline.rs b/gstreamer-editing-services/src/auto/timeline.rs index 9aea939ec..aabadea76 100644 --- a/gstreamer-editing-services/src/auto/timeline.rs +++ b/gstreamer-editing-services/src/auto/timeline.rs @@ -26,7 +26,7 @@ use std::mem::transmute; use std::ptr; glib::wrapper! { - pub struct Timeline(Object) @extends gst::Element, gst::Object, @implements Extractable; + pub struct Timeline(Object) @extends gst::Bin, gst::Element, gst::Object, @implements Extractable; match fn { type_ => || ffi::ges_timeline_get_type(), diff --git a/gstreamer-editing-services/src/auto/timeline_element.rs b/gstreamer-editing-services/src/auto/timeline_element.rs index 444384ae1..8635c9e5b 100644 --- a/gstreamer-editing-services/src/auto/timeline_element.rs +++ b/gstreamer-editing-services/src/auto/timeline_element.rs @@ -75,13 +75,13 @@ pub trait TimelineElementExt: 'static { //#[doc(alias = "get_child_properties")] //fn child_properties(&self, first_property_name: &str, : /*Unknown conversion*//*Unimplemented*/Fundamental: VarArgs); - //#[doc(alias = "ges_timeline_element_get_child_property")] - //#[doc(alias = "get_child_property")] - //fn child_property(&self, property_name: &str, value: /*Ignored*/glib::Value) -> bool; + #[doc(alias = "ges_timeline_element_get_child_property")] + #[doc(alias = "get_child_property")] + fn child_property(&self, property_name: &str) -> Option; //#[doc(alias = "ges_timeline_element_get_child_property_by_pspec")] //#[doc(alias = "get_child_property_by_pspec")] - //fn child_property_by_pspec(&self, pspec: /*Ignored*/&glib::ParamSpec, value: /*Ignored*/glib::Value); + //fn child_property_by_pspec(&self, pspec: /*Ignored*/&glib::ParamSpec) -> glib::Value; //#[doc(alias = "ges_timeline_element_get_child_property_valist")] //#[doc(alias = "get_child_property_valist")] @@ -166,16 +166,24 @@ pub trait TimelineElementExt: 'static { //#[doc(alias = "ges_timeline_element_set_child_properties")] //fn set_child_properties(&self, first_property_name: &str, : /*Unknown conversion*//*Unimplemented*/Fundamental: VarArgs); - //#[doc(alias = "ges_timeline_element_set_child_property")] - //fn set_child_property(&self, property_name: &str, value: /*Ignored*/&glib::Value) -> bool; + #[doc(alias = "ges_timeline_element_set_child_property")] + fn set_child_property( + &self, + property_name: &str, + value: &glib::Value, + ) -> Result<(), glib::error::BoolError>; //#[doc(alias = "ges_timeline_element_set_child_property_by_pspec")] - //fn set_child_property_by_pspec(&self, pspec: /*Ignored*/&glib::ParamSpec, value: /*Ignored*/&glib::Value); + //fn set_child_property_by_pspec(&self, pspec: /*Ignored*/&glib::ParamSpec, value: &glib::Value); - //#[cfg(any(feature = "v1_18", feature = "dox"))] - //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] - //#[doc(alias = "ges_timeline_element_set_child_property_full")] - //fn set_child_property_full(&self, property_name: &str, value: /*Ignored*/&glib::Value) -> Result<(), glib::Error>; + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[doc(alias = "ges_timeline_element_set_child_property_full")] + fn set_child_property_full( + &self, + property_name: &str, + value: &glib::Value, + ) -> Result<(), glib::Error>; //#[doc(alias = "ges_timeline_element_set_child_property_valist")] //fn set_child_property_valist(&self, first_property_name: &str, var_args: /*Unknown conversion*//*Unimplemented*/Unsupported); @@ -329,11 +337,23 @@ impl> TimelineElementExt for O { // unsafe { TODO: call ffi:ges_timeline_element_get_child_properties() } //} - //fn child_property(&self, property_name: &str, value: /*Ignored*/glib::Value) -> bool { - // unsafe { TODO: call ffi:ges_timeline_element_get_child_property() } - //} + fn child_property(&self, property_name: &str) -> Option { + unsafe { + let mut value = glib::Value::uninitialized(); + let ret = from_glib(ffi::ges_timeline_element_get_child_property( + self.as_ref().to_glib_none().0, + property_name.to_glib_none().0, + value.to_glib_none_mut().0, + )); + if ret { + Some(value) + } else { + None + } + } + } - //fn child_property_by_pspec(&self, pspec: /*Ignored*/&glib::ParamSpec, value: /*Ignored*/glib::Value) { + //fn child_property_by_pspec(&self, pspec: /*Ignored*/&glib::ParamSpec) -> glib::Value { // unsafe { TODO: call ffi:ges_timeline_element_get_child_property_by_pspec() } //} @@ -512,19 +532,49 @@ impl> TimelineElementExt for O { // unsafe { TODO: call ffi:ges_timeline_element_set_child_properties() } //} - //fn set_child_property(&self, property_name: &str, value: /*Ignored*/&glib::Value) -> bool { - // unsafe { TODO: call ffi:ges_timeline_element_set_child_property() } - //} + fn set_child_property( + &self, + property_name: &str, + value: &glib::Value, + ) -> Result<(), glib::error::BoolError> { + unsafe { + glib::result_from_gboolean!( + ffi::ges_timeline_element_set_child_property( + self.as_ref().to_glib_none().0, + property_name.to_glib_none().0, + value.to_glib_none().0 + ), + "Failed to set child property" + ) + } + } - //fn set_child_property_by_pspec(&self, pspec: /*Ignored*/&glib::ParamSpec, value: /*Ignored*/&glib::Value) { + //fn set_child_property_by_pspec(&self, pspec: /*Ignored*/&glib::ParamSpec, value: &glib::Value) { // unsafe { TODO: call ffi:ges_timeline_element_set_child_property_by_pspec() } //} - //#[cfg(any(feature = "v1_18", feature = "dox"))] - //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] - //fn set_child_property_full(&self, property_name: &str, value: /*Ignored*/&glib::Value) -> Result<(), glib::Error> { - // unsafe { TODO: call ffi:ges_timeline_element_set_child_property_full() } - //} + #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + fn set_child_property_full( + &self, + property_name: &str, + value: &glib::Value, + ) -> Result<(), glib::Error> { + unsafe { + let mut error = ptr::null_mut(); + let _ = ffi::ges_timeline_element_set_child_property_full( + self.as_ref().to_glib_none().0, + property_name.to_glib_none().0, + value.to_glib_none().0, + &mut error, + ); + if error.is_null() { + Ok(()) + } else { + Err(from_glib_full(error)) + } + } + } //fn set_child_property_valist(&self, first_property_name: &str, var_args: /*Unknown conversion*//*Unimplemented*/Unsupported) { // unsafe { TODO: call ffi:ges_timeline_element_set_child_property_valist() } diff --git a/gstreamer-editing-services/src/auto/track.rs b/gstreamer-editing-services/src/auto/track.rs index ad895e41b..56e19d5b3 100644 --- a/gstreamer-editing-services/src/auto/track.rs +++ b/gstreamer-editing-services/src/auto/track.rs @@ -22,7 +22,7 @@ use std::mem::transmute; use std::ptr; glib::wrapper! { - pub struct Track(Object) @extends gst::Element, gst::Object; + pub struct Track(Object) @extends gst::Bin, gst::Element, gst::Object; match fn { type_ => || ffi::ges_track_get_type(), diff --git a/gstreamer-editing-services/src/auto/track_element.rs b/gstreamer-editing-services/src/auto/track_element.rs index 8162cfcac..99a5d6c82 100644 --- a/gstreamer-editing-services/src/auto/track_element.rs +++ b/gstreamer-editing-services/src/auto/track_element.rs @@ -63,9 +63,9 @@ pub trait TrackElementExt: 'static { #[doc(alias = "get_auto_clamp_control_sources")] fn is_auto_clamp_control_sources(&self) -> bool; - //#[doc(alias = "ges_track_element_get_control_binding")] - //#[doc(alias = "get_control_binding")] - //fn control_binding(&self, property_name: &str) -> /*Ignored*/Option; + #[doc(alias = "ges_track_element_get_control_binding")] + #[doc(alias = "get_control_binding")] + fn control_binding(&self, property_name: &str) -> Option; #[doc(alias = "ges_track_element_get_element")] #[doc(alias = "get_element")] @@ -114,8 +114,13 @@ pub trait TrackElementExt: 'static { #[doc(alias = "ges_track_element_set_auto_clamp_control_sources")] fn set_auto_clamp_control_sources(&self, auto_clamp: bool); - //#[doc(alias = "ges_track_element_set_control_source")] - //fn set_control_source(&self, source: /*Ignored*/&gst::ControlSource, property_name: &str, binding_type: &str) -> bool; + #[doc(alias = "ges_track_element_set_control_source")] + fn set_control_source>( + &self, + source: &P, + property_name: &str, + binding_type: &str, + ) -> bool; #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] @@ -125,11 +130,17 @@ pub trait TrackElementExt: 'static { #[doc(alias = "ges_track_element_set_track_type")] fn set_track_type(&self, type_: TrackType); - //#[doc(alias = "control-binding-added")] - //fn connect_control_binding_added(&self, f: F) -> SignalHandlerId; + #[doc(alias = "control-binding-added")] + fn connect_control_binding_added( + &self, + f: F, + ) -> SignalHandlerId; - //#[doc(alias = "control-binding-removed")] - //fn connect_control_binding_removed(&self, f: F) -> SignalHandlerId; + #[doc(alias = "control-binding-removed")] + fn connect_control_binding_removed( + &self, + f: F, + ) -> SignalHandlerId; #[doc(alias = "active")] fn connect_active_notify(&self, f: F) -> SignalHandlerId; @@ -219,9 +230,14 @@ impl> TrackElementExt for O { } } - //fn control_binding(&self, property_name: &str) -> /*Ignored*/Option { - // unsafe { TODO: call ffi:ges_track_element_get_control_binding() } - //} + fn control_binding(&self, property_name: &str) -> Option { + unsafe { + from_glib_none(ffi::ges_track_element_get_control_binding( + self.as_ref().to_glib_none().0, + property_name.to_glib_none().0, + )) + } + } fn element(&self) -> Option { unsafe { @@ -327,9 +343,21 @@ impl> TrackElementExt for O { } } - //fn set_control_source(&self, source: /*Ignored*/&gst::ControlSource, property_name: &str, binding_type: &str) -> bool { - // unsafe { TODO: call ffi:ges_track_element_set_control_source() } - //} + fn set_control_source>( + &self, + source: &P, + property_name: &str, + binding_type: &str, + ) -> bool { + unsafe { + from_glib(ffi::ges_track_element_set_control_source( + self.as_ref().to_glib_none().0, + source.as_ref().to_glib_none().0, + property_name.to_glib_none().0, + binding_type.to_glib_none().0, + )) + } + } #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] @@ -351,15 +379,69 @@ impl> TrackElementExt for O { } } - //#[doc(alias = "control-binding-added")] - //fn connect_control_binding_added(&self, f: F) -> SignalHandlerId { - // Ignored control_binding: Gst.ControlBinding - //} + #[doc(alias = "control-binding-added")] + fn connect_control_binding_added( + &self, + f: F, + ) -> SignalHandlerId { + unsafe extern "C" fn control_binding_added_trampoline< + P: IsA, + F: Fn(&P, &gst::ControlBinding) + 'static, + >( + this: *mut ffi::GESTrackElement, + control_binding: *mut gst::ffi::GstControlBinding, + f: glib::ffi::gpointer, + ) { + let f: &F = &*(f as *const F); + f( + &TrackElement::from_glib_borrow(this).unsafe_cast_ref(), + &from_glib_borrow(control_binding), + ) + } + unsafe { + let f: Box_ = Box_::new(f); + connect_raw( + self.as_ptr() as *mut _, + b"control-binding-added\0".as_ptr() as *const _, + Some(transmute::<_, unsafe extern "C" fn()>( + control_binding_added_trampoline:: as *const (), + )), + Box_::into_raw(f), + ) + } + } - //#[doc(alias = "control-binding-removed")] - //fn connect_control_binding_removed(&self, f: F) -> SignalHandlerId { - // Ignored control_binding: Gst.ControlBinding - //} + #[doc(alias = "control-binding-removed")] + fn connect_control_binding_removed( + &self, + f: F, + ) -> SignalHandlerId { + unsafe extern "C" fn control_binding_removed_trampoline< + P: IsA, + F: Fn(&P, &gst::ControlBinding) + 'static, + >( + this: *mut ffi::GESTrackElement, + control_binding: *mut gst::ffi::GstControlBinding, + f: glib::ffi::gpointer, + ) { + let f: &F = &*(f as *const F); + f( + &TrackElement::from_glib_borrow(this).unsafe_cast_ref(), + &from_glib_borrow(control_binding), + ) + } + unsafe { + let f: Box_ = Box_::new(f); + connect_raw( + self.as_ptr() as *mut _, + b"control-binding-removed\0".as_ptr() as *const _, + Some(transmute::<_, unsafe extern "C" fn()>( + control_binding_removed_trampoline:: as *const (), + )), + Box_::into_raw(f), + ) + } + } #[doc(alias = "active")] fn connect_active_notify(&self, f: F) -> SignalHandlerId { diff --git a/gstreamer-player/src/auto/player_video_overlay_video_renderer.rs b/gstreamer-player/src/auto/player_video_overlay_video_renderer.rs index ef8692ff3..f8059f356 100644 --- a/gstreamer-player/src/auto/player_video_overlay_video_renderer.rs +++ b/gstreamer-player/src/auto/player_video_overlay_video_renderer.rs @@ -54,12 +54,6 @@ impl PlayerVideoOverlayVideoRenderer { } } - //#[doc(alias = "gst_player_video_overlay_video_renderer_get_window_handle")] - //#[doc(alias = "get_window_handle")] - //pub fn window_handle(&self) -> /*Unimplemented*/Option { - // unsafe { TODO: call ffi:gst_player_video_overlay_video_renderer_get_window_handle() } - //} - #[doc(alias = "gst_player_video_overlay_video_renderer_set_render_rectangle")] pub fn set_render_rectangle(&self, x: i32, y: i32, width: i32, height: i32) { unsafe { @@ -73,11 +67,6 @@ impl PlayerVideoOverlayVideoRenderer { } } - //#[doc(alias = "gst_player_video_overlay_video_renderer_set_window_handle")] - //pub fn set_window_handle(&self, window_handle: /*Unimplemented*/Option) { - // unsafe { TODO: call ffi:gst_player_video_overlay_video_renderer_set_window_handle() } - //} - #[doc(alias = "video-sink")] pub fn video_sink(&self) -> Option { unsafe { @@ -104,16 +93,6 @@ impl PlayerVideoOverlayVideoRenderer { } } - //#[doc(alias = "gst_player_video_overlay_video_renderer_new")] - //pub fn new(window_handle: /*Unimplemented*/Option) -> Option { - // unsafe { TODO: call ffi:gst_player_video_overlay_video_renderer_new() } - //} - - //#[doc(alias = "gst_player_video_overlay_video_renderer_new_with_sink")] - //pub fn new_with_sink>(window_handle: /*Unimplemented*/Option, video_sink: &P) -> Option { - // unsafe { TODO: call ffi:gst_player_video_overlay_video_renderer_new_with_sink() } - //} - #[doc(alias = "video-sink")] pub fn connect_video_sink_notify( &self, diff --git a/gstreamer-rtsp-server/src/auto/rtsp_client.rs b/gstreamer-rtsp-server/src/auto/rtsp_client.rs index 78579129e..9445d839d 100644 --- a/gstreamer-rtsp-server/src/auto/rtsp_client.rs +++ b/gstreamer-rtsp-server/src/auto/rtsp_client.rs @@ -112,9 +112,6 @@ pub trait RTSPClientExt: 'static { #[doc(alias = "gst_rtsp_client_set_mount_points")] fn set_mount_points>(&self, mounts: Option<&P>); - //#[doc(alias = "gst_rtsp_client_set_send_func")] - //fn set_send_func(&self, func: /*Unimplemented*/Fn(&RTSPClient, /*Ignored*/gst_rtsp::RTSPMessage, bool) -> bool, user_data: /*Unimplemented*/Option); - //#[cfg(any(feature = "v1_16", feature = "dox"))] //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] //#[doc(alias = "gst_rtsp_client_set_send_messages_func")] @@ -483,10 +480,6 @@ impl> RTSPClientExt for O { } } - //fn set_send_func(&self, func: /*Unimplemented*/Fn(&RTSPClient, /*Ignored*/gst_rtsp::RTSPMessage, bool) -> bool, user_data: /*Unimplemented*/Option) { - // unsafe { TODO: call ffi:gst_rtsp_client_set_send_func() } - //} - //#[cfg(any(feature = "v1_16", feature = "dox"))] //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] //fn set_send_messages_func(&self, func: /*Unimplemented*/Fn(&RTSPClient, /*Ignored*/gst_rtsp::RTSPMessage, u32, bool) -> bool, user_data: /*Unimplemented*/Option) { diff --git a/gstreamer-rtsp-server/src/auto/rtsp_media.rs b/gstreamer-rtsp-server/src/auto/rtsp_media.rs index 8fbc49d70..0ee262e3f 100644 --- a/gstreamer-rtsp-server/src/auto/rtsp_media.rs +++ b/gstreamer-rtsp-server/src/auto/rtsp_media.rs @@ -158,9 +158,9 @@ pub trait RTSPMediaExt: 'static { #[doc(alias = "get_suspend_mode")] fn suspend_mode(&self) -> RTSPSuspendMode; - //#[doc(alias = "gst_rtsp_media_get_time_provider")] - //#[doc(alias = "get_time_provider")] - //fn time_provider(&self, address: Option<&str>, port: u16) -> /*Ignored*/Option; + #[doc(alias = "gst_rtsp_media_get_time_provider")] + #[doc(alias = "get_time_provider")] + fn time_provider(&self, address: Option<&str>, port: u16) -> Option; #[doc(alias = "gst_rtsp_media_get_transport_mode")] #[doc(alias = "get_transport_mode")] @@ -667,9 +667,15 @@ impl> RTSPMediaExt for O { } } - //fn time_provider(&self, address: Option<&str>, port: u16) -> /*Ignored*/Option { - // unsafe { TODO: call ffi:gst_rtsp_media_get_time_provider() } - //} + fn time_provider(&self, address: Option<&str>, port: u16) -> Option { + unsafe { + from_glib_full(ffi::gst_rtsp_media_get_time_provider( + self.as_ref().to_glib_none().0, + address.to_glib_none().0, + port, + )) + } + } fn transport_mode(&self) -> RTSPTransportMode { unsafe { diff --git a/gstreamer-video/src/auto/video_overlay.rs b/gstreamer-video/src/auto/video_overlay.rs index 0b60e56ef..e7e6be8ed 100644 --- a/gstreamer-video/src/auto/video_overlay.rs +++ b/gstreamer-video/src/auto/video_overlay.rs @@ -21,13 +21,6 @@ impl VideoOverlay { //pub fn install_properties(oclass: /*Ignored*/&mut glib::ObjectClass, last_prop_id: i32) { // unsafe { TODO: call ffi:gst_video_overlay_install_properties() } //} - - //#[cfg(any(feature = "v1_14", feature = "dox"))] - //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] - //#[doc(alias = "gst_video_overlay_set_property")] - //pub fn set_property>(object: &P, last_prop_id: i32, property_id: u32, value: /*Ignored*/&glib::Value) -> bool { - // unsafe { TODO: call ffi:gst_video_overlay_set_property() } - //} } unsafe impl Send for VideoOverlay {} @@ -56,9 +49,6 @@ pub trait VideoOverlayExt: 'static { width: i32, height: i32, ) -> Result<(), glib::error::BoolError>; - - //#[doc(alias = "gst_video_overlay_set_window_handle")] - //fn set_window_handle(&self, handle: /*Unimplemented*/Fundamental: UIntPtr); } impl> VideoOverlayExt for O { @@ -107,8 +97,4 @@ impl> VideoOverlayExt for O { ) } } - - //fn set_window_handle(&self, handle: /*Unimplemented*/Fundamental: UIntPtr) { - // unsafe { TODO: call ffi:gst_video_overlay_set_window_handle() } - //} } diff --git a/gstreamer/src/auto/bin.rs b/gstreamer/src/auto/bin.rs index d1df0665a..45edccf95 100644 --- a/gstreamer/src/auto/bin.rs +++ b/gstreamer/src/auto/bin.rs @@ -46,9 +46,6 @@ pub trait GstBinExt: 'static { #[doc(alias = "gst_bin_add")] fn add>(&self, element: &P) -> Result<(), glib::error::BoolError>; - //#[doc(alias = "gst_bin_add_many")] - //fn add_many>(&self, element_1: &P, : /*Unknown conversion*//*Unimplemented*/Fundamental: VarArgs); - #[doc(alias = "gst_bin_find_unlinked_pad")] fn find_unlinked_pad(&self, direction: PadDirection) -> Option; @@ -70,38 +67,12 @@ pub trait GstBinExt: 'static { #[doc(alias = "get_suppressed_flags")] fn suppressed_flags(&self) -> ElementFlags; - //#[cfg(any(feature = "v1_18", feature = "dox"))] - //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] - //#[doc(alias = "gst_bin_iterate_all_by_element_factory_name")] - //fn iterate_all_by_element_factory_name(&self, factory_name: &str) -> /*Ignored*/Option; - - //#[doc(alias = "gst_bin_iterate_all_by_interface")] - //fn iterate_all_by_interface(&self, iface: glib::types::Type) -> /*Ignored*/Option; - - //#[doc(alias = "gst_bin_iterate_elements")] - //fn iterate_elements(&self) -> /*Ignored*/Option; - - //#[doc(alias = "gst_bin_iterate_recurse")] - //fn iterate_recurse(&self) -> /*Ignored*/Option; - - //#[doc(alias = "gst_bin_iterate_sinks")] - //fn iterate_sinks(&self) -> /*Ignored*/Option; - - //#[doc(alias = "gst_bin_iterate_sorted")] - //fn iterate_sorted(&self) -> /*Ignored*/Option; - - //#[doc(alias = "gst_bin_iterate_sources")] - //fn iterate_sources(&self) -> /*Ignored*/Option; - #[doc(alias = "gst_bin_recalculate_latency")] fn recalculate_latency(&self) -> Result<(), glib::error::BoolError>; #[doc(alias = "gst_bin_remove")] fn remove>(&self, element: &P) -> Result<(), glib::error::BoolError>; - //#[doc(alias = "gst_bin_remove_many")] - //fn remove_many>(&self, element_1: &P, : /*Unknown conversion*//*Unimplemented*/Fundamental: VarArgs); - #[cfg(any(feature = "v1_10", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] #[doc(alias = "gst_bin_set_suppressed_flags")] @@ -176,10 +147,6 @@ impl> GstBinExt for O { } } - //fn add_many>(&self, element_1: &P, : /*Unknown conversion*//*Unimplemented*/Fundamental: VarArgs) { - // unsafe { TODO: call ffi:gst_bin_add_many() } - //} - fn find_unlinked_pad(&self, direction: PadDirection) -> Option { unsafe { from_glib_full(ffi::gst_bin_find_unlinked_pad( @@ -226,36 +193,6 @@ impl> GstBinExt for O { } } - //#[cfg(any(feature = "v1_18", feature = "dox"))] - //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] - //fn iterate_all_by_element_factory_name(&self, factory_name: &str) -> /*Ignored*/Option { - // unsafe { TODO: call ffi:gst_bin_iterate_all_by_element_factory_name() } - //} - - //fn iterate_all_by_interface(&self, iface: glib::types::Type) -> /*Ignored*/Option { - // unsafe { TODO: call ffi:gst_bin_iterate_all_by_interface() } - //} - - //fn iterate_elements(&self) -> /*Ignored*/Option { - // unsafe { TODO: call ffi:gst_bin_iterate_elements() } - //} - - //fn iterate_recurse(&self) -> /*Ignored*/Option { - // unsafe { TODO: call ffi:gst_bin_iterate_recurse() } - //} - - //fn iterate_sinks(&self) -> /*Ignored*/Option { - // unsafe { TODO: call ffi:gst_bin_iterate_sinks() } - //} - - //fn iterate_sorted(&self) -> /*Ignored*/Option { - // unsafe { TODO: call ffi:gst_bin_iterate_sorted() } - //} - - //fn iterate_sources(&self) -> /*Ignored*/Option { - // unsafe { TODO: call ffi:gst_bin_iterate_sources() } - //} - fn recalculate_latency(&self) -> Result<(), glib::error::BoolError> { unsafe { glib::result_from_gboolean!( @@ -277,10 +214,6 @@ impl> GstBinExt for O { } } - //fn remove_many>(&self, element_1: &P, : /*Unknown conversion*//*Unimplemented*/Fundamental: VarArgs) { - // unsafe { TODO: call ffi:gst_bin_remove_many() } - //} - #[cfg(any(feature = "v1_10", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] fn set_suppressed_flags(&self, flags: ElementFlags) { diff --git a/gstreamer/src/auto/clock.rs b/gstreamer/src/auto/clock.rs index cd1f4ef5d..85c81b2ea 100644 --- a/gstreamer/src/auto/clock.rs +++ b/gstreamer/src/auto/clock.rs @@ -121,15 +121,6 @@ pub trait ClockExt: 'static { #[doc(alias = "gst_clock_is_synced")] fn is_synced(&self) -> bool; - //#[doc(alias = "gst_clock_new_periodic_id")] - //fn new_periodic_id(&self, start_time: ClockTime, interval: ClockTime) -> /*Unimplemented*/ClockID; - - //#[doc(alias = "gst_clock_new_single_shot_id")] - //fn new_single_shot_id(&self, time: ClockTime) -> /*Unimplemented*/ClockID; - - //#[doc(alias = "gst_clock_periodic_id_reinit")] - //fn periodic_id_reinit(&self, id: /*Unimplemented*/ClockID, start_time: ClockTime, interval: ClockTime) -> bool; - #[doc(alias = "gst_clock_set_calibration")] fn set_calibration( &self, @@ -151,9 +142,6 @@ pub trait ClockExt: 'static { #[doc(alias = "gst_clock_set_timeout")] fn set_timeout(&self, timeout: ClockTime); - //#[doc(alias = "gst_clock_single_shot_id_reinit")] - //fn single_shot_id_reinit(&self, id: /*Unimplemented*/ClockID, time: ClockTime) -> bool; - #[doc(alias = "gst_clock_unadjust_unlocked")] fn unadjust_unlocked(&self, external: ClockTime) -> ClockTime; @@ -318,18 +306,6 @@ impl> ClockExt for O { unsafe { from_glib(ffi::gst_clock_is_synced(self.as_ref().to_glib_none().0)) } } - //fn new_periodic_id(&self, start_time: ClockTime, interval: ClockTime) -> /*Unimplemented*/ClockID { - // unsafe { TODO: call ffi:gst_clock_new_periodic_id() } - //} - - //fn new_single_shot_id(&self, time: ClockTime) -> /*Unimplemented*/ClockID { - // unsafe { TODO: call ffi:gst_clock_new_single_shot_id() } - //} - - //fn periodic_id_reinit(&self, id: /*Unimplemented*/ClockID, start_time: ClockTime, interval: ClockTime) -> bool { - // unsafe { TODO: call ffi:gst_clock_periodic_id_reinit() } - //} - fn set_calibration( &self, internal: ClockTime, @@ -381,10 +357,6 @@ impl> ClockExt for O { } } - //fn single_shot_id_reinit(&self, id: /*Unimplemented*/ClockID, time: ClockTime) -> bool { - // unsafe { TODO: call ffi:gst_clock_single_shot_id_reinit() } - //} - fn unadjust_unlocked(&self, external: ClockTime) -> ClockTime { unsafe { from_glib(ffi::gst_clock_unadjust_unlocked( diff --git a/gstreamer/src/auto/element.rs b/gstreamer/src/auto/element.rs index 4f2751d9b..a418f77e5 100644 --- a/gstreamer/src/auto/element.rs +++ b/gstreamer/src/auto/element.rs @@ -156,15 +156,6 @@ pub trait ElementExt: 'static { #[doc(alias = "gst_element_is_locked_state")] fn is_locked_state(&self) -> bool; - //#[doc(alias = "gst_element_iterate_pads")] - //fn iterate_pads(&self) -> /*Ignored*/Iterator; - - //#[doc(alias = "gst_element_iterate_sink_pads")] - //fn iterate_sink_pads(&self) -> /*Ignored*/Iterator; - - //#[doc(alias = "gst_element_iterate_src_pads")] - //fn iterate_src_pads(&self) -> /*Ignored*/Iterator; - #[doc(alias = "gst_element_link")] fn link>(&self, dest: &P) -> Result<(), glib::error::BoolError>; @@ -175,9 +166,6 @@ pub trait ElementExt: 'static { filter: &Caps, ) -> Result<(), glib::error::BoolError>; - //#[doc(alias = "gst_element_link_many")] - //fn link_many>(&self, element_2: &P, : /*Unknown conversion*//*Unimplemented*/Fundamental: VarArgs) -> bool; - #[doc(alias = "gst_element_link_pads")] fn link_pads>( &self, @@ -207,14 +195,6 @@ pub trait ElementExt: 'static { #[doc(alias = "gst_element_lost_state")] fn lost_state(&self); - //#[doc(alias = "gst_element_message_full")] - //fn message_full(&self, type_: /*Ignored*/MessageType, domain: glib::Quark, code: i32, text: Option<&str>, debug: Option<&str>, file: &str, function: &str, line: i32); - - //#[cfg(any(feature = "v1_10", feature = "dox"))] - //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] - //#[doc(alias = "gst_element_message_full_with_details")] - //fn message_full_with_details(&self, type_: /*Ignored*/MessageType, domain: glib::Quark, code: i32, text: Option<&str>, debug: Option<&str>, file: &str, function: &str, line: i32, structure: &mut Structure); - #[doc(alias = "gst_element_no_more_pads")] fn no_more_pads(&self); @@ -262,9 +242,6 @@ pub trait ElementExt: 'static { #[doc(alias = "gst_element_unlink")] fn unlink>(&self, dest: &P); - //#[doc(alias = "gst_element_unlink_many")] - //fn unlink_many>(&self, element_2: &P, : /*Unknown conversion*//*Unimplemented*/Fundamental: VarArgs); - #[doc(alias = "gst_element_unlink_pads")] fn unlink_pads>(&self, srcpadname: &str, dest: &P, destpadname: &str); @@ -520,18 +497,6 @@ impl> ElementExt for O { } } - //fn iterate_pads(&self) -> /*Ignored*/Iterator { - // unsafe { TODO: call ffi:gst_element_iterate_pads() } - //} - - //fn iterate_sink_pads(&self) -> /*Ignored*/Iterator { - // unsafe { TODO: call ffi:gst_element_iterate_sink_pads() } - //} - - //fn iterate_src_pads(&self) -> /*Ignored*/Iterator { - // unsafe { TODO: call ffi:gst_element_iterate_src_pads() } - //} - fn link>(&self, dest: &P) -> Result<(), glib::error::BoolError> { unsafe { glib::result_from_gboolean!( @@ -561,10 +526,6 @@ impl> ElementExt for O { } } - //fn link_many>(&self, element_2: &P, : /*Unknown conversion*//*Unimplemented*/Fundamental: VarArgs) -> bool { - // unsafe { TODO: call ffi:gst_element_link_many() } - //} - fn link_pads>( &self, srcpadname: Option<&str>, @@ -632,16 +593,6 @@ impl> ElementExt for O { } } - //fn message_full(&self, type_: /*Ignored*/MessageType, domain: glib::Quark, code: i32, text: Option<&str>, debug: Option<&str>, file: &str, function: &str, line: i32) { - // unsafe { TODO: call ffi:gst_element_message_full() } - //} - - //#[cfg(any(feature = "v1_10", feature = "dox"))] - //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] - //fn message_full_with_details(&self, type_: /*Ignored*/MessageType, domain: glib::Quark, code: i32, text: Option<&str>, debug: Option<&str>, file: &str, function: &str, line: i32, structure: &mut Structure) { - // unsafe { TODO: call ffi:gst_element_message_full_with_details() } - //} - fn no_more_pads(&self) { unsafe { ffi::gst_element_no_more_pads(self.as_ref().to_glib_none().0); @@ -765,10 +716,6 @@ impl> ElementExt for O { } } - //fn unlink_many>(&self, element_2: &P, : /*Unknown conversion*//*Unimplemented*/Fundamental: VarArgs) { - // unsafe { TODO: call ffi:gst_element_unlink_many() } - //} - fn unlink_pads>(&self, srcpadname: &str, dest: &P, destpadname: &str) { unsafe { ffi::gst_element_unlink_pads( diff --git a/gstreamer/src/auto/object.rs b/gstreamer/src/auto/object.rs index 1a7ed0d12..8141cefb8 100644 --- a/gstreamer/src/auto/object.rs +++ b/gstreamer/src/auto/object.rs @@ -39,11 +39,6 @@ impl Object { // unsafe { TODO: call ffi:gst_object_default_deep_notify() } //} - //#[doc(alias = "gst_object_ref_sink")] - //pub fn ref_sink(object: /*Unimplemented*/Option) -> /*Unimplemented*/Option { - // unsafe { TODO: call ffi:gst_object_ref_sink() } - //} - //#[doc(alias = "gst_object_replace")] //pub fn replace, Q: IsA>(oldobj: Option

, newobj: Option<&Q>) -> bool { // unsafe { TODO: call ffi:gst_object_replace() } diff --git a/gstreamer/src/auto/tag_setter.rs b/gstreamer/src/auto/tag_setter.rs index 250cff813..3c0985705 100644 --- a/gstreamer/src/auto/tag_setter.rs +++ b/gstreamer/src/auto/tag_setter.rs @@ -33,9 +33,6 @@ pub trait TagSetterExt: 'static { //#[doc(alias = "gst_tag_setter_add_tag_values")] //fn add_tag_values(&self, mode: TagMergeMode, tag: &str, : /*Unknown conversion*//*Unimplemented*/Fundamental: VarArgs); - //#[doc(alias = "gst_tag_setter_add_tags")] - //fn add_tags(&self, mode: TagMergeMode, tag: &str, : /*Unknown conversion*//*Unimplemented*/Fundamental: VarArgs); - #[doc(alias = "gst_tag_setter_get_tag_list")] #[doc(alias = "get_tag_list")] fn tag_list(&self) -> Option; @@ -67,10 +64,6 @@ impl> TagSetterExt for O { // unsafe { TODO: call ffi:gst_tag_setter_add_tag_values() } //} - //fn add_tags(&self, mode: TagMergeMode, tag: &str, : /*Unknown conversion*//*Unimplemented*/Fundamental: VarArgs) { - // unsafe { TODO: call ffi:gst_tag_setter_add_tags() } - //} - fn tag_list(&self) -> Option { unsafe { from_glib_none(ffi::gst_tag_setter_get_tag_list( diff --git a/gstreamer/src/auto/type_find_factory.rs b/gstreamer/src/auto/type_find_factory.rs index cfdc4536e..68aae25fb 100644 --- a/gstreamer/src/auto/type_find_factory.rs +++ b/gstreamer/src/auto/type_find_factory.rs @@ -17,11 +17,6 @@ glib::wrapper! { } impl TypeFindFactory { - //#[doc(alias = "gst_type_find_factory_call_function")] - //pub fn call_function(&self, find: /*Ignored*/&mut TypeFind) { - // unsafe { TODO: call ffi:gst_type_find_factory_call_function() } - //} - #[doc(alias = "gst_type_find_factory_get_caps")] #[doc(alias = "get_caps")] pub fn caps(&self) -> Option {