diff --git a/gstreamer-app/src/auto/app_sink.rs b/gstreamer-app/src/auto/app_sink.rs index 854817122..cde1f7279 100644 --- a/gstreamer-app/src/auto/app_sink.rs +++ b/gstreamer-app/src/auto/app_sink.rs @@ -21,6 +21,7 @@ glib::glib_wrapper! { impl AppSink { #[cfg(any(feature = "v1_12", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] + #[doc(alias = "gst_app_sink_get_buffer_list_support")] pub fn get_buffer_list_support(&self) -> bool { unsafe { from_glib(ffi::gst_app_sink_get_buffer_list_support( @@ -29,30 +30,37 @@ impl AppSink { } } + #[doc(alias = "gst_app_sink_get_caps")] pub fn get_caps(&self) -> Option { unsafe { from_glib_full(ffi::gst_app_sink_get_caps(self.to_glib_none().0)) } } + #[doc(alias = "gst_app_sink_get_drop")] pub fn get_drop(&self) -> bool { unsafe { from_glib(ffi::gst_app_sink_get_drop(self.to_glib_none().0)) } } + #[doc(alias = "gst_app_sink_get_emit_signals")] pub fn get_emit_signals(&self) -> bool { unsafe { from_glib(ffi::gst_app_sink_get_emit_signals(self.to_glib_none().0)) } } + #[doc(alias = "gst_app_sink_get_max_buffers")] pub fn get_max_buffers(&self) -> u32 { unsafe { ffi::gst_app_sink_get_max_buffers(self.to_glib_none().0) } } + #[doc(alias = "gst_app_sink_get_wait_on_eos")] pub fn get_wait_on_eos(&self) -> bool { unsafe { from_glib(ffi::gst_app_sink_get_wait_on_eos(self.to_glib_none().0)) } } + #[doc(alias = "gst_app_sink_is_eos")] pub fn is_eos(&self) -> bool { unsafe { from_glib(ffi::gst_app_sink_is_eos(self.to_glib_none().0)) } } + #[doc(alias = "gst_app_sink_pull_preroll")] pub fn pull_preroll(&self) -> Result { unsafe { Option::<_>::from_glib_full(ffi::gst_app_sink_pull_preroll(self.to_glib_none().0)) @@ -60,6 +68,7 @@ impl AppSink { } } + #[doc(alias = "gst_app_sink_pull_sample")] pub fn pull_sample(&self) -> Result { unsafe { Option::<_>::from_glib_full(ffi::gst_app_sink_pull_sample(self.to_glib_none().0)) @@ -69,6 +78,7 @@ impl AppSink { #[cfg(any(feature = "v1_12", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] + #[doc(alias = "gst_app_sink_set_buffer_list_support")] pub fn set_buffer_list_support(&self, enable_lists: bool) { unsafe { ffi::gst_app_sink_set_buffer_list_support( @@ -78,34 +88,40 @@ impl AppSink { } } + //#[doc(alias = "gst_app_sink_set_callbacks")] //pub fn set_callbacks(&self, callbacks: /*Ignored*/&mut AppSinkCallbacks, user_data: /*Unimplemented*/Option) { // unsafe { TODO: call ffi:gst_app_sink_set_callbacks() } //} + #[doc(alias = "gst_app_sink_set_caps")] pub fn set_caps(&self, caps: Option<&gst::Caps>) { unsafe { ffi::gst_app_sink_set_caps(self.to_glib_none().0, caps.to_glib_none().0); } } + #[doc(alias = "gst_app_sink_set_drop")] pub fn set_drop(&self, drop: bool) { unsafe { ffi::gst_app_sink_set_drop(self.to_glib_none().0, drop.to_glib()); } } + #[doc(alias = "gst_app_sink_set_emit_signals")] pub fn set_emit_signals(&self, emit: bool) { unsafe { ffi::gst_app_sink_set_emit_signals(self.to_glib_none().0, emit.to_glib()); } } + #[doc(alias = "gst_app_sink_set_max_buffers")] pub fn set_max_buffers(&self, max: u32) { unsafe { ffi::gst_app_sink_set_max_buffers(self.to_glib_none().0, max); } } + #[doc(alias = "gst_app_sink_set_wait_on_eos")] pub fn set_wait_on_eos(&self, wait: bool) { unsafe { ffi::gst_app_sink_set_wait_on_eos(self.to_glib_none().0, wait.to_glib()); @@ -114,6 +130,7 @@ impl AppSink { #[cfg(any(feature = "v1_10", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] + #[doc(alias = "gst_app_sink_try_pull_preroll")] pub fn try_pull_preroll(&self, timeout: gst::ClockTime) -> Option { unsafe { from_glib_full(ffi::gst_app_sink_try_pull_preroll( @@ -125,6 +142,7 @@ impl AppSink { #[cfg(any(feature = "v1_10", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] + #[doc(alias = "gst_app_sink_try_pull_sample")] pub fn try_pull_sample(&self, timeout: gst::ClockTime) -> Option { unsafe { from_glib_full(ffi::gst_app_sink_try_pull_sample( diff --git a/gstreamer-app/src/auto/app_src.rs b/gstreamer-app/src/auto/app_src.rs index 5cc50b2ae..67e54ddeb 100644 --- a/gstreamer-app/src/auto/app_src.rs +++ b/gstreamer-app/src/auto/app_src.rs @@ -20,40 +20,49 @@ glib::glib_wrapper! { } impl AppSrc { + #[doc(alias = "gst_app_src_get_caps")] pub fn get_caps(&self) -> Option { unsafe { from_glib_full(ffi::gst_app_src_get_caps(self.to_glib_none().0)) } } + #[doc(alias = "gst_app_src_get_current_level_bytes")] pub fn get_current_level_bytes(&self) -> u64 { unsafe { ffi::gst_app_src_get_current_level_bytes(self.to_glib_none().0) } } #[cfg(any(feature = "v1_10", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] + #[doc(alias = "gst_app_src_get_duration")] pub fn get_duration(&self) -> gst::ClockTime { unsafe { from_glib(ffi::gst_app_src_get_duration(self.to_glib_none().0)) } } + #[doc(alias = "gst_app_src_get_emit_signals")] pub fn get_emit_signals(&self) -> bool { unsafe { from_glib(ffi::gst_app_src_get_emit_signals(self.to_glib_none().0)) } } + #[doc(alias = "gst_app_src_get_max_bytes")] pub fn get_max_bytes(&self) -> u64 { unsafe { ffi::gst_app_src_get_max_bytes(self.to_glib_none().0) } } + #[doc(alias = "gst_app_src_get_size")] pub fn get_size(&self) -> i64 { unsafe { ffi::gst_app_src_get_size(self.to_glib_none().0) } } + #[doc(alias = "gst_app_src_get_stream_type")] pub fn get_stream_type(&self) -> AppStreamType { unsafe { from_glib(ffi::gst_app_src_get_stream_type(self.to_glib_none().0)) } } + //#[doc(alias = "gst_app_src_set_callbacks")] //pub fn set_callbacks(&self, callbacks: /*Ignored*/&mut AppSrcCallbacks, user_data: /*Unimplemented*/Option) { // unsafe { TODO: call ffi:gst_app_src_set_callbacks() } //} + #[doc(alias = "gst_app_src_set_caps")] pub fn set_caps(&self, caps: Option<&gst::Caps>) { unsafe { ffi::gst_app_src_set_caps(self.to_glib_none().0, caps.to_glib_none().0); @@ -62,30 +71,35 @@ impl AppSrc { #[cfg(any(feature = "v1_10", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] + #[doc(alias = "gst_app_src_set_duration")] pub fn set_duration(&self, duration: gst::ClockTime) { unsafe { ffi::gst_app_src_set_duration(self.to_glib_none().0, duration.to_glib()); } } + #[doc(alias = "gst_app_src_set_emit_signals")] pub fn set_emit_signals(&self, emit: bool) { unsafe { ffi::gst_app_src_set_emit_signals(self.to_glib_none().0, emit.to_glib()); } } + #[doc(alias = "gst_app_src_set_max_bytes")] pub fn set_max_bytes(&self, max: u64) { unsafe { ffi::gst_app_src_set_max_bytes(self.to_glib_none().0, max); } } + #[doc(alias = "gst_app_src_set_size")] pub fn set_size(&self, size: i64) { unsafe { ffi::gst_app_src_set_size(self.to_glib_none().0, size); } } + #[doc(alias = "gst_app_src_set_stream_type")] pub fn set_stream_type(&self, type_: AppStreamType) { unsafe { ffi::gst_app_src_set_stream_type(self.to_glib_none().0, type_.to_glib()); diff --git a/gstreamer-app/src/auto/enums.rs b/gstreamer-app/src/auto/enums.rs index 1b56affb1..488e95359 100644 --- a/gstreamer-app/src/auto/enums.rs +++ b/gstreamer-app/src/auto/enums.rs @@ -35,7 +35,7 @@ impl ToGlib for AppStreamType { #[doc(hidden)] impl FromGlib for AppStreamType { - fn from_glib(value: ffi::GstAppStreamType) -> Self { + unsafe fn from_glib(value: ffi::GstAppStreamType) -> Self { skip_assert_initialized!(); match value { 0 => AppStreamType::Stream, diff --git a/gstreamer-app/src/auto/versions.txt b/gstreamer-app/src/auto/versions.txt index ea795c56c..ba6c32af8 100644 --- a/gstreamer-app/src/auto/versions.txt +++ b/gstreamer-app/src/auto/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7) -from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9) +Generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf) +from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd) diff --git a/gstreamer-app/sys/build.rs b/gstreamer-app/sys/build.rs index beb26524a..4cb086136 100644 --- a/gstreamer-app/sys/build.rs +++ b/gstreamer-app/sys/build.rs @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7) -// from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf) +// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd) // DO NOT EDIT #[cfg(not(feature = "dox"))] diff --git a/gstreamer-app/sys/src/lib.rs b/gstreamer-app/sys/src/lib.rs index 1ee6c81c4..22e26bf76 100644 --- a/gstreamer-app/sys/src/lib.rs +++ b/gstreamer-app/sys/src/lib.rs @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7) -// from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf) +// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd) // DO NOT EDIT #![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)] diff --git a/gstreamer-app/sys/tests/abi.rs b/gstreamer-app/sys/tests/abi.rs index 8913c132c..a7c7f3e65 100644 --- a/gstreamer-app/sys/tests/abi.rs +++ b/gstreamer-app/sys/tests/abi.rs @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7) -// from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf) +// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd) // DO NOT EDIT use gstreamer_app_sys::*; diff --git a/gstreamer-app/sys/tests/constant.c b/gstreamer-app/sys/tests/constant.c index c2ff6ab15..206014da6 100644 --- a/gstreamer-app/sys/tests/constant.c +++ b/gstreamer-app/sys/tests/constant.c @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7) -// from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf) +// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-app/sys/tests/layout.c b/gstreamer-app/sys/tests/layout.c index 64f4cfb9c..82c774a5d 100644 --- a/gstreamer-app/sys/tests/layout.c +++ b/gstreamer-app/sys/tests/layout.c @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7) -// from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf) +// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-audio/src/auto/audio_base_sink.rs b/gstreamer-audio/src/auto/audio_base_sink.rs index 80e533cb7..1097b3fec 100644 --- a/gstreamer-audio/src/auto/audio_base_sink.rs +++ b/gstreamer-audio/src/auto/audio_base_sink.rs @@ -25,30 +25,43 @@ unsafe impl Sync for AudioBaseSink {} pub const NONE_AUDIO_BASE_SINK: Option<&AudioBaseSink> = None; pub trait AudioBaseSinkExt: 'static { + //#[doc(alias = "gst_audio_base_sink_create_ringbuffer")] //fn create_ringbuffer(&self) -> /*Ignored*/Option; + #[doc(alias = "gst_audio_base_sink_get_alignment_threshold")] fn get_alignment_threshold(&self) -> gst::ClockTime; + #[doc(alias = "gst_audio_base_sink_get_discont_wait")] fn get_discont_wait(&self) -> gst::ClockTime; + #[doc(alias = "gst_audio_base_sink_get_drift_tolerance")] fn get_drift_tolerance(&self) -> i64; + #[doc(alias = "gst_audio_base_sink_get_provide_clock")] fn get_provide_clock(&self) -> bool; + //#[doc(alias = "gst_audio_base_sink_get_slave_method")] //fn get_slave_method(&self) -> /*Ignored*/AudioBaseSinkSlaveMethod; + #[doc(alias = "gst_audio_base_sink_report_device_failure")] fn report_device_failure(&self); + #[doc(alias = "gst_audio_base_sink_set_alignment_threshold")] 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); + #[doc(alias = "gst_audio_base_sink_set_discont_wait")] fn set_discont_wait(&self, discont_wait: gst::ClockTime); + #[doc(alias = "gst_audio_base_sink_set_drift_tolerance")] fn set_drift_tolerance(&self, drift_tolerance: i64); + #[doc(alias = "gst_audio_base_sink_set_provide_clock")] fn set_provide_clock(&self, provide: bool); + //#[doc(alias = "gst_audio_base_sink_set_slave_method")] //fn set_slave_method(&self, method: /*Ignored*/AudioBaseSinkSlaveMethod); fn get_property_buffer_time(&self) -> i64; diff --git a/gstreamer-audio/src/auto/audio_base_src.rs b/gstreamer-audio/src/auto/audio_base_src.rs index 57dca03d9..05bce6b05 100644 --- a/gstreamer-audio/src/auto/audio_base_src.rs +++ b/gstreamer-audio/src/auto/audio_base_src.rs @@ -25,14 +25,19 @@ unsafe impl Sync for AudioBaseSrc {} pub const NONE_AUDIO_BASE_SRC: Option<&AudioBaseSrc> = None; pub trait AudioBaseSrcExt: 'static { + //#[doc(alias = "gst_audio_base_src_create_ringbuffer")] //fn create_ringbuffer(&self) -> /*Ignored*/Option; + #[doc(alias = "gst_audio_base_src_get_provide_clock")] fn get_provide_clock(&self) -> bool; + //#[doc(alias = "gst_audio_base_src_get_slave_method")] //fn get_slave_method(&self) -> /*Ignored*/AudioBaseSrcSlaveMethod; + #[doc(alias = "gst_audio_base_src_set_provide_clock")] fn set_provide_clock(&self, provide: bool); + //#[doc(alias = "gst_audio_base_src_set_slave_method")] //fn set_slave_method(&self, method: /*Ignored*/AudioBaseSrcSlaveMethod); fn get_property_actual_buffer_time(&self) -> i64; diff --git a/gstreamer-audio/src/auto/audio_decoder.rs b/gstreamer-audio/src/auto/audio_decoder.rs index 6c71bb15a..f083c9cb2 100644 --- a/gstreamer-audio/src/auto/audio_decoder.rs +++ b/gstreamer-audio/src/auto/audio_decoder.rs @@ -26,58 +26,84 @@ unsafe impl Sync for AudioDecoder {} pub const NONE_AUDIO_DECODER: Option<&AudioDecoder> = None; pub trait AudioDecoderExt: 'static { + #[doc(alias = "gst_audio_decoder_allocate_output_buffer")] fn allocate_output_buffer(&self, size: usize) -> Result; + #[doc(alias = "gst_audio_decoder_get_audio_info")] fn get_audio_info(&self) -> Option; + #[doc(alias = "gst_audio_decoder_get_delay")] fn get_delay(&self) -> i32; + #[doc(alias = "gst_audio_decoder_get_drainable")] fn get_drainable(&self) -> bool; + #[doc(alias = "gst_audio_decoder_get_estimate_rate")] fn get_estimate_rate(&self) -> i32; + #[doc(alias = "gst_audio_decoder_get_latency")] fn get_latency(&self) -> (gst::ClockTime, gst::ClockTime); + #[doc(alias = "gst_audio_decoder_get_max_errors")] fn get_max_errors(&self) -> i32; + #[doc(alias = "gst_audio_decoder_get_min_latency")] fn get_min_latency(&self) -> gst::ClockTime; + #[doc(alias = "gst_audio_decoder_get_needs_format")] fn get_needs_format(&self) -> bool; + #[doc(alias = "gst_audio_decoder_get_parse_state")] fn get_parse_state(&self) -> (bool, bool); + #[doc(alias = "gst_audio_decoder_get_plc")] fn get_plc(&self) -> bool; + #[doc(alias = "gst_audio_decoder_get_plc_aware")] fn get_plc_aware(&self) -> i32; + #[doc(alias = "gst_audio_decoder_get_tolerance")] fn get_tolerance(&self) -> gst::ClockTime; + #[doc(alias = "gst_audio_decoder_merge_tags")] fn merge_tags(&self, tags: Option<&gst::TagList>, mode: gst::TagMergeMode); + #[doc(alias = "gst_audio_decoder_proxy_getcaps")] fn proxy_getcaps(&self, caps: Option<&gst::Caps>, filter: Option<&gst::Caps>) -> gst::Caps; #[cfg(any(feature = "v1_10", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] + #[doc(alias = "gst_audio_decoder_set_allocation_caps")] fn set_allocation_caps(&self, allocation_caps: Option<&gst::Caps>); + #[doc(alias = "gst_audio_decoder_set_drainable")] fn set_drainable(&self, enabled: bool); + #[doc(alias = "gst_audio_decoder_set_estimate_rate")] fn set_estimate_rate(&self, enabled: bool); + #[doc(alias = "gst_audio_decoder_set_latency")] fn set_latency(&self, min: gst::ClockTime, max: gst::ClockTime); + #[doc(alias = "gst_audio_decoder_set_max_errors")] fn set_max_errors(&self, num: i32); + #[doc(alias = "gst_audio_decoder_set_min_latency")] fn set_min_latency(&self, num: gst::ClockTime); + #[doc(alias = "gst_audio_decoder_set_needs_format")] fn set_needs_format(&self, enabled: bool); + #[doc(alias = "gst_audio_decoder_set_plc")] fn set_plc(&self, enabled: bool); + #[doc(alias = "gst_audio_decoder_set_plc_aware")] fn set_plc_aware(&self, plc: bool); + #[doc(alias = "gst_audio_decoder_set_tolerance")] fn set_tolerance(&self, tolerance: gst::ClockTime); + #[doc(alias = "gst_audio_decoder_set_use_default_pad_acceptcaps")] fn set_use_default_pad_acceptcaps(&self, use_: bool); #[cfg(any(feature = "v1_18", feature = "dox"))] diff --git a/gstreamer-audio/src/auto/audio_encoder.rs b/gstreamer-audio/src/auto/audio_encoder.rs index c784711e4..e333a9119 100644 --- a/gstreamer-audio/src/auto/audio_encoder.rs +++ b/gstreamer-audio/src/auto/audio_encoder.rs @@ -25,60 +25,87 @@ unsafe impl Sync for AudioEncoder {} pub const NONE_AUDIO_ENCODER: Option<&AudioEncoder> = None; pub trait AudioEncoderExt: 'static { + #[doc(alias = "gst_audio_encoder_allocate_output_buffer")] fn allocate_output_buffer(&self, size: usize) -> Result; + #[doc(alias = "gst_audio_encoder_get_audio_info")] fn get_audio_info(&self) -> Option; + #[doc(alias = "gst_audio_encoder_get_drainable")] fn get_drainable(&self) -> bool; + #[doc(alias = "gst_audio_encoder_get_frame_max")] fn get_frame_max(&self) -> i32; + #[doc(alias = "gst_audio_encoder_get_frame_samples_max")] fn get_frame_samples_max(&self) -> i32; + #[doc(alias = "gst_audio_encoder_get_frame_samples_min")] fn get_frame_samples_min(&self) -> i32; + #[doc(alias = "gst_audio_encoder_get_hard_min")] fn get_hard_min(&self) -> bool; + #[doc(alias = "gst_audio_encoder_get_hard_resync")] fn get_hard_resync(&self) -> bool; + #[doc(alias = "gst_audio_encoder_get_lookahead")] fn get_lookahead(&self) -> i32; + #[doc(alias = "gst_audio_encoder_get_mark_granule")] fn get_mark_granule(&self) -> bool; + #[doc(alias = "gst_audio_encoder_get_perfect_timestamp")] fn get_perfect_timestamp(&self) -> bool; + #[doc(alias = "gst_audio_encoder_get_tolerance")] fn get_tolerance(&self) -> gst::ClockTime; + #[doc(alias = "gst_audio_encoder_merge_tags")] fn merge_tags(&self, tags: Option<&gst::TagList>, mode: gst::TagMergeMode); + #[doc(alias = "gst_audio_encoder_proxy_getcaps")] fn proxy_getcaps(&self, caps: Option<&gst::Caps>, filter: Option<&gst::Caps>) -> gst::Caps; #[cfg(any(feature = "v1_10", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] + #[doc(alias = "gst_audio_encoder_set_allocation_caps")] fn set_allocation_caps(&self, allocation_caps: Option<&gst::Caps>); + #[doc(alias = "gst_audio_encoder_set_drainable")] fn set_drainable(&self, enabled: bool); + #[doc(alias = "gst_audio_encoder_set_frame_max")] fn set_frame_max(&self, num: i32); + #[doc(alias = "gst_audio_encoder_set_frame_samples_max")] fn set_frame_samples_max(&self, num: i32); + #[doc(alias = "gst_audio_encoder_set_frame_samples_min")] fn set_frame_samples_min(&self, num: i32); + #[doc(alias = "gst_audio_encoder_set_hard_min")] fn set_hard_min(&self, enabled: bool); + #[doc(alias = "gst_audio_encoder_set_hard_resync")] fn set_hard_resync(&self, enabled: bool); + #[doc(alias = "gst_audio_encoder_set_headers")] fn set_headers(&self, headers: &[&gst::Buffer]); + #[doc(alias = "gst_audio_encoder_set_latency")] fn set_latency(&self, min: gst::ClockTime, max: gst::ClockTime); + #[doc(alias = "gst_audio_encoder_set_lookahead")] fn set_lookahead(&self, num: i32); + #[doc(alias = "gst_audio_encoder_set_mark_granule")] fn set_mark_granule(&self, enabled: bool); + #[doc(alias = "gst_audio_encoder_set_perfect_timestamp")] fn set_perfect_timestamp(&self, enabled: bool); + #[doc(alias = "gst_audio_encoder_set_tolerance")] fn set_tolerance(&self, tolerance: gst::ClockTime); fn connect_property_hard_resync_notify( diff --git a/gstreamer-audio/src/auto/audio_stream_align.rs b/gstreamer-audio/src/auto/audio_stream_align.rs index a839d2774..dfb789929 100644 --- a/gstreamer-audio/src/auto/audio_stream_align.rs +++ b/gstreamer-audio/src/auto/audio_stream_align.rs @@ -20,6 +20,7 @@ glib::glib_wrapper! { impl AudioStreamAlign { #[cfg(any(feature = "v1_14", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] + #[doc(alias = "gst_audio_stream_align_new")] pub fn new( rate: i32, alignment_threshold: gst::ClockTime, @@ -37,6 +38,7 @@ impl AudioStreamAlign { #[cfg(any(feature = "v1_14", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] + #[doc(alias = "gst_audio_stream_align_get_alignment_threshold")] pub fn get_alignment_threshold(&self) -> gst::ClockTime { unsafe { from_glib(ffi::gst_audio_stream_align_get_alignment_threshold( @@ -47,6 +49,7 @@ impl AudioStreamAlign { #[cfg(any(feature = "v1_14", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] + #[doc(alias = "gst_audio_stream_align_get_discont_wait")] pub fn get_discont_wait(&self) -> gst::ClockTime { unsafe { from_glib(ffi::gst_audio_stream_align_get_discont_wait(mut_override( @@ -57,12 +60,14 @@ impl AudioStreamAlign { #[cfg(any(feature = "v1_14", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] + #[doc(alias = "gst_audio_stream_align_get_rate")] pub fn get_rate(&self) -> i32 { unsafe { ffi::gst_audio_stream_align_get_rate(mut_override(self.to_glib_none().0)) } } #[cfg(any(feature = "v1_14", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] + #[doc(alias = "gst_audio_stream_align_get_samples_since_discont")] pub fn get_samples_since_discont(&self) -> u64 { unsafe { ffi::gst_audio_stream_align_get_samples_since_discont(mut_override( @@ -73,6 +78,7 @@ impl AudioStreamAlign { #[cfg(any(feature = "v1_14", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] + #[doc(alias = "gst_audio_stream_align_get_timestamp_at_discont")] pub fn get_timestamp_at_discont(&self) -> gst::ClockTime { unsafe { from_glib(ffi::gst_audio_stream_align_get_timestamp_at_discont( @@ -83,6 +89,7 @@ impl AudioStreamAlign { #[cfg(any(feature = "v1_14", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] + #[doc(alias = "gst_audio_stream_align_mark_discont")] pub fn mark_discont(&mut self) { unsafe { ffi::gst_audio_stream_align_mark_discont(self.to_glib_none_mut().0); @@ -91,6 +98,7 @@ impl AudioStreamAlign { #[cfg(any(feature = "v1_14", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] + #[doc(alias = "gst_audio_stream_align_set_alignment_threshold")] pub fn set_alignment_threshold(&mut self, alignment_threshold: gst::ClockTime) { unsafe { ffi::gst_audio_stream_align_set_alignment_threshold( @@ -102,6 +110,7 @@ impl AudioStreamAlign { #[cfg(any(feature = "v1_14", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] + #[doc(alias = "gst_audio_stream_align_set_discont_wait")] pub fn set_discont_wait(&mut self, discont_wait: gst::ClockTime) { unsafe { ffi::gst_audio_stream_align_set_discont_wait( @@ -113,6 +122,7 @@ impl AudioStreamAlign { #[cfg(any(feature = "v1_14", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] + #[doc(alias = "gst_audio_stream_align_set_rate")] pub fn set_rate(&mut self, rate: i32) { unsafe { ffi::gst_audio_stream_align_set_rate(self.to_glib_none_mut().0, rate); diff --git a/gstreamer-audio/src/auto/enums.rs b/gstreamer-audio/src/auto/enums.rs index bcdfa6a41..8f64747ac 100644 --- a/gstreamer-audio/src/auto/enums.rs +++ b/gstreamer-audio/src/auto/enums.rs @@ -104,7 +104,7 @@ impl ToGlib for AudioChannelPosition { #[doc(hidden)] impl FromGlib for AudioChannelPosition { - fn from_glib(value: ffi::GstAudioChannelPosition) -> Self { + unsafe fn from_glib(value: ffi::GstAudioChannelPosition) -> Self { skip_assert_initialized!(); match value { -3 => AudioChannelPosition::None, @@ -207,6 +207,7 @@ pub enum AudioFormat { } impl AudioFormat { + #[doc(alias = "gst_audio_format_from_string")] pub fn from_string(format: &str) -> AudioFormat { assert_initialized_main_thread!(); unsafe { from_glib(ffi::gst_audio_format_from_string(format.to_glib_none().0)) } @@ -265,7 +266,7 @@ impl ToGlib for AudioFormat { #[doc(hidden)] impl FromGlib for AudioFormat { - fn from_glib(value: ffi::GstAudioFormat) -> Self { + unsafe fn from_glib(value: ffi::GstAudioFormat) -> Self { skip_assert_initialized!(); match value { 0 => AudioFormat::Unknown, @@ -353,7 +354,7 @@ impl ToGlib for AudioLayout { #[doc(hidden)] impl FromGlib for AudioLayout { - fn from_glib(value: ffi::GstAudioLayout) -> Self { + unsafe fn from_glib(value: ffi::GstAudioLayout) -> Self { skip_assert_initialized!(); match value { 0 => AudioLayout::Interleaved, @@ -450,7 +451,7 @@ impl ToGlib for AudioRingBufferFormatType { #[doc(hidden)] impl FromGlib for AudioRingBufferFormatType { - fn from_glib(value: ffi::GstAudioRingBufferFormatType) -> Self { + unsafe fn from_glib(value: ffi::GstAudioRingBufferFormatType) -> Self { skip_assert_initialized!(); match value { 0 => AudioRingBufferFormatType::Raw, @@ -526,7 +527,7 @@ impl ToGlib for StreamVolumeFormat { #[doc(hidden)] impl FromGlib for StreamVolumeFormat { - fn from_glib(value: ffi::GstStreamVolumeFormat) -> Self { + unsafe fn from_glib(value: ffi::GstStreamVolumeFormat) -> Self { skip_assert_initialized!(); match value { 0 => StreamVolumeFormat::Linear, diff --git a/gstreamer-audio/src/auto/flags.rs b/gstreamer-audio/src/auto/flags.rs index e131a6e7b..01cf9f0bf 100644 --- a/gstreamer-audio/src/auto/flags.rs +++ b/gstreamer-audio/src/auto/flags.rs @@ -27,7 +27,7 @@ impl ToGlib for AudioFlags { #[doc(hidden)] impl FromGlib for AudioFlags { - fn from_glib(value: ffi::GstAudioFlags) -> AudioFlags { + unsafe fn from_glib(value: ffi::GstAudioFlags) -> AudioFlags { skip_assert_initialized!(); AudioFlags::from_bits_truncate(value) } @@ -78,7 +78,7 @@ impl ToGlib for AudioFormatFlags { #[doc(hidden)] impl FromGlib for AudioFormatFlags { - fn from_glib(value: ffi::GstAudioFormatFlags) -> AudioFormatFlags { + unsafe fn from_glib(value: ffi::GstAudioFormatFlags) -> AudioFormatFlags { skip_assert_initialized!(); AudioFormatFlags::from_bits_truncate(value) } @@ -125,7 +125,7 @@ impl ToGlib for AudioPackFlags { #[doc(hidden)] impl FromGlib for AudioPackFlags { - fn from_glib(value: ffi::GstAudioPackFlags) -> AudioPackFlags { + unsafe fn from_glib(value: ffi::GstAudioPackFlags) -> AudioPackFlags { skip_assert_initialized!(); AudioPackFlags::from_bits_truncate(value) } diff --git a/gstreamer-audio/src/auto/stream_volume.rs b/gstreamer-audio/src/auto/stream_volume.rs index 8830fba56..0dfd6cc4f 100644 --- a/gstreamer-audio/src/auto/stream_volume.rs +++ b/gstreamer-audio/src/auto/stream_volume.rs @@ -20,6 +20,7 @@ glib::glib_wrapper! { } impl StreamVolume { + #[doc(alias = "gst_stream_volume_convert_volume")] pub fn convert_volume(from: StreamVolumeFormat, to: StreamVolumeFormat, val: f64) -> f64 { assert_initialized_main_thread!(); unsafe { ffi::gst_stream_volume_convert_volume(from.to_glib(), to.to_glib(), val) } @@ -32,12 +33,16 @@ unsafe impl Sync for StreamVolume {} pub const NONE_STREAM_VOLUME: Option<&StreamVolume> = None; pub trait StreamVolumeExt: 'static { + #[doc(alias = "gst_stream_volume_get_mute")] fn get_mute(&self) -> bool; + #[doc(alias = "gst_stream_volume_get_volume")] fn get_volume(&self, format: StreamVolumeFormat) -> f64; + #[doc(alias = "gst_stream_volume_set_mute")] fn set_mute(&self, mute: bool); + #[doc(alias = "gst_stream_volume_set_volume")] fn set_volume(&self, format: StreamVolumeFormat, val: f64); fn connect_property_mute_notify( diff --git a/gstreamer-audio/src/auto/versions.txt b/gstreamer-audio/src/auto/versions.txt index ea795c56c..ba6c32af8 100644 --- a/gstreamer-audio/src/auto/versions.txt +++ b/gstreamer-audio/src/auto/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7) -from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9) +Generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf) +from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd) diff --git a/gstreamer-audio/sys/build.rs b/gstreamer-audio/sys/build.rs index beb26524a..4cb086136 100644 --- a/gstreamer-audio/sys/build.rs +++ b/gstreamer-audio/sys/build.rs @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7) -// from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf) +// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd) // DO NOT EDIT #[cfg(not(feature = "dox"))] diff --git a/gstreamer-audio/sys/src/lib.rs b/gstreamer-audio/sys/src/lib.rs index fde0b5ad2..803cf6b4c 100644 --- a/gstreamer-audio/sys/src/lib.rs +++ b/gstreamer-audio/sys/src/lib.rs @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7) -// from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf) +// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd) // DO NOT EDIT #![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)] diff --git a/gstreamer-audio/sys/tests/abi.rs b/gstreamer-audio/sys/tests/abi.rs index d2eeda743..bc8ab010b 100644 --- a/gstreamer-audio/sys/tests/abi.rs +++ b/gstreamer-audio/sys/tests/abi.rs @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7) -// from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf) +// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd) // DO NOT EDIT use gstreamer_audio_sys::*; diff --git a/gstreamer-audio/sys/tests/constant.c b/gstreamer-audio/sys/tests/constant.c index c2ff6ab15..206014da6 100644 --- a/gstreamer-audio/sys/tests/constant.c +++ b/gstreamer-audio/sys/tests/constant.c @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7) -// from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf) +// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-audio/sys/tests/layout.c b/gstreamer-audio/sys/tests/layout.c index 64f4cfb9c..82c774a5d 100644 --- a/gstreamer-audio/sys/tests/layout.c +++ b/gstreamer-audio/sys/tests/layout.c @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7) -// from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf) +// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-base/src/auto/adapter.rs b/gstreamer-base/src/auto/adapter.rs index 90d98b32c..b0a12f2a1 100644 --- a/gstreamer-base/src/auto/adapter.rs +++ b/gstreamer-base/src/auto/adapter.rs @@ -15,19 +15,23 @@ glib::glib_wrapper! { } impl Adapter { + #[doc(alias = "gst_adapter_new")] pub fn new() -> Adapter { assert_initialized_main_thread!(); unsafe { from_glib_full(ffi::gst_adapter_new()) } } + #[doc(alias = "gst_adapter_available")] pub fn available(&self) -> usize { unsafe { ffi::gst_adapter_available(self.to_glib_none().0) } } + #[doc(alias = "gst_adapter_available_fast")] pub fn available_fast(&self) -> usize { unsafe { ffi::gst_adapter_available_fast(self.to_glib_none().0) } } + #[doc(alias = "gst_adapter_clear")] pub fn clear(&self) { unsafe { ffi::gst_adapter_clear(self.to_glib_none().0); @@ -36,22 +40,26 @@ impl Adapter { #[cfg(any(feature = "v1_10", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] + #[doc(alias = "gst_adapter_distance_from_discont")] pub fn distance_from_discont(&self) -> u64 { unsafe { ffi::gst_adapter_distance_from_discont(self.to_glib_none().0) } } #[cfg(any(feature = "v1_10", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] + #[doc(alias = "gst_adapter_dts_at_discont")] pub fn dts_at_discont(&self) -> gst::ClockTime { unsafe { from_glib(ffi::gst_adapter_dts_at_discont(self.to_glib_none().0)) } } #[cfg(any(feature = "v1_10", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] + #[doc(alias = "gst_adapter_offset_at_discont")] pub fn offset_at_discont(&self) -> u64 { unsafe { ffi::gst_adapter_offset_at_discont(self.to_glib_none().0) } } + #[doc(alias = "gst_adapter_prev_dts")] pub fn prev_dts(&self) -> (gst::ClockTime, u64) { unsafe { let mut distance = mem::MaybeUninit::uninit(); @@ -64,6 +72,7 @@ impl Adapter { } } + #[doc(alias = "gst_adapter_prev_dts_at_offset")] pub fn prev_dts_at_offset(&self, offset: usize) -> (gst::ClockTime, u64) { unsafe { let mut distance = mem::MaybeUninit::uninit(); @@ -79,6 +88,7 @@ impl Adapter { #[cfg(any(feature = "v1_10", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] + #[doc(alias = "gst_adapter_prev_offset")] pub fn prev_offset(&self) -> (u64, u64) { unsafe { let mut distance = mem::MaybeUninit::uninit(); @@ -88,6 +98,7 @@ impl Adapter { } } + #[doc(alias = "gst_adapter_prev_pts")] pub fn prev_pts(&self) -> (gst::ClockTime, u64) { unsafe { let mut distance = mem::MaybeUninit::uninit(); @@ -100,6 +111,7 @@ impl Adapter { } } + #[doc(alias = "gst_adapter_prev_pts_at_offset")] pub fn prev_pts_at_offset(&self, offset: usize) -> (gst::ClockTime, u64) { unsafe { let mut distance = mem::MaybeUninit::uninit(); @@ -115,6 +127,7 @@ impl Adapter { #[cfg(any(feature = "v1_10", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] + #[doc(alias = "gst_adapter_pts_at_discont")] pub fn pts_at_discont(&self) -> gst::ClockTime { unsafe { from_glib(ffi::gst_adapter_pts_at_discont(self.to_glib_none().0)) } } diff --git a/gstreamer-base/src/auto/aggregator.rs b/gstreamer-base/src/auto/aggregator.rs index 243005950..37acd1304 100644 --- a/gstreamer-base/src/auto/aggregator.rs +++ b/gstreamer-base/src/auto/aggregator.rs @@ -33,38 +33,47 @@ pub const NONE_AGGREGATOR: Option<&Aggregator> = None; pub trait AggregatorExt: 'static { //#[cfg(any(feature = "v1_14", feature = "dox"))] //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] + //#[doc(alias = "gst_aggregator_get_allocator")] //fn get_allocator(&self, allocator: /*Ignored*/Option, params: /*Ignored*/gst::AllocationParams); #[cfg(any(feature = "v1_14", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] + #[doc(alias = "gst_aggregator_get_buffer_pool")] fn get_buffer_pool(&self) -> Option; #[cfg(any(feature = "v1_14", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] + #[doc(alias = "gst_aggregator_get_latency")] fn get_latency(&self) -> gst::ClockTime; #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[doc(alias = "gst_aggregator_negotiate")] fn negotiate(&self) -> bool; #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[doc(alias = "gst_aggregator_peek_next_sample")] fn peek_next_sample>(&self, pad: &P) -> Option; #[cfg(any(feature = "v1_14", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] + #[doc(alias = "gst_aggregator_set_latency")] fn set_latency(&self, min_latency: gst::ClockTime, max_latency: gst::ClockTime); #[cfg(any(feature = "v1_14", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] + #[doc(alias = "gst_aggregator_set_src_caps")] fn set_src_caps(&self, caps: &gst::Caps); #[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[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"))] diff --git a/gstreamer-base/src/auto/aggregator_pad.rs b/gstreamer-base/src/auto/aggregator_pad.rs index 5d9e68a1a..d5407ca8d 100644 --- a/gstreamer-base/src/auto/aggregator_pad.rs +++ b/gstreamer-base/src/auto/aggregator_pad.rs @@ -29,22 +29,27 @@ pub const NONE_AGGREGATOR_PAD: Option<&AggregatorPad> = None; pub trait AggregatorPadExt: 'static { #[cfg(any(feature = "v1_14", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] + #[doc(alias = "gst_aggregator_pad_drop_buffer")] fn drop_buffer(&self) -> bool; #[cfg(any(feature = "v1_14_1", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14_1")))] + #[doc(alias = "gst_aggregator_pad_has_buffer")] fn has_buffer(&self) -> bool; #[cfg(any(feature = "v1_14", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] + #[doc(alias = "gst_aggregator_pad_is_eos")] fn is_eos(&self) -> bool; #[cfg(any(feature = "v1_14", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] + #[doc(alias = "gst_aggregator_pad_peek_buffer")] fn peek_buffer(&self) -> Option; #[cfg(any(feature = "v1_14", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] + #[doc(alias = "gst_aggregator_pad_pop_buffer")] fn pop_buffer(&self) -> Option; #[cfg(any(feature = "v1_16", feature = "dox"))] diff --git a/gstreamer-base/src/auto/base_parse.rs b/gstreamer-base/src/auto/base_parse.rs index 3c56acabe..eda08b494 100644 --- a/gstreamer-base/src/auto/base_parse.rs +++ b/gstreamer-base/src/auto/base_parse.rs @@ -25,30 +25,42 @@ unsafe impl Sync for BaseParse {} pub const NONE_BASE_PARSE: Option<&BaseParse> = None; pub trait BaseParseExt: 'static { + #[doc(alias = "gst_base_parse_add_index_entry")] fn add_index_entry(&self, offset: u64, ts: gst::ClockTime, key: bool, force: bool) -> bool; #[cfg(any(feature = "v1_12", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] + #[doc(alias = "gst_base_parse_drain")] fn drain(&self); + #[doc(alias = "gst_base_parse_merge_tags")] fn merge_tags(&self, tags: Option<&gst::TagList>, mode: gst::TagMergeMode); + #[doc(alias = "gst_base_parse_set_average_bitrate")] fn set_average_bitrate(&self, bitrate: u32); + #[doc(alias = "gst_base_parse_set_has_timing_info")] fn set_has_timing_info(&self, has_timing: bool); + #[doc(alias = "gst_base_parse_set_infer_ts")] fn set_infer_ts(&self, infer_ts: bool); + #[doc(alias = "gst_base_parse_set_latency")] fn set_latency(&self, min_latency: gst::ClockTime, max_latency: gst::ClockTime); + #[doc(alias = "gst_base_parse_set_min_frame_size")] fn set_min_frame_size(&self, min_size: u32); + #[doc(alias = "gst_base_parse_set_passthrough")] fn set_passthrough(&self, passthrough: bool); + #[doc(alias = "gst_base_parse_set_pts_interpolation")] fn set_pts_interpolation(&self, pts_interpolate: bool); + #[doc(alias = "gst_base_parse_set_syncable")] fn set_syncable(&self, syncable: bool); + #[doc(alias = "gst_base_parse_set_ts_at_offset")] fn set_ts_at_offset(&self, offset: usize); fn get_property_disable_passthrough(&self) -> bool; diff --git a/gstreamer-base/src/auto/base_sink.rs b/gstreamer-base/src/auto/base_sink.rs index 5c4696bbb..a994ad4c3 100644 --- a/gstreamer-base/src/auto/base_sink.rs +++ b/gstreamer-base/src/auto/base_sink.rs @@ -25,70 +25,98 @@ unsafe impl Sync for BaseSink {} pub const NONE_BASE_SINK: Option<&BaseSink> = None; pub trait BaseSinkExt: 'static { + //#[doc(alias = "gst_base_sink_do_preroll")] //fn do_preroll(&self, obj: /*Ignored*/&gst::MiniObject) -> gst::FlowReturn; + #[doc(alias = "gst_base_sink_get_blocksize")] fn get_blocksize(&self) -> u32; #[cfg(any(feature = "v1_12", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] + #[doc(alias = "gst_base_sink_get_drop_out_of_segment")] fn get_drop_out_of_segment(&self) -> bool; + #[doc(alias = "gst_base_sink_get_last_sample")] fn get_last_sample(&self) -> Option; + #[doc(alias = "gst_base_sink_get_latency")] fn get_latency(&self) -> gst::ClockTime; + #[doc(alias = "gst_base_sink_get_max_bitrate")] fn get_max_bitrate(&self) -> u64; + #[doc(alias = "gst_base_sink_get_max_lateness")] fn get_max_lateness(&self) -> i64; #[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[doc(alias = "gst_base_sink_get_processing_deadline")] fn get_processing_deadline(&self) -> gst::ClockTime; + #[doc(alias = "gst_base_sink_get_render_delay")] fn get_render_delay(&self) -> gst::ClockTime; #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[doc(alias = "gst_base_sink_get_stats")] fn get_stats(&self) -> gst::Structure; + #[doc(alias = "gst_base_sink_get_sync")] fn get_sync(&self) -> bool; + #[doc(alias = "gst_base_sink_get_throttle_time")] fn get_throttle_time(&self) -> u64; + #[doc(alias = "gst_base_sink_get_ts_offset")] fn get_ts_offset(&self) -> gst::ClockTimeDiff; + #[doc(alias = "gst_base_sink_is_async_enabled")] fn is_async_enabled(&self) -> bool; + #[doc(alias = "gst_base_sink_is_last_sample_enabled")] fn is_last_sample_enabled(&self) -> bool; + #[doc(alias = "gst_base_sink_is_qos_enabled")] fn is_qos_enabled(&self) -> bool; + #[doc(alias = "gst_base_sink_set_async_enabled")] fn set_async_enabled(&self, enabled: bool); + #[doc(alias = "gst_base_sink_set_blocksize")] fn set_blocksize(&self, blocksize: u32); #[cfg(any(feature = "v1_12", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] + #[doc(alias = "gst_base_sink_set_drop_out_of_segment")] fn set_drop_out_of_segment(&self, drop_out_of_segment: bool); + #[doc(alias = "gst_base_sink_set_last_sample_enabled")] fn set_last_sample_enabled(&self, enabled: bool); + #[doc(alias = "gst_base_sink_set_max_bitrate")] fn set_max_bitrate(&self, max_bitrate: u64); + #[doc(alias = "gst_base_sink_set_max_lateness")] fn set_max_lateness(&self, max_lateness: i64); #[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[doc(alias = "gst_base_sink_set_processing_deadline")] fn set_processing_deadline(&self, processing_deadline: gst::ClockTime); + #[doc(alias = "gst_base_sink_set_qos_enabled")] fn set_qos_enabled(&self, enabled: bool); + #[doc(alias = "gst_base_sink_set_render_delay")] fn set_render_delay(&self, delay: gst::ClockTime); + #[doc(alias = "gst_base_sink_set_sync")] fn set_sync(&self, sync: bool); + #[doc(alias = "gst_base_sink_set_throttle_time")] fn set_throttle_time(&self, throttle: u64); + #[doc(alias = "gst_base_sink_set_ts_offset")] fn set_ts_offset(&self, offset: gst::ClockTimeDiff); fn get_property_async(&self) -> bool; diff --git a/gstreamer-base/src/auto/base_src.rs b/gstreamer-base/src/auto/base_src.rs index 1ff8f64e5..bbc94dde4 100644 --- a/gstreamer-base/src/auto/base_src.rs +++ b/gstreamer-base/src/auto/base_src.rs @@ -25,39 +25,55 @@ unsafe impl Sync for BaseSrc {} pub const NONE_BASE_SRC: Option<&BaseSrc> = None; pub trait BaseSrcExt: 'static { + //#[doc(alias = "gst_base_src_get_allocator")] //fn get_allocator(&self, allocator: /*Ignored*/Option, params: /*Ignored*/gst::AllocationParams); + #[doc(alias = "gst_base_src_get_blocksize")] fn get_blocksize(&self) -> u32; + #[doc(alias = "gst_base_src_get_buffer_pool")] fn get_buffer_pool(&self) -> Option; + #[doc(alias = "gst_base_src_get_do_timestamp")] fn get_do_timestamp(&self) -> bool; + #[doc(alias = "gst_base_src_is_async")] fn is_async(&self) -> bool; + #[doc(alias = "gst_base_src_is_live")] fn is_live(&self) -> bool; #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[doc(alias = "gst_base_src_negotiate")] fn negotiate(&self) -> bool; #[cfg_attr(feature = "v1_18", deprecated)] + #[doc(alias = "gst_base_src_new_seamless_segment")] fn new_seamless_segment(&self, start: i64, stop: i64, time: i64) -> bool; + #[doc(alias = "gst_base_src_set_async")] fn set_async(&self, async_: bool); + #[doc(alias = "gst_base_src_set_automatic_eos")] fn set_automatic_eos(&self, automatic_eos: bool); + #[doc(alias = "gst_base_src_set_blocksize")] fn set_blocksize(&self, blocksize: u32); + #[doc(alias = "gst_base_src_set_caps")] fn set_caps(&self, caps: &gst::Caps) -> Result<(), glib::error::BoolError>; + #[doc(alias = "gst_base_src_set_do_timestamp")] fn set_do_timestamp(&self, timestamp: bool); + #[doc(alias = "gst_base_src_set_dynamic_size")] fn set_dynamic_size(&self, dynamic: bool); + #[doc(alias = "gst_base_src_set_format")] fn set_format(&self, format: gst::Format); + #[doc(alias = "gst_base_src_set_live")] fn set_live(&self, live: bool); fn get_property_num_buffers(&self) -> i32; diff --git a/gstreamer-base/src/auto/base_transform.rs b/gstreamer-base/src/auto/base_transform.rs index 9f81f6c07..e037f109f 100644 --- a/gstreamer-base/src/auto/base_transform.rs +++ b/gstreamer-base/src/auto/base_transform.rs @@ -25,36 +25,51 @@ unsafe impl Sync for BaseTransform {} pub const NONE_BASE_TRANSFORM: Option<&BaseTransform> = None; pub trait BaseTransformExt: 'static { + //#[doc(alias = "gst_base_transform_get_allocator")] //fn get_allocator(&self, allocator: /*Ignored*/Option, params: /*Ignored*/gst::AllocationParams); + #[doc(alias = "gst_base_transform_get_buffer_pool")] fn get_buffer_pool(&self) -> Option; + #[doc(alias = "gst_base_transform_is_in_place")] fn is_in_place(&self) -> bool; + #[doc(alias = "gst_base_transform_is_passthrough")] fn is_passthrough(&self) -> bool; + #[doc(alias = "gst_base_transform_is_qos_enabled")] fn is_qos_enabled(&self) -> bool; #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[doc(alias = "gst_base_transform_reconfigure")] fn reconfigure(&self) -> bool; + #[doc(alias = "gst_base_transform_reconfigure_sink")] fn reconfigure_sink(&self); + #[doc(alias = "gst_base_transform_reconfigure_src")] fn reconfigure_src(&self); + #[doc(alias = "gst_base_transform_set_gap_aware")] fn set_gap_aware(&self, gap_aware: bool); + #[doc(alias = "gst_base_transform_set_in_place")] fn set_in_place(&self, in_place: bool); + #[doc(alias = "gst_base_transform_set_passthrough")] fn set_passthrough(&self, passthrough: bool); + #[doc(alias = "gst_base_transform_set_prefer_passthrough")] fn set_prefer_passthrough(&self, prefer_passthrough: bool); + #[doc(alias = "gst_base_transform_set_qos_enabled")] fn set_qos_enabled(&self, enabled: bool); + #[doc(alias = "gst_base_transform_update_qos")] fn update_qos(&self, proportion: f64, diff: gst::ClockTimeDiff, timestamp: gst::ClockTime); + #[doc(alias = "gst_base_transform_update_src_caps")] fn update_src_caps(&self, updated_caps: &gst::Caps) -> Result<(), glib::error::BoolError>; fn get_property_qos(&self) -> bool; diff --git a/gstreamer-base/src/auto/enums.rs b/gstreamer-base/src/auto/enums.rs index 00cbdbf46..b216200ba 100644 --- a/gstreamer-base/src/auto/enums.rs +++ b/gstreamer-base/src/auto/enums.rs @@ -41,7 +41,7 @@ impl ToGlib for AggregatorStartTimeSelection { #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[doc(hidden)] impl FromGlib for AggregatorStartTimeSelection { - fn from_glib(value: ffi::GstAggregatorStartTimeSelection) -> Self { + unsafe fn from_glib(value: ffi::GstAggregatorStartTimeSelection) -> Self { skip_assert_initialized!(); match value { 0 => AggregatorStartTimeSelection::Zero, diff --git a/gstreamer-base/src/auto/flags.rs b/gstreamer-base/src/auto/flags.rs index b983226e1..182e8fc93 100644 --- a/gstreamer-base/src/auto/flags.rs +++ b/gstreamer-base/src/auto/flags.rs @@ -26,7 +26,7 @@ impl ToGlib for BaseParseFrameFlags { #[doc(hidden)] impl FromGlib for BaseParseFrameFlags { - fn from_glib(value: ffi::GstBaseParseFrameFlags) -> BaseParseFrameFlags { + unsafe fn from_glib(value: ffi::GstBaseParseFrameFlags) -> BaseParseFrameFlags { skip_assert_initialized!(); BaseParseFrameFlags::from_bits_truncate(value) } diff --git a/gstreamer-base/src/auto/functions.rs b/gstreamer-base/src/auto/functions.rs index fb8e4f253..e29f6dad2 100644 --- a/gstreamer-base/src/auto/functions.rs +++ b/gstreamer-base/src/auto/functions.rs @@ -5,6 +5,7 @@ use glib::object::IsA; use glib::translate::*; +#[doc(alias = "gst_type_find_helper")] pub fn type_find_helper>( src: &P, size: u64, @@ -19,6 +20,7 @@ pub fn type_find_helper>( } } +#[doc(alias = "gst_type_find_helper_for_extension")] pub fn type_find_helper_for_extension>( obj: Option<&P>, extension: &str, @@ -33,12 +35,14 @@ pub fn type_find_helper_for_extension>( } } +//#[doc(alias = "gst_type_find_helper_get_range")] //pub fn type_find_helper_get_range, Q: IsA, R: FnMut(&gst::Object, Option<&gst::Object>, u64, u32, &gst::Buffer) -> gst::FlowReturn>(obj: &P, parent: Option<&Q>, func: R, size: u64, extension: Option<&str>) -> (Option, gst::TypeFindProbability) { // unsafe { TODO: call ffi:gst_type_find_helper_get_range() } //} //#[cfg(any(feature = "v1_14_3", feature = "dox"))] //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14_3")))] +//#[doc(alias = "gst_type_find_helper_get_range_full")] //pub fn type_find_helper_get_range_full, Q: IsA, R: FnMut(&gst::Object, Option<&gst::Object>, u64, u32, &gst::Buffer) -> gst::FlowReturn>(obj: &P, parent: Option<&Q>, func: R, size: u64, extension: Option<&str>) -> (gst::FlowReturn, gst::Caps, gst::TypeFindProbability) { // unsafe { TODO: call ffi:gst_type_find_helper_get_range_full() } //} diff --git a/gstreamer-base/src/auto/versions.txt b/gstreamer-base/src/auto/versions.txt index ea795c56c..ba6c32af8 100644 --- a/gstreamer-base/src/auto/versions.txt +++ b/gstreamer-base/src/auto/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7) -from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9) +Generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf) +from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd) diff --git a/gstreamer-base/sys/build.rs b/gstreamer-base/sys/build.rs index beb26524a..4cb086136 100644 --- a/gstreamer-base/sys/build.rs +++ b/gstreamer-base/sys/build.rs @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7) -// from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf) +// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd) // DO NOT EDIT #[cfg(not(feature = "dox"))] diff --git a/gstreamer-base/sys/src/lib.rs b/gstreamer-base/sys/src/lib.rs index bb8b115b8..8ab7fed7f 100644 --- a/gstreamer-base/sys/src/lib.rs +++ b/gstreamer-base/sys/src/lib.rs @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7) -// from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf) +// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd) // DO NOT EDIT #![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)] diff --git a/gstreamer-base/sys/tests/abi.rs b/gstreamer-base/sys/tests/abi.rs index 1e4e060ce..65bdbe548 100644 --- a/gstreamer-base/sys/tests/abi.rs +++ b/gstreamer-base/sys/tests/abi.rs @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7) -// from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf) +// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd) // DO NOT EDIT use gstreamer_base_sys::*; diff --git a/gstreamer-base/sys/tests/constant.c b/gstreamer-base/sys/tests/constant.c index c2ff6ab15..206014da6 100644 --- a/gstreamer-base/sys/tests/constant.c +++ b/gstreamer-base/sys/tests/constant.c @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7) -// from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf) +// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-base/sys/tests/layout.c b/gstreamer-base/sys/tests/layout.c index 64f4cfb9c..82c774a5d 100644 --- a/gstreamer-base/sys/tests/layout.c +++ b/gstreamer-base/sys/tests/layout.c @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7) -// from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf) +// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-check/src/auto/test_clock.rs b/gstreamer-check/src/auto/test_clock.rs index 0ae370631..36a06cc23 100644 --- a/gstreamer-check/src/auto/test_clock.rs +++ b/gstreamer-check/src/auto/test_clock.rs @@ -20,11 +20,13 @@ glib::glib_wrapper! { } impl TestClock { + #[doc(alias = "gst_test_clock_new")] pub fn new() -> TestClock { assert_initialized_main_thread!(); unsafe { gst::Clock::from_glib_full(ffi::gst_test_clock_new()).unsafe_cast() } } + #[doc(alias = "gst_test_clock_new_with_start_time")] pub fn with_start_time(start_time: gst::ClockTime) -> TestClock { assert_initialized_main_thread!(); unsafe { @@ -35,16 +37,19 @@ impl TestClock { } } + #[doc(alias = "gst_test_clock_advance_time")] pub fn advance_time(&self, delta: gst::ClockTimeDiff) { unsafe { ffi::gst_test_clock_advance_time(self.to_glib_none().0, delta); } } + #[doc(alias = "gst_test_clock_crank")] pub fn crank(&self) -> bool { unsafe { from_glib(ffi::gst_test_clock_crank(self.to_glib_none().0)) } } + #[doc(alias = "gst_test_clock_get_next_entry_time")] pub fn get_next_entry_time(&self) -> gst::ClockTime { unsafe { from_glib(ffi::gst_test_clock_get_next_entry_time( @@ -53,32 +58,39 @@ 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 { ffi::gst_test_clock_set_time(self.to_glib_none().0, new_time.to_glib()); @@ -87,18 +99,22 @@ 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 { ffi::gst_test_clock_wait_for_pending_id_count(self.to_glib_none().0, count); @@ -145,6 +161,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 { // unsafe { TODO: call ffi:gst_test_clock_id_list_get_latest_time() } //} diff --git a/gstreamer-check/src/auto/versions.txt b/gstreamer-check/src/auto/versions.txt index ea795c56c..ba6c32af8 100644 --- a/gstreamer-check/src/auto/versions.txt +++ b/gstreamer-check/src/auto/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7) -from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9) +Generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf) +from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd) diff --git a/gstreamer-check/sys/build.rs b/gstreamer-check/sys/build.rs index beb26524a..4cb086136 100644 --- a/gstreamer-check/sys/build.rs +++ b/gstreamer-check/sys/build.rs @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7) -// from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf) +// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd) // DO NOT EDIT #[cfg(not(feature = "dox"))] diff --git a/gstreamer-check/sys/src/lib.rs b/gstreamer-check/sys/src/lib.rs index b44a53928..e0907fd72 100644 --- a/gstreamer-check/sys/src/lib.rs +++ b/gstreamer-check/sys/src/lib.rs @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7) -// from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf) +// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd) // DO NOT EDIT #![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)] diff --git a/gstreamer-check/sys/tests/abi.rs b/gstreamer-check/sys/tests/abi.rs index e8101ab17..b08fc2aab 100644 --- a/gstreamer-check/sys/tests/abi.rs +++ b/gstreamer-check/sys/tests/abi.rs @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7) -// from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf) +// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd) // DO NOT EDIT use gstreamer_check_sys::*; diff --git a/gstreamer-check/sys/tests/constant.c b/gstreamer-check/sys/tests/constant.c index c2ff6ab15..206014da6 100644 --- a/gstreamer-check/sys/tests/constant.c +++ b/gstreamer-check/sys/tests/constant.c @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7) -// from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf) +// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-check/sys/tests/layout.c b/gstreamer-check/sys/tests/layout.c index 64f4cfb9c..82c774a5d 100644 --- a/gstreamer-check/sys/tests/layout.c +++ b/gstreamer-check/sys/tests/layout.c @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7) -// from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf) +// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-controller/src/auto/argb_control_binding.rs b/gstreamer-controller/src/auto/argb_control_binding.rs index 19e72a5ad..48819d36a 100644 --- a/gstreamer-controller/src/auto/argb_control_binding.rs +++ b/gstreamer-controller/src/auto/argb_control_binding.rs @@ -20,6 +20,7 @@ glib::glib_wrapper! { } impl ARGBControlBinding { + #[doc(alias = "gst_argb_control_binding_new")] pub fn new< P: IsA, Q: IsA, diff --git a/gstreamer-controller/src/auto/direct_control_binding.rs b/gstreamer-controller/src/auto/direct_control_binding.rs index 2b9d11c6f..41384aa1d 100644 --- a/gstreamer-controller/src/auto/direct_control_binding.rs +++ b/gstreamer-controller/src/auto/direct_control_binding.rs @@ -20,6 +20,7 @@ glib::glib_wrapper! { } impl DirectControlBinding { + #[doc(alias = "gst_direct_control_binding_new")] pub fn new, Q: IsA>( object: &P, property_name: &str, @@ -36,6 +37,7 @@ impl DirectControlBinding { } } + #[doc(alias = "gst_direct_control_binding_new_absolute")] pub fn new_absolute, Q: IsA>( object: &P, property_name: &str, diff --git a/gstreamer-controller/src/auto/enums.rs b/gstreamer-controller/src/auto/enums.rs index 5632ff2bd..3f3e28373 100644 --- a/gstreamer-controller/src/auto/enums.rs +++ b/gstreamer-controller/src/auto/enums.rs @@ -37,7 +37,7 @@ impl ToGlib for InterpolationMode { #[doc(hidden)] impl FromGlib for InterpolationMode { - fn from_glib(value: ffi::GstInterpolationMode) -> Self { + unsafe fn from_glib(value: ffi::GstInterpolationMode) -> Self { skip_assert_initialized!(); match value { 0 => InterpolationMode::None, @@ -103,7 +103,7 @@ impl ToGlib for LFOWaveform { #[doc(hidden)] impl FromGlib for LFOWaveform { - fn from_glib(value: ffi::GstLFOWaveform) -> Self { + unsafe fn from_glib(value: ffi::GstLFOWaveform) -> Self { skip_assert_initialized!(); match value { 0 => LFOWaveform::Sine, diff --git a/gstreamer-controller/src/auto/interpolation_control_source.rs b/gstreamer-controller/src/auto/interpolation_control_source.rs index b80fa337b..68e4ef8c0 100644 --- a/gstreamer-controller/src/auto/interpolation_control_source.rs +++ b/gstreamer-controller/src/auto/interpolation_control_source.rs @@ -22,6 +22,7 @@ glib::glib_wrapper! { } impl InterpolationControlSource { + #[doc(alias = "gst_interpolation_control_source_new")] pub fn new() -> InterpolationControlSource { assert_initialized_main_thread!(); unsafe { diff --git a/gstreamer-controller/src/auto/lfo_control_source.rs b/gstreamer-controller/src/auto/lfo_control_source.rs index e976eb7a8..6a18121d7 100644 --- a/gstreamer-controller/src/auto/lfo_control_source.rs +++ b/gstreamer-controller/src/auto/lfo_control_source.rs @@ -21,6 +21,7 @@ glib::glib_wrapper! { } impl LFOControlSource { + #[doc(alias = "gst_lfo_control_source_new")] pub fn new() -> LFOControlSource { assert_initialized_main_thread!(); unsafe { diff --git a/gstreamer-controller/src/auto/proxy_control_binding.rs b/gstreamer-controller/src/auto/proxy_control_binding.rs index fd396e75e..8e7a20fba 100644 --- a/gstreamer-controller/src/auto/proxy_control_binding.rs +++ b/gstreamer-controller/src/auto/proxy_control_binding.rs @@ -21,6 +21,7 @@ glib::glib_wrapper! { impl ProxyControlBinding { #[cfg(any(feature = "v1_12", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] + #[doc(alias = "gst_proxy_control_binding_new")] pub fn new, Q: IsA>( object: &P, property_name: &str, diff --git a/gstreamer-controller/src/auto/timed_value_control_source.rs b/gstreamer-controller/src/auto/timed_value_control_source.rs index 2703cea2b..e2b9348dd 100644 --- a/gstreamer-controller/src/auto/timed_value_control_source.rs +++ b/gstreamer-controller/src/auto/timed_value_control_source.rs @@ -25,18 +25,25 @@ unsafe impl Sync for TimedValueControlSource {} pub const NONE_TIMED_VALUE_CONTROL_SOURCE: Option<&TimedValueControlSource> = None; pub trait TimedValueControlSourceExt: 'static { + //#[doc(alias = "gst_timed_value_control_source_find_control_point_iter")] //fn find_control_point_iter(&self, timestamp: gst::ClockTime) -> /*Ignored*/Option; + //#[doc(alias = "gst_timed_value_control_source_get_all")] //fn get_all(&self) -> /*Ignored*/Vec; + #[doc(alias = "gst_timed_value_control_source_get_count")] fn get_count(&self) -> i32; + #[doc(alias = "gst_timed_value_control_source_set")] fn set(&self, timestamp: gst::ClockTime, value: f64) -> bool; + //#[doc(alias = "gst_timed_value_control_source_set_from_list")] //fn set_from_list(&self, timedvalues: /*Ignored*/&[&gst::TimedValue]) -> bool; + #[doc(alias = "gst_timed_value_control_source_unset")] fn unset(&self, timestamp: gst::ClockTime) -> bool; + #[doc(alias = "gst_timed_value_control_source_unset_all")] fn unset_all(&self); fn connect_value_added( diff --git a/gstreamer-controller/src/auto/trigger_control_source.rs b/gstreamer-controller/src/auto/trigger_control_source.rs index 3d9235b8f..bc0ae5211 100644 --- a/gstreamer-controller/src/auto/trigger_control_source.rs +++ b/gstreamer-controller/src/auto/trigger_control_source.rs @@ -21,6 +21,7 @@ glib::glib_wrapper! { } impl TriggerControlSource { + #[doc(alias = "gst_trigger_control_source_new")] pub fn new() -> TriggerControlSource { assert_initialized_main_thread!(); unsafe { diff --git a/gstreamer-controller/src/auto/versions.txt b/gstreamer-controller/src/auto/versions.txt index ea795c56c..ba6c32af8 100644 --- a/gstreamer-controller/src/auto/versions.txt +++ b/gstreamer-controller/src/auto/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7) -from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9) +Generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf) +from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd) diff --git a/gstreamer-controller/sys/build.rs b/gstreamer-controller/sys/build.rs index beb26524a..4cb086136 100644 --- a/gstreamer-controller/sys/build.rs +++ b/gstreamer-controller/sys/build.rs @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7) -// from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf) +// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd) // DO NOT EDIT #[cfg(not(feature = "dox"))] diff --git a/gstreamer-controller/sys/src/lib.rs b/gstreamer-controller/sys/src/lib.rs index 125cc3a24..54dd00b92 100644 --- a/gstreamer-controller/sys/src/lib.rs +++ b/gstreamer-controller/sys/src/lib.rs @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7) -// from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf) +// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd) // DO NOT EDIT #![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)] diff --git a/gstreamer-controller/sys/tests/abi.rs b/gstreamer-controller/sys/tests/abi.rs index a87206821..80386371d 100644 --- a/gstreamer-controller/sys/tests/abi.rs +++ b/gstreamer-controller/sys/tests/abi.rs @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7) -// from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf) +// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd) // DO NOT EDIT use gstreamer_controller_sys::*; diff --git a/gstreamer-controller/sys/tests/constant.c b/gstreamer-controller/sys/tests/constant.c index c2ff6ab15..206014da6 100644 --- a/gstreamer-controller/sys/tests/constant.c +++ b/gstreamer-controller/sys/tests/constant.c @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7) -// from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf) +// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-controller/sys/tests/layout.c b/gstreamer-controller/sys/tests/layout.c index 64f4cfb9c..82c774a5d 100644 --- a/gstreamer-controller/sys/tests/layout.c +++ b/gstreamer-controller/sys/tests/layout.c @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7) -// from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf) +// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-editing-services/src/auto/asset.rs b/gstreamer-editing-services/src/auto/asset.rs index 5b503790a..a2ad44f4f 100644 --- a/gstreamer-editing-services/src/auto/asset.rs +++ b/gstreamer-editing-services/src/auto/asset.rs @@ -22,6 +22,7 @@ glib::glib_wrapper! { } impl Asset { + #[doc(alias = "ges_asset_needs_reload")] pub fn needs_reload(extractable_type: glib::types::Type, id: Option<&str>) -> bool { assert_initialized_main_thread!(); unsafe { @@ -32,6 +33,7 @@ impl Asset { } } + #[doc(alias = "ges_asset_request")] pub fn request( extractable_type: glib::types::Type, id: Option<&str>, @@ -49,6 +51,7 @@ impl Asset { } } + #[doc(alias = "ges_asset_request_async")] pub fn request_async< P: IsA, Q: FnOnce(Result) + Send + 'static, @@ -114,22 +117,31 @@ impl Asset { pub const NONE_ASSET: Option<&Asset> = None; pub trait AssetExt: 'static { + #[doc(alias = "ges_asset_extract")] fn extract(&self) -> Result; + #[doc(alias = "ges_asset_get_error")] fn get_error(&self) -> Option; + #[doc(alias = "ges_asset_get_extractable_type")] fn get_extractable_type(&self) -> glib::types::Type; + #[doc(alias = "ges_asset_get_id")] fn get_id(&self) -> Option; + #[doc(alias = "ges_asset_get_proxy")] fn get_proxy(&self) -> Option; + #[doc(alias = "ges_asset_get_proxy_target")] fn get_proxy_target(&self) -> Option; + #[doc(alias = "ges_asset_list_proxies")] fn list_proxies(&self) -> Vec; + #[doc(alias = "ges_asset_set_proxy")] fn set_proxy>(&self, proxy: Option<&P>) -> Result<(), glib::error::BoolError>; + #[doc(alias = "ges_asset_unproxy")] fn unproxy>(&self, proxy: &P) -> Result<(), glib::error::BoolError>; fn connect_property_proxy_notify(&self, f: F) -> SignalHandlerId; diff --git a/gstreamer-editing-services/src/auto/base_effect.rs b/gstreamer-editing-services/src/auto/base_effect.rs index 9629febe1..8ea816c94 100644 --- a/gstreamer-editing-services/src/auto/base_effect.rs +++ b/gstreamer-editing-services/src/auto/base_effect.rs @@ -21,14 +21,17 @@ pub const NONE_BASE_EFFECT: Option<&BaseEffect> = None; pub trait BaseEffectExt: 'static { #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[doc(alias = "ges_base_effect_is_time_effect")] fn is_time_effect(&self) -> bool; #[cfg(any(feature = "v1_18", feature = "dox"))] #[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; } diff --git a/gstreamer-editing-services/src/auto/clip.rs b/gstreamer-editing-services/src/auto/clip.rs index 9f7403819..99f751752 100644 --- a/gstreamer-editing-services/src/auto/clip.rs +++ b/gstreamer-editing-services/src/auto/clip.rs @@ -36,10 +36,12 @@ glib::glib_wrapper! { pub const NONE_CLIP: Option<&Clip> = None; pub trait ClipExt: 'static { + #[doc(alias = "ges_clip_add_asset")] fn add_asset>(&self, asset: &P) -> Result; #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[doc(alias = "ges_clip_add_child_to_track")] fn add_child_to_track, Q: IsA>( &self, child: &P, @@ -48,15 +50,18 @@ pub trait ClipExt: 'static { #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[doc(alias = "ges_clip_add_top_effect")] fn add_top_effect>(&self, effect: &P, index: i32) -> Result<(), glib::Error>; + #[doc(alias = "ges_clip_find_track_element")] fn find_track_element>( &self, track: Option<&P>, type_: glib::types::Type, ) -> Option; + #[doc(alias = "ges_clip_find_track_elements")] fn find_track_elements>( &self, track: Option<&P>, @@ -66,22 +71,27 @@ pub trait ClipExt: 'static { #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[doc(alias = "ges_clip_get_duration_limit")] fn get_duration_limit(&self) -> gst::ClockTime; #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[doc(alias = "ges_clip_get_internal_time_from_timeline_time")] fn get_internal_time_from_timeline_time>( &self, child: &P, timeline_time: gst::ClockTime, ) -> Result; + #[doc(alias = "ges_clip_get_layer")] fn get_layer(&self) -> Option; + #[doc(alias = "ges_clip_get_supported_formats")] fn get_supported_formats(&self) -> TrackType; #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[doc(alias = "ges_clip_get_timeline_time_from_internal_time")] fn get_timeline_time_from_internal_time>( &self, child: &P, @@ -90,29 +100,38 @@ pub trait ClipExt: 'static { #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[doc(alias = "ges_clip_get_timeline_time_from_source_frame")] fn get_timeline_time_from_source_frame( &self, frame_number: FrameNumber, ) -> Result; + #[doc(alias = "ges_clip_get_top_effect_index")] fn get_top_effect_index>(&self, effect: &P) -> i32; + #[doc(alias = "ges_clip_get_top_effect_position")] fn get_top_effect_position>(&self, effect: &P) -> i32; + #[doc(alias = "ges_clip_get_top_effects")] fn get_top_effects(&self) -> Vec; + #[doc(alias = "ges_clip_move_to_layer")] fn move_to_layer>(&self, layer: &P) -> Result<(), glib::error::BoolError>; #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[doc(alias = "ges_clip_move_to_layer_full")] fn move_to_layer_full>(&self, layer: &P) -> Result<(), glib::Error>; #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[doc(alias = "ges_clip_remove_top_effect")] fn remove_top_effect>(&self, effect: &P) -> Result<(), glib::Error>; + #[doc(alias = "ges_clip_set_supported_formats")] fn set_supported_formats(&self, supportedformats: TrackType); + #[doc(alias = "ges_clip_set_top_effect_index")] fn set_top_effect_index>( &self, effect: &P, @@ -121,22 +140,26 @@ pub trait ClipExt: 'static { #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[doc(alias = "ges_clip_set_top_effect_index_full")] fn set_top_effect_index_full>( &self, effect: &P, newindex: u32, ) -> Result<(), glib::Error>; + #[doc(alias = "ges_clip_set_top_effect_priority")] fn set_top_effect_priority>( &self, effect: &P, newpriority: u32, ) -> Result<(), glib::error::BoolError>; + #[doc(alias = "ges_clip_split")] fn split(&self, position: u64) -> Result; #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[doc(alias = "ges_clip_split_full")] fn split_full(&self, position: u64) -> Result, glib::Error>; #[cfg(any(feature = "v1_18", feature = "dox"))] diff --git a/gstreamer-editing-services/src/auto/container.rs b/gstreamer-editing-services/src/auto/container.rs index 7ff63630b..002d70487 100644 --- a/gstreamer-editing-services/src/auto/container.rs +++ b/gstreamer-editing-services/src/auto/container.rs @@ -25,6 +25,7 @@ glib::glib_wrapper! { } impl Container { + #[doc(alias = "ges_container_group")] pub fn group(containers: &[Container]) -> Option { assert_initialized_main_thread!(); unsafe { from_glib_none(ffi::ges_container_group(containers.to_glib_none().0)) } @@ -34,9 +35,11 @@ impl Container { pub const NONE_CONTAINER: Option<&Container> = None; pub trait GESContainerExt: 'static { + #[doc(alias = "ges_container_add")] fn add>(&self, child: &P) -> Result<(), glib::error::BoolError>; #[cfg_attr(feature = "v1_18", deprecated)] + #[doc(alias = "ges_container_edit")] fn edit( &self, layers: &[Layer], @@ -46,10 +49,13 @@ pub trait GESContainerExt: 'static { position: u64, ) -> Result<(), glib::error::BoolError>; + #[doc(alias = "ges_container_get_children")] fn get_children(&self, recursive: bool) -> Vec; + #[doc(alias = "ges_container_remove")] fn remove>(&self, child: &P) -> Result<(), glib::error::BoolError>; + #[doc(alias = "ges_container_ungroup")] fn ungroup(&self, recursive: bool) -> Vec; fn get_property_height(&self) -> u32; diff --git a/gstreamer-editing-services/src/auto/effect.rs b/gstreamer-editing-services/src/auto/effect.rs index 03b87ca69..59fa11a26 100644 --- a/gstreamer-editing-services/src/auto/effect.rs +++ b/gstreamer-editing-services/src/auto/effect.rs @@ -19,6 +19,7 @@ glib::glib_wrapper! { } impl Effect { + #[doc(alias = "ges_effect_new")] pub fn new(bin_description: &str) -> Result { assert_initialized_main_thread!(); unsafe { diff --git a/gstreamer-editing-services/src/auto/enums.rs b/gstreamer-editing-services/src/auto/enums.rs index a3841e16a..3e16d63b9 100644 --- a/gstreamer-editing-services/src/auto/enums.rs +++ b/gstreamer-editing-services/src/auto/enums.rs @@ -66,7 +66,7 @@ impl ToGlib for Edge { #[doc(hidden)] impl FromGlib for Edge { - fn from_glib(value: ffi::GESEdge) -> Self { + unsafe fn from_glib(value: ffi::GESEdge) -> Self { skip_assert_initialized!(); match value { 0 => Edge::Start, @@ -156,7 +156,7 @@ impl ToGlib for EditMode { #[doc(hidden)] impl FromGlib for EditMode { - fn from_glib(value: ffi::GESEditMode) -> Self { + unsafe fn from_glib(value: ffi::GESEditMode) -> Self { skip_assert_initialized!(); match value { 0 => EditMode::Normal, diff --git a/gstreamer-editing-services/src/auto/extractable.rs b/gstreamer-editing-services/src/auto/extractable.rs index 9138b2283..44e19f8b2 100644 --- a/gstreamer-editing-services/src/auto/extractable.rs +++ b/gstreamer-editing-services/src/auto/extractable.rs @@ -17,10 +17,13 @@ glib::glib_wrapper! { pub const NONE_EXTRACTABLE: Option<&Extractable> = None; pub trait ExtractableExt: 'static { + #[doc(alias = "ges_extractable_get_asset")] fn get_asset(&self) -> Option; + #[doc(alias = "ges_extractable_get_id")] fn get_id(&self) -> Option; + #[doc(alias = "ges_extractable_set_asset")] fn set_asset>(&self, asset: &P) -> Result<(), glib::error::BoolError>; } diff --git a/gstreamer-editing-services/src/auto/flags.rs b/gstreamer-editing-services/src/auto/flags.rs index 98471bd6f..055ee5f84 100644 --- a/gstreamer-editing-services/src/auto/flags.rs +++ b/gstreamer-editing-services/src/auto/flags.rs @@ -33,7 +33,7 @@ impl ToGlib for PipelineFlags { #[doc(hidden)] impl FromGlib for PipelineFlags { - fn from_glib(value: ffi::GESPipelineFlags) -> PipelineFlags { + unsafe fn from_glib(value: ffi::GESPipelineFlags) -> PipelineFlags { skip_assert_initialized!(); PipelineFlags::from_bits_truncate(value) } @@ -105,7 +105,7 @@ impl ToGlib for TrackType { #[doc(hidden)] impl FromGlib for TrackType { - fn from_glib(value: ffi::GESTrackType) -> TrackType { + unsafe fn from_glib(value: ffi::GESTrackType) -> TrackType { skip_assert_initialized!(); TrackType::from_bits_truncate(value) } diff --git a/gstreamer-editing-services/src/auto/group.rs b/gstreamer-editing-services/src/auto/group.rs index d932eea36..785c4a7a4 100644 --- a/gstreamer-editing-services/src/auto/group.rs +++ b/gstreamer-editing-services/src/auto/group.rs @@ -23,6 +23,7 @@ glib::glib_wrapper! { } impl Group { + #[doc(alias = "ges_group_new")] pub fn new() -> Group { assert_initialized_main_thread!(); unsafe { from_glib_none(ffi::ges_group_new()) } diff --git a/gstreamer-editing-services/src/auto/layer.rs b/gstreamer-editing-services/src/auto/layer.rs index f906ad937..fa672fb09 100644 --- a/gstreamer-editing-services/src/auto/layer.rs +++ b/gstreamer-editing-services/src/auto/layer.rs @@ -30,6 +30,7 @@ glib::glib_wrapper! { } impl Layer { + #[doc(alias = "ges_layer_new")] pub fn new() -> Layer { assert_initialized_main_thread!(); unsafe { from_glib_none(ffi::ges_layer_new()) } @@ -45,6 +46,7 @@ impl Default for Layer { pub const NONE_LAYER: Option<&Layer> = None; pub trait LayerExt: 'static { + #[doc(alias = "ges_layer_add_asset")] fn add_asset>( &self, asset: &P, @@ -56,6 +58,7 @@ pub trait LayerExt: 'static { #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[doc(alias = "ges_layer_add_asset_full")] fn add_asset_full>( &self, asset: &P, @@ -65,41 +68,56 @@ pub trait LayerExt: 'static { track_types: TrackType, ) -> Result; + #[doc(alias = "ges_layer_add_clip")] fn add_clip>(&self, clip: &P) -> Result<(), glib::error::BoolError>; #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[doc(alias = "ges_layer_add_clip_full")] fn add_clip_full>(&self, clip: &P) -> Result<(), glib::Error>; #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[doc(alias = "ges_layer_get_active_for_track")] fn get_active_for_track>(&self, track: &P) -> bool; + #[doc(alias = "ges_layer_get_auto_transition")] fn get_auto_transition(&self) -> bool; + #[doc(alias = "ges_layer_get_clips")] fn get_clips(&self) -> Vec; + #[doc(alias = "ges_layer_get_clips_in_interval")] fn get_clips_in_interval(&self, start: gst::ClockTime, end: gst::ClockTime) -> Vec; + #[doc(alias = "ges_layer_get_duration")] fn get_duration(&self) -> gst::ClockTime; + #[doc(alias = "ges_layer_get_priority")] fn get_priority(&self) -> u32; + #[doc(alias = "ges_layer_get_timeline")] fn get_timeline(&self) -> Option; + #[doc(alias = "ges_layer_is_empty")] fn is_empty(&self) -> bool; + #[doc(alias = "ges_layer_remove_clip")] fn remove_clip>(&self, clip: &P) -> Result<(), glib::error::BoolError>; #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[doc(alias = "ges_layer_set_active_for_tracks")] fn set_active_for_tracks(&self, active: bool, tracks: &[Track]) -> bool; + #[doc(alias = "ges_layer_set_auto_transition")] fn set_auto_transition(&self, auto_transition: bool); #[cfg_attr(feature = "v1_16", deprecated)] + #[doc(alias = "ges_layer_set_priority")] fn set_priority(&self, priority: u32); + #[doc(alias = "ges_layer_set_timeline")] fn set_timeline>(&self, timeline: &P); //#[cfg(any(feature = "v1_18", feature = "dox"))] diff --git a/gstreamer-editing-services/src/auto/pipeline.rs b/gstreamer-editing-services/src/auto/pipeline.rs index 45ee6daad..79d35041d 100644 --- a/gstreamer-editing-services/src/auto/pipeline.rs +++ b/gstreamer-editing-services/src/auto/pipeline.rs @@ -23,6 +23,7 @@ glib::glib_wrapper! { } impl Pipeline { + #[doc(alias = "ges_pipeline_new")] pub fn new() -> Pipeline { assert_initialized_main_thread!(); unsafe { from_glib_none(ffi::ges_pipeline_new()) } @@ -38,20 +39,28 @@ impl Default for Pipeline { pub const NONE_PIPELINE: Option<&Pipeline> = None; pub trait GESPipelineExt: 'static { + #[doc(alias = "ges_pipeline_get_mode")] fn get_mode(&self) -> PipelineFlags; + #[doc(alias = "ges_pipeline_get_thumbnail")] fn get_thumbnail(&self, caps: &gst::Caps) -> Option; + #[doc(alias = "ges_pipeline_get_thumbnail_rgb24")] fn get_thumbnail_rgb24(&self, width: i32, height: i32) -> Option; + #[doc(alias = "ges_pipeline_preview_get_audio_sink")] fn preview_get_audio_sink(&self) -> Option; + #[doc(alias = "ges_pipeline_preview_get_video_sink")] fn preview_get_video_sink(&self) -> Option; + #[doc(alias = "ges_pipeline_preview_set_audio_sink")] fn preview_set_audio_sink>(&self, sink: &P); + #[doc(alias = "ges_pipeline_preview_set_video_sink")] fn preview_set_video_sink>(&self, sink: &P); + #[doc(alias = "ges_pipeline_save_thumbnail")] fn save_thumbnail( &self, width: i32, @@ -60,14 +69,17 @@ pub trait GESPipelineExt: 'static { location: &str, ) -> Result<(), glib::Error>; + #[doc(alias = "ges_pipeline_set_mode")] fn set_mode(&self, mode: PipelineFlags) -> Result<(), glib::error::BoolError>; + #[doc(alias = "ges_pipeline_set_render_settings")] fn set_render_settings>( &self, output_uri: &str, profile: &P, ) -> Result<(), glib::error::BoolError>; + #[doc(alias = "ges_pipeline_set_timeline")] fn set_timeline>(&self, timeline: &P) -> Result<(), glib::error::BoolError>; fn get_property_audio_filter(&self) -> Option; diff --git a/gstreamer-editing-services/src/auto/project.rs b/gstreamer-editing-services/src/auto/project.rs index 6fc145f2a..14c1a9eae 100644 --- a/gstreamer-editing-services/src/auto/project.rs +++ b/gstreamer-editing-services/src/auto/project.rs @@ -22,6 +22,7 @@ glib::glib_wrapper! { } impl Project { + #[doc(alias = "ges_project_new")] pub fn new(uri: Option<&str>) -> Project { assert_initialized_main_thread!(); unsafe { from_glib_full(ffi::ges_project_new(uri.to_glib_none().0)) } @@ -31,8 +32,10 @@ impl Project { pub const NONE_PROJECT: Option<&Project> = None; pub trait ProjectExt: 'static { + #[doc(alias = "ges_project_add_asset")] fn add_asset>(&self, asset: &P) -> bool; + #[doc(alias = "ges_project_add_encoding_profile")] fn add_encoding_profile>( &self, profile: &P, @@ -40,30 +43,41 @@ pub trait ProjectExt: 'static { //#[cfg(any(feature = "v1_18", feature = "dox"))] //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + //#[doc(alias = "ges_project_add_formatter")] //fn add_formatter(&self, formatter: /*Ignored*/&Formatter); + #[doc(alias = "ges_project_create_asset")] fn create_asset(&self, id: Option<&str>, extractable_type: glib::types::Type) -> bool; + #[doc(alias = "ges_project_create_asset_sync")] fn create_asset_sync( &self, id: Option<&str>, extractable_type: glib::types::Type, ) -> Result, glib::Error>; + #[doc(alias = "ges_project_get_asset")] fn get_asset(&self, id: &str, extractable_type: glib::types::Type) -> Option; + #[doc(alias = "ges_project_get_loading_assets")] fn get_loading_assets(&self) -> Vec; + #[doc(alias = "ges_project_get_uri")] fn get_uri(&self) -> Option; + #[doc(alias = "ges_project_list_assets")] fn list_assets(&self, filter: glib::types::Type) -> Vec; + #[doc(alias = "ges_project_list_encoding_profiles")] fn list_encoding_profiles(&self) -> Vec; + #[doc(alias = "ges_project_load")] fn load>(&self, timeline: &P) -> Result<(), glib::Error>; + #[doc(alias = "ges_project_remove_asset")] fn remove_asset>(&self, asset: &P) -> Result<(), glib::error::BoolError>; + #[doc(alias = "ges_project_save")] fn save, Q: IsA>( &self, timeline: &P, diff --git a/gstreamer-editing-services/src/auto/timeline.rs b/gstreamer-editing-services/src/auto/timeline.rs index 1b373bf03..91726ba65 100644 --- a/gstreamer-editing-services/src/auto/timeline.rs +++ b/gstreamer-editing-services/src/auto/timeline.rs @@ -33,16 +33,19 @@ glib::glib_wrapper! { } impl Timeline { + #[doc(alias = "ges_timeline_new")] pub fn new() -> Timeline { assert_initialized_main_thread!(); unsafe { from_glib_none(ffi::ges_timeline_new()) } } + #[doc(alias = "ges_timeline_new_audio_video")] pub fn new_audio_video() -> Timeline { assert_initialized_main_thread!(); unsafe { from_glib_none(ffi::ges_timeline_new_audio_video()) } } + #[doc(alias = "ges_timeline_new_from_uri")] pub fn from_uri(uri: &str) -> Result, glib::Error> { assert_initialized_main_thread!(); unsafe { @@ -67,56 +70,77 @@ pub const NONE_TIMELINE: Option<&Timeline> = None; pub trait TimelineExt: 'static { #[cfg_attr(feature = "v1_18", deprecated)] + #[doc(alias = "ges_timeline_add_layer")] fn add_layer>(&self, layer: &P) -> Result<(), glib::error::BoolError>; + #[doc(alias = "ges_timeline_add_track")] fn add_track>(&self, track: &P) -> Result<(), glib::error::BoolError>; + #[doc(alias = "ges_timeline_append_layer")] fn append_layer(&self) -> Layer; + #[doc(alias = "ges_timeline_commit")] fn commit(&self) -> bool; + #[doc(alias = "ges_timeline_commit_sync")] fn commit_sync(&self) -> bool; + #[doc(alias = "ges_timeline_get_auto_transition")] fn get_auto_transition(&self) -> bool; + #[doc(alias = "ges_timeline_get_duration")] fn get_duration(&self) -> gst::ClockTime; + #[doc(alias = "ges_timeline_get_element")] fn get_element(&self, name: &str) -> Option; #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[doc(alias = "ges_timeline_get_frame_at")] fn get_frame_at(&self, timestamp: gst::ClockTime) -> FrameNumber; #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[doc(alias = "ges_timeline_get_frame_time")] fn get_frame_time(&self, frame_number: FrameNumber) -> gst::ClockTime; + #[doc(alias = "ges_timeline_get_groups")] fn get_groups(&self) -> Vec; + #[doc(alias = "ges_timeline_get_layer")] fn get_layer(&self, priority: u32) -> Option; + #[doc(alias = "ges_timeline_get_layers")] fn get_layers(&self) -> Vec; + #[doc(alias = "ges_timeline_get_pad_for_track")] fn get_pad_for_track>(&self, track: &P) -> Option; + #[doc(alias = "ges_timeline_get_snapping_distance")] fn get_snapping_distance(&self) -> gst::ClockTime; + #[doc(alias = "ges_timeline_get_track_for_pad")] fn get_track_for_pad>(&self, pad: &P) -> Option; + #[doc(alias = "ges_timeline_get_tracks")] fn get_tracks(&self) -> Vec; + #[doc(alias = "ges_timeline_is_empty")] fn is_empty(&self) -> bool; + #[doc(alias = "ges_timeline_load_from_uri")] fn load_from_uri(&self, uri: &str) -> Result<(), glib::Error>; #[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[doc(alias = "ges_timeline_move_layer")] fn move_layer>( &self, layer: &P, new_layer_priority: u32, ) -> Result<(), glib::error::BoolError>; + #[doc(alias = "ges_timeline_paste_element")] fn paste_element>( &self, element: &P, @@ -124,10 +148,13 @@ pub trait TimelineExt: 'static { layer_priority: i32, ) -> Option; + #[doc(alias = "ges_timeline_remove_layer")] fn remove_layer>(&self, layer: &P) -> Result<(), glib::error::BoolError>; + #[doc(alias = "ges_timeline_remove_track")] fn remove_track>(&self, track: &P) -> Result<(), glib::error::BoolError>; + #[doc(alias = "ges_timeline_save_to_uri")] fn save_to_uri>( &self, uri: &str, @@ -135,8 +162,10 @@ pub trait TimelineExt: 'static { overwrite: bool, ) -> Result<(), glib::Error>; + #[doc(alias = "ges_timeline_set_auto_transition")] fn set_auto_transition(&self, auto_transition: bool); + #[doc(alias = "ges_timeline_set_snapping_distance")] fn set_snapping_distance(&self, snapping_distance: gst::ClockTime); fn connect_commited(&self, f: F) -> SignalHandlerId; diff --git a/gstreamer-editing-services/src/auto/timeline_element.rs b/gstreamer-editing-services/src/auto/timeline_element.rs index 410c97183..481245095 100644 --- a/gstreamer-editing-services/src/auto/timeline_element.rs +++ b/gstreamer-editing-services/src/auto/timeline_element.rs @@ -40,12 +40,15 @@ glib::glib_wrapper! { pub const NONE_TIMELINE_ELEMENT: Option<&TimelineElement> = None; pub trait TimelineElementExt: 'static { + //#[doc(alias = "ges_timeline_element_add_child_property")] //fn add_child_property>(&self, pspec: /*Ignored*/&glib::ParamSpec, child: &P) -> bool; + #[doc(alias = "ges_timeline_element_copy")] fn copy(&self, deep: bool) -> Result; #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[doc(alias = "ges_timeline_element_edit")] fn edit( &self, layers: &[Layer], @@ -57,6 +60,7 @@ pub trait TimelineElementExt: 'static { #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[doc(alias = "ges_timeline_element_edit_full")] fn edit_full( &self, new_layer_priority: i64, @@ -65,88 +69,126 @@ pub trait TimelineElementExt: 'static { position: u64, ) -> Result<(), glib::Error>; + //#[doc(alias = "ges_timeline_element_get_child_properties")] //fn get_child_properties(&self, first_property_name: &str, : /*Unknown conversion*//*Unimplemented*/Fundamental: VarArgs); + //#[doc(alias = "ges_timeline_element_get_child_property")] //fn get_child_property(&self, property_name: &str, value: /*Ignored*/glib::Value) -> bool; + //#[doc(alias = "ges_timeline_element_get_child_property_by_pspec")] //fn get_child_property_by_pspec(&self, pspec: /*Ignored*/&glib::ParamSpec, value: /*Ignored*/glib::Value); + //#[doc(alias = "ges_timeline_element_get_child_property_valist")] //fn get_child_property_valist(&self, first_property_name: &str, var_args: /*Unknown conversion*//*Unimplemented*/Unsupported); + #[doc(alias = "ges_timeline_element_get_duration")] fn get_duration(&self) -> gst::ClockTime; + #[doc(alias = "ges_timeline_element_get_inpoint")] fn get_inpoint(&self) -> gst::ClockTime; #[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[doc(alias = "ges_timeline_element_get_layer_priority")] fn get_layer_priority(&self) -> u32; + #[doc(alias = "ges_timeline_element_get_max_duration")] fn get_max_duration(&self) -> gst::ClockTime; + #[doc(alias = "ges_timeline_element_get_name")] fn get_name(&self) -> Option; #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[doc(alias = "ges_timeline_element_get_natural_framerate")] fn get_natural_framerate(&self) -> Option<(i32, i32)>; + #[doc(alias = "ges_timeline_element_get_parent")] fn get_parent(&self) -> Option; + #[doc(alias = "ges_timeline_element_get_priority")] fn get_priority(&self) -> u32; + #[doc(alias = "ges_timeline_element_get_start")] fn get_start(&self) -> gst::ClockTime; + #[doc(alias = "ges_timeline_element_get_timeline")] fn get_timeline(&self) -> Option; + #[doc(alias = "ges_timeline_element_get_toplevel_parent")] fn get_toplevel_parent(&self) -> Option; + #[doc(alias = "ges_timeline_element_get_track_types")] fn get_track_types(&self) -> TrackType; + //#[doc(alias = "ges_timeline_element_list_children_properties")] //fn list_children_properties(&self) -> /*Ignored*/Vec; + //#[doc(alias = "ges_timeline_element_lookup_child")] //fn lookup_child(&self, prop_name: &str, pspec: /*Ignored*/glib::ParamSpec) -> Option; + #[doc(alias = "ges_timeline_element_paste")] fn paste(&self, paste_position: gst::ClockTime) -> Result; + //#[doc(alias = "ges_timeline_element_remove_child_property")] //fn remove_child_property(&self, pspec: /*Ignored*/&glib::ParamSpec) -> bool; + #[doc(alias = "ges_timeline_element_ripple")] fn ripple(&self, start: gst::ClockTime) -> Result<(), glib::error::BoolError>; + #[doc(alias = "ges_timeline_element_ripple_end")] fn ripple_end(&self, end: gst::ClockTime) -> Result<(), glib::error::BoolError>; + #[doc(alias = "ges_timeline_element_roll_end")] fn roll_end(&self, end: gst::ClockTime) -> Result<(), glib::error::BoolError>; + #[doc(alias = "ges_timeline_element_roll_start")] fn roll_start(&self, start: gst::ClockTime) -> Result<(), glib::error::BoolError>; + //#[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_by_pspec")] //fn set_child_property_by_pspec(&self, pspec: /*Ignored*/&glib::ParamSpec, value: /*Ignored*/&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>; + //#[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); + #[doc(alias = "ges_timeline_element_set_duration")] fn set_duration(&self, duration: gst::ClockTime) -> bool; + #[doc(alias = "ges_timeline_element_set_inpoint")] fn set_inpoint(&self, inpoint: gst::ClockTime) -> bool; + #[doc(alias = "ges_timeline_element_set_max_duration")] fn set_max_duration(&self, maxduration: gst::ClockTime) -> bool; + #[doc(alias = "ges_timeline_element_set_name")] fn set_name(&self, name: Option<&str>) -> Result<(), glib::error::BoolError>; + #[doc(alias = "ges_timeline_element_set_parent")] fn set_parent>(&self, parent: &P) -> Result<(), glib::error::BoolError>; #[cfg_attr(feature = "v1_10", deprecated)] + #[doc(alias = "ges_timeline_element_set_priority")] fn set_priority(&self, priority: u32) -> bool; + #[doc(alias = "ges_timeline_element_set_start")] fn set_start(&self, start: gst::ClockTime) -> bool; + #[doc(alias = "ges_timeline_element_set_timeline")] fn set_timeline>(&self, timeline: &P) -> Result<(), glib::error::BoolError>; + #[doc(alias = "ges_timeline_element_trim")] fn trim(&self, start: gst::ClockTime) -> Result<(), glib::error::BoolError>; fn get_property_in_point(&self) -> u64; diff --git a/gstreamer-editing-services/src/auto/track.rs b/gstreamer-editing-services/src/auto/track.rs index 11dc6765a..fd141fa2d 100644 --- a/gstreamer-editing-services/src/auto/track.rs +++ b/gstreamer-editing-services/src/auto/track.rs @@ -26,6 +26,7 @@ glib::glib_wrapper! { } impl Track { + #[doc(alias = "ges_track_new")] pub fn new(type_: TrackType, caps: &gst::Caps) -> Track { assert_initialized_main_thread!(); unsafe { from_glib_none(ffi::ges_track_new(type_.to_glib(), caps.to_glib_full())) } @@ -35,26 +36,35 @@ impl Track { pub const NONE_TRACK: Option<&Track> = None; pub trait GESTrackExt: 'static { + #[doc(alias = "ges_track_add_element")] fn add_element>(&self, object: &P) -> Result<(), glib::error::BoolError>; #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[doc(alias = "ges_track_add_element_full")] fn add_element_full>(&self, object: &P) -> Result<(), glib::Error>; + #[doc(alias = "ges_track_commit")] fn commit(&self) -> bool; + #[doc(alias = "ges_track_get_caps")] fn get_caps(&self) -> Option; + #[doc(alias = "ges_track_get_elements")] fn get_elements(&self) -> Vec; + #[doc(alias = "ges_track_get_mixing")] fn get_mixing(&self) -> bool; #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[doc(alias = "ges_track_get_restriction_caps")] fn get_restriction_caps(&self) -> Option; + #[doc(alias = "ges_track_get_timeline")] fn get_timeline(&self) -> Option; + #[doc(alias = "ges_track_remove_element")] fn remove_element>( &self, object: &P, @@ -62,16 +72,22 @@ pub trait GESTrackExt: 'static { #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[doc(alias = "ges_track_remove_element_full")] fn remove_element_full>(&self, object: &P) -> Result<(), glib::Error>; + //#[doc(alias = "ges_track_set_create_element_for_gap_func")] //fn set_create_element_for_gap_func gst::Element + 'static>(&self, func: P); + #[doc(alias = "ges_track_set_mixing")] fn set_mixing(&self, mixing: bool); + #[doc(alias = "ges_track_set_restriction_caps")] fn set_restriction_caps(&self, caps: &gst::Caps); + #[doc(alias = "ges_track_set_timeline")] fn set_timeline>(&self, timeline: &P); + #[doc(alias = "ges_track_update_restriction_caps")] fn update_restriction_caps(&self, caps: &gst::Caps); fn get_property_duration(&self) -> u64; diff --git a/gstreamer-editing-services/src/auto/track_element.rs b/gstreamer-editing-services/src/auto/track_element.rs index a488f0250..d747733c2 100644 --- a/gstreamer-editing-services/src/auto/track_element.rs +++ b/gstreamer-editing-services/src/auto/track_element.rs @@ -29,6 +29,7 @@ glib::glib_wrapper! { pub const NONE_TRACK_ELEMENT: Option<&TrackElement> = None; pub trait TrackElementExt: 'static { + #[doc(alias = "ges_track_element_add_children_props")] fn add_children_props>( &self, element: &P, @@ -39,9 +40,11 @@ pub trait TrackElementExt: 'static { #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[doc(alias = "ges_track_element_clamp_control_source")] fn clamp_control_source(&self, property_name: &str); #[cfg_attr(feature = "v1_18", deprecated)] + #[doc(alias = "ges_track_element_edit")] fn edit( &self, layers: &[Layer], @@ -50,50 +53,68 @@ pub trait TrackElementExt: 'static { position: u64, ) -> Result<(), glib::error::BoolError>; + //#[doc(alias = "ges_track_element_get_all_control_bindings")] //fn get_all_control_bindings(&self) -> /*Unknown conversion*//*Unimplemented*/HashTable TypeId { ns_id: 0, id: 28 }/TypeId { ns_id: 6, id: 83 }; #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[doc(alias = "ges_track_element_get_auto_clamp_control_sources")] fn get_auto_clamp_control_sources(&self) -> bool; + //#[doc(alias = "ges_track_element_get_control_binding")] //fn get_control_binding(&self, property_name: &str) -> /*Ignored*/Option; + #[doc(alias = "ges_track_element_get_element")] fn get_element(&self) -> Option; + #[doc(alias = "ges_track_element_get_gnlobject")] fn get_gnlobject(&self) -> Option; + #[doc(alias = "ges_track_element_get_nleobject")] fn get_nleobject(&self) -> Option; + #[doc(alias = "ges_track_element_get_track")] fn get_track(&self) -> Option; + #[doc(alias = "ges_track_element_get_track_type")] fn get_track_type(&self) -> TrackType; #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[doc(alias = "ges_track_element_has_internal_source")] fn has_internal_source(&self) -> bool; + #[doc(alias = "ges_track_element_is_active")] fn is_active(&self) -> bool; #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[doc(alias = "ges_track_element_is_core")] fn is_core(&self) -> bool; + //#[doc(alias = "ges_track_element_lookup_child")] //fn lookup_child(&self, prop_name: &str, pspec: /*Ignored*/glib::ParamSpec) -> Option; + #[doc(alias = "ges_track_element_remove_control_binding")] fn remove_control_binding(&self, property_name: &str) -> Result<(), glib::error::BoolError>; + #[doc(alias = "ges_track_element_set_active")] fn set_active(&self, active: bool) -> bool; #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[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; #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[doc(alias = "ges_track_element_set_has_internal_source")] fn set_has_internal_source(&self, has_internal_source: bool) -> bool; + #[doc(alias = "ges_track_element_set_track_type")] fn set_track_type(&self, type_: TrackType); fn get_property_active(&self) -> bool; diff --git a/gstreamer-editing-services/src/auto/uri_clip.rs b/gstreamer-editing-services/src/auto/uri_clip.rs index 398b2e6eb..46dcc95d7 100644 --- a/gstreamer-editing-services/src/auto/uri_clip.rs +++ b/gstreamer-editing-services/src/auto/uri_clip.rs @@ -24,6 +24,7 @@ glib::glib_wrapper! { } impl UriClip { + #[doc(alias = "ges_uri_clip_new")] pub fn new(uri: &str) -> Result { assert_initialized_main_thread!(); unsafe { @@ -36,14 +37,19 @@ impl UriClip { pub const NONE_URI_CLIP: Option<&UriClip> = None; pub trait UriClipExt: 'static { + #[doc(alias = "ges_uri_clip_get_uri")] fn get_uri(&self) -> Option; + #[doc(alias = "ges_uri_clip_is_image")] fn is_image(&self) -> bool; + #[doc(alias = "ges_uri_clip_is_muted")] fn is_muted(&self) -> bool; + #[doc(alias = "ges_uri_clip_set_is_image")] fn set_is_image(&self, is_image: bool); + #[doc(alias = "ges_uri_clip_set_mute")] fn set_mute(&self, mute: bool); fn get_property_is_image(&self) -> bool; diff --git a/gstreamer-editing-services/src/auto/uri_clip_asset.rs b/gstreamer-editing-services/src/auto/uri_clip_asset.rs index b3b282fd4..e2fe12a55 100644 --- a/gstreamer-editing-services/src/auto/uri_clip_asset.rs +++ b/gstreamer-editing-services/src/auto/uri_clip_asset.rs @@ -27,14 +27,17 @@ glib::glib_wrapper! { impl UriClipAsset { //#[cfg(any(feature = "v1_16", feature = "dox"))] //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + //#[doc(alias = "ges_uri_clip_asset_finish")] //pub fn finish(res: /*Ignored*/&gio::AsyncResult) -> Result { // unsafe { TODO: call ffi:ges_uri_clip_asset_finish() } //} + //#[doc(alias = "ges_uri_clip_asset_new")] //pub fn new, Q: FnOnce(Result<(), glib::Error>) + 'static>(uri: &str, cancellable: Option<&P>, callback: Q) { // unsafe { TODO: call ffi:ges_uri_clip_asset_new() } //} + #[doc(alias = "ges_uri_clip_asset_request_sync")] pub fn request_sync(uri: &str) -> Result { assert_initialized_main_thread!(); unsafe { @@ -52,18 +55,23 @@ impl UriClipAsset { pub const NONE_URI_CLIP_ASSET: Option<&UriClipAsset> = None; pub trait UriClipAssetExt: 'static { + #[doc(alias = "ges_uri_clip_asset_get_duration")] fn get_duration(&self) -> gst::ClockTime; + #[doc(alias = "ges_uri_clip_asset_get_info")] fn get_info(&self) -> Option; #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[doc(alias = "ges_uri_clip_asset_get_max_duration")] fn get_max_duration(&self) -> gst::ClockTime; + #[doc(alias = "ges_uri_clip_asset_get_stream_assets")] fn get_stream_assets(&self) -> Vec; #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[doc(alias = "ges_uri_clip_asset_is_image")] fn is_image(&self) -> bool; fn set_property_duration(&self, duration: u64); diff --git a/gstreamer-editing-services/src/auto/uri_source_asset.rs b/gstreamer-editing-services/src/auto/uri_source_asset.rs index b7401c679..a2c62c9e6 100644 --- a/gstreamer-editing-services/src/auto/uri_source_asset.rs +++ b/gstreamer-editing-services/src/auto/uri_source_asset.rs @@ -18,14 +18,18 @@ glib::glib_wrapper! { pub const NONE_URI_SOURCE_ASSET: Option<&UriSourceAsset> = None; pub trait UriSourceAssetExt: 'static { + #[doc(alias = "ges_uri_source_asset_get_filesource_asset")] fn get_filesource_asset(&self) -> Option; + #[doc(alias = "ges_uri_source_asset_get_stream_info")] fn get_stream_info(&self) -> Option; + #[doc(alias = "ges_uri_source_asset_get_stream_uri")] fn get_stream_uri(&self) -> Option; #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[doc(alias = "ges_uri_source_asset_is_image")] fn is_image(&self) -> bool; } diff --git a/gstreamer-editing-services/src/auto/versions.txt b/gstreamer-editing-services/src/auto/versions.txt index ea795c56c..ba6c32af8 100644 --- a/gstreamer-editing-services/src/auto/versions.txt +++ b/gstreamer-editing-services/src/auto/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7) -from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9) +Generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf) +from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd) diff --git a/gstreamer-editing-services/sys/build.rs b/gstreamer-editing-services/sys/build.rs index beb26524a..4cb086136 100644 --- a/gstreamer-editing-services/sys/build.rs +++ b/gstreamer-editing-services/sys/build.rs @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7) -// from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf) +// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd) // DO NOT EDIT #[cfg(not(feature = "dox"))] diff --git a/gstreamer-editing-services/sys/src/lib.rs b/gstreamer-editing-services/sys/src/lib.rs index 9a734cbb7..6dfcf4014 100644 --- a/gstreamer-editing-services/sys/src/lib.rs +++ b/gstreamer-editing-services/sys/src/lib.rs @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7) -// from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf) +// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd) // DO NOT EDIT #![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)] diff --git a/gstreamer-editing-services/sys/tests/abi.rs b/gstreamer-editing-services/sys/tests/abi.rs index 34f63a8be..70c0ec743 100644 --- a/gstreamer-editing-services/sys/tests/abi.rs +++ b/gstreamer-editing-services/sys/tests/abi.rs @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7) -// from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf) +// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd) // DO NOT EDIT use gstreamer_editing_services_sys::*; diff --git a/gstreamer-editing-services/sys/tests/constant.c b/gstreamer-editing-services/sys/tests/constant.c index c2ff6ab15..206014da6 100644 --- a/gstreamer-editing-services/sys/tests/constant.c +++ b/gstreamer-editing-services/sys/tests/constant.c @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7) -// from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf) +// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-editing-services/sys/tests/layout.c b/gstreamer-editing-services/sys/tests/layout.c index 64f4cfb9c..82c774a5d 100644 --- a/gstreamer-editing-services/sys/tests/layout.c +++ b/gstreamer-editing-services/sys/tests/layout.c @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7) -// from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf) +// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-gl/egl/src/auto/gl_display_egl.rs b/gstreamer-gl/egl/src/auto/gl_display_egl.rs index 2e2eb1d75..5516476ed 100644 --- a/gstreamer-gl/egl/src/auto/gl_display_egl.rs +++ b/gstreamer-gl/egl/src/auto/gl_display_egl.rs @@ -14,15 +14,18 @@ glib::glib_wrapper! { } impl GLDisplayEGL { + #[doc(alias = "gst_gl_display_egl_new")] pub fn new() -> GLDisplayEGL { assert_initialized_main_thread!(); unsafe { from_glib_full(ffi::gst_gl_display_egl_new()) } } + //#[doc(alias = "gst_gl_display_egl_new_with_egl_display")] //pub fn with_egl_display(display: /*Unimplemented*/Option) -> GLDisplayEGL { // unsafe { TODO: call ffi:gst_gl_display_egl_new_with_egl_display() } //} + #[doc(alias = "gst_gl_display_egl_from_gl_display")] pub fn from_gl_display>(display: &P) -> Option { assert_initialized_main_thread!(); unsafe { @@ -32,6 +35,7 @@ impl GLDisplayEGL { } } + //#[doc(alias = "gst_gl_display_egl_get_from_native")] //pub fn get_from_native(type_: /*Ignored*/gst_gl::GLDisplayType, display: /*Unimplemented*/Fundamental: UIntPtr) -> /*Unimplemented*/Option { // unsafe { TODO: call ffi:gst_gl_display_egl_get_from_native() } //} diff --git a/gstreamer-gl/egl/src/auto/versions.txt b/gstreamer-gl/egl/src/auto/versions.txt index ea795c56c..ba6c32af8 100644 --- a/gstreamer-gl/egl/src/auto/versions.txt +++ b/gstreamer-gl/egl/src/auto/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7) -from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9) +Generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf) +from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd) diff --git a/gstreamer-gl/egl/sys/build.rs b/gstreamer-gl/egl/sys/build.rs index beb26524a..4cb086136 100644 --- a/gstreamer-gl/egl/sys/build.rs +++ b/gstreamer-gl/egl/sys/build.rs @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7) -// from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf) +// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd) // DO NOT EDIT #[cfg(not(feature = "dox"))] diff --git a/gstreamer-gl/egl/sys/src/lib.rs b/gstreamer-gl/egl/sys/src/lib.rs index b5ed8384a..1455bd646 100644 --- a/gstreamer-gl/egl/sys/src/lib.rs +++ b/gstreamer-gl/egl/sys/src/lib.rs @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7) -// from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf) +// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd) // DO NOT EDIT #![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)] diff --git a/gstreamer-gl/egl/sys/tests/abi.rs b/gstreamer-gl/egl/sys/tests/abi.rs index 5c1ef206f..0127db9ad 100644 --- a/gstreamer-gl/egl/sys/tests/abi.rs +++ b/gstreamer-gl/egl/sys/tests/abi.rs @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7) -// from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf) +// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd) // DO NOT EDIT use gstreamer_gl_egl_sys::*; diff --git a/gstreamer-gl/egl/sys/tests/constant.c b/gstreamer-gl/egl/sys/tests/constant.c index c2ff6ab15..206014da6 100644 --- a/gstreamer-gl/egl/sys/tests/constant.c +++ b/gstreamer-gl/egl/sys/tests/constant.c @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7) -// from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf) +// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-gl/egl/sys/tests/layout.c b/gstreamer-gl/egl/sys/tests/layout.c index 64f4cfb9c..82c774a5d 100644 --- a/gstreamer-gl/egl/sys/tests/layout.c +++ b/gstreamer-gl/egl/sys/tests/layout.c @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7) -// from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf) +// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-gl/src/auto/enums.rs b/gstreamer-gl/src/auto/enums.rs index 4fcd38ef8..5a923d12e 100644 --- a/gstreamer-gl/src/auto/enums.rs +++ b/gstreamer-gl/src/auto/enums.rs @@ -51,7 +51,7 @@ impl ToGlib for GLContextError { #[doc(hidden)] impl FromGlib for GLContextError { - fn from_glib(value: ffi::GstGLContextError) -> Self { + unsafe fn from_glib(value: ffi::GstGLContextError) -> Self { skip_assert_initialized!(); match value { 0 => GLContextError::Failed, @@ -141,12 +141,14 @@ pub enum GLFormat { } impl GLFormat { + //#[doc(alias = "gst_gl_format_from_video_info")] //pub fn from_video_info>(context: &P, vinfo: /*Ignored*/&mut gst_video::VideoInfo, plane: u32) -> GLFormat { // unsafe { TODO: call ffi:gst_gl_format_from_video_info() } //} #[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[doc(alias = "gst_gl_format_is_supported")] pub fn is_supported>(context: &P, format: GLFormat) -> bool { skip_assert_initialized!(); unsafe { @@ -159,6 +161,7 @@ impl GLFormat { #[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[doc(alias = "gst_gl_format_type_from_sized_gl_format")] pub fn type_from_sized_gl_format(self) -> (GLFormat, u32) { assert_initialized_main_thread!(); unsafe { @@ -175,6 +178,7 @@ impl GLFormat { } } + #[doc(alias = "gst_gl_format_type_n_bytes")] pub fn type_n_bytes(format: u32, type_: u32) -> u32 { assert_initialized_main_thread!(); unsafe { ffi::gst_gl_format_type_n_bytes(format, type_) } @@ -213,7 +217,7 @@ impl ToGlib for GLFormat { #[doc(hidden)] impl FromGlib for GLFormat { - fn from_glib(value: ffi::GstGLFormat) -> Self { + unsafe fn from_glib(value: ffi::GstGLFormat) -> Self { skip_assert_initialized!(); match value { 6409 => GLFormat::Luminance, @@ -290,7 +294,7 @@ impl ToGlib for GLQueryType { #[doc(hidden)] impl FromGlib for GLQueryType { - fn from_glib(value: ffi::GstGLQueryType) -> Self { + unsafe fn from_glib(value: ffi::GstGLQueryType) -> Self { skip_assert_initialized!(); match value { 0 => GLQueryType::None, @@ -351,7 +355,7 @@ impl ToGlib for GLSLError { #[doc(hidden)] impl FromGlib for GLSLError { - fn from_glib(value: ffi::GstGLSLError) -> Self { + unsafe fn from_glib(value: ffi::GstGLSLError) -> Self { skip_assert_initialized!(); match value { 0 => GLSLError::Compile, @@ -433,11 +437,13 @@ pub enum GLSLVersion { } impl GLSLVersion { + #[doc(alias = "gst_glsl_version_from_string")] pub fn from_string(string: &str) -> GLSLVersion { assert_initialized_main_thread!(); unsafe { from_glib(ffi::gst_glsl_version_from_string(string.to_glib_none().0)) } } + #[doc(alias = "gst_glsl_version_profile_from_string")] pub fn profile_from_string(string: &str) -> Option<(GLSLVersion, GLSLProfile)> { assert_initialized_main_thread!(); unsafe { @@ -458,6 +464,7 @@ impl GLSLVersion { } } + #[doc(alias = "gst_glsl_version_profile_to_string")] pub fn profile_to_string(self, profile: GLSLProfile) -> Option { assert_initialized_main_thread!(); unsafe { @@ -468,6 +475,7 @@ impl GLSLVersion { } } + #[doc(alias = "gst_glsl_version_to_string")] pub fn to_str(self) -> Option { assert_initialized_main_thread!(); unsafe { from_glib_none(ffi::gst_glsl_version_to_string(self.to_glib())) } @@ -504,7 +512,7 @@ impl ToGlib for GLSLVersion { #[doc(hidden)] impl FromGlib for GLSLVersion { - fn from_glib(value: ffi::GstGLSLVersion) -> Self { + unsafe fn from_glib(value: ffi::GstGLSLVersion) -> Self { skip_assert_initialized!(); match value { 0 => GLSLVersion::None, @@ -583,7 +591,7 @@ impl ToGlib for GLStereoDownmix { #[doc(hidden)] impl FromGlib for GLStereoDownmix { - fn from_glib(value: ffi::GstGLStereoDownmix) -> Self { + unsafe fn from_glib(value: ffi::GstGLStereoDownmix) -> Self { skip_assert_initialized!(); match value { 0 => GLStereoDownmix::GreenMagentaDubois, @@ -630,16 +638,19 @@ pub enum GLTextureTarget { } impl GLTextureTarget { + #[doc(alias = "gst_gl_texture_target_from_gl")] pub fn from_gl(target: u32) -> GLTextureTarget { assert_initialized_main_thread!(); unsafe { from_glib(ffi::gst_gl_texture_target_from_gl(target)) } } + #[doc(alias = "gst_gl_texture_target_from_string")] pub fn from_string(str: &str) -> GLTextureTarget { assert_initialized_main_thread!(); unsafe { from_glib(ffi::gst_gl_texture_target_from_string(str.to_glib_none().0)) } } + #[doc(alias = "gst_gl_texture_target_to_buffer_pool_option")] pub fn to_buffer_pool_option(self) -> Option { assert_initialized_main_thread!(); unsafe { @@ -649,11 +660,13 @@ impl GLTextureTarget { } } + #[doc(alias = "gst_gl_texture_target_to_gl")] pub fn to_gl(self) -> u32 { assert_initialized_main_thread!(); unsafe { ffi::gst_gl_texture_target_to_gl(self.to_glib()) } } + #[doc(alias = "gst_gl_texture_target_to_string")] pub fn to_str(self) -> Option { assert_initialized_main_thread!(); unsafe { from_glib_none(ffi::gst_gl_texture_target_to_string(self.to_glib())) } @@ -677,7 +690,7 @@ impl ToGlib for GLTextureTarget { #[doc(hidden)] impl FromGlib for GLTextureTarget { - fn from_glib(value: ffi::GstGLTextureTarget) -> Self { + unsafe fn from_glib(value: ffi::GstGLTextureTarget) -> Self { skip_assert_initialized!(); match value { 0 => GLTextureTarget::None, @@ -743,7 +756,7 @@ impl ToGlib for GLUploadReturn { #[doc(hidden)] impl FromGlib for GLUploadReturn { - fn from_glib(value: ffi::GstGLUploadReturn) -> Self { + unsafe fn from_glib(value: ffi::GstGLUploadReturn) -> Self { skip_assert_initialized!(); match value { 1 => GLUploadReturn::Done, @@ -806,7 +819,7 @@ impl ToGlib for GLWindowError { #[doc(hidden)] impl FromGlib for GLWindowError { - fn from_glib(value: ffi::GstGLWindowError) -> Self { + unsafe fn from_glib(value: ffi::GstGLWindowError) -> Self { skip_assert_initialized!(); match value { 0 => GLWindowError::Failed, diff --git a/gstreamer-gl/src/auto/flags.rs b/gstreamer-gl/src/auto/flags.rs index f07e5954e..bc35f6e1d 100644 --- a/gstreamer-gl/src/auto/flags.rs +++ b/gstreamer-gl/src/auto/flags.rs @@ -21,11 +21,13 @@ bitflags! { } impl GLAPI { + #[doc(alias = "gst_gl_api_from_string")] pub fn from_string(api_s: &str) -> GLAPI { assert_initialized_main_thread!(); unsafe { from_glib(ffi::gst_gl_api_from_string(api_s.to_glib_none().0)) } } + #[doc(alias = "gst_gl_api_to_string")] pub fn to_str(self) -> glib::GString { assert_initialized_main_thread!(); unsafe { from_glib_full(ffi::gst_gl_api_to_string(self.to_glib())) } @@ -50,7 +52,7 @@ impl ToGlib for GLAPI { #[doc(hidden)] impl FromGlib for GLAPI { - fn from_glib(value: ffi::GstGLAPI) -> GLAPI { + unsafe fn from_glib(value: ffi::GstGLAPI) -> GLAPI { skip_assert_initialized!(); GLAPI::from_bits_truncate(value) } @@ -107,7 +109,7 @@ impl ToGlib for GLDisplayType { #[doc(hidden)] impl FromGlib for GLDisplayType { - fn from_glib(value: ffi::GstGLDisplayType) -> GLDisplayType { + unsafe fn from_glib(value: ffi::GstGLDisplayType) -> GLDisplayType { skip_assert_initialized!(); GLDisplayType::from_bits_truncate(value) } @@ -148,6 +150,7 @@ bitflags! { } impl GLPlatform { + #[doc(alias = "gst_gl_platform_from_string")] pub fn from_string(platform_s: &str) -> GLPlatform { assert_initialized_main_thread!(); unsafe { @@ -157,6 +160,7 @@ impl GLPlatform { } } + #[doc(alias = "gst_gl_platform_to_string")] pub fn to_str(self) -> glib::GString { assert_initialized_main_thread!(); unsafe { from_glib_full(ffi::gst_gl_platform_to_string(self.to_glib())) } @@ -181,7 +185,7 @@ impl ToGlib for GLPlatform { #[doc(hidden)] impl FromGlib for GLPlatform { - fn from_glib(value: ffi::GstGLPlatform) -> GLPlatform { + unsafe fn from_glib(value: ffi::GstGLPlatform) -> GLPlatform { skip_assert_initialized!(); GLPlatform::from_bits_truncate(value) } @@ -220,11 +224,13 @@ bitflags! { } impl GLSLProfile { + #[doc(alias = "gst_glsl_profile_from_string")] pub fn from_string(string: &str) -> GLSLProfile { assert_initialized_main_thread!(); unsafe { from_glib(ffi::gst_glsl_profile_from_string(string.to_glib_none().0)) } } + #[doc(alias = "gst_glsl_profile_to_string")] pub fn to_str(self) -> Option { assert_initialized_main_thread!(); unsafe { from_glib_none(ffi::gst_glsl_profile_to_string(self.to_glib())) } @@ -242,7 +248,7 @@ impl ToGlib for GLSLProfile { #[doc(hidden)] impl FromGlib for GLSLProfile { - fn from_glib(value: ffi::GstGLSLProfile) -> GLSLProfile { + unsafe fn from_glib(value: ffi::GstGLSLProfile) -> GLSLProfile { skip_assert_initialized!(); GLSLProfile::from_bits_truncate(value) } diff --git a/gstreamer-gl/src/auto/gl_base_filter.rs b/gstreamer-gl/src/auto/gl_base_filter.rs index a3c86b9b2..f832b0ce7 100644 --- a/gstreamer-gl/src/auto/gl_base_filter.rs +++ b/gstreamer-gl/src/auto/gl_base_filter.rs @@ -28,10 +28,12 @@ pub const NONE_GL_BASE_FILTER: Option<&GLBaseFilter> = None; pub trait GLBaseFilterExt: 'static { #[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[doc(alias = "gst_gl_base_filter_find_gl_context")] fn find_gl_context(&self) -> bool; #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[doc(alias = "gst_gl_base_filter_get_gl_context")] fn get_gl_context(&self) -> Option; fn get_property_context(&self) -> Option; diff --git a/gstreamer-gl/src/auto/gl_color_convert.rs b/gstreamer-gl/src/auto/gl_color_convert.rs index 123e66b81..41a4cab41 100644 --- a/gstreamer-gl/src/auto/gl_color_convert.rs +++ b/gstreamer-gl/src/auto/gl_color_convert.rs @@ -15,6 +15,7 @@ glib::glib_wrapper! { } impl GLColorConvert { + #[doc(alias = "gst_gl_color_convert_new")] pub fn new>(context: &P) -> GLColorConvert { skip_assert_initialized!(); unsafe { @@ -24,6 +25,7 @@ impl GLColorConvert { } } + #[doc(alias = "gst_gl_color_convert_set_caps")] pub fn set_caps( &self, in_caps: &gst::Caps, @@ -41,6 +43,7 @@ impl GLColorConvert { } } + #[doc(alias = "gst_gl_color_convert_transform_caps")] pub fn transform_caps>( context: &P, direction: gst::PadDirection, diff --git a/gstreamer-gl/src/auto/gl_context.rs b/gstreamer-gl/src/auto/gl_context.rs index db5909fd2..b395a367a 100644 --- a/gstreamer-gl/src/auto/gl_context.rs +++ b/gstreamer-gl/src/auto/gl_context.rs @@ -22,16 +22,19 @@ glib::glib_wrapper! { } impl GLContext { + #[doc(alias = "gst_gl_context_new")] pub fn new>(display: &P) -> GLContext { skip_assert_initialized!(); unsafe { from_glib_none(ffi::gst_gl_context_new(display.as_ref().to_glib_none().0)) } } + #[doc(alias = "gst_gl_context_get_current")] pub fn get_current() -> Option { assert_initialized_main_thread!(); unsafe { from_glib_none(ffi::gst_gl_context_get_current()) } } + #[doc(alias = "gst_gl_context_get_current_gl_api")] pub fn get_current_gl_api(platform: GLPlatform) -> (GLAPI, u32, u32) { assert_initialized_main_thread!(); unsafe { @@ -55,54 +58,77 @@ unsafe impl Sync for GLContext {} pub const NONE_GL_CONTEXT: Option<&GLContext> = None; pub trait GLContextExt: 'static { + #[doc(alias = "gst_gl_context_activate")] fn activate(&self, activate: bool) -> Result<(), glib::error::BoolError>; + #[doc(alias = "gst_gl_context_can_share")] fn can_share>(&self, other_context: &P) -> bool; + #[doc(alias = "gst_gl_context_check_feature")] fn check_feature(&self, feature: &str) -> bool; + #[doc(alias = "gst_gl_context_check_framebuffer_status")] fn check_framebuffer_status(&self, fbo_target: u32) -> bool; + #[doc(alias = "gst_gl_context_check_gl_version")] fn check_gl_version(&self, api: GLAPI, maj: i32, min: i32) -> bool; + #[doc(alias = "gst_gl_context_clear_framebuffer")] fn clear_framebuffer(&self); + #[doc(alias = "gst_gl_context_clear_shader")] fn clear_shader(&self); + #[doc(alias = "gst_gl_context_create")] fn create>(&self, other_context: Option<&P>) -> Result<(), glib::Error>; + #[doc(alias = "gst_gl_context_destroy")] fn destroy(&self); + #[doc(alias = "gst_gl_context_fill_info")] fn fill_info(&self) -> Result<(), glib::Error>; + #[doc(alias = "gst_gl_context_get_display")] fn get_display(&self) -> GLDisplay; + #[doc(alias = "gst_gl_context_get_gl_api")] fn get_gl_api(&self) -> GLAPI; + #[doc(alias = "gst_gl_context_get_gl_platform")] fn get_gl_platform(&self) -> GLPlatform; + #[doc(alias = "gst_gl_context_get_gl_platform_version")] fn get_gl_platform_version(&self) -> (i32, i32); + #[doc(alias = "gst_gl_context_get_gl_version")] fn get_gl_version(&self) -> (i32, i32); + #[doc(alias = "gst_gl_context_get_window")] fn get_window(&self) -> Option; + #[doc(alias = "gst_gl_context_is_shared")] fn is_shared(&self) -> bool; + #[doc(alias = "gst_gl_context_set_shared_with")] fn set_shared_with>(&self, share: &P); + #[doc(alias = "gst_gl_context_set_window")] fn set_window>(&self, window: &P) -> Result<(), glib::error::BoolError>; + #[doc(alias = "gst_gl_context_supports_glsl_profile_version")] fn supports_glsl_profile_version(&self, version: GLSLVersion, profile: GLSLProfile) -> bool; #[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[doc(alias = "gst_gl_context_supports_precision")] fn supports_precision(&self, version: GLSLVersion, profile: GLSLProfile) -> bool; #[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[doc(alias = "gst_gl_context_supports_precision_highp")] fn supports_precision_highp(&self, version: GLSLVersion, profile: GLSLProfile) -> bool; + #[doc(alias = "gst_gl_context_swap_buffers")] fn swap_buffers(&self); } diff --git a/gstreamer-gl/src/auto/gl_display.rs b/gstreamer-gl/src/auto/gl_display.rs index f976a7b58..cc6f39cc4 100644 --- a/gstreamer-gl/src/auto/gl_display.rs +++ b/gstreamer-gl/src/auto/gl_display.rs @@ -24,6 +24,7 @@ glib::glib_wrapper! { } impl GLDisplay { + #[doc(alias = "gst_gl_display_new")] pub fn new() -> GLDisplay { assert_initialized_main_thread!(); unsafe { from_glib_full(ffi::gst_gl_display_new()) } @@ -42,31 +43,41 @@ unsafe impl Sync for GLDisplay {} pub const NONE_GL_DISPLAY: Option<&GLDisplay> = None; pub trait GLDisplayExt: 'static { + #[doc(alias = "gst_gl_display_add_context")] fn add_context>(&self, context: &P) -> Result<(), glib::error::BoolError>; + #[doc(alias = "gst_gl_display_create_context")] fn create_context>( &self, other_context: &P, ) -> Result; + #[doc(alias = "gst_gl_display_create_window")] fn create_window(&self) -> Result; + #[doc(alias = "gst_gl_display_filter_gl_api")] fn filter_gl_api(&self, gl_api: GLAPI); + #[doc(alias = "gst_gl_display_get_gl_api")] fn get_gl_api(&self) -> GLAPI; + #[doc(alias = "gst_gl_display_get_gl_api_unlocked")] fn get_gl_api_unlocked(&self) -> GLAPI; + #[doc(alias = "gst_gl_display_get_handle_type")] fn get_handle_type(&self) -> GLDisplayType; #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[doc(alias = "gst_gl_display_remove_context")] fn remove_context>(&self, context: &P); + #[doc(alias = "gst_gl_display_remove_window")] fn remove_window>(&self, window: &P) -> Result<(), glib::error::BoolError>; //#[cfg(any(feature = "v1_18", feature = "dox"))] //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + //#[doc(alias = "gst_gl_display_retrieve_window")] //fn retrieve_window(&self, data: /*Unimplemented*/Option, compare_func: /*Unimplemented*/FnMut(/*Unimplemented*/Option, /*Unimplemented*/Option) -> i32) -> Option; fn connect_create_context GLContext + Send + Sync + 'static>( diff --git a/gstreamer-gl/src/auto/gl_framebuffer.rs b/gstreamer-gl/src/auto/gl_framebuffer.rs index 13a54dcf8..47cf2c054 100644 --- a/gstreamer-gl/src/auto/gl_framebuffer.rs +++ b/gstreamer-gl/src/auto/gl_framebuffer.rs @@ -16,6 +16,7 @@ glib::glib_wrapper! { } impl GLFramebuffer { + #[doc(alias = "gst_gl_framebuffer_new")] pub fn new>(context: &P) -> GLFramebuffer { skip_assert_initialized!(); unsafe { @@ -25,6 +26,7 @@ impl GLFramebuffer { } } + #[doc(alias = "gst_gl_framebuffer_new_with_default_depth")] pub fn with_default_depth>( context: &P, width: u32, @@ -47,14 +49,19 @@ unsafe impl Sync for GLFramebuffer {} pub const NONE_GL_FRAMEBUFFER: Option<&GLFramebuffer> = None; pub trait GLFramebufferExt: 'static { + //#[doc(alias = "gst_gl_framebuffer_attach")] //fn attach(&self, attachment_point: u32, mem: /*Ignored*/&mut GLBaseMemory); + #[doc(alias = "gst_gl_framebuffer_bind")] fn bind(&self); + //#[doc(alias = "gst_gl_framebuffer_draw_to_texture")] //fn draw_to_texture(&self, mem: /*Ignored*/&mut GLMemory, func: /*Unimplemented*/FnMut(/*Unimplemented*/Option) -> bool, user_data: /*Unimplemented*/Option) -> bool; + #[doc(alias = "gst_gl_framebuffer_get_effective_dimensions")] fn get_effective_dimensions(&self) -> (u32, u32); + #[doc(alias = "gst_gl_framebuffer_get_id")] fn get_id(&self) -> u32; } diff --git a/gstreamer-gl/src/auto/gl_overlay_compositor.rs b/gstreamer-gl/src/auto/gl_overlay_compositor.rs index 2b3f70d2a..d67284434 100644 --- a/gstreamer-gl/src/auto/gl_overlay_compositor.rs +++ b/gstreamer-gl/src/auto/gl_overlay_compositor.rs @@ -33,6 +33,7 @@ glib::glib_wrapper! { } impl GLOverlayCompositor { + #[doc(alias = "gst_gl_overlay_compositor_new")] pub fn new>(context: &P) -> GLOverlayCompositor { skip_assert_initialized!(); unsafe { @@ -42,12 +43,14 @@ impl GLOverlayCompositor { } } + #[doc(alias = "gst_gl_overlay_compositor_draw_overlays")] pub fn draw_overlays(&self) { unsafe { ffi::gst_gl_overlay_compositor_draw_overlays(self.to_glib_none().0); } } + #[doc(alias = "gst_gl_overlay_compositor_free_overlays")] pub fn free_overlays(&self) { unsafe { ffi::gst_gl_overlay_compositor_free_overlays(self.to_glib_none().0); @@ -83,6 +86,7 @@ impl GLOverlayCompositor { } } + #[doc(alias = "gst_gl_overlay_compositor_add_caps")] pub fn add_caps(caps: &gst::Caps) -> Option { assert_initialized_main_thread!(); unsafe { diff --git a/gstreamer-gl/src/auto/gl_shader.rs b/gstreamer-gl/src/auto/gl_shader.rs index a580e0d92..39b4b5b0a 100644 --- a/gstreamer-gl/src/auto/gl_shader.rs +++ b/gstreamer-gl/src/auto/gl_shader.rs @@ -29,11 +29,13 @@ glib::glib_wrapper! { } impl GLShader { + #[doc(alias = "gst_gl_shader_new")] pub fn new>(context: &P) -> GLShader { skip_assert_initialized!(); unsafe { from_glib_full(ffi::gst_gl_shader_new(context.as_ref().to_glib_none().0)) } } + #[doc(alias = "gst_gl_shader_new_default")] pub fn new_default>(context: &P) -> Result { skip_assert_initialized!(); unsafe { @@ -47,14 +49,17 @@ impl GLShader { } } + //#[doc(alias = "gst_gl_shader_new_link_with_stages")] //pub fn new_link_with_stages>(context: &P, error: &mut glib::Error, : /*Unknown conversion*//*Unimplemented*/Fundamental: VarArgs) -> GLShader { // unsafe { TODO: call ffi:gst_gl_shader_new_link_with_stages() } //} + //#[doc(alias = "gst_gl_shader_new_with_stages")] //pub fn with_stages>(context: &P, error: &mut glib::Error, : /*Unknown conversion*//*Unimplemented*/Fundamental: VarArgs) -> GLShader { // unsafe { TODO: call ffi:gst_gl_shader_new_with_stages() } //} + #[doc(alias = "gst_gl_shader_attach")] pub fn attach(&self, stage: &GLSLStage) -> Result<(), glib::error::BoolError> { unsafe { glib::glib_result_from_gboolean!( @@ -64,6 +69,7 @@ impl GLShader { } } + #[doc(alias = "gst_gl_shader_attach_unlocked")] pub fn attach_unlocked(&self, stage: &GLSLStage) -> Result<(), glib::error::BoolError> { unsafe { glib::glib_result_from_gboolean!( @@ -73,6 +79,7 @@ impl GLShader { } } + #[doc(alias = "gst_gl_shader_bind_attribute_location")] pub fn bind_attribute_location(&self, index: u32, name: &str) { unsafe { ffi::gst_gl_shader_bind_attribute_location( @@ -83,6 +90,7 @@ impl GLShader { } } + #[doc(alias = "gst_gl_shader_bind_frag_data_location")] pub fn bind_frag_data_location(&self, index: u32, name: &str) { unsafe { ffi::gst_gl_shader_bind_frag_data_location( @@ -93,6 +101,7 @@ impl GLShader { } } + #[doc(alias = "gst_gl_shader_compile_attach_stage")] pub fn compile_attach_stage(&self, stage: &GLSLStage) -> Result<(), glib::Error> { unsafe { let mut error = ptr::null_mut(); @@ -109,32 +118,38 @@ impl GLShader { } } + #[doc(alias = "gst_gl_shader_detach")] pub fn detach(&self, stage: &GLSLStage) { unsafe { ffi::gst_gl_shader_detach(self.to_glib_none().0, stage.to_glib_none().0); } } + #[doc(alias = "gst_gl_shader_detach_unlocked")] pub fn detach_unlocked(&self, stage: &GLSLStage) { unsafe { ffi::gst_gl_shader_detach_unlocked(self.to_glib_none().0, stage.to_glib_none().0); } } + #[doc(alias = "gst_gl_shader_get_attribute_location")] pub fn get_attribute_location(&self, name: &str) -> i32 { unsafe { ffi::gst_gl_shader_get_attribute_location(self.to_glib_none().0, name.to_glib_none().0) } } + #[doc(alias = "gst_gl_shader_get_program_handle")] pub fn get_program_handle(&self) -> i32 { unsafe { ffi::gst_gl_shader_get_program_handle(self.to_glib_none().0) } } + #[doc(alias = "gst_gl_shader_is_linked")] pub fn is_linked(&self) -> bool { unsafe { from_glib(ffi::gst_gl_shader_is_linked(self.to_glib_none().0)) } } + #[doc(alias = "gst_gl_shader_link")] pub fn link(&self) -> Result<(), glib::Error> { unsafe { let mut error = ptr::null_mut(); @@ -147,24 +162,28 @@ impl GLShader { } } + #[doc(alias = "gst_gl_shader_release")] pub fn release(&self) { unsafe { ffi::gst_gl_shader_release(self.to_glib_none().0); } } + #[doc(alias = "gst_gl_shader_release_unlocked")] pub fn release_unlocked(&self) { unsafe { ffi::gst_gl_shader_release_unlocked(self.to_glib_none().0); } } + #[doc(alias = "gst_gl_shader_set_uniform_1f")] pub fn set_uniform_1f(&self, name: &str, value: f32) { unsafe { ffi::gst_gl_shader_set_uniform_1f(self.to_glib_none().0, name.to_glib_none().0, value); } } + #[doc(alias = "gst_gl_shader_set_uniform_1fv")] pub fn set_uniform_1fv(&self, name: &str, value: &[f32]) { let count = value.len() as u32; unsafe { @@ -177,12 +196,14 @@ impl GLShader { } } + #[doc(alias = "gst_gl_shader_set_uniform_1i")] pub fn set_uniform_1i(&self, name: &str, value: i32) { unsafe { ffi::gst_gl_shader_set_uniform_1i(self.to_glib_none().0, name.to_glib_none().0, value); } } + #[doc(alias = "gst_gl_shader_set_uniform_1iv")] pub fn set_uniform_1iv(&self, name: &str, value: &[i32]) { let count = value.len() as u32; unsafe { @@ -195,12 +216,14 @@ impl GLShader { } } + #[doc(alias = "gst_gl_shader_set_uniform_2f")] pub fn set_uniform_2f(&self, name: &str, v0: f32, v1: f32) { unsafe { ffi::gst_gl_shader_set_uniform_2f(self.to_glib_none().0, name.to_glib_none().0, v0, v1); } } + #[doc(alias = "gst_gl_shader_set_uniform_2fv")] pub fn set_uniform_2fv(&self, name: &str, value: &[f32]) { let count = value.len() as u32; unsafe { @@ -213,12 +236,14 @@ impl GLShader { } } + #[doc(alias = "gst_gl_shader_set_uniform_2i")] pub fn set_uniform_2i(&self, name: &str, v0: i32, v1: i32) { unsafe { ffi::gst_gl_shader_set_uniform_2i(self.to_glib_none().0, name.to_glib_none().0, v0, v1); } } + #[doc(alias = "gst_gl_shader_set_uniform_2iv")] pub fn set_uniform_2iv(&self, name: &str, value: &[i32]) { let count = value.len() as u32; unsafe { @@ -231,6 +256,7 @@ impl GLShader { } } + #[doc(alias = "gst_gl_shader_set_uniform_3f")] pub fn set_uniform_3f(&self, name: &str, v0: f32, v1: f32, v2: f32) { unsafe { ffi::gst_gl_shader_set_uniform_3f( @@ -243,6 +269,7 @@ impl GLShader { } } + #[doc(alias = "gst_gl_shader_set_uniform_3fv")] pub fn set_uniform_3fv(&self, name: &str, value: &[f32]) { let count = value.len() as u32; unsafe { @@ -255,6 +282,7 @@ impl GLShader { } } + #[doc(alias = "gst_gl_shader_set_uniform_3i")] pub fn set_uniform_3i(&self, name: &str, v0: i32, v1: i32, v2: i32) { unsafe { ffi::gst_gl_shader_set_uniform_3i( @@ -267,6 +295,7 @@ impl GLShader { } } + #[doc(alias = "gst_gl_shader_set_uniform_3iv")] pub fn set_uniform_3iv(&self, name: &str, value: &[i32]) { let count = value.len() as u32; unsafe { @@ -279,6 +308,7 @@ impl GLShader { } } + #[doc(alias = "gst_gl_shader_set_uniform_4f")] pub fn set_uniform_4f(&self, name: &str, v0: f32, v1: f32, v2: f32, v3: f32) { unsafe { ffi::gst_gl_shader_set_uniform_4f( @@ -292,6 +322,7 @@ impl GLShader { } } + #[doc(alias = "gst_gl_shader_set_uniform_4fv")] pub fn set_uniform_4fv(&self, name: &str, value: &[f32]) { let count = value.len() as u32; unsafe { @@ -304,6 +335,7 @@ impl GLShader { } } + #[doc(alias = "gst_gl_shader_set_uniform_4i")] pub fn set_uniform_4i(&self, name: &str, v0: i32, v1: i32, v2: i32, v3: i32) { unsafe { ffi::gst_gl_shader_set_uniform_4i( @@ -317,6 +349,7 @@ impl GLShader { } } + #[doc(alias = "gst_gl_shader_set_uniform_4iv")] pub fn set_uniform_4iv(&self, name: &str, value: &[i32]) { let count = value.len() as u32; unsafe { @@ -329,6 +362,7 @@ impl GLShader { } } + #[doc(alias = "gst_gl_shader_use")] pub fn use_(&self) { unsafe { ffi::gst_gl_shader_use(self.to_glib_none().0); @@ -352,6 +386,7 @@ impl GLShader { #[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[doc(alias = "gst_gl_shader_string_fragment_external_oes_get_default")] pub fn string_fragment_external_oes_get_default>( context: &P, version: GLSLVersion, @@ -369,6 +404,7 @@ impl GLShader { #[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[doc(alias = "gst_gl_shader_string_fragment_get_default")] pub fn string_fragment_get_default>( context: &P, version: GLSLVersion, @@ -386,6 +422,7 @@ impl GLShader { #[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[doc(alias = "gst_gl_shader_string_get_highest_precision")] pub fn string_get_highest_precision>( context: &P, version: GLSLVersion, diff --git a/gstreamer-gl/src/auto/gl_upload.rs b/gstreamer-gl/src/auto/gl_upload.rs index 88c77aac9..e25800627 100644 --- a/gstreamer-gl/src/auto/gl_upload.rs +++ b/gstreamer-gl/src/auto/gl_upload.rs @@ -16,11 +16,13 @@ glib::glib_wrapper! { } impl GLUpload { + #[doc(alias = "gst_gl_upload_new")] pub fn new>(context: &P) -> GLUpload { skip_assert_initialized!(); unsafe { from_glib_full(ffi::gst_gl_upload_new(context.as_ref().to_glib_none().0)) } } + #[doc(alias = "gst_gl_upload_get_caps")] pub fn get_caps(&self) -> (gst::Caps, gst::Caps) { unsafe { let mut in_caps = ptr::null_mut(); @@ -30,6 +32,7 @@ impl GLUpload { } } + #[doc(alias = "gst_gl_upload_set_caps")] pub fn set_caps( &self, in_caps: &gst::Caps, @@ -47,6 +50,7 @@ impl GLUpload { } } + #[doc(alias = "gst_gl_upload_set_context")] pub fn set_context>(&self, context: &P) { unsafe { ffi::gst_gl_upload_set_context( @@ -56,6 +60,7 @@ impl GLUpload { } } + #[doc(alias = "gst_gl_upload_transform_caps")] pub fn transform_caps>( &self, context: &P, @@ -74,6 +79,7 @@ impl GLUpload { } } + #[doc(alias = "gst_gl_upload_get_input_template_caps")] pub fn get_input_template_caps() -> gst::Caps { assert_initialized_main_thread!(); unsafe { from_glib_full(ffi::gst_gl_upload_get_input_template_caps()) } diff --git a/gstreamer-gl/src/auto/gl_view_convert.rs b/gstreamer-gl/src/auto/gl_view_convert.rs index de12dd8cd..eeda59f7d 100644 --- a/gstreamer-gl/src/auto/gl_view_convert.rs +++ b/gstreamer-gl/src/auto/gl_view_convert.rs @@ -22,11 +22,13 @@ glib::glib_wrapper! { } impl GLViewConvert { + #[doc(alias = "gst_gl_view_convert_new")] pub fn new() -> GLViewConvert { assert_initialized_main_thread!(); unsafe { from_glib_full(ffi::gst_gl_view_convert_new()) } } + #[doc(alias = "gst_gl_view_convert_perform")] pub fn perform(&self, inbuf: &gst::Buffer) -> Option { unsafe { from_glib_full(ffi::gst_gl_view_convert_perform( @@ -36,12 +38,14 @@ impl GLViewConvert { } } + #[doc(alias = "gst_gl_view_convert_reset")] pub fn reset(&self) { unsafe { ffi::gst_gl_view_convert_reset(self.to_glib_none().0); } } + #[doc(alias = "gst_gl_view_convert_set_caps")] pub fn set_caps( &self, in_caps: &gst::Caps, @@ -59,6 +63,7 @@ impl GLViewConvert { } } + #[doc(alias = "gst_gl_view_convert_set_context")] pub fn set_context>(&self, context: &P) { unsafe { ffi::gst_gl_view_convert_set_context( @@ -68,6 +73,7 @@ impl GLViewConvert { } } + #[doc(alias = "gst_gl_view_convert_transform_caps")] pub fn transform_caps( &self, direction: gst::PadDirection, diff --git a/gstreamer-gl/src/auto/gl_window.rs b/gstreamer-gl/src/auto/gl_window.rs index 5058dc7fb..4a33b353b 100644 --- a/gstreamer-gl/src/auto/gl_window.rs +++ b/gstreamer-gl/src/auto/gl_window.rs @@ -22,6 +22,7 @@ glib::glib_wrapper! { } impl GLWindow { + #[doc(alias = "gst_gl_window_new")] pub fn new>(display: &P) -> GLWindow { skip_assert_initialized!(); unsafe { from_glib_full(ffi::gst_gl_window_new(display.as_ref().to_glib_none().0)) } @@ -36,38 +37,53 @@ pub const NONE_GL_WINDOW: Option<&GLWindow> = None; pub trait GLWindowExt: 'static { #[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[doc(alias = "gst_gl_window_controls_viewport")] fn controls_viewport(&self) -> bool; + #[doc(alias = "gst_gl_window_draw")] fn draw(&self); + #[doc(alias = "gst_gl_window_get_context")] fn get_context(&self) -> Option; + #[doc(alias = "gst_gl_window_get_surface_dimensions")] fn get_surface_dimensions(&self) -> (u32, u32); + #[doc(alias = "gst_gl_window_handle_events")] fn handle_events(&self, handle_events: bool); #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[doc(alias = "gst_gl_window_has_output_surface")] fn has_output_surface(&self) -> bool; + #[doc(alias = "gst_gl_window_queue_resize")] fn queue_resize(&self); + #[doc(alias = "gst_gl_window_quit")] fn quit(&self); + #[doc(alias = "gst_gl_window_resize")] fn resize(&self, width: u32, height: u32); + #[doc(alias = "gst_gl_window_run")] fn run(&self); + #[doc(alias = "gst_gl_window_send_key_event")] fn send_key_event(&self, event_type: &str, key_str: &str); + #[doc(alias = "gst_gl_window_send_mouse_event")] fn send_mouse_event(&self, event_type: &str, button: i32, posx: f64, posy: f64); #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[doc(alias = "gst_gl_window_send_scroll_event")] fn send_scroll_event(&self, posx: f64, posy: f64, delta_x: f64, delta_y: f64); + #[doc(alias = "gst_gl_window_set_preferred_size")] fn set_preferred_size(&self, width: i32, height: i32); + #[doc(alias = "gst_gl_window_set_render_rectangle")] fn set_render_rectangle( &self, x: i32, @@ -76,6 +92,7 @@ pub trait GLWindowExt: 'static { height: i32, ) -> Result<(), glib::error::BoolError>; + #[doc(alias = "gst_gl_window_show")] fn show(&self); fn connect_key_event( diff --git a/gstreamer-gl/src/auto/glsl_stage.rs b/gstreamer-gl/src/auto/glsl_stage.rs index 1b6b7d130..958b93482 100644 --- a/gstreamer-gl/src/auto/glsl_stage.rs +++ b/gstreamer-gl/src/auto/glsl_stage.rs @@ -18,6 +18,7 @@ glib::glib_wrapper! { } impl GLSLStage { + #[doc(alias = "gst_glsl_stage_new")] pub fn new>(context: &P, type_: u32) -> GLSLStage { skip_assert_initialized!(); unsafe { @@ -28,6 +29,7 @@ impl GLSLStage { } } + #[doc(alias = "gst_glsl_stage_new_default_fragment")] pub fn new_default_fragment>(context: &P) -> GLSLStage { skip_assert_initialized!(); unsafe { @@ -37,6 +39,7 @@ impl GLSLStage { } } + #[doc(alias = "gst_glsl_stage_new_default_vertex")] pub fn new_default_vertex>(context: &P) -> GLSLStage { skip_assert_initialized!(); unsafe { @@ -46,6 +49,7 @@ impl GLSLStage { } } + #[doc(alias = "gst_glsl_stage_new_with_string")] pub fn with_string>( context: &P, type_: u32, @@ -65,6 +69,7 @@ impl GLSLStage { } } + #[doc(alias = "gst_glsl_stage_new_with_strings")] pub fn with_strings>( context: &P, type_: u32, @@ -86,6 +91,7 @@ impl GLSLStage { } } + #[doc(alias = "gst_glsl_stage_compile")] pub fn compile(&self) -> Result<(), glib::Error> { unsafe { let mut error = ptr::null_mut(); @@ -98,22 +104,27 @@ impl GLSLStage { } } + #[doc(alias = "gst_glsl_stage_get_handle")] pub fn get_handle(&self) -> u32 { unsafe { ffi::gst_glsl_stage_get_handle(self.to_glib_none().0) } } + #[doc(alias = "gst_glsl_stage_get_profile")] pub fn get_profile(&self) -> GLSLProfile { unsafe { from_glib(ffi::gst_glsl_stage_get_profile(self.to_glib_none().0)) } } + #[doc(alias = "gst_glsl_stage_get_shader_type")] pub fn get_shader_type(&self) -> u32 { unsafe { ffi::gst_glsl_stage_get_shader_type(self.to_glib_none().0) } } + #[doc(alias = "gst_glsl_stage_get_version")] pub fn get_version(&self) -> GLSLVersion { unsafe { from_glib(ffi::gst_glsl_stage_get_version(self.to_glib_none().0)) } } + #[doc(alias = "gst_glsl_stage_set_strings")] pub fn set_strings( &self, version: GLSLVersion, diff --git a/gstreamer-gl/src/auto/versions.txt b/gstreamer-gl/src/auto/versions.txt index ea795c56c..ba6c32af8 100644 --- a/gstreamer-gl/src/auto/versions.txt +++ b/gstreamer-gl/src/auto/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7) -from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9) +Generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf) +from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd) diff --git a/gstreamer-gl/sys/build.rs b/gstreamer-gl/sys/build.rs index beb26524a..4cb086136 100644 --- a/gstreamer-gl/sys/build.rs +++ b/gstreamer-gl/sys/build.rs @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7) -// from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf) +// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd) // DO NOT EDIT #[cfg(not(feature = "dox"))] diff --git a/gstreamer-gl/sys/src/lib.rs b/gstreamer-gl/sys/src/lib.rs index 5c127a1e0..9b3850806 100644 --- a/gstreamer-gl/sys/src/lib.rs +++ b/gstreamer-gl/sys/src/lib.rs @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7) -// from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf) +// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd) // DO NOT EDIT #![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)] diff --git a/gstreamer-gl/sys/tests/abi.rs b/gstreamer-gl/sys/tests/abi.rs index cfbc6850b..daba6e348 100644 --- a/gstreamer-gl/sys/tests/abi.rs +++ b/gstreamer-gl/sys/tests/abi.rs @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7) -// from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf) +// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd) // DO NOT EDIT use gstreamer_gl_sys::*; diff --git a/gstreamer-gl/sys/tests/constant.c b/gstreamer-gl/sys/tests/constant.c index c2ff6ab15..206014da6 100644 --- a/gstreamer-gl/sys/tests/constant.c +++ b/gstreamer-gl/sys/tests/constant.c @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7) -// from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf) +// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-gl/sys/tests/layout.c b/gstreamer-gl/sys/tests/layout.c index 64f4cfb9c..82c774a5d 100644 --- a/gstreamer-gl/sys/tests/layout.c +++ b/gstreamer-gl/sys/tests/layout.c @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7) -// from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf) +// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-gl/wayland/src/auto/gl_display_wayland.rs b/gstreamer-gl/wayland/src/auto/gl_display_wayland.rs index dfed5c20a..a0c0852cf 100644 --- a/gstreamer-gl/wayland/src/auto/gl_display_wayland.rs +++ b/gstreamer-gl/wayland/src/auto/gl_display_wayland.rs @@ -13,11 +13,13 @@ glib::glib_wrapper! { } impl GLDisplayWayland { + #[doc(alias = "gst_gl_display_wayland_new")] pub fn new(name: Option<&str>) -> GLDisplayWayland { assert_initialized_main_thread!(); unsafe { from_glib_full(ffi::gst_gl_display_wayland_new(name.to_glib_none().0)) } } + //#[doc(alias = "gst_gl_display_wayland_new_with_display")] //pub fn with_display(display: /*Unimplemented*/Option) -> GLDisplayWayland { // unsafe { TODO: call ffi:gst_gl_display_wayland_new_with_display() } //} diff --git a/gstreamer-gl/wayland/src/auto/versions.txt b/gstreamer-gl/wayland/src/auto/versions.txt index ea795c56c..ba6c32af8 100644 --- a/gstreamer-gl/wayland/src/auto/versions.txt +++ b/gstreamer-gl/wayland/src/auto/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7) -from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9) +Generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf) +from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd) diff --git a/gstreamer-gl/wayland/sys/build.rs b/gstreamer-gl/wayland/sys/build.rs index beb26524a..4cb086136 100644 --- a/gstreamer-gl/wayland/sys/build.rs +++ b/gstreamer-gl/wayland/sys/build.rs @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7) -// from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf) +// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd) // DO NOT EDIT #[cfg(not(feature = "dox"))] diff --git a/gstreamer-gl/wayland/sys/src/lib.rs b/gstreamer-gl/wayland/sys/src/lib.rs index 5f22ef254..6b596d378 100644 --- a/gstreamer-gl/wayland/sys/src/lib.rs +++ b/gstreamer-gl/wayland/sys/src/lib.rs @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7) -// from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf) +// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd) // DO NOT EDIT #![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)] diff --git a/gstreamer-gl/wayland/sys/tests/abi.rs b/gstreamer-gl/wayland/sys/tests/abi.rs index 083eec67d..7fea0ce78 100644 --- a/gstreamer-gl/wayland/sys/tests/abi.rs +++ b/gstreamer-gl/wayland/sys/tests/abi.rs @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7) -// from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf) +// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd) // DO NOT EDIT use gstreamer_gl_wayland_sys::*; diff --git a/gstreamer-gl/wayland/sys/tests/constant.c b/gstreamer-gl/wayland/sys/tests/constant.c index c2ff6ab15..206014da6 100644 --- a/gstreamer-gl/wayland/sys/tests/constant.c +++ b/gstreamer-gl/wayland/sys/tests/constant.c @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7) -// from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf) +// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-gl/wayland/sys/tests/layout.c b/gstreamer-gl/wayland/sys/tests/layout.c index 64f4cfb9c..82c774a5d 100644 --- a/gstreamer-gl/wayland/sys/tests/layout.c +++ b/gstreamer-gl/wayland/sys/tests/layout.c @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7) -// from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf) +// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-gl/x11/src/auto/gl_display_x11.rs b/gstreamer-gl/x11/src/auto/gl_display_x11.rs index b2f887d1f..4f481eedc 100644 --- a/gstreamer-gl/x11/src/auto/gl_display_x11.rs +++ b/gstreamer-gl/x11/src/auto/gl_display_x11.rs @@ -13,11 +13,13 @@ glib::glib_wrapper! { } impl GLDisplayX11 { + #[doc(alias = "gst_gl_display_x11_new")] pub fn new(name: Option<&str>) -> GLDisplayX11 { assert_initialized_main_thread!(); unsafe { from_glib_full(ffi::gst_gl_display_x11_new(name.to_glib_none().0)) } } + //#[doc(alias = "gst_gl_display_x11_new_with_display")] //pub fn with_display(display: /*Unimplemented*/Fundamental: Pointer) -> GLDisplayX11 { // unsafe { TODO: call ffi:gst_gl_display_x11_new_with_display() } //} diff --git a/gstreamer-gl/x11/src/auto/versions.txt b/gstreamer-gl/x11/src/auto/versions.txt index ea795c56c..ba6c32af8 100644 --- a/gstreamer-gl/x11/src/auto/versions.txt +++ b/gstreamer-gl/x11/src/auto/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7) -from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9) +Generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf) +from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd) diff --git a/gstreamer-gl/x11/sys/build.rs b/gstreamer-gl/x11/sys/build.rs index beb26524a..4cb086136 100644 --- a/gstreamer-gl/x11/sys/build.rs +++ b/gstreamer-gl/x11/sys/build.rs @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7) -// from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf) +// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd) // DO NOT EDIT #[cfg(not(feature = "dox"))] diff --git a/gstreamer-gl/x11/sys/src/lib.rs b/gstreamer-gl/x11/sys/src/lib.rs index de8da31aa..8594c2025 100644 --- a/gstreamer-gl/x11/sys/src/lib.rs +++ b/gstreamer-gl/x11/sys/src/lib.rs @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7) -// from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf) +// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd) // DO NOT EDIT #![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)] diff --git a/gstreamer-gl/x11/sys/tests/abi.rs b/gstreamer-gl/x11/sys/tests/abi.rs index 73c1b9a80..e5267d74b 100644 --- a/gstreamer-gl/x11/sys/tests/abi.rs +++ b/gstreamer-gl/x11/sys/tests/abi.rs @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7) -// from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf) +// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd) // DO NOT EDIT use gstreamer_gl_x11_sys::*; diff --git a/gstreamer-gl/x11/sys/tests/constant.c b/gstreamer-gl/x11/sys/tests/constant.c index c2ff6ab15..206014da6 100644 --- a/gstreamer-gl/x11/sys/tests/constant.c +++ b/gstreamer-gl/x11/sys/tests/constant.c @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7) -// from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf) +// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-gl/x11/sys/tests/layout.c b/gstreamer-gl/x11/sys/tests/layout.c index 64f4cfb9c..82c774a5d 100644 --- a/gstreamer-gl/x11/sys/tests/layout.c +++ b/gstreamer-gl/x11/sys/tests/layout.c @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7) -// from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf) +// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-mpegts/sys/build.rs b/gstreamer-mpegts/sys/build.rs index beb26524a..4cb086136 100644 --- a/gstreamer-mpegts/sys/build.rs +++ b/gstreamer-mpegts/sys/build.rs @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7) -// from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf) +// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd) // DO NOT EDIT #[cfg(not(feature = "dox"))] diff --git a/gstreamer-mpegts/sys/src/lib.rs b/gstreamer-mpegts/sys/src/lib.rs index 0b813632f..a515d5108 100644 --- a/gstreamer-mpegts/sys/src/lib.rs +++ b/gstreamer-mpegts/sys/src/lib.rs @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7) -// from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf) +// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd) // DO NOT EDIT #![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)] diff --git a/gstreamer-mpegts/sys/tests/abi.rs b/gstreamer-mpegts/sys/tests/abi.rs index 71ab2e63a..3d7d665f2 100644 --- a/gstreamer-mpegts/sys/tests/abi.rs +++ b/gstreamer-mpegts/sys/tests/abi.rs @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7) -// from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf) +// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd) // DO NOT EDIT use gstreamer_mpegts_sys::*; diff --git a/gstreamer-mpegts/sys/tests/constant.c b/gstreamer-mpegts/sys/tests/constant.c index c2ff6ab15..206014da6 100644 --- a/gstreamer-mpegts/sys/tests/constant.c +++ b/gstreamer-mpegts/sys/tests/constant.c @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7) -// from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf) +// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-mpegts/sys/tests/layout.c b/gstreamer-mpegts/sys/tests/layout.c index 64f4cfb9c..82c774a5d 100644 --- a/gstreamer-mpegts/sys/tests/layout.c +++ b/gstreamer-mpegts/sys/tests/layout.c @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7) -// from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf) +// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-net/src/auto/versions.txt b/gstreamer-net/src/auto/versions.txt index ea795c56c..ba6c32af8 100644 --- a/gstreamer-net/src/auto/versions.txt +++ b/gstreamer-net/src/auto/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7) -from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9) +Generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf) +from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd) diff --git a/gstreamer-net/sys/build.rs b/gstreamer-net/sys/build.rs index beb26524a..4cb086136 100644 --- a/gstreamer-net/sys/build.rs +++ b/gstreamer-net/sys/build.rs @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7) -// from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf) +// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd) // DO NOT EDIT #[cfg(not(feature = "dox"))] diff --git a/gstreamer-net/sys/src/lib.rs b/gstreamer-net/sys/src/lib.rs index d1269e7b9..27615dcfd 100644 --- a/gstreamer-net/sys/src/lib.rs +++ b/gstreamer-net/sys/src/lib.rs @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7) -// from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf) +// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd) // DO NOT EDIT #![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)] diff --git a/gstreamer-net/sys/tests/abi.rs b/gstreamer-net/sys/tests/abi.rs index 2be818856..8e23c5039 100644 --- a/gstreamer-net/sys/tests/abi.rs +++ b/gstreamer-net/sys/tests/abi.rs @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7) -// from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf) +// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd) // DO NOT EDIT use gstreamer_net_sys::*; diff --git a/gstreamer-net/sys/tests/constant.c b/gstreamer-net/sys/tests/constant.c index c2ff6ab15..206014da6 100644 --- a/gstreamer-net/sys/tests/constant.c +++ b/gstreamer-net/sys/tests/constant.c @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7) -// from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf) +// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-net/sys/tests/layout.c b/gstreamer-net/sys/tests/layout.c index 64f4cfb9c..82c774a5d 100644 --- a/gstreamer-net/sys/tests/layout.c +++ b/gstreamer-net/sys/tests/layout.c @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7) -// from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf) +// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-pbutils/src/auto/discoverer.rs b/gstreamer-pbutils/src/auto/discoverer.rs index a58980a8e..6a2af6e99 100644 --- a/gstreamer-pbutils/src/auto/discoverer.rs +++ b/gstreamer-pbutils/src/auto/discoverer.rs @@ -23,6 +23,7 @@ glib::glib_wrapper! { } impl Discoverer { + #[doc(alias = "gst_discoverer_new")] pub fn new(timeout: gst::ClockTime) -> Result { assert_initialized_main_thread!(); unsafe { @@ -36,6 +37,7 @@ impl Discoverer { } } + #[doc(alias = "gst_discoverer_discover_uri")] pub fn discover_uri(&self, uri: &str) -> Result { unsafe { let mut error = ptr::null_mut(); @@ -52,6 +54,7 @@ impl Discoverer { } } + #[doc(alias = "gst_discoverer_discover_uri_async")] pub fn discover_uri_async(&self, uri: &str) -> Result<(), glib::error::BoolError> { unsafe { glib::glib_result_from_gboolean!( @@ -61,12 +64,14 @@ impl Discoverer { } } + #[doc(alias = "gst_discoverer_start")] pub fn start(&self) { unsafe { ffi::gst_discoverer_start(self.to_glib_none().0); } } + #[doc(alias = "gst_discoverer_stop")] pub fn stop(&self) { unsafe { ffi::gst_discoverer_stop(self.to_glib_none().0); diff --git a/gstreamer-pbutils/src/auto/discoverer_audio_info.rs b/gstreamer-pbutils/src/auto/discoverer_audio_info.rs index 871e77e7e..2b8417d4e 100644 --- a/gstreamer-pbutils/src/auto/discoverer_audio_info.rs +++ b/gstreamer-pbutils/src/auto/discoverer_audio_info.rs @@ -14,24 +14,29 @@ glib::glib_wrapper! { } impl DiscovererAudioInfo { + #[doc(alias = "gst_discoverer_audio_info_get_bitrate")] pub fn get_bitrate(&self) -> u32 { unsafe { ffi::gst_discoverer_audio_info_get_bitrate(self.to_glib_none().0) } } #[cfg(any(feature = "v1_14", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] + #[doc(alias = "gst_discoverer_audio_info_get_channel_mask")] pub fn get_channel_mask(&self) -> u64 { unsafe { ffi::gst_discoverer_audio_info_get_channel_mask(self.to_glib_none().0) } } + #[doc(alias = "gst_discoverer_audio_info_get_channels")] pub fn get_channels(&self) -> u32 { unsafe { ffi::gst_discoverer_audio_info_get_channels(self.to_glib_none().0) } } + #[doc(alias = "gst_discoverer_audio_info_get_depth")] pub fn get_depth(&self) -> u32 { unsafe { ffi::gst_discoverer_audio_info_get_depth(self.to_glib_none().0) } } + #[doc(alias = "gst_discoverer_audio_info_get_language")] pub fn get_language(&self) -> Option { unsafe { from_glib_none(ffi::gst_discoverer_audio_info_get_language( @@ -40,10 +45,12 @@ impl DiscovererAudioInfo { } } + #[doc(alias = "gst_discoverer_audio_info_get_max_bitrate")] pub fn get_max_bitrate(&self) -> u32 { unsafe { ffi::gst_discoverer_audio_info_get_max_bitrate(self.to_glib_none().0) } } + #[doc(alias = "gst_discoverer_audio_info_get_sample_rate")] pub fn get_sample_rate(&self) -> u32 { unsafe { ffi::gst_discoverer_audio_info_get_sample_rate(self.to_glib_none().0) } } diff --git a/gstreamer-pbutils/src/auto/discoverer_container_info.rs b/gstreamer-pbutils/src/auto/discoverer_container_info.rs index e2e02426a..b59abf96b 100644 --- a/gstreamer-pbutils/src/auto/discoverer_container_info.rs +++ b/gstreamer-pbutils/src/auto/discoverer_container_info.rs @@ -14,6 +14,7 @@ glib::glib_wrapper! { } impl DiscovererContainerInfo { + #[doc(alias = "gst_discoverer_container_info_get_streams")] pub fn get_streams(&self) -> Vec { unsafe { FromGlibPtrContainer::from_glib_full(ffi::gst_discoverer_container_info_get_streams( diff --git a/gstreamer-pbutils/src/auto/discoverer_info.rs b/gstreamer-pbutils/src/auto/discoverer_info.rs index b532f3744..e20f99a6a 100644 --- a/gstreamer-pbutils/src/auto/discoverer_info.rs +++ b/gstreamer-pbutils/src/auto/discoverer_info.rs @@ -16,10 +16,12 @@ glib::glib_wrapper! { } impl DiscovererInfo { + #[doc(alias = "gst_discoverer_info_copy")] pub fn copy(&self) -> DiscovererInfo { unsafe { from_glib_full(ffi::gst_discoverer_info_copy(self.to_glib_none().0)) } } + #[doc(alias = "gst_discoverer_info_get_audio_streams")] pub fn get_audio_streams(&self) -> Vec { unsafe { FromGlibPtrContainer::from_glib_full(ffi::gst_discoverer_info_get_audio_streams( @@ -28,6 +30,7 @@ impl DiscovererInfo { } } + #[doc(alias = "gst_discoverer_info_get_container_streams")] pub fn get_container_streams(&self) -> Vec { unsafe { FromGlibPtrContainer::from_glib_full(ffi::gst_discoverer_info_get_container_streams( @@ -36,20 +39,24 @@ impl DiscovererInfo { } } + #[doc(alias = "gst_discoverer_info_get_duration")] pub fn get_duration(&self) -> gst::ClockTime { unsafe { from_glib(ffi::gst_discoverer_info_get_duration(self.to_glib_none().0)) } } #[cfg(any(feature = "v1_14", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] + #[doc(alias = "gst_discoverer_info_get_live")] pub fn get_live(&self) -> bool { unsafe { from_glib(ffi::gst_discoverer_info_get_live(self.to_glib_none().0)) } } + #[doc(alias = "gst_discoverer_info_get_misc")] pub fn get_misc(&self) -> Option { unsafe { from_glib_none(ffi::gst_discoverer_info_get_misc(self.to_glib_none().0)) } } + #[doc(alias = "gst_discoverer_info_get_missing_elements_installer_details")] pub fn get_missing_elements_installer_details(&self) -> Vec { unsafe { FromGlibPtrContainer::from_glib_none( @@ -60,14 +67,17 @@ impl DiscovererInfo { } } + #[doc(alias = "gst_discoverer_info_get_result")] pub fn get_result(&self) -> DiscovererResult { unsafe { from_glib(ffi::gst_discoverer_info_get_result(self.to_glib_none().0)) } } + #[doc(alias = "gst_discoverer_info_get_seekable")] pub fn get_seekable(&self) -> bool { unsafe { from_glib(ffi::gst_discoverer_info_get_seekable(self.to_glib_none().0)) } } + #[doc(alias = "gst_discoverer_info_get_stream_info")] pub fn get_stream_info(&self) -> Option { unsafe { from_glib_full(ffi::gst_discoverer_info_get_stream_info( @@ -76,6 +86,7 @@ impl DiscovererInfo { } } + #[doc(alias = "gst_discoverer_info_get_stream_list")] pub fn get_stream_list(&self) -> Vec { unsafe { FromGlibPtrContainer::from_glib_full(ffi::gst_discoverer_info_get_stream_list( @@ -84,6 +95,7 @@ impl DiscovererInfo { } } + #[doc(alias = "gst_discoverer_info_get_streams")] pub fn get_streams(&self, streamtype: glib::types::Type) -> Vec { unsafe { FromGlibPtrContainer::from_glib_full(ffi::gst_discoverer_info_get_streams( @@ -93,6 +105,7 @@ impl DiscovererInfo { } } + #[doc(alias = "gst_discoverer_info_get_subtitle_streams")] pub fn get_subtitle_streams(&self) -> Vec { unsafe { FromGlibPtrContainer::from_glib_full(ffi::gst_discoverer_info_get_subtitle_streams( @@ -101,18 +114,22 @@ impl DiscovererInfo { } } + #[doc(alias = "gst_discoverer_info_get_tags")] pub fn get_tags(&self) -> Option { unsafe { from_glib_none(ffi::gst_discoverer_info_get_tags(self.to_glib_none().0)) } } + #[doc(alias = "gst_discoverer_info_get_toc")] pub fn get_toc(&self) -> Option { unsafe { from_glib_none(ffi::gst_discoverer_info_get_toc(self.to_glib_none().0)) } } + #[doc(alias = "gst_discoverer_info_get_uri")] pub fn get_uri(&self) -> Option { unsafe { from_glib_none(ffi::gst_discoverer_info_get_uri(self.to_glib_none().0)) } } + #[doc(alias = "gst_discoverer_info_get_video_streams")] pub fn get_video_streams(&self) -> Vec { unsafe { FromGlibPtrContainer::from_glib_full(ffi::gst_discoverer_info_get_video_streams( @@ -121,6 +138,7 @@ impl DiscovererInfo { } } + #[doc(alias = "gst_discoverer_info_to_variant")] pub fn to_variant( &self, flags: DiscovererSerializeFlags, @@ -134,6 +152,7 @@ impl DiscovererInfo { } } + #[doc(alias = "gst_discoverer_info_from_variant")] pub fn from_variant(variant: &glib::Variant) -> Result { assert_initialized_main_thread!(); unsafe { diff --git a/gstreamer-pbutils/src/auto/discoverer_stream_info.rs b/gstreamer-pbutils/src/auto/discoverer_stream_info.rs index 15e515778..ec9de9c58 100644 --- a/gstreamer-pbutils/src/auto/discoverer_stream_info.rs +++ b/gstreamer-pbutils/src/auto/discoverer_stream_info.rs @@ -19,20 +19,28 @@ unsafe impl Sync for DiscovererStreamInfo {} pub const NONE_DISCOVERER_STREAM_INFO: Option<&DiscovererStreamInfo> = None; pub trait DiscovererStreamInfoExt: 'static { + #[doc(alias = "gst_discoverer_stream_info_get_caps")] fn get_caps(&self) -> Option; + #[doc(alias = "gst_discoverer_stream_info_get_misc")] fn get_misc(&self) -> Option; + #[doc(alias = "gst_discoverer_stream_info_get_next")] fn get_next(&self) -> Option; + #[doc(alias = "gst_discoverer_stream_info_get_previous")] fn get_previous(&self) -> Option; + #[doc(alias = "gst_discoverer_stream_info_get_stream_id")] fn get_stream_id(&self) -> Option; + #[doc(alias = "gst_discoverer_stream_info_get_stream_type_nick")] fn get_stream_type_nick(&self) -> glib::GString; + #[doc(alias = "gst_discoverer_stream_info_get_tags")] fn get_tags(&self) -> Option; + #[doc(alias = "gst_discoverer_stream_info_get_toc")] fn get_toc(&self) -> Option; } diff --git a/gstreamer-pbutils/src/auto/discoverer_subtitle_info.rs b/gstreamer-pbutils/src/auto/discoverer_subtitle_info.rs index 139856739..5c784d7ff 100644 --- a/gstreamer-pbutils/src/auto/discoverer_subtitle_info.rs +++ b/gstreamer-pbutils/src/auto/discoverer_subtitle_info.rs @@ -14,6 +14,7 @@ glib::glib_wrapper! { } impl DiscovererSubtitleInfo { + #[doc(alias = "gst_discoverer_subtitle_info_get_language")] pub fn get_language(&self) -> Option { unsafe { from_glib_none(ffi::gst_discoverer_subtitle_info_get_language( diff --git a/gstreamer-pbutils/src/auto/discoverer_video_info.rs b/gstreamer-pbutils/src/auto/discoverer_video_info.rs index 7d97bee85..5312257a6 100644 --- a/gstreamer-pbutils/src/auto/discoverer_video_info.rs +++ b/gstreamer-pbutils/src/auto/discoverer_video_info.rs @@ -14,26 +14,32 @@ glib::glib_wrapper! { } impl DiscovererVideoInfo { + #[doc(alias = "gst_discoverer_video_info_get_bitrate")] pub fn get_bitrate(&self) -> u32 { unsafe { ffi::gst_discoverer_video_info_get_bitrate(self.to_glib_none().0) } } + #[doc(alias = "gst_discoverer_video_info_get_depth")] pub fn get_depth(&self) -> u32 { unsafe { ffi::gst_discoverer_video_info_get_depth(self.to_glib_none().0) } } + #[doc(alias = "gst_discoverer_video_info_get_height")] pub fn get_height(&self) -> u32 { unsafe { ffi::gst_discoverer_video_info_get_height(self.to_glib_none().0) } } + #[doc(alias = "gst_discoverer_video_info_get_max_bitrate")] pub fn get_max_bitrate(&self) -> u32 { unsafe { ffi::gst_discoverer_video_info_get_max_bitrate(self.to_glib_none().0) } } + #[doc(alias = "gst_discoverer_video_info_get_width")] pub fn get_width(&self) -> u32 { unsafe { ffi::gst_discoverer_video_info_get_width(self.to_glib_none().0) } } + #[doc(alias = "gst_discoverer_video_info_is_image")] pub fn is_image(&self) -> bool { unsafe { from_glib(ffi::gst_discoverer_video_info_is_image( @@ -42,6 +48,7 @@ impl DiscovererVideoInfo { } } + #[doc(alias = "gst_discoverer_video_info_is_interlaced")] pub fn is_interlaced(&self) -> bool { unsafe { from_glib(ffi::gst_discoverer_video_info_is_interlaced( diff --git a/gstreamer-pbutils/src/auto/encoding_container_profile.rs b/gstreamer-pbutils/src/auto/encoding_container_profile.rs index 7a471165b..69bccfdbc 100644 --- a/gstreamer-pbutils/src/auto/encoding_container_profile.rs +++ b/gstreamer-pbutils/src/auto/encoding_container_profile.rs @@ -15,6 +15,7 @@ glib::glib_wrapper! { } impl EncodingContainerProfile { + #[doc(alias = "gst_encoding_container_profile_contains_profile")] pub fn contains_profile>(&self, profile: &P) -> bool { unsafe { from_glib(ffi::gst_encoding_container_profile_contains_profile( @@ -24,6 +25,7 @@ impl EncodingContainerProfile { } } + #[doc(alias = "gst_encoding_container_profile_get_profiles")] pub fn get_profiles(&self) -> Vec { unsafe { FromGlibPtrContainer::from_glib_none(ffi::gst_encoding_container_profile_get_profiles( diff --git a/gstreamer-pbutils/src/auto/encoding_profile.rs b/gstreamer-pbutils/src/auto/encoding_profile.rs index 27968f3fd..780630a87 100644 --- a/gstreamer-pbutils/src/auto/encoding_profile.rs +++ b/gstreamer-pbutils/src/auto/encoding_profile.rs @@ -15,6 +15,7 @@ glib::glib_wrapper! { } impl EncodingProfile { + #[doc(alias = "gst_encoding_profile_find")] pub fn find( targetname: &str, profilename: Option<&str>, @@ -30,6 +31,7 @@ impl EncodingProfile { } } + #[doc(alias = "gst_encoding_profile_from_discoverer")] pub fn from_discoverer(info: &DiscovererInfo) -> Result { skip_assert_initialized!(); unsafe { @@ -51,34 +53,48 @@ pub const NONE_ENCODING_PROFILE: Option<&EncodingProfile> = None; pub trait EncodingProfileExt: 'static { #[cfg(any(feature = "v1_12", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] + #[doc(alias = "gst_encoding_profile_copy")] fn copy(&self) -> EncodingProfile; + #[doc(alias = "gst_encoding_profile_get_allow_dynamic_output")] fn get_allow_dynamic_output(&self) -> bool; + #[doc(alias = "gst_encoding_profile_get_description")] fn get_description(&self) -> Option; + #[doc(alias = "gst_encoding_profile_get_file_extension")] fn get_file_extension(&self) -> Option; + #[doc(alias = "gst_encoding_profile_get_format")] fn get_format(&self) -> gst::Caps; + #[doc(alias = "gst_encoding_profile_get_input_caps")] fn get_input_caps(&self) -> gst::Caps; + #[doc(alias = "gst_encoding_profile_get_name")] fn get_name(&self) -> Option; + #[doc(alias = "gst_encoding_profile_get_presence")] fn get_presence(&self) -> u32; + #[doc(alias = "gst_encoding_profile_get_preset")] fn get_preset(&self) -> Option; + #[doc(alias = "gst_encoding_profile_get_preset_name")] fn get_preset_name(&self) -> Option; #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[doc(alias = "gst_encoding_profile_get_single_segment")] fn get_single_segment(&self) -> bool; + #[doc(alias = "gst_encoding_profile_get_type_nick")] fn get_type_nick(&self) -> Option; + #[doc(alias = "gst_encoding_profile_is_enabled")] fn is_enabled(&self) -> bool; + #[doc(alias = "gst_encoding_profile_is_equal")] fn is_equal>(&self, b: &P) -> bool; } diff --git a/gstreamer-pbutils/src/auto/encoding_target.rs b/gstreamer-pbutils/src/auto/encoding_target.rs index 16cddc388..4fdfacc1a 100644 --- a/gstreamer-pbutils/src/auto/encoding_target.rs +++ b/gstreamer-pbutils/src/auto/encoding_target.rs @@ -16,6 +16,7 @@ glib::glib_wrapper! { } impl EncodingTarget { + #[doc(alias = "gst_encoding_target_new")] pub fn new( name: &str, category: &str, @@ -33,10 +34,12 @@ impl EncodingTarget { } } + #[doc(alias = "gst_encoding_target_get_category")] pub fn get_category(&self) -> glib::GString { unsafe { from_glib_none(ffi::gst_encoding_target_get_category(self.to_glib_none().0)) } } + #[doc(alias = "gst_encoding_target_get_description")] pub fn get_description(&self) -> glib::GString { unsafe { from_glib_none(ffi::gst_encoding_target_get_description( @@ -45,16 +48,19 @@ impl EncodingTarget { } } + #[doc(alias = "gst_encoding_target_get_name")] pub fn get_name(&self) -> glib::GString { unsafe { from_glib_none(ffi::gst_encoding_target_get_name(self.to_glib_none().0)) } } #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[doc(alias = "gst_encoding_target_get_path")] pub fn get_path(&self) -> Option { unsafe { from_glib_none(ffi::gst_encoding_target_get_path(self.to_glib_none().0)) } } + #[doc(alias = "gst_encoding_target_get_profile")] pub fn get_profile(&self, name: &str) -> Option { unsafe { from_glib_full(ffi::gst_encoding_target_get_profile( @@ -64,6 +70,7 @@ impl EncodingTarget { } } + #[doc(alias = "gst_encoding_target_get_profiles")] pub fn get_profiles(&self) -> Vec { unsafe { FromGlibPtrContainer::from_glib_none(ffi::gst_encoding_target_get_profiles( @@ -72,6 +79,7 @@ impl EncodingTarget { } } + #[doc(alias = "gst_encoding_target_save")] pub fn save(&self) -> Result<(), glib::Error> { unsafe { let mut error = ptr::null_mut(); @@ -84,6 +92,7 @@ impl EncodingTarget { } } + #[doc(alias = "gst_encoding_target_save_to_file")] pub fn save_to_file>(&self, filepath: P) -> Result<(), glib::Error> { unsafe { let mut error = ptr::null_mut(); @@ -100,6 +109,7 @@ impl EncodingTarget { } } + #[doc(alias = "gst_encoding_target_load")] pub fn load(name: &str, category: Option<&str>) -> Result { assert_initialized_main_thread!(); unsafe { @@ -117,6 +127,7 @@ impl EncodingTarget { } } + #[doc(alias = "gst_encoding_target_load_from_file")] pub fn load_from_file>( filepath: P, ) -> Result { diff --git a/gstreamer-pbutils/src/auto/encoding_video_profile.rs b/gstreamer-pbutils/src/auto/encoding_video_profile.rs index 174b1198d..c0b7e8ae3 100644 --- a/gstreamer-pbutils/src/auto/encoding_video_profile.rs +++ b/gstreamer-pbutils/src/auto/encoding_video_profile.rs @@ -14,10 +14,12 @@ glib::glib_wrapper! { } impl EncodingVideoProfile { + #[doc(alias = "gst_encoding_video_profile_get_pass")] pub fn get_pass(&self) -> u32 { unsafe { ffi::gst_encoding_video_profile_get_pass(self.to_glib_none().0) } } + #[doc(alias = "gst_encoding_video_profile_get_variableframerate")] pub fn get_variableframerate(&self) -> bool { unsafe { from_glib(ffi::gst_encoding_video_profile_get_variableframerate( diff --git a/gstreamer-pbutils/src/auto/enums.rs b/gstreamer-pbutils/src/auto/enums.rs index f433968ab..545f56581 100644 --- a/gstreamer-pbutils/src/auto/enums.rs +++ b/gstreamer-pbutils/src/auto/enums.rs @@ -41,7 +41,7 @@ impl ToGlib for DiscovererResult { #[doc(hidden)] impl FromGlib for DiscovererResult { - fn from_glib(value: ffi::GstDiscovererResult) -> Self { + unsafe fn from_glib(value: ffi::GstDiscovererResult) -> Self { skip_assert_initialized!(); match value { 0 => DiscovererResult::Ok, diff --git a/gstreamer-pbutils/src/auto/flags.rs b/gstreamer-pbutils/src/auto/flags.rs index c304b763e..cfac4f82b 100644 --- a/gstreamer-pbutils/src/auto/flags.rs +++ b/gstreamer-pbutils/src/auto/flags.rs @@ -29,7 +29,7 @@ impl ToGlib for DiscovererSerializeFlags { #[doc(hidden)] impl FromGlib for DiscovererSerializeFlags { - fn from_glib(value: ffi::GstDiscovererSerializeFlags) -> DiscovererSerializeFlags { + unsafe fn from_glib(value: ffi::GstDiscovererSerializeFlags) -> DiscovererSerializeFlags { skip_assert_initialized!(); DiscovererSerializeFlags::from_bits_truncate(value) } diff --git a/gstreamer-pbutils/src/auto/functions.rs b/gstreamer-pbutils/src/auto/functions.rs index 4d8abcacc..4e19fd756 100644 --- a/gstreamer-pbutils/src/auto/functions.rs +++ b/gstreamer-pbutils/src/auto/functions.rs @@ -6,6 +6,7 @@ use crate::EncodingTarget; use glib::translate::*; use std::mem; +#[doc(alias = "gst_encoding_list_all_targets")] pub fn encoding_list_all_targets(categoryname: Option<&str>) -> Vec { assert_initialized_main_thread!(); unsafe { @@ -15,11 +16,13 @@ pub fn encoding_list_all_targets(categoryname: Option<&str>) -> Vec Vec { assert_initialized_main_thread!(); unsafe { FromGlibPtrContainer::from_glib_full(ffi::gst_encoding_list_available_categories()) } } +#[doc(alias = "gst_pb_utils_get_element_description")] pub fn pb_utils_get_element_description( factory_name: &str, ) -> Result { @@ -32,6 +35,7 @@ pub fn pb_utils_get_element_description( } } +#[doc(alias = "gst_pb_utils_get_sink_description")] pub fn pb_utils_get_sink_description(protocol: &str) -> Result { assert_initialized_main_thread!(); unsafe { @@ -42,6 +46,7 @@ pub fn pb_utils_get_sink_description(protocol: &str) -> Result Result { assert_initialized_main_thread!(); unsafe { @@ -52,6 +57,7 @@ pub fn pb_utils_get_source_description(protocol: &str) -> Result (u32, u32, u32, u32) { skip_assert_initialized!(); unsafe { @@ -73,6 +79,7 @@ pub fn plugins_base_version() -> (u32, u32, u32, u32) { } } +#[doc(alias = "gst_plugins_base_version_string")] pub fn plugins_base_version_string() -> glib::GString { skip_assert_initialized!(); unsafe { from_glib_full(ffi::gst_plugins_base_version_string()) } diff --git a/gstreamer-pbutils/src/auto/versions.txt b/gstreamer-pbutils/src/auto/versions.txt index ea795c56c..ba6c32af8 100644 --- a/gstreamer-pbutils/src/auto/versions.txt +++ b/gstreamer-pbutils/src/auto/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7) -from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9) +Generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf) +from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd) diff --git a/gstreamer-pbutils/sys/build.rs b/gstreamer-pbutils/sys/build.rs index beb26524a..4cb086136 100644 --- a/gstreamer-pbutils/sys/build.rs +++ b/gstreamer-pbutils/sys/build.rs @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7) -// from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf) +// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd) // DO NOT EDIT #[cfg(not(feature = "dox"))] diff --git a/gstreamer-pbutils/sys/src/lib.rs b/gstreamer-pbutils/sys/src/lib.rs index 10fbf89e7..99536547d 100644 --- a/gstreamer-pbutils/sys/src/lib.rs +++ b/gstreamer-pbutils/sys/src/lib.rs @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7) -// from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf) +// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd) // DO NOT EDIT #![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)] diff --git a/gstreamer-pbutils/sys/tests/abi.rs b/gstreamer-pbutils/sys/tests/abi.rs index 46e833846..67492dc95 100644 --- a/gstreamer-pbutils/sys/tests/abi.rs +++ b/gstreamer-pbutils/sys/tests/abi.rs @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7) -// from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf) +// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd) // DO NOT EDIT use gstreamer_pbutils_sys::*; diff --git a/gstreamer-pbutils/sys/tests/constant.c b/gstreamer-pbutils/sys/tests/constant.c index c2ff6ab15..206014da6 100644 --- a/gstreamer-pbutils/sys/tests/constant.c +++ b/gstreamer-pbutils/sys/tests/constant.c @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7) -// from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf) +// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-pbutils/sys/tests/layout.c b/gstreamer-pbutils/sys/tests/layout.c index 64f4cfb9c..82c774a5d 100644 --- a/gstreamer-pbutils/sys/tests/layout.c +++ b/gstreamer-pbutils/sys/tests/layout.c @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7) -// from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf) +// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-player/src/auto/enums.rs b/gstreamer-player/src/auto/enums.rs index f433a0274..6a6d4f921 100644 --- a/gstreamer-player/src/auto/enums.rs +++ b/gstreamer-player/src/auto/enums.rs @@ -23,6 +23,7 @@ pub enum PlayerColorBalanceType { } impl PlayerColorBalanceType { + #[doc(alias = "gst_player_color_balance_type_get_name")] pub fn get_name(self) -> Option { assert_initialized_main_thread!(); unsafe { from_glib_none(ffi::gst_player_color_balance_type_get_name(self.to_glib())) } @@ -46,7 +47,7 @@ impl ToGlib for PlayerColorBalanceType { #[doc(hidden)] impl FromGlib for PlayerColorBalanceType { - fn from_glib(value: ffi::GstPlayerColorBalanceType) -> Self { + unsafe fn from_glib(value: ffi::GstPlayerColorBalanceType) -> Self { skip_assert_initialized!(); match value { 3 => PlayerColorBalanceType::Hue, @@ -91,6 +92,7 @@ pub enum PlayerError { } impl PlayerError { + #[doc(alias = "gst_player_error_get_name")] pub fn get_name(self) -> Option { assert_initialized_main_thread!(); unsafe { from_glib_none(ffi::gst_player_error_get_name(self.to_glib())) } @@ -111,7 +113,7 @@ impl ToGlib for PlayerError { #[doc(hidden)] impl FromGlib for PlayerError { - fn from_glib(value: ffi::GstPlayerError) -> Self { + unsafe fn from_glib(value: ffi::GstPlayerError) -> Self { skip_assert_initialized!(); match value { 0 => PlayerError::Failed, @@ -194,7 +196,7 @@ impl ToGlib for PlayerSnapshotFormat { #[doc(hidden)] impl FromGlib for PlayerSnapshotFormat { - fn from_glib(value: ffi::GstPlayerSnapshotFormat) -> Self { + unsafe fn from_glib(value: ffi::GstPlayerSnapshotFormat) -> Self { skip_assert_initialized!(); match value { 0 => PlayerSnapshotFormat::RawNative, @@ -219,6 +221,7 @@ pub enum PlayerState { } impl PlayerState { + #[doc(alias = "gst_player_state_get_name")] pub fn get_name(self) -> Option { assert_initialized_main_thread!(); unsafe { from_glib_none(ffi::gst_player_state_get_name(self.to_glib())) } @@ -242,7 +245,7 @@ impl ToGlib for PlayerState { #[doc(hidden)] impl FromGlib for PlayerState { - fn from_glib(value: ffi::GstPlayerState) -> Self { + unsafe fn from_glib(value: ffi::GstPlayerState) -> Self { skip_assert_initialized!(); match value { 0 => PlayerState::Stopped, diff --git a/gstreamer-player/src/auto/player.rs b/gstreamer-player/src/auto/player.rs index 169caf487..c9a425165 100644 --- a/gstreamer-player/src/auto/player.rs +++ b/gstreamer-player/src/auto/player.rs @@ -27,14 +27,17 @@ glib::glib_wrapper! { } impl Player { + #[doc(alias = "gst_player_get_audio_video_offset")] pub fn get_audio_video_offset(&self) -> i64 { unsafe { ffi::gst_player_get_audio_video_offset(self.to_glib_none().0) } } + #[doc(alias = "gst_player_get_color_balance")] pub fn get_color_balance(&self, type_: PlayerColorBalanceType) -> f64 { unsafe { ffi::gst_player_get_color_balance(self.to_glib_none().0, type_.to_glib()) } } + #[doc(alias = "gst_player_get_current_audio_track")] pub fn get_current_audio_track(&self) -> Option { unsafe { from_glib_full(ffi::gst_player_get_current_audio_track( @@ -43,6 +46,7 @@ impl Player { } } + #[doc(alias = "gst_player_get_current_subtitle_track")] pub fn get_current_subtitle_track(&self) -> Option { unsafe { from_glib_full(ffi::gst_player_get_current_subtitle_track( @@ -51,6 +55,7 @@ impl Player { } } + #[doc(alias = "gst_player_get_current_video_track")] pub fn get_current_video_track(&self) -> Option { unsafe { from_glib_full(ffi::gst_player_get_current_video_track( @@ -59,6 +64,7 @@ impl Player { } } + #[doc(alias = "gst_player_get_current_visualization")] pub fn get_current_visualization(&self) -> Option { unsafe { from_glib_full(ffi::gst_player_get_current_visualization( @@ -67,52 +73,64 @@ impl Player { } } + #[doc(alias = "gst_player_get_duration")] pub fn get_duration(&self) -> gst::ClockTime { unsafe { from_glib(ffi::gst_player_get_duration(self.to_glib_none().0)) } } + #[doc(alias = "gst_player_get_media_info")] pub fn get_media_info(&self) -> Option { unsafe { from_glib_full(ffi::gst_player_get_media_info(self.to_glib_none().0)) } } + #[doc(alias = "gst_player_get_multiview_flags")] pub fn get_multiview_flags(&self) -> gst_video::VideoMultiviewFlags { unsafe { from_glib(ffi::gst_player_get_multiview_flags(self.to_glib_none().0)) } } + #[doc(alias = "gst_player_get_multiview_mode")] pub fn get_multiview_mode(&self) -> gst_video::VideoMultiviewFramePacking { unsafe { from_glib(ffi::gst_player_get_multiview_mode(self.to_glib_none().0)) } } + #[doc(alias = "gst_player_get_mute")] pub fn get_mute(&self) -> bool { unsafe { from_glib(ffi::gst_player_get_mute(self.to_glib_none().0)) } } + #[doc(alias = "gst_player_get_pipeline")] pub fn get_pipeline(&self) -> gst::Element { unsafe { from_glib_full(ffi::gst_player_get_pipeline(self.to_glib_none().0)) } } + #[doc(alias = "gst_player_get_position")] pub fn get_position(&self) -> gst::ClockTime { unsafe { from_glib(ffi::gst_player_get_position(self.to_glib_none().0)) } } + #[doc(alias = "gst_player_get_rate")] pub fn get_rate(&self) -> f64 { unsafe { ffi::gst_player_get_rate(self.to_glib_none().0) } } + #[doc(alias = "gst_player_get_subtitle_uri")] pub fn get_subtitle_uri(&self) -> Option { unsafe { from_glib_full(ffi::gst_player_get_subtitle_uri(self.to_glib_none().0)) } } #[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[doc(alias = "gst_player_get_subtitle_video_offset")] pub fn get_subtitle_video_offset(&self) -> i64 { unsafe { ffi::gst_player_get_subtitle_video_offset(self.to_glib_none().0) } } + #[doc(alias = "gst_player_get_uri")] pub fn get_uri(&self) -> Option { unsafe { from_glib_full(ffi::gst_player_get_uri(self.to_glib_none().0)) } } + #[doc(alias = "gst_player_get_video_snapshot")] pub fn get_video_snapshot( &self, format: PlayerSnapshotFormat, @@ -127,32 +145,38 @@ impl Player { } } + #[doc(alias = "gst_player_get_volume")] pub fn get_volume(&self) -> f64 { unsafe { ffi::gst_player_get_volume(self.to_glib_none().0) } } + #[doc(alias = "gst_player_has_color_balance")] pub fn has_color_balance(&self) -> bool { unsafe { from_glib(ffi::gst_player_has_color_balance(self.to_glib_none().0)) } } + #[doc(alias = "gst_player_pause")] pub fn pause(&self) { unsafe { ffi::gst_player_pause(self.to_glib_none().0); } } + #[doc(alias = "gst_player_play")] pub fn play(&self) { unsafe { ffi::gst_player_play(self.to_glib_none().0); } } + #[doc(alias = "gst_player_seek")] pub fn seek(&self, position: gst::ClockTime) { unsafe { ffi::gst_player_seek(self.to_glib_none().0, position.to_glib()); } } + #[doc(alias = "gst_player_set_audio_track")] pub fn set_audio_track(&self, stream_index: i32) -> Result<(), glib::error::BoolError> { unsafe { glib::glib_result_from_gboolean!( @@ -162,48 +186,56 @@ impl Player { } } + #[doc(alias = "gst_player_set_audio_track_enabled")] pub fn set_audio_track_enabled(&self, enabled: bool) { unsafe { ffi::gst_player_set_audio_track_enabled(self.to_glib_none().0, enabled.to_glib()); } } + #[doc(alias = "gst_player_set_audio_video_offset")] pub fn set_audio_video_offset(&self, offset: i64) { unsafe { ffi::gst_player_set_audio_video_offset(self.to_glib_none().0, offset); } } + #[doc(alias = "gst_player_set_color_balance")] pub fn set_color_balance(&self, type_: PlayerColorBalanceType, value: f64) { unsafe { ffi::gst_player_set_color_balance(self.to_glib_none().0, type_.to_glib(), value); } } + #[doc(alias = "gst_player_set_multiview_flags")] pub fn set_multiview_flags(&self, flags: gst_video::VideoMultiviewFlags) { unsafe { ffi::gst_player_set_multiview_flags(self.to_glib_none().0, flags.to_glib()); } } + #[doc(alias = "gst_player_set_multiview_mode")] pub fn set_multiview_mode(&self, mode: gst_video::VideoMultiviewFramePacking) { unsafe { ffi::gst_player_set_multiview_mode(self.to_glib_none().0, mode.to_glib()); } } + #[doc(alias = "gst_player_set_mute")] pub fn set_mute(&self, val: bool) { unsafe { ffi::gst_player_set_mute(self.to_glib_none().0, val.to_glib()); } } + #[doc(alias = "gst_player_set_rate")] pub fn set_rate(&self, rate: f64) { unsafe { ffi::gst_player_set_rate(self.to_glib_none().0, rate); } } + #[doc(alias = "gst_player_set_subtitle_track")] pub fn set_subtitle_track(&self, stream_index: i32) -> Result<(), glib::error::BoolError> { unsafe { glib::glib_result_from_gboolean!( @@ -213,12 +245,14 @@ impl Player { } } + #[doc(alias = "gst_player_set_subtitle_track_enabled")] pub fn set_subtitle_track_enabled(&self, enabled: bool) { unsafe { ffi::gst_player_set_subtitle_track_enabled(self.to_glib_none().0, enabled.to_glib()); } } + #[doc(alias = "gst_player_set_subtitle_uri")] pub fn set_subtitle_uri(&self, uri: &str) { unsafe { ffi::gst_player_set_subtitle_uri(self.to_glib_none().0, uri.to_glib_none().0); @@ -227,18 +261,21 @@ impl Player { #[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[doc(alias = "gst_player_set_subtitle_video_offset")] pub fn set_subtitle_video_offset(&self, offset: i64) { unsafe { ffi::gst_player_set_subtitle_video_offset(self.to_glib_none().0, offset); } } + #[doc(alias = "gst_player_set_uri")] pub fn set_uri(&self, uri: &str) { unsafe { ffi::gst_player_set_uri(self.to_glib_none().0, uri.to_glib_none().0); } } + #[doc(alias = "gst_player_set_video_track")] pub fn set_video_track(&self, stream_index: i32) -> Result<(), glib::error::BoolError> { unsafe { glib::glib_result_from_gboolean!( @@ -248,12 +285,14 @@ impl Player { } } + #[doc(alias = "gst_player_set_video_track_enabled")] pub fn set_video_track_enabled(&self, enabled: bool) { unsafe { ffi::gst_player_set_video_track_enabled(self.to_glib_none().0, enabled.to_glib()); } } + #[doc(alias = "gst_player_set_visualization")] pub fn set_visualization(&self, name: Option<&str>) -> Result<(), glib::error::BoolError> { unsafe { glib::glib_result_from_gboolean!( @@ -263,18 +302,21 @@ impl Player { } } + #[doc(alias = "gst_player_set_visualization_enabled")] pub fn set_visualization_enabled(&self, enabled: bool) { unsafe { ffi::gst_player_set_visualization_enabled(self.to_glib_none().0, enabled.to_glib()); } } + #[doc(alias = "gst_player_set_volume")] pub fn set_volume(&self, val: f64) { unsafe { ffi::gst_player_set_volume(self.to_glib_none().0, val); } } + #[doc(alias = "gst_player_stop")] pub fn stop(&self) { unsafe { ffi::gst_player_stop(self.to_glib_none().0); @@ -365,6 +407,7 @@ impl Player { } } + #[doc(alias = "gst_player_get_audio_streams")] pub fn get_audio_streams(info: &PlayerMediaInfo) -> Vec { skip_assert_initialized!(); unsafe { @@ -374,6 +417,7 @@ impl Player { } } + #[doc(alias = "gst_player_get_subtitle_streams")] pub fn get_subtitle_streams(info: &PlayerMediaInfo) -> Vec { skip_assert_initialized!(); unsafe { @@ -383,6 +427,7 @@ impl Player { } } + #[doc(alias = "gst_player_get_video_streams")] pub fn get_video_streams(info: &PlayerMediaInfo) -> Vec { skip_assert_initialized!(); unsafe { @@ -392,6 +437,7 @@ impl Player { } } + #[doc(alias = "gst_player_visualizations_get")] pub fn visualizations_get() -> Vec { assert_initialized_main_thread!(); unsafe { FromGlibPtrContainer::from_glib_full(ffi::gst_player_visualizations_get()) } diff --git a/gstreamer-player/src/auto/player_audio_info.rs b/gstreamer-player/src/auto/player_audio_info.rs index 3f7a31d38..3a1b93a75 100644 --- a/gstreamer-player/src/auto/player_audio_info.rs +++ b/gstreamer-player/src/auto/player_audio_info.rs @@ -14,14 +14,17 @@ glib::glib_wrapper! { } impl PlayerAudioInfo { + #[doc(alias = "gst_player_audio_info_get_bitrate")] pub fn get_bitrate(&self) -> i32 { unsafe { ffi::gst_player_audio_info_get_bitrate(self.to_glib_none().0) } } + #[doc(alias = "gst_player_audio_info_get_channels")] pub fn get_channels(&self) -> i32 { unsafe { ffi::gst_player_audio_info_get_channels(self.to_glib_none().0) } } + #[doc(alias = "gst_player_audio_info_get_language")] pub fn get_language(&self) -> Option { unsafe { from_glib_none(ffi::gst_player_audio_info_get_language( @@ -30,10 +33,12 @@ impl PlayerAudioInfo { } } + #[doc(alias = "gst_player_audio_info_get_max_bitrate")] pub fn get_max_bitrate(&self) -> i32 { unsafe { ffi::gst_player_audio_info_get_max_bitrate(self.to_glib_none().0) } } + #[doc(alias = "gst_player_audio_info_get_sample_rate")] pub fn get_sample_rate(&self) -> i32 { unsafe { ffi::gst_player_audio_info_get_sample_rate(self.to_glib_none().0) } } diff --git a/gstreamer-player/src/auto/player_media_info.rs b/gstreamer-player/src/auto/player_media_info.rs index 6319d740b..fd408235c 100644 --- a/gstreamer-player/src/auto/player_media_info.rs +++ b/gstreamer-player/src/auto/player_media_info.rs @@ -17,6 +17,7 @@ glib::glib_wrapper! { } impl PlayerMediaInfo { + #[doc(alias = "gst_player_media_info_get_audio_streams")] pub fn get_audio_streams(&self) -> Vec { unsafe { FromGlibPtrContainer::from_glib_none(ffi::gst_player_media_info_get_audio_streams( @@ -25,6 +26,7 @@ impl PlayerMediaInfo { } } + #[doc(alias = "gst_player_media_info_get_container_format")] pub fn get_container_format(&self) -> Option { unsafe { from_glib_none(ffi::gst_player_media_info_get_container_format( @@ -33,6 +35,7 @@ impl PlayerMediaInfo { } } + #[doc(alias = "gst_player_media_info_get_duration")] pub fn get_duration(&self) -> gst::ClockTime { unsafe { from_glib(ffi::gst_player_media_info_get_duration( @@ -41,6 +44,7 @@ impl PlayerMediaInfo { } } + #[doc(alias = "gst_player_media_info_get_image_sample")] pub fn get_image_sample(&self) -> Option { unsafe { from_glib_none(ffi::gst_player_media_info_get_image_sample( @@ -49,22 +53,27 @@ impl PlayerMediaInfo { } } + #[doc(alias = "gst_player_media_info_get_number_of_audio_streams")] pub fn get_number_of_audio_streams(&self) -> u32 { unsafe { ffi::gst_player_media_info_get_number_of_audio_streams(self.to_glib_none().0) } } + #[doc(alias = "gst_player_media_info_get_number_of_streams")] pub fn get_number_of_streams(&self) -> u32 { unsafe { ffi::gst_player_media_info_get_number_of_streams(self.to_glib_none().0) } } + #[doc(alias = "gst_player_media_info_get_number_of_subtitle_streams")] pub fn get_number_of_subtitle_streams(&self) -> u32 { unsafe { ffi::gst_player_media_info_get_number_of_subtitle_streams(self.to_glib_none().0) } } + #[doc(alias = "gst_player_media_info_get_number_of_video_streams")] pub fn get_number_of_video_streams(&self) -> u32 { unsafe { ffi::gst_player_media_info_get_number_of_video_streams(self.to_glib_none().0) } } + #[doc(alias = "gst_player_media_info_get_stream_list")] pub fn get_stream_list(&self) -> Vec { unsafe { FromGlibPtrContainer::from_glib_none(ffi::gst_player_media_info_get_stream_list( @@ -73,6 +82,7 @@ impl PlayerMediaInfo { } } + #[doc(alias = "gst_player_media_info_get_subtitle_streams")] pub fn get_subtitle_streams(&self) -> Vec { unsafe { FromGlibPtrContainer::from_glib_none(ffi::gst_player_media_info_get_subtitle_streams( @@ -81,18 +91,22 @@ impl PlayerMediaInfo { } } + #[doc(alias = "gst_player_media_info_get_tags")] pub fn get_tags(&self) -> Option { unsafe { from_glib_none(ffi::gst_player_media_info_get_tags(self.to_glib_none().0)) } } + #[doc(alias = "gst_player_media_info_get_title")] pub fn get_title(&self) -> Option { unsafe { from_glib_none(ffi::gst_player_media_info_get_title(self.to_glib_none().0)) } } + #[doc(alias = "gst_player_media_info_get_uri")] pub fn get_uri(&self) -> glib::GString { unsafe { from_glib_none(ffi::gst_player_media_info_get_uri(self.to_glib_none().0)) } } + #[doc(alias = "gst_player_media_info_get_video_streams")] pub fn get_video_streams(&self) -> Vec { unsafe { FromGlibPtrContainer::from_glib_none(ffi::gst_player_media_info_get_video_streams( @@ -101,10 +115,12 @@ impl PlayerMediaInfo { } } + #[doc(alias = "gst_player_media_info_is_live")] pub fn is_live(&self) -> bool { unsafe { from_glib(ffi::gst_player_media_info_is_live(self.to_glib_none().0)) } } + #[doc(alias = "gst_player_media_info_is_seekable")] pub fn is_seekable(&self) -> bool { unsafe { from_glib(ffi::gst_player_media_info_is_seekable( diff --git a/gstreamer-player/src/auto/player_stream_info.rs b/gstreamer-player/src/auto/player_stream_info.rs index ed38c45cf..21051af09 100644 --- a/gstreamer-player/src/auto/player_stream_info.rs +++ b/gstreamer-player/src/auto/player_stream_info.rs @@ -19,14 +19,19 @@ unsafe impl Sync for PlayerStreamInfo {} pub const NONE_PLAYER_STREAM_INFO: Option<&PlayerStreamInfo> = None; pub trait PlayerStreamInfoExt: 'static { + #[doc(alias = "gst_player_stream_info_get_caps")] fn get_caps(&self) -> Option; + #[doc(alias = "gst_player_stream_info_get_codec")] fn get_codec(&self) -> Option; + #[doc(alias = "gst_player_stream_info_get_index")] fn get_index(&self) -> i32; + #[doc(alias = "gst_player_stream_info_get_stream_type")] fn get_stream_type(&self) -> glib::GString; + #[doc(alias = "gst_player_stream_info_get_tags")] fn get_tags(&self) -> Option; } diff --git a/gstreamer-player/src/auto/player_subtitle_info.rs b/gstreamer-player/src/auto/player_subtitle_info.rs index 9afb2787a..e20ebe219 100644 --- a/gstreamer-player/src/auto/player_subtitle_info.rs +++ b/gstreamer-player/src/auto/player_subtitle_info.rs @@ -14,6 +14,7 @@ glib::glib_wrapper! { } impl PlayerSubtitleInfo { + #[doc(alias = "gst_player_subtitle_info_get_language")] pub fn get_language(&self) -> Option { unsafe { from_glib_none(ffi::gst_player_subtitle_info_get_language( diff --git a/gstreamer-player/src/auto/player_video_info.rs b/gstreamer-player/src/auto/player_video_info.rs index 1fde24145..012215d33 100644 --- a/gstreamer-player/src/auto/player_video_info.rs +++ b/gstreamer-player/src/auto/player_video_info.rs @@ -14,18 +14,22 @@ glib::glib_wrapper! { } impl PlayerVideoInfo { + #[doc(alias = "gst_player_video_info_get_bitrate")] pub fn get_bitrate(&self) -> i32 { unsafe { ffi::gst_player_video_info_get_bitrate(self.to_glib_none().0) } } + #[doc(alias = "gst_player_video_info_get_height")] pub fn get_height(&self) -> i32 { unsafe { ffi::gst_player_video_info_get_height(self.to_glib_none().0) } } + #[doc(alias = "gst_player_video_info_get_max_bitrate")] pub fn get_max_bitrate(&self) -> i32 { unsafe { ffi::gst_player_video_info_get_max_bitrate(self.to_glib_none().0) } } + #[doc(alias = "gst_player_video_info_get_width")] pub fn get_width(&self) -> i32 { unsafe { ffi::gst_player_video_info_get_width(self.to_glib_none().0) } } 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 0b4304255..57fb4dedb 100644 --- a/gstreamer-player/src/auto/player_video_overlay_video_renderer.rs +++ b/gstreamer-player/src/auto/player_video_overlay_video_renderer.rs @@ -22,12 +22,14 @@ glib::glib_wrapper! { } impl PlayerVideoOverlayVideoRenderer { + #[doc(alias = "gst_player_video_overlay_video_renderer_expose")] pub fn expose(&self) { unsafe { ffi::gst_player_video_overlay_video_renderer_expose(self.to_glib_none().0); } } + #[doc(alias = "gst_player_video_overlay_video_renderer_get_render_rectangle")] pub fn get_render_rectangle(&self) -> (i32, i32, i32, i32) { unsafe { let mut x = mem::MaybeUninit::uninit(); @@ -49,10 +51,12 @@ impl PlayerVideoOverlayVideoRenderer { } } + //#[doc(alias = "gst_player_video_overlay_video_renderer_get_window_handle")] //pub fn get_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 { ffi::gst_player_video_overlay_video_renderer_set_render_rectangle( @@ -65,6 +69,7 @@ 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() } //} @@ -93,10 +98,12 @@ 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() } //} diff --git a/gstreamer-player/src/auto/versions.txt b/gstreamer-player/src/auto/versions.txt index ea795c56c..ba6c32af8 100644 --- a/gstreamer-player/src/auto/versions.txt +++ b/gstreamer-player/src/auto/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7) -from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9) +Generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf) +from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd) diff --git a/gstreamer-player/sys/build.rs b/gstreamer-player/sys/build.rs index beb26524a..4cb086136 100644 --- a/gstreamer-player/sys/build.rs +++ b/gstreamer-player/sys/build.rs @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7) -// from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf) +// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd) // DO NOT EDIT #[cfg(not(feature = "dox"))] diff --git a/gstreamer-player/sys/src/lib.rs b/gstreamer-player/sys/src/lib.rs index 1a61c9414..ab04204d7 100644 --- a/gstreamer-player/sys/src/lib.rs +++ b/gstreamer-player/sys/src/lib.rs @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7) -// from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf) +// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd) // DO NOT EDIT #![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)] diff --git a/gstreamer-player/sys/tests/abi.rs b/gstreamer-player/sys/tests/abi.rs index d1393c398..7d46c3e79 100644 --- a/gstreamer-player/sys/tests/abi.rs +++ b/gstreamer-player/sys/tests/abi.rs @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7) -// from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf) +// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd) // DO NOT EDIT use gstreamer_player_sys::*; diff --git a/gstreamer-player/sys/tests/constant.c b/gstreamer-player/sys/tests/constant.c index c2ff6ab15..206014da6 100644 --- a/gstreamer-player/sys/tests/constant.c +++ b/gstreamer-player/sys/tests/constant.c @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7) -// from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf) +// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-player/sys/tests/layout.c b/gstreamer-player/sys/tests/layout.c index 64f4cfb9c..82c774a5d 100644 --- a/gstreamer-player/sys/tests/layout.c +++ b/gstreamer-player/sys/tests/layout.c @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7) -// from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf) +// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-rtp/src/auto/enums.rs b/gstreamer-rtp/src/auto/enums.rs index a33889575..c71027502 100644 --- a/gstreamer-rtp/src/auto/enums.rs +++ b/gstreamer-rtp/src/auto/enums.rs @@ -47,7 +47,7 @@ impl ToGlib for RTCPFBType { #[doc(hidden)] impl FromGlib for RTCPFBType { - fn from_glib(value: ffi::GstRTCPFBType) -> Self { + unsafe fn from_glib(value: ffi::GstRTCPFBType) -> Self { skip_assert_initialized!(); match value { 0 => RTCPFBType::FbTypeInvalid, @@ -128,7 +128,7 @@ impl ToGlib for RTCPSDESType { #[doc(hidden)] impl FromGlib for RTCPSDESType { - fn from_glib(value: ffi::GstRTCPSDESType) -> Self { + unsafe fn from_glib(value: ffi::GstRTCPSDESType) -> Self { skip_assert_initialized!(); match value { -1 => RTCPSDESType::Invalid, @@ -208,7 +208,7 @@ impl ToGlib for RTCPType { #[doc(hidden)] impl FromGlib for RTCPType { - fn from_glib(value: ffi::GstRTCPType) -> Self { + unsafe fn from_glib(value: ffi::GstRTCPType) -> Self { skip_assert_initialized!(); match value { 0 => RTCPType::Invalid, @@ -291,7 +291,7 @@ impl ToGlib for RTCPXRType { #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[doc(hidden)] impl FromGlib for RTCPXRType { - fn from_glib(value: ffi::GstRTCPXRType) -> Self { + unsafe fn from_glib(value: ffi::GstRTCPXRType) -> Self { skip_assert_initialized!(); match value { -1 => RTCPXRType::Invalid, @@ -411,7 +411,7 @@ impl ToGlib for RTPPayload { #[doc(hidden)] impl FromGlib for RTPPayload { - fn from_glib(value: ffi::GstRTPPayload) -> Self { + unsafe fn from_glib(value: ffi::GstRTPPayload) -> Self { skip_assert_initialized!(); match value { 0 => RTPPayload::Pcmu, @@ -499,7 +499,7 @@ impl ToGlib for RTPProfile { #[doc(hidden)] impl FromGlib for RTPProfile { - fn from_glib(value: ffi::GstRTPProfile) -> Self { + unsafe fn from_glib(value: ffi::GstRTPProfile) -> Self { skip_assert_initialized!(); match value { 0 => RTPProfile::Unknown, diff --git a/gstreamer-rtp/src/auto/flags.rs b/gstreamer-rtp/src/auto/flags.rs index 14a13e9cf..d820faba3 100644 --- a/gstreamer-rtp/src/auto/flags.rs +++ b/gstreamer-rtp/src/auto/flags.rs @@ -34,7 +34,7 @@ impl ToGlib for RTPBufferFlags { #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] #[doc(hidden)] impl FromGlib for RTPBufferFlags { - fn from_glib(value: ffi::GstRTPBufferFlags) -> RTPBufferFlags { + unsafe fn from_glib(value: ffi::GstRTPBufferFlags) -> RTPBufferFlags { skip_assert_initialized!(); RTPBufferFlags::from_bits_truncate(value) } @@ -89,7 +89,7 @@ impl ToGlib for RTPBufferMapFlags { #[doc(hidden)] impl FromGlib for RTPBufferMapFlags { - fn from_glib(value: ffi::GstRTPBufferMapFlags) -> RTPBufferMapFlags { + unsafe fn from_glib(value: ffi::GstRTPBufferMapFlags) -> RTPBufferMapFlags { skip_assert_initialized!(); RTPBufferMapFlags::from_bits_truncate(value) } diff --git a/gstreamer-rtp/src/auto/functions.rs b/gstreamer-rtp/src/auto/functions.rs index fb4a7ba21..3db7bf7f7 100644 --- a/gstreamer-rtp/src/auto/functions.rs +++ b/gstreamer-rtp/src/auto/functions.rs @@ -7,40 +7,48 @@ use glib::translate::*; //#[cfg(any(feature = "v1_16", feature = "dox"))] //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] +//#[doc(alias = "gst_buffer_add_rtp_source_meta")] //pub fn buffer_add_rtp_source_meta(buffer: &gst::Buffer, ssrc: u32, csrc: u32, csrc_count: u32) -> /*Ignored*/Option { // unsafe { TODO: call ffi:gst_buffer_add_rtp_source_meta() } //} //#[cfg(any(feature = "v1_16", feature = "dox"))] //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] +//#[doc(alias = "gst_buffer_get_rtp_source_meta")] //pub fn buffer_get_rtp_source_meta(buffer: &gst::Buffer) -> /*Ignored*/Option { // unsafe { TODO: call ffi:gst_buffer_get_rtp_source_meta() } //} +#[doc(alias = "gst_rtcp_ntp_to_unix")] pub fn rtcp_ntp_to_unix(ntptime: u64) -> u64 { assert_initialized_main_thread!(); unsafe { ffi::gst_rtcp_ntp_to_unix(ntptime) } } +#[doc(alias = "gst_rtcp_sdes_name_to_type")] pub fn rtcp_sdes_name_to_type(name: &str) -> RTCPSDESType { assert_initialized_main_thread!(); unsafe { from_glib(ffi::gst_rtcp_sdes_name_to_type(name.to_glib_none().0)) } } +#[doc(alias = "gst_rtcp_sdes_type_to_name")] pub fn rtcp_sdes_type_to_name(type_: RTCPSDESType) -> Option { assert_initialized_main_thread!(); unsafe { from_glib_none(ffi::gst_rtcp_sdes_type_to_name(type_.to_glib())) } } +#[doc(alias = "gst_rtcp_unix_to_ntp")] pub fn rtcp_unix_to_ntp(unixtime: u64) -> u64 { assert_initialized_main_thread!(); unsafe { ffi::gst_rtcp_unix_to_ntp(unixtime) } } +//#[doc(alias = "gst_rtp_hdrext_set_ntp_56")] //pub fn rtp_hdrext_set_ntp_56(data: /*Unimplemented*/Option, size: u32, ntptime: u64) -> bool { // unsafe { TODO: call ffi:gst_rtp_hdrext_set_ntp_56() } //} +//#[doc(alias = "gst_rtp_hdrext_set_ntp_64")] //pub fn rtp_hdrext_set_ntp_64(data: /*Unimplemented*/Option, size: u32, ntptime: u64) -> bool { // unsafe { TODO: call ffi:gst_rtp_hdrext_set_ntp_64() } //} diff --git a/gstreamer-rtp/src/auto/versions.txt b/gstreamer-rtp/src/auto/versions.txt index ea795c56c..ba6c32af8 100644 --- a/gstreamer-rtp/src/auto/versions.txt +++ b/gstreamer-rtp/src/auto/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7) -from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9) +Generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf) +from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd) diff --git a/gstreamer-rtp/sys/build.rs b/gstreamer-rtp/sys/build.rs index beb26524a..4cb086136 100644 --- a/gstreamer-rtp/sys/build.rs +++ b/gstreamer-rtp/sys/build.rs @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7) -// from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf) +// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd) // DO NOT EDIT #[cfg(not(feature = "dox"))] diff --git a/gstreamer-rtp/sys/src/lib.rs b/gstreamer-rtp/sys/src/lib.rs index 9f87b62d3..be15c483e 100644 --- a/gstreamer-rtp/sys/src/lib.rs +++ b/gstreamer-rtp/sys/src/lib.rs @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7) -// from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf) +// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd) // DO NOT EDIT #![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)] diff --git a/gstreamer-rtp/sys/tests/abi.rs b/gstreamer-rtp/sys/tests/abi.rs index 17e6eb4d0..200cd7759 100644 --- a/gstreamer-rtp/sys/tests/abi.rs +++ b/gstreamer-rtp/sys/tests/abi.rs @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7) -// from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf) +// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd) // DO NOT EDIT use gstreamer_rtp_sys::*; diff --git a/gstreamer-rtp/sys/tests/constant.c b/gstreamer-rtp/sys/tests/constant.c index c2ff6ab15..206014da6 100644 --- a/gstreamer-rtp/sys/tests/constant.c +++ b/gstreamer-rtp/sys/tests/constant.c @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7) -// from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf) +// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-rtp/sys/tests/layout.c b/gstreamer-rtp/sys/tests/layout.c index 64f4cfb9c..82c774a5d 100644 --- a/gstreamer-rtp/sys/tests/layout.c +++ b/gstreamer-rtp/sys/tests/layout.c @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7) -// from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf) +// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-rtsp-server/src/auto/enums.rs b/gstreamer-rtsp-server/src/auto/enums.rs index a4fa85755..b715c37d7 100644 --- a/gstreamer-rtsp-server/src/auto/enums.rs +++ b/gstreamer-rtsp-server/src/auto/enums.rs @@ -39,7 +39,7 @@ impl ToGlib for RTSPAddressPoolResult { #[doc(hidden)] impl FromGlib for RTSPAddressPoolResult { - fn from_glib(value: ffi::GstRTSPAddressPoolResult) -> Self { + unsafe fn from_glib(value: ffi::GstRTSPAddressPoolResult) -> Self { skip_assert_initialized!(); match value { 0 => RTSPAddressPoolResult::Ok, @@ -78,7 +78,7 @@ impl ToGlib for RTSPFilterResult { #[doc(hidden)] impl FromGlib for RTSPFilterResult { - fn from_glib(value: ffi::GstRTSPFilterResult) -> Self { + unsafe fn from_glib(value: ffi::GstRTSPFilterResult) -> Self { skip_assert_initialized!(); match value { 0 => RTSPFilterResult::Remove, @@ -121,7 +121,7 @@ impl ToGlib for RTSPMediaStatus { #[doc(hidden)] impl FromGlib for RTSPMediaStatus { - fn from_glib(value: ffi::GstRTSPMediaStatus) -> Self { + unsafe fn from_glib(value: ffi::GstRTSPMediaStatus) -> Self { skip_assert_initialized!(); match value { 0 => RTSPMediaStatus::Unprepared, @@ -163,7 +163,7 @@ impl ToGlib for RTSPPublishClockMode { #[doc(hidden)] impl FromGlib for RTSPPublishClockMode { - fn from_glib(value: ffi::GstRTSPPublishClockMode) -> Self { + unsafe fn from_glib(value: ffi::GstRTSPPublishClockMode) -> Self { skip_assert_initialized!(); match value { 0 => RTSPPublishClockMode::None, @@ -224,7 +224,7 @@ impl ToGlib for RTSPSuspendMode { #[doc(hidden)] impl FromGlib for RTSPSuspendMode { - fn from_glib(value: ffi::GstRTSPSuspendMode) -> Self { + unsafe fn from_glib(value: ffi::GstRTSPSuspendMode) -> Self { skip_assert_initialized!(); match value { 0 => RTSPSuspendMode::None, @@ -283,7 +283,7 @@ impl ToGlib for RTSPThreadType { #[doc(hidden)] impl FromGlib for RTSPThreadType { - fn from_glib(value: ffi::GstRTSPThreadType) -> Self { + unsafe fn from_glib(value: ffi::GstRTSPThreadType) -> Self { skip_assert_initialized!(); match value { 0 => RTSPThreadType::Client, diff --git a/gstreamer-rtsp-server/src/auto/flags.rs b/gstreamer-rtsp-server/src/auto/flags.rs index c44c816f7..518b25cd2 100644 --- a/gstreamer-rtsp-server/src/auto/flags.rs +++ b/gstreamer-rtsp-server/src/auto/flags.rs @@ -31,7 +31,7 @@ impl ToGlib for RTSPAddressFlags { #[doc(hidden)] impl FromGlib for RTSPAddressFlags { - fn from_glib(value: ffi::GstRTSPAddressFlags) -> RTSPAddressFlags { + unsafe fn from_glib(value: ffi::GstRTSPAddressFlags) -> RTSPAddressFlags { skip_assert_initialized!(); RTSPAddressFlags::from_bits_truncate(value) } @@ -55,7 +55,7 @@ impl ToGlib for RTSPTransportMode { #[doc(hidden)] impl FromGlib for RTSPTransportMode { - fn from_glib(value: ffi::GstRTSPTransportMode) -> RTSPTransportMode { + unsafe fn from_glib(value: ffi::GstRTSPTransportMode) -> RTSPTransportMode { skip_assert_initialized!(); RTSPTransportMode::from_bits_truncate(value) } diff --git a/gstreamer-rtsp-server/src/auto/rtsp_address_pool.rs b/gstreamer-rtsp-server/src/auto/rtsp_address_pool.rs index 05b7e46b8..3310f85c4 100644 --- a/gstreamer-rtsp-server/src/auto/rtsp_address_pool.rs +++ b/gstreamer-rtsp-server/src/auto/rtsp_address_pool.rs @@ -16,6 +16,7 @@ glib::glib_wrapper! { } impl RTSPAddressPool { + #[doc(alias = "gst_rtsp_address_pool_new")] pub fn new() -> RTSPAddressPool { assert_initialized_main_thread!(); unsafe { from_glib_full(ffi::gst_rtsp_address_pool_new()) } @@ -34,12 +35,14 @@ unsafe impl Sync for RTSPAddressPool {} pub const NONE_RTSP_ADDRESS_POOL: Option<&RTSPAddressPool> = None; pub trait RTSPAddressPoolExt: 'static { + #[doc(alias = "gst_rtsp_address_pool_acquire_address")] fn acquire_address( &self, flags: RTSPAddressFlags, n_ports: i32, ) -> Result; + #[doc(alias = "gst_rtsp_address_pool_add_range")] fn add_range( &self, min_address: &str, @@ -49,10 +52,13 @@ pub trait RTSPAddressPoolExt: 'static { ttl: u8, ) -> Result<(), glib::error::BoolError>; + #[doc(alias = "gst_rtsp_address_pool_clear")] fn clear(&self); + #[doc(alias = "gst_rtsp_address_pool_dump")] fn dump(&self); + #[doc(alias = "gst_rtsp_address_pool_has_unicast_addresses")] fn has_unicast_addresses(&self) -> bool; } diff --git a/gstreamer-rtsp-server/src/auto/rtsp_auth.rs b/gstreamer-rtsp-server/src/auto/rtsp_auth.rs index e429a6e63..c37cb0cde 100644 --- a/gstreamer-rtsp-server/src/auto/rtsp_auth.rs +++ b/gstreamer-rtsp-server/src/auto/rtsp_auth.rs @@ -20,11 +20,13 @@ glib::glib_wrapper! { } impl RTSPAuth { + #[doc(alias = "gst_rtsp_auth_new")] pub fn new() -> RTSPAuth { assert_initialized_main_thread!(); unsafe { from_glib_full(ffi::gst_rtsp_auth_new()) } } + #[doc(alias = "gst_rtsp_auth_check")] pub fn check(check: &str) -> Result<(), glib::error::BoolError> { assert_initialized_main_thread!(); unsafe { @@ -35,6 +37,7 @@ impl RTSPAuth { } } + #[doc(alias = "gst_rtsp_auth_make_basic")] pub fn make_basic(user: &str, pass: &str) -> glib::GString { assert_initialized_main_thread!(); unsafe { @@ -58,50 +61,66 @@ unsafe impl Sync for RTSPAuth {} pub const NONE_RTSP_AUTH: Option<&RTSPAuth> = None; pub trait RTSPAuthExt: 'static { + #[doc(alias = "gst_rtsp_auth_add_basic")] fn add_basic(&self, basic: &str, token: &RTSPToken); #[cfg(any(feature = "v1_12", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] + #[doc(alias = "gst_rtsp_auth_add_digest")] fn add_digest(&self, user: &str, pass: &str, token: &RTSPToken); + #[doc(alias = "gst_rtsp_auth_get_default_token")] fn get_default_token(&self) -> Option; #[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[doc(alias = "gst_rtsp_auth_get_realm")] fn get_realm(&self) -> Option; #[cfg(any(feature = "v1_12", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] + #[doc(alias = "gst_rtsp_auth_get_supported_methods")] fn get_supported_methods(&self) -> gst_rtsp::RTSPAuthMethod; + #[doc(alias = "gst_rtsp_auth_get_tls_authentication_mode")] fn get_tls_authentication_mode(&self) -> gio::TlsAuthenticationMode; + #[doc(alias = "gst_rtsp_auth_get_tls_certificate")] fn get_tls_certificate(&self) -> Option; + #[doc(alias = "gst_rtsp_auth_get_tls_database")] fn get_tls_database(&self) -> Option; #[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[doc(alias = "gst_rtsp_auth_parse_htdigest")] fn parse_htdigest>(&self, path: P, token: &RTSPToken) -> bool; + #[doc(alias = "gst_rtsp_auth_remove_basic")] fn remove_basic(&self, basic: &str); #[cfg(any(feature = "v1_12", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] + #[doc(alias = "gst_rtsp_auth_remove_digest")] fn remove_digest(&self, user: &str); #[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[doc(alias = "gst_rtsp_auth_set_realm")] fn set_realm(&self, realm: &str); #[cfg(any(feature = "v1_12", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] + #[doc(alias = "gst_rtsp_auth_set_supported_methods")] fn set_supported_methods(&self, methods: gst_rtsp::RTSPAuthMethod); + #[doc(alias = "gst_rtsp_auth_set_tls_authentication_mode")] fn set_tls_authentication_mode(&self, mode: gio::TlsAuthenticationMode); + #[doc(alias = "gst_rtsp_auth_set_tls_certificate")] fn set_tls_certificate>(&self, cert: Option<&P>); + #[doc(alias = "gst_rtsp_auth_set_tls_database")] fn set_tls_database>(&self, database: Option<&P>); fn connect_accept_certificate< diff --git a/gstreamer-rtsp-server/src/auto/rtsp_client.rs b/gstreamer-rtsp-server/src/auto/rtsp_client.rs index e5e09605e..ee7de6bca 100644 --- a/gstreamer-rtsp-server/src/auto/rtsp_client.rs +++ b/gstreamer-rtsp-server/src/auto/rtsp_client.rs @@ -30,6 +30,7 @@ glib::glib_wrapper! { } impl RTSPClient { + #[doc(alias = "gst_rtsp_client_new")] pub fn new() -> RTSPClient { assert_initialized_main_thread!(); unsafe { from_glib_full(ffi::gst_rtsp_client_new()) } @@ -48,53 +49,72 @@ unsafe impl Sync for RTSPClient {} pub const NONE_RTSP_CLIENT: Option<&RTSPClient> = None; pub trait RTSPClientExt: 'static { + #[doc(alias = "gst_rtsp_client_close")] fn close(&self); + #[doc(alias = "gst_rtsp_client_get_auth")] fn get_auth(&self) -> Option; + //#[doc(alias = "gst_rtsp_client_get_connection")] //fn get_connection(&self) -> /*Ignored*/Option; #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[doc(alias = "gst_rtsp_client_get_content_length_limit")] fn get_content_length_limit(&self) -> u32; + #[doc(alias = "gst_rtsp_client_get_mount_points")] fn get_mount_points(&self) -> Option; + #[doc(alias = "gst_rtsp_client_get_session_pool")] fn get_session_pool(&self) -> Option; #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[doc(alias = "gst_rtsp_client_get_stream_transport")] fn get_stream_transport(&self, channel: u8) -> Option; + #[doc(alias = "gst_rtsp_client_get_thread_pool")] fn get_thread_pool(&self) -> Option; + //#[doc(alias = "gst_rtsp_client_handle_message")] //fn handle_message(&self, message: /*Ignored*/&mut gst_rtsp::RTSPMessage) -> gst_rtsp::RTSPResult; + //#[doc(alias = "gst_rtsp_client_send_message")] //fn send_message>(&self, session: Option<&P>, message: /*Ignored*/&mut gst_rtsp::RTSPMessage) -> gst_rtsp::RTSPResult; + #[doc(alias = "gst_rtsp_client_session_filter")] fn session_filter( &self, func: Option<&mut dyn (FnMut(&RTSPClient, &RTSPSession) -> RTSPFilterResult)>, ) -> Vec; + #[doc(alias = "gst_rtsp_client_set_auth")] fn set_auth>(&self, auth: Option<&P>); + //#[doc(alias = "gst_rtsp_client_set_connection")] //fn set_connection(&self, conn: /*Ignored*/&mut gst_rtsp::RTSPConnection) -> bool; #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[doc(alias = "gst_rtsp_client_set_content_length_limit")] fn set_content_length_limit(&self, limit: u32); + #[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")] //fn set_send_messages_func(&self, func: /*Unimplemented*/Fn(&RTSPClient, /*Ignored*/gst_rtsp::RTSPMessage, u32, bool) -> bool, user_data: /*Unimplemented*/Option); + #[doc(alias = "gst_rtsp_client_set_session_pool")] fn set_session_pool>(&self, pool: Option<&P>); + #[doc(alias = "gst_rtsp_client_set_thread_pool")] fn set_thread_pool>(&self, pool: Option<&P>); fn get_property_drop_backlog(&self) -> bool; diff --git a/gstreamer-rtsp-server/src/auto/rtsp_media.rs b/gstreamer-rtsp-server/src/auto/rtsp_media.rs index 33ed721be..3fad0bc7e 100644 --- a/gstreamer-rtsp-server/src/auto/rtsp_media.rs +++ b/gstreamer-rtsp-server/src/auto/rtsp_media.rs @@ -31,6 +31,7 @@ glib::glib_wrapper! { } impl RTSPMedia { + #[doc(alias = "gst_rtsp_media_new")] pub fn new>(element: &P) -> RTSPMedia { assert_initialized_main_thread!(); unsafe { from_glib_full(ffi::gst_rtsp_media_new(element.as_ref().to_glib_full())) } @@ -43,190 +44,262 @@ unsafe impl Sync for RTSPMedia {} pub const NONE_RTSP_MEDIA: Option<&RTSPMedia> = None; pub trait RTSPMediaExt: 'static { + #[doc(alias = "gst_rtsp_media_collect_streams")] fn collect_streams(&self); //#[cfg(any(feature = "v1_14", feature = "dox"))] //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] + //#[doc(alias = "gst_rtsp_media_complete_pipeline")] //fn complete_pipeline(&self, transports: /*Ignored*/&[&gst_rtsp::RTSPTransport]) -> bool; + #[doc(alias = "gst_rtsp_media_create_stream")] fn create_stream, Q: IsA>( &self, payloader: &P, pad: &Q, ) -> Option; + #[doc(alias = "gst_rtsp_media_find_stream")] fn find_stream(&self, control: &str) -> Option; + #[doc(alias = "gst_rtsp_media_get_address_pool")] fn get_address_pool(&self) -> Option; + #[doc(alias = "gst_rtsp_media_get_base_time")] fn get_base_time(&self) -> gst::ClockTime; + #[doc(alias = "gst_rtsp_media_get_buffer_size")] fn get_buffer_size(&self) -> u32; + #[doc(alias = "gst_rtsp_media_get_clock")] fn get_clock(&self) -> Option; #[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[doc(alias = "gst_rtsp_media_get_do_retransmission")] fn get_do_retransmission(&self) -> bool; #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[doc(alias = "gst_rtsp_media_get_dscp_qos")] fn get_dscp_qos(&self) -> i32; + #[doc(alias = "gst_rtsp_media_get_element")] fn get_element(&self) -> Option; + #[doc(alias = "gst_rtsp_media_get_latency")] fn get_latency(&self) -> u32; #[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[doc(alias = "gst_rtsp_media_get_max_mcast_ttl")] fn get_max_mcast_ttl(&self) -> u32; + #[doc(alias = "gst_rtsp_media_get_multicast_iface")] fn get_multicast_iface(&self) -> Option; + //#[doc(alias = "gst_rtsp_media_get_permissions")] //fn get_permissions(&self) -> /*Ignored*/Option; + #[doc(alias = "gst_rtsp_media_get_profiles")] fn get_profiles(&self) -> gst_rtsp::RTSPProfile; + #[doc(alias = "gst_rtsp_media_get_protocols")] fn get_protocols(&self) -> gst_rtsp::RTSPLowerTrans; + #[doc(alias = "gst_rtsp_media_get_publish_clock_mode")] fn get_publish_clock_mode(&self) -> RTSPPublishClockMode; + #[doc(alias = "gst_rtsp_media_get_range_string")] fn get_range_string(&self, play: bool, unit: gst_rtsp::RTSPRangeUnit) -> Option; #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[doc(alias = "gst_rtsp_media_get_rate_control")] fn get_rate_control(&self) -> bool; #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[doc(alias = "gst_rtsp_media_get_rates")] fn get_rates(&self) -> Option<(f64, f64)>; + #[doc(alias = "gst_rtsp_media_get_retransmission_time")] fn get_retransmission_time(&self) -> gst::ClockTime; + #[doc(alias = "gst_rtsp_media_get_status")] fn get_status(&self) -> RTSPMediaStatus; + #[doc(alias = "gst_rtsp_media_get_stream")] fn get_stream(&self, idx: u32) -> Option; + #[doc(alias = "gst_rtsp_media_get_suspend_mode")] fn get_suspend_mode(&self) -> RTSPSuspendMode; + //#[doc(alias = "gst_rtsp_media_get_time_provider")] //fn get_time_provider(&self, address: Option<&str>, port: u16) -> /*Ignored*/Option; + #[doc(alias = "gst_rtsp_media_get_transport_mode")] fn get_transport_mode(&self) -> RTSPTransportMode; + //#[doc(alias = "gst_rtsp_media_handle_sdp")] //fn handle_sdp(&self, sdp: /*Ignored*/&mut gst_sdp::SDPMessage) -> bool; #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[doc(alias = "gst_rtsp_media_has_completed_sender")] fn has_completed_sender(&self) -> bool; #[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[doc(alias = "gst_rtsp_media_is_bind_mcast_address")] fn is_bind_mcast_address(&self) -> bool; + #[doc(alias = "gst_rtsp_media_is_eos_shutdown")] fn is_eos_shutdown(&self) -> bool; #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[doc(alias = "gst_rtsp_media_is_receive_only")] fn is_receive_only(&self) -> bool; + #[doc(alias = "gst_rtsp_media_is_reusable")] fn is_reusable(&self) -> bool; + #[doc(alias = "gst_rtsp_media_is_shared")] fn is_shared(&self) -> bool; + #[doc(alias = "gst_rtsp_media_is_stop_on_disconnect")] fn is_stop_on_disconnect(&self) -> bool; + #[doc(alias = "gst_rtsp_media_is_time_provider")] fn is_time_provider(&self) -> bool; #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[doc(alias = "gst_rtsp_media_lock")] fn lock(&self); + #[doc(alias = "gst_rtsp_media_n_streams")] fn n_streams(&self) -> u32; + #[doc(alias = "gst_rtsp_media_prepare")] fn prepare(&self, thread: Option<&RTSPThread>) -> Result<(), glib::error::BoolError>; + //#[doc(alias = "gst_rtsp_media_seek")] //fn seek(&self, range: /*Ignored*/&mut gst_rtsp::RTSPTimeRange) -> bool; //#[cfg(any(feature = "v1_18", feature = "dox"))] //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + //#[doc(alias = "gst_rtsp_media_seek_full")] //fn seek_full(&self, range: /*Ignored*/&mut gst_rtsp::RTSPTimeRange, flags: /*Ignored*/gst::SeekFlags) -> bool; //#[cfg(any(feature = "v1_18", feature = "dox"))] //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + //#[doc(alias = "gst_rtsp_media_seek_trickmode")] //fn seek_trickmode(&self, range: /*Ignored*/&mut gst_rtsp::RTSPTimeRange, flags: /*Ignored*/gst::SeekFlags, rate: f64, trickmode_interval: gst::ClockTime) -> bool; //#[cfg(any(feature = "v1_14", feature = "dox"))] //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] + //#[doc(alias = "gst_rtsp_media_seekable")] //fn seekable(&self) -> /*Ignored*/gst::ClockTimeDiff; + #[doc(alias = "gst_rtsp_media_set_address_pool")] fn set_address_pool>(&self, pool: Option<&P>); #[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[doc(alias = "gst_rtsp_media_set_bind_mcast_address")] fn set_bind_mcast_address(&self, bind_mcast_addr: bool); + #[doc(alias = "gst_rtsp_media_set_buffer_size")] fn set_buffer_size(&self, size: u32); + #[doc(alias = "gst_rtsp_media_set_clock")] fn set_clock>(&self, clock: Option<&P>); #[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[doc(alias = "gst_rtsp_media_set_do_retransmission")] fn set_do_retransmission(&self, do_retransmission: bool); #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[doc(alias = "gst_rtsp_media_set_dscp_qos")] fn set_dscp_qos(&self, dscp_qos: i32); + #[doc(alias = "gst_rtsp_media_set_eos_shutdown")] fn set_eos_shutdown(&self, eos_shutdown: bool); + #[doc(alias = "gst_rtsp_media_set_latency")] fn set_latency(&self, latency: u32); #[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[doc(alias = "gst_rtsp_media_set_max_mcast_ttl")] fn set_max_mcast_ttl(&self, ttl: u32) -> bool; + #[doc(alias = "gst_rtsp_media_set_multicast_iface")] fn set_multicast_iface(&self, multicast_iface: Option<&str>); + //#[doc(alias = "gst_rtsp_media_set_permissions")] //fn set_permissions(&self, permissions: /*Ignored*/Option<&mut RTSPPermissions>); + #[doc(alias = "gst_rtsp_media_set_pipeline_state")] fn set_pipeline_state(&self, state: gst::State); + #[doc(alias = "gst_rtsp_media_set_profiles")] fn set_profiles(&self, profiles: gst_rtsp::RTSPProfile); + #[doc(alias = "gst_rtsp_media_set_protocols")] fn set_protocols(&self, protocols: gst_rtsp::RTSPLowerTrans); + #[doc(alias = "gst_rtsp_media_set_publish_clock_mode")] fn set_publish_clock_mode(&self, mode: RTSPPublishClockMode); #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[doc(alias = "gst_rtsp_media_set_rate_control")] fn set_rate_control(&self, enabled: bool); + #[doc(alias = "gst_rtsp_media_set_retransmission_time")] fn set_retransmission_time(&self, time: gst::ClockTime); + #[doc(alias = "gst_rtsp_media_set_reusable")] fn set_reusable(&self, reusable: bool); + #[doc(alias = "gst_rtsp_media_set_shared")] fn set_shared(&self, shared: bool); + #[doc(alias = "gst_rtsp_media_set_state")] fn set_state(&self, state: gst::State, transports: &[RTSPStreamTransport]) -> bool; + #[doc(alias = "gst_rtsp_media_set_stop_on_disconnect")] fn set_stop_on_disconnect(&self, stop_on_disconnect: bool); + #[doc(alias = "gst_rtsp_media_set_suspend_mode")] fn set_suspend_mode(&self, mode: RTSPSuspendMode); + #[doc(alias = "gst_rtsp_media_set_transport_mode")] fn set_transport_mode(&self, mode: RTSPTransportMode); + //#[doc(alias = "gst_rtsp_media_setup_sdp")] //fn setup_sdp(&self, sdp: /*Ignored*/&mut gst_sdp::SDPMessage, info: /*Ignored*/&mut SDPInfo) -> bool; + #[doc(alias = "gst_rtsp_media_suspend")] fn suspend(&self) -> Result<(), glib::error::BoolError>; #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[doc(alias = "gst_rtsp_media_unlock")] fn unlock(&self); + #[doc(alias = "gst_rtsp_media_unprepare")] fn unprepare(&self) -> Result<(), glib::error::BoolError>; + #[doc(alias = "gst_rtsp_media_unsuspend")] fn unsuspend(&self) -> Result<(), glib::error::BoolError>; + #[doc(alias = "gst_rtsp_media_use_time_provider")] fn use_time_provider(&self, time_provider: bool); fn get_property_bind_mcast_address(&self) -> bool; diff --git a/gstreamer-rtsp-server/src/auto/rtsp_media_factory.rs b/gstreamer-rtsp-server/src/auto/rtsp_media_factory.rs index fd53a0028..a7b251714 100644 --- a/gstreamer-rtsp-server/src/auto/rtsp_media_factory.rs +++ b/gstreamer-rtsp-server/src/auto/rtsp_media_factory.rs @@ -25,6 +25,7 @@ glib::glib_wrapper! { } impl RTSPMediaFactory { + #[doc(alias = "gst_rtsp_media_factory_new")] pub fn new() -> RTSPMediaFactory { assert_initialized_main_thread!(); unsafe { from_glib_full(ffi::gst_rtsp_media_factory_new()) } @@ -43,110 +44,155 @@ unsafe impl Sync for RTSPMediaFactory {} pub const NONE_RTSP_MEDIA_FACTORY: Option<&RTSPMediaFactory> = None; pub trait RTSPMediaFactoryExt: 'static { + //#[doc(alias = "gst_rtsp_media_factory_add_role")] //fn add_role(&self, role: &str, fieldname: &str, : /*Unknown conversion*//*Unimplemented*/Fundamental: VarArgs); + #[doc(alias = "gst_rtsp_media_factory_construct")] fn construct(&self, url: &gst_rtsp::RTSPUrl) -> Result; + #[doc(alias = "gst_rtsp_media_factory_create_element")] fn create_element(&self, url: &gst_rtsp::RTSPUrl) -> Result; + #[doc(alias = "gst_rtsp_media_factory_get_address_pool")] fn get_address_pool(&self) -> Option; + #[doc(alias = "gst_rtsp_media_factory_get_buffer_size")] fn get_buffer_size(&self) -> u32; + #[doc(alias = "gst_rtsp_media_factory_get_clock")] fn get_clock(&self) -> Option; #[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[doc(alias = "gst_rtsp_media_factory_get_do_retransmission")] fn get_do_retransmission(&self) -> bool; #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[doc(alias = "gst_rtsp_media_factory_get_dscp_qos")] fn get_dscp_qos(&self) -> i32; + #[doc(alias = "gst_rtsp_media_factory_get_latency")] fn get_latency(&self) -> u32; + #[doc(alias = "gst_rtsp_media_factory_get_launch")] fn get_launch(&self) -> Option; #[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[doc(alias = "gst_rtsp_media_factory_get_max_mcast_ttl")] fn get_max_mcast_ttl(&self) -> u32; + #[doc(alias = "gst_rtsp_media_factory_get_media_gtype")] fn get_media_gtype(&self) -> glib::types::Type; + #[doc(alias = "gst_rtsp_media_factory_get_multicast_iface")] fn get_multicast_iface(&self) -> Option; + //#[doc(alias = "gst_rtsp_media_factory_get_permissions")] //fn get_permissions(&self) -> /*Ignored*/Option; + #[doc(alias = "gst_rtsp_media_factory_get_profiles")] fn get_profiles(&self) -> gst_rtsp::RTSPProfile; + #[doc(alias = "gst_rtsp_media_factory_get_protocols")] fn get_protocols(&self) -> gst_rtsp::RTSPLowerTrans; + #[doc(alias = "gst_rtsp_media_factory_get_publish_clock_mode")] fn get_publish_clock_mode(&self) -> RTSPPublishClockMode; + #[doc(alias = "gst_rtsp_media_factory_get_retransmission_time")] fn get_retransmission_time(&self) -> gst::ClockTime; + #[doc(alias = "gst_rtsp_media_factory_get_suspend_mode")] fn get_suspend_mode(&self) -> RTSPSuspendMode; + #[doc(alias = "gst_rtsp_media_factory_get_transport_mode")] fn get_transport_mode(&self) -> RTSPTransportMode; #[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[doc(alias = "gst_rtsp_media_factory_is_bind_mcast_address")] fn is_bind_mcast_address(&self) -> bool; + #[doc(alias = "gst_rtsp_media_factory_is_eos_shutdown")] fn is_eos_shutdown(&self) -> bool; + #[doc(alias = "gst_rtsp_media_factory_is_shared")] fn is_shared(&self) -> bool; + #[doc(alias = "gst_rtsp_media_factory_is_stop_on_disonnect")] fn is_stop_on_disonnect(&self) -> bool; + #[doc(alias = "gst_rtsp_media_factory_set_address_pool")] fn set_address_pool>(&self, pool: Option<&P>); #[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[doc(alias = "gst_rtsp_media_factory_set_bind_mcast_address")] fn set_bind_mcast_address(&self, bind_mcast_addr: bool); + #[doc(alias = "gst_rtsp_media_factory_set_buffer_size")] fn set_buffer_size(&self, size: u32); + #[doc(alias = "gst_rtsp_media_factory_set_clock")] fn set_clock>(&self, clock: Option<&P>); #[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[doc(alias = "gst_rtsp_media_factory_set_do_retransmission")] fn set_do_retransmission(&self, do_retransmission: bool); #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[doc(alias = "gst_rtsp_media_factory_set_dscp_qos")] fn set_dscp_qos(&self, dscp_qos: i32); + #[doc(alias = "gst_rtsp_media_factory_set_eos_shutdown")] fn set_eos_shutdown(&self, eos_shutdown: bool); + #[doc(alias = "gst_rtsp_media_factory_set_latency")] fn set_latency(&self, latency: u32); + #[doc(alias = "gst_rtsp_media_factory_set_launch")] fn set_launch(&self, launch: &str); #[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[doc(alias = "gst_rtsp_media_factory_set_max_mcast_ttl")] fn set_max_mcast_ttl(&self, ttl: u32) -> bool; + #[doc(alias = "gst_rtsp_media_factory_set_media_gtype")] fn set_media_gtype(&self, media_gtype: glib::types::Type); + #[doc(alias = "gst_rtsp_media_factory_set_multicast_iface")] fn set_multicast_iface(&self, multicast_iface: Option<&str>); + //#[doc(alias = "gst_rtsp_media_factory_set_permissions")] //fn set_permissions(&self, permissions: /*Ignored*/Option<&mut RTSPPermissions>); + #[doc(alias = "gst_rtsp_media_factory_set_profiles")] fn set_profiles(&self, profiles: gst_rtsp::RTSPProfile); + #[doc(alias = "gst_rtsp_media_factory_set_protocols")] fn set_protocols(&self, protocols: gst_rtsp::RTSPLowerTrans); + #[doc(alias = "gst_rtsp_media_factory_set_publish_clock_mode")] fn set_publish_clock_mode(&self, mode: RTSPPublishClockMode); + #[doc(alias = "gst_rtsp_media_factory_set_retransmission_time")] fn set_retransmission_time(&self, time: gst::ClockTime); + #[doc(alias = "gst_rtsp_media_factory_set_shared")] fn set_shared(&self, shared: bool); + #[doc(alias = "gst_rtsp_media_factory_set_stop_on_disconnect")] fn set_stop_on_disconnect(&self, stop_on_disconnect: bool); + #[doc(alias = "gst_rtsp_media_factory_set_suspend_mode")] fn set_suspend_mode(&self, mode: RTSPSuspendMode); + #[doc(alias = "gst_rtsp_media_factory_set_transport_mode")] fn set_transport_mode(&self, mode: RTSPTransportMode); fn get_property_bind_mcast_address(&self) -> bool; diff --git a/gstreamer-rtsp-server/src/auto/rtsp_media_factory_uri.rs b/gstreamer-rtsp-server/src/auto/rtsp_media_factory_uri.rs index 9dfedeb22..3c81ae5bd 100644 --- a/gstreamer-rtsp-server/src/auto/rtsp_media_factory_uri.rs +++ b/gstreamer-rtsp-server/src/auto/rtsp_media_factory_uri.rs @@ -21,6 +21,7 @@ glib::glib_wrapper! { } impl RTSPMediaFactoryURI { + #[doc(alias = "gst_rtsp_media_factory_uri_new")] pub fn new() -> RTSPMediaFactoryURI { assert_initialized_main_thread!(); unsafe { from_glib_full(ffi::gst_rtsp_media_factory_uri_new()) } @@ -39,8 +40,10 @@ unsafe impl Sync for RTSPMediaFactoryURI {} pub const NONE_RTSP_MEDIA_FACTORY_URI: Option<&RTSPMediaFactoryURI> = None; pub trait RTSPMediaFactoryURIExt: 'static { + #[doc(alias = "gst_rtsp_media_factory_uri_get_uri")] fn get_uri(&self) -> Option; + #[doc(alias = "gst_rtsp_media_factory_uri_set_uri")] fn set_uri(&self, uri: &str); fn get_property_use_gstpay(&self) -> bool; diff --git a/gstreamer-rtsp-server/src/auto/rtsp_mount_points.rs b/gstreamer-rtsp-server/src/auto/rtsp_mount_points.rs index a02a8b9ed..9bc7f50df 100644 --- a/gstreamer-rtsp-server/src/auto/rtsp_mount_points.rs +++ b/gstreamer-rtsp-server/src/auto/rtsp_mount_points.rs @@ -16,6 +16,7 @@ glib::glib_wrapper! { } impl RTSPMountPoints { + #[doc(alias = "gst_rtsp_mount_points_new")] pub fn new() -> RTSPMountPoints { assert_initialized_main_thread!(); unsafe { from_glib_full(ffi::gst_rtsp_mount_points_new()) } @@ -34,12 +35,16 @@ unsafe impl Sync for RTSPMountPoints {} pub const NONE_RTSP_MOUNT_POINTS: Option<&RTSPMountPoints> = None; pub trait RTSPMountPointsExt: 'static { + #[doc(alias = "gst_rtsp_mount_points_add_factory")] fn add_factory>(&self, path: &str, factory: &P); + #[doc(alias = "gst_rtsp_mount_points_make_path")] fn make_path(&self, url: &gst_rtsp::RTSPUrl) -> Result; + #[doc(alias = "gst_rtsp_mount_points_match")] fn match_(&self, path: &str) -> (RTSPMediaFactory, i32); + #[doc(alias = "gst_rtsp_mount_points_remove_factory")] fn remove_factory(&self, path: &str); } diff --git a/gstreamer-rtsp-server/src/auto/rtsp_server.rs b/gstreamer-rtsp-server/src/auto/rtsp_server.rs index a41c8445f..7efef01ef 100644 --- a/gstreamer-rtsp-server/src/auto/rtsp_server.rs +++ b/gstreamer-rtsp-server/src/auto/rtsp_server.rs @@ -27,11 +27,13 @@ glib::glib_wrapper! { } impl RTSPServer { + #[doc(alias = "gst_rtsp_server_new")] pub fn new() -> RTSPServer { assert_initialized_main_thread!(); unsafe { from_glib_full(ffi::gst_rtsp_server_new()) } } + #[doc(alias = "gst_rtsp_server_io_func")] pub fn io_func, Q: IsA>( socket: &P, condition: glib::IOCondition, @@ -63,59 +65,80 @@ unsafe impl Sync for RTSPServer {} pub const NONE_RTSP_SERVER: Option<&RTSPServer> = None; pub trait RTSPServerExt: 'static { + #[doc(alias = "gst_rtsp_server_client_filter")] fn client_filter( &self, func: Option<&mut dyn (FnMut(&RTSPServer, &RTSPClient) -> RTSPFilterResult)>, ) -> Vec; + #[doc(alias = "gst_rtsp_server_create_socket")] fn create_socket>( &self, cancellable: Option<&P>, ) -> Result; + #[doc(alias = "gst_rtsp_server_create_source")] fn create_source>( &self, cancellable: Option<&P>, ) -> Result; + #[doc(alias = "gst_rtsp_server_get_address")] fn get_address(&self) -> Option; + #[doc(alias = "gst_rtsp_server_get_auth")] fn get_auth(&self) -> Option; + #[doc(alias = "gst_rtsp_server_get_backlog")] fn get_backlog(&self) -> i32; + #[doc(alias = "gst_rtsp_server_get_bound_port")] fn get_bound_port(&self) -> i32; #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[doc(alias = "gst_rtsp_server_get_content_length_limit")] fn get_content_length_limit(&self) -> u32; + #[doc(alias = "gst_rtsp_server_get_mount_points")] fn get_mount_points(&self) -> Option; + #[doc(alias = "gst_rtsp_server_get_service")] fn get_service(&self) -> Option; + #[doc(alias = "gst_rtsp_server_get_session_pool")] fn get_session_pool(&self) -> Option; + #[doc(alias = "gst_rtsp_server_get_thread_pool")] fn get_thread_pool(&self) -> Option; + #[doc(alias = "gst_rtsp_server_set_address")] fn set_address(&self, address: &str); + #[doc(alias = "gst_rtsp_server_set_auth")] fn set_auth>(&self, auth: Option<&P>); + #[doc(alias = "gst_rtsp_server_set_backlog")] fn set_backlog(&self, backlog: i32); #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[doc(alias = "gst_rtsp_server_set_content_length_limit")] fn set_content_length_limit(&self, limit: u32); + #[doc(alias = "gst_rtsp_server_set_mount_points")] fn set_mount_points>(&self, mounts: Option<&P>); + #[doc(alias = "gst_rtsp_server_set_service")] fn set_service(&self, service: &str); + #[doc(alias = "gst_rtsp_server_set_session_pool")] fn set_session_pool>(&self, pool: Option<&P>); + #[doc(alias = "gst_rtsp_server_set_thread_pool")] fn set_thread_pool>(&self, pool: Option<&P>); + #[doc(alias = "gst_rtsp_server_transfer_connection")] fn transfer_connection>( &self, socket: &P, diff --git a/gstreamer-rtsp-server/src/auto/rtsp_session.rs b/gstreamer-rtsp-server/src/auto/rtsp_session.rs index 2e85d4182..4ac204581 100644 --- a/gstreamer-rtsp-server/src/auto/rtsp_session.rs +++ b/gstreamer-rtsp-server/src/auto/rtsp_session.rs @@ -24,6 +24,7 @@ glib::glib_wrapper! { } impl RTSPSession { + #[doc(alias = "gst_rtsp_session_new")] pub fn new(sessionid: &str) -> RTSPSession { assert_initialized_main_thread!(); unsafe { from_glib_full(ffi::gst_rtsp_session_new(sessionid.to_glib_none().0)) } @@ -36,41 +37,56 @@ unsafe impl Sync for RTSPSession {} pub const NONE_RTSP_SESSION: Option<&RTSPSession> = None; pub trait RTSPSessionExt: 'static { + #[doc(alias = "gst_rtsp_session_allow_expire")] fn allow_expire(&self); + #[doc(alias = "gst_rtsp_session_filter")] fn filter( &self, func: Option<&mut dyn (FnMut(&RTSPSession, &RTSPSessionMedia) -> RTSPFilterResult)>, ) -> Vec; + #[doc(alias = "gst_rtsp_session_get_header")] fn get_header(&self) -> Option; + #[doc(alias = "gst_rtsp_session_get_media")] fn get_media(&self, path: &str) -> (Option, i32); + #[doc(alias = "gst_rtsp_session_get_sessionid")] fn get_sessionid(&self) -> Option; + #[doc(alias = "gst_rtsp_session_get_timeout")] fn get_timeout(&self) -> u32; + //#[doc(alias = "gst_rtsp_session_is_expired")] //fn is_expired(&self, now: /*Ignored*/&mut glib::TimeVal) -> bool; + #[doc(alias = "gst_rtsp_session_is_expired_usec")] fn is_expired_usec(&self, now: i64) -> bool; + #[doc(alias = "gst_rtsp_session_manage_media")] fn manage_media>( &self, path: &str, media: &P, ) -> Result; + //#[doc(alias = "gst_rtsp_session_next_timeout")] //fn next_timeout(&self, now: /*Ignored*/&mut glib::TimeVal) -> i32; + #[doc(alias = "gst_rtsp_session_next_timeout_usec")] fn next_timeout_usec(&self, now: i64) -> i32; + #[doc(alias = "gst_rtsp_session_prevent_expire")] fn prevent_expire(&self); + #[doc(alias = "gst_rtsp_session_release_media")] fn release_media>(&self, media: &P) -> bool; + #[doc(alias = "gst_rtsp_session_set_timeout")] fn set_timeout(&self, timeout: u32); + #[doc(alias = "gst_rtsp_session_touch")] fn touch(&self); fn get_property_extra_timeout(&self) -> u32; diff --git a/gstreamer-rtsp-server/src/auto/rtsp_session_media.rs b/gstreamer-rtsp-server/src/auto/rtsp_session_media.rs index 6e084f8aa..3f987a0e6 100644 --- a/gstreamer-rtsp-server/src/auto/rtsp_session_media.rs +++ b/gstreamer-rtsp-server/src/auto/rtsp_session_media.rs @@ -17,6 +17,7 @@ glib::glib_wrapper! { } impl RTSPSessionMedia { + #[doc(alias = "gst_rtsp_session_media_new")] pub fn new>(path: &str, media: &P) -> RTSPSessionMedia { skip_assert_initialized!(); unsafe { @@ -34,28 +35,39 @@ unsafe impl Sync for RTSPSessionMedia {} pub const NONE_RTSP_SESSION_MEDIA: Option<&RTSPSessionMedia> = None; pub trait RTSPSessionMediaExt: 'static { + //#[doc(alias = "gst_rtsp_session_media_alloc_channels")] //fn alloc_channels(&self, range: /*Ignored*/gst_rtsp::RTSPRange) -> bool; + #[doc(alias = "gst_rtsp_session_media_get_base_time")] fn get_base_time(&self) -> gst::ClockTime; + #[doc(alias = "gst_rtsp_session_media_get_media")] fn get_media(&self) -> Option; + #[doc(alias = "gst_rtsp_session_media_get_rtpinfo")] fn get_rtpinfo(&self) -> Option; + //#[doc(alias = "gst_rtsp_session_media_get_rtsp_state")] //fn get_rtsp_state(&self) -> /*Ignored*/gst_rtsp::RTSPState; + #[doc(alias = "gst_rtsp_session_media_get_transport")] fn get_transport(&self, idx: u32) -> Option; #[cfg(any(feature = "v1_14", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] + #[doc(alias = "gst_rtsp_session_media_get_transports")] fn get_transports(&self) -> Vec; + #[doc(alias = "gst_rtsp_session_media_matches")] fn matches(&self, path: &str) -> Option; + //#[doc(alias = "gst_rtsp_session_media_set_rtsp_state")] //fn set_rtsp_state(&self, state: /*Ignored*/gst_rtsp::RTSPState); + #[doc(alias = "gst_rtsp_session_media_set_state")] fn set_state(&self, state: gst::State) -> Result<(), glib::error::BoolError>; + //#[doc(alias = "gst_rtsp_session_media_set_transport")] //fn set_transport>(&self, stream: &P, tr: /*Ignored*/&mut gst_rtsp::RTSPTransport) -> Option; } diff --git a/gstreamer-rtsp-server/src/auto/rtsp_session_pool.rs b/gstreamer-rtsp-server/src/auto/rtsp_session_pool.rs index eaf925649..af4fa00d1 100644 --- a/gstreamer-rtsp-server/src/auto/rtsp_session_pool.rs +++ b/gstreamer-rtsp-server/src/auto/rtsp_session_pool.rs @@ -21,6 +21,7 @@ glib::glib_wrapper! { } impl RTSPSessionPool { + #[doc(alias = "gst_rtsp_session_pool_new")] pub fn new() -> RTSPSessionPool { assert_initialized_main_thread!(); unsafe { from_glib_full(ffi::gst_rtsp_session_pool_new()) } @@ -39,23 +40,31 @@ unsafe impl Sync for RTSPSessionPool {} pub const NONE_RTSP_SESSION_POOL: Option<&RTSPSessionPool> = None; pub trait RTSPSessionPoolExt: 'static { + #[doc(alias = "gst_rtsp_session_pool_cleanup")] fn cleanup(&self) -> u32; + #[doc(alias = "gst_rtsp_session_pool_create")] fn create(&self) -> Result; + #[doc(alias = "gst_rtsp_session_pool_filter")] fn filter( &self, func: Option<&mut dyn (FnMut(&RTSPSessionPool, &RTSPSession) -> RTSPFilterResult)>, ) -> Vec; + #[doc(alias = "gst_rtsp_session_pool_find")] fn find(&self, sessionid: &str) -> Option; + #[doc(alias = "gst_rtsp_session_pool_get_max_sessions")] fn get_max_sessions(&self) -> u32; + #[doc(alias = "gst_rtsp_session_pool_get_n_sessions")] fn get_n_sessions(&self) -> u32; + #[doc(alias = "gst_rtsp_session_pool_remove")] fn remove>(&self, sess: &P) -> Result<(), glib::error::BoolError>; + #[doc(alias = "gst_rtsp_session_pool_set_max_sessions")] fn set_max_sessions(&self, max: u32); fn connect_session_removed( diff --git a/gstreamer-rtsp-server/src/auto/rtsp_stream.rs b/gstreamer-rtsp-server/src/auto/rtsp_stream.rs index 6609286e7..c66000bd9 100644 --- a/gstreamer-rtsp-server/src/auto/rtsp_stream.rs +++ b/gstreamer-rtsp-server/src/auto/rtsp_stream.rs @@ -25,6 +25,7 @@ glib::glib_wrapper! { } impl RTSPStream { + #[doc(alias = "gst_rtsp_stream_new")] pub fn new, Q: IsA>( idx: u32, payloader: &P, @@ -49,6 +50,7 @@ pub const NONE_RTSP_STREAM: Option<&RTSPStream> = None; pub trait RTSPStreamExt: 'static { #[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[doc(alias = "gst_rtsp_stream_add_multicast_client_address")] fn add_multicast_client_address( &self, destination: &str, @@ -57,129 +59,177 @@ pub trait RTSPStreamExt: 'static { family: gio::SocketFamily, ) -> bool; + #[doc(alias = "gst_rtsp_stream_add_transport")] fn add_transport>( &self, trans: &P, ) -> Result<(), glib::error::BoolError>; + //#[doc(alias = "gst_rtsp_stream_allocate_udp_sockets")] //fn allocate_udp_sockets(&self, family: gio::SocketFamily, transport: /*Ignored*/&mut gst_rtsp::RTSPTransport, use_client_settings: bool) -> bool; //#[cfg(any(feature = "v1_14", feature = "dox"))] //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] + //#[doc(alias = "gst_rtsp_stream_complete_stream")] //fn complete_stream(&self, transport: /*Ignored*/&gst_rtsp::RTSPTransport) -> bool; + #[doc(alias = "gst_rtsp_stream_get_address_pool")] fn get_address_pool(&self) -> Option; + #[doc(alias = "gst_rtsp_stream_get_buffer_size")] fn get_buffer_size(&self) -> u32; + #[doc(alias = "gst_rtsp_stream_get_caps")] fn get_caps(&self) -> Option; + #[doc(alias = "gst_rtsp_stream_get_control")] fn get_control(&self) -> Option; + #[doc(alias = "gst_rtsp_stream_get_current_seqnum")] fn get_current_seqnum(&self) -> u16; + #[doc(alias = "gst_rtsp_stream_get_dscp_qos")] fn get_dscp_qos(&self) -> i32; + #[doc(alias = "gst_rtsp_stream_get_index")] fn get_index(&self) -> u32; + #[doc(alias = "gst_rtsp_stream_get_joined_bin")] fn get_joined_bin(&self) -> Option; #[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[doc(alias = "gst_rtsp_stream_get_max_mcast_ttl")] fn get_max_mcast_ttl(&self) -> u32; + #[doc(alias = "gst_rtsp_stream_get_mtu")] fn get_mtu(&self) -> u32; + #[doc(alias = "gst_rtsp_stream_get_multicast_address")] fn get_multicast_address(&self, family: gio::SocketFamily) -> Option; #[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[doc(alias = "gst_rtsp_stream_get_multicast_client_addresses")] fn get_multicast_client_addresses(&self) -> Option; + #[doc(alias = "gst_rtsp_stream_get_multicast_iface")] fn get_multicast_iface(&self) -> Option; + #[doc(alias = "gst_rtsp_stream_get_profiles")] fn get_profiles(&self) -> gst_rtsp::RTSPProfile; + #[doc(alias = "gst_rtsp_stream_get_protocols")] fn get_protocols(&self) -> gst_rtsp::RTSPLowerTrans; + #[doc(alias = "gst_rtsp_stream_get_pt")] fn get_pt(&self) -> u32; + #[doc(alias = "gst_rtsp_stream_get_publish_clock_mode")] fn get_publish_clock_mode(&self) -> RTSPPublishClockMode; #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[doc(alias = "gst_rtsp_stream_get_rate_control")] fn get_rate_control(&self) -> bool; #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[doc(alias = "gst_rtsp_stream_get_rates")] fn get_rates(&self) -> Option<(f64, f64)>; + #[doc(alias = "gst_rtsp_stream_get_retransmission_pt")] fn get_retransmission_pt(&self) -> u32; + #[doc(alias = "gst_rtsp_stream_get_retransmission_time")] fn get_retransmission_time(&self) -> gst::ClockTime; #[cfg(any(feature = "v1_14", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] + #[doc(alias = "gst_rtsp_stream_get_rtcp_multicast_socket")] fn get_rtcp_multicast_socket(&self, family: gio::SocketFamily) -> Option; + #[doc(alias = "gst_rtsp_stream_get_rtcp_socket")] fn get_rtcp_socket(&self, family: gio::SocketFamily) -> Option; + #[doc(alias = "gst_rtsp_stream_get_rtp_multicast_socket")] fn get_rtp_multicast_socket(&self, family: gio::SocketFamily) -> Option; + #[doc(alias = "gst_rtsp_stream_get_rtp_socket")] fn get_rtp_socket(&self, family: gio::SocketFamily) -> Option; + #[doc(alias = "gst_rtsp_stream_get_rtpinfo")] fn get_rtpinfo(&self) -> Option<(u32, u32, u32, gst::ClockTime)>; + #[doc(alias = "gst_rtsp_stream_get_rtpsession")] fn get_rtpsession(&self) -> Option; + //#[doc(alias = "gst_rtsp_stream_get_server_port")] //fn get_server_port(&self, server_port: /*Ignored*/gst_rtsp::RTSPRange, family: gio::SocketFamily); + #[doc(alias = "gst_rtsp_stream_get_sinkpad")] fn get_sinkpad(&self) -> Option; + #[doc(alias = "gst_rtsp_stream_get_srcpad")] fn get_srcpad(&self) -> Option; + #[doc(alias = "gst_rtsp_stream_get_srtp_encoder")] fn get_srtp_encoder(&self) -> Option; + #[doc(alias = "gst_rtsp_stream_get_ssrc")] fn get_ssrc(&self) -> u32; + #[doc(alias = "gst_rtsp_stream_get_ulpfec_enabled")] fn get_ulpfec_enabled(&self) -> bool; #[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[doc(alias = "gst_rtsp_stream_get_ulpfec_percentage")] fn get_ulpfec_percentage(&self) -> u32; #[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[doc(alias = "gst_rtsp_stream_get_ulpfec_pt")] fn get_ulpfec_pt(&self) -> u32; #[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[doc(alias = "gst_rtsp_stream_handle_keymgmt")] fn handle_keymgmt(&self, keymgmt: &str) -> bool; + #[doc(alias = "gst_rtsp_stream_has_control")] fn has_control(&self, control: Option<&str>) -> bool; #[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[doc(alias = "gst_rtsp_stream_is_bind_mcast_address")] fn is_bind_mcast_address(&self) -> bool; + #[doc(alias = "gst_rtsp_stream_is_blocking")] fn is_blocking(&self) -> bool; + #[doc(alias = "gst_rtsp_stream_is_client_side")] fn is_client_side(&self) -> bool; #[cfg(any(feature = "v1_14", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] + #[doc(alias = "gst_rtsp_stream_is_complete")] fn is_complete(&self) -> bool; #[cfg(any(feature = "v1_14", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] + #[doc(alias = "gst_rtsp_stream_is_receiver")] fn is_receiver(&self) -> bool; #[cfg(any(feature = "v1_14", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] + #[doc(alias = "gst_rtsp_stream_is_sender")] fn is_sender(&self) -> bool; + //#[doc(alias = "gst_rtsp_stream_is_transport_supported")] //fn is_transport_supported(&self, transport: /*Ignored*/&mut gst_rtsp::RTSPTransport) -> bool; + #[doc(alias = "gst_rtsp_stream_join_bin")] fn join_bin, Q: IsA>( &self, bin: &P, @@ -187,12 +237,14 @@ pub trait RTSPStreamExt: 'static { state: gst::State, ) -> Result<(), glib::error::BoolError>; + #[doc(alias = "gst_rtsp_stream_leave_bin")] fn leave_bin, Q: IsA>( &self, bin: &P, rtpbin: &Q, ) -> Result<(), glib::error::BoolError>; + #[doc(alias = "gst_rtsp_stream_remove_transport")] fn remove_transport>( &self, trans: &P, @@ -200,12 +252,15 @@ pub trait RTSPStreamExt: 'static { #[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[doc(alias = "gst_rtsp_stream_request_aux_receiver")] fn request_aux_receiver(&self, sessid: u32) -> Option; + #[doc(alias = "gst_rtsp_stream_request_aux_sender")] fn request_aux_sender(&self, sessid: u32) -> Option; #[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[doc(alias = "gst_rtsp_stream_request_ulpfec_decoder")] fn request_ulpfec_decoder>( &self, rtpbin: &P, @@ -214,8 +269,10 @@ pub trait RTSPStreamExt: 'static { #[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[doc(alias = "gst_rtsp_stream_request_ulpfec_encoder")] fn request_ulpfec_encoder(&self, sessid: u32) -> Option; + #[doc(alias = "gst_rtsp_stream_reserve_address")] fn reserve_address( &self, address: &str, @@ -226,65 +283,89 @@ pub trait RTSPStreamExt: 'static { #[cfg(any(feature = "v1_14", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] + #[doc(alias = "gst_rtsp_stream_seekable")] fn seekable(&self) -> bool; + #[doc(alias = "gst_rtsp_stream_set_address_pool")] fn set_address_pool>(&self, pool: Option<&P>); #[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[doc(alias = "gst_rtsp_stream_set_bind_mcast_address")] fn set_bind_mcast_address(&self, bind_mcast_addr: bool); + #[doc(alias = "gst_rtsp_stream_set_blocked")] fn set_blocked(&self, blocked: bool) -> Result<(), glib::error::BoolError>; + #[doc(alias = "gst_rtsp_stream_set_buffer_size")] fn set_buffer_size(&self, size: u32); + #[doc(alias = "gst_rtsp_stream_set_client_side")] fn set_client_side(&self, client_side: bool); + #[doc(alias = "gst_rtsp_stream_set_control")] fn set_control(&self, control: Option<&str>); + #[doc(alias = "gst_rtsp_stream_set_dscp_qos")] fn set_dscp_qos(&self, dscp_qos: i32); #[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[doc(alias = "gst_rtsp_stream_set_max_mcast_ttl")] fn set_max_mcast_ttl(&self, ttl: u32) -> bool; + #[doc(alias = "gst_rtsp_stream_set_mtu")] fn set_mtu(&self, mtu: u32); + #[doc(alias = "gst_rtsp_stream_set_multicast_iface")] fn set_multicast_iface(&self, multicast_iface: Option<&str>); + #[doc(alias = "gst_rtsp_stream_set_profiles")] fn set_profiles(&self, profiles: gst_rtsp::RTSPProfile); + #[doc(alias = "gst_rtsp_stream_set_protocols")] fn set_protocols(&self, protocols: gst_rtsp::RTSPLowerTrans); + #[doc(alias = "gst_rtsp_stream_set_pt_map")] fn set_pt_map(&self, pt: u32, caps: &gst::Caps); + #[doc(alias = "gst_rtsp_stream_set_publish_clock_mode")] fn set_publish_clock_mode(&self, mode: RTSPPublishClockMode); #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[doc(alias = "gst_rtsp_stream_set_rate_control")] fn set_rate_control(&self, enabled: bool); + #[doc(alias = "gst_rtsp_stream_set_retransmission_pt")] fn set_retransmission_pt(&self, rtx_pt: u32); + #[doc(alias = "gst_rtsp_stream_set_retransmission_time")] fn set_retransmission_time(&self, time: gst::ClockTime); + #[doc(alias = "gst_rtsp_stream_set_seqnum_offset")] fn set_seqnum_offset(&self, seqnum: u16); #[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[doc(alias = "gst_rtsp_stream_set_ulpfec_percentage")] fn set_ulpfec_percentage(&self, percentage: u32); #[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[doc(alias = "gst_rtsp_stream_set_ulpfec_pt")] fn set_ulpfec_pt(&self, pt: u32); + #[doc(alias = "gst_rtsp_stream_transport_filter")] fn transport_filter( &self, func: Option<&mut dyn (FnMut(&RTSPStream, &RTSPStreamTransport) -> RTSPFilterResult)>, ) -> Vec; + #[doc(alias = "gst_rtsp_stream_unblock_linked")] fn unblock_linked(&self) -> Result<(), glib::error::BoolError>; + #[doc(alias = "gst_rtsp_stream_update_crypto")] fn update_crypto( &self, ssrc: u32, @@ -293,6 +374,7 @@ pub trait RTSPStreamExt: 'static { #[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[doc(alias = "gst_rtsp_stream_verify_mcast_ttl")] fn verify_mcast_ttl(&self, ttl: u32) -> bool; fn connect_new_rtcp_encoder( diff --git a/gstreamer-rtsp-server/src/auto/rtsp_stream_transport.rs b/gstreamer-rtsp-server/src/auto/rtsp_stream_transport.rs index 05daae8d4..082497d31 100644 --- a/gstreamer-rtsp-server/src/auto/rtsp_stream_transport.rs +++ b/gstreamer-rtsp-server/src/auto/rtsp_stream_transport.rs @@ -16,6 +16,7 @@ glib::glib_wrapper! { } impl RTSPStreamTransport { + //#[doc(alias = "gst_rtsp_stream_transport_new")] //pub fn new>(stream: &P, tr: /*Ignored*/&mut gst_rtsp::RTSPTransport) -> RTSPStreamTransport { // unsafe { TODO: call ffi:gst_rtsp_stream_transport_new() } //} @@ -24,54 +25,74 @@ impl RTSPStreamTransport { pub const NONE_RTSP_STREAM_TRANSPORT: Option<&RTSPStreamTransport> = None; pub trait RTSPStreamTransportExt: 'static { + #[doc(alias = "gst_rtsp_stream_transport_get_rtpinfo")] fn get_rtpinfo(&self, start_time: gst::ClockTime) -> Option; + #[doc(alias = "gst_rtsp_stream_transport_get_stream")] fn get_stream(&self) -> Option; + //#[doc(alias = "gst_rtsp_stream_transport_get_transport")] //fn get_transport(&self) -> /*Ignored*/Option; + #[doc(alias = "gst_rtsp_stream_transport_get_url")] fn get_url(&self) -> Option; + #[doc(alias = "gst_rtsp_stream_transport_is_timed_out")] fn is_timed_out(&self) -> bool; + #[doc(alias = "gst_rtsp_stream_transport_keep_alive")] fn keep_alive(&self); #[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[doc(alias = "gst_rtsp_stream_transport_message_sent")] fn message_sent(&self); + #[doc(alias = "gst_rtsp_stream_transport_send_rtcp")] fn send_rtcp(&self, buffer: &gst::Buffer) -> Result<(), glib::error::BoolError>; //#[cfg(any(feature = "v1_16", feature = "dox"))] //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + //#[doc(alias = "gst_rtsp_stream_transport_send_rtcp_list")] //fn send_rtcp_list(&self, buffer_list: /*Ignored*/&gst::BufferList) -> bool; + #[doc(alias = "gst_rtsp_stream_transport_send_rtp")] fn send_rtp(&self, buffer: &gst::Buffer) -> Result<(), glib::error::BoolError>; //#[cfg(any(feature = "v1_16", feature = "dox"))] //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + //#[doc(alias = "gst_rtsp_stream_transport_send_rtp_list")] //fn send_rtp_list(&self, buffer_list: /*Ignored*/&gst::BufferList) -> bool; + #[doc(alias = "gst_rtsp_stream_transport_set_active")] fn set_active(&self, active: bool) -> Result<(), glib::error::BoolError>; + //#[doc(alias = "gst_rtsp_stream_transport_set_callbacks")] //fn set_callbacks bool + 'static, Q: Fn(&gst::Buffer, u8) -> bool + 'static>(&self, send_rtp: P, send_rtcp: Q); + #[doc(alias = "gst_rtsp_stream_transport_set_keepalive")] fn set_keepalive(&self, keep_alive: P); //#[cfg(any(feature = "v1_16", feature = "dox"))] //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + //#[doc(alias = "gst_rtsp_stream_transport_set_list_callbacks")] //fn set_list_callbacks(&self, send_rtp_list: /*Unimplemented*/Fn(/*Ignored*/gst::BufferList, u8) -> bool, send_rtcp_list: /*Unimplemented*/Fn(/*Ignored*/gst::BufferList, u8) -> bool, user_data: /*Unimplemented*/Option); + #[doc(alias = "gst_rtsp_stream_transport_set_message_sent")] fn set_message_sent(&self, message_sent: P); #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[doc(alias = "gst_rtsp_stream_transport_set_message_sent_full")] fn set_message_sent_full(&self, message_sent: P); + #[doc(alias = "gst_rtsp_stream_transport_set_timed_out")] fn set_timed_out(&self, timedout: bool); + //#[doc(alias = "gst_rtsp_stream_transport_set_transport")] //fn set_transport(&self, tr: /*Ignored*/&mut gst_rtsp::RTSPTransport); + #[doc(alias = "gst_rtsp_stream_transport_set_url")] fn set_url(&self, url: Option<&gst_rtsp::RTSPUrl>); } diff --git a/gstreamer-rtsp-server/src/auto/rtsp_thread_pool.rs b/gstreamer-rtsp-server/src/auto/rtsp_thread_pool.rs index 8c6c010b8..6af129948 100644 --- a/gstreamer-rtsp-server/src/auto/rtsp_thread_pool.rs +++ b/gstreamer-rtsp-server/src/auto/rtsp_thread_pool.rs @@ -22,11 +22,13 @@ glib::glib_wrapper! { } impl RTSPThreadPool { + #[doc(alias = "gst_rtsp_thread_pool_new")] pub fn new() -> RTSPThreadPool { assert_initialized_main_thread!(); unsafe { from_glib_full(ffi::gst_rtsp_thread_pool_new()) } } + #[doc(alias = "gst_rtsp_thread_pool_cleanup")] pub fn cleanup() { assert_initialized_main_thread!(); unsafe { @@ -47,10 +49,13 @@ unsafe impl Sync for RTSPThreadPool {} pub const NONE_RTSP_THREAD_POOL: Option<&RTSPThreadPool> = None; pub trait RTSPThreadPoolExt: 'static { + #[doc(alias = "gst_rtsp_thread_pool_get_max_threads")] fn get_max_threads(&self) -> i32; + #[doc(alias = "gst_rtsp_thread_pool_get_thread")] fn get_thread(&self, type_: RTSPThreadType, ctx: &RTSPContext) -> Option; + #[doc(alias = "gst_rtsp_thread_pool_set_max_threads")] fn set_max_threads(&self, max_threads: i32); fn connect_property_max_threads_notify( diff --git a/gstreamer-rtsp-server/src/auto/versions.txt b/gstreamer-rtsp-server/src/auto/versions.txt index ea795c56c..ba6c32af8 100644 --- a/gstreamer-rtsp-server/src/auto/versions.txt +++ b/gstreamer-rtsp-server/src/auto/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7) -from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9) +Generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf) +from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd) diff --git a/gstreamer-rtsp-server/sys/build.rs b/gstreamer-rtsp-server/sys/build.rs index beb26524a..4cb086136 100644 --- a/gstreamer-rtsp-server/sys/build.rs +++ b/gstreamer-rtsp-server/sys/build.rs @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7) -// from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf) +// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd) // DO NOT EDIT #[cfg(not(feature = "dox"))] diff --git a/gstreamer-rtsp-server/sys/src/lib.rs b/gstreamer-rtsp-server/sys/src/lib.rs index fec3132d7..20f594e49 100644 --- a/gstreamer-rtsp-server/sys/src/lib.rs +++ b/gstreamer-rtsp-server/sys/src/lib.rs @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7) -// from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf) +// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd) // DO NOT EDIT #![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)] diff --git a/gstreamer-rtsp-server/sys/tests/abi.rs b/gstreamer-rtsp-server/sys/tests/abi.rs index a83563163..4821312dd 100644 --- a/gstreamer-rtsp-server/sys/tests/abi.rs +++ b/gstreamer-rtsp-server/sys/tests/abi.rs @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7) -// from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf) +// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd) // DO NOT EDIT use gstreamer_rtsp_server_sys::*; diff --git a/gstreamer-rtsp-server/sys/tests/constant.c b/gstreamer-rtsp-server/sys/tests/constant.c index c2ff6ab15..206014da6 100644 --- a/gstreamer-rtsp-server/sys/tests/constant.c +++ b/gstreamer-rtsp-server/sys/tests/constant.c @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7) -// from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf) +// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-rtsp-server/sys/tests/layout.c b/gstreamer-rtsp-server/sys/tests/layout.c index 64f4cfb9c..82c774a5d 100644 --- a/gstreamer-rtsp-server/sys/tests/layout.c +++ b/gstreamer-rtsp-server/sys/tests/layout.c @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7) -// from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf) +// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-rtsp/src/auto/enums.rs b/gstreamer-rtsp/src/auto/enums.rs index 30e04e831..c4775e25d 100644 --- a/gstreamer-rtsp/src/auto/enums.rs +++ b/gstreamer-rtsp/src/auto/enums.rs @@ -35,7 +35,7 @@ impl ToGlib for RTSPAuthMethod { #[doc(hidden)] impl FromGlib for RTSPAuthMethod { - fn from_glib(value: ffi::GstRTSPAuthMethod) -> Self { + unsafe fn from_glib(value: ffi::GstRTSPAuthMethod) -> Self { skip_assert_initialized!(); match value { 0 => RTSPAuthMethod::None, @@ -96,7 +96,7 @@ impl ToGlib for RTSPFamily { #[doc(hidden)] impl FromGlib for RTSPFamily { - fn from_glib(value: ffi::GstRTSPFamily) -> Self { + unsafe fn from_glib(value: ffi::GstRTSPFamily) -> Self { skip_assert_initialized!(); match value { 0 => RTSPFamily::None, @@ -331,7 +331,7 @@ impl ToGlib for RTSPHeaderField { #[doc(hidden)] impl FromGlib for RTSPHeaderField { - fn from_glib(value: ffi::GstRTSPHeaderField) -> Self { + unsafe fn from_glib(value: ffi::GstRTSPHeaderField) -> Self { skip_assert_initialized!(); match value { 0 => RTSPHeaderField::Invalid, @@ -485,7 +485,7 @@ impl ToGlib for RTSPMsgType { #[doc(hidden)] impl FromGlib for RTSPMsgType { - fn from_glib(value: ffi::GstRTSPMsgType) -> Self { + unsafe fn from_glib(value: ffi::GstRTSPMsgType) -> Self { skip_assert_initialized!(); match value { 0 => RTSPMsgType::Invalid, @@ -553,7 +553,7 @@ impl ToGlib for RTSPRangeUnit { #[doc(hidden)] impl FromGlib for RTSPRangeUnit { - fn from_glib(value: ffi::GstRTSPRangeUnit) -> Self { + unsafe fn from_glib(value: ffi::GstRTSPRangeUnit) -> Self { skip_assert_initialized!(); match value { 0 => RTSPRangeUnit::Smpte, @@ -646,7 +646,7 @@ impl ToGlib for RTSPResult { #[doc(hidden)] impl FromGlib for RTSPResult { - fn from_glib(value: ffi::GstRTSPResult) -> Self { + unsafe fn from_glib(value: ffi::GstRTSPResult) -> Self { skip_assert_initialized!(); match value { 0 => RTSPResult::Ok, @@ -728,7 +728,7 @@ impl ToGlib for RTSPState { #[doc(hidden)] impl FromGlib for RTSPState { - fn from_glib(value: ffi::GstRTSPState) -> Self { + unsafe fn from_glib(value: ffi::GstRTSPState) -> Self { skip_assert_initialized!(); match value { 0 => RTSPState::Invalid, @@ -886,7 +886,7 @@ impl ToGlib for RTSPStatusCode { #[doc(hidden)] impl FromGlib for RTSPStatusCode { - fn from_glib(value: ffi::GstRTSPStatusCode) -> Self { + unsafe fn from_glib(value: ffi::GstRTSPStatusCode) -> Self { skip_assert_initialized!(); match value { 0 => RTSPStatusCode::Invalid, @@ -994,7 +994,7 @@ impl ToGlib for RTSPTimeType { #[doc(hidden)] impl FromGlib for RTSPTimeType { - fn from_glib(value: ffi::GstRTSPTimeType) -> Self { + unsafe fn from_glib(value: ffi::GstRTSPTimeType) -> Self { skip_assert_initialized!(); match value { 0 => RTSPTimeType::Seconds, diff --git a/gstreamer-rtsp/src/auto/flags.rs b/gstreamer-rtsp/src/auto/flags.rs index 755031269..45903b830 100644 --- a/gstreamer-rtsp/src/auto/flags.rs +++ b/gstreamer-rtsp/src/auto/flags.rs @@ -28,7 +28,7 @@ impl ToGlib for RTSPEvent { #[doc(hidden)] impl FromGlib for RTSPEvent { - fn from_glib(value: ffi::GstRTSPEvent) -> RTSPEvent { + unsafe fn from_glib(value: ffi::GstRTSPEvent) -> RTSPEvent { skip_assert_initialized!(); RTSPEvent::from_bits_truncate(value) } @@ -79,7 +79,7 @@ impl ToGlib for RTSPLowerTrans { #[doc(hidden)] impl FromGlib for RTSPLowerTrans { - fn from_glib(value: ffi::GstRTSPLowerTrans) -> RTSPLowerTrans { + unsafe fn from_glib(value: ffi::GstRTSPLowerTrans) -> RTSPLowerTrans { skip_assert_initialized!(); RTSPLowerTrans::from_bits_truncate(value) } @@ -128,6 +128,7 @@ bitflags! { } impl RTSPMethod { + #[doc(alias = "gst_rtsp_method_as_text")] pub fn as_text(self) -> Option { assert_initialized_main_thread!(); unsafe { from_glib_none(ffi::gst_rtsp_method_as_text(self.to_glib())) } @@ -145,7 +146,7 @@ impl ToGlib for RTSPMethod { #[doc(hidden)] impl FromGlib for RTSPMethod { - fn from_glib(value: ffi::GstRTSPMethod) -> RTSPMethod { + unsafe fn from_glib(value: ffi::GstRTSPMethod) -> RTSPMethod { skip_assert_initialized!(); RTSPMethod::from_bits_truncate(value) } @@ -195,7 +196,7 @@ impl ToGlib for RTSPProfile { #[doc(hidden)] impl FromGlib for RTSPProfile { - fn from_glib(value: ffi::GstRTSPProfile) -> RTSPProfile { + unsafe fn from_glib(value: ffi::GstRTSPProfile) -> RTSPProfile { skip_assert_initialized!(); RTSPProfile::from_bits_truncate(value) } @@ -243,7 +244,7 @@ impl ToGlib for RTSPTransMode { #[doc(hidden)] impl FromGlib for RTSPTransMode { - fn from_glib(value: ffi::GstRTSPTransMode) -> RTSPTransMode { + unsafe fn from_glib(value: ffi::GstRTSPTransMode) -> RTSPTransMode { skip_assert_initialized!(); RTSPTransMode::from_bits_truncate(value) } diff --git a/gstreamer-rtsp/src/auto/rtsp_url.rs b/gstreamer-rtsp/src/auto/rtsp_url.rs index 88d529ec5..339897f7c 100644 --- a/gstreamer-rtsp/src/auto/rtsp_url.rs +++ b/gstreamer-rtsp/src/auto/rtsp_url.rs @@ -18,6 +18,7 @@ glib::glib_wrapper! { } impl RTSPUrl { + #[doc(alias = "gst_rtsp_url_decode_path_components")] pub fn decode_path_components(&self) -> Vec { unsafe { FromGlibPtrContainer::from_glib_full(ffi::gst_rtsp_url_decode_path_components( @@ -26,12 +27,14 @@ impl RTSPUrl { } } + #[doc(alias = "gst_rtsp_url_get_request_uri")] pub fn get_request_uri(&self) -> Option { unsafe { from_glib_full(ffi::gst_rtsp_url_get_request_uri(self.to_glib_none().0)) } } #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[doc(alias = "gst_rtsp_url_get_request_uri_with_control")] pub fn get_request_uri_with_control(&self, control_path: &str) -> Option { unsafe { from_glib_full(ffi::gst_rtsp_url_get_request_uri_with_control( @@ -41,10 +44,12 @@ impl RTSPUrl { } } + #[doc(alias = "gst_rtsp_url_set_port")] pub fn set_port(&mut self, port: u16) -> RTSPResult { unsafe { from_glib(ffi::gst_rtsp_url_set_port(self.to_glib_none_mut().0, port)) } } + #[doc(alias = "gst_rtsp_url_parse")] pub fn parse(urlstr: &str) -> (RTSPResult, RTSPUrl) { assert_initialized_main_thread!(); unsafe { diff --git a/gstreamer-rtsp/src/auto/versions.txt b/gstreamer-rtsp/src/auto/versions.txt index ea795c56c..ba6c32af8 100644 --- a/gstreamer-rtsp/src/auto/versions.txt +++ b/gstreamer-rtsp/src/auto/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7) -from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9) +Generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf) +from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd) diff --git a/gstreamer-rtsp/sys/build.rs b/gstreamer-rtsp/sys/build.rs index beb26524a..4cb086136 100644 --- a/gstreamer-rtsp/sys/build.rs +++ b/gstreamer-rtsp/sys/build.rs @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7) -// from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf) +// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd) // DO NOT EDIT #[cfg(not(feature = "dox"))] diff --git a/gstreamer-rtsp/sys/src/lib.rs b/gstreamer-rtsp/sys/src/lib.rs index 8401100be..67d8d0f39 100644 --- a/gstreamer-rtsp/sys/src/lib.rs +++ b/gstreamer-rtsp/sys/src/lib.rs @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7) -// from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf) +// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd) // DO NOT EDIT #![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)] diff --git a/gstreamer-rtsp/sys/tests/abi.rs b/gstreamer-rtsp/sys/tests/abi.rs index f72ebfa95..3bb08b0f3 100644 --- a/gstreamer-rtsp/sys/tests/abi.rs +++ b/gstreamer-rtsp/sys/tests/abi.rs @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7) -// from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf) +// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd) // DO NOT EDIT use gstreamer_rtsp_sys::*; diff --git a/gstreamer-rtsp/sys/tests/constant.c b/gstreamer-rtsp/sys/tests/constant.c index c2ff6ab15..206014da6 100644 --- a/gstreamer-rtsp/sys/tests/constant.c +++ b/gstreamer-rtsp/sys/tests/constant.c @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7) -// from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf) +// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-rtsp/sys/tests/layout.c b/gstreamer-rtsp/sys/tests/layout.c index 64f4cfb9c..82c774a5d 100644 --- a/gstreamer-rtsp/sys/tests/layout.c +++ b/gstreamer-rtsp/sys/tests/layout.c @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7) -// from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf) +// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-sdp/src/auto/versions.txt b/gstreamer-sdp/src/auto/versions.txt index ea795c56c..ba6c32af8 100644 --- a/gstreamer-sdp/src/auto/versions.txt +++ b/gstreamer-sdp/src/auto/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7) -from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9) +Generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf) +from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd) diff --git a/gstreamer-sdp/sys/build.rs b/gstreamer-sdp/sys/build.rs index beb26524a..4cb086136 100644 --- a/gstreamer-sdp/sys/build.rs +++ b/gstreamer-sdp/sys/build.rs @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7) -// from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf) +// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd) // DO NOT EDIT #[cfg(not(feature = "dox"))] diff --git a/gstreamer-sdp/sys/src/lib.rs b/gstreamer-sdp/sys/src/lib.rs index f3fde0f38..b735d94b5 100644 --- a/gstreamer-sdp/sys/src/lib.rs +++ b/gstreamer-sdp/sys/src/lib.rs @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7) -// from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf) +// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd) // DO NOT EDIT #![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)] diff --git a/gstreamer-sdp/sys/tests/abi.rs b/gstreamer-sdp/sys/tests/abi.rs index bcf7b1c36..819d7c104 100644 --- a/gstreamer-sdp/sys/tests/abi.rs +++ b/gstreamer-sdp/sys/tests/abi.rs @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7) -// from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf) +// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd) // DO NOT EDIT use gstreamer_sdp_sys::*; diff --git a/gstreamer-sdp/sys/tests/constant.c b/gstreamer-sdp/sys/tests/constant.c index c2ff6ab15..206014da6 100644 --- a/gstreamer-sdp/sys/tests/constant.c +++ b/gstreamer-sdp/sys/tests/constant.c @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7) -// from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf) +// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-sdp/sys/tests/layout.c b/gstreamer-sdp/sys/tests/layout.c index 64f4cfb9c..82c774a5d 100644 --- a/gstreamer-sdp/sys/tests/layout.c +++ b/gstreamer-sdp/sys/tests/layout.c @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7) -// from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf) +// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-tag/sys/build.rs b/gstreamer-tag/sys/build.rs index beb26524a..4cb086136 100644 --- a/gstreamer-tag/sys/build.rs +++ b/gstreamer-tag/sys/build.rs @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7) -// from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf) +// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd) // DO NOT EDIT #[cfg(not(feature = "dox"))] diff --git a/gstreamer-tag/sys/src/lib.rs b/gstreamer-tag/sys/src/lib.rs index 0a1bba21c..b5fd36aa4 100644 --- a/gstreamer-tag/sys/src/lib.rs +++ b/gstreamer-tag/sys/src/lib.rs @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7) -// from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf) +// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd) // DO NOT EDIT #![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)] diff --git a/gstreamer-tag/sys/tests/abi.rs b/gstreamer-tag/sys/tests/abi.rs index 67682c64c..fcf0041c3 100644 --- a/gstreamer-tag/sys/tests/abi.rs +++ b/gstreamer-tag/sys/tests/abi.rs @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7) -// from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf) +// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd) // DO NOT EDIT use gstreamer_tag_sys::*; diff --git a/gstreamer-tag/sys/tests/constant.c b/gstreamer-tag/sys/tests/constant.c index c2ff6ab15..206014da6 100644 --- a/gstreamer-tag/sys/tests/constant.c +++ b/gstreamer-tag/sys/tests/constant.c @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7) -// from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf) +// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-tag/sys/tests/layout.c b/gstreamer-tag/sys/tests/layout.c index 64f4cfb9c..82c774a5d 100644 --- a/gstreamer-tag/sys/tests/layout.c +++ b/gstreamer-tag/sys/tests/layout.c @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7) -// from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf) +// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-video/src/auto/enums.rs b/gstreamer-video/src/auto/enums.rs index f57f8cf1f..022427814 100644 --- a/gstreamer-video/src/auto/enums.rs +++ b/gstreamer-video/src/auto/enums.rs @@ -43,7 +43,7 @@ impl ToGlib for VideoAFDSpec { #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[doc(hidden)] impl FromGlib for VideoAFDSpec { - fn from_glib(value: ffi::GstVideoAFDSpec) -> Self { + unsafe fn from_glib(value: ffi::GstVideoAFDSpec) -> Self { skip_assert_initialized!(); match value { 0 => VideoAFDSpec::DvbEtsi, @@ -134,7 +134,7 @@ impl ToGlib for VideoAFDValue { #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[doc(hidden)] impl FromGlib for VideoAFDValue { - fn from_glib(value: ffi::GstVideoAFDValue) -> Self { + unsafe fn from_glib(value: ffi::GstVideoAFDValue) -> Self { skip_assert_initialized!(); match value { 0 => VideoAFDValue::Unavailable, @@ -211,7 +211,7 @@ impl ToGlib for VideoAlphaMode { #[doc(hidden)] impl FromGlib for VideoAlphaMode { - fn from_glib(value: ffi::GstVideoAlphaMode) -> Self { + unsafe fn from_glib(value: ffi::GstVideoAlphaMode) -> Self { skip_assert_initialized!(); match value { 0 => VideoAlphaMode::Copy, @@ -265,6 +265,7 @@ pub enum VideoCaptionType { impl VideoCaptionType { #[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[doc(alias = "gst_video_caption_type_from_caps")] pub fn from_caps(caps: &gst::Caps) -> VideoCaptionType { assert_initialized_main_thread!(); unsafe { from_glib(ffi::gst_video_caption_type_from_caps(caps.to_glib_none().0)) } @@ -272,6 +273,7 @@ impl VideoCaptionType { #[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[doc(alias = "gst_video_caption_type_to_caps")] pub fn to_caps(self) -> Option { assert_initialized_main_thread!(); unsafe { from_glib_full(ffi::gst_video_caption_type_to_caps(self.to_glib())) } @@ -300,7 +302,7 @@ impl ToGlib for VideoCaptionType { #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[doc(hidden)] impl FromGlib for VideoCaptionType { - fn from_glib(value: ffi::GstVideoCaptionType) -> Self { + unsafe fn from_glib(value: ffi::GstVideoCaptionType) -> Self { skip_assert_initialized!(); match value { 0 => VideoCaptionType::Unknown, @@ -373,7 +375,7 @@ impl ToGlib for VideoChromaMode { #[doc(hidden)] impl FromGlib for VideoChromaMode { - fn from_glib(value: ffi::GstVideoChromaMode) -> Self { + unsafe fn from_glib(value: ffi::GstVideoChromaMode) -> Self { skip_assert_initialized!(); match value { 0 => VideoChromaMode::Full, @@ -426,6 +428,7 @@ pub enum VideoColorMatrix { impl VideoColorMatrix { #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[doc(alias = "gst_video_color_matrix_from_iso")] pub fn from_iso(value: u32) -> VideoColorMatrix { assert_initialized_main_thread!(); unsafe { from_glib(ffi::gst_video_color_matrix_from_iso(value)) } @@ -433,6 +436,7 @@ impl VideoColorMatrix { #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[doc(alias = "gst_video_color_matrix_to_iso")] pub fn to_iso(self) -> u32 { assert_initialized_main_thread!(); unsafe { ffi::gst_video_color_matrix_to_iso(self.to_glib()) } @@ -459,7 +463,7 @@ impl ToGlib for VideoColorMatrix { #[doc(hidden)] impl FromGlib for VideoColorMatrix { - fn from_glib(value: ffi::GstVideoColorMatrix) -> Self { + unsafe fn from_glib(value: ffi::GstVideoColorMatrix) -> Self { skip_assert_initialized!(); match value { 0 => VideoColorMatrix::Unknown, @@ -529,17 +533,20 @@ pub enum VideoColorPrimaries { impl VideoColorPrimaries { #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[doc(alias = "gst_video_color_primaries_from_iso")] pub fn from_iso(value: u32) -> VideoColorPrimaries { assert_initialized_main_thread!(); unsafe { from_glib(ffi::gst_video_color_primaries_from_iso(value)) } } + //#[doc(alias = "gst_video_color_primaries_get_info")] //pub fn get_info(self) -> /*Ignored*/Option { // unsafe { TODO: call ffi:gst_video_color_primaries_get_info() } //} #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[doc(alias = "gst_video_color_primaries_to_iso")] pub fn to_iso(self) -> u32 { assert_initialized_main_thread!(); unsafe { ffi::gst_video_color_primaries_to_iso(self.to_glib()) } @@ -576,7 +583,7 @@ impl ToGlib for VideoColorPrimaries { #[doc(hidden)] impl FromGlib for VideoColorPrimaries { - fn from_glib(value: ffi::GstVideoColorPrimaries) -> Self { + unsafe fn from_glib(value: ffi::GstVideoColorPrimaries) -> Self { skip_assert_initialized!(); match value { 0 => VideoColorPrimaries::Unknown, @@ -655,7 +662,7 @@ impl ToGlib for VideoDitherMethod { #[doc(hidden)] impl FromGlib for VideoDitherMethod { - fn from_glib(value: ffi::GstVideoDitherMethod) -> Self { + unsafe fn from_glib(value: ffi::GstVideoDitherMethod) -> Self { skip_assert_initialized!(); match value { 0 => VideoDitherMethod::None, @@ -709,6 +716,7 @@ pub enum VideoFieldOrder { impl VideoFieldOrder { #[cfg(any(feature = "v1_12", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] + #[doc(alias = "gst_video_field_order_from_string")] pub fn from_string(order: &str) -> VideoFieldOrder { assert_initialized_main_thread!(); unsafe { @@ -748,7 +756,7 @@ impl ToGlib for VideoFieldOrder { #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] #[doc(hidden)] impl FromGlib for VideoFieldOrder { - fn from_glib(value: ffi::GstVideoFieldOrder) -> Self { + unsafe fn from_glib(value: ffi::GstVideoFieldOrder) -> Self { skip_assert_initialized!(); match value { 0 => VideoFieldOrder::Unknown, @@ -974,20 +982,24 @@ pub enum VideoFormat { } impl VideoFormat { + #[doc(alias = "gst_video_format_from_fourcc")] pub fn from_fourcc(fourcc: u32) -> VideoFormat { assert_initialized_main_thread!(); unsafe { from_glib(ffi::gst_video_format_from_fourcc(fourcc)) } } + #[doc(alias = "gst_video_format_from_string")] pub fn from_string(format: &str) -> VideoFormat { assert_initialized_main_thread!(); unsafe { from_glib(ffi::gst_video_format_from_string(format.to_glib_none().0)) } } + //#[doc(alias = "gst_video_format_get_palette")] //pub fn get_palette(self) -> (/*Unimplemented*/Option, usize) { // unsafe { TODO: call ffi:gst_video_format_get_palette() } //} + #[doc(alias = "gst_video_format_to_fourcc")] pub fn to_fourcc(self) -> u32 { assert_initialized_main_thread!(); unsafe { ffi::gst_video_format_to_fourcc(self.to_glib()) } @@ -1151,7 +1163,7 @@ impl ToGlib for VideoFormat { #[doc(hidden)] impl FromGlib for VideoFormat { - fn from_glib(value: ffi::GstVideoFormat) -> Self { + unsafe fn from_glib(value: ffi::GstVideoFormat) -> Self { skip_assert_initialized!(); match value { 0 => VideoFormat::Unknown, @@ -1344,7 +1356,7 @@ impl ToGlib for VideoGammaMode { #[doc(hidden)] impl FromGlib for VideoGammaMode { - fn from_glib(value: ffi::GstVideoGammaMode) -> Self { + unsafe fn from_glib(value: ffi::GstVideoGammaMode) -> Self { skip_assert_initialized!(); match value { 0 => VideoGammaMode::None, @@ -1393,6 +1405,7 @@ pub enum VideoInterlaceMode { } impl VideoInterlaceMode { + #[doc(alias = "gst_video_interlace_mode_from_string")] pub fn from_string(mode: &str) -> VideoInterlaceMode { assert_initialized_main_thread!(); unsafe { @@ -1441,7 +1454,7 @@ impl ToGlib for VideoInterlaceMode { #[doc(hidden)] impl FromGlib for VideoInterlaceMode { - fn from_glib(value: ffi::GstVideoInterlaceMode) -> Self { + unsafe fn from_glib(value: ffi::GstVideoInterlaceMode) -> Self { skip_assert_initialized!(); match value { 0 => VideoInterlaceMode::Progressive, @@ -1507,7 +1520,7 @@ impl ToGlib for VideoMatrixMode { #[doc(hidden)] impl FromGlib for VideoMatrixMode { - fn from_glib(value: ffi::GstVideoMatrixMode) -> Self { + unsafe fn from_glib(value: ffi::GstVideoMatrixMode) -> Self { skip_assert_initialized!(); match value { 0 => VideoMatrixMode::Full, @@ -1595,7 +1608,7 @@ impl ToGlib for VideoMultiviewFramePacking { #[doc(hidden)] impl FromGlib for VideoMultiviewFramePacking { - fn from_glib(value: ffi::GstVideoMultiviewFramePacking) -> Self { + unsafe fn from_glib(value: ffi::GstVideoMultiviewFramePacking) -> Self { skip_assert_initialized!(); match value { -1 => VideoMultiviewFramePacking::None, @@ -1658,6 +1671,7 @@ pub enum VideoMultiviewMode { } impl VideoMultiviewMode { + #[doc(alias = "gst_video_multiview_mode_from_caps_string")] pub fn from_caps_string(caps_mview_mode: &str) -> VideoMultiviewMode { assert_initialized_main_thread!(); unsafe { @@ -1667,6 +1681,7 @@ impl VideoMultiviewMode { } } + #[doc(alias = "gst_video_multiview_mode_to_caps_string")] pub fn to_caps_string(self) -> Option { assert_initialized_main_thread!(); unsafe { from_glib_none(ffi::gst_video_multiview_mode_to_caps_string(self.to_glib())) } @@ -1705,7 +1720,7 @@ impl ToGlib for VideoMultiviewMode { #[doc(hidden)] impl FromGlib for VideoMultiviewMode { - fn from_glib(value: ffi::GstVideoMultiviewMode) -> Self { + unsafe fn from_glib(value: ffi::GstVideoMultiviewMode) -> Self { skip_assert_initialized!(); match value { -1 => VideoMultiviewMode::None, @@ -1776,7 +1791,7 @@ impl ToGlib for VideoPrimariesMode { #[doc(hidden)] impl FromGlib for VideoPrimariesMode { - fn from_glib(value: ffi::GstVideoPrimariesMode) -> Self { + unsafe fn from_glib(value: ffi::GstVideoPrimariesMode) -> Self { skip_assert_initialized!(); match value { 0 => VideoPrimariesMode::None, @@ -1841,7 +1856,7 @@ impl ToGlib for VideoResamplerMethod { #[doc(hidden)] impl FromGlib for VideoResamplerMethod { - fn from_glib(value: ffi::GstVideoResamplerMethod) -> Self { + unsafe fn from_glib(value: ffi::GstVideoResamplerMethod) -> Self { skip_assert_initialized!(); match value { 0 => VideoResamplerMethod::Nearest, @@ -1907,7 +1922,7 @@ impl ToGlib for VideoTileMode { #[doc(hidden)] impl FromGlib for VideoTileMode { - fn from_glib(value: ffi::GstVideoTileMode) -> Self { + unsafe fn from_glib(value: ffi::GstVideoTileMode) -> Self { skip_assert_initialized!(); match value { 0 => VideoTileMode::Unknown, @@ -1978,6 +1993,7 @@ pub enum VideoTransferFunction { impl VideoTransferFunction { #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[doc(alias = "gst_video_transfer_function_from_iso")] pub fn from_iso(value: u32) -> VideoTransferFunction { assert_initialized_main_thread!(); unsafe { from_glib(ffi::gst_video_transfer_function_from_iso(value)) } @@ -1985,6 +2001,7 @@ impl VideoTransferFunction { #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[doc(alias = "gst_video_transfer_function_is_equivalent")] pub fn is_equivalent(self, from_bpp: u32, to_func: VideoTransferFunction, to_bpp: u32) -> bool { assert_initialized_main_thread!(); unsafe { @@ -1999,6 +2016,7 @@ impl VideoTransferFunction { #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[doc(alias = "gst_video_transfer_function_to_iso")] pub fn to_iso(self) -> u32 { assert_initialized_main_thread!(); unsafe { ffi::gst_video_transfer_function_to_iso(self.to_glib()) } @@ -2039,7 +2057,7 @@ impl ToGlib for VideoTransferFunction { #[doc(hidden)] impl FromGlib for VideoTransferFunction { - fn from_glib(value: ffi::GstVideoTransferFunction) -> Self { + unsafe fn from_glib(value: ffi::GstVideoTransferFunction) -> Self { skip_assert_initialized!(); match value { 0 => VideoTransferFunction::Unknown, diff --git a/gstreamer-video/src/auto/flags.rs b/gstreamer-video/src/auto/flags.rs index 0f9825ff2..a05e41782 100644 --- a/gstreamer-video/src/auto/flags.rs +++ b/gstreamer-video/src/auto/flags.rs @@ -41,7 +41,7 @@ impl ToGlib for VideoBufferFlags { #[doc(hidden)] impl FromGlib for VideoBufferFlags { - fn from_glib(value: ffi::GstVideoBufferFlags) -> VideoBufferFlags { + unsafe fn from_glib(value: ffi::GstVideoBufferFlags) -> VideoBufferFlags { skip_assert_initialized!(); VideoBufferFlags::from_bits_truncate(value) } @@ -95,7 +95,7 @@ impl ToGlib for VideoChromaSite { #[doc(hidden)] impl FromGlib for VideoChromaSite { - fn from_glib(value: ffi::GstVideoChromaSite) -> VideoChromaSite { + unsafe fn from_glib(value: ffi::GstVideoChromaSite) -> VideoChromaSite { skip_assert_initialized!(); VideoChromaSite::from_bits_truncate(value) } @@ -145,7 +145,7 @@ impl ToGlib for VideoCodecFrameFlags { #[doc(hidden)] impl FromGlib for VideoCodecFrameFlags { - fn from_glib(value: ffi::GstVideoCodecFrameFlags) -> VideoCodecFrameFlags { + unsafe fn from_glib(value: ffi::GstVideoCodecFrameFlags) -> VideoCodecFrameFlags { skip_assert_initialized!(); VideoCodecFrameFlags::from_bits_truncate(value) } @@ -169,7 +169,7 @@ impl ToGlib for VideoFlags { #[doc(hidden)] impl FromGlib for VideoFlags { - fn from_glib(value: ffi::GstVideoFlags) -> VideoFlags { + unsafe fn from_glib(value: ffi::GstVideoFlags) -> VideoFlags { skip_assert_initialized!(); VideoFlags::from_bits_truncate(value) } @@ -224,7 +224,7 @@ impl ToGlib for VideoFormatFlags { #[doc(hidden)] impl FromGlib for VideoFormatFlags { - fn from_glib(value: ffi::GstVideoFormatFlags) -> VideoFormatFlags { + unsafe fn from_glib(value: ffi::GstVideoFormatFlags) -> VideoFormatFlags { skip_assert_initialized!(); VideoFormatFlags::from_bits_truncate(value) } @@ -278,7 +278,7 @@ impl ToGlib for VideoFrameFlags { #[doc(hidden)] impl FromGlib for VideoFrameFlags { - fn from_glib(value: ffi::GstVideoFrameFlags) -> VideoFrameFlags { + unsafe fn from_glib(value: ffi::GstVideoFrameFlags) -> VideoFrameFlags { skip_assert_initialized!(); VideoFrameFlags::from_bits_truncate(value) } @@ -331,7 +331,7 @@ impl ToGlib for VideoMultiviewFlags { #[doc(hidden)] impl FromGlib for VideoMultiviewFlags { - fn from_glib(value: ffi::GstVideoMultiviewFlags) -> VideoMultiviewFlags { + unsafe fn from_glib(value: ffi::GstVideoMultiviewFlags) -> VideoMultiviewFlags { skip_assert_initialized!(); VideoMultiviewFlags::from_bits_truncate(value) } @@ -379,7 +379,7 @@ impl ToGlib for VideoOverlayFormatFlags { #[doc(hidden)] impl FromGlib for VideoOverlayFormatFlags { - fn from_glib(value: ffi::GstVideoOverlayFormatFlags) -> VideoOverlayFormatFlags { + unsafe fn from_glib(value: ffi::GstVideoOverlayFormatFlags) -> VideoOverlayFormatFlags { skip_assert_initialized!(); VideoOverlayFormatFlags::from_bits_truncate(value) } @@ -435,7 +435,7 @@ impl ToGlib for VideoPackFlags { #[doc(hidden)] impl FromGlib for VideoPackFlags { - fn from_glib(value: ffi::GstVideoPackFlags) -> VideoPackFlags { + unsafe fn from_glib(value: ffi::GstVideoPackFlags) -> VideoPackFlags { skip_assert_initialized!(); VideoPackFlags::from_bits_truncate(value) } @@ -489,7 +489,7 @@ impl ToGlib for VideoTimeCodeFlags { #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] #[doc(hidden)] impl FromGlib for VideoTimeCodeFlags { - fn from_glib(value: ffi::GstVideoTimeCodeFlags) -> VideoTimeCodeFlags { + unsafe fn from_glib(value: ffi::GstVideoTimeCodeFlags) -> VideoTimeCodeFlags { skip_assert_initialized!(); VideoTimeCodeFlags::from_bits_truncate(value) } diff --git a/gstreamer-video/src/auto/versions.txt b/gstreamer-video/src/auto/versions.txt index ea795c56c..ba6c32af8 100644 --- a/gstreamer-video/src/auto/versions.txt +++ b/gstreamer-video/src/auto/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7) -from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9) +Generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf) +from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd) diff --git a/gstreamer-video/src/auto/video_buffer_pool.rs b/gstreamer-video/src/auto/video_buffer_pool.rs index 707f05f87..c9d9e8043 100644 --- a/gstreamer-video/src/auto/video_buffer_pool.rs +++ b/gstreamer-video/src/auto/video_buffer_pool.rs @@ -14,6 +14,7 @@ glib::glib_wrapper! { } impl VideoBufferPool { + #[doc(alias = "gst_video_buffer_pool_new")] pub fn new() -> VideoBufferPool { assert_initialized_main_thread!(); unsafe { gst::BufferPool::from_glib_full(ffi::gst_video_buffer_pool_new()).unsafe_cast() } diff --git a/gstreamer-video/src/auto/video_decoder.rs b/gstreamer-video/src/auto/video_decoder.rs index 7f7fbf811..d4209a3ee 100644 --- a/gstreamer-video/src/auto/video_decoder.rs +++ b/gstreamer-video/src/auto/video_decoder.rs @@ -38,38 +38,55 @@ unsafe impl Sync for VideoDecoder {} pub const NONE_VIDEO_DECODER: Option<&VideoDecoder> = None; pub trait VideoDecoderExt: 'static { + #[doc(alias = "gst_video_decoder_add_to_frame")] fn add_to_frame(&self, n_bytes: i32); + #[doc(alias = "gst_video_decoder_allocate_output_buffer")] fn allocate_output_buffer(&self) -> Result; + #[doc(alias = "gst_video_decoder_get_buffer_pool")] fn get_buffer_pool(&self) -> Option; + #[doc(alias = "gst_video_decoder_get_estimate_rate")] fn get_estimate_rate(&self) -> i32; + #[doc(alias = "gst_video_decoder_get_max_decode_time")] fn get_max_decode_time(&self, frame: &VideoCodecFrame) -> gst::ClockTimeDiff; + #[doc(alias = "gst_video_decoder_get_max_errors")] fn get_max_errors(&self) -> i32; + #[doc(alias = "gst_video_decoder_get_needs_format")] fn get_needs_format(&self) -> bool; + #[doc(alias = "gst_video_decoder_get_packetized")] fn get_packetized(&self) -> bool; + #[doc(alias = "gst_video_decoder_get_pending_frame_size")] fn get_pending_frame_size(&self) -> usize; + #[doc(alias = "gst_video_decoder_get_qos_proportion")] fn get_qos_proportion(&self) -> f64; + #[doc(alias = "gst_video_decoder_merge_tags")] fn merge_tags(&self, tags: Option<&gst::TagList>, mode: gst::TagMergeMode); + #[doc(alias = "gst_video_decoder_proxy_getcaps")] fn proxy_getcaps(&self, caps: Option<&gst::Caps>, filter: Option<&gst::Caps>) -> gst::Caps; + #[doc(alias = "gst_video_decoder_set_estimate_rate")] fn set_estimate_rate(&self, enabled: bool); + #[doc(alias = "gst_video_decoder_set_max_errors")] fn set_max_errors(&self, num: i32); + #[doc(alias = "gst_video_decoder_set_needs_format")] fn set_needs_format(&self, enabled: bool); + #[doc(alias = "gst_video_decoder_set_packetized")] fn set_packetized(&self, packetized: bool); + #[doc(alias = "gst_video_decoder_set_use_default_pad_acceptcaps")] fn set_use_default_pad_acceptcaps(&self, use_: bool); #[cfg(any(feature = "v1_18", feature = "dox"))] diff --git a/gstreamer-video/src/auto/video_encoder.rs b/gstreamer-video/src/auto/video_encoder.rs index c16f8007e..67883a3cf 100644 --- a/gstreamer-video/src/auto/video_encoder.rs +++ b/gstreamer-video/src/auto/video_encoder.rs @@ -28,34 +28,44 @@ unsafe impl Sync for VideoEncoder {} pub const NONE_VIDEO_ENCODER: Option<&VideoEncoder> = None; pub trait VideoEncoderExt: 'static { + #[doc(alias = "gst_video_encoder_allocate_output_buffer")] fn allocate_output_buffer(&self, size: usize) -> Result; #[cfg(any(feature = "v1_14", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] + #[doc(alias = "gst_video_encoder_get_max_encode_time")] fn get_max_encode_time(&self, frame: &VideoCodecFrame) -> gst::ClockTimeDiff; #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[doc(alias = "gst_video_encoder_get_min_force_key_unit_interval")] fn get_min_force_key_unit_interval(&self) -> gst::ClockTime; #[cfg(any(feature = "v1_14", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] + #[doc(alias = "gst_video_encoder_is_qos_enabled")] fn is_qos_enabled(&self) -> bool; + #[doc(alias = "gst_video_encoder_merge_tags")] fn merge_tags(&self, tags: Option<&gst::TagList>, mode: gst::TagMergeMode); + #[doc(alias = "gst_video_encoder_proxy_getcaps")] fn proxy_getcaps(&self, caps: Option<&gst::Caps>, filter: Option<&gst::Caps>) -> gst::Caps; + #[doc(alias = "gst_video_encoder_set_headers")] fn set_headers(&self, headers: &[&gst::Buffer]); #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[doc(alias = "gst_video_encoder_set_min_force_key_unit_interval")] fn set_min_force_key_unit_interval(&self, interval: gst::ClockTime); + #[doc(alias = "gst_video_encoder_set_min_pts")] fn set_min_pts(&self, min_pts: gst::ClockTime); #[cfg(any(feature = "v1_14", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] + #[doc(alias = "gst_video_encoder_set_qos_enabled")] fn set_qos_enabled(&self, enabled: bool); fn get_property_qos(&self) -> bool; diff --git a/gstreamer-video/src/auto/video_overlay.rs b/gstreamer-video/src/auto/video_overlay.rs index e3e263f82..d4cdde0f8 100644 --- a/gstreamer-video/src/auto/video_overlay.rs +++ b/gstreamer-video/src/auto/video_overlay.rs @@ -16,12 +16,14 @@ glib::glib_wrapper! { impl VideoOverlay { //#[cfg(any(feature = "v1_14", feature = "dox"))] //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] + //#[doc(alias = "gst_video_overlay_install_properties")] //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() } //} @@ -33,14 +35,19 @@ unsafe impl Sync for VideoOverlay {} pub const NONE_VIDEO_OVERLAY: Option<&VideoOverlay> = None; pub trait VideoOverlayExt: 'static { + #[doc(alias = "gst_video_overlay_expose")] fn expose(&self); + //#[doc(alias = "gst_video_overlay_got_window_handle")] //fn got_window_handle(&self, handle: /*Unimplemented*/Fundamental: UIntPtr); + #[doc(alias = "gst_video_overlay_handle_events")] fn handle_events(&self, handle_events: bool); + #[doc(alias = "gst_video_overlay_prepare_window_handle")] fn prepare_window_handle(&self); + #[doc(alias = "gst_video_overlay_set_render_rectangle")] fn set_render_rectangle( &self, x: i32, @@ -49,6 +56,7 @@ pub trait VideoOverlayExt: 'static { height: i32, ) -> Result<(), glib::error::BoolError>; + //#[doc(alias = "gst_video_overlay_set_window_handle")] //fn set_window_handle(&self, handle: /*Unimplemented*/Fundamental: UIntPtr); } diff --git a/gstreamer-video/sys/build.rs b/gstreamer-video/sys/build.rs index beb26524a..4cb086136 100644 --- a/gstreamer-video/sys/build.rs +++ b/gstreamer-video/sys/build.rs @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7) -// from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf) +// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd) // DO NOT EDIT #[cfg(not(feature = "dox"))] diff --git a/gstreamer-video/sys/src/lib.rs b/gstreamer-video/sys/src/lib.rs index facc9bea9..69e56b000 100644 --- a/gstreamer-video/sys/src/lib.rs +++ b/gstreamer-video/sys/src/lib.rs @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7) -// from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf) +// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd) // DO NOT EDIT #![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)] diff --git a/gstreamer-video/sys/tests/abi.rs b/gstreamer-video/sys/tests/abi.rs index 3a3af272c..61fb7342c 100644 --- a/gstreamer-video/sys/tests/abi.rs +++ b/gstreamer-video/sys/tests/abi.rs @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7) -// from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf) +// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd) // DO NOT EDIT use gstreamer_video_sys::*; diff --git a/gstreamer-video/sys/tests/constant.c b/gstreamer-video/sys/tests/constant.c index c2ff6ab15..206014da6 100644 --- a/gstreamer-video/sys/tests/constant.c +++ b/gstreamer-video/sys/tests/constant.c @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7) -// from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf) +// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-video/sys/tests/layout.c b/gstreamer-video/sys/tests/layout.c index 64f4cfb9c..82c774a5d 100644 --- a/gstreamer-video/sys/tests/layout.c +++ b/gstreamer-video/sys/tests/layout.c @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7) -// from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf) +// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-webrtc/src/auto/enums.rs b/gstreamer-webrtc/src/auto/enums.rs index 5aa8ae2b6..fe7465450 100644 --- a/gstreamer-webrtc/src/auto/enums.rs +++ b/gstreamer-webrtc/src/auto/enums.rs @@ -45,7 +45,7 @@ impl ToGlib for WebRTCBundlePolicy { #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[doc(hidden)] impl FromGlib for WebRTCBundlePolicy { - fn from_glib(value: ffi::GstWebRTCBundlePolicy) -> Self { + unsafe fn from_glib(value: ffi::GstWebRTCBundlePolicy) -> Self { skip_assert_initialized!(); match value { 0 => WebRTCBundlePolicy::None, @@ -117,7 +117,7 @@ impl ToGlib for WebRTCDTLSSetup { #[doc(hidden)] impl FromGlib for WebRTCDTLSSetup { - fn from_glib(value: ffi::GstWebRTCDTLSSetup) -> Self { + unsafe fn from_glib(value: ffi::GstWebRTCDTLSSetup) -> Self { skip_assert_initialized!(); match value { 0 => WebRTCDTLSSetup::None, @@ -183,7 +183,7 @@ impl ToGlib for WebRTCDTLSTransportState { #[doc(hidden)] impl FromGlib for WebRTCDTLSTransportState { - fn from_glib(value: ffi::GstWebRTCDTLSTransportState) -> Self { + unsafe fn from_glib(value: ffi::GstWebRTCDTLSTransportState) -> Self { skip_assert_initialized!(); match value { 0 => WebRTCDTLSTransportState::New, @@ -256,7 +256,7 @@ impl ToGlib for WebRTCDataChannelState { #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[doc(hidden)] impl FromGlib for WebRTCDataChannelState { - fn from_glib(value: ffi::GstWebRTCDataChannelState) -> Self { + unsafe fn from_glib(value: ffi::GstWebRTCDataChannelState) -> Self { skip_assert_initialized!(); match value { 0 => WebRTCDataChannelState::New, @@ -331,7 +331,7 @@ impl ToGlib for WebRTCFECType { #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14_1")))] #[doc(hidden)] impl FromGlib for WebRTCFECType { - fn from_glib(value: ffi::GstWebRTCFECType) -> Self { + unsafe fn from_glib(value: ffi::GstWebRTCFECType) -> Self { skip_assert_initialized!(); match value { 0 => WebRTCFECType::None, @@ -397,7 +397,7 @@ impl ToGlib for WebRTCICEComponent { #[doc(hidden)] impl FromGlib for WebRTCICEComponent { - fn from_glib(value: ffi::GstWebRTCICEComponent) -> Self { + unsafe fn from_glib(value: ffi::GstWebRTCICEComponent) -> Self { skip_assert_initialized!(); match value { 0 => WebRTCICEComponent::Rtp, @@ -467,7 +467,7 @@ impl ToGlib for WebRTCICEConnectionState { #[doc(hidden)] impl FromGlib for WebRTCICEConnectionState { - fn from_glib(value: ffi::GstWebRTCICEConnectionState) -> Self { + unsafe fn from_glib(value: ffi::GstWebRTCICEConnectionState) -> Self { skip_assert_initialized!(); match value { 0 => WebRTCICEConnectionState::New, @@ -532,7 +532,7 @@ impl ToGlib for WebRTCICEGatheringState { #[doc(hidden)] impl FromGlib for WebRTCICEGatheringState { - fn from_glib(value: ffi::GstWebRTCICEGatheringState) -> Self { + unsafe fn from_glib(value: ffi::GstWebRTCICEGatheringState) -> Self { skip_assert_initialized!(); match value { 0 => WebRTCICEGatheringState::New, @@ -591,7 +591,7 @@ impl ToGlib for WebRTCICERole { #[doc(hidden)] impl FromGlib for WebRTCICERole { - fn from_glib(value: ffi::GstWebRTCICERole) -> Self { + unsafe fn from_glib(value: ffi::GstWebRTCICERole) -> Self { skip_assert_initialized!(); match value { 0 => WebRTCICERole::Controlled, @@ -655,7 +655,7 @@ impl ToGlib for WebRTCICETransportPolicy { #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[doc(hidden)] impl FromGlib for WebRTCICETransportPolicy { - fn from_glib(value: ffi::GstWebRTCICETransportPolicy) -> Self { + unsafe fn from_glib(value: ffi::GstWebRTCICETransportPolicy) -> Self { skip_assert_initialized!(); match value { 0 => WebRTCICETransportPolicy::All, @@ -733,7 +733,7 @@ impl ToGlib for WebRTCPeerConnectionState { #[doc(hidden)] impl FromGlib for WebRTCPeerConnectionState { - fn from_glib(value: ffi::GstWebRTCPeerConnectionState) -> Self { + unsafe fn from_glib(value: ffi::GstWebRTCPeerConnectionState) -> Self { skip_assert_initialized!(); match value { 0 => WebRTCPeerConnectionState::New, @@ -805,7 +805,7 @@ impl ToGlib for WebRTCPriorityType { #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[doc(hidden)] impl FromGlib for WebRTCPriorityType { - fn from_glib(value: ffi::GstWebRTCPriorityType) -> Self { + unsafe fn from_glib(value: ffi::GstWebRTCPriorityType) -> Self { skip_assert_initialized!(); match value { 1 => WebRTCPriorityType::VeryLow, @@ -887,7 +887,7 @@ impl ToGlib for WebRTCRTPTransceiverDirection { #[doc(hidden)] impl FromGlib for WebRTCRTPTransceiverDirection { - fn from_glib(value: ffi::GstWebRTCRTPTransceiverDirection) -> Self { + unsafe fn from_glib(value: ffi::GstWebRTCRTPTransceiverDirection) -> Self { skip_assert_initialized!(); match value { 0 => WebRTCRTPTransceiverDirection::None, @@ -958,7 +958,7 @@ impl ToGlib for WebRTCSCTPTransportState { #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[doc(hidden)] impl FromGlib for WebRTCSCTPTransportState { - fn from_glib(value: ffi::GstWebRTCSCTPTransportState) -> Self { + unsafe fn from_glib(value: ffi::GstWebRTCSCTPTransportState) -> Self { skip_assert_initialized!(); match value { 0 => WebRTCSCTPTransportState::New, @@ -1051,7 +1051,7 @@ impl ToGlib for WebRTCSDPType { #[doc(hidden)] impl FromGlib for WebRTCSDPType { - fn from_glib(value: ffi::GstWebRTCSDPType) -> Self { + unsafe fn from_glib(value: ffi::GstWebRTCSDPType) -> Self { skip_assert_initialized!(); match value { 1 => WebRTCSDPType::Offer, @@ -1127,7 +1127,7 @@ impl ToGlib for WebRTCSignalingState { #[doc(hidden)] impl FromGlib for WebRTCSignalingState { - fn from_glib(value: ffi::GstWebRTCSignalingState) -> Self { + unsafe fn from_glib(value: ffi::GstWebRTCSignalingState) -> Self { skip_assert_initialized!(); match value { 0 => WebRTCSignalingState::Stable, @@ -1213,7 +1213,7 @@ impl ToGlib for WebRTCStatsType { #[doc(hidden)] impl FromGlib for WebRTCStatsType { - fn from_glib(value: ffi::GstWebRTCStatsType) -> Self { + unsafe fn from_glib(value: ffi::GstWebRTCStatsType) -> Self { skip_assert_initialized!(); match value { 1 => WebRTCStatsType::Codec, diff --git a/gstreamer-webrtc/src/auto/versions.txt b/gstreamer-webrtc/src/auto/versions.txt index ea795c56c..ba6c32af8 100644 --- a/gstreamer-webrtc/src/auto/versions.txt +++ b/gstreamer-webrtc/src/auto/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7) -from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9) +Generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf) +from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd) diff --git a/gstreamer-webrtc/src/auto/web_rtc_data_channel.rs b/gstreamer-webrtc/src/auto/web_rtc_data_channel.rs index fa6ae3904..f4f665e3d 100644 --- a/gstreamer-webrtc/src/auto/web_rtc_data_channel.rs +++ b/gstreamer-webrtc/src/auto/web_rtc_data_channel.rs @@ -24,6 +24,7 @@ glib::glib_wrapper! { impl WebRTCDataChannel { #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[doc(alias = "gst_webrtc_data_channel_close")] pub fn close(&self) { unsafe { ffi::gst_webrtc_data_channel_close(self.to_glib_none().0); @@ -32,6 +33,7 @@ impl WebRTCDataChannel { #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[doc(alias = "gst_webrtc_data_channel_on_buffered_amount_low")] pub fn on_buffered_amount_low(&self) { unsafe { ffi::gst_webrtc_data_channel_on_buffered_amount_low(self.to_glib_none().0); @@ -40,6 +42,7 @@ impl WebRTCDataChannel { #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[doc(alias = "gst_webrtc_data_channel_on_close")] pub fn on_close(&self) { unsafe { ffi::gst_webrtc_data_channel_on_close(self.to_glib_none().0); @@ -48,6 +51,7 @@ impl WebRTCDataChannel { #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[doc(alias = "gst_webrtc_data_channel_on_message_data")] pub fn on_message_data(&self, data: Option<&glib::Bytes>) { unsafe { ffi::gst_webrtc_data_channel_on_message_data( @@ -59,6 +63,7 @@ impl WebRTCDataChannel { #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[doc(alias = "gst_webrtc_data_channel_on_message_string")] pub fn on_message_string(&self, str: Option<&str>) { unsafe { ffi::gst_webrtc_data_channel_on_message_string( @@ -70,6 +75,7 @@ impl WebRTCDataChannel { #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[doc(alias = "gst_webrtc_data_channel_on_open")] pub fn on_open(&self) { unsafe { ffi::gst_webrtc_data_channel_on_open(self.to_glib_none().0); @@ -78,6 +84,7 @@ impl WebRTCDataChannel { #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[doc(alias = "gst_webrtc_data_channel_send_data")] pub fn send_data(&self, data: Option<&glib::Bytes>) { unsafe { ffi::gst_webrtc_data_channel_send_data(self.to_glib_none().0, data.to_glib_none().0); @@ -86,6 +93,7 @@ impl WebRTCDataChannel { #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[doc(alias = "gst_webrtc_data_channel_send_string")] pub fn send_string(&self, str: Option<&str>) { unsafe { ffi::gst_webrtc_data_channel_send_string(self.to_glib_none().0, str.to_glib_none().0); diff --git a/gstreamer-webrtc/src/auto/web_rtcdtls_transport.rs b/gstreamer-webrtc/src/auto/web_rtcdtls_transport.rs index 462eb1504..71162e7f2 100644 --- a/gstreamer-webrtc/src/auto/web_rtcdtls_transport.rs +++ b/gstreamer-webrtc/src/auto/web_rtcdtls_transport.rs @@ -21,6 +21,7 @@ glib::glib_wrapper! { } impl WebRTCDTLSTransport { + #[doc(alias = "gst_webrtc_dtls_transport_new")] pub fn new(session_id: u32, rtcp: bool) -> WebRTCDTLSTransport { assert_initialized_main_thread!(); unsafe { @@ -31,6 +32,7 @@ impl WebRTCDTLSTransport { } } + #[doc(alias = "gst_webrtc_dtls_transport_set_transport")] pub fn set_transport(&self, ice: &WebRTCICETransport) { unsafe { ffi::gst_webrtc_dtls_transport_set_transport( diff --git a/gstreamer-webrtc/src/auto/web_rtcice_transport.rs b/gstreamer-webrtc/src/auto/web_rtcice_transport.rs index 2440608e6..cbb919186 100644 --- a/gstreamer-webrtc/src/auto/web_rtcice_transport.rs +++ b/gstreamer-webrtc/src/auto/web_rtcice_transport.rs @@ -22,6 +22,7 @@ glib::glib_wrapper! { } impl WebRTCICETransport { + #[doc(alias = "gst_webrtc_ice_transport_connection_state_change")] pub fn connection_state_change(&self, new_state: WebRTCICEConnectionState) { unsafe { ffi::gst_webrtc_ice_transport_connection_state_change( @@ -31,6 +32,7 @@ impl WebRTCICETransport { } } + #[doc(alias = "gst_webrtc_ice_transport_gathering_state_change")] pub fn gathering_state_change(&self, new_state: WebRTCICEGatheringState) { unsafe { ffi::gst_webrtc_ice_transport_gathering_state_change( @@ -40,6 +42,7 @@ impl WebRTCICETransport { } } + #[doc(alias = "gst_webrtc_ice_transport_new_candidate")] pub fn new_candidate(&self, stream_id: u32, component: WebRTCICEComponent, attr: &str) { unsafe { ffi::gst_webrtc_ice_transport_new_candidate( @@ -51,6 +54,7 @@ impl WebRTCICETransport { } } + #[doc(alias = "gst_webrtc_ice_transport_selected_pair_change")] pub fn selected_pair_change(&self) { unsafe { ffi::gst_webrtc_ice_transport_selected_pair_change(self.to_glib_none().0); diff --git a/gstreamer-webrtc/src/auto/web_rtcrtp_receiver.rs b/gstreamer-webrtc/src/auto/web_rtcrtp_receiver.rs index 96c9ad665..379c98ca0 100644 --- a/gstreamer-webrtc/src/auto/web_rtcrtp_receiver.rs +++ b/gstreamer-webrtc/src/auto/web_rtcrtp_receiver.rs @@ -14,11 +14,13 @@ glib::glib_wrapper! { } impl WebRTCRTPReceiver { + #[doc(alias = "gst_webrtc_rtp_receiver_new")] pub fn new() -> WebRTCRTPReceiver { assert_initialized_main_thread!(); unsafe { from_glib_none(ffi::gst_webrtc_rtp_receiver_new()) } } + #[doc(alias = "gst_webrtc_rtp_receiver_set_rtcp_transport")] pub fn set_rtcp_transport(&self, transport: &WebRTCDTLSTransport) { unsafe { ffi::gst_webrtc_rtp_receiver_set_rtcp_transport( @@ -28,6 +30,7 @@ impl WebRTCRTPReceiver { } } + #[doc(alias = "gst_webrtc_rtp_receiver_set_transport")] pub fn set_transport(&self, transport: &WebRTCDTLSTransport) { unsafe { ffi::gst_webrtc_rtp_receiver_set_transport( diff --git a/gstreamer-webrtc/src/auto/web_rtcrtp_sender.rs b/gstreamer-webrtc/src/auto/web_rtcrtp_sender.rs index e0f05acec..55bada11a 100644 --- a/gstreamer-webrtc/src/auto/web_rtcrtp_sender.rs +++ b/gstreamer-webrtc/src/auto/web_rtcrtp_sender.rs @@ -14,11 +14,13 @@ glib::glib_wrapper! { } impl WebRTCRTPSender { + #[doc(alias = "gst_webrtc_rtp_sender_new")] pub fn new() -> WebRTCRTPSender { assert_initialized_main_thread!(); unsafe { from_glib_none(ffi::gst_webrtc_rtp_sender_new()) } } + #[doc(alias = "gst_webrtc_rtp_sender_set_rtcp_transport")] pub fn set_rtcp_transport(&self, transport: &WebRTCDTLSTransport) { unsafe { ffi::gst_webrtc_rtp_sender_set_rtcp_transport( @@ -28,6 +30,7 @@ impl WebRTCRTPSender { } } + #[doc(alias = "gst_webrtc_rtp_sender_set_transport")] pub fn set_transport(&self, transport: &WebRTCDTLSTransport) { unsafe { ffi::gst_webrtc_rtp_sender_set_transport( diff --git a/gstreamer-webrtc/sys/build.rs b/gstreamer-webrtc/sys/build.rs index beb26524a..4cb086136 100644 --- a/gstreamer-webrtc/sys/build.rs +++ b/gstreamer-webrtc/sys/build.rs @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7) -// from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf) +// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd) // DO NOT EDIT #[cfg(not(feature = "dox"))] diff --git a/gstreamer-webrtc/sys/src/lib.rs b/gstreamer-webrtc/sys/src/lib.rs index 3a3116563..8f2faf231 100644 --- a/gstreamer-webrtc/sys/src/lib.rs +++ b/gstreamer-webrtc/sys/src/lib.rs @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7) -// from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf) +// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd) // DO NOT EDIT #![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)] diff --git a/gstreamer-webrtc/sys/tests/abi.rs b/gstreamer-webrtc/sys/tests/abi.rs index ec5846de9..b6e9c7d46 100644 --- a/gstreamer-webrtc/sys/tests/abi.rs +++ b/gstreamer-webrtc/sys/tests/abi.rs @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7) -// from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf) +// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd) // DO NOT EDIT use gstreamer_webrtc_sys::*; diff --git a/gstreamer-webrtc/sys/tests/constant.c b/gstreamer-webrtc/sys/tests/constant.c index c2ff6ab15..206014da6 100644 --- a/gstreamer-webrtc/sys/tests/constant.c +++ b/gstreamer-webrtc/sys/tests/constant.c @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7) -// from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf) +// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-webrtc/sys/tests/layout.c b/gstreamer-webrtc/sys/tests/layout.c index 64f4cfb9c..82c774a5d 100644 --- a/gstreamer-webrtc/sys/tests/layout.c +++ b/gstreamer-webrtc/sys/tests/layout.c @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7) -// from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf) +// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer/src/auto/allocator.rs b/gstreamer/src/auto/allocator.rs index 9997592f1..8dacbb0b3 100644 --- a/gstreamer/src/auto/allocator.rs +++ b/gstreamer/src/auto/allocator.rs @@ -15,11 +15,13 @@ glib::glib_wrapper! { } impl Allocator { + #[doc(alias = "gst_allocator_find")] pub fn find(name: Option<&str>) -> Option { assert_initialized_main_thread!(); unsafe { from_glib_full(ffi::gst_allocator_find(name.to_glib_none().0)) } } + #[doc(alias = "gst_allocator_register")] pub fn register>(name: &str, allocator: &P) { skip_assert_initialized!(); unsafe { @@ -34,10 +36,13 @@ unsafe impl Sync for Allocator {} pub const NONE_ALLOCATOR: Option<&Allocator> = None; pub trait AllocatorExt: 'static { + //#[doc(alias = "gst_allocator_alloc")] //fn alloc(&self, size: usize, params: /*Ignored*/Option<&mut AllocationParams>) -> /*Ignored*/Option; + //#[doc(alias = "gst_allocator_free")] //fn free(&self, memory: /*Ignored*/&Memory); + #[doc(alias = "gst_allocator_set_default")] fn set_default(&self); } diff --git a/gstreamer/src/auto/bin.rs b/gstreamer/src/auto/bin.rs index e7a8e22b3..bfc09cda5 100644 --- a/gstreamer/src/auto/bin.rs +++ b/gstreamer/src/auto/bin.rs @@ -28,6 +28,7 @@ glib::glib_wrapper! { } impl Bin { + #[doc(alias = "gst_bin_new")] pub fn new(name: Option<&str>) -> Bin { assert_initialized_main_thread!(); unsafe { Element::from_glib_none(ffi::gst_bin_new(name.to_glib_none().0)).unsafe_cast() } @@ -40,48 +41,67 @@ unsafe impl Sync for Bin {} pub const NONE_BIN: Option<&Bin> = None; 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; + #[doc(alias = "gst_bin_get_by_interface")] fn get_by_interface(&self, iface: glib::types::Type) -> Option; + #[doc(alias = "gst_bin_get_by_name")] fn get_by_name(&self, name: &str) -> Option; + #[doc(alias = "gst_bin_get_by_name_recurse_up")] fn get_by_name_recurse_up(&self, name: &str) -> Option; #[cfg(any(feature = "v1_10", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] + #[doc(alias = "gst_bin_get_suppressed_flags")] fn get_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")] fn set_suppressed_flags(&self, flags: ElementFlags); + #[doc(alias = "gst_bin_sync_children_states")] fn sync_children_states(&self) -> Result<(), glib::error::BoolError>; fn get_property_async_handling(&self) -> bool; diff --git a/gstreamer/src/auto/buffer_pool.rs b/gstreamer/src/auto/buffer_pool.rs index d1063ae16..1b7820ca0 100644 --- a/gstreamer/src/auto/buffer_pool.rs +++ b/gstreamer/src/auto/buffer_pool.rs @@ -20,14 +20,19 @@ unsafe impl Sync for BufferPool {} pub const NONE_BUFFER_POOL: Option<&BufferPool> = None; pub trait BufferPoolExt: 'static { + #[doc(alias = "gst_buffer_pool_get_options")] fn get_options(&self) -> Vec; + #[doc(alias = "gst_buffer_pool_has_option")] fn has_option(&self, option: &str) -> bool; + #[doc(alias = "gst_buffer_pool_is_active")] fn is_active(&self) -> bool; + #[doc(alias = "gst_buffer_pool_set_active")] fn set_active(&self, active: bool) -> Result<(), glib::error::BoolError>; + #[doc(alias = "gst_buffer_pool_set_flushing")] fn set_flushing(&self, flushing: bool); } diff --git a/gstreamer/src/auto/bus.rs b/gstreamer/src/auto/bus.rs index 255604ec0..8462cbfef 100644 --- a/gstreamer/src/auto/bus.rs +++ b/gstreamer/src/auto/bus.rs @@ -21,27 +21,32 @@ glib::glib_wrapper! { } impl Bus { + #[doc(alias = "gst_bus_new")] pub fn new() -> Bus { assert_initialized_main_thread!(); unsafe { from_glib_full(ffi::gst_bus_new()) } } + #[doc(alias = "gst_bus_add_signal_watch")] pub fn add_signal_watch(&self) { unsafe { ffi::gst_bus_add_signal_watch(self.to_glib_none().0); } } + //#[doc(alias = "gst_bus_async_signal_func")] //pub fn async_signal_func(&self, message: &Message, data: /*Unimplemented*/Option) -> bool { // unsafe { TODO: call ffi:gst_bus_async_signal_func() } //} + #[doc(alias = "gst_bus_disable_sync_message_emission")] pub fn disable_sync_message_emission(&self) { unsafe { ffi::gst_bus_disable_sync_message_emission(self.to_glib_none().0); } } + #[doc(alias = "gst_bus_enable_sync_message_emission")] pub fn enable_sync_message_emission(&self) { unsafe { ffi::gst_bus_enable_sync_message_emission(self.to_glib_none().0); @@ -50,22 +55,27 @@ impl Bus { //#[cfg(any(feature = "v1_14", feature = "dox"))] //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] + //#[doc(alias = "gst_bus_get_pollfd")] //pub fn get_pollfd(&self, fd: /*Ignored*/glib::PollFD) { // unsafe { TODO: call ffi:gst_bus_get_pollfd() } //} + #[doc(alias = "gst_bus_have_pending")] pub fn have_pending(&self) -> bool { unsafe { from_glib(ffi::gst_bus_have_pending(self.to_glib_none().0)) } } + #[doc(alias = "gst_bus_peek")] pub fn peek(&self) -> Option { unsafe { from_glib_full(ffi::gst_bus_peek(self.to_glib_none().0)) } } + #[doc(alias = "gst_bus_pop")] pub fn pop(&self) -> Option { unsafe { from_glib_full(ffi::gst_bus_pop(self.to_glib_none().0)) } } + #[doc(alias = "gst_bus_post")] pub fn post(&self, message: &Message) -> Result<(), glib::error::BoolError> { unsafe { glib::glib_result_from_gboolean!( @@ -75,12 +85,14 @@ impl Bus { } } + #[doc(alias = "gst_bus_remove_signal_watch")] pub fn remove_signal_watch(&self) { unsafe { ffi::gst_bus_remove_signal_watch(self.to_glib_none().0); } } + #[doc(alias = "gst_bus_remove_watch")] pub fn remove_watch(&self) -> Result<(), glib::error::BoolError> { unsafe { glib::glib_result_from_gboolean!( @@ -90,16 +102,19 @@ impl Bus { } } + #[doc(alias = "gst_bus_set_flushing")] pub fn set_flushing(&self, flushing: bool) { unsafe { ffi::gst_bus_set_flushing(self.to_glib_none().0, flushing.to_glib()); } } + //#[doc(alias = "gst_bus_sync_signal_handler")] //pub fn sync_signal_handler(&self, message: &Message, data: /*Unimplemented*/Option) -> BusSyncReply { // unsafe { TODO: call ffi:gst_bus_sync_signal_handler() } //} + #[doc(alias = "gst_bus_timed_pop")] pub fn timed_pop(&self, timeout: ClockTime) -> Option { unsafe { from_glib_full(ffi::gst_bus_timed_pop( diff --git a/gstreamer/src/auto/child_proxy.rs b/gstreamer/src/auto/child_proxy.rs index b4b7d3e55..ff3a0768d 100644 --- a/gstreamer/src/auto/child_proxy.rs +++ b/gstreamer/src/auto/child_proxy.rs @@ -24,24 +24,34 @@ unsafe impl Sync for ChildProxy {} pub const NONE_CHILD_PROXY: Option<&ChildProxy> = None; pub trait ChildProxyExt: 'static { + #[doc(alias = "gst_child_proxy_child_added")] fn child_added>(&self, child: &P, name: &str); + #[doc(alias = "gst_child_proxy_child_removed")] fn child_removed>(&self, child: &P, name: &str); + //#[doc(alias = "gst_child_proxy_get")] //fn get(&self, first_property_name: &str, : /*Unknown conversion*//*Unimplemented*/Fundamental: VarArgs); + #[doc(alias = "gst_child_proxy_get_child_by_index")] fn get_child_by_index(&self, index: u32) -> Option; + #[doc(alias = "gst_child_proxy_get_child_by_name")] fn get_child_by_name(&self, name: &str) -> Option; + #[doc(alias = "gst_child_proxy_get_children_count")] fn get_children_count(&self) -> u32; + //#[doc(alias = "gst_child_proxy_get_valist")] //fn get_valist(&self, first_property_name: &str, var_args: /*Unknown conversion*//*Unimplemented*/Unsupported); + //#[doc(alias = "gst_child_proxy_lookup")] //fn lookup(&self, name: &str, pspec: /*Ignored*/glib::ParamSpec) -> Option; + //#[doc(alias = "gst_child_proxy_set")] //fn set(&self, first_property_name: &str, : /*Unknown conversion*//*Unimplemented*/Fundamental: VarArgs); + //#[doc(alias = "gst_child_proxy_set_valist")] //fn set_valist(&self, first_property_name: &str, var_args: /*Unknown conversion*//*Unimplemented*/Unsupported); fn connect_child_added( diff --git a/gstreamer/src/auto/clock.rs b/gstreamer/src/auto/clock.rs index 685bd0653..6d3fdcd14 100644 --- a/gstreamer/src/auto/clock.rs +++ b/gstreamer/src/auto/clock.rs @@ -23,42 +23,51 @@ glib::glib_wrapper! { } impl Clock { + //#[doc(alias = "gst_clock_id_compare_func")] //pub fn id_compare_func(id1: /*Unimplemented*/Option, id2: /*Unimplemented*/Option) -> i32 { // unsafe { TODO: call ffi:gst_clock_id_compare_func() } //} //#[cfg(any(feature = "v1_16", feature = "dox"))] //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + //#[doc(alias = "gst_clock_id_get_clock")] //pub fn id_get_clock(id: /*Unimplemented*/ClockID) -> Option { // unsafe { TODO: call ffi:gst_clock_id_get_clock() } //} + //#[doc(alias = "gst_clock_id_get_time")] //pub fn id_get_time(id: /*Unimplemented*/ClockID) -> ClockTime { // unsafe { TODO: call ffi:gst_clock_id_get_time() } //} + //#[doc(alias = "gst_clock_id_ref")] //pub fn id_ref(id: /*Unimplemented*/ClockID) -> /*Unimplemented*/ClockID { // unsafe { TODO: call ffi:gst_clock_id_ref() } //} + //#[doc(alias = "gst_clock_id_unref")] //pub fn id_unref(id: /*Unimplemented*/ClockID) { // unsafe { TODO: call ffi:gst_clock_id_unref() } //} + //#[doc(alias = "gst_clock_id_unschedule")] //pub fn id_unschedule(id: /*Unimplemented*/ClockID) { // unsafe { TODO: call ffi:gst_clock_id_unschedule() } //} //#[cfg(any(feature = "v1_16", feature = "dox"))] //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + //#[doc(alias = "gst_clock_id_uses_clock")] //pub fn id_uses_clock>(id: /*Unimplemented*/ClockID, clock: &P) -> bool { // unsafe { TODO: call ffi:gst_clock_id_uses_clock() } //} + //#[doc(alias = "gst_clock_id_wait")] //pub fn id_wait(id: /*Unimplemented*/ClockID) -> (ClockReturn, ClockTimeDiff) { // unsafe { TODO: call ffi:gst_clock_id_wait() } //} + //#[doc(alias = "gst_clock_id_wait_async")] //pub fn id_wait_async(id: /*Unimplemented*/ClockID, func: /*Unimplemented*/Fn(&Clock, ClockTime, /*Unimplemented*/ClockID) -> bool, user_data: /*Unimplemented*/Option) -> ClockReturn { // unsafe { TODO: call ffi:gst_clock_id_wait_async() } //} @@ -70,36 +79,50 @@ unsafe impl Sync for Clock {} pub const NONE_CLOCK: Option<&Clock> = None; pub trait ClockExt: 'static { + #[doc(alias = "gst_clock_add_observation")] fn add_observation(&self, slave: ClockTime, master: ClockTime) -> Option; + #[doc(alias = "gst_clock_add_observation_unapplied")] fn add_observation_unapplied( &self, slave: ClockTime, master: ClockTime, ) -> Option<(f64, ClockTime, ClockTime, ClockTime, ClockTime)>; + #[doc(alias = "gst_clock_adjust_unlocked")] fn adjust_unlocked(&self, internal: ClockTime) -> ClockTime; + #[doc(alias = "gst_clock_get_calibration")] fn get_calibration(&self) -> (ClockTime, ClockTime, ClockTime, ClockTime); + #[doc(alias = "gst_clock_get_internal_time")] fn get_internal_time(&self) -> ClockTime; + #[doc(alias = "gst_clock_get_master")] fn get_master(&self) -> Option; + #[doc(alias = "gst_clock_get_resolution")] fn get_resolution(&self) -> ClockTime; + #[doc(alias = "gst_clock_get_time")] fn get_time(&self) -> ClockTime; + #[doc(alias = "gst_clock_get_timeout")] fn get_timeout(&self) -> ClockTime; + #[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, internal: ClockTime, @@ -108,18 +131,25 @@ pub trait ClockExt: 'static { rate_denom: ClockTime, ); + #[doc(alias = "gst_clock_set_master")] fn set_master>(&self, master: Option<&P>) -> Result<(), glib::error::BoolError>; + #[doc(alias = "gst_clock_set_resolution")] fn set_resolution(&self, resolution: ClockTime) -> ClockTime; + #[doc(alias = "gst_clock_set_synced")] fn set_synced(&self, synced: bool); + #[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; + #[doc(alias = "gst_clock_wait_for_sync")] fn wait_for_sync(&self, timeout: ClockTime) -> Result<(), glib::error::BoolError>; fn get_property_window_size(&self) -> i32; diff --git a/gstreamer/src/auto/control_binding.rs b/gstreamer/src/auto/control_binding.rs index d929a239e..ee79c4522 100644 --- a/gstreamer/src/auto/control_binding.rs +++ b/gstreamer/src/auto/control_binding.rs @@ -22,14 +22,19 @@ unsafe impl Sync for ControlBinding {} pub const NONE_CONTROL_BINDING: Option<&ControlBinding> = None; pub trait ControlBindingExt: 'static { + #[doc(alias = "gst_control_binding_get_value")] fn get_value(&self, timestamp: ClockTime) -> Option; + //#[doc(alias = "gst_control_binding_get_value_array")] //fn get_value_array(&self, timestamp: ClockTime, interval: ClockTime, values: /*Unimplemented*/&[&Fundamental: Pointer]) -> bool; + #[doc(alias = "gst_control_binding_is_disabled")] fn is_disabled(&self) -> bool; + #[doc(alias = "gst_control_binding_set_disabled")] fn set_disabled(&self, disabled: bool); + #[doc(alias = "gst_control_binding_sync_values")] fn sync_values>( &self, object: &P, diff --git a/gstreamer/src/auto/control_source.rs b/gstreamer/src/auto/control_source.rs index de3672256..757177e17 100644 --- a/gstreamer/src/auto/control_source.rs +++ b/gstreamer/src/auto/control_source.rs @@ -22,6 +22,7 @@ unsafe impl Sync for ControlSource {} pub const NONE_CONTROL_SOURCE: Option<&ControlSource> = None; pub trait ControlSourceExt: 'static { + #[doc(alias = "gst_control_source_get_value")] fn get_value(&self, timestamp: ClockTime) -> Option; } diff --git a/gstreamer/src/auto/date_time.rs b/gstreamer/src/auto/date_time.rs index f8ee0e15e..4d7b77d27 100644 --- a/gstreamer/src/auto/date_time.rs +++ b/gstreamer/src/auto/date_time.rs @@ -16,6 +16,7 @@ glib::glib_wrapper! { } impl DateTime { + #[doc(alias = "gst_date_time_new_from_g_date_time")] pub fn from_g_date_time(dt: &glib::DateTime) -> Result { assert_initialized_main_thread!(); unsafe { @@ -24,6 +25,7 @@ impl DateTime { } } + #[doc(alias = "gst_date_time_new_from_iso8601_string")] pub fn from_iso8601_string(string: &str) -> Result { assert_initialized_main_thread!(); unsafe { @@ -34,6 +36,7 @@ impl DateTime { } } + #[doc(alias = "gst_date_time_new_from_unix_epoch_local_time")] pub fn from_unix_epoch_local_time(secs: i64) -> Result { assert_initialized_main_thread!(); unsafe { @@ -44,6 +47,7 @@ impl DateTime { #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[doc(alias = "gst_date_time_new_from_unix_epoch_local_time_usecs")] pub fn from_unix_epoch_local_time_usecs(usecs: i64) -> Result { assert_initialized_main_thread!(); unsafe { @@ -54,6 +58,7 @@ impl DateTime { } } + #[doc(alias = "gst_date_time_new_from_unix_epoch_utc")] pub fn from_unix_epoch_utc(secs: i64) -> Result { assert_initialized_main_thread!(); unsafe { @@ -64,6 +69,7 @@ impl DateTime { #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[doc(alias = "gst_date_time_new_from_unix_epoch_utc_usecs")] pub fn from_unix_epoch_utc_usecs(usecs: i64) -> Result { assert_initialized_main_thread!(); unsafe { @@ -72,40 +78,49 @@ impl DateTime { } } + #[doc(alias = "gst_date_time_new_now_local_time")] pub fn new_now_local_time() -> DateTime { assert_initialized_main_thread!(); unsafe { from_glib_full(ffi::gst_date_time_new_now_local_time()) } } + #[doc(alias = "gst_date_time_new_now_utc")] pub fn new_now_utc() -> DateTime { assert_initialized_main_thread!(); unsafe { from_glib_full(ffi::gst_date_time_new_now_utc()) } } + #[doc(alias = "gst_date_time_get_year")] pub fn get_year(&self) -> i32 { unsafe { ffi::gst_date_time_get_year(self.to_glib_none().0) } } + #[doc(alias = "gst_date_time_has_day")] pub fn has_day(&self) -> bool { unsafe { from_glib(ffi::gst_date_time_has_day(self.to_glib_none().0)) } } + #[doc(alias = "gst_date_time_has_month")] pub fn has_month(&self) -> bool { unsafe { from_glib(ffi::gst_date_time_has_month(self.to_glib_none().0)) } } + #[doc(alias = "gst_date_time_has_second")] pub fn has_second(&self) -> bool { unsafe { from_glib(ffi::gst_date_time_has_second(self.to_glib_none().0)) } } + #[doc(alias = "gst_date_time_has_time")] pub fn has_time(&self) -> bool { unsafe { from_glib(ffi::gst_date_time_has_time(self.to_glib_none().0)) } } + #[doc(alias = "gst_date_time_has_year")] pub fn has_year(&self) -> bool { unsafe { from_glib(ffi::gst_date_time_has_year(self.to_glib_none().0)) } } + #[doc(alias = "gst_date_time_to_g_date_time")] pub fn to_g_date_time(&self) -> Result { unsafe { Option::<_>::from_glib_full(ffi::gst_date_time_to_g_date_time(self.to_glib_none().0)) @@ -113,6 +128,7 @@ impl DateTime { } } + #[doc(alias = "gst_date_time_to_iso8601_string")] pub fn to_iso8601_string(&self) -> Result { unsafe { Option::<_>::from_glib_full(ffi::gst_date_time_to_iso8601_string(self.to_glib_none().0)) diff --git a/gstreamer/src/auto/device.rs b/gstreamer/src/auto/device.rs index a370de2ba..b32ee4b78 100644 --- a/gstreamer/src/auto/device.rs +++ b/gstreamer/src/auto/device.rs @@ -28,20 +28,28 @@ unsafe impl Sync for Device {} pub const NONE_DEVICE: Option<&Device> = None; pub trait DeviceExt: 'static { + #[doc(alias = "gst_device_create_element")] fn create_element(&self, name: Option<&str>) -> Result; + #[doc(alias = "gst_device_get_caps")] fn get_caps(&self) -> Option; + #[doc(alias = "gst_device_get_device_class")] fn get_device_class(&self) -> glib::GString; + #[doc(alias = "gst_device_get_display_name")] fn get_display_name(&self) -> glib::GString; + #[doc(alias = "gst_device_get_properties")] fn get_properties(&self) -> Option; + #[doc(alias = "gst_device_has_classes")] fn has_classes(&self, classes: &str) -> bool; + #[doc(alias = "gst_device_has_classesv")] fn has_classesv(&self, classes: &[&str]) -> bool; + #[doc(alias = "gst_device_reconfigure_element")] fn reconfigure_element>( &self, element: &P, diff --git a/gstreamer/src/auto/device_monitor.rs b/gstreamer/src/auto/device_monitor.rs index 063a55481..fe38f4139 100644 --- a/gstreamer/src/auto/device_monitor.rs +++ b/gstreamer/src/auto/device_monitor.rs @@ -28,18 +28,25 @@ unsafe impl Sync for DeviceMonitor {} pub const NONE_DEVICE_MONITOR: Option<&DeviceMonitor> = None; pub trait DeviceMonitorExt: 'static { + #[doc(alias = "gst_device_monitor_get_bus")] fn get_bus(&self) -> Bus; + #[doc(alias = "gst_device_monitor_get_devices")] fn get_devices(&self) -> Vec; + #[doc(alias = "gst_device_monitor_get_providers")] fn get_providers(&self) -> Vec; + #[doc(alias = "gst_device_monitor_get_show_all_devices")] fn get_show_all_devices(&self) -> bool; + #[doc(alias = "gst_device_monitor_set_show_all_devices")] fn set_show_all_devices(&self, show_all: bool); + #[doc(alias = "gst_device_monitor_start")] fn start(&self) -> Result<(), glib::error::BoolError>; + #[doc(alias = "gst_device_monitor_stop")] fn stop(&self); fn get_property_show_all(&self) -> bool; diff --git a/gstreamer/src/auto/device_provider.rs b/gstreamer/src/auto/device_provider.rs index 426638538..f6293ea31 100644 --- a/gstreamer/src/auto/device_provider.rs +++ b/gstreamer/src/auto/device_provider.rs @@ -28,30 +28,42 @@ unsafe impl Sync for DeviceProvider {} pub const NONE_DEVICE_PROVIDER: Option<&DeviceProvider> = None; pub trait DeviceProviderExt: 'static { + #[doc(alias = "gst_device_provider_can_monitor")] fn can_monitor(&self) -> bool; + #[doc(alias = "gst_device_provider_device_add")] fn device_add>(&self, device: &P); #[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[doc(alias = "gst_device_provider_device_changed")] fn device_changed, Q: IsA>(&self, device: &P, changed_device: &Q); + #[doc(alias = "gst_device_provider_device_remove")] fn device_remove>(&self, device: &P); + #[doc(alias = "gst_device_provider_get_bus")] fn get_bus(&self) -> Bus; + #[doc(alias = "gst_device_provider_get_devices")] fn get_devices(&self) -> Vec; + #[doc(alias = "gst_device_provider_get_factory")] fn get_factory(&self) -> Option; + #[doc(alias = "gst_device_provider_get_hidden_providers")] fn get_hidden_providers(&self) -> Vec; + #[doc(alias = "gst_device_provider_hide_provider")] fn hide_provider(&self, name: &str); + #[doc(alias = "gst_device_provider_start")] fn start(&self) -> Result<(), glib::error::BoolError>; + #[doc(alias = "gst_device_provider_stop")] fn stop(&self); + #[doc(alias = "gst_device_provider_unhide_provider")] fn unhide_provider(&self, name: &str); fn connect_provider_hidden( diff --git a/gstreamer/src/auto/device_provider_factory.rs b/gstreamer/src/auto/device_provider_factory.rs index ef8dfb54b..177b26510 100644 --- a/gstreamer/src/auto/device_provider_factory.rs +++ b/gstreamer/src/auto/device_provider_factory.rs @@ -17,10 +17,12 @@ glib::glib_wrapper! { } impl DeviceProviderFactory { + #[doc(alias = "gst_device_provider_factory_get")] pub fn get(&self) -> Option { unsafe { from_glib_full(ffi::gst_device_provider_factory_get(self.to_glib_none().0)) } } + #[doc(alias = "gst_device_provider_factory_get_device_provider_type")] pub fn get_device_provider_type(&self) -> glib::types::Type { unsafe { from_glib(ffi::gst_device_provider_factory_get_device_provider_type( @@ -29,6 +31,7 @@ impl DeviceProviderFactory { } } + #[doc(alias = "gst_device_provider_factory_get_metadata")] pub fn get_metadata(&self, key: &str) -> Option { unsafe { from_glib_none(ffi::gst_device_provider_factory_get_metadata( @@ -38,6 +41,7 @@ impl DeviceProviderFactory { } } + #[doc(alias = "gst_device_provider_factory_get_metadata_keys")] pub fn get_metadata_keys(&self) -> Vec { unsafe { FromGlibPtrContainer::from_glib_full( @@ -46,6 +50,7 @@ impl DeviceProviderFactory { } } + #[doc(alias = "gst_device_provider_factory_has_classes")] pub fn has_classes(&self, classes: Option<&str>) -> bool { unsafe { from_glib(ffi::gst_device_provider_factory_has_classes( @@ -55,6 +60,7 @@ impl DeviceProviderFactory { } } + #[doc(alias = "gst_device_provider_factory_has_classesv")] pub fn has_classesv(&self, classes: &[&str]) -> bool { unsafe { from_glib(ffi::gst_device_provider_factory_has_classesv( @@ -64,11 +70,13 @@ impl DeviceProviderFactory { } } + #[doc(alias = "gst_device_provider_factory_find")] pub fn find(name: &str) -> Option { assert_initialized_main_thread!(); unsafe { from_glib_full(ffi::gst_device_provider_factory_find(name.to_glib_none().0)) } } + #[doc(alias = "gst_device_provider_factory_get_by_name")] pub fn get_by_name(factoryname: &str) -> Option { assert_initialized_main_thread!(); unsafe { @@ -78,6 +86,7 @@ impl DeviceProviderFactory { } } + #[doc(alias = "gst_device_provider_factory_list_get_device_providers")] pub fn list_get_device_providers(minrank: Rank) -> Vec { assert_initialized_main_thread!(); unsafe { diff --git a/gstreamer/src/auto/element.rs b/gstreamer/src/auto/element.rs index 8543d0ec4..b57fdf345 100644 --- a/gstreamer/src/auto/element.rs +++ b/gstreamer/src/auto/element.rs @@ -31,6 +31,7 @@ glib::glib_wrapper! { } impl Element { + #[doc(alias = "gst_element_make_from_uri")] pub fn make_from_uri( type_: URIType, uri: &str, @@ -60,64 +61,89 @@ unsafe impl Sync for Element {} pub const NONE_ELEMENT: Option<&Element> = None; pub trait ElementExt: 'static { + #[doc(alias = "gst_element_abort_state")] fn abort_state(&self); + #[doc(alias = "gst_element_add_pad")] fn add_pad>(&self, pad: &P) -> Result<(), glib::error::BoolError>; + #[doc(alias = "gst_element_create_all_pads")] fn create_all_pads(&self); #[cfg(any(feature = "v1_14", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] + #[doc(alias = "gst_element_foreach_pad")] fn foreach_pad bool>(&self, func: P) -> bool; #[cfg(any(feature = "v1_14", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] + #[doc(alias = "gst_element_foreach_sink_pad")] fn foreach_sink_pad bool>(&self, func: P) -> bool; #[cfg(any(feature = "v1_14", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] + #[doc(alias = "gst_element_foreach_src_pad")] fn foreach_src_pad bool>(&self, func: P) -> bool; + #[doc(alias = "gst_element_get_base_time")] fn get_base_time(&self) -> ClockTime; + #[doc(alias = "gst_element_get_bus")] fn get_bus(&self) -> Option; + #[doc(alias = "gst_element_get_clock")] fn get_clock(&self) -> Option; + #[doc(alias = "gst_element_get_compatible_pad")] fn get_compatible_pad>(&self, pad: &P, caps: Option<&Caps>) -> Option; + #[doc(alias = "gst_element_get_compatible_pad_template")] fn get_compatible_pad_template(&self, compattempl: &PadTemplate) -> Option; + #[doc(alias = "gst_element_get_context")] fn get_context(&self, context_type: &str) -> Option; + #[doc(alias = "gst_element_get_contexts")] fn get_contexts(&self) -> Vec; + #[doc(alias = "gst_element_get_factory")] fn get_factory(&self) -> Option; + #[doc(alias = "gst_element_get_request_pad")] fn get_request_pad(&self, name: &str) -> Option; + #[doc(alias = "gst_element_get_start_time")] fn get_start_time(&self) -> ClockTime; + #[doc(alias = "gst_element_get_static_pad")] fn get_static_pad(&self, name: &str) -> Option; + #[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>; + #[doc(alias = "gst_element_link_filtered")] fn link_filtered>( &self, dest: &P, filter: Option<&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, srcpadname: Option<&str>, @@ -125,6 +151,7 @@ pub trait ElementExt: 'static { destpadname: Option<&str>, ) -> Result<(), glib::error::BoolError>; + #[doc(alias = "gst_element_link_pads_filtered")] fn link_pads_filtered>( &self, srcpadname: Option<&str>, @@ -133,6 +160,7 @@ pub trait ElementExt: 'static { filter: Option<&Caps>, ) -> Result<(), glib::error::BoolError>; + #[doc(alias = "gst_element_link_pads_full")] fn link_pads_full>( &self, srcpadname: Option<&str>, @@ -141,22 +169,30 @@ pub trait ElementExt: 'static { flags: PadLinkCheck, ) -> Result<(), glib::error::BoolError>; + #[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); + #[doc(alias = "gst_element_provide_clock")] fn provide_clock(&self) -> Option; + #[doc(alias = "gst_element_release_request_pad")] fn release_request_pad>(&self, pad: &P); + #[doc(alias = "gst_element_remove_pad")] fn remove_pad>(&self, pad: &P) -> Result<(), glib::error::BoolError>; + #[doc(alias = "gst_element_request_pad")] fn request_pad( &self, templ: &PadTemplate, @@ -164,24 +200,34 @@ pub trait ElementExt: 'static { caps: Option<&Caps>, ) -> Option; + #[doc(alias = "gst_element_set_base_time")] fn set_base_time(&self, time: ClockTime); + #[doc(alias = "gst_element_set_bus")] fn set_bus(&self, bus: Option<&Bus>); + #[doc(alias = "gst_element_set_clock")] fn set_clock>(&self, clock: Option<&P>) -> Result<(), glib::error::BoolError>; + #[doc(alias = "gst_element_set_context")] fn set_context(&self, context: &Context); + #[doc(alias = "gst_element_set_locked_state")] fn set_locked_state(&self, locked_state: bool) -> bool; + #[doc(alias = "gst_element_set_start_time")] fn set_start_time(&self, time: ClockTime); + #[doc(alias = "gst_element_sync_state_with_parent")] fn sync_state_with_parent(&self) -> Result<(), glib::error::BoolError>; + #[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); fn connect_no_more_pads(&self, f: F) -> SignalHandlerId; diff --git a/gstreamer/src/auto/element_factory.rs b/gstreamer/src/auto/element_factory.rs index f39b2755b..9e83f1c8c 100644 --- a/gstreamer/src/auto/element_factory.rs +++ b/gstreamer/src/auto/element_factory.rs @@ -22,6 +22,7 @@ glib::glib_wrapper! { } impl ElementFactory { + #[doc(alias = "gst_element_factory_can_sink_all_caps")] pub fn can_sink_all_caps(&self, caps: &Caps) -> bool { unsafe { from_glib(ffi::gst_element_factory_can_sink_all_caps( @@ -31,6 +32,7 @@ impl ElementFactory { } } + #[doc(alias = "gst_element_factory_can_sink_any_caps")] pub fn can_sink_any_caps(&self, caps: &Caps) -> bool { unsafe { from_glib(ffi::gst_element_factory_can_sink_any_caps( @@ -40,6 +42,7 @@ impl ElementFactory { } } + #[doc(alias = "gst_element_factory_can_src_all_caps")] pub fn can_src_all_caps(&self, caps: &Caps) -> bool { unsafe { from_glib(ffi::gst_element_factory_can_src_all_caps( @@ -49,6 +52,7 @@ impl ElementFactory { } } + #[doc(alias = "gst_element_factory_can_src_any_caps")] pub fn can_src_any_caps(&self, caps: &Caps) -> bool { unsafe { from_glib(ffi::gst_element_factory_can_src_any_caps( @@ -58,6 +62,7 @@ impl ElementFactory { } } + #[doc(alias = "gst_element_factory_create")] pub fn create(&self, name: Option<&str>) -> Result { unsafe { Option::<_>::from_glib_none(ffi::gst_element_factory_create( @@ -68,6 +73,7 @@ impl ElementFactory { } } + #[doc(alias = "gst_element_factory_get_element_type")] pub fn get_element_type(&self) -> glib::types::Type { unsafe { from_glib(ffi::gst_element_factory_get_element_type( @@ -76,6 +82,7 @@ impl ElementFactory { } } + #[doc(alias = "gst_element_factory_get_metadata")] pub fn get_metadata(&self, key: &str) -> Option { unsafe { from_glib_none(ffi::gst_element_factory_get_metadata( @@ -85,6 +92,7 @@ impl ElementFactory { } } + #[doc(alias = "gst_element_factory_get_metadata_keys")] pub fn get_metadata_keys(&self) -> Vec { unsafe { FromGlibPtrContainer::from_glib_full(ffi::gst_element_factory_get_metadata_keys( @@ -93,10 +101,12 @@ impl ElementFactory { } } + #[doc(alias = "gst_element_factory_get_num_pad_templates")] pub fn get_num_pad_templates(&self) -> u32 { unsafe { ffi::gst_element_factory_get_num_pad_templates(self.to_glib_none().0) } } + #[doc(alias = "gst_element_factory_get_static_pad_templates")] pub fn get_static_pad_templates(&self) -> Vec { unsafe { FromGlibPtrContainer::from_glib_none(ffi::gst_element_factory_get_static_pad_templates( @@ -105,6 +115,7 @@ impl ElementFactory { } } + #[doc(alias = "gst_element_factory_get_uri_protocols")] pub fn get_uri_protocols(&self) -> Vec { unsafe { FromGlibPtrContainer::from_glib_none(ffi::gst_element_factory_get_uri_protocols( @@ -113,10 +124,12 @@ impl ElementFactory { } } + #[doc(alias = "gst_element_factory_get_uri_type")] pub fn get_uri_type(&self) -> URIType { unsafe { from_glib(ffi::gst_element_factory_get_uri_type(self.to_glib_none().0)) } } + #[doc(alias = "gst_element_factory_has_interface")] pub fn has_interface(&self, interfacename: &str) -> bool { unsafe { from_glib(ffi::gst_element_factory_has_interface( @@ -126,6 +139,7 @@ impl ElementFactory { } } + #[doc(alias = "gst_element_factory_list_is_type")] pub fn list_is_type(&self, type_: ElementFactoryListType) -> bool { unsafe { from_glib(ffi::gst_element_factory_list_is_type( @@ -135,11 +149,13 @@ impl ElementFactory { } } + #[doc(alias = "gst_element_factory_find")] pub fn find(name: &str) -> Option { assert_initialized_main_thread!(); unsafe { from_glib_full(ffi::gst_element_factory_find(name.to_glib_none().0)) } } + #[doc(alias = "gst_element_factory_list_filter")] pub fn list_filter( list: &[ElementFactory], caps: &Caps, @@ -157,6 +173,7 @@ impl ElementFactory { } } + #[doc(alias = "gst_element_factory_list_get_elements")] pub fn list_get_elements(type_: ElementFactoryListType, minrank: Rank) -> Vec { assert_initialized_main_thread!(); unsafe { @@ -167,6 +184,7 @@ impl ElementFactory { } } + #[doc(alias = "gst_element_factory_make")] pub fn make(factoryname: &str, name: Option<&str>) -> Result { assert_initialized_main_thread!(); unsafe { diff --git a/gstreamer/src/auto/enums.rs b/gstreamer/src/auto/enums.rs index 936be639e..de5e5b860 100644 --- a/gstreamer/src/auto/enums.rs +++ b/gstreamer/src/auto/enums.rs @@ -42,7 +42,7 @@ impl ToGlib for BufferingMode { #[doc(hidden)] impl FromGlib for BufferingMode { - fn from_glib(value: ffi::GstBufferingMode) -> Self { + unsafe fn from_glib(value: ffi::GstBufferingMode) -> Self { skip_assert_initialized!(); match value { 0 => BufferingMode::Stream, @@ -104,7 +104,7 @@ impl ToGlib for BusSyncReply { #[doc(hidden)] impl FromGlib for BusSyncReply { - fn from_glib(value: ffi::GstBusSyncReply) -> Self { + unsafe fn from_glib(value: ffi::GstBusSyncReply) -> Self { skip_assert_initialized!(); match value { 0 => BusSyncReply::Drop, @@ -163,7 +163,7 @@ impl ToGlib for CapsIntersectMode { #[doc(hidden)] impl FromGlib for CapsIntersectMode { - fn from_glib(value: ffi::GstCapsIntersectMode) -> Self { + unsafe fn from_glib(value: ffi::GstCapsIntersectMode) -> Self { skip_assert_initialized!(); match value { 0 => CapsIntersectMode::ZigZag, @@ -221,7 +221,7 @@ impl ToGlib for ClockEntryType { #[doc(hidden)] impl FromGlib for ClockEntryType { - fn from_glib(value: ffi::GstClockEntryType) -> Self { + unsafe fn from_glib(value: ffi::GstClockEntryType) -> Self { skip_assert_initialized!(); match value { 0 => ClockEntryType::Single, @@ -292,7 +292,7 @@ impl ToGlib for ClockReturn { #[doc(hidden)] impl FromGlib for ClockReturn { - fn from_glib(value: ffi::GstClockReturn) -> Self { + unsafe fn from_glib(value: ffi::GstClockReturn) -> Self { skip_assert_initialized!(); match value { 0 => ClockReturn::Ok, @@ -363,7 +363,7 @@ impl ToGlib for ClockType { #[doc(hidden)] impl FromGlib for ClockType { - fn from_glib(value: ffi::GstClockType) -> Self { + unsafe fn from_glib(value: ffi::GstClockType) -> Self { skip_assert_initialized!(); match value { 0 => ClockType::Realtime, @@ -450,7 +450,7 @@ impl ToGlib for CoreError { #[doc(hidden)] impl FromGlib for CoreError { - fn from_glib(value: ffi::GstCoreError) -> Self { + unsafe fn from_glib(value: ffi::GstCoreError) -> Self { skip_assert_initialized!(); match value { 1 => CoreError::Failed, @@ -592,7 +592,7 @@ impl ToGlib for DebugLevel { #[doc(hidden)] impl FromGlib for DebugLevel { - fn from_glib(value: ffi::GstDebugLevel) -> Self { + unsafe fn from_glib(value: ffi::GstDebugLevel) -> Self { skip_assert_initialized!(); match value { 0 => DebugLevel::None, @@ -682,6 +682,7 @@ pub enum EventType { } impl EventType { + #[doc(alias = "gst_event_type_get_flags")] pub fn get_flags(self) -> EventTypeFlags { assert_initialized_main_thread!(); unsafe { from_glib(ffi::gst_event_type_get_flags(self.to_glib())) } @@ -699,6 +700,7 @@ impl EventType { } } + #[doc(alias = "gst_event_type_to_quark")] pub fn to_quark(self) -> glib::Quark { assert_initialized_main_thread!(); unsafe { from_glib(ffi::gst_event_type_to_quark(self.to_glib())) } @@ -761,7 +763,7 @@ impl ToGlib for EventType { #[doc(hidden)] impl FromGlib for EventType { - fn from_glib(value: ffi::GstEventType) -> Self { + unsafe fn from_glib(value: ffi::GstEventType) -> Self { skip_assert_initialized!(); match value { 0 => EventType::Unknown, @@ -876,7 +878,7 @@ impl ToGlib for FlowReturn { #[doc(hidden)] impl FromGlib for FlowReturn { - fn from_glib(value: ffi::GstFlowReturn) -> Self { + unsafe fn from_glib(value: ffi::GstFlowReturn) -> Self { skip_assert_initialized!(); match value { 102 => FlowReturn::CustomSuccess2, @@ -936,24 +938,29 @@ pub enum Format { } impl Format { + #[doc(alias = "gst_format_get_by_nick")] pub fn get_by_nick(nick: &str) -> Format { assert_initialized_main_thread!(); unsafe { from_glib(ffi::gst_format_get_by_nick(nick.to_glib_none().0)) } } + //#[doc(alias = "gst_format_get_details")] //pub fn get_details(self) -> /*Ignored*/Option { // unsafe { TODO: call ffi:gst_format_get_details() } //} + #[doc(alias = "gst_format_get_name")] pub fn get_name(self) -> Option { assert_initialized_main_thread!(); unsafe { from_glib_none(ffi::gst_format_get_name(self.to_glib())) } } + //#[doc(alias = "gst_format_iterate_definitions")] //pub fn iterate_definitions() -> /*Ignored*/Iterator { // unsafe { TODO: call ffi:gst_format_iterate_definitions() } //} + #[doc(alias = "gst_format_to_quark")] pub fn to_quark(self) -> glib::Quark { assert_initialized_main_thread!(); unsafe { from_glib(ffi::gst_format_to_quark(self.to_glib())) } @@ -979,7 +986,7 @@ impl ToGlib for Format { #[doc(hidden)] impl FromGlib for Format { - fn from_glib(value: ffi::GstFormat) -> Self { + unsafe fn from_glib(value: ffi::GstFormat) -> Self { skip_assert_initialized!(); match value { 0 => Format::Undefined, @@ -1051,7 +1058,7 @@ impl ToGlib for LibraryError { #[doc(hidden)] impl FromGlib for LibraryError { - fn from_glib(value: ffi::GstLibraryError) -> Self { + unsafe fn from_glib(value: ffi::GstLibraryError) -> Self { skip_assert_initialized!(); match value { 1 => LibraryError::Failed, @@ -1142,7 +1149,7 @@ impl ToGlib for PadDirection { #[doc(hidden)] impl FromGlib for PadDirection { - fn from_glib(value: ffi::GstPadDirection) -> Self { + unsafe fn from_glib(value: ffi::GstPadDirection) -> Self { skip_assert_initialized!(); match value { 0 => PadDirection::Unknown, @@ -1212,7 +1219,7 @@ impl ToGlib for PadLinkReturn { #[doc(hidden)] impl FromGlib for PadLinkReturn { - fn from_glib(value: ffi::GstPadLinkReturn) -> Self { + unsafe fn from_glib(value: ffi::GstPadLinkReturn) -> Self { skip_assert_initialized!(); match value { 0 => PadLinkReturn::Ok, @@ -1298,7 +1305,7 @@ impl ToGlib for PadMode { #[doc(hidden)] impl FromGlib for PadMode { - fn from_glib(value: ffi::GstPadMode) -> Self { + unsafe fn from_glib(value: ffi::GstPadMode) -> Self { skip_assert_initialized!(); match value { 0 => PadMode::None, @@ -1359,7 +1366,7 @@ impl ToGlib for PadPresence { #[doc(hidden)] impl FromGlib for PadPresence { - fn from_glib(value: ffi::GstPadPresence) -> Self { + unsafe fn from_glib(value: ffi::GstPadPresence) -> Self { skip_assert_initialized!(); match value { 0 => PadPresence::Always, @@ -1424,7 +1431,7 @@ impl ToGlib for PadProbeReturn { #[doc(hidden)] impl FromGlib for PadProbeReturn { - fn from_glib(value: ffi::GstPadProbeReturn) -> Self { + unsafe fn from_glib(value: ffi::GstPadProbeReturn) -> Self { skip_assert_initialized!(); match value { 0 => PadProbeReturn::Drop, @@ -1497,7 +1504,7 @@ impl ToGlib for ParseError { #[doc(hidden)] impl FromGlib for ParseError { - fn from_glib(value: ffi::GstParseError) -> Self { + unsafe fn from_glib(value: ffi::GstParseError) -> Self { skip_assert_initialized!(); match value { 0 => ParseError::Syntax, @@ -1590,7 +1597,7 @@ impl ToGlib for PluginError { #[doc(hidden)] impl FromGlib for PluginError { - fn from_glib(value: ffi::GstPluginError) -> Self { + unsafe fn from_glib(value: ffi::GstPluginError) -> Self { skip_assert_initialized!(); match value { 0 => PluginError::Module, @@ -1677,7 +1684,7 @@ impl ToGlib for ProgressType { #[doc(hidden)] impl FromGlib for ProgressType { - fn from_glib(value: ffi::GstProgressType) -> Self { + unsafe fn from_glib(value: ffi::GstProgressType) -> Self { skip_assert_initialized!(); match value { 0 => ProgressType::Start, @@ -1748,7 +1755,7 @@ impl ToGlib for PromiseResult { #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] #[doc(hidden)] impl FromGlib for PromiseResult { - fn from_glib(value: ffi::GstPromiseResult) -> Self { + unsafe fn from_glib(value: ffi::GstPromiseResult) -> Self { skip_assert_initialized!(); match value { 0 => PromiseResult::Pending, @@ -1818,7 +1825,7 @@ impl ToGlib for QOSType { #[doc(hidden)] impl FromGlib for QOSType { - fn from_glib(value: ffi::GstQOSType) -> Self { + unsafe fn from_glib(value: ffi::GstQOSType) -> Self { skip_assert_initialized!(); match value { 0 => QOSType::Overflow, @@ -1881,7 +1888,7 @@ impl ToGlib for Rank { #[doc(hidden)] impl FromGlib for Rank { - fn from_glib(value: ffi::GstRank) -> Self { + unsafe fn from_glib(value: ffi::GstRank) -> Self { skip_assert_initialized!(); match value { 0 => Rank::None, @@ -1969,7 +1976,7 @@ impl ToGlib for ResourceError { #[doc(hidden)] impl FromGlib for ResourceError { - fn from_glib(value: ffi::GstResourceError) -> Self { + unsafe fn from_glib(value: ffi::GstResourceError) -> Self { skip_assert_initialized!(); match value { 1 => ResourceError::Failed, @@ -2078,7 +2085,7 @@ impl ToGlib for SeekType { #[doc(hidden)] impl FromGlib for SeekType { - fn from_glib(value: ffi::GstSeekType) -> Self { + unsafe fn from_glib(value: ffi::GstSeekType) -> Self { skip_assert_initialized!(); match value { 0 => SeekType::None, @@ -2143,7 +2150,7 @@ impl ToGlib for State { #[doc(hidden)] impl FromGlib for State { - fn from_glib(value: ffi::GstState) -> Self { + unsafe fn from_glib(value: ffi::GstState) -> Self { skip_assert_initialized!(); match value { 0 => State::VoidPending, @@ -2227,7 +2234,7 @@ impl ToGlib for StateChange { #[doc(hidden)] impl FromGlib for StateChange { - fn from_glib(value: ffi::GstStateChange) -> Self { + unsafe fn from_glib(value: ffi::GstStateChange) -> Self { skip_assert_initialized!(); match value { 10 => StateChange::NullToReady, @@ -2298,7 +2305,7 @@ impl ToGlib for StateChangeReturn { #[doc(hidden)] impl FromGlib for StateChangeReturn { - fn from_glib(value: ffi::GstStateChangeReturn) -> Self { + unsafe fn from_glib(value: ffi::GstStateChangeReturn) -> Self { skip_assert_initialized!(); match value { 0 => StateChangeReturn::Failure, @@ -2382,7 +2389,7 @@ impl ToGlib for StreamError { #[doc(hidden)] impl FromGlib for StreamError { - fn from_glib(value: ffi::GstStreamError) -> Self { + unsafe fn from_glib(value: ffi::GstStreamError) -> Self { skip_assert_initialized!(); match value { 1 => StreamError::Failed, @@ -2495,7 +2502,7 @@ impl ToGlib for StreamStatusType { #[doc(hidden)] impl FromGlib for StreamStatusType { - fn from_glib(value: ffi::GstStreamStatusType) -> Self { + unsafe fn from_glib(value: ffi::GstStreamStatusType) -> Self { skip_assert_initialized!(); match value { 0 => StreamStatusType::Create, @@ -2558,7 +2565,7 @@ impl ToGlib for StructureChangeType { #[doc(hidden)] impl FromGlib for StructureChangeType { - fn from_glib(value: ffi::GstStructureChangeType) -> Self { + unsafe fn from_glib(value: ffi::GstStructureChangeType) -> Self { skip_assert_initialized!(); match value { 0 => StructureChangeType::Link, @@ -2622,7 +2629,7 @@ impl ToGlib for TagFlag { #[doc(hidden)] impl FromGlib for TagFlag { - fn from_glib(value: ffi::GstTagFlag) -> Self { + unsafe fn from_glib(value: ffi::GstTagFlag) -> Self { skip_assert_initialized!(); match value { 0 => TagFlag::Undefined, @@ -2695,7 +2702,7 @@ impl ToGlib for TagMergeMode { #[doc(hidden)] impl FromGlib for TagMergeMode { - fn from_glib(value: ffi::GstTagMergeMode) -> Self { + unsafe fn from_glib(value: ffi::GstTagMergeMode) -> Self { skip_assert_initialized!(); match value { 0 => TagMergeMode::Undefined, @@ -2760,7 +2767,7 @@ impl ToGlib for TagScope { #[doc(hidden)] impl FromGlib for TagScope { - fn from_glib(value: ffi::GstTagScope) -> Self { + unsafe fn from_glib(value: ffi::GstTagScope) -> Self { skip_assert_initialized!(); match value { 0 => TagScope::Stream, @@ -2820,7 +2827,7 @@ impl ToGlib for TaskState { #[doc(hidden)] impl FromGlib for TaskState { - fn from_glib(value: ffi::GstTaskState) -> Self { + unsafe fn from_glib(value: ffi::GstTaskState) -> Self { skip_assert_initialized!(); match value { 0 => TaskState::Started, @@ -2904,7 +2911,7 @@ impl ToGlib for TocEntryType { #[doc(hidden)] impl FromGlib for TocEntryType { - fn from_glib(value: ffi::GstTocEntryType) -> Self { + unsafe fn from_glib(value: ffi::GstTocEntryType) -> Self { skip_assert_initialized!(); match value { -3 => TocEntryType::Angle, @@ -2972,7 +2979,7 @@ impl ToGlib for TocLoopType { #[doc(hidden)] impl FromGlib for TocLoopType { - fn from_glib(value: ffi::GstTocLoopType) -> Self { + unsafe fn from_glib(value: ffi::GstTocLoopType) -> Self { skip_assert_initialized!(); match value { 0 => TocLoopType::None, @@ -3033,7 +3040,7 @@ impl ToGlib for TocScope { #[doc(hidden)] impl FromGlib for TocScope { - fn from_glib(value: ffi::GstTocScope) -> Self { + unsafe fn from_glib(value: ffi::GstTocScope) -> Self { skip_assert_initialized!(); match value { 1 => TocScope::Global, @@ -3099,7 +3106,7 @@ impl ToGlib for TypeFindProbability { #[doc(hidden)] impl FromGlib for TypeFindProbability { - fn from_glib(value: ffi::GstTypeFindProbability) -> Self { + unsafe fn from_glib(value: ffi::GstTypeFindProbability) -> Self { skip_assert_initialized!(); match value { 0 => TypeFindProbability::None, @@ -3165,7 +3172,7 @@ impl ToGlib for URIError { #[doc(hidden)] impl FromGlib for URIError { - fn from_glib(value: ffi::GstURIError) -> Self { + unsafe fn from_glib(value: ffi::GstURIError) -> Self { skip_assert_initialized!(); match value { 0 => URIError::UnsupportedProtocol, @@ -3250,7 +3257,7 @@ impl ToGlib for URIType { #[doc(hidden)] impl FromGlib for URIType { - fn from_glib(value: ffi::GstURIType) -> Self { + unsafe fn from_glib(value: ffi::GstURIType) -> Self { skip_assert_initialized!(); match value { 0 => URIType::Unknown, diff --git a/gstreamer/src/auto/flags.rs b/gstreamer/src/auto/flags.rs index f32a08e26..1ef35d54a 100644 --- a/gstreamer/src/auto/flags.rs +++ b/gstreamer/src/auto/flags.rs @@ -36,7 +36,7 @@ impl ToGlib for BinFlags { #[doc(hidden)] impl FromGlib for BinFlags { - fn from_glib(value: ffi::GstBinFlags) -> BinFlags { + unsafe fn from_glib(value: ffi::GstBinFlags) -> BinFlags { skip_assert_initialized!(); BinFlags::from_bits_truncate(value) } @@ -88,7 +88,7 @@ impl ToGlib for BufferCopyFlags { #[doc(hidden)] impl FromGlib for BufferCopyFlags { - fn from_glib(value: ffi::GstBufferCopyFlags) -> BufferCopyFlags { + unsafe fn from_glib(value: ffi::GstBufferCopyFlags) -> BufferCopyFlags { skip_assert_initialized!(); BufferCopyFlags::from_bits_truncate(value) } @@ -150,7 +150,7 @@ impl ToGlib for BufferFlags { #[doc(hidden)] impl FromGlib for BufferFlags { - fn from_glib(value: ffi::GstBufferFlags) -> BufferFlags { + unsafe fn from_glib(value: ffi::GstBufferFlags) -> BufferFlags { skip_assert_initialized!(); BufferFlags::from_bits_truncate(value) } @@ -199,7 +199,7 @@ impl ToGlib for BufferPoolAcquireFlags { #[doc(hidden)] impl FromGlib for BufferPoolAcquireFlags { - fn from_glib(value: ffi::GstBufferPoolAcquireFlags) -> BufferPoolAcquireFlags { + unsafe fn from_glib(value: ffi::GstBufferPoolAcquireFlags) -> BufferPoolAcquireFlags { skip_assert_initialized!(); BufferPoolAcquireFlags::from_bits_truncate(value) } @@ -252,7 +252,7 @@ impl ToGlib for ClockFlags { #[doc(hidden)] impl FromGlib for ClockFlags { - fn from_glib(value: ffi::GstClockFlags) -> ClockFlags { + unsafe fn from_glib(value: ffi::GstClockFlags) -> ClockFlags { skip_assert_initialized!(); ClockFlags::from_bits_truncate(value) } @@ -316,7 +316,7 @@ impl ToGlib for DebugColorFlags { #[doc(hidden)] impl FromGlib for DebugColorFlags { - fn from_glib(value: ffi::GstDebugColorFlags) -> DebugColorFlags { + unsafe fn from_glib(value: ffi::GstDebugColorFlags) -> DebugColorFlags { skip_assert_initialized!(); DebugColorFlags::from_bits_truncate(value) } @@ -369,7 +369,7 @@ impl ToGlib for DebugGraphDetails { #[doc(hidden)] impl FromGlib for DebugGraphDetails { - fn from_glib(value: ffi::GstDebugGraphDetails) -> DebugGraphDetails { + unsafe fn from_glib(value: ffi::GstDebugGraphDetails) -> DebugGraphDetails { skip_assert_initialized!(); DebugGraphDetails::from_bits_truncate(value) } @@ -421,7 +421,7 @@ impl ToGlib for ElementFlags { #[doc(hidden)] impl FromGlib for ElementFlags { - fn from_glib(value: ffi::GstElementFlags) -> ElementFlags { + unsafe fn from_glib(value: ffi::GstElementFlags) -> ElementFlags { skip_assert_initialized!(); ElementFlags::from_bits_truncate(value) } @@ -472,7 +472,7 @@ impl ToGlib for EventTypeFlags { #[doc(hidden)] impl FromGlib for EventTypeFlags { - fn from_glib(value: ffi::GstEventTypeFlags) -> EventTypeFlags { + unsafe fn from_glib(value: ffi::GstEventTypeFlags) -> EventTypeFlags { skip_assert_initialized!(); EventTypeFlags::from_bits_truncate(value) } @@ -524,7 +524,7 @@ impl ToGlib for MemoryFlags { #[doc(hidden)] impl FromGlib for MemoryFlags { - fn from_glib(value: ffi::GstMemoryFlags) -> MemoryFlags { + unsafe fn from_glib(value: ffi::GstMemoryFlags) -> MemoryFlags { skip_assert_initialized!(); MemoryFlags::from_bits_truncate(value) } @@ -573,7 +573,7 @@ impl ToGlib for ObjectFlags { #[doc(hidden)] impl FromGlib for ObjectFlags { - fn from_glib(value: ffi::GstObjectFlags) -> ObjectFlags { + unsafe fn from_glib(value: ffi::GstObjectFlags) -> ObjectFlags { skip_assert_initialized!(); ObjectFlags::from_bits_truncate(value) } @@ -632,7 +632,7 @@ impl ToGlib for PadFlags { #[doc(hidden)] impl FromGlib for PadFlags { - fn from_glib(value: ffi::GstPadFlags) -> PadFlags { + unsafe fn from_glib(value: ffi::GstPadFlags) -> PadFlags { skip_assert_initialized!(); PadFlags::from_bits_truncate(value) } @@ -683,7 +683,7 @@ impl ToGlib for PadLinkCheck { #[doc(hidden)] impl FromGlib for PadLinkCheck { - fn from_glib(value: ffi::GstPadLinkCheck) -> PadLinkCheck { + unsafe fn from_glib(value: ffi::GstPadLinkCheck) -> PadLinkCheck { skip_assert_initialized!(); PadLinkCheck::from_bits_truncate(value) } @@ -750,7 +750,7 @@ impl ToGlib for PadProbeType { #[doc(hidden)] impl FromGlib for PadProbeType { - fn from_glib(value: ffi::GstPadProbeType) -> PadProbeType { + unsafe fn from_glib(value: ffi::GstPadProbeType) -> PadProbeType { skip_assert_initialized!(); PadProbeType::from_bits_truncate(value) } @@ -801,7 +801,7 @@ impl ToGlib for ParseFlags { #[doc(hidden)] impl FromGlib for ParseFlags { - fn from_glib(value: ffi::GstParseFlags) -> ParseFlags { + unsafe fn from_glib(value: ffi::GstParseFlags) -> ParseFlags { skip_assert_initialized!(); ParseFlags::from_bits_truncate(value) } @@ -848,7 +848,7 @@ impl ToGlib for PipelineFlags { #[doc(hidden)] impl FromGlib for PipelineFlags { - fn from_glib(value: ffi::GstPipelineFlags) -> PipelineFlags { + unsafe fn from_glib(value: ffi::GstPipelineFlags) -> PipelineFlags { skip_assert_initialized!(); PipelineFlags::from_bits_truncate(value) } @@ -901,7 +901,7 @@ impl ToGlib for PluginAPIFlags { #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[doc(hidden)] impl FromGlib for PluginAPIFlags { - fn from_glib(value: ffi::GstPluginAPIFlags) -> PluginAPIFlags { + unsafe fn from_glib(value: ffi::GstPluginAPIFlags) -> PluginAPIFlags { skip_assert_initialized!(); PluginAPIFlags::from_bits_truncate(value) } @@ -960,7 +960,7 @@ impl ToGlib for PluginDependencyFlags { #[doc(hidden)] impl FromGlib for PluginDependencyFlags { - fn from_glib(value: ffi::GstPluginDependencyFlags) -> PluginDependencyFlags { + unsafe fn from_glib(value: ffi::GstPluginDependencyFlags) -> PluginDependencyFlags { skip_assert_initialized!(); PluginDependencyFlags::from_bits_truncate(value) } @@ -1008,7 +1008,7 @@ impl ToGlib for PluginFlags { #[doc(hidden)] impl FromGlib for PluginFlags { - fn from_glib(value: ffi::GstPluginFlags) -> PluginFlags { + unsafe fn from_glib(value: ffi::GstPluginFlags) -> PluginFlags { skip_assert_initialized!(); PluginFlags::from_bits_truncate(value) } @@ -1057,7 +1057,7 @@ impl ToGlib for SchedulingFlags { #[doc(hidden)] impl FromGlib for SchedulingFlags { - fn from_glib(value: ffi::GstSchedulingFlags) -> SchedulingFlags { + unsafe fn from_glib(value: ffi::GstSchedulingFlags) -> SchedulingFlags { skip_assert_initialized!(); SchedulingFlags::from_bits_truncate(value) } @@ -1120,7 +1120,7 @@ impl ToGlib for SeekFlags { #[doc(hidden)] impl FromGlib for SeekFlags { - fn from_glib(value: ffi::GstSeekFlags) -> SeekFlags { + unsafe fn from_glib(value: ffi::GstSeekFlags) -> SeekFlags { skip_assert_initialized!(); SeekFlags::from_bits_truncate(value) } @@ -1176,7 +1176,7 @@ impl ToGlib for SegmentFlags { #[doc(hidden)] impl FromGlib for SegmentFlags { - fn from_glib(value: ffi::GstSegmentFlags) -> SegmentFlags { + unsafe fn from_glib(value: ffi::GstSegmentFlags) -> SegmentFlags { skip_assert_initialized!(); SegmentFlags::from_bits_truncate(value) } @@ -1229,7 +1229,7 @@ impl ToGlib for StackTraceFlags { #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] #[doc(hidden)] impl FromGlib for StackTraceFlags { - fn from_glib(value: ffi::GstStackTraceFlags) -> StackTraceFlags { + unsafe fn from_glib(value: ffi::GstStackTraceFlags) -> StackTraceFlags { skip_assert_initialized!(); StackTraceFlags::from_bits_truncate(value) } @@ -1286,7 +1286,7 @@ impl ToGlib for StreamFlags { #[doc(hidden)] impl FromGlib for StreamFlags { - fn from_glib(value: ffi::GstStreamFlags) -> StreamFlags { + unsafe fn from_glib(value: ffi::GstStreamFlags) -> StreamFlags { skip_assert_initialized!(); StreamFlags::from_bits_truncate(value) } @@ -1370,7 +1370,7 @@ impl ToGlib for StreamType { #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] #[doc(hidden)] impl FromGlib for StreamType { - fn from_glib(value: ffi::GstStreamType) -> StreamType { + unsafe fn from_glib(value: ffi::GstStreamType) -> StreamType { skip_assert_initialized!(); StreamType::from_bits_truncate(value) } diff --git a/gstreamer/src/auto/functions.rs b/gstreamer/src/auto/functions.rs index 409b6a878..caae3ff50 100644 --- a/gstreamer/src/auto/functions.rs +++ b/gstreamer/src/auto/functions.rs @@ -20,6 +20,7 @@ use std::ptr; #[cfg(any(feature = "v1_14", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] +#[doc(alias = "gst_debug_add_ring_buffer_logger")] pub fn debug_add_ring_buffer_logger(max_size_per_thread: u32, thread_timeout: u32) { skip_assert_initialized!(); unsafe { @@ -27,6 +28,7 @@ pub fn debug_add_ring_buffer_logger(max_size_per_thread: u32, thread_timeout: u3 } } +#[doc(alias = "gst_debug_bin_to_dot_data")] pub fn debug_bin_to_dot_data>(bin: &P, details: DebugGraphDetails) -> glib::GString { skip_assert_initialized!(); unsafe { @@ -37,6 +39,7 @@ pub fn debug_bin_to_dot_data>(bin: &P, details: DebugGraphDetails) - } } +#[doc(alias = "gst_debug_bin_to_dot_file")] pub fn debug_bin_to_dot_file, Q: AsRef>( bin: &P, details: DebugGraphDetails, @@ -52,6 +55,7 @@ pub fn debug_bin_to_dot_file, Q: AsRef>( } } +#[doc(alias = "gst_debug_bin_to_dot_file_with_ts")] pub fn debug_bin_to_dot_file_with_ts, Q: AsRef>( bin: &P, details: DebugGraphDetails, @@ -67,6 +71,7 @@ pub fn debug_bin_to_dot_file_with_ts, Q: AsRef>( } } +#[doc(alias = "gst_debug_get_default_threshold")] pub fn debug_get_default_threshold() -> DebugLevel { skip_assert_initialized!(); unsafe { from_glib(ffi::gst_debug_get_default_threshold()) } @@ -74,6 +79,7 @@ pub fn debug_get_default_threshold() -> DebugLevel { #[cfg(any(feature = "v1_12", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] +#[doc(alias = "gst_debug_get_stack_trace")] pub fn debug_get_stack_trace(flags: StackTraceFlags) -> Result { skip_assert_initialized!(); unsafe { @@ -82,16 +88,19 @@ pub fn debug_get_stack_trace(flags: StackTraceFlags) -> Result bool { skip_assert_initialized!(); unsafe { from_glib(ffi::gst_debug_is_active()) } } +#[doc(alias = "gst_debug_is_colored")] pub fn debug_is_colored() -> bool { skip_assert_initialized!(); unsafe { from_glib(ffi::gst_debug_is_colored()) } } +#[doc(alias = "gst_debug_print_stack_trace")] pub fn debug_print_stack_trace() { skip_assert_initialized!(); unsafe { @@ -101,6 +110,7 @@ pub fn debug_print_stack_trace() { #[cfg(any(feature = "v1_14", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] +#[doc(alias = "gst_debug_remove_ring_buffer_logger")] pub fn debug_remove_ring_buffer_logger() { skip_assert_initialized!(); unsafe { @@ -110,11 +120,13 @@ pub fn debug_remove_ring_buffer_logger() { #[cfg(any(feature = "v1_14", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] +#[doc(alias = "gst_debug_ring_buffer_logger_get_logs")] pub fn debug_ring_buffer_logger_get_logs() -> Vec { skip_assert_initialized!(); unsafe { FromGlibPtrContainer::from_glib_full(ffi::gst_debug_ring_buffer_logger_get_logs()) } } +#[doc(alias = "gst_debug_set_active")] pub fn debug_set_active(active: bool) { skip_assert_initialized!(); unsafe { @@ -122,6 +134,7 @@ pub fn debug_set_active(active: bool) { } } +#[doc(alias = "gst_debug_set_colored")] pub fn debug_set_colored(colored: bool) { skip_assert_initialized!(); unsafe { @@ -129,6 +142,7 @@ pub fn debug_set_colored(colored: bool) { } } +#[doc(alias = "gst_debug_set_default_threshold")] pub fn debug_set_default_threshold(level: DebugLevel) { skip_assert_initialized!(); unsafe { @@ -136,6 +150,7 @@ pub fn debug_set_default_threshold(level: DebugLevel) { } } +#[doc(alias = "gst_debug_set_threshold_for_name")] pub fn debug_set_threshold_for_name(name: &str, level: DebugLevel) { skip_assert_initialized!(); unsafe { @@ -143,6 +158,7 @@ pub fn debug_set_threshold_for_name(name: &str, level: DebugLevel) { } } +#[doc(alias = "gst_debug_set_threshold_from_string")] pub fn debug_set_threshold_from_string(list: &str, reset: bool) { skip_assert_initialized!(); unsafe { @@ -150,6 +166,7 @@ pub fn debug_set_threshold_from_string(list: &str, reset: bool) { } } +#[doc(alias = "gst_debug_unset_threshold_for_name")] pub fn debug_unset_threshold_for_name(name: &str) { skip_assert_initialized!(); unsafe { @@ -159,6 +176,7 @@ pub fn debug_unset_threshold_for_name(name: &str) { #[cfg(any(feature = "v1_14", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] +#[doc(alias = "gst_get_main_executable_path")] pub fn get_main_executable_path() -> Result { assert_initialized_main_thread!(); unsafe { @@ -167,6 +185,7 @@ pub fn get_main_executable_path() -> Result { } } +#[doc(alias = "gst_parse_bin_from_description")] pub fn parse_bin_from_description( bin_description: &str, ghost_unlinked_pads: bool, @@ -187,6 +206,7 @@ pub fn parse_bin_from_description( } } +#[doc(alias = "gst_parse_launch")] pub fn parse_launch(pipeline_description: &str) -> Result { assert_initialized_main_thread!(); unsafe { @@ -200,6 +220,7 @@ pub fn parse_launch(pipeline_description: &str) -> Result } } +#[doc(alias = "gst_parse_launchv")] pub fn parse_launchv(argv: &[&str]) -> Result { assert_initialized_main_thread!(); unsafe { @@ -215,16 +236,19 @@ pub fn parse_launchv(argv: &[&str]) -> Result { //#[cfg(any(feature = "v1_18", feature = "dox"))] //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] +//#[doc(alias = "gst_tracing_get_active_tracers")] //pub fn tracing_get_active_tracers() -> /*Ignored*/Vec { // unsafe { TODO: call ffi:gst_tracing_get_active_tracers() } //} +//#[doc(alias = "gst_tracing_register_hook")] //pub fn tracing_register_hook(tracer: /*Ignored*/&Tracer, detail: &str, func: P) { // unsafe { TODO: call ffi:gst_tracing_register_hook() } //} #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] +#[doc(alias = "gst_type_mark_as_plugin_api")] pub fn type_mark_as_plugin_api(type_: glib::types::Type, flags: PluginAPIFlags) { assert_initialized_main_thread!(); unsafe { @@ -232,6 +256,7 @@ pub fn type_mark_as_plugin_api(type_: glib::types::Type, flags: PluginAPIFlags) } } +#[doc(alias = "gst_update_registry")] pub fn update_registry() -> Result<(), glib::error::BoolError> { assert_initialized_main_thread!(); unsafe { @@ -242,11 +267,13 @@ pub fn update_registry() -> Result<(), glib::error::BoolError> { } } +#[doc(alias = "gst_util_get_timestamp")] pub fn util_get_timestamp() -> ClockTime { skip_assert_initialized!(); unsafe { from_glib(ffi::gst_util_get_timestamp()) } } +#[doc(alias = "gst_version")] pub fn version() -> (u32, u32, u32, u32) { skip_assert_initialized!(); unsafe { @@ -268,6 +295,7 @@ pub fn version() -> (u32, u32, u32, u32) { } } +#[doc(alias = "gst_version_string")] pub fn version_string() -> glib::GString { skip_assert_initialized!(); unsafe { from_glib_full(ffi::gst_version_string()) } diff --git a/gstreamer/src/auto/ghost_pad.rs b/gstreamer/src/auto/ghost_pad.rs index 4dfe5aede..e8918d330 100644 --- a/gstreamer/src/auto/ghost_pad.rs +++ b/gstreamer/src/auto/ghost_pad.rs @@ -22,8 +22,10 @@ unsafe impl Sync for GhostPad {} pub const NONE_GHOST_PAD: Option<&GhostPad> = None; pub trait GhostPadExt: 'static { + #[doc(alias = "gst_ghost_pad_get_target")] fn get_target(&self) -> Option; + #[doc(alias = "gst_ghost_pad_set_target")] fn set_target>(&self, newtarget: Option<&P>) -> Result<(), glib::error::BoolError>; } diff --git a/gstreamer/src/auto/object.rs b/gstreamer/src/auto/object.rs index e9b24f3c4..b7c91b0f0 100644 --- a/gstreamer/src/auto/object.rs +++ b/gstreamer/src/auto/object.rs @@ -22,6 +22,7 @@ glib::glib_wrapper! { } impl Object { + #[doc(alias = "gst_object_check_uniqueness")] pub fn check_uniqueness(list: &[Object], name: &str) -> bool { assert_initialized_main_thread!(); unsafe { @@ -32,14 +33,17 @@ impl Object { } } + //#[doc(alias = "gst_object_default_deep_notify")] //pub fn default_deep_notify, Q: IsA>(object: &P, orig: &Q, pspec: /*Ignored*/&glib::ParamSpec, excluded_props: &[&str]) { // 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() } //} @@ -58,49 +62,70 @@ unsafe impl Sync for Object {} pub const NONE_OBJECT: Option<&Object> = None; pub trait GstObjectExt: 'static { + #[doc(alias = "gst_object_add_control_binding")] fn add_control_binding>( &self, binding: &P, ) -> Result<(), glib::error::BoolError>; + #[doc(alias = "gst_object_default_error")] fn default_error(&self, error: &glib::Error, debug: Option<&str>); + #[doc(alias = "gst_object_get_control_binding")] fn get_control_binding(&self, property_name: &str) -> Option; + #[doc(alias = "gst_object_get_control_rate")] fn get_control_rate(&self) -> ClockTime; + #[doc(alias = "gst_object_get_name")] fn get_name(&self) -> glib::GString; + #[doc(alias = "gst_object_get_parent")] fn get_parent(&self) -> Option; + #[doc(alias = "gst_object_get_path_string")] fn get_path_string(&self) -> glib::GString; + #[doc(alias = "gst_object_get_value")] fn get_value(&self, property_name: &str, timestamp: ClockTime) -> Option; + //#[doc(alias = "gst_object_get_value_array")] //fn get_value_array(&self, property_name: &str, timestamp: ClockTime, interval: ClockTime, n_values: u32, values: /*Unimplemented*/Option) -> bool; + #[doc(alias = "gst_object_has_active_control_bindings")] fn has_active_control_bindings(&self) -> bool; + #[doc(alias = "gst_object_has_ancestor")] fn has_ancestor>(&self, ancestor: &P) -> bool; + #[doc(alias = "gst_object_has_as_ancestor")] fn has_as_ancestor>(&self, ancestor: &P) -> bool; + #[doc(alias = "gst_object_has_as_parent")] fn has_as_parent>(&self, parent: &P) -> bool; + #[doc(alias = "gst_object_remove_control_binding")] fn remove_control_binding>(&self, binding: &P) -> bool; + #[doc(alias = "gst_object_set_control_binding_disabled")] fn set_control_binding_disabled(&self, property_name: &str, disabled: bool); + #[doc(alias = "gst_object_set_control_bindings_disabled")] fn set_control_bindings_disabled(&self, disabled: bool); + #[doc(alias = "gst_object_set_control_rate")] fn set_control_rate(&self, control_rate: ClockTime); + #[doc(alias = "gst_object_set_parent")] fn set_parent>(&self, parent: &P) -> Result<(), glib::error::BoolError>; + #[doc(alias = "gst_object_suggest_next_sync")] fn suggest_next_sync(&self) -> ClockTime; + #[doc(alias = "gst_object_sync_values")] fn sync_values(&self, timestamp: ClockTime) -> Result<(), glib::error::BoolError>; + #[doc(alias = "gst_object_unparent")] fn unparent(&self); //fn connect_deep_notify(&self, f: F) -> SignalHandlerId; diff --git a/gstreamer/src/auto/pad.rs b/gstreamer/src/auto/pad.rs index 03d264641..c3062df73 100644 --- a/gstreamer/src/auto/pad.rs +++ b/gstreamer/src/auto/pad.rs @@ -42,108 +42,151 @@ unsafe impl Sync for Pad {} pub const NONE_PAD: Option<&Pad> = None; pub trait PadExt: 'static { + #[doc(alias = "gst_pad_activate_mode")] fn activate_mode(&self, mode: PadMode, active: bool) -> Result<(), glib::error::BoolError>; + #[doc(alias = "gst_pad_can_link")] fn can_link>(&self, sinkpad: &P) -> bool; + #[doc(alias = "gst_pad_check_reconfigure")] fn check_reconfigure(&self) -> bool; + #[doc(alias = "gst_pad_create_stream_id")] fn create_stream_id>( &self, parent: &P, stream_id: Option<&str>, ) -> glib::GString; + //#[doc(alias = "gst_pad_create_stream_id_printf")] //fn create_stream_id_printf>(&self, parent: &P, stream_id: Option<&str>, : /*Unknown conversion*//*Unimplemented*/Fundamental: VarArgs) -> glib::GString; + //#[doc(alias = "gst_pad_create_stream_id_printf_valist")] //fn create_stream_id_printf_valist>(&self, parent: &P, stream_id: Option<&str>, var_args: /*Unknown conversion*//*Unimplemented*/Unsupported) -> glib::GString; + #[doc(alias = "gst_pad_forward")] fn forward bool>(&self, forward: P) -> bool; + #[doc(alias = "gst_pad_get_allowed_caps")] fn get_allowed_caps(&self) -> Option; + #[doc(alias = "gst_pad_get_current_caps")] fn get_current_caps(&self) -> Option; + #[doc(alias = "gst_pad_get_direction")] fn get_direction(&self) -> PadDirection; + //#[doc(alias = "gst_pad_get_element_private")] //fn get_element_private(&self) -> /*Unimplemented*/Option; + #[doc(alias = "gst_pad_get_offset")] fn get_offset(&self) -> i64; + #[doc(alias = "gst_pad_get_pad_template")] fn get_pad_template(&self) -> Option; + #[doc(alias = "gst_pad_get_pad_template_caps")] fn get_pad_template_caps(&self) -> Caps; + #[doc(alias = "gst_pad_get_parent_element")] fn get_parent_element(&self) -> Option; + #[doc(alias = "gst_pad_get_peer")] fn get_peer(&self) -> Option; #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[doc(alias = "gst_pad_get_single_internal_link")] fn get_single_internal_link(&self) -> Option; + #[doc(alias = "gst_pad_get_sticky_event")] fn get_sticky_event(&self, event_type: EventType, idx: u32) -> Option; #[cfg(any(feature = "v1_10", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] + #[doc(alias = "gst_pad_get_stream")] fn get_stream(&self) -> Option; + #[doc(alias = "gst_pad_get_stream_id")] fn get_stream_id(&self) -> Option; #[cfg(any(feature = "v1_12", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] + #[doc(alias = "gst_pad_get_task_state")] fn get_task_state(&self) -> TaskState; + #[doc(alias = "gst_pad_has_current_caps")] fn has_current_caps(&self) -> bool; + #[doc(alias = "gst_pad_is_active")] fn is_active(&self) -> bool; + #[doc(alias = "gst_pad_is_blocked")] fn is_blocked(&self) -> bool; + #[doc(alias = "gst_pad_is_blocking")] fn is_blocking(&self) -> bool; + #[doc(alias = "gst_pad_is_linked")] fn is_linked(&self) -> bool; + //#[doc(alias = "gst_pad_iterate_internal_links")] //fn iterate_internal_links(&self) -> /*Ignored*/Option; + //#[doc(alias = "gst_pad_iterate_internal_links_default")] //fn iterate_internal_links_default>(&self, parent: Option<&P>) -> /*Ignored*/Option; #[cfg(any(feature = "v1_10", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] + #[doc(alias = "gst_pad_link_maybe_ghosting")] fn link_maybe_ghosting>(&self, sink: &P) -> Result<(), glib::error::BoolError>; #[cfg(any(feature = "v1_10", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] + #[doc(alias = "gst_pad_link_maybe_ghosting_full")] fn link_maybe_ghosting_full>( &self, sink: &P, flags: PadLinkCheck, ) -> Result<(), glib::error::BoolError>; + #[doc(alias = "gst_pad_mark_reconfigure")] fn mark_reconfigure(&self); + #[doc(alias = "gst_pad_needs_reconfigure")] fn needs_reconfigure(&self) -> bool; + #[doc(alias = "gst_pad_pause_task")] fn pause_task(&self) -> Result<(), glib::error::BoolError>; + #[doc(alias = "gst_pad_peer_query_accept_caps")] fn peer_query_accept_caps(&self, caps: &Caps) -> bool; + #[doc(alias = "gst_pad_peer_query_caps")] fn peer_query_caps(&self, filter: Option<&Caps>) -> Caps; + #[doc(alias = "gst_pad_query_accept_caps")] fn query_accept_caps(&self, caps: &Caps) -> bool; + #[doc(alias = "gst_pad_query_caps")] fn query_caps(&self, filter: Option<&Caps>) -> Caps; + #[doc(alias = "gst_pad_set_active")] fn set_active(&self, active: bool) -> Result<(), glib::error::BoolError>; + //#[doc(alias = "gst_pad_set_element_private")] //fn set_element_private(&self, priv_: /*Unimplemented*/Option); + #[doc(alias = "gst_pad_set_offset")] fn set_offset(&self, offset: i64); + #[doc(alias = "gst_pad_stop_task")] fn stop_task(&self) -> Result<(), glib::error::BoolError>; + #[doc(alias = "gst_pad_unlink")] fn unlink>(&self, sinkpad: &P) -> Result<(), glib::error::BoolError>; + #[doc(alias = "gst_pad_use_fixed_caps")] fn use_fixed_caps(&self); fn get_property_caps(&self) -> Option; diff --git a/gstreamer/src/auto/pad_template.rs b/gstreamer/src/auto/pad_template.rs index 0460fd615..2645c3296 100644 --- a/gstreamer/src/auto/pad_template.rs +++ b/gstreamer/src/auto/pad_template.rs @@ -25,6 +25,7 @@ glib::glib_wrapper! { } impl PadTemplate { + #[doc(alias = "gst_pad_template_new")] pub fn new( name_template: &str, direction: PadDirection, @@ -45,6 +46,7 @@ impl PadTemplate { #[cfg(any(feature = "v1_14", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] + #[doc(alias = "gst_pad_template_new_with_gtype")] pub fn with_gtype( name_template: &str, direction: PadDirection, @@ -65,12 +67,14 @@ impl PadTemplate { } } + #[doc(alias = "gst_pad_template_get_caps")] pub fn get_caps(&self) -> Caps { unsafe { from_glib_full(ffi::gst_pad_template_get_caps(self.to_glib_none().0)) } } #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[doc(alias = "gst_pad_template_get_documentation_caps")] pub fn get_documentation_caps(&self) -> Caps { unsafe { from_glib_full(ffi::gst_pad_template_get_documentation_caps( @@ -79,6 +83,7 @@ impl PadTemplate { } } + #[doc(alias = "gst_pad_template_pad_created")] pub fn pad_created>(&self, pad: &P) { unsafe { ffi::gst_pad_template_pad_created(self.to_glib_none().0, pad.as_ref().to_glib_none().0); @@ -87,6 +92,7 @@ impl PadTemplate { #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[doc(alias = "gst_pad_template_set_documentation_caps")] pub fn set_documentation_caps(&self, caps: &Caps) { unsafe { ffi::gst_pad_template_set_documentation_caps( diff --git a/gstreamer/src/auto/pipeline.rs b/gstreamer/src/auto/pipeline.rs index 8d5131b4f..ea4bcbe12 100644 --- a/gstreamer/src/auto/pipeline.rs +++ b/gstreamer/src/auto/pipeline.rs @@ -25,6 +25,7 @@ glib::glib_wrapper! { } impl Pipeline { + #[doc(alias = "gst_pipeline_new")] pub fn new(name: Option<&str>) -> Pipeline { assert_initialized_main_thread!(); unsafe { @@ -39,22 +40,31 @@ unsafe impl Sync for Pipeline {} pub const NONE_PIPELINE: Option<&Pipeline> = None; pub trait PipelineExt: 'static { + #[doc(alias = "gst_pipeline_auto_clock")] fn auto_clock(&self); + #[doc(alias = "gst_pipeline_get_auto_flush_bus")] fn get_auto_flush_bus(&self) -> bool; + #[doc(alias = "gst_pipeline_get_delay")] fn get_delay(&self) -> ClockTime; + #[doc(alias = "gst_pipeline_get_latency")] fn get_latency(&self) -> ClockTime; + #[doc(alias = "gst_pipeline_get_pipeline_clock")] fn get_pipeline_clock(&self) -> Clock; + #[doc(alias = "gst_pipeline_set_auto_flush_bus")] fn set_auto_flush_bus(&self, auto_flush: bool); + #[doc(alias = "gst_pipeline_set_delay")] fn set_delay(&self, delay: ClockTime); + #[doc(alias = "gst_pipeline_set_latency")] fn set_latency(&self, latency: ClockTime); + #[doc(alias = "gst_pipeline_use_clock")] fn use_clock>(&self, clock: Option<&P>); fn connect_property_auto_flush_bus_notify( diff --git a/gstreamer/src/auto/plugin.rs b/gstreamer/src/auto/plugin.rs index 30eb5fd13..f0593188f 100644 --- a/gstreamer/src/auto/plugin.rs +++ b/gstreamer/src/auto/plugin.rs @@ -16,6 +16,7 @@ glib::glib_wrapper! { } impl Plugin { + #[doc(alias = "gst_plugin_add_dependency")] pub fn add_dependency( &self, env_vars: &[&str], @@ -34,6 +35,7 @@ impl Plugin { } } + #[doc(alias = "gst_plugin_add_dependency_simple")] pub fn add_dependency_simple( &self, env_vars: Option<&str>, @@ -52,26 +54,32 @@ impl Plugin { } } + #[doc(alias = "gst_plugin_get_description")] pub fn get_description(&self) -> glib::GString { unsafe { from_glib_none(ffi::gst_plugin_get_description(self.to_glib_none().0)) } } + #[doc(alias = "gst_plugin_get_filename")] pub fn get_filename(&self) -> Option { unsafe { from_glib_none(ffi::gst_plugin_get_filename(self.to_glib_none().0)) } } + #[doc(alias = "gst_plugin_get_license")] pub fn get_license(&self) -> glib::GString { unsafe { from_glib_none(ffi::gst_plugin_get_license(self.to_glib_none().0)) } } + #[doc(alias = "gst_plugin_get_origin")] pub fn get_origin(&self) -> glib::GString { unsafe { from_glib_none(ffi::gst_plugin_get_origin(self.to_glib_none().0)) } } + #[doc(alias = "gst_plugin_get_package")] pub fn get_package(&self) -> glib::GString { unsafe { from_glib_none(ffi::gst_plugin_get_package(self.to_glib_none().0)) } } + #[doc(alias = "gst_plugin_get_release_date_string")] pub fn get_release_date_string(&self) -> Option { unsafe { from_glib_none(ffi::gst_plugin_get_release_date_string( @@ -80,18 +88,22 @@ impl Plugin { } } + #[doc(alias = "gst_plugin_get_source")] pub fn get_source(&self) -> glib::GString { unsafe { from_glib_none(ffi::gst_plugin_get_source(self.to_glib_none().0)) } } + #[doc(alias = "gst_plugin_get_version")] pub fn get_version(&self) -> glib::GString { unsafe { from_glib_none(ffi::gst_plugin_get_version(self.to_glib_none().0)) } } + #[doc(alias = "gst_plugin_is_loaded")] pub fn is_loaded(&self) -> bool { unsafe { from_glib(ffi::gst_plugin_is_loaded(self.to_glib_none().0)) } } + #[doc(alias = "gst_plugin_load")] pub fn load(&self) -> Result { unsafe { Option::<_>::from_glib_full(ffi::gst_plugin_load(self.to_glib_none().0)) @@ -99,6 +111,7 @@ impl Plugin { } } + #[doc(alias = "gst_plugin_load_by_name")] pub fn load_by_name(name: &str) -> Result { assert_initialized_main_thread!(); unsafe { @@ -107,6 +120,7 @@ impl Plugin { } } + #[doc(alias = "gst_plugin_load_file")] pub fn load_file>(filename: P) -> Result { assert_initialized_main_thread!(); unsafe { diff --git a/gstreamer/src/auto/plugin_feature.rs b/gstreamer/src/auto/plugin_feature.rs index 303656e65..f58c25cfe 100644 --- a/gstreamer/src/auto/plugin_feature.rs +++ b/gstreamer/src/auto/plugin_feature.rs @@ -21,12 +21,16 @@ unsafe impl Sync for PluginFeature {} pub const NONE_PLUGIN_FEATURE: Option<&PluginFeature> = None; pub trait PluginFeatureExt: 'static { + #[doc(alias = "gst_plugin_feature_check_version")] fn check_version(&self, min_major: u32, min_minor: u32, min_micro: u32) -> bool; + #[doc(alias = "gst_plugin_feature_get_plugin")] fn get_plugin(&self) -> Option; + #[doc(alias = "gst_plugin_feature_get_plugin_name")] fn get_plugin_name(&self) -> Option; + #[doc(alias = "gst_plugin_feature_load")] fn load(&self) -> Result; } diff --git a/gstreamer/src/auto/preset.rs b/gstreamer/src/auto/preset.rs index ab5dd181b..1f2663ddf 100644 --- a/gstreamer/src/auto/preset.rs +++ b/gstreamer/src/auto/preset.rs @@ -15,11 +15,13 @@ glib::glib_wrapper! { } impl Preset { + #[doc(alias = "gst_preset_get_app_dir")] pub fn get_app_dir() -> Option { assert_initialized_main_thread!(); unsafe { from_glib_none(ffi::gst_preset_get_app_dir()) } } + #[doc(alias = "gst_preset_set_app_dir")] pub fn set_app_dir>( app_dir: P, ) -> Result<(), glib::error::BoolError> { @@ -39,22 +41,31 @@ unsafe impl Sync for Preset {} pub const NONE_PRESET: Option<&Preset> = None; pub trait PresetExt: 'static { + #[doc(alias = "gst_preset_delete_preset")] fn delete_preset(&self, name: &str) -> Result<(), glib::error::BoolError>; + #[doc(alias = "gst_preset_get_meta")] fn get_meta(&self, name: &str, tag: &str) -> Option; + #[doc(alias = "gst_preset_get_preset_names")] fn get_preset_names(&self) -> Vec; + #[doc(alias = "gst_preset_get_property_names")] fn get_property_names(&self) -> Vec; + #[doc(alias = "gst_preset_is_editable")] fn is_editable(&self) -> bool; + #[doc(alias = "gst_preset_load_preset")] fn load_preset(&self, name: &str) -> Result<(), glib::error::BoolError>; + #[doc(alias = "gst_preset_rename_preset")] fn rename_preset(&self, old_name: &str, new_name: &str) -> Result<(), glib::error::BoolError>; + #[doc(alias = "gst_preset_save_preset")] fn save_preset(&self, name: &str) -> Result<(), glib::error::BoolError>; + #[doc(alias = "gst_preset_set_meta")] fn set_meta( &self, name: &str, diff --git a/gstreamer/src/auto/proxy_pad.rs b/gstreamer/src/auto/proxy_pad.rs index 66fe85425..3d195179e 100644 --- a/gstreamer/src/auto/proxy_pad.rs +++ b/gstreamer/src/auto/proxy_pad.rs @@ -16,6 +16,7 @@ glib::glib_wrapper! { } impl ProxyPad { + //#[doc(alias = "gst_proxy_pad_iterate_internal_links_default")] //pub fn iterate_internal_links_default, Q: IsA>(pad: &P, parent: Option<&Q>) -> /*Ignored*/Option { // unsafe { TODO: call ffi:gst_proxy_pad_iterate_internal_links_default() } //} @@ -27,6 +28,7 @@ unsafe impl Sync for ProxyPad {} pub const NONE_PROXY_PAD: Option<&ProxyPad> = None; pub trait ProxyPadExt: 'static { + #[doc(alias = "gst_proxy_pad_get_internal")] fn get_internal(&self) -> Option; } diff --git a/gstreamer/src/auto/registry.rs b/gstreamer/src/auto/registry.rs index 7526ea98e..6dce0e533 100644 --- a/gstreamer/src/auto/registry.rs +++ b/gstreamer/src/auto/registry.rs @@ -22,6 +22,7 @@ glib::glib_wrapper! { } impl Registry { + #[doc(alias = "gst_registry_add_feature")] pub fn add_feature>( &self, feature: &P, @@ -37,6 +38,7 @@ impl Registry { } } + #[doc(alias = "gst_registry_add_plugin")] pub fn add_plugin(&self, plugin: &Plugin) -> Result<(), glib::error::BoolError> { unsafe { glib::glib_result_from_gboolean!( @@ -46,6 +48,7 @@ impl Registry { } } + #[doc(alias = "gst_registry_check_feature_version")] pub fn check_feature_version( &self, feature_name: &str, @@ -64,6 +67,7 @@ impl Registry { } } + #[doc(alias = "gst_registry_feature_filter")] pub fn feature_filter bool>( &self, filter: P, @@ -91,6 +95,7 @@ impl Registry { } } + #[doc(alias = "gst_registry_find_feature")] pub fn find_feature(&self, name: &str, type_: glib::types::Type) -> Option { unsafe { from_glib_full(ffi::gst_registry_find_feature( @@ -101,6 +106,7 @@ impl Registry { } } + #[doc(alias = "gst_registry_find_plugin")] pub fn find_plugin(&self, name: &str) -> Option { unsafe { from_glib_full(ffi::gst_registry_find_plugin( @@ -110,6 +116,7 @@ impl Registry { } } + #[doc(alias = "gst_registry_get_feature_list")] pub fn get_feature_list(&self, type_: glib::types::Type) -> Vec { unsafe { FromGlibPtrContainer::from_glib_full(ffi::gst_registry_get_feature_list( @@ -119,6 +126,7 @@ impl Registry { } } + #[doc(alias = "gst_registry_get_feature_list_by_plugin")] pub fn get_feature_list_by_plugin(&self, name: &str) -> Vec { unsafe { FromGlibPtrContainer::from_glib_full(ffi::gst_registry_get_feature_list_by_plugin( @@ -128,10 +136,12 @@ impl Registry { } } + #[doc(alias = "gst_registry_get_feature_list_cookie")] pub fn get_feature_list_cookie(&self) -> u32 { unsafe { ffi::gst_registry_get_feature_list_cookie(self.to_glib_none().0) } } + #[doc(alias = "gst_registry_get_plugin_list")] pub fn get_plugin_list(&self) -> Vec { unsafe { FromGlibPtrContainer::from_glib_full(ffi::gst_registry_get_plugin_list( @@ -140,6 +150,7 @@ impl Registry { } } + #[doc(alias = "gst_registry_lookup")] pub fn lookup(&self, filename: &str) -> Option { unsafe { from_glib_full(ffi::gst_registry_lookup( @@ -149,6 +160,7 @@ impl Registry { } } + #[doc(alias = "gst_registry_lookup_feature")] pub fn lookup_feature(&self, name: &str) -> Option { unsafe { from_glib_full(ffi::gst_registry_lookup_feature( @@ -158,6 +170,7 @@ impl Registry { } } + #[doc(alias = "gst_registry_plugin_filter")] pub fn plugin_filter bool>(&self, filter: P, first: bool) -> Vec { let filter_data: P = filter; unsafe extern "C" fn filter_func bool>( @@ -181,6 +194,7 @@ impl Registry { } } + #[doc(alias = "gst_registry_remove_feature")] pub fn remove_feature>(&self, feature: &P) { unsafe { ffi::gst_registry_remove_feature( @@ -190,12 +204,14 @@ impl Registry { } } + #[doc(alias = "gst_registry_remove_plugin")] pub fn remove_plugin(&self, plugin: &Plugin) { unsafe { ffi::gst_registry_remove_plugin(self.to_glib_none().0, plugin.to_glib_none().0); } } + #[doc(alias = "gst_registry_scan_path")] pub fn scan_path>(&self, path: P) -> bool { unsafe { from_glib(ffi::gst_registry_scan_path( @@ -205,6 +221,7 @@ impl Registry { } } + #[doc(alias = "gst_registry_get")] pub fn get() -> Registry { assert_initialized_main_thread!(); unsafe { from_glib_none(ffi::gst_registry_get()) } diff --git a/gstreamer/src/auto/stream.rs b/gstreamer/src/auto/stream.rs index 1f9cfb4dc..3eb1ceeb2 100644 --- a/gstreamer/src/auto/stream.rs +++ b/gstreamer/src/auto/stream.rs @@ -43,36 +43,42 @@ glib::glib_wrapper! { impl Stream { #[cfg(any(feature = "v1_10", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] + #[doc(alias = "gst_stream_get_caps")] pub fn get_caps(&self) -> Option { unsafe { from_glib_full(ffi::gst_stream_get_caps(self.to_glib_none().0)) } } #[cfg(any(feature = "v1_10", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] + #[doc(alias = "gst_stream_get_stream_flags")] pub fn get_stream_flags(&self) -> StreamFlags { unsafe { from_glib(ffi::gst_stream_get_stream_flags(self.to_glib_none().0)) } } #[cfg(any(feature = "v1_10", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] + #[doc(alias = "gst_stream_get_stream_id")] pub fn get_stream_id(&self) -> Option { unsafe { from_glib_none(ffi::gst_stream_get_stream_id(self.to_glib_none().0)) } } #[cfg(any(feature = "v1_10", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] + #[doc(alias = "gst_stream_get_stream_type")] pub fn get_stream_type(&self) -> StreamType { unsafe { from_glib(ffi::gst_stream_get_stream_type(self.to_glib_none().0)) } } #[cfg(any(feature = "v1_10", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] + #[doc(alias = "gst_stream_get_tags")] pub fn get_tags(&self) -> Option { unsafe { from_glib_full(ffi::gst_stream_get_tags(self.to_glib_none().0)) } } #[cfg(any(feature = "v1_10", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] + #[doc(alias = "gst_stream_set_caps")] pub fn set_caps(&self, caps: Option<&Caps>) { unsafe { ffi::gst_stream_set_caps(self.to_glib_none().0, caps.to_glib_none().0); @@ -81,6 +87,7 @@ impl Stream { #[cfg(any(feature = "v1_10", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] + #[doc(alias = "gst_stream_set_stream_flags")] pub fn set_stream_flags(&self, flags: StreamFlags) { unsafe { ffi::gst_stream_set_stream_flags(self.to_glib_none().0, flags.to_glib()); @@ -89,6 +96,7 @@ impl Stream { #[cfg(any(feature = "v1_10", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] + #[doc(alias = "gst_stream_set_stream_type")] pub fn set_stream_type(&self, stream_type: StreamType) { unsafe { ffi::gst_stream_set_stream_type(self.to_glib_none().0, stream_type.to_glib()); @@ -97,6 +105,7 @@ impl Stream { #[cfg(any(feature = "v1_10", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] + #[doc(alias = "gst_stream_set_tags")] pub fn set_tags(&self, tags: Option<&TagList>) { unsafe { ffi::gst_stream_set_tags(self.to_glib_none().0, tags.to_glib_none().0); diff --git a/gstreamer/src/auto/stream_collection.rs b/gstreamer/src/auto/stream_collection.rs index 7c6b2bbf3..1b7df7132 100644 --- a/gstreamer/src/auto/stream_collection.rs +++ b/gstreamer/src/auto/stream_collection.rs @@ -19,12 +19,14 @@ glib::glib_wrapper! { impl StreamCollection { #[cfg(any(feature = "v1_10", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] + #[doc(alias = "gst_stream_collection_get_size")] pub fn get_size(&self) -> u32 { unsafe { ffi::gst_stream_collection_get_size(self.to_glib_none().0) } } #[cfg(any(feature = "v1_10", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] + #[doc(alias = "gst_stream_collection_get_stream")] pub fn get_stream(&self, index: u32) -> Option { unsafe { from_glib_none(ffi::gst_stream_collection_get_stream( @@ -36,6 +38,7 @@ impl StreamCollection { #[cfg(any(feature = "v1_10", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] + #[doc(alias = "gst_stream_collection_get_upstream_id")] pub fn get_upstream_id(&self) -> Option { unsafe { from_glib_none(ffi::gst_stream_collection_get_upstream_id( diff --git a/gstreamer/src/auto/system_clock.rs b/gstreamer/src/auto/system_clock.rs index 4685b3016..ca050d83e 100644 --- a/gstreamer/src/auto/system_clock.rs +++ b/gstreamer/src/auto/system_clock.rs @@ -23,11 +23,13 @@ glib::glib_wrapper! { } impl SystemClock { + #[doc(alias = "gst_system_clock_obtain")] pub fn obtain() -> Clock { assert_initialized_main_thread!(); unsafe { from_glib_full(ffi::gst_system_clock_obtain()) } } + #[doc(alias = "gst_system_clock_set_default")] pub fn set_default>(new_clock: Option<&P>) { assert_initialized_main_thread!(); unsafe { diff --git a/gstreamer/src/auto/tag_setter.rs b/gstreamer/src/auto/tag_setter.rs index 4f6158fbc..c8de3bb9f 100644 --- a/gstreamer/src/auto/tag_setter.rs +++ b/gstreamer/src/auto/tag_setter.rs @@ -23,22 +23,31 @@ unsafe impl Sync for TagSetter {} pub const NONE_TAG_SETTER: Option<&TagSetter> = None; pub trait TagSetterExt: 'static { + //#[doc(alias = "gst_tag_setter_add_tag_valist")] //fn add_tag_valist(&self, mode: TagMergeMode, tag: &str, var_args: /*Unknown conversion*//*Unimplemented*/Unsupported); + //#[doc(alias = "gst_tag_setter_add_tag_valist_values")] //fn add_tag_valist_values(&self, mode: TagMergeMode, tag: &str, var_args: /*Unknown conversion*//*Unimplemented*/Unsupported); + //#[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")] fn get_tag_list(&self) -> Option; + #[doc(alias = "gst_tag_setter_get_tag_merge_mode")] fn get_tag_merge_mode(&self) -> TagMergeMode; + #[doc(alias = "gst_tag_setter_merge_tags")] fn merge_tags(&self, list: &TagList, mode: TagMergeMode); + #[doc(alias = "gst_tag_setter_reset_tags")] fn reset_tags(&self); + #[doc(alias = "gst_tag_setter_set_tag_merge_mode")] fn set_tag_merge_mode(&self, mode: TagMergeMode); } diff --git a/gstreamer/src/auto/toc_setter.rs b/gstreamer/src/auto/toc_setter.rs index 7fb8bf13c..45a32d93b 100644 --- a/gstreamer/src/auto/toc_setter.rs +++ b/gstreamer/src/auto/toc_setter.rs @@ -22,10 +22,13 @@ unsafe impl Sync for TocSetter {} pub const NONE_TOC_SETTER: Option<&TocSetter> = None; pub trait TocSetterExt: 'static { + #[doc(alias = "gst_toc_setter_get_toc")] fn get_toc(&self) -> Option; + #[doc(alias = "gst_toc_setter_reset")] fn reset(&self); + #[doc(alias = "gst_toc_setter_set_toc")] fn set_toc(&self, toc: Option<&Toc>); } diff --git a/gstreamer/src/auto/type_find_factory.rs b/gstreamer/src/auto/type_find_factory.rs index eac82fe6a..ab731986c 100644 --- a/gstreamer/src/auto/type_find_factory.rs +++ b/gstreamer/src/auto/type_find_factory.rs @@ -16,14 +16,17 @@ glib::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")] pub fn get_caps(&self) -> Option { unsafe { from_glib_none(ffi::gst_type_find_factory_get_caps(self.to_glib_none().0)) } } + #[doc(alias = "gst_type_find_factory_get_extensions")] pub fn get_extensions(&self) -> Vec { unsafe { FromGlibPtrContainer::from_glib_none(ffi::gst_type_find_factory_get_extensions( @@ -32,6 +35,7 @@ impl TypeFindFactory { } } + #[doc(alias = "gst_type_find_factory_has_function")] pub fn has_function(&self) -> bool { unsafe { from_glib(ffi::gst_type_find_factory_has_function( @@ -40,6 +44,7 @@ impl TypeFindFactory { } } + #[doc(alias = "gst_type_find_factory_get_list")] pub fn get_list() -> Vec { assert_initialized_main_thread!(); unsafe { FromGlibPtrContainer::from_glib_full(ffi::gst_type_find_factory_get_list()) } diff --git a/gstreamer/src/auto/uri_handler.rs b/gstreamer/src/auto/uri_handler.rs index e604d7533..11aa75690 100644 --- a/gstreamer/src/auto/uri_handler.rs +++ b/gstreamer/src/auto/uri_handler.rs @@ -21,12 +21,16 @@ unsafe impl Sync for URIHandler {} pub const NONE_URI_HANDLER: Option<&URIHandler> = None; pub trait URIHandlerExt: 'static { + #[doc(alias = "gst_uri_handler_get_protocols")] fn get_protocols(&self) -> Vec; + #[doc(alias = "gst_uri_handler_get_uri")] fn get_uri(&self) -> Option; + #[doc(alias = "gst_uri_handler_get_uri_type")] fn get_uri_type(&self) -> URIType; + #[doc(alias = "gst_uri_handler_set_uri")] fn set_uri(&self, uri: &str) -> Result<(), glib::Error>; } diff --git a/gstreamer/src/auto/versions.txt b/gstreamer/src/auto/versions.txt index ea795c56c..ba6c32af8 100644 --- a/gstreamer/src/auto/versions.txt +++ b/gstreamer/src/auto/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7) -from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9) +Generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf) +from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd) diff --git a/gstreamer/sys/build.rs b/gstreamer/sys/build.rs index beb26524a..4cb086136 100644 --- a/gstreamer/sys/build.rs +++ b/gstreamer/sys/build.rs @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7) -// from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf) +// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd) // DO NOT EDIT #[cfg(not(feature = "dox"))] diff --git a/gstreamer/sys/src/lib.rs b/gstreamer/sys/src/lib.rs index 34e765bfa..01f11f1e9 100644 --- a/gstreamer/sys/src/lib.rs +++ b/gstreamer/sys/src/lib.rs @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7) -// from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf) +// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd) // DO NOT EDIT #![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)] diff --git a/gstreamer/sys/tests/abi.rs b/gstreamer/sys/tests/abi.rs index 8669476ec..1a7bdccc8 100644 --- a/gstreamer/sys/tests/abi.rs +++ b/gstreamer/sys/tests/abi.rs @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7) -// from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf) +// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd) // DO NOT EDIT use gstreamer_sys::*; diff --git a/gstreamer/sys/tests/constant.c b/gstreamer/sys/tests/constant.c index c2ff6ab15..206014da6 100644 --- a/gstreamer/sys/tests/constant.c +++ b/gstreamer/sys/tests/constant.c @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7) -// from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf) +// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer/sys/tests/layout.c b/gstreamer/sys/tests/layout.c index 64f4cfb9c..82c774a5d 100644 --- a/gstreamer/sys/tests/layout.c +++ b/gstreamer/sys/tests/layout.c @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7) -// from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf) +// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd) // DO NOT EDIT #include "manual.h"