From 9daa8d20a91b43a67b58b2280b9beb216bb2f95f Mon Sep 17 00:00:00 2001 From: Marijn Suijten Date: Thu, 19 Nov 2020 10:16:33 +0100 Subject: [PATCH] Regenerate with doc(cfg()) attribute on all symbols This is enabled by a new version of gir, as updated in the previous commit. --- gstreamer-app/src/auto/app_sink.rs | 4 + gstreamer-app/src/auto/app_src.rs | 6 + gstreamer-app/src/auto/versions.txt | 4 +- gstreamer-app/sys/build.rs | 4 +- gstreamer-app/sys/src/lib.rs | 12 +- gstreamer-app/sys/tests/abi.rs | 4 +- gstreamer-app/sys/tests/constant.c | 4 +- gstreamer-app/sys/tests/layout.c | 4 +- gstreamer-audio/src/auto/audio_decoder.rs | 4 + gstreamer-audio/src/auto/audio_encoder.rs | 2 + .../src/auto/audio_stream_align.rs | 12 + gstreamer-audio/src/auto/enums.rs | 3 + gstreamer-audio/src/auto/mod.rs | 2 + gstreamer-audio/src/auto/versions.txt | 4 +- gstreamer-audio/sys/build.rs | 4 +- gstreamer-audio/sys/src/lib.rs | 55 ++++- gstreamer-audio/sys/tests/abi.rs | 4 +- gstreamer-audio/sys/tests/constant.c | 4 +- gstreamer-audio/sys/tests/layout.c | 4 +- gstreamer-base/src/auto/adapter.rs | 5 + gstreamer-base/src/auto/aggregator.rs | 36 +++ gstreamer-base/src/auto/aggregator_pad.rs | 19 ++ gstreamer-base/src/auto/base_parse.rs | 2 + gstreamer-base/src/auto/base_sink.rs | 14 ++ gstreamer-base/src/auto/base_src.rs | 2 + gstreamer-base/src/auto/base_transform.rs | 2 + gstreamer-base/src/auto/enums.rs | 7 + gstreamer-base/src/auto/functions.rs | 1 + gstreamer-base/src/auto/mod.rs | 9 + gstreamer-base/src/auto/versions.txt | 4 +- gstreamer-base/sys/build.rs | 4 +- gstreamer-base/sys/src/lib.rs | 76 ++++++- gstreamer-base/sys/tests/abi.rs | 4 +- gstreamer-base/sys/tests/constant.c | 4 +- gstreamer-base/sys/tests/layout.c | 4 +- gstreamer-check/src/auto/test_clock.rs | 2 + gstreamer-check/src/auto/versions.txt | 4 +- gstreamer-check/sys/build.rs | 4 +- gstreamer-check/sys/src/lib.rs | 12 +- gstreamer-check/sys/tests/abi.rs | 4 +- gstreamer-check/sys/tests/constant.c | 4 +- gstreamer-check/sys/tests/layout.c | 4 +- gstreamer-controller/src/auto/mod.rs | 2 + .../src/auto/proxy_control_binding.rs | 3 + gstreamer-controller/src/auto/versions.txt | 4 +- gstreamer-controller/sys/build.rs | 4 +- gstreamer-controller/sys/src/lib.rs | 6 +- gstreamer-controller/sys/tests/abi.rs | 4 +- gstreamer-controller/sys/tests/constant.c | 4 +- gstreamer-controller/sys/tests/layout.c | 4 +- .../src/auto/base_effect.rs | 6 + gstreamer-editing-services/src/auto/clip.rs | 25 +++ gstreamer-editing-services/src/auto/layer.rs | 12 + .../src/auto/project.rs | 6 + .../src/auto/timeline.rs | 10 + .../src/auto/timeline_element.rs | 19 ++ gstreamer-editing-services/src/auto/track.rs | 14 ++ .../src/auto/track_element.rs | 18 ++ .../src/auto/uri_clip_asset.rs | 10 + .../src/auto/uri_source_asset.rs | 2 + .../src/auto/versions.txt | 4 +- gstreamer-editing-services/sys/build.rs | 4 +- gstreamer-editing-services/sys/src/lib.rs | 65 +++++- gstreamer-editing-services/sys/tests/abi.rs | 4 +- .../sys/tests/constant.c | 4 +- gstreamer-editing-services/sys/tests/layout.c | 4 +- gstreamer-gl/src/auto/flags.rs | 1 + gstreamer-gl/src/auto/gl_base_filter.rs | 4 + gstreamer-gl/src/auto/gl_context.rs | 4 + gstreamer-gl/src/auto/gl_display.rs | 4 + .../src/auto/gl_overlay_compositor.rs | 12 + gstreamer-gl/src/auto/gl_shader.rs | 6 + gstreamer-gl/src/auto/gl_window.rs | 8 + gstreamer-gl/src/auto/mod.rs | 10 + gstreamer-gl/src/auto/versions.txt | 4 +- gstreamer-gl/sys/build.rs | 4 +- gstreamer-gl/sys/src/lib.rs | 43 +++- gstreamer-gl/sys/tests/abi.rs | 10 +- gstreamer-gl/sys/tests/constant.c | 4 +- gstreamer-gl/sys/tests/layout.c | 4 +- gstreamer-mpegts/sys/build.rs | 4 +- gstreamer-mpegts/sys/src/lib.rs | 12 +- gstreamer-mpegts/sys/tests/abi.rs | 4 +- gstreamer-mpegts/sys/tests/constant.c | 4 +- gstreamer-mpegts/sys/tests/layout.c | 4 +- gstreamer-net/src/auto/versions.txt | 4 +- gstreamer-net/sys/build.rs | 4 +- gstreamer-net/sys/src/lib.rs | 6 +- gstreamer-net/sys/tests/abi.rs | 4 +- gstreamer-net/sys/tests/constant.c | 4 +- gstreamer-net/sys/tests/layout.c | 4 +- gstreamer-pbutils/src/auto/discoverer.rs | 6 + .../src/auto/discoverer_audio_info.rs | 1 + gstreamer-pbutils/src/auto/discoverer_info.rs | 1 + .../src/auto/encoding_profile.rs | 4 + gstreamer-pbutils/src/auto/encoding_target.rs | 1 + gstreamer-pbutils/src/auto/versions.txt | 4 +- gstreamer-pbutils/sys/build.rs | 4 +- gstreamer-pbutils/sys/src/lib.rs | 14 +- gstreamer-pbutils/sys/tests/abi.rs | 4 +- gstreamer-pbutils/sys/tests/constant.c | 4 +- gstreamer-pbutils/sys/tests/layout.c | 4 +- gstreamer-player/src/auto/player.rs | 3 + gstreamer-player/src/auto/versions.txt | 4 +- gstreamer-player/sys/build.rs | 4 +- gstreamer-player/sys/src/lib.rs | 7 +- gstreamer-player/sys/tests/abi.rs | 4 +- gstreamer-player/sys/tests/constant.c | 4 +- gstreamer-player/sys/tests/layout.c | 4 +- gstreamer-rtp/src/auto/enums.rs | 7 + gstreamer-rtp/src/auto/flags.rs | 7 + gstreamer-rtp/src/auto/functions.rs | 2 + gstreamer-rtp/src/auto/mod.rs | 2 + gstreamer-rtp/src/auto/versions.txt | 4 +- gstreamer-rtp/sys/build.rs | 4 +- gstreamer-rtp/sys/src/lib.rs | 57 ++++- gstreamer-rtp/sys/tests/abi.rs | 4 +- gstreamer-rtp/sys/tests/constant.c | 4 +- gstreamer-rtp/sys/tests/layout.c | 4 +- gstreamer-rtsp-server/src/auto/rtsp_auth.rs | 16 ++ gstreamer-rtsp-server/src/auto/rtsp_client.rs | 31 +++ gstreamer-rtsp-server/src/auto/rtsp_media.rs | 39 ++++ .../src/auto/rtsp_media_factory.rs | 16 ++ gstreamer-rtsp-server/src/auto/rtsp_server.rs | 4 + .../src/auto/rtsp_session_media.rs | 2 + gstreamer-rtsp-server/src/auto/rtsp_stream.rs | 48 ++++ .../src/auto/rtsp_stream_transport.rs | 10 + gstreamer-rtsp-server/src/auto/versions.txt | 4 +- gstreamer-rtsp-server/sys/build.rs | 4 +- gstreamer-rtsp-server/sys/src/lib.rs | 100 ++++++++- gstreamer-rtsp-server/sys/tests/abi.rs | 4 +- gstreamer-rtsp-server/sys/tests/constant.c | 4 +- gstreamer-rtsp-server/sys/tests/layout.c | 4 +- gstreamer-rtsp/src/auto/mod.rs | 2 + gstreamer-rtsp/src/auto/rtsp_auth_param.rs | 1 + gstreamer-rtsp/src/auto/rtsp_url.rs | 1 + gstreamer-rtsp/src/auto/versions.txt | 4 +- gstreamer-rtsp/sys/build.rs | 4 +- gstreamer-rtsp/sys/src/lib.rs | 36 ++- gstreamer-rtsp/sys/tests/abi.rs | 4 +- gstreamer-rtsp/sys/tests/constant.c | 4 +- gstreamer-rtsp/sys/tests/layout.c | 4 +- gstreamer-sdp/src/auto/versions.txt | 4 +- gstreamer-sdp/sys/build.rs | 4 +- gstreamer-sdp/sys/src/lib.rs | 9 +- gstreamer-sdp/sys/tests/abi.rs | 4 +- gstreamer-sdp/sys/tests/constant.c | 4 +- gstreamer-sdp/sys/tests/layout.c | 4 +- gstreamer-tag/sys/build.rs | 4 +- gstreamer-tag/sys/src/lib.rs | 5 +- gstreamer-tag/sys/tests/abi.rs | 4 +- gstreamer-tag/sys/tests/constant.c | 4 +- gstreamer-tag/sys/tests/layout.c | 4 +- gstreamer-video/src/auto/enums.rs | 76 +++++++ gstreamer-video/src/auto/flags.rs | 14 ++ gstreamer-video/src/auto/mod.rs | 5 + gstreamer-video/src/auto/versions.txt | 4 +- gstreamer-video/src/auto/video_decoder.rs | 17 ++ gstreamer-video/src/auto/video_encoder.rs | 13 ++ gstreamer-video/src/auto/video_overlay.rs | 2 + gstreamer-video/sys/build.rs | 4 +- gstreamer-video/sys/src/lib.rs | 122 +++++++++- gstreamer-video/sys/tests/abi.rs | 4 +- gstreamer-video/sys/tests/constant.c | 4 +- gstreamer-video/sys/tests/layout.c | 4 +- gstreamer-webrtc/src/auto/enums.rs | 42 ++++ gstreamer-webrtc/src/auto/mod.rs | 8 + gstreamer-webrtc/src/auto/versions.txt | 4 +- .../src/auto/web_rtc_data_channel.rs | 8 + .../src/auto/web_rtcrtp_transceiver.rs | 9 + gstreamer-webrtc/sys/build.rs | 4 +- gstreamer-webrtc/sys/src/lib.rs | 21 +- gstreamer-webrtc/sys/tests/abi.rs | 4 +- gstreamer-webrtc/sys/tests/constant.c | 4 +- gstreamer-webrtc/sys/tests/layout.c | 4 +- gstreamer/src/auto/bin.rs | 11 + gstreamer/src/auto/bus.rs | 1 + gstreamer/src/auto/clock.rs | 2 + gstreamer/src/auto/date_time.rs | 2 + gstreamer/src/auto/device_provider.rs | 2 + gstreamer/src/auto/element.rs | 8 + gstreamer/src/auto/enums.rs | 12 + gstreamer/src/auto/flags.rs | 28 +++ gstreamer/src/auto/functions.rs | 9 + gstreamer/src/auto/mod.rs | 8 + gstreamer/src/auto/pad.rs | 13 ++ gstreamer/src/auto/pad_template.rs | 4 + gstreamer/src/auto/stream.rs | 24 ++ gstreamer/src/auto/stream_collection.rs | 5 + gstreamer/src/auto/versions.txt | 4 +- gstreamer/sys/build.rs | 4 +- gstreamer/sys/src/lib.rs | 209 +++++++++++++++++- gstreamer/sys/tests/abi.rs | 4 +- gstreamer/sys/tests/constant.c | 4 +- gstreamer/sys/tests/layout.c | 4 +- 195 files changed, 1856 insertions(+), 224 deletions(-) diff --git a/gstreamer-app/src/auto/app_sink.rs b/gstreamer-app/src/auto/app_sink.rs index 572b716fb..865fb47cc 100644 --- a/gstreamer-app/src/auto/app_sink.rs +++ b/gstreamer-app/src/auto/app_sink.rs @@ -27,6 +27,7 @@ glib_wrapper! { impl AppSink { #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] pub fn get_buffer_list_support(&self) -> bool { unsafe { from_glib(gst_app_sys::gst_app_sink_get_buffer_list_support( @@ -86,6 +87,7 @@ impl AppSink { } #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] pub fn set_buffer_list_support(&self, enable_lists: bool) { unsafe { gst_app_sys::gst_app_sink_set_buffer_list_support( @@ -130,6 +132,7 @@ impl AppSink { } #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn try_pull_preroll(&self, timeout: gst::ClockTime) -> Option { unsafe { from_glib_full(gst_app_sys::gst_app_sink_try_pull_preroll( @@ -140,6 +143,7 @@ impl AppSink { } #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn try_pull_sample(&self, timeout: gst::ClockTime) -> Option { unsafe { from_glib_full(gst_app_sys::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 a95452bfe..b0bafa83a 100644 --- a/gstreamer-app/src/auto/app_src.rs +++ b/gstreamer-app/src/auto/app_src.rs @@ -36,6 +36,7 @@ impl AppSrc { } #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn get_duration(&self) -> gst::ClockTime { unsafe { from_glib(gst_app_sys::gst_app_src_get_duration(self.to_glib_none().0)) } } @@ -75,6 +76,7 @@ impl AppSrc { } #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn set_duration(&self, duration: gst::ClockTime) { unsafe { gst_app_sys::gst_app_src_set_duration(self.to_glib_none().0, duration.to_glib()); @@ -156,6 +158,7 @@ impl AppSrc { } #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn get_property_handle_segment_change(&self) -> bool { unsafe { let mut value = Value::from_type(::static_type()); @@ -172,6 +175,7 @@ impl AppSrc { } #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn set_property_handle_segment_change(&self, handle_segment_change: bool) { unsafe { gobject_sys::g_object_set_property( @@ -436,6 +440,7 @@ impl AppSrc { } #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn connect_property_duration_notify( &self, f: F, @@ -514,6 +519,7 @@ impl AppSrc { } #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn connect_property_handle_segment_change_notify( &self, f: F, diff --git a/gstreamer-app/src/auto/versions.txt b/gstreamer-app/src/auto/versions.txt index 03f3faacf..df0f8cdd5 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 @ db37199) -from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e) +Generated by gir (https://github.com/gtk-rs/gir @ 1ae9689) +from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de) diff --git a/gstreamer-app/sys/build.rs b/gstreamer-app/sys/build.rs index 93a1b219b..eadccf000 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 @ db37199) -// from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae9689) +// from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de) // DO NOT EDIT #[cfg(not(feature = "dox"))] diff --git a/gstreamer-app/sys/src/lib.rs b/gstreamer-app/sys/src/lib.rs index 5947869d7..79f422fc8 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 @ db37199) -// from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae9689) +// from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de) // DO NOT EDIT #![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)] @@ -8,6 +8,7 @@ clippy::type_complexity, clippy::unreadable_literal )] +#![cfg_attr(feature = "dox", feature(doc_cfg))] extern crate glib_sys as glib; extern crate gstreamer_base_sys as gst_base; @@ -187,6 +188,7 @@ extern "C" { //========================================================================= pub fn gst_app_sink_get_type() -> GType; #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] pub fn gst_app_sink_get_buffer_list_support(appsink: *mut GstAppSink) -> gboolean; pub fn gst_app_sink_get_caps(appsink: *mut GstAppSink) -> *mut gst::GstCaps; pub fn gst_app_sink_get_drop(appsink: *mut GstAppSink) -> gboolean; @@ -197,6 +199,7 @@ extern "C" { pub fn gst_app_sink_pull_preroll(appsink: *mut GstAppSink) -> *mut gst::GstSample; pub fn gst_app_sink_pull_sample(appsink: *mut GstAppSink) -> *mut gst::GstSample; #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] pub fn gst_app_sink_set_buffer_list_support(appsink: *mut GstAppSink, enable_lists: gboolean); pub fn gst_app_sink_set_callbacks( appsink: *mut GstAppSink, @@ -210,11 +213,13 @@ extern "C" { pub fn gst_app_sink_set_max_buffers(appsink: *mut GstAppSink, max: c_uint); pub fn gst_app_sink_set_wait_on_eos(appsink: *mut GstAppSink, wait: gboolean); #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_app_sink_try_pull_preroll( appsink: *mut GstAppSink, timeout: gst::GstClockTime, ) -> *mut gst::GstSample; #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_app_sink_try_pull_sample( appsink: *mut GstAppSink, timeout: gst::GstClockTime, @@ -228,6 +233,7 @@ extern "C" { pub fn gst_app_src_get_caps(appsrc: *mut GstAppSrc) -> *mut gst::GstCaps; pub fn gst_app_src_get_current_level_bytes(appsrc: *mut GstAppSrc) -> u64; #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_app_src_get_duration(appsrc: *mut GstAppSrc) -> gst::GstClockTime; pub fn gst_app_src_get_emit_signals(appsrc: *mut GstAppSrc) -> gboolean; pub fn gst_app_src_get_latency(appsrc: *mut GstAppSrc, min: *mut u64, max: *mut u64); @@ -239,6 +245,7 @@ extern "C" { buffer: *mut gst::GstBuffer, ) -> gst::GstFlowReturn; #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_app_src_push_buffer_list( appsrc: *mut GstAppSrc, buffer_list: *mut gst::GstBufferList, @@ -255,6 +262,7 @@ extern "C" { ); pub fn gst_app_src_set_caps(appsrc: *mut GstAppSrc, caps: *const gst::GstCaps); #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_app_src_set_duration(appsrc: *mut GstAppSrc, duration: gst::GstClockTime); pub fn gst_app_src_set_emit_signals(appsrc: *mut GstAppSrc, emit: gboolean); pub fn gst_app_src_set_latency(appsrc: *mut GstAppSrc, min: u64, max: u64); diff --git a/gstreamer-app/sys/tests/abi.rs b/gstreamer-app/sys/tests/abi.rs index 8e8f10633..268399fc9 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 @ db37199) -// from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae9689) +// from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de) // DO NOT EDIT extern crate gstreamer_app_sys; diff --git a/gstreamer-app/sys/tests/constant.c b/gstreamer-app/sys/tests/constant.c index 7a1c810ac..3658ebe72 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 @ db37199) -// from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae9689) +// from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-app/sys/tests/layout.c b/gstreamer-app/sys/tests/layout.c index 291623e9a..b418a479d 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 @ db37199) -// from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae9689) +// from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-audio/src/auto/audio_decoder.rs b/gstreamer-audio/src/auto/audio_decoder.rs index b8a6cfdb3..4d59f2d91 100644 --- a/gstreamer-audio/src/auto/audio_decoder.rs +++ b/gstreamer-audio/src/auto/audio_decoder.rs @@ -61,6 +61,7 @@ pub trait AudioDecoderExt: 'static { 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")))] fn set_allocation_caps(&self, allocation_caps: Option<&gst::Caps>); fn set_drainable(&self, enabled: bool); @@ -84,6 +85,7 @@ pub trait AudioDecoderExt: 'static { fn set_use_default_pad_acceptcaps(&self, use_: bool); #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn connect_property_max_errors_notify( &self, f: F, @@ -233,6 +235,7 @@ impl> AudioDecoderExt for O { } #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] fn set_allocation_caps(&self, allocation_caps: Option<&gst::Caps>) { unsafe { gst_audio_sys::gst_audio_decoder_set_allocation_caps( @@ -331,6 +334,7 @@ impl> AudioDecoderExt for O { } #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn connect_property_max_errors_notify( &self, f: F, diff --git a/gstreamer-audio/src/auto/audio_encoder.rs b/gstreamer-audio/src/auto/audio_encoder.rs index 9174a0cdc..a5540fd77 100644 --- a/gstreamer-audio/src/auto/audio_encoder.rs +++ b/gstreamer-audio/src/auto/audio_encoder.rs @@ -58,6 +58,7 @@ pub trait AudioEncoderExt: 'static { 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")))] fn set_allocation_caps(&self, allocation_caps: Option<&gst::Caps>); fn set_drainable(&self, enabled: bool); @@ -213,6 +214,7 @@ impl> AudioEncoderExt for O { } #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] fn set_allocation_caps(&self, allocation_caps: Option<&gst::Caps>) { unsafe { gst_audio_sys::gst_audio_encoder_set_allocation_caps( diff --git a/gstreamer-audio/src/auto/audio_stream_align.rs b/gstreamer-audio/src/auto/audio_stream_align.rs index fa1860a44..a230cf8dc 100644 --- a/gstreamer-audio/src/auto/audio_stream_align.rs +++ b/gstreamer-audio/src/auto/audio_stream_align.rs @@ -3,8 +3,10 @@ // DO NOT EDIT #[cfg(any(feature = "v1_14", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] use glib::translate::*; #[cfg(any(feature = "v1_14", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] use gst; use gst_audio_sys; @@ -21,6 +23,7 @@ glib_wrapper! { impl AudioStreamAlign { #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn new( rate: i32, alignment_threshold: gst::ClockTime, @@ -37,6 +40,7 @@ impl AudioStreamAlign { } #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn get_alignment_threshold(&self) -> gst::ClockTime { unsafe { from_glib( @@ -48,6 +52,7 @@ impl AudioStreamAlign { } #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn get_discont_wait(&self) -> gst::ClockTime { unsafe { from_glib(gst_audio_sys::gst_audio_stream_align_get_discont_wait( @@ -57,6 +62,7 @@ impl AudioStreamAlign { } #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn get_rate(&self) -> i32 { unsafe { gst_audio_sys::gst_audio_stream_align_get_rate(mut_override(self.to_glib_none().0)) @@ -64,6 +70,7 @@ impl AudioStreamAlign { } #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn get_samples_since_discont(&self) -> u64 { unsafe { gst_audio_sys::gst_audio_stream_align_get_samples_since_discont(mut_override( @@ -73,6 +80,7 @@ impl AudioStreamAlign { } #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn get_timestamp_at_discont(&self) -> gst::ClockTime { unsafe { from_glib( @@ -84,6 +92,7 @@ impl AudioStreamAlign { } #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn mark_discont(&mut self) { unsafe { gst_audio_sys::gst_audio_stream_align_mark_discont(self.to_glib_none_mut().0); @@ -91,6 +100,7 @@ impl AudioStreamAlign { } #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn set_alignment_threshold(&mut self, alignment_threshold: gst::ClockTime) { unsafe { gst_audio_sys::gst_audio_stream_align_set_alignment_threshold( @@ -101,6 +111,7 @@ impl AudioStreamAlign { } #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn set_discont_wait(&mut self, discont_wait: gst::ClockTime) { unsafe { gst_audio_sys::gst_audio_stream_align_set_discont_wait( @@ -111,6 +122,7 @@ impl AudioStreamAlign { } #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn set_rate(&mut self, rate: i32) { unsafe { gst_audio_sys::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 ec86ccdfb..128b31de5 100644 --- a/gstreamer-audio/src/auto/enums.rs +++ b/gstreamer-audio/src/auto/enums.rs @@ -415,10 +415,13 @@ pub enum AudioRingBufferFormatType { Mpeg2Aac, Mpeg4Aac, #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] Mpeg2AacRaw, #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] Mpeg4AacRaw, #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] Flac, #[doc(hidden)] __Unknown(i32), diff --git a/gstreamer-audio/src/auto/mod.rs b/gstreamer-audio/src/auto/mod.rs index aede8ca07..755680d63 100644 --- a/gstreamer-audio/src/auto/mod.rs +++ b/gstreamer-audio/src/auto/mod.rs @@ -29,8 +29,10 @@ pub use self::stream_volume::StreamVolumeExt; pub use self::stream_volume::{StreamVolume, NONE_STREAM_VOLUME}; #[cfg(any(feature = "v1_14", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] mod audio_stream_align; #[cfg(any(feature = "v1_14", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub use self::audio_stream_align::AudioStreamAlign; mod enums; diff --git a/gstreamer-audio/src/auto/versions.txt b/gstreamer-audio/src/auto/versions.txt index 03f3faacf..df0f8cdd5 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 @ db37199) -from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e) +Generated by gir (https://github.com/gtk-rs/gir @ 1ae9689) +from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de) diff --git a/gstreamer-audio/sys/build.rs b/gstreamer-audio/sys/build.rs index 93a1b219b..eadccf000 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 @ db37199) -// from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae9689) +// from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de) // DO NOT EDIT #[cfg(not(feature = "dox"))] diff --git a/gstreamer-audio/sys/src/lib.rs b/gstreamer-audio/sys/src/lib.rs index ff13ff387..59638b27d 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 @ db37199) -// from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae9689) +// from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de) // DO NOT EDIT #![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)] @@ -8,6 +8,7 @@ clippy::type_complexity, clippy::unreadable_literal )] +#![cfg_attr(feature = "dox", feature(doc_cfg))] extern crate glib_sys as glib; extern crate gobject_sys as gobject; @@ -1442,18 +1443,21 @@ extern "C" { // GstAudioResamplerFilterInterpolation //========================================================================= #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_audio_resampler_filter_interpolation_get_type() -> GType; //========================================================================= // GstAudioResamplerFilterMode //========================================================================= #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_audio_resampler_filter_mode_get_type() -> GType; //========================================================================= // GstAudioResamplerMethod //========================================================================= #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_audio_resampler_method_get_type() -> GType; //========================================================================= @@ -1500,12 +1504,14 @@ extern "C" { // GstAudioResamplerFlags //========================================================================= #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_audio_resampler_flags_get_type() -> GType; //========================================================================= // GstAudioBuffer //========================================================================= #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_audio_buffer_map( buffer: *mut GstAudioBuffer, info: *const GstAudioInfo, @@ -1513,6 +1519,7 @@ extern "C" { flags: gst::GstMapFlags, ) -> gboolean; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_audio_buffer_unmap(buffer: *mut GstAudioBuffer); pub fn gst_audio_buffer_clip( buffer: *mut gst::GstBuffer, @@ -1528,6 +1535,7 @@ extern "C" { to: *const GstAudioChannelPosition, ) -> gboolean; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_audio_buffer_truncate( buffer: *mut gst::GstBuffer, bpf: c_int, @@ -1555,6 +1563,7 @@ extern "C" { out_position: *mut GstAudioChannelPosition, ) -> *mut GstAudioChannelMixer; #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_audio_channel_mixer_new_with_matrix( flags: GstAudioChannelMixerFlags, format: GstAudioFormat, @@ -1572,6 +1581,7 @@ extern "C" { // GstAudioConverter //========================================================================= #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_audio_converter_get_type() -> GType; pub fn gst_audio_converter_new( flags: GstAudioConverterFlags, @@ -1580,6 +1590,7 @@ extern "C" { config: *mut gst::GstStructure, ) -> *mut GstAudioConverter; #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_audio_converter_convert( convert: *mut GstAudioConverter, flags: GstAudioConverterFlags, @@ -1604,6 +1615,7 @@ extern "C" { in_frames: size_t, ) -> size_t; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_audio_converter_is_passthrough(convert: *mut GstAudioConverter) -> gboolean; pub fn gst_audio_converter_reset(convert: *mut GstAudioConverter); pub fn gst_audio_converter_samples( @@ -1615,6 +1627,7 @@ extern "C" { out_frames: size_t, ) -> gboolean; #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] pub fn gst_audio_converter_supports_inplace(convert: *mut GstAudioConverter) -> gboolean; pub fn gst_audio_converter_update_config( convert: *mut GstAudioConverter, @@ -1670,6 +1683,7 @@ extern "C" { // GstAudioMeta //========================================================================= #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_audio_meta_get_info() -> *const gst::GstMetaInfo; //========================================================================= @@ -1696,20 +1710,25 @@ extern "C" { // GstAudioResampler //========================================================================= #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_audio_resampler_free(resampler: *mut GstAudioResampler); #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_audio_resampler_get_in_frames( resampler: *mut GstAudioResampler, out_frames: size_t, ) -> size_t; #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_audio_resampler_get_max_latency(resampler: *mut GstAudioResampler) -> size_t; #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_audio_resampler_get_out_frames( resampler: *mut GstAudioResampler, in_frames: size_t, ) -> size_t; #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_audio_resampler_resample( resampler: *mut GstAudioResampler, in_: *mut gpointer, @@ -1718,8 +1737,10 @@ extern "C" { out_frames: size_t, ); #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_audio_resampler_reset(resampler: *mut GstAudioResampler); #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_audio_resampler_update( resampler: *mut GstAudioResampler, in_rate: c_int, @@ -1727,6 +1748,7 @@ extern "C" { options: *mut gst::GstStructure, ) -> gboolean; #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_audio_resampler_new( method: GstAudioResamplerMethod, flags: GstAudioResamplerFlags, @@ -1737,6 +1759,7 @@ extern "C" { options: *mut gst::GstStructure, ) -> *mut GstAudioResampler; #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_audio_resampler_options_set_quality( method: GstAudioResamplerMethod, quality: c_uint, @@ -1749,39 +1772,50 @@ extern "C" { // GstAudioStreamAlign //========================================================================= #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_audio_stream_align_get_type() -> GType; #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_audio_stream_align_new( rate: c_int, alignment_threshold: gst::GstClockTime, discont_wait: gst::GstClockTime, ) -> *mut GstAudioStreamAlign; #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_audio_stream_align_copy( align: *const GstAudioStreamAlign, ) -> *mut GstAudioStreamAlign; #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_audio_stream_align_free(align: *mut GstAudioStreamAlign); #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_audio_stream_align_get_alignment_threshold( align: *mut GstAudioStreamAlign, ) -> gst::GstClockTime; #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_audio_stream_align_get_discont_wait( align: *mut GstAudioStreamAlign, ) -> gst::GstClockTime; #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_audio_stream_align_get_rate(align: *mut GstAudioStreamAlign) -> c_int; #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_audio_stream_align_get_samples_since_discont(align: *mut GstAudioStreamAlign) -> u64; #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_audio_stream_align_get_timestamp_at_discont( align: *mut GstAudioStreamAlign, ) -> gst::GstClockTime; #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_audio_stream_align_mark_discont(align: *mut GstAudioStreamAlign); #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_audio_stream_align_process( align: *mut GstAudioStreamAlign, discont: gboolean, @@ -1792,24 +1826,29 @@ extern "C" { out_sample_position: *mut u64, ) -> gboolean; #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_audio_stream_align_set_alignment_threshold( align: *mut GstAudioStreamAlign, alignment_threshold: gst::GstClockTime, ); #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_audio_stream_align_set_discont_wait( align: *mut GstAudioStreamAlign, discont_wait: gst::GstClockTime, ); #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_audio_stream_align_set_rate(align: *mut GstAudioStreamAlign, rate: c_int); //========================================================================= // GstAudioAggregator //========================================================================= #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_audio_aggregator_get_type() -> GType; #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_audio_aggregator_set_sink_caps( aagg: *mut GstAudioAggregator, pad: *mut GstAudioAggregatorPad, @@ -1820,12 +1859,14 @@ extern "C" { // GstAudioAggregatorConvertPad //========================================================================= #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_audio_aggregator_convert_pad_get_type() -> GType; //========================================================================= // GstAudioAggregatorPad //========================================================================= #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_audio_aggregator_pad_get_type() -> GType; //========================================================================= @@ -1927,6 +1968,7 @@ extern "C" { frames: c_int, ) -> gst::GstFlowReturn; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_audio_decoder_finish_subframe( dec: *mut GstAudioDecoder, buf: *mut gst::GstBuffer, @@ -1968,6 +2010,7 @@ extern "C" { filter: *mut gst::GstCaps, ) -> *mut gst::GstCaps; #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_audio_decoder_set_allocation_caps( dec: *mut GstAudioDecoder, allocation_caps: *mut gst::GstCaps, @@ -1983,6 +2026,7 @@ extern "C" { pub fn gst_audio_decoder_set_min_latency(dec: *mut GstAudioDecoder, num: gst::GstClockTime); pub fn gst_audio_decoder_set_needs_format(dec: *mut GstAudioDecoder, enabled: gboolean); #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_audio_decoder_set_output_caps( dec: *mut GstAudioDecoder, caps: *mut gst::GstCaps, @@ -2045,6 +2089,7 @@ extern "C" { filter: *mut gst::GstCaps, ) -> *mut gst::GstCaps; #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_audio_encoder_set_allocation_caps( enc: *mut GstAudioEncoder, allocation_caps: *mut gst::GstCaps, @@ -2141,6 +2186,7 @@ extern "C" { user_data: gpointer, ); #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] pub fn gst_audio_ring_buffer_set_callback_full( buf: *mut GstAudioRingBuffer, cb: GstAudioRingBufferCallback, @@ -2208,6 +2254,7 @@ extern "C" { channel_mask: *mut u64, ) -> gboolean; #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_audio_channel_positions_to_string( position: *const GstAudioChannelPosition, channels: c_int, @@ -2225,6 +2272,7 @@ extern "C" { pub fn gst_audio_downmix_meta_api_get_type() -> GType; pub fn gst_audio_format_info_get_type() -> GType; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_audio_formats_raw(len: *mut c_uint) -> *const GstAudioFormat; pub fn gst_audio_get_channel_reorder_map( channels: c_int, @@ -2242,12 +2290,14 @@ extern "C" { endianness: c_int, ) -> gboolean; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_audio_make_raw_caps( formats: *const GstAudioFormat, len: c_uint, layout: GstAudioLayout, ) -> *mut gst::GstCaps; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_audio_meta_api_get_type() -> GType; pub fn gst_audio_reorder_channels( data: gpointer, @@ -2272,6 +2322,7 @@ extern "C" { matrix: *mut *const c_float, ) -> *mut GstAudioDownmixMeta; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_buffer_add_audio_meta( buffer: *mut gst::GstBuffer, info: *const GstAudioInfo, diff --git a/gstreamer-audio/sys/tests/abi.rs b/gstreamer-audio/sys/tests/abi.rs index 2ab7e3711..567576866 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 @ db37199) -// from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae9689) +// from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de) // DO NOT EDIT extern crate gstreamer_audio_sys; diff --git a/gstreamer-audio/sys/tests/constant.c b/gstreamer-audio/sys/tests/constant.c index 7a1c810ac..3658ebe72 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 @ db37199) -// from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae9689) +// from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-audio/sys/tests/layout.c b/gstreamer-audio/sys/tests/layout.c index 291623e9a..b418a479d 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 @ db37199) -// from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae9689) +// from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-base/src/auto/adapter.rs b/gstreamer-base/src/auto/adapter.rs index 6c2f9f10f..ec6ab11b7 100644 --- a/gstreamer-base/src/auto/adapter.rs +++ b/gstreamer-base/src/auto/adapter.rs @@ -49,11 +49,13 @@ impl Adapter { } #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn distance_from_discont(&self) -> u64 { unsafe { gst_base_sys::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")))] pub fn dts_at_discont(&self) -> gst::ClockTime { unsafe { from_glib(gst_base_sys::gst_adapter_dts_at_discont( @@ -142,6 +144,7 @@ impl Adapter { } #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn offset_at_discont(&self) -> u64 { unsafe { gst_base_sys::gst_adapter_offset_at_discont(self.to_glib_none().0) } } @@ -172,6 +175,7 @@ impl Adapter { } #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn prev_offset(&self) -> (u64, u64) { unsafe { let mut distance = mem::MaybeUninit::uninit(); @@ -208,6 +212,7 @@ impl Adapter { } #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn pts_at_discont(&self) -> gst::ClockTime { unsafe { from_glib(gst_base_sys::gst_adapter_pts_at_discont( diff --git a/gstreamer-base/src/auto/aggregator.rs b/gstreamer-base/src/auto/aggregator.rs index 63502fb3e..83c04c693 100644 --- a/gstreamer-base/src/auto/aggregator.rs +++ b/gstreamer-base/src/auto/aggregator.rs @@ -16,8 +16,10 @@ use gst_base_sys; use std::boxed::Box as Box_; use std::mem::transmute; #[cfg(any(feature = "v1_18", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] use AggregatorPad; #[cfg(any(feature = "v1_18", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] use AggregatorStartTimeSelection; glib_wrapper! { @@ -35,36 +37,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")))] //fn get_allocator(&self, allocator: /*Ignored*/gst::Allocator, params: /*Ignored*/gst::AllocationParams); #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] fn get_buffer_pool(&self) -> Option; #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] fn get_latency(&self) -> gst::ClockTime; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn negotiate(&self) -> bool; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn peek_next_sample>(&self, pad: &P) -> Option; #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] 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")))] fn set_src_caps(&self, caps: &gst::Caps); #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn simple_get_next_time(&self) -> gst::ClockTime; //#[cfg(any(feature = "v1_18", feature = "dox"))] + //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] //fn update_segment(&self, segment: /*Ignored*/&gst::Segment); #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn get_property_emit_signals(&self) -> bool; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn set_property_emit_signals(&self, emit_signals: bool); fn get_property_start_time(&self) -> u64; @@ -72,21 +85,26 @@ pub trait AggregatorExt: 'static { fn set_property_start_time(&self, start_time: u64); #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn get_property_start_time_selection(&self) -> AggregatorStartTimeSelection; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn set_property_start_time_selection(&self, start_time_selection: AggregatorStartTimeSelection); //#[cfg(any(feature = "v1_18", feature = "dox"))] + //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] //fn connect_samples_selected(&self, f: F) -> SignalHandlerId; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn connect_property_emit_signals_notify( &self, f: F, ) -> SignalHandlerId; #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] fn connect_property_latency_notify( &self, f: F, @@ -98,6 +116,7 @@ pub trait AggregatorExt: 'static { ) -> SignalHandlerId; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn connect_property_start_time_selection_notify( &self, f: F, @@ -106,11 +125,13 @@ pub trait AggregatorExt: 'static { impl> AggregatorExt for O { //#[cfg(any(feature = "v1_14", feature = "dox"))] + //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] //fn get_allocator(&self, allocator: /*Ignored*/gst::Allocator, params: /*Ignored*/gst::AllocationParams) { // unsafe { TODO: call gst_base_sys:gst_aggregator_get_allocator() } //} #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] fn get_buffer_pool(&self) -> Option { unsafe { from_glib_full(gst_base_sys::gst_aggregator_get_buffer_pool( @@ -120,6 +141,7 @@ impl> AggregatorExt for O { } #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] fn get_latency(&self) -> gst::ClockTime { unsafe { from_glib(gst_base_sys::gst_aggregator_get_latency( @@ -129,6 +151,7 @@ impl> AggregatorExt for O { } #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn negotiate(&self) -> bool { unsafe { from_glib(gst_base_sys::gst_aggregator_negotiate( @@ -138,6 +161,7 @@ impl> AggregatorExt for O { } #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn peek_next_sample>(&self, pad: &P) -> Option { unsafe { from_glib_full(gst_base_sys::gst_aggregator_peek_next_sample( @@ -148,6 +172,7 @@ impl> AggregatorExt for O { } #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] fn set_latency(&self, min_latency: gst::ClockTime, max_latency: gst::ClockTime) { unsafe { gst_base_sys::gst_aggregator_set_latency( @@ -159,6 +184,7 @@ impl> AggregatorExt for O { } #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] fn set_src_caps(&self, caps: &gst::Caps) { unsafe { gst_base_sys::gst_aggregator_set_src_caps( @@ -169,6 +195,7 @@ impl> AggregatorExt for O { } #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn simple_get_next_time(&self) -> gst::ClockTime { unsafe { from_glib(gst_base_sys::gst_aggregator_simple_get_next_time( @@ -178,11 +205,13 @@ impl> AggregatorExt for O { } //#[cfg(any(feature = "v1_18", feature = "dox"))] + //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] //fn update_segment(&self, segment: /*Ignored*/&gst::Segment) { // unsafe { TODO: call gst_base_sys:gst_aggregator_update_segment() } //} #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn get_property_emit_signals(&self) -> bool { unsafe { let mut value = Value::from_type(::static_type()); @@ -199,6 +228,7 @@ impl> AggregatorExt for O { } #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn set_property_emit_signals(&self, emit_signals: bool) { unsafe { gobject_sys::g_object_set_property( @@ -235,6 +265,7 @@ impl> AggregatorExt for O { } #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn get_property_start_time_selection(&self) -> AggregatorStartTimeSelection { unsafe { let mut value = @@ -252,6 +283,7 @@ impl> AggregatorExt for O { } #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn set_property_start_time_selection( &self, start_time_selection: AggregatorStartTimeSelection, @@ -266,11 +298,13 @@ impl> AggregatorExt for O { } //#[cfg(any(feature = "v1_18", feature = "dox"))] + //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] //fn connect_samples_selected(&self, f: F) -> SignalHandlerId { // Ignored segment: Gst.Segment //} #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn connect_property_emit_signals_notify( &self, f: F, @@ -299,6 +333,7 @@ impl> AggregatorExt for O { } #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] fn connect_property_latency_notify( &self, f: F, @@ -354,6 +389,7 @@ impl> AggregatorExt for O { } #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn connect_property_start_time_selection_notify( &self, f: F, diff --git a/gstreamer-base/src/auto/aggregator_pad.rs b/gstreamer-base/src/auto/aggregator_pad.rs index 6a621c869..6d224aee8 100644 --- a/gstreamer-base/src/auto/aggregator_pad.rs +++ b/gstreamer-base/src/auto/aggregator_pad.rs @@ -8,11 +8,14 @@ use glib::signal::connect_raw; use glib::signal::SignalHandlerId; use glib::translate::*; #[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] use glib::StaticType; #[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] use glib::Value; use glib_sys; #[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] use gobject_sys; use gst; use gst_base_sys; @@ -35,24 +38,31 @@ 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")))] fn drop_buffer(&self) -> bool; #[cfg(any(feature = "v1_14_1", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14_1")))] fn has_buffer(&self) -> bool; #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] fn is_eos(&self) -> bool; #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] fn peek_buffer(&self) -> Option; #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] fn pop_buffer(&self) -> Option; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn get_property_emit_signals(&self) -> bool; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn set_property_emit_signals(&self, emit_signals: bool); fn connect_buffer_consumed( @@ -61,6 +71,7 @@ pub trait AggregatorPadExt: 'static { ) -> SignalHandlerId; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn connect_property_emit_signals_notify( &self, f: F, @@ -69,6 +80,7 @@ pub trait AggregatorPadExt: 'static { impl> AggregatorPadExt for O { #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] fn drop_buffer(&self) -> bool { unsafe { from_glib(gst_base_sys::gst_aggregator_pad_drop_buffer( @@ -78,6 +90,7 @@ impl> AggregatorPadExt for O { } #[cfg(any(feature = "v1_14_1", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14_1")))] fn has_buffer(&self) -> bool { unsafe { from_glib(gst_base_sys::gst_aggregator_pad_has_buffer( @@ -87,6 +100,7 @@ impl> AggregatorPadExt for O { } #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] fn is_eos(&self) -> bool { unsafe { from_glib(gst_base_sys::gst_aggregator_pad_is_eos( @@ -96,6 +110,7 @@ impl> AggregatorPadExt for O { } #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] fn peek_buffer(&self) -> Option { unsafe { from_glib_full(gst_base_sys::gst_aggregator_pad_peek_buffer( @@ -105,6 +120,7 @@ impl> AggregatorPadExt for O { } #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] fn pop_buffer(&self) -> Option { unsafe { from_glib_full(gst_base_sys::gst_aggregator_pad_pop_buffer( @@ -114,6 +130,7 @@ impl> AggregatorPadExt for O { } #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn get_property_emit_signals(&self) -> bool { unsafe { let mut value = Value::from_type(::static_type()); @@ -130,6 +147,7 @@ impl> AggregatorPadExt for O { } #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn set_property_emit_signals(&self, emit_signals: bool) { unsafe { gobject_sys::g_object_set_property( @@ -174,6 +192,7 @@ impl> AggregatorPadExt for O { } #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn connect_property_emit_signals_notify( &self, f: F, diff --git a/gstreamer-base/src/auto/base_parse.rs b/gstreamer-base/src/auto/base_parse.rs index dd07ab57e..e49174613 100644 --- a/gstreamer-base/src/auto/base_parse.rs +++ b/gstreamer-base/src/auto/base_parse.rs @@ -33,6 +33,7 @@ pub trait BaseParseExt: 'static { 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")))] fn drain(&self); fn merge_tags(&self, tags: Option<&gst::TagList>, mode: gst::TagMergeMode); @@ -79,6 +80,7 @@ impl> BaseParseExt for O { } #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] fn drain(&self) { unsafe { gst_base_sys::gst_base_parse_drain(self.as_ref().to_glib_none().0); diff --git a/gstreamer-base/src/auto/base_sink.rs b/gstreamer-base/src/auto/base_sink.rs index 8dad5e840..d169367a7 100644 --- a/gstreamer-base/src/auto/base_sink.rs +++ b/gstreamer-base/src/auto/base_sink.rs @@ -35,6 +35,7 @@ pub trait BaseSinkExt: 'static { fn get_blocksize(&self) -> u32; #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] fn get_drop_out_of_segment(&self) -> bool; fn get_last_sample(&self) -> Option; @@ -46,11 +47,13 @@ pub trait BaseSinkExt: 'static { fn get_max_lateness(&self) -> i64; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn get_processing_deadline(&self) -> gst::ClockTime; fn get_render_delay(&self) -> gst::ClockTime; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn get_stats(&self) -> Option; fn get_sync(&self) -> bool; @@ -70,6 +73,7 @@ pub trait BaseSinkExt: 'static { fn set_blocksize(&self, blocksize: u32); #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] fn set_drop_out_of_segment(&self, drop_out_of_segment: bool); fn set_last_sample_enabled(&self, enabled: bool); @@ -79,6 +83,7 @@ pub trait BaseSinkExt: 'static { fn set_max_lateness(&self, max_lateness: i64); #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn set_processing_deadline(&self, processing_deadline: gst::ClockTime); fn set_qos_enabled(&self, enabled: bool); @@ -134,6 +139,7 @@ pub trait BaseSinkExt: 'static { ) -> SignalHandlerId; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn connect_property_processing_deadline_notify( &self, f: F, @@ -150,6 +156,7 @@ pub trait BaseSinkExt: 'static { ) -> SignalHandlerId; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn connect_property_stats_notify( &self, f: F, @@ -181,6 +188,7 @@ impl> BaseSinkExt for O { } #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] fn get_drop_out_of_segment(&self) -> bool { unsafe { from_glib(gst_base_sys::gst_base_sink_get_drop_out_of_segment( @@ -214,6 +222,7 @@ impl> BaseSinkExt for O { } #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn get_processing_deadline(&self) -> gst::ClockTime { unsafe { from_glib(gst_base_sys::gst_base_sink_get_processing_deadline( @@ -231,6 +240,7 @@ impl> BaseSinkExt for O { } #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn get_stats(&self) -> Option { unsafe { from_glib_full(gst_base_sys::gst_base_sink_get_stats( @@ -295,6 +305,7 @@ impl> BaseSinkExt for O { } #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] fn set_drop_out_of_segment(&self, drop_out_of_segment: bool) { unsafe { gst_base_sys::gst_base_sink_set_drop_out_of_segment( @@ -332,6 +343,7 @@ impl> BaseSinkExt for O { } #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn set_processing_deadline(&self, processing_deadline: gst::ClockTime) { unsafe { gst_base_sys::gst_base_sink_set_processing_deadline( @@ -618,6 +630,7 @@ impl> BaseSinkExt for O { } #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn connect_property_processing_deadline_notify( &self, f: F, @@ -703,6 +716,7 @@ impl> BaseSinkExt for O { } #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn connect_property_stats_notify( &self, f: F, diff --git a/gstreamer-base/src/auto/base_src.rs b/gstreamer-base/src/auto/base_src.rs index 72dbed319..c3cc164b8 100644 --- a/gstreamer-base/src/auto/base_src.rs +++ b/gstreamer-base/src/auto/base_src.rs @@ -44,6 +44,7 @@ pub trait BaseSrcExt: 'static { fn is_live(&self) -> bool; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn negotiate(&self) -> bool; #[cfg_attr(feature = "v1_18", deprecated)] @@ -136,6 +137,7 @@ impl> BaseSrcExt for O { } #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn negotiate(&self) -> bool { unsafe { from_glib(gst_base_sys::gst_base_src_negotiate( diff --git a/gstreamer-base/src/auto/base_transform.rs b/gstreamer-base/src/auto/base_transform.rs index 22dc1fa10..c5b7c2e62 100644 --- a/gstreamer-base/src/auto/base_transform.rs +++ b/gstreamer-base/src/auto/base_transform.rs @@ -42,6 +42,7 @@ pub trait BaseTransformExt: 'static { fn is_qos_enabled(&self) -> bool; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn reconfigure(&self) -> bool; fn reconfigure_sink(&self); @@ -110,6 +111,7 @@ impl> BaseTransformExt for O { } #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn reconfigure(&self) -> bool { unsafe { from_glib(gst_base_sys::gst_base_transform_reconfigure( diff --git a/gstreamer-base/src/auto/enums.rs b/gstreamer-base/src/auto/enums.rs index 50ae3633a..48c9cbbb5 100644 --- a/gstreamer-base/src/auto/enums.rs +++ b/gstreamer-base/src/auto/enums.rs @@ -13,6 +13,7 @@ use gobject_sys; use gst_base_sys; #[cfg(any(feature = "v1_18", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] pub enum AggregatorStartTimeSelection { @@ -24,6 +25,7 @@ pub enum AggregatorStartTimeSelection { } #[cfg(any(feature = "v1_18", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[doc(hidden)] impl ToGlib for AggregatorStartTimeSelection { type GlibType = gst_base_sys::GstAggregatorStartTimeSelection; @@ -45,6 +47,7 @@ impl ToGlib for AggregatorStartTimeSelection { } #[cfg(any(feature = "v1_18", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[doc(hidden)] impl FromGlib for AggregatorStartTimeSelection { fn from_glib(value: gst_base_sys::GstAggregatorStartTimeSelection) -> Self { @@ -59,6 +62,7 @@ impl FromGlib for AggregatorStart } #[cfg(any(feature = "v1_18", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] impl StaticType for AggregatorStartTimeSelection { fn static_type() -> Type { unsafe { from_glib(gst_base_sys::gst_aggregator_start_time_selection_get_type()) } @@ -66,6 +70,7 @@ impl StaticType for AggregatorStartTimeSelection { } #[cfg(any(feature = "v1_18", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] impl<'a> FromValueOptional<'a> for AggregatorStartTimeSelection { unsafe fn from_value_optional(value: &Value) -> Option { Some(FromValue::from_value(value)) @@ -73,6 +78,7 @@ impl<'a> FromValueOptional<'a> for AggregatorStartTimeSelection { } #[cfg(any(feature = "v1_18", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] impl<'a> FromValue<'a> for AggregatorStartTimeSelection { unsafe fn from_value(value: &Value) -> Self { from_glib(gobject_sys::g_value_get_enum(value.to_glib_none().0)) @@ -80,6 +86,7 @@ impl<'a> FromValue<'a> for AggregatorStartTimeSelection { } #[cfg(any(feature = "v1_18", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] impl SetValue for AggregatorStartTimeSelection { unsafe fn set_value(value: &mut Value, this: &Self) { gobject_sys::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib()) diff --git a/gstreamer-base/src/auto/functions.rs b/gstreamer-base/src/auto/functions.rs index b71e92d5a..84e7af696 100644 --- a/gstreamer-base/src/auto/functions.rs +++ b/gstreamer-base/src/auto/functions.rs @@ -41,6 +41,7 @@ pub fn type_find_helper_for_extension>( //} //#[cfg(any(feature = "v1_14_3", feature = "dox"))] +//#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14_3")))] //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 gst_base_sys:gst_type_find_helper_get_range_full() } //} diff --git a/gstreamer-base/src/auto/mod.rs b/gstreamer-base/src/auto/mod.rs index d83a2145f..828c6259d 100644 --- a/gstreamer-base/src/auto/mod.rs +++ b/gstreamer-base/src/auto/mod.rs @@ -6,17 +6,23 @@ mod adapter; pub use self::adapter::Adapter; #[cfg(any(feature = "v1_14", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] mod aggregator; #[cfg(any(feature = "v1_14", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub use self::aggregator::AggregatorExt; #[cfg(any(feature = "v1_14", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub use self::aggregator::{Aggregator, NONE_AGGREGATOR}; #[cfg(any(feature = "v1_14", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] mod aggregator_pad; #[cfg(any(feature = "v1_14", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub use self::aggregator_pad::AggregatorPadExt; #[cfg(any(feature = "v1_14", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub use self::aggregator_pad::{AggregatorPad, NONE_AGGREGATOR_PAD}; mod base_parse; @@ -40,6 +46,7 @@ pub use self::push_src::{PushSrc, NONE_PUSH_SRC}; mod enums; #[cfg(any(feature = "v1_18", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub use self::enums::AggregatorStartTimeSelection; mod flags; @@ -50,8 +57,10 @@ pub mod functions; #[doc(hidden)] pub mod traits { #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub use super::AggregatorExt; #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub use super::AggregatorPadExt; pub use super::BaseParseExt; pub use super::BaseSinkExt; diff --git a/gstreamer-base/src/auto/versions.txt b/gstreamer-base/src/auto/versions.txt index 03f3faacf..df0f8cdd5 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 @ db37199) -from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e) +Generated by gir (https://github.com/gtk-rs/gir @ 1ae9689) +from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de) diff --git a/gstreamer-base/sys/build.rs b/gstreamer-base/sys/build.rs index 93a1b219b..eadccf000 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 @ db37199) -// from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae9689) +// from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de) // DO NOT EDIT #[cfg(not(feature = "dox"))] diff --git a/gstreamer-base/sys/src/lib.rs b/gstreamer-base/sys/src/lib.rs index df2aad59a..ea8a41020 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 @ db37199) -// from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae9689) +// from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de) // DO NOT EDIT #![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)] @@ -8,6 +8,7 @@ clippy::type_complexity, clippy::unreadable_literal )] +#![cfg_attr(feature = "dox", feature(doc_cfg))] extern crate glib_sys as glib; extern crate gobject_sys as gobject; @@ -1217,6 +1218,7 @@ extern "C" { // GstAggregatorStartTimeSelection //========================================================================= #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_aggregator_start_time_selection_get_type() -> GType; //========================================================================= @@ -1229,6 +1231,7 @@ extern "C" { overhead: c_int, ) -> *mut GstBaseParseFrame; #[cfg(any(feature = "v1_12_1", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12_1")))] pub fn gst_base_parse_frame_copy(frame: *mut GstBaseParseFrame) -> *mut GstBaseParseFrame; pub fn gst_base_parse_frame_free(frame: *mut GstBaseParseFrame); pub fn gst_base_parse_frame_init(frame: *mut GstBaseParseFrame); @@ -1290,22 +1293,31 @@ extern "C" { // GstBitWriter //========================================================================= #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_bit_writer_align_bytes(bitwriter: *mut GstBitWriter, trailing_bit: u8) -> gboolean; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_bit_writer_free(bitwriter: *mut GstBitWriter); #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_bit_writer_free_and_get_buffer(bitwriter: *mut GstBitWriter) -> *mut gst::GstBuffer; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_bit_writer_free_and_get_data(bitwriter: *mut GstBitWriter) -> *mut u8; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_bit_writer_get_data(bitwriter: *const GstBitWriter) -> *mut u8; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_bit_writer_get_remaining(bitwriter: *const GstBitWriter) -> c_uint; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_bit_writer_get_size(bitwriter: *const GstBitWriter) -> c_uint; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_bit_writer_init(bitwriter: *mut GstBitWriter); #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_bit_writer_init_with_data( bitwriter: *mut GstBitWriter, data: *mut u8, @@ -1313,55 +1325,68 @@ extern "C" { initialized: gboolean, ); #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_bit_writer_init_with_size(bitwriter: *mut GstBitWriter, size: u32, fixed: gboolean); #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_bit_writer_put_bits_uint16( bitwriter: *mut GstBitWriter, value: u16, nbits: c_uint, ) -> gboolean; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_bit_writer_put_bits_uint32( bitwriter: *mut GstBitWriter, value: u32, nbits: c_uint, ) -> gboolean; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_bit_writer_put_bits_uint64( bitwriter: *mut GstBitWriter, value: u64, nbits: c_uint, ) -> gboolean; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_bit_writer_put_bits_uint8( bitwriter: *mut GstBitWriter, value: u8, nbits: c_uint, ) -> gboolean; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_bit_writer_put_bytes( bitwriter: *mut GstBitWriter, data: *const u8, nbytes: c_uint, ) -> gboolean; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_bit_writer_reset(bitwriter: *mut GstBitWriter); #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_bit_writer_reset_and_get_buffer(bitwriter: *mut GstBitWriter) -> *mut gst::GstBuffer; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_bit_writer_reset_and_get_data(bitwriter: *mut GstBitWriter) -> *mut u8; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_bit_writer_set_pos(bitwriter: *mut GstBitWriter, pos: c_uint) -> gboolean; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_bit_writer_new() -> *mut GstBitWriter; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_bit_writer_new_with_data( data: *mut u8, size: c_uint, initialized: gboolean, ) -> *mut GstBitWriter; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_bit_writer_new_with_size(size: u32, fixed: gboolean) -> *mut GstBitWriter; //========================================================================= @@ -1593,10 +1618,12 @@ extern "C" { pub fn gst_flow_combiner_clear(combiner: *mut GstFlowCombiner); pub fn gst_flow_combiner_free(combiner: *mut GstFlowCombiner); #[cfg(any(feature = "v1_12_1", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12_1")))] pub fn gst_flow_combiner_ref(combiner: *mut GstFlowCombiner) -> *mut GstFlowCombiner; pub fn gst_flow_combiner_remove_pad(combiner: *mut GstFlowCombiner, pad: *mut gst::GstPad); pub fn gst_flow_combiner_reset(combiner: *mut GstFlowCombiner); #[cfg(any(feature = "v1_12_1", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12_1")))] pub fn gst_flow_combiner_unref(combiner: *mut GstFlowCombiner); pub fn gst_flow_combiner_update_flow( combiner: *mut GstFlowCombiner, @@ -1612,6 +1639,7 @@ extern "C" { // GstQueueArray //========================================================================= #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_queue_array_clear(array: *mut GstQueueArray); pub fn gst_queue_array_drop_element(array: *mut GstQueueArray, idx: c_uint) -> gpointer; pub fn gst_queue_array_drop_struct( @@ -1630,22 +1658,29 @@ extern "C" { pub fn gst_queue_array_peek_head(array: *mut GstQueueArray) -> gpointer; pub fn gst_queue_array_peek_head_struct(array: *mut GstQueueArray) -> gpointer; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_queue_array_peek_nth(array: *mut GstQueueArray, idx: c_uint) -> gpointer; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_queue_array_peek_nth_struct(array: *mut GstQueueArray, idx: c_uint) -> gpointer; #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_queue_array_peek_tail(array: *mut GstQueueArray) -> gpointer; #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_queue_array_peek_tail_struct(array: *mut GstQueueArray) -> gpointer; pub fn gst_queue_array_pop_head(array: *mut GstQueueArray) -> gpointer; pub fn gst_queue_array_pop_head_struct(array: *mut GstQueueArray) -> gpointer; #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_queue_array_pop_tail(array: *mut GstQueueArray) -> gpointer; #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_queue_array_pop_tail_struct(array: *mut GstQueueArray) -> gpointer; pub fn gst_queue_array_push_tail(array: *mut GstQueueArray, data: gpointer); pub fn gst_queue_array_push_tail_struct(array: *mut GstQueueArray, p_struct: gpointer); #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_queue_array_set_clear_func( array: *mut GstQueueArray, clear_func: glib::GDestroyNotify, @@ -1671,8 +1706,10 @@ extern "C" { size: size_t, ) -> *mut glib::GBytes; #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_adapter_distance_from_discont(adapter: *mut GstAdapter) -> u64; #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_adapter_dts_at_discont(adapter: *mut GstAdapter) -> gst::GstClockTime; pub fn gst_adapter_flush(adapter: *mut GstAdapter, flush: size_t); pub fn gst_adapter_get_buffer(adapter: *mut GstAdapter, nbytes: size_t) -> *mut gst::GstBuffer; @@ -1702,6 +1739,7 @@ extern "C" { value: *mut u32, ) -> ssize_t; #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_adapter_offset_at_discont(adapter: *mut GstAdapter) -> u64; pub fn gst_adapter_prev_dts(adapter: *mut GstAdapter, distance: *mut u64) -> gst::GstClockTime; pub fn gst_adapter_prev_dts_at_offset( @@ -1710,6 +1748,7 @@ extern "C" { distance: *mut u64, ) -> gst::GstClockTime; #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_adapter_prev_offset(adapter: *mut GstAdapter, distance: *mut u64) -> u64; pub fn gst_adapter_prev_pts(adapter: *mut GstAdapter, distance: *mut u64) -> gst::GstClockTime; pub fn gst_adapter_prev_pts_at_offset( @@ -1718,6 +1757,7 @@ extern "C" { distance: *mut u64, ) -> gst::GstClockTime; #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_adapter_pts_at_discont(adapter: *mut GstAdapter) -> gst::GstClockTime; pub fn gst_adapter_push(adapter: *mut GstAdapter, buf: *mut gst::GstBuffer); pub fn gst_adapter_take(adapter: *mut GstAdapter, nbytes: size_t) -> gpointer; @@ -1738,35 +1778,44 @@ extern "C" { // GstAggregator //========================================================================= #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_aggregator_get_type() -> GType; #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_aggregator_finish_buffer( aggregator: *mut GstAggregator, buffer: *mut gst::GstBuffer, ) -> gst::GstFlowReturn; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_aggregator_finish_buffer_list( aggregator: *mut GstAggregator, bufferlist: *mut gst::GstBufferList, ) -> gst::GstFlowReturn; #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_aggregator_get_allocator( self_: *mut GstAggregator, allocator: *mut *mut gst::GstAllocator, params: *mut gst::GstAllocationParams, ); #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_aggregator_get_buffer_pool(self_: *mut GstAggregator) -> *mut gst::GstBufferPool; #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_aggregator_get_latency(self_: *mut GstAggregator) -> gst::GstClockTime; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_aggregator_negotiate(self_: *mut GstAggregator) -> gboolean; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_aggregator_peek_next_sample( self_: *mut GstAggregator, pad: *mut GstAggregatorPad, ) -> *mut gst::GstSample; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_aggregator_selected_samples( self_: *mut GstAggregator, pts: gst::GstClockTime, @@ -1775,16 +1824,20 @@ extern "C" { info: *mut gst::GstStructure, ); #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_aggregator_set_latency( self_: *mut GstAggregator, min_latency: gst::GstClockTime, max_latency: gst::GstClockTime, ); #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_aggregator_set_src_caps(self_: *mut GstAggregator, caps: *mut gst::GstCaps); #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_aggregator_simple_get_next_time(self_: *mut GstAggregator) -> gst::GstClockTime; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_aggregator_update_segment( self_: *mut GstAggregator, segment: *const gst::GstSegment, @@ -1794,16 +1847,22 @@ extern "C" { // GstAggregatorPad //========================================================================= #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_aggregator_pad_get_type() -> GType; #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_aggregator_pad_drop_buffer(pad: *mut GstAggregatorPad) -> gboolean; #[cfg(any(feature = "v1_14_1", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14_1")))] pub fn gst_aggregator_pad_has_buffer(pad: *mut GstAggregatorPad) -> gboolean; #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_aggregator_pad_is_eos(pad: *mut GstAggregatorPad) -> gboolean; #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_aggregator_pad_peek_buffer(pad: *mut GstAggregatorPad) -> *mut gst::GstBuffer; #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_aggregator_pad_pop_buffer(pad: *mut GstAggregatorPad) -> *mut gst::GstBuffer; //========================================================================= @@ -1825,6 +1884,7 @@ extern "C" { dest_value: *mut i64, ) -> gboolean; #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] pub fn gst_base_parse_drain(parse: *mut GstBaseParse); pub fn gst_base_parse_finish_frame( parse: *mut GstBaseParse, @@ -1880,15 +1940,18 @@ extern "C" { ) -> gst::GstFlowReturn; pub fn gst_base_sink_get_blocksize(sink: *mut GstBaseSink) -> c_uint; #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] pub fn gst_base_sink_get_drop_out_of_segment(sink: *mut GstBaseSink) -> gboolean; pub fn gst_base_sink_get_last_sample(sink: *mut GstBaseSink) -> *mut gst::GstSample; pub fn gst_base_sink_get_latency(sink: *mut GstBaseSink) -> gst::GstClockTime; pub fn gst_base_sink_get_max_bitrate(sink: *mut GstBaseSink) -> u64; pub fn gst_base_sink_get_max_lateness(sink: *mut GstBaseSink) -> i64; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_base_sink_get_processing_deadline(sink: *mut GstBaseSink) -> gst::GstClockTime; pub fn gst_base_sink_get_render_delay(sink: *mut GstBaseSink) -> gst::GstClockTime; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_base_sink_get_stats(sink: *mut GstBaseSink) -> *mut gst::GstStructure; pub fn gst_base_sink_get_sync(sink: *mut GstBaseSink) -> gboolean; pub fn gst_base_sink_get_throttle_time(sink: *mut GstBaseSink) -> u64; @@ -1906,6 +1969,7 @@ extern "C" { pub fn gst_base_sink_set_async_enabled(sink: *mut GstBaseSink, enabled: gboolean); pub fn gst_base_sink_set_blocksize(sink: *mut GstBaseSink, blocksize: c_uint); #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] pub fn gst_base_sink_set_drop_out_of_segment( sink: *mut GstBaseSink, drop_out_of_segment: gboolean, @@ -1914,6 +1978,7 @@ extern "C" { pub fn gst_base_sink_set_max_bitrate(sink: *mut GstBaseSink, max_bitrate: u64); pub fn gst_base_sink_set_max_lateness(sink: *mut GstBaseSink, max_lateness: i64); #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_base_sink_set_processing_deadline( sink: *mut GstBaseSink, processing_deadline: gst::GstClockTime, @@ -1950,6 +2015,7 @@ extern "C" { pub fn gst_base_src_is_async(src: *mut GstBaseSrc) -> gboolean; pub fn gst_base_src_is_live(src: *mut GstBaseSrc) -> gboolean; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_base_src_negotiate(src: *mut GstBaseSrc) -> gboolean; pub fn gst_base_src_new_seamless_segment( src: *mut GstBaseSrc, @@ -1958,6 +2024,7 @@ extern "C" { time: i64, ) -> gboolean; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_base_src_new_segment( src: *mut GstBaseSrc, segment: *const gst::GstSegment, @@ -1979,6 +2046,7 @@ extern "C" { pub fn gst_base_src_start_complete(basesrc: *mut GstBaseSrc, ret: gst::GstFlowReturn); pub fn gst_base_src_start_wait(basesrc: *mut GstBaseSrc) -> gst::GstFlowReturn; #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_base_src_submit_buffer_list( src: *mut GstBaseSrc, buffer_list: *mut gst::GstBufferList, @@ -2001,6 +2069,7 @@ extern "C" { pub fn gst_base_transform_is_passthrough(trans: *mut GstBaseTransform) -> gboolean; pub fn gst_base_transform_is_qos_enabled(trans: *mut GstBaseTransform) -> gboolean; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_base_transform_reconfigure(trans: *mut GstBaseTransform) -> gboolean; pub fn gst_base_transform_reconfigure_sink(trans: *mut GstBaseTransform); pub fn gst_base_transform_reconfigure_src(trans: *mut GstBaseTransform); @@ -2177,6 +2246,7 @@ extern "C" { prob: *mut gst::GstTypeFindProbability, ) -> *mut gst::GstCaps; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_type_find_helper_for_buffer_with_extension( obj: *mut gst::GstObject, buf: *mut gst::GstBuffer, @@ -2190,6 +2260,7 @@ extern "C" { prob: *mut gst::GstTypeFindProbability, ) -> *mut gst::GstCaps; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_type_find_helper_for_data_with_extension( obj: *mut gst::GstObject, data: *const u8, @@ -2210,6 +2281,7 @@ extern "C" { prob: *mut gst::GstTypeFindProbability, ) -> *mut gst::GstCaps; #[cfg(any(feature = "v1_14_3", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14_3")))] pub fn gst_type_find_helper_get_range_full( obj: *mut gst::GstObject, parent: *mut gst::GstObject, diff --git a/gstreamer-base/sys/tests/abi.rs b/gstreamer-base/sys/tests/abi.rs index 3564a4824..9f71a9626 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 @ db37199) -// from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae9689) +// from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de) // DO NOT EDIT extern crate gstreamer_base_sys; diff --git a/gstreamer-base/sys/tests/constant.c b/gstreamer-base/sys/tests/constant.c index 7a1c810ac..3658ebe72 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 @ db37199) -// from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae9689) +// from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-base/sys/tests/layout.c b/gstreamer-base/sys/tests/layout.c index 291623e9a..b418a479d 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 @ db37199) -// from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae9689) +// from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de) // 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 9d1c750e1..7e17d6c31 100644 --- a/gstreamer-check/src/auto/test_clock.rs +++ b/gstreamer-check/src/auto/test_clock.rs @@ -71,6 +71,7 @@ impl TestClock { //} //#[cfg(any(feature = "v1_18", feature = "dox"))] + //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] //pub fn process_id(&self, pending_id: /*Ignored*/gst::ClockID) -> bool { // unsafe { TODO: call gst_check_sys:gst_test_clock_process_id() } //} @@ -90,6 +91,7 @@ impl TestClock { } //#[cfg(any(feature = "v1_16", feature = "dox"))] + //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] //pub fn timed_wait_for_multiple_pending_ids(&self, count: u32, timeout_ms: u32, pending_list: /*Unimplemented*/Vec) -> bool { // unsafe { TODO: call gst_check_sys:gst_test_clock_timed_wait_for_multiple_pending_ids() } //} diff --git a/gstreamer-check/src/auto/versions.txt b/gstreamer-check/src/auto/versions.txt index 03f3faacf..df0f8cdd5 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 @ db37199) -from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e) +Generated by gir (https://github.com/gtk-rs/gir @ 1ae9689) +from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de) diff --git a/gstreamer-check/sys/build.rs b/gstreamer-check/sys/build.rs index 93a1b219b..eadccf000 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 @ db37199) -// from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae9689) +// from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de) // DO NOT EDIT #[cfg(not(feature = "dox"))] diff --git a/gstreamer-check/sys/src/lib.rs b/gstreamer-check/sys/src/lib.rs index 0fef68985..fbbe16696 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 @ db37199) -// from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae9689) +// from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de) // DO NOT EDIT #![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)] @@ -8,6 +8,7 @@ clippy::type_complexity, clippy::unreadable_literal )] +#![cfg_attr(feature = "dox", feature(doc_cfg))] extern crate glib_sys as glib; extern crate gobject_sys as gobject; @@ -130,6 +131,7 @@ extern "C" { destroy_data: glib::GDestroyNotify, ); #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_harness_add_propose_allocation_meta( h: *mut GstHarness, api: GType, @@ -182,6 +184,7 @@ extern "C" { pub fn gst_harness_pull(h: *mut GstHarness) -> *mut gst::GstBuffer; pub fn gst_harness_pull_event(h: *mut GstHarness) -> *mut gst::GstEvent; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_harness_pull_until_eos( h: *mut GstHarness, buf: *mut *mut gst::GstBuffer, @@ -295,10 +298,13 @@ extern "C" { sleep: c_ulong, ) -> *mut GstHarnessThread; #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_harness_take_all_data(h: *mut GstHarness, size: *mut size_t) -> *mut u8; #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_harness_take_all_data_as_buffer(h: *mut GstHarness) -> *mut gst::GstBuffer; #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_harness_take_all_data_as_bytes(h: *mut GstHarness) -> *mut glib::GBytes; pub fn gst_harness_teardown(h: *mut GstHarness); pub fn gst_harness_try_pull(h: *mut GstHarness) -> *mut gst::GstBuffer; @@ -359,6 +365,7 @@ extern "C" { pending_id: *mut gst::GstClockID, ) -> gboolean; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_test_clock_process_id( test_clock: *mut GstTestClock, pending_id: gst::GstClockID, @@ -370,6 +377,7 @@ extern "C" { pub fn gst_test_clock_process_next_clock_id(test_clock: *mut GstTestClock) -> gst::GstClockID; pub fn gst_test_clock_set_time(test_clock: *mut GstTestClock, new_time: gst::GstClockTime); #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_test_clock_timed_wait_for_multiple_pending_ids( test_clock: *mut GstTestClock, count: c_uint, diff --git a/gstreamer-check/sys/tests/abi.rs b/gstreamer-check/sys/tests/abi.rs index 2dd4b7d31..fbcc94bdd 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 @ db37199) -// from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae9689) +// from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de) // DO NOT EDIT extern crate gstreamer_check_sys; diff --git a/gstreamer-check/sys/tests/constant.c b/gstreamer-check/sys/tests/constant.c index 7a1c810ac..3658ebe72 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 @ db37199) -// from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae9689) +// from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-check/sys/tests/layout.c b/gstreamer-check/sys/tests/layout.c index 291623e9a..b418a479d 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 @ db37199) -// from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae9689) +// from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-controller/src/auto/mod.rs b/gstreamer-controller/src/auto/mod.rs index f61b278e7..a3a2fedbd 100644 --- a/gstreamer-controller/src/auto/mod.rs +++ b/gstreamer-controller/src/auto/mod.rs @@ -21,8 +21,10 @@ pub use self::lfo_control_source::LFOControlSourceExt; pub use self::lfo_control_source::{LFOControlSource, NONE_LFO_CONTROL_SOURCE}; #[cfg(any(feature = "v1_12", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] mod proxy_control_binding; #[cfg(any(feature = "v1_12", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] pub use self::proxy_control_binding::{ProxyControlBinding, NONE_PROXY_CONTROL_BINDING}; mod timed_value_control_source; diff --git a/gstreamer-controller/src/auto/proxy_control_binding.rs b/gstreamer-controller/src/auto/proxy_control_binding.rs index 6e25aa8de..fa35549b2 100644 --- a/gstreamer-controller/src/auto/proxy_control_binding.rs +++ b/gstreamer-controller/src/auto/proxy_control_binding.rs @@ -3,8 +3,10 @@ // DO NOT EDIT #[cfg(any(feature = "v1_12", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] use glib::object::Cast; #[cfg(any(feature = "v1_12", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] use glib::object::IsA; use glib::translate::*; use gst; @@ -20,6 +22,7 @@ glib_wrapper! { impl ProxyControlBinding { #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] pub fn new, Q: IsA>( object: &P, property_name: &str, diff --git a/gstreamer-controller/src/auto/versions.txt b/gstreamer-controller/src/auto/versions.txt index 03f3faacf..df0f8cdd5 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 @ db37199) -from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e) +Generated by gir (https://github.com/gtk-rs/gir @ 1ae9689) +from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de) diff --git a/gstreamer-controller/sys/build.rs b/gstreamer-controller/sys/build.rs index 93a1b219b..eadccf000 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 @ db37199) -// from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae9689) +// from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de) // DO NOT EDIT #[cfg(not(feature = "dox"))] diff --git a/gstreamer-controller/sys/src/lib.rs b/gstreamer-controller/sys/src/lib.rs index f804df236..eb9b0010e 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 @ db37199) -// from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae9689) +// from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de) // DO NOT EDIT #![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)] @@ -8,6 +8,7 @@ clippy::type_complexity, clippy::unreadable_literal )] +#![cfg_attr(feature = "dox", feature(doc_cfg))] extern crate glib_sys as glib; extern crate gobject_sys as gobject; @@ -506,6 +507,7 @@ extern "C" { //========================================================================= pub fn gst_proxy_control_binding_get_type() -> GType; #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] pub fn gst_proxy_control_binding_new( object: *mut gst::GstObject, property_name: *const c_char, diff --git a/gstreamer-controller/sys/tests/abi.rs b/gstreamer-controller/sys/tests/abi.rs index 2e9233ba4..7dc1925f7 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 @ db37199) -// from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae9689) +// from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de) // DO NOT EDIT extern crate gstreamer_controller_sys; diff --git a/gstreamer-controller/sys/tests/constant.c b/gstreamer-controller/sys/tests/constant.c index 7a1c810ac..3658ebe72 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 @ db37199) -// from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae9689) +// from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-controller/sys/tests/layout.c b/gstreamer-controller/sys/tests/layout.c index 291623e9a..b418a479d 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 @ db37199) -// from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae9689) +// from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-editing-services/src/auto/base_effect.rs b/gstreamer-editing-services/src/auto/base_effect.rs index 911a34efa..661bde824 100644 --- a/gstreamer-editing-services/src/auto/base_effect.rs +++ b/gstreamer-editing-services/src/auto/base_effect.rs @@ -21,17 +21,21 @@ 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")))] fn is_time_effect(&self) -> bool; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] 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")))] //fn set_time_translation_funcs(&self, source_to_sink_func: /*Unimplemented*/Fn(&BaseEffect, gst::ClockTime, /*Unimplemented*/HashTable TypeId { ns_id: 0, id: 28 }/TypeId { ns_id: 3, id: 11 }) -> gst::ClockTime, sink_to_source_func: /*Unimplemented*/Fn(&BaseEffect, gst::ClockTime, /*Unimplemented*/HashTable TypeId { ns_id: 0, id: 28 }/TypeId { ns_id: 3, id: 11 }) -> gst::ClockTime, user_data: /*Unimplemented*/Option) -> bool; } impl> BaseEffectExt for O { #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn is_time_effect(&self) -> bool { unsafe { from_glib(ges_sys::ges_base_effect_is_time_effect( @@ -41,6 +45,7 @@ impl> BaseEffectExt for O { } #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn register_time_property(&self, child_property_name: &str) -> bool { unsafe { from_glib(ges_sys::ges_base_effect_register_time_property( @@ -51,6 +56,7 @@ impl> BaseEffectExt for O { } //#[cfg(any(feature = "v1_18", feature = "dox"))] + //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] //fn set_time_translation_funcs(&self, source_to_sink_func: /*Unimplemented*/Fn(&BaseEffect, gst::ClockTime, /*Unimplemented*/HashTable TypeId { ns_id: 0, id: 28 }/TypeId { ns_id: 3, id: 11 }) -> gst::ClockTime, sink_to_source_func: /*Unimplemented*/Fn(&BaseEffect, gst::ClockTime, /*Unimplemented*/HashTable TypeId { ns_id: 0, id: 28 }/TypeId { ns_id: 3, id: 11 }) -> gst::ClockTime, user_data: /*Unimplemented*/Option) -> bool { // unsafe { TODO: call ges_sys:ges_base_effect_set_time_translation_funcs() } //} diff --git a/gstreamer-editing-services/src/auto/clip.rs b/gstreamer-editing-services/src/auto/clip.rs index e19eaa1d3..e276045b4 100644 --- a/gstreamer-editing-services/src/auto/clip.rs +++ b/gstreamer-editing-services/src/auto/clip.rs @@ -11,16 +11,19 @@ use glib::signal::SignalHandlerId; use glib::translate::*; use glib_sys; #[cfg(any(feature = "v1_18", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] use gst; use std::boxed::Box as Box_; use std::mem::transmute; #[cfg(any(feature = "v1_18", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] use std::ptr; use Asset; use BaseEffect; use Container; use Extractable; #[cfg(any(feature = "v1_18", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] use FrameNumber; use Layer; use TimelineElement; @@ -42,6 +45,7 @@ pub trait ClipExt: 'static { fn add_asset>(&self, asset: &P) -> Result; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn add_child_to_track, Q: IsA>( &self, child: &P, @@ -49,6 +53,7 @@ pub trait ClipExt: 'static { ) -> Result; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn add_top_effect>(&self, effect: &P, index: i32) -> Result<(), glib::Error>; @@ -66,9 +71,11 @@ pub trait ClipExt: 'static { ) -> Vec; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn get_duration_limit(&self) -> gst::ClockTime; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn get_internal_time_from_timeline_time>( &self, child: &P, @@ -80,6 +87,7 @@ pub trait ClipExt: 'static { fn get_supported_formats(&self) -> TrackType; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn get_timeline_time_from_internal_time>( &self, child: &P, @@ -87,6 +95,7 @@ pub trait ClipExt: 'static { ) -> Result; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn get_timeline_time_from_source_frame( &self, frame_number: FrameNumber, @@ -101,9 +110,11 @@ pub trait ClipExt: 'static { 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")))] 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")))] fn remove_top_effect>(&self, effect: &P) -> Result<(), glib::Error>; fn set_supported_formats(&self, supportedformats: TrackType); @@ -115,6 +126,7 @@ pub trait ClipExt: 'static { ) -> Result<(), glib::error::BoolError>; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn set_top_effect_index_full>( &self, effect: &P, @@ -130,9 +142,11 @@ pub trait ClipExt: 'static { fn split(&self, position: u64) -> Result; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn split_full(&self, position: u64) -> Result, glib::Error>; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn connect_property_duration_limit_notify( &self, f: F, @@ -158,6 +172,7 @@ impl> ClipExt for O { } #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn add_child_to_track, Q: IsA>( &self, child: &P, @@ -180,6 +195,7 @@ impl> ClipExt for O { } #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn add_top_effect>( &self, effect: &P, @@ -232,6 +248,7 @@ impl> ClipExt for O { } #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn get_duration_limit(&self) -> gst::ClockTime { unsafe { from_glib(ges_sys::ges_clip_get_duration_limit( @@ -241,6 +258,7 @@ impl> ClipExt for O { } #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn get_internal_time_from_timeline_time>( &self, child: &P, @@ -275,6 +293,7 @@ impl> ClipExt for O { } #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn get_timeline_time_from_internal_time>( &self, child: &P, @@ -297,6 +316,7 @@ impl> ClipExt for O { } #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn get_timeline_time_from_source_frame( &self, frame_number: FrameNumber, @@ -355,6 +375,7 @@ impl> ClipExt for O { } #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn move_to_layer_full>(&self, layer: &P) -> Result<(), glib::Error> { unsafe { let mut error = ptr::null_mut(); @@ -372,6 +393,7 @@ impl> ClipExt for O { } #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn remove_top_effect>(&self, effect: &P) -> Result<(), glib::Error> { unsafe { let mut error = ptr::null_mut(); @@ -415,6 +437,7 @@ impl> ClipExt for O { } #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn set_top_effect_index_full>( &self, effect: &P, @@ -464,6 +487,7 @@ impl> ClipExt for O { } #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn split_full(&self, position: u64) -> Result, glib::Error> { unsafe { let mut error = ptr::null_mut(); @@ -478,6 +502,7 @@ impl> ClipExt for O { } #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn connect_property_duration_limit_notify( &self, f: F, diff --git a/gstreamer-editing-services/src/auto/layer.rs b/gstreamer-editing-services/src/auto/layer.rs index b1d5bf5fa..8cd6ff2b7 100644 --- a/gstreamer-editing-services/src/auto/layer.rs +++ b/gstreamer-editing-services/src/auto/layer.rs @@ -14,12 +14,14 @@ use gst; use std::boxed::Box as Box_; use std::mem::transmute; #[cfg(any(feature = "v1_18", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] use std::ptr; use Asset; use Clip; use Extractable; use Timeline; #[cfg(any(feature = "v1_18", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] use Track; use TrackType; @@ -57,6 +59,7 @@ pub trait LayerExt: 'static { ) -> Result; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn add_asset_full>( &self, asset: &P, @@ -69,9 +72,11 @@ pub trait LayerExt: 'static { 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")))] 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")))] fn get_active_for_track>(&self, track: &P) -> bool; fn get_auto_transition(&self) -> bool; @@ -91,6 +96,7 @@ pub trait LayerExt: 'static { 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")))] fn set_active_for_tracks(&self, active: bool, tracks: &[Track]) -> bool; fn set_auto_transition(&self, auto_transition: bool); @@ -101,6 +107,7 @@ pub trait LayerExt: 'static { fn set_timeline>(&self, timeline: &P); //#[cfg(any(feature = "v1_18", feature = "dox"))] + //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] //fn connect_active_changed(&self, f: F) -> SignalHandlerId; fn connect_clip_added(&self, f: F) -> SignalHandlerId; @@ -139,6 +146,7 @@ impl> LayerExt for O { } #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn add_asset_full>( &self, asset: &P, @@ -179,6 +187,7 @@ impl> LayerExt for O { } #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn add_clip_full>(&self, clip: &P) -> Result<(), glib::Error> { unsafe { let mut error = ptr::null_mut(); @@ -196,6 +205,7 @@ impl> LayerExt for O { } #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn get_active_for_track>(&self, track: &P) -> bool { unsafe { from_glib(ges_sys::ges_layer_get_active_for_track( @@ -268,6 +278,7 @@ impl> LayerExt for O { } #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn set_active_for_tracks(&self, active: bool, tracks: &[Track]) -> bool { unsafe { from_glib(ges_sys::ges_layer_set_active_for_tracks( @@ -303,6 +314,7 @@ impl> LayerExt for O { } //#[cfg(any(feature = "v1_18", feature = "dox"))] + //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] //fn connect_active_changed(&self, f: F) -> SignalHandlerId { // Empty ctype tracks: *.PtrArray TypeId { ns_id: 1, id: 17 } //} diff --git a/gstreamer-editing-services/src/auto/project.rs b/gstreamer-editing-services/src/auto/project.rs index c9eeb312d..3be7cc429 100644 --- a/gstreamer-editing-services/src/auto/project.rs +++ b/gstreamer-editing-services/src/auto/project.rs @@ -45,6 +45,7 @@ pub trait ProjectExt: 'static { ) -> Result<(), glib::error::BoolError>; //#[cfg(any(feature = "v1_18", feature = "dox"))] + //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] //fn add_formatter(&self, formatter: /*Ignored*/&Formatter); fn create_asset(&self, id: Option<&str>, extractable_type: glib::types::Type) -> bool; @@ -84,6 +85,7 @@ pub trait ProjectExt: 'static { fn connect_asset_removed(&self, f: F) -> SignalHandlerId; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn connect_error_loading( &self, f: F, @@ -97,6 +99,7 @@ pub trait ProjectExt: 'static { fn connect_loaded(&self, f: F) -> SignalHandlerId; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn connect_loading(&self, f: F) -> SignalHandlerId; fn connect_missing_uri Option + 'static>( @@ -131,6 +134,7 @@ impl> ProjectExt for O { } //#[cfg(any(feature = "v1_18", feature = "dox"))] + //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] //fn add_formatter(&self, formatter: /*Ignored*/&Formatter) { // unsafe { TODO: call ges_sys:ges_project_add_formatter() } //} @@ -340,6 +344,7 @@ impl> ProjectExt for O { } #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn connect_error_loading( &self, f: F, @@ -442,6 +447,7 @@ impl> ProjectExt for O { } #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn connect_loading(&self, f: F) -> SignalHandlerId { unsafe extern "C" fn loading_trampoline( this: *mut ges_sys::GESProject, diff --git a/gstreamer-editing-services/src/auto/timeline.rs b/gstreamer-editing-services/src/auto/timeline.rs index 990845724..6f5222560 100644 --- a/gstreamer-editing-services/src/auto/timeline.rs +++ b/gstreamer-editing-services/src/auto/timeline.rs @@ -16,9 +16,11 @@ use std::mem::transmute; use std::ptr; use Asset; #[cfg(any(feature = "v1_18", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] use Clip; use Extractable; #[cfg(any(feature = "v1_18", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] use FrameNumber; use Group; use Layer; @@ -86,9 +88,11 @@ pub trait TimelineExt: 'static { fn get_element(&self, name: &str) -> Option; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] 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")))] fn get_frame_time(&self, frame_number: FrameNumber) -> gst::ClockTime; fn get_groups(&self) -> Vec; @@ -110,6 +114,7 @@ pub trait TimelineExt: 'static { 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")))] fn move_layer>( &self, layer: &P, @@ -149,6 +154,7 @@ pub trait TimelineExt: 'static { fn connect_layer_removed(&self, f: F) -> SignalHandlerId; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn connect_select_element_track Track + 'static>( &self, f: F, @@ -254,6 +260,7 @@ impl> TimelineExt for O { } #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn get_frame_at(&self, timestamp: gst::ClockTime) -> FrameNumber { unsafe { ges_sys::ges_timeline_get_frame_at(self.as_ref().to_glib_none().0, timestamp.to_glib()) @@ -261,6 +268,7 @@ impl> TimelineExt for O { } #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn get_frame_time(&self, frame_number: FrameNumber) -> gst::ClockTime { unsafe { from_glib(ges_sys::ges_timeline_get_frame_time( @@ -354,6 +362,7 @@ impl> TimelineExt for O { } #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn move_layer>( &self, layer: &P, @@ -561,6 +570,7 @@ impl> TimelineExt for O { } #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn connect_select_element_track Track + 'static>( &self, f: F, diff --git a/gstreamer-editing-services/src/auto/timeline_element.rs b/gstreamer-editing-services/src/auto/timeline_element.rs index 9d980c975..6fdd36077 100644 --- a/gstreamer-editing-services/src/auto/timeline_element.rs +++ b/gstreamer-editing-services/src/auto/timeline_element.rs @@ -17,16 +17,21 @@ use gobject_sys; use gst; use std::boxed::Box as Box_; #[cfg(any(feature = "v1_18", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] use std::mem; use std::mem::transmute; #[cfg(any(feature = "v1_18", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] use std::ptr; #[cfg(any(feature = "v1_18", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] use Edge; #[cfg(any(feature = "v1_18", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] use EditMode; use Extractable; #[cfg(any(feature = "v1_18", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] use Layer; use Timeline; use TrackType; @@ -47,6 +52,7 @@ pub trait TimelineElementExt: 'static { fn copy(&self, deep: bool) -> Result; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn edit( &self, layers: &[Layer], @@ -57,6 +63,7 @@ pub trait TimelineElementExt: 'static { ) -> bool; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn edit_full( &self, new_layer_priority: i64, @@ -78,6 +85,7 @@ pub trait TimelineElementExt: 'static { fn get_inpoint(&self) -> gst::ClockTime; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn get_layer_priority(&self) -> u32; fn get_max_duration(&self) -> gst::ClockTime; @@ -85,6 +93,7 @@ pub trait TimelineElementExt: 'static { fn get_name(&self) -> Option; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn get_natural_framerate(&self) -> Option<(i32, i32)>; fn get_parent(&self) -> Option; @@ -122,6 +131,7 @@ pub trait TimelineElementExt: 'static { //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")))] //fn set_child_property_full(&self, property_name: &str, value: /*Ignored*/&glib::Value) -> Result<(), glib::Error>; //fn set_child_property_valist(&self, first_property_name: &str, var_args: /*Unknown conversion*//*Unimplemented*/Unsupported); @@ -155,9 +165,11 @@ pub trait TimelineElementExt: 'static { fn set_property_serialize(&self, serialize: bool); //#[cfg(any(feature = "v1_18", feature = "dox"))] + //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] //fn connect_child_property_added(&self, f: F) -> SignalHandlerId; //#[cfg(any(feature = "v1_18", feature = "dox"))] + //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] //fn connect_child_property_removed(&self, f: F) -> SignalHandlerId; //fn connect_deep_notify(&self, f: F) -> SignalHandlerId; @@ -199,6 +211,7 @@ impl> TimelineElementExt for O { } #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn edit( &self, layers: &[Layer], @@ -220,6 +233,7 @@ impl> TimelineElementExt for O { } #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn edit_full( &self, new_layer_priority: i64, @@ -278,6 +292,7 @@ impl> TimelineElementExt for O { } #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn get_layer_priority(&self) -> u32 { unsafe { ges_sys::ges_timeline_element_get_layer_priority(self.as_ref().to_glib_none().0) } } @@ -299,6 +314,7 @@ impl> TimelineElementExt for O { } #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn get_natural_framerate(&self) -> Option<(i32, i32)> { unsafe { let mut framerate_n = mem::MaybeUninit::uninit(); @@ -445,6 +461,7 @@ impl> TimelineElementExt for O { //} //#[cfg(any(feature = "v1_18", feature = "dox"))] + //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] //fn set_child_property_full(&self, property_name: &str, value: /*Ignored*/&glib::Value) -> Result<(), glib::Error> { // unsafe { TODO: call ges_sys:ges_timeline_element_set_child_property_full() } //} @@ -597,11 +614,13 @@ impl> TimelineElementExt for O { } //#[cfg(any(feature = "v1_18", feature = "dox"))] + //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] //fn connect_child_property_added(&self, f: F) -> SignalHandlerId { // Ignored prop: GObject.ParamSpec //} //#[cfg(any(feature = "v1_18", feature = "dox"))] + //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] //fn connect_child_property_removed(&self, f: F) -> SignalHandlerId { // Ignored prop: GObject.ParamSpec //} diff --git a/gstreamer-editing-services/src/auto/track.rs b/gstreamer-editing-services/src/auto/track.rs index 67fd84021..850547ffe 100644 --- a/gstreamer-editing-services/src/auto/track.rs +++ b/gstreamer-editing-services/src/auto/track.rs @@ -10,6 +10,7 @@ use glib::signal::connect_raw; use glib::signal::SignalHandlerId; use glib::translate::*; #[cfg(any(feature = "v1_18", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] use glib::GString; use glib::StaticType; use glib::Value; @@ -19,6 +20,7 @@ use gst; use std::boxed::Box as Box_; use std::mem::transmute; #[cfg(any(feature = "v1_18", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] use std::ptr; use Timeline; use TrackElement; @@ -45,6 +47,7 @@ pub trait GESTrackExt: 'static { 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")))] fn add_element_full>(&self, object: &P) -> Result<(), glib::Error>; fn commit(&self) -> bool; @@ -56,6 +59,7 @@ pub trait GESTrackExt: 'static { fn get_mixing(&self) -> bool; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn get_restriction_caps(&self) -> Option; fn get_timeline(&self) -> Option; @@ -66,6 +70,7 @@ pub trait GESTrackExt: 'static { ) -> Result<(), glib::error::BoolError>; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn remove_element_full>(&self, object: &P) -> Result<(), glib::Error>; //fn set_create_element_for_gap_func gst::Element + 'static>(&self, func: P); @@ -81,9 +86,11 @@ pub trait GESTrackExt: 'static { fn get_property_duration(&self) -> u64; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn get_property_id(&self) -> Option; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn set_property_id(&self, id: Option<&str>); fn get_property_restriction_caps(&self) -> Option; @@ -105,6 +112,7 @@ pub trait GESTrackExt: 'static { fn connect_property_duration_notify(&self, f: F) -> SignalHandlerId; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn connect_property_id_notify(&self, f: F) -> SignalHandlerId; fn connect_property_mixing_notify(&self, f: F) -> SignalHandlerId; @@ -129,6 +137,7 @@ impl> GESTrackExt for O { } #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn add_element_full>(&self, object: &P) -> Result<(), glib::Error> { unsafe { let mut error = ptr::null_mut(); @@ -170,6 +179,7 @@ impl> GESTrackExt for O { } #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn get_restriction_caps(&self) -> Option { unsafe { from_glib_full(ges_sys::ges_track_get_restriction_caps( @@ -202,6 +212,7 @@ impl> GESTrackExt for O { } #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn remove_element_full>(&self, object: &P) -> Result<(), glib::Error> { unsafe { let mut error = ptr::null_mut(); @@ -271,6 +282,7 @@ impl> GESTrackExt for O { } #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn get_property_id(&self) -> Option { unsafe { let mut value = Value::from_type(::static_type()); @@ -284,6 +296,7 @@ impl> GESTrackExt for O { } #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn set_property_id(&self, id: Option<&str>) { unsafe { gobject_sys::g_object_set_property( @@ -434,6 +447,7 @@ impl> GESTrackExt for O { } #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn connect_property_id_notify(&self, f: F) -> SignalHandlerId { unsafe extern "C" fn notify_id_trampoline( this: *mut ges_sys::GESTrack, diff --git a/gstreamer-editing-services/src/auto/track_element.rs b/gstreamer-editing-services/src/auto/track_element.rs index f61da561c..0620decd4 100644 --- a/gstreamer-editing-services/src/auto/track_element.rs +++ b/gstreamer-editing-services/src/auto/track_element.rs @@ -44,6 +44,7 @@ pub trait TrackElementExt: 'static { ); #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn clamp_control_source(&self, property_name: &str); #[cfg_attr(feature = "v1_18", deprecated)] @@ -58,6 +59,7 @@ pub trait TrackElementExt: 'static { //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")))] fn get_auto_clamp_control_sources(&self) -> bool; //fn get_control_binding(&self, property_name: &str) -> /*Ignored*/Option; @@ -73,11 +75,13 @@ pub trait TrackElementExt: 'static { fn get_track_type(&self) -> TrackType; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn has_internal_source(&self) -> bool; fn is_active(&self) -> bool; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn is_core(&self) -> bool; //fn lookup_child(&self, prop_name: &str, pspec: /*Ignored*/glib::ParamSpec) -> Option; @@ -87,11 +91,13 @@ pub trait TrackElementExt: 'static { fn set_active(&self, active: bool) -> bool; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn set_auto_clamp_control_sources(&self, auto_clamp: bool); //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")))] fn set_has_internal_source(&self, has_internal_source: bool) -> bool; fn set_track_type(&self, type_: TrackType); @@ -99,6 +105,7 @@ pub trait TrackElementExt: 'static { fn get_property_active(&self) -> bool; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn get_property_has_internal_source(&self) -> bool; //fn connect_control_binding_added(&self, f: F) -> SignalHandlerId; @@ -108,12 +115,14 @@ pub trait TrackElementExt: 'static { fn connect_property_active_notify(&self, f: F) -> SignalHandlerId; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn connect_property_auto_clamp_control_sources_notify( &self, f: F, ) -> SignalHandlerId; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn connect_property_has_internal_source_notify( &self, f: F, @@ -144,6 +153,7 @@ impl> TrackElementExt for O { } #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn clamp_control_source(&self, property_name: &str) { unsafe { ges_sys::ges_track_element_clamp_control_source( @@ -179,6 +189,7 @@ impl> TrackElementExt for O { //} #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn get_auto_clamp_control_sources(&self) -> bool { unsafe { from_glib(ges_sys::ges_track_element_get_auto_clamp_control_sources( @@ -232,6 +243,7 @@ impl> TrackElementExt for O { } #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn has_internal_source(&self) -> bool { unsafe { from_glib(ges_sys::ges_track_element_has_internal_source( @@ -249,6 +261,7 @@ impl> TrackElementExt for O { } #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn is_core(&self) -> bool { unsafe { from_glib(ges_sys::ges_track_element_is_core( @@ -283,6 +296,7 @@ impl> TrackElementExt for O { } #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn set_auto_clamp_control_sources(&self, auto_clamp: bool) { unsafe { ges_sys::ges_track_element_set_auto_clamp_control_sources( @@ -297,6 +311,7 @@ impl> TrackElementExt for O { //} #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn set_has_internal_source(&self, has_internal_source: bool) -> bool { unsafe { from_glib(ges_sys::ges_track_element_set_has_internal_source( @@ -331,6 +346,7 @@ impl> TrackElementExt for O { } #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn get_property_has_internal_source(&self) -> bool { unsafe { let mut value = Value::from_type(::static_type()); @@ -379,6 +395,7 @@ impl> TrackElementExt for O { } #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn connect_property_auto_clamp_control_sources_notify( &self, f: F, @@ -407,6 +424,7 @@ impl> TrackElementExt for O { } #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn connect_property_has_internal_source_notify( &self, f: F, diff --git a/gstreamer-editing-services/src/auto/uri_clip_asset.rs b/gstreamer-editing-services/src/auto/uri_clip_asset.rs index 8f5febde7..a5a8dadb5 100644 --- a/gstreamer-editing-services/src/auto/uri_clip_asset.rs +++ b/gstreamer-editing-services/src/auto/uri_clip_asset.rs @@ -10,6 +10,7 @@ use glib::signal::connect_raw; use glib::signal::SignalHandlerId; use glib::translate::*; #[cfg(any(feature = "v1_18", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] use glib::StaticType; use glib::Value; use glib_sys; @@ -32,6 +33,7 @@ glib_wrapper! { impl UriClipAsset { //#[cfg(any(feature = "v1_16", feature = "dox"))] + //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] //pub fn finish(res: /*Ignored*/&gio::AsyncResult) -> Result { // unsafe { TODO: call ges_sys:ges_uri_clip_asset_finish() } //} @@ -62,21 +64,25 @@ pub trait UriClipAssetExt: 'static { fn get_info(&self) -> Option; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn get_max_duration(&self) -> gst::ClockTime; fn get_stream_assets(&self) -> Vec; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn is_image(&self) -> bool; fn set_property_duration(&self, duration: u64); #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn get_property_is_nested_timeline(&self) -> bool; fn connect_property_duration_notify(&self, f: F) -> SignalHandlerId; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn connect_property_is_nested_timeline_notify( &self, f: F, @@ -101,6 +107,7 @@ impl> UriClipAssetExt for O { } #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn get_max_duration(&self) -> gst::ClockTime { unsafe { from_glib(ges_sys::ges_uri_clip_asset_get_max_duration( @@ -118,6 +125,7 @@ impl> UriClipAssetExt for O { } #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn is_image(&self) -> bool { unsafe { from_glib(ges_sys::ges_uri_clip_asset_is_image( @@ -137,6 +145,7 @@ impl> UriClipAssetExt for O { } #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn get_property_is_nested_timeline(&self) -> bool { unsafe { let mut value = Value::from_type(::static_type()); @@ -177,6 +186,7 @@ impl> UriClipAssetExt for O { } #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn connect_property_is_nested_timeline_notify( &self, f: F, diff --git a/gstreamer-editing-services/src/auto/uri_source_asset.rs b/gstreamer-editing-services/src/auto/uri_source_asset.rs index 113237625..f47acefa3 100644 --- a/gstreamer-editing-services/src/auto/uri_source_asset.rs +++ b/gstreamer-editing-services/src/auto/uri_source_asset.rs @@ -28,6 +28,7 @@ pub trait UriSourceAssetExt: 'static { fn get_stream_uri(&self) -> Option; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn is_image(&self) -> bool; } @@ -57,6 +58,7 @@ impl> UriSourceAssetExt for O { } #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn is_image(&self) -> bool { unsafe { from_glib(ges_sys::ges_uri_source_asset_is_image( diff --git a/gstreamer-editing-services/src/auto/versions.txt b/gstreamer-editing-services/src/auto/versions.txt index 03f3faacf..df0f8cdd5 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 @ db37199) -from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e) +Generated by gir (https://github.com/gtk-rs/gir @ 1ae9689) +from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de) diff --git a/gstreamer-editing-services/sys/build.rs b/gstreamer-editing-services/sys/build.rs index 93a1b219b..eadccf000 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 @ db37199) -// from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae9689) +// from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de) // 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 9d88f1461..1f53377e0 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 @ db37199) -// from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae9689) +// from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de) // DO NOT EDIT #![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)] @@ -8,6 +8,7 @@ clippy::type_complexity, clippy::unreadable_literal )] +#![cfg_attr(feature = "dox", feature(doc_cfg))] extern crate gio_sys as gio; extern crate glib_sys as glib; @@ -2653,6 +2654,7 @@ extern "C" { //========================================================================= pub fn ges_edge_get_type() -> GType; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn ges_edge_name(edge: GESEdge) -> *const c_char; //========================================================================= @@ -2660,6 +2662,7 @@ extern "C" { //========================================================================= pub fn ges_edit_mode_get_type() -> GType; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn ges_edit_mode_name(mode: GESEditMode) -> *const c_char; //========================================================================= @@ -2798,13 +2801,16 @@ extern "C" { //========================================================================= pub fn ges_base_effect_get_type() -> GType; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn ges_base_effect_is_time_effect(effect: *mut GESBaseEffect) -> gboolean; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn ges_base_effect_register_time_property( effect: *mut GESBaseEffect, child_property_name: *const c_char, ) -> gboolean; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn ges_base_effect_set_time_translation_funcs( effect: *mut GESBaseEffect, source_to_sink_func: GESBaseEffectTimeTranslationFunc, @@ -2834,6 +2840,7 @@ extern "C" { pub fn ges_clip_get_type() -> GType; pub fn ges_clip_add_asset(clip: *mut GESClip, asset: *mut GESAsset) -> *mut GESTrackElement; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn ges_clip_add_child_to_track( clip: *mut GESClip, child: *mut GESTrackElement, @@ -2841,6 +2848,7 @@ extern "C" { error: *mut *mut glib::GError, ) -> *mut GESTrackElement; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn ges_clip_add_top_effect( clip: *mut GESClip, effect: *mut GESBaseEffect, @@ -2859,8 +2867,10 @@ extern "C" { type_: GType, ) -> *mut glib::GList; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn ges_clip_get_duration_limit(clip: *mut GESClip) -> gst::GstClockTime; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn ges_clip_get_internal_time_from_timeline_time( clip: *mut GESClip, child: *mut GESTrackElement, @@ -2870,6 +2880,7 @@ extern "C" { pub fn ges_clip_get_layer(clip: *mut GESClip) -> *mut GESLayer; pub fn ges_clip_get_supported_formats(clip: *mut GESClip) -> GESTrackType; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn ges_clip_get_timeline_time_from_internal_time( clip: *mut GESClip, child: *mut GESTrackElement, @@ -2877,6 +2888,7 @@ extern "C" { error: *mut *mut glib::GError, ) -> gst::GstClockTime; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn ges_clip_get_timeline_time_from_source_frame( clip: *mut GESClip, frame_number: GESFrameNumber, @@ -2890,12 +2902,14 @@ extern "C" { pub fn ges_clip_get_top_effects(clip: *mut GESClip) -> *mut glib::GList; pub fn ges_clip_move_to_layer(clip: *mut GESClip, layer: *mut GESLayer) -> gboolean; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn ges_clip_move_to_layer_full( clip: *mut GESClip, layer: *mut GESLayer, error: *mut *mut glib::GError, ) -> gboolean; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn ges_clip_remove_top_effect( clip: *mut GESClip, effect: *mut GESBaseEffect, @@ -2908,6 +2922,7 @@ extern "C" { newindex: c_uint, ) -> gboolean; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn ges_clip_set_top_effect_index_full( clip: *mut GESClip, effect: *mut GESBaseEffect, @@ -2921,6 +2936,7 @@ extern "C" { ) -> gboolean; pub fn ges_clip_split(clip: *mut GESClip, position: u64) -> *mut GESClip; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn ges_clip_split_full( clip: *mut GESClip, position: u64, @@ -2932,11 +2948,13 @@ extern "C" { //========================================================================= pub fn ges_clip_asset_get_type() -> GType; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn ges_clip_asset_get_frame_time( self_: *mut GESClipAsset, frame_number: GESFrameNumber, ) -> gst::GstClockTime; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn ges_clip_asset_get_natural_framerate( self_: *mut GESClipAsset, framerate_n: *mut c_int, @@ -3059,6 +3077,7 @@ extern "C" { track_types: GESTrackType, ) -> *mut GESClip; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn ges_layer_add_asset_full( layer: *mut GESLayer, asset: *mut GESAsset, @@ -3070,12 +3089,14 @@ extern "C" { ) -> *mut GESClip; pub fn ges_layer_add_clip(layer: *mut GESLayer, clip: *mut GESClip) -> gboolean; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn ges_layer_add_clip_full( layer: *mut GESLayer, clip: *mut GESClip, error: *mut *mut glib::GError, ) -> gboolean; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn ges_layer_get_active_for_track(layer: *mut GESLayer, track: *mut GESTrack) -> gboolean; pub fn ges_layer_get_auto_transition(layer: *mut GESLayer) -> gboolean; pub fn ges_layer_get_clips(layer: *mut GESLayer) -> *mut glib::GList; @@ -3090,6 +3111,7 @@ extern "C" { pub fn ges_layer_is_empty(layer: *mut GESLayer) -> gboolean; pub fn ges_layer_remove_clip(layer: *mut GESLayer, clip: *mut GESClip) -> gboolean; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn ges_layer_set_active_for_tracks( layer: *mut GESLayer, active: gboolean, @@ -3103,31 +3125,39 @@ extern "C" { // GESMarker //========================================================================= #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn ges_marker_get_type() -> GType; //========================================================================= // GESMarkerList //========================================================================= #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn ges_marker_list_get_type() -> GType; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn ges_marker_list_new() -> *mut GESMarkerList; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn ges_marker_list_add( list: *mut GESMarkerList, position: gst::GstClockTime, ) -> *mut GESMarker; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn ges_marker_list_get_markers(list: *mut GESMarkerList) -> *mut glib::GList; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn ges_marker_list_move( list: *mut GESMarkerList, marker: *mut GESMarker, position: gst::GstClockTime, ) -> gboolean; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn ges_marker_list_remove(list: *mut GESMarkerList, marker: *mut GESMarker) -> gboolean; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn ges_marker_list_size(list: *mut GESMarkerList) -> c_uint; //========================================================================= @@ -3206,6 +3236,7 @@ extern "C" { profile: *mut gst_pbutils::GstEncodingProfile, ) -> gboolean; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn ges_project_add_formatter(project: *mut GESProject, formatter: *mut GESFormatter); pub fn ges_project_create_asset( project: *mut GESProject, @@ -3252,12 +3283,14 @@ extern "C" { //========================================================================= pub fn ges_source_clip_get_type() -> GType; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn ges_source_clip_new_time_overlay() -> *mut GESSourceClip; //========================================================================= // GESSourceClipAsset //========================================================================= #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn ges_source_clip_asset_get_type() -> GType; //========================================================================= @@ -3340,11 +3373,13 @@ extern "C" { name: *const c_char, ) -> *mut GESTimelineElement; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn ges_timeline_get_frame_at( self_: *mut GESTimeline, timestamp: gst::GstClockTime, ) -> GESFrameNumber; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn ges_timeline_get_frame_time( self_: *mut GESTimeline, frame_number: GESFrameNumber, @@ -3369,6 +3404,7 @@ extern "C" { error: *mut *mut glib::GError, ) -> gboolean; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn ges_timeline_move_layer( timeline: *mut GESTimeline, layer: *mut GESLayer, @@ -3409,6 +3445,7 @@ extern "C" { deep: gboolean, ) -> *mut GESTimelineElement; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn ges_timeline_element_edit( self_: *mut GESTimelineElement, layers: *mut glib::GList, @@ -3418,6 +3455,7 @@ extern "C" { position: u64, ) -> gboolean; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn ges_timeline_element_edit_full( self_: *mut GESTimelineElement, new_layer_priority: i64, @@ -3445,12 +3483,14 @@ extern "C" { pub fn ges_timeline_element_get_duration(self_: *mut GESTimelineElement) -> gst::GstClockTime; pub fn ges_timeline_element_get_inpoint(self_: *mut GESTimelineElement) -> gst::GstClockTime; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn ges_timeline_element_get_layer_priority(self_: *mut GESTimelineElement) -> u32; pub fn ges_timeline_element_get_max_duration( self_: *mut GESTimelineElement, ) -> gst::GstClockTime; pub fn ges_timeline_element_get_name(self_: *mut GESTimelineElement) -> *mut c_char; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn ges_timeline_element_get_natural_framerate( self_: *mut GESTimelineElement, framerate_n: *mut c_int, @@ -3516,6 +3556,7 @@ extern "C" { value: *const gobject::GValue, ); #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn ges_timeline_element_set_child_property_full( self_: *mut GESTimelineElement, property_name: *const c_char, @@ -3610,6 +3651,7 @@ extern "C" { pub fn ges_track_new(type_: GESTrackType, caps: *mut gst::GstCaps) -> *mut GESTrack; pub fn ges_track_add_element(track: *mut GESTrack, object: *mut GESTrackElement) -> gboolean; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn ges_track_add_element_full( track: *mut GESTrack, object: *mut GESTrackElement, @@ -3620,11 +3662,13 @@ extern "C" { pub fn ges_track_get_elements(track: *mut GESTrack) -> *mut glib::GList; pub fn ges_track_get_mixing(track: *mut GESTrack) -> gboolean; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn ges_track_get_restriction_caps(track: *mut GESTrack) -> *mut gst::GstCaps; pub fn ges_track_get_timeline(track: *mut GESTrack) -> *const GESTimeline; pub fn ges_track_remove_element(track: *mut GESTrack, object: *mut GESTrackElement) -> gboolean; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn ges_track_remove_element_full( track: *mut GESTrack, object: *mut GESTrackElement, @@ -3651,6 +3695,7 @@ extern "C" { whitelist: *mut *const c_char, ); #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn ges_track_element_clamp_control_source( object: *mut GESTrackElement, property_name: *const c_char, @@ -3666,6 +3711,7 @@ extern "C" { trackelement: *mut GESTrackElement, ) -> *mut glib::GHashTable; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn ges_track_element_get_auto_clamp_control_sources( object: *mut GESTrackElement, ) -> gboolean; @@ -3695,9 +3741,11 @@ extern "C" { pub fn ges_track_element_get_track(object: *mut GESTrackElement) -> *mut GESTrack; pub fn ges_track_element_get_track_type(object: *mut GESTrackElement) -> GESTrackType; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn ges_track_element_has_internal_source(object: *mut GESTrackElement) -> gboolean; pub fn ges_track_element_is_active(object: *mut GESTrackElement) -> gboolean; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn ges_track_element_is_core(object: *mut GESTrackElement) -> gboolean; pub fn ges_track_element_list_children_properties( object: *mut GESTrackElement, @@ -3716,6 +3764,7 @@ extern "C" { pub fn ges_track_element_set_active(object: *mut GESTrackElement, active: gboolean) -> gboolean; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn ges_track_element_set_auto_clamp_control_sources( object: *mut GESTrackElement, auto_clamp: gboolean, @@ -3743,6 +3792,7 @@ extern "C" { binding_type: *const c_char, ) -> gboolean; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn ges_track_element_set_has_internal_source( object: *mut GESTrackElement, has_internal_source: gboolean, @@ -3754,6 +3804,7 @@ extern "C" { //========================================================================= pub fn ges_track_element_asset_get_type() -> GType; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn ges_track_element_asset_get_natural_framerate( self_: *mut GESTrackElementAsset, framerate_n: *mut c_int, @@ -3795,6 +3846,7 @@ extern "C" { //========================================================================= pub fn ges_uri_clip_asset_get_type() -> GType; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn ges_uri_clip_asset_finish( res: *mut gio::GAsyncResult, error: *mut *mut glib::GError, @@ -3814,9 +3866,11 @@ extern "C" { self_: *const GESUriClipAsset, ) -> *mut gst_pbutils::GstDiscovererInfo; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn ges_uri_clip_asset_get_max_duration(self_: *mut GESUriClipAsset) -> gst::GstClockTime; pub fn ges_uri_clip_asset_get_stream_assets(self_: *mut GESUriClipAsset) -> *const glib::GList; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn ges_uri_clip_asset_is_image(self_: *mut GESUriClipAsset) -> gboolean; //========================================================================= @@ -3831,6 +3885,7 @@ extern "C" { ) -> *mut gst_pbutils::GstDiscovererStreamInfo; pub fn ges_uri_source_asset_get_stream_uri(asset: *mut GESUriSourceAsset) -> *const c_char; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn ges_uri_source_asset_is_image(asset: *mut GESUriSourceAsset) -> gboolean; //========================================================================= @@ -3838,6 +3893,7 @@ extern "C" { //========================================================================= pub fn ges_video_source_get_type() -> GType; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn ges_video_source_get_natural_size( self_: *mut GESVideoSource, width: *mut c_int, @@ -3952,6 +4008,7 @@ extern "C" { dest: *mut i64, ) -> gboolean; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn ges_meta_container_get_marker_list( container: *mut GESMetaContainer, key: *const c_char, @@ -4042,6 +4099,7 @@ extern "C" { value: u64, ) -> gboolean; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn ges_meta_container_register_static_meta( container: *mut GESMetaContainer, flags: GESMetaFlag, @@ -4084,6 +4142,7 @@ extern "C" { value: i64, ) -> gboolean; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn ges_meta_container_set_marker_list( container: *mut GESMetaContainer, meta_item: *const c_char, @@ -4116,6 +4175,7 @@ extern "C" { pub fn ges_add_missing_uri_relocation_uri(uri: *const c_char, recurse: gboolean) -> gboolean; pub fn ges_deinit(); #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn ges_find_formatter_for_uri(uri: *const c_char) -> *mut GESAsset; pub fn ges_init() -> gboolean; pub fn ges_init_check( @@ -4125,6 +4185,7 @@ extern "C" { ) -> gboolean; pub fn ges_init_get_option_group() -> *mut glib::GOptionGroup; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn ges_is_initialized() -> gboolean; pub fn ges_list_assets(filter: GType) -> *mut glib::GList; pub fn ges_play_sink_convert_frame( diff --git a/gstreamer-editing-services/sys/tests/abi.rs b/gstreamer-editing-services/sys/tests/abi.rs index 0d7812bc6..84d40f22c 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 @ db37199) -// from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae9689) +// from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de) // DO NOT EDIT extern crate gstreamer_editing_services_sys; diff --git a/gstreamer-editing-services/sys/tests/constant.c b/gstreamer-editing-services/sys/tests/constant.c index 7a1c810ac..3658ebe72 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 @ db37199) -// from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae9689) +// from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de) // 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 291623e9a..b418a479d 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 @ db37199) -// from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae9689) +// from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-gl/src/auto/flags.rs b/gstreamer-gl/src/auto/flags.rs index f1e0823de..cc25bd82c 100644 --- a/gstreamer-gl/src/auto/flags.rs +++ b/gstreamer-gl/src/auto/flags.rs @@ -73,6 +73,7 @@ bitflags! { const VIV_FB = 64; const GBM = 128; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] const EGL_DEVICE = 256; } } diff --git a/gstreamer-gl/src/auto/gl_base_filter.rs b/gstreamer-gl/src/auto/gl_base_filter.rs index 63a5b6f8e..eb17a8ab5 100644 --- a/gstreamer-gl/src/auto/gl_base_filter.rs +++ b/gstreamer-gl/src/auto/gl_base_filter.rs @@ -32,9 +32,11 @@ 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")))] fn find_gl_context(&self) -> bool; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn get_gl_context(&self) -> Option; fn get_property_context(&self) -> Option; @@ -47,6 +49,7 @@ pub trait GLBaseFilterExt: 'static { impl> GLBaseFilterExt for O { #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn find_gl_context(&self) -> bool { unsafe { from_glib(gst_gl_sys::gst_gl_base_filter_find_gl_context( @@ -56,6 +59,7 @@ impl> GLBaseFilterExt for O { } #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn get_gl_context(&self) -> Option { unsafe { from_glib_full(gst_gl_sys::gst_gl_base_filter_get_gl_context( diff --git a/gstreamer-gl/src/auto/gl_context.rs b/gstreamer-gl/src/auto/gl_context.rs index 42fe9e788..866c21206 100644 --- a/gstreamer-gl/src/auto/gl_context.rs +++ b/gstreamer-gl/src/auto/gl_context.rs @@ -103,9 +103,11 @@ pub trait GLContextExt: 'static { 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")))] 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")))] fn supports_precision_highp(&self, version: GLSLVersion, profile: GLSLProfile) -> bool; fn swap_buffers(&self); @@ -311,6 +313,7 @@ impl> GLContextExt for O { } #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn supports_precision(&self, version: GLSLVersion, profile: GLSLProfile) -> bool { unsafe { from_glib(gst_gl_sys::gst_gl_context_supports_precision( @@ -322,6 +325,7 @@ impl> GLContextExt for O { } #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn supports_precision_highp(&self, version: GLSLVersion, profile: GLSLProfile) -> bool { unsafe { from_glib(gst_gl_sys::gst_gl_context_supports_precision_highp( diff --git a/gstreamer-gl/src/auto/gl_display.rs b/gstreamer-gl/src/auto/gl_display.rs index ce901fe40..a840cfdfa 100644 --- a/gstreamer-gl/src/auto/gl_display.rs +++ b/gstreamer-gl/src/auto/gl_display.rs @@ -64,11 +64,13 @@ pub trait GLDisplayExt: 'static { fn get_handle_type(&self) -> GLDisplayType; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn remove_context>(&self, context: &P); 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")))] //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>( @@ -154,6 +156,7 @@ impl> GLDisplayExt for O { } #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn remove_context>(&self, context: &P) { unsafe { gst_gl_sys::gst_gl_display_remove_context( @@ -176,6 +179,7 @@ impl> GLDisplayExt for O { } //#[cfg(any(feature = "v1_18", feature = "dox"))] + //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] //fn retrieve_window(&self, data: /*Unimplemented*/Option, compare_func: /*Unimplemented*/FnMut(/*Unimplemented*/Option, /*Unimplemented*/Option) -> i32) -> Option { // unsafe { TODO: call gst_gl_sys:gst_gl_display_retrieve_window() } //} diff --git a/gstreamer-gl/src/auto/gl_overlay_compositor.rs b/gstreamer-gl/src/auto/gl_overlay_compositor.rs index 40c7370c4..3691ca907 100644 --- a/gstreamer-gl/src/auto/gl_overlay_compositor.rs +++ b/gstreamer-gl/src/auto/gl_overlay_compositor.rs @@ -4,25 +4,34 @@ use glib::object::IsA; #[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] use glib::object::ObjectType as ObjectType_; #[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] use glib::signal::connect_raw; #[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] use glib::signal::SignalHandlerId; use glib::translate::*; #[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] use glib::StaticType; #[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] use glib::Value; #[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] use glib_sys; #[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] use gobject_sys; use gst; use gst_gl_sys; #[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] use std::boxed::Box as Box_; #[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] use std::mem::transmute; use GLContext; @@ -57,6 +66,7 @@ impl GLOverlayCompositor { } #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn get_property_yinvert(&self) -> bool { unsafe { let mut value = Value::from_type(::static_type()); @@ -73,6 +83,7 @@ impl GLOverlayCompositor { } #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn set_property_yinvert(&self, yinvert: bool) { unsafe { gobject_sys::g_object_set_property( @@ -93,6 +104,7 @@ impl GLOverlayCompositor { } #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn connect_property_yinvert_notify( &self, f: F, diff --git a/gstreamer-gl/src/auto/gl_shader.rs b/gstreamer-gl/src/auto/gl_shader.rs index 2fe976b9f..8bf2f1424 100644 --- a/gstreamer-gl/src/auto/gl_shader.rs +++ b/gstreamer-gl/src/auto/gl_shader.rs @@ -9,6 +9,7 @@ use glib::signal::connect_raw; use glib::signal::SignalHandlerId; use glib::translate::*; #[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] use glib::GString; use glib::StaticType; use glib::Value; @@ -21,9 +22,11 @@ use std::mem::transmute; use std::ptr; use GLContext; #[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] use GLSLProfile; use GLSLStage; #[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] use GLSLVersion; glib_wrapper! { @@ -391,6 +394,7 @@ impl GLShader { } #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn string_fragment_external_oes_get_default>( context: &P, version: GLSLVersion, @@ -409,6 +413,7 @@ impl GLShader { } #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn string_fragment_get_default>( context: &P, version: GLSLVersion, @@ -425,6 +430,7 @@ impl GLShader { } #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn string_get_highest_precision>( context: &P, version: GLSLVersion, diff --git a/gstreamer-gl/src/auto/gl_window.rs b/gstreamer-gl/src/auto/gl_window.rs index d00921cdf..38849f2a7 100644 --- a/gstreamer-gl/src/auto/gl_window.rs +++ b/gstreamer-gl/src/auto/gl_window.rs @@ -45,6 +45,7 @@ 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")))] fn controls_viewport(&self) -> bool; fn draw(&self); @@ -56,6 +57,7 @@ pub trait GLWindowExt: 'static { fn handle_events(&self, handle_events: bool); #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn has_output_surface(&self) -> bool; fn queue_resize(&self); @@ -71,6 +73,7 @@ pub trait GLWindowExt: 'static { 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")))] fn send_scroll_event(&self, posx: f64, posy: f64, delta_x: f64, delta_y: f64); fn set_preferred_size(&self, width: i32, height: i32); @@ -96,6 +99,7 @@ pub trait GLWindowExt: 'static { ) -> SignalHandlerId; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn connect_scroll_event( &self, f: F, @@ -104,6 +108,7 @@ pub trait GLWindowExt: 'static { impl> GLWindowExt for O { #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn controls_viewport(&self) -> bool { unsafe { from_glib(gst_gl_sys::gst_gl_window_controls_viewport( @@ -151,6 +156,7 @@ impl> GLWindowExt for O { } #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn has_output_surface(&self) -> bool { unsafe { from_glib(gst_gl_sys::gst_gl_window_has_output_surface( @@ -206,6 +212,7 @@ impl> GLWindowExt for O { } #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn send_scroll_event(&self, posx: f64, posy: f64, delta_x: f64, delta_y: f64) { unsafe { gst_gl_sys::gst_gl_window_send_scroll_event( @@ -330,6 +337,7 @@ impl> GLWindowExt for O { } #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn connect_scroll_event( &self, f: F, diff --git a/gstreamer-gl/src/auto/mod.rs b/gstreamer-gl/src/auto/mod.rs index 5dea03c56..e878369ea 100644 --- a/gstreamer-gl/src/auto/mod.rs +++ b/gstreamer-gl/src/auto/mod.rs @@ -3,10 +3,13 @@ // DO NOT EDIT #[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] mod gl_base_filter; #[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub use self::gl_base_filter::GLBaseFilterExt; #[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub use self::gl_base_filter::{GLBaseFilter, NONE_GL_BASE_FILTER}; mod gl_color_convert; @@ -21,18 +24,24 @@ pub use self::gl_display::GLDisplayExt; pub use self::gl_display::{GLDisplay, NONE_GL_DISPLAY}; #[cfg(any(feature = "egl", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "egl")))] mod gl_display_egl; #[cfg(any(feature = "egl", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "egl")))] pub use self::gl_display_egl::GLDisplayEGL; #[cfg(any(feature = "wayland", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "wayland")))] mod gl_display_wayland; #[cfg(any(feature = "wayland", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "wayland")))] pub use self::gl_display_wayland::GLDisplayWayland; #[cfg(any(feature = "x11", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "x11")))] mod gl_display_x11; #[cfg(any(feature = "x11", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "x11")))] pub use self::gl_display_x11::GLDisplayX11; mod gl_framebuffer; @@ -78,6 +87,7 @@ pub use self::flags::GLAPI; #[doc(hidden)] pub mod traits { #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub use super::GLBaseFilterExt; pub use super::GLContextExt; pub use super::GLDisplayExt; diff --git a/gstreamer-gl/src/auto/versions.txt b/gstreamer-gl/src/auto/versions.txt index 03f3faacf..df0f8cdd5 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 @ db37199) -from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e) +Generated by gir (https://github.com/gtk-rs/gir @ 1ae9689) +from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de) diff --git a/gstreamer-gl/sys/build.rs b/gstreamer-gl/sys/build.rs index 93a1b219b..eadccf000 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 @ db37199) -// from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae9689) +// from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de) // DO NOT EDIT #[cfg(not(feature = "dox"))] diff --git a/gstreamer-gl/sys/src/lib.rs b/gstreamer-gl/sys/src/lib.rs index 7fa5b2837..91370bc18 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 @ db37199) -// from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae9689) +// from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de) // DO NOT EDIT #![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)] @@ -8,6 +8,7 @@ clippy::type_complexity, clippy::unreadable_literal )] +#![cfg_attr(feature = "dox", feature(doc_cfg))] extern crate glib_sys as glib; extern crate gobject_sys as gobject; @@ -600,6 +601,7 @@ impl ::std::fmt::Debug for GstGLDisplayClass { } #[cfg(any(feature = "egl", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "egl")))] #[repr(C)] #[derive(Copy, Clone)] pub struct GstGLDisplayEGLClass { @@ -608,6 +610,7 @@ pub struct GstGLDisplayEGLClass { } #[cfg(any(feature = "egl", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "egl")))] impl ::std::fmt::Debug for GstGLDisplayEGLClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GstGLDisplayEGLClass @ {:?}", self as *const _)) @@ -623,6 +626,7 @@ pub struct _GstGLDisplayPrivate(c_void); pub type GstGLDisplayPrivate = *mut _GstGLDisplayPrivate; #[cfg(any(feature = "wayland", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "wayland")))] #[repr(C)] #[derive(Copy, Clone)] pub struct GstGLDisplayWaylandClass { @@ -631,6 +635,7 @@ pub struct GstGLDisplayWaylandClass { } #[cfg(any(feature = "wayland", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "wayland")))] impl ::std::fmt::Debug for GstGLDisplayWaylandClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!( @@ -644,6 +649,7 @@ impl ::std::fmt::Debug for GstGLDisplayWaylandClass { } #[cfg(any(feature = "x11", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "x11")))] #[repr(C)] #[derive(Copy, Clone)] pub struct GstGLDisplayX11Class { @@ -652,6 +658,7 @@ pub struct GstGLDisplayX11Class { } #[cfg(any(feature = "x11", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "x11")))] impl ::std::fmt::Debug for GstGLDisplayX11Class { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GstGLDisplayX11Class @ {:?}", self as *const _)) @@ -1289,6 +1296,7 @@ impl ::std::fmt::Debug for GstGLDisplay { } #[cfg(any(feature = "egl", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "egl")))] #[repr(C)] #[derive(Copy, Clone)] pub struct GstGLDisplayEGL { @@ -1299,6 +1307,7 @@ pub struct GstGLDisplayEGL { } #[cfg(any(feature = "egl", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "egl")))] impl ::std::fmt::Debug for GstGLDisplayEGL { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GstGLDisplayEGL @ {:?}", self as *const _)) @@ -1308,6 +1317,7 @@ impl ::std::fmt::Debug for GstGLDisplayEGL { } #[cfg(any(feature = "wayland", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "wayland")))] #[repr(C)] #[derive(Copy, Clone)] pub struct GstGLDisplayWayland { @@ -1322,6 +1332,7 @@ pub struct GstGLDisplayWayland { } #[cfg(any(feature = "wayland", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "wayland")))] impl ::std::fmt::Debug for GstGLDisplayWayland { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GstGLDisplayWayland @ {:?}", self as *const _)) @@ -1336,6 +1347,7 @@ impl ::std::fmt::Debug for GstGLDisplayWayland { } #[cfg(any(feature = "x11", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "x11")))] #[repr(C)] #[derive(Copy, Clone)] pub struct GstGLDisplayX11 { @@ -1348,6 +1360,7 @@ pub struct GstGLDisplayX11 { } #[cfg(any(feature = "x11", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "x11")))] impl ::std::fmt::Debug for GstGLDisplayX11 { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GstGLDisplayX11 @ {:?}", self as *const _)) @@ -1631,8 +1644,10 @@ extern "C" { plane: c_uint, ) -> GstGLFormat; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_gl_format_is_supported(context: *mut GstGLContext, format: GstGLFormat) -> gboolean; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_gl_format_type_from_sized_gl_format( format: GstGLFormat, unsized_format: *mut GstGLFormat, @@ -2031,8 +2046,10 @@ extern "C" { //========================================================================= pub fn gst_gl_base_filter_get_type() -> GType; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_gl_base_filter_find_gl_context(filter: *mut GstGLBaseFilter) -> gboolean; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_gl_base_filter_get_gl_context(filter: *mut GstGLBaseFilter) -> *mut GstGLContext; //========================================================================= @@ -2044,6 +2061,7 @@ extern "C" { // GstGLBaseSrc //========================================================================= #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_gl_base_src_get_type() -> GType; //========================================================================= @@ -2178,12 +2196,14 @@ extern "C" { profile: GstGLSLProfile, ) -> gboolean; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_gl_context_supports_precision( context: *mut GstGLContext, version: GstGLSLVersion, profile: GstGLSLProfile, ) -> gboolean; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_gl_context_supports_precision_highp( context: *mut GstGLContext, version: GstGLSLVersion, @@ -2227,12 +2247,14 @@ extern "C" { pub fn gst_gl_display_get_handle(display: *mut GstGLDisplay) -> uintptr_t; pub fn gst_gl_display_get_handle_type(display: *mut GstGLDisplay) -> GstGLDisplayType; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_gl_display_remove_context(display: *mut GstGLDisplay, context: *mut GstGLContext); pub fn gst_gl_display_remove_window( display: *mut GstGLDisplay, window: *mut GstGLWindow, ) -> gboolean; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_gl_display_retrieve_window( display: *mut GstGLDisplay, data: gpointer, @@ -2243,14 +2265,19 @@ extern "C" { // GstGLDisplayEGL //========================================================================= #[cfg(any(feature = "egl", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "egl")))] pub fn gst_gl_display_egl_get_type() -> GType; #[cfg(any(feature = "egl", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "egl")))] pub fn gst_gl_display_egl_new() -> *mut GstGLDisplayEGL; #[cfg(any(feature = "egl", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "egl")))] pub fn gst_gl_display_egl_new_with_egl_display(display: gpointer) -> *mut GstGLDisplayEGL; #[cfg(any(feature = "egl", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "egl")))] pub fn gst_gl_display_egl_from_gl_display(display: *mut GstGLDisplay) -> *mut GstGLDisplayEGL; #[cfg(any(feature = "egl", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "egl")))] pub fn gst_gl_display_egl_get_from_native( type_: GstGLDisplayType, display: uintptr_t, @@ -2260,20 +2287,26 @@ extern "C" { // GstGLDisplayWayland //========================================================================= #[cfg(any(feature = "wayland", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "wayland")))] pub fn gst_gl_display_wayland_get_type() -> GType; #[cfg(any(feature = "wayland", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "wayland")))] pub fn gst_gl_display_wayland_new(name: *const c_char) -> *mut GstGLDisplayWayland; #[cfg(any(feature = "wayland", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "wayland")))] pub fn gst_gl_display_wayland_new_with_display(display: gpointer) -> *mut GstGLDisplayWayland; //========================================================================= // GstGLDisplayX11 //========================================================================= #[cfg(any(feature = "x11", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "x11")))] pub fn gst_gl_display_x11_get_type() -> GType; #[cfg(any(feature = "x11", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "x11")))] pub fn gst_gl_display_x11_new(name: *const c_char) -> *mut GstGLDisplayX11; #[cfg(any(feature = "x11", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "x11")))] pub fn gst_gl_display_x11_new_with_display(display: gpointer) -> *mut GstGLDisplayX11; //========================================================================= @@ -2420,18 +2453,21 @@ extern "C" { ... ) -> *mut GstGLShader; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_gl_shader_string_fragment_external_oes_get_default( context: *mut GstGLContext, version: GstGLSLVersion, profile: GstGLSLProfile, ) -> *mut c_char; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_gl_shader_string_fragment_get_default( context: *mut GstGLContext, version: GstGLSLVersion, profile: GstGLSLProfile, ) -> *mut c_char; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_gl_shader_string_get_highest_precision( context: *mut GstGLContext, version: GstGLSLVersion, @@ -2715,6 +2751,7 @@ extern "C" { pub fn gst_gl_window_get_type() -> GType; pub fn gst_gl_window_new(display: *mut GstGLDisplay) -> *mut GstGLWindow; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_gl_window_controls_viewport(window: *mut GstGLWindow) -> gboolean; pub fn gst_gl_window_draw(window: *mut GstGLWindow); pub fn gst_gl_window_get_context(window: *mut GstGLWindow) -> *mut GstGLContext; @@ -2727,6 +2764,7 @@ extern "C" { pub fn gst_gl_window_get_window_handle(window: *mut GstGLWindow) -> uintptr_t; pub fn gst_gl_window_handle_events(window: *mut GstGLWindow, handle_events: gboolean); #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_gl_window_has_output_surface(window: *mut GstGLWindow) -> gboolean; pub fn gst_gl_window_queue_resize(window: *mut GstGLWindow); pub fn gst_gl_window_quit(window: *mut GstGLWindow); @@ -2756,6 +2794,7 @@ extern "C" { posy: c_double, ); #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_gl_window_send_scroll_event( window: *mut GstGLWindow, posx: c_double, diff --git a/gstreamer-gl/sys/tests/abi.rs b/gstreamer-gl/sys/tests/abi.rs index 12fde177b..4c9626dc4 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 @ db37199) -// from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae9689) +// from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de) // DO NOT EDIT extern crate gstreamer_gl_sys; @@ -428,6 +428,7 @@ const RUST_LAYOUTS: &[(&str, Layout)] = &[ }, ), #[cfg(any(feature = "egl", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "egl")))] ( "GstGLDisplayEGL", Layout { @@ -436,6 +437,7 @@ const RUST_LAYOUTS: &[(&str, Layout)] = &[ }, ), #[cfg(any(feature = "egl", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "egl")))] ( "GstGLDisplayEGLClass", Layout { @@ -451,6 +453,7 @@ const RUST_LAYOUTS: &[(&str, Layout)] = &[ }, ), #[cfg(any(feature = "wayland", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "wayland")))] ( "GstGLDisplayWayland", Layout { @@ -459,6 +462,7 @@ const RUST_LAYOUTS: &[(&str, Layout)] = &[ }, ), #[cfg(any(feature = "wayland", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "wayland")))] ( "GstGLDisplayWaylandClass", Layout { @@ -467,6 +471,7 @@ const RUST_LAYOUTS: &[(&str, Layout)] = &[ }, ), #[cfg(any(feature = "x11", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "x11")))] ( "GstGLDisplayX11", Layout { @@ -475,6 +480,7 @@ const RUST_LAYOUTS: &[(&str, Layout)] = &[ }, ), #[cfg(any(feature = "x11", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "x11")))] ( "GstGLDisplayX11Class", Layout { diff --git a/gstreamer-gl/sys/tests/constant.c b/gstreamer-gl/sys/tests/constant.c index 7a1c810ac..3658ebe72 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 @ db37199) -// from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae9689) +// from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-gl/sys/tests/layout.c b/gstreamer-gl/sys/tests/layout.c index 291623e9a..b418a479d 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 @ db37199) -// from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae9689) +// from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-mpegts/sys/build.rs b/gstreamer-mpegts/sys/build.rs index 93a1b219b..eadccf000 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 @ db37199) -// from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae9689) +// from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de) // DO NOT EDIT #[cfg(not(feature = "dox"))] diff --git a/gstreamer-mpegts/sys/src/lib.rs b/gstreamer-mpegts/sys/src/lib.rs index 7848cbe12..c1600153e 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 @ db37199) -// from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae9689) +// from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de) // DO NOT EDIT #![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)] @@ -8,6 +8,7 @@ clippy::type_complexity, clippy::unreadable_literal )] +#![cfg_attr(feature = "dox", feature(doc_cfg))] extern crate glib_sys as glib; extern crate gobject_sys as gobject; @@ -1901,8 +1902,10 @@ extern "C" { // GstMpegtsAtscRRT //========================================================================= #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_mpegts_atsc_rrt_get_type() -> GType; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_mpegts_atsc_rrt_new() -> *mut GstMpegtsAtscRRT; //========================================================================= @@ -1915,8 +1918,10 @@ extern "C" { // GstMpegtsAtscRRTDimensionValue //========================================================================= #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_mpegts_atsc_rrt_dimension_value_get_type() -> GType; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_mpegts_atsc_rrt_dimension_value_new() -> *mut GstMpegtsAtscRRTDimensionValue; //========================================================================= @@ -2367,6 +2372,7 @@ extern "C" { section: *mut GstMpegtsSection, ) -> *const GstMpegtsAtscMGT; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_mpegts_section_get_atsc_rrt( section: *mut GstMpegtsSection, ) -> *const GstMpegtsAtscRRT; @@ -2399,8 +2405,10 @@ extern "C" { element: *mut gst::GstElement, ) -> gboolean; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_mpegts_section_from_atsc_mgt(mgt: *mut GstMpegtsAtscMGT) -> *mut GstMpegtsSection; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_mpegts_section_from_atsc_rrt(rrt: *mut GstMpegtsAtscRRT) -> *mut GstMpegtsSection; pub fn gst_mpegts_section_from_atsc_stt(stt: *mut GstMpegtsAtscSTT) -> *mut GstMpegtsSection; pub fn gst_mpegts_section_from_nit(nit: *mut GstMpegtsNIT) -> *mut GstMpegtsSection; diff --git a/gstreamer-mpegts/sys/tests/abi.rs b/gstreamer-mpegts/sys/tests/abi.rs index 713959191..a15c59adc 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 @ db37199) -// from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae9689) +// from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de) // DO NOT EDIT extern crate gstreamer_mpegts_sys; diff --git a/gstreamer-mpegts/sys/tests/constant.c b/gstreamer-mpegts/sys/tests/constant.c index 7a1c810ac..3658ebe72 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 @ db37199) -// from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae9689) +// from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-mpegts/sys/tests/layout.c b/gstreamer-mpegts/sys/tests/layout.c index 291623e9a..b418a479d 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 @ db37199) -// from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae9689) +// from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-net/src/auto/versions.txt b/gstreamer-net/src/auto/versions.txt index 03f3faacf..df0f8cdd5 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 @ db37199) -from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e) +Generated by gir (https://github.com/gtk-rs/gir @ 1ae9689) +from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de) diff --git a/gstreamer-net/sys/build.rs b/gstreamer-net/sys/build.rs index 93a1b219b..eadccf000 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 @ db37199) -// from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae9689) +// from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de) // DO NOT EDIT #[cfg(not(feature = "dox"))] diff --git a/gstreamer-net/sys/src/lib.rs b/gstreamer-net/sys/src/lib.rs index 2324d15ea..44b2cd742 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 @ db37199) -// from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae9689) +// from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de) // DO NOT EDIT #![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)] @@ -8,6 +8,7 @@ clippy::type_complexity, clippy::unreadable_literal )] +#![cfg_attr(feature = "dox", feature(doc_cfg))] extern crate gio_sys as gio; extern crate glib_sys as glib; @@ -319,6 +320,7 @@ extern "C" { pub fn gst_net_address_meta_api_get_type() -> GType; pub fn gst_net_control_message_meta_api_get_type() -> GType; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_net_utils_set_socket_tos(socket: *mut gio::GSocket, qos_dscp: c_int) -> gboolean; pub fn gst_ptp_deinit(); pub fn gst_ptp_init(clock_id: u64, interfaces: *mut *mut c_char) -> gboolean; diff --git a/gstreamer-net/sys/tests/abi.rs b/gstreamer-net/sys/tests/abi.rs index 7842694e1..f71247c49 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 @ db37199) -// from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae9689) +// from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de) // DO NOT EDIT extern crate gstreamer_net_sys; diff --git a/gstreamer-net/sys/tests/constant.c b/gstreamer-net/sys/tests/constant.c index 7a1c810ac..3658ebe72 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 @ db37199) -// from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae9689) +// from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-net/sys/tests/layout.c b/gstreamer-net/sys/tests/layout.c index 291623e9a..b418a479d 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 @ db37199) -// from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae9689) +// from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-pbutils/src/auto/discoverer.rs b/gstreamer-pbutils/src/auto/discoverer.rs index b31ef77cd..6fef01cbb 100644 --- a/gstreamer-pbutils/src/auto/discoverer.rs +++ b/gstreamer-pbutils/src/auto/discoverer.rs @@ -8,11 +8,14 @@ use glib::signal::connect_raw; use glib::signal::SignalHandlerId; use glib::translate::*; #[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] use glib::StaticType; #[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] use glib::Value; use glib_sys; #[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] use gobject_sys; use gst; use gst_pbutils_sys; @@ -85,6 +88,7 @@ impl Discoverer { } #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn get_property_use_cache(&self) -> bool { unsafe { let mut value = Value::from_type(::static_type()); @@ -101,6 +105,7 @@ impl Discoverer { } #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn set_property_use_cache(&self, use_cache: bool) { unsafe { gobject_sys::g_object_set_property( @@ -223,6 +228,7 @@ impl Discoverer { } #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn connect_property_use_cache_notify( &self, f: F, diff --git a/gstreamer-pbutils/src/auto/discoverer_audio_info.rs b/gstreamer-pbutils/src/auto/discoverer_audio_info.rs index 7d4056254..d641ec375 100644 --- a/gstreamer-pbutils/src/auto/discoverer_audio_info.rs +++ b/gstreamer-pbutils/src/auto/discoverer_audio_info.rs @@ -21,6 +21,7 @@ impl DiscovererAudioInfo { } #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn get_channel_mask(&self) -> u64 { unsafe { gst_pbutils_sys::gst_discoverer_audio_info_get_channel_mask(self.to_glib_none().0) diff --git a/gstreamer-pbutils/src/auto/discoverer_info.rs b/gstreamer-pbutils/src/auto/discoverer_info.rs index fc77322ec..f6c5f9ac8 100644 --- a/gstreamer-pbutils/src/auto/discoverer_info.rs +++ b/gstreamer-pbutils/src/auto/discoverer_info.rs @@ -53,6 +53,7 @@ impl DiscovererInfo { } #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn get_live(&self) -> bool { unsafe { from_glib(gst_pbutils_sys::gst_discoverer_info_get_live( diff --git a/gstreamer-pbutils/src/auto/encoding_profile.rs b/gstreamer-pbutils/src/auto/encoding_profile.rs index a12ae8873..dbcb374f7 100644 --- a/gstreamer-pbutils/src/auto/encoding_profile.rs +++ b/gstreamer-pbutils/src/auto/encoding_profile.rs @@ -52,6 +52,7 @@ 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")))] fn copy(&self) -> EncodingProfile; fn get_allow_dynamic_output(&self) -> bool; @@ -73,6 +74,7 @@ pub trait EncodingProfileExt: 'static { fn get_preset_name(&self) -> Option; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn get_single_segment(&self) -> bool; fn get_type_nick(&self) -> Option; @@ -84,6 +86,7 @@ pub trait EncodingProfileExt: 'static { impl> EncodingProfileExt for O { #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] fn copy(&self) -> EncodingProfile { unsafe { from_glib_full(gst_pbutils_sys::gst_encoding_profile_copy( @@ -165,6 +168,7 @@ impl> EncodingProfileExt for O { } #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn get_single_segment(&self) -> bool { unsafe { from_glib(gst_pbutils_sys::gst_encoding_profile_get_single_segment( diff --git a/gstreamer-pbutils/src/auto/encoding_target.rs b/gstreamer-pbutils/src/auto/encoding_target.rs index 4b890ae52..7724d120a 100644 --- a/gstreamer-pbutils/src/auto/encoding_target.rs +++ b/gstreamer-pbutils/src/auto/encoding_target.rs @@ -61,6 +61,7 @@ impl EncodingTarget { } #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn get_path(&self) -> Option { unsafe { from_glib_none(gst_pbutils_sys::gst_encoding_target_get_path( diff --git a/gstreamer-pbutils/src/auto/versions.txt b/gstreamer-pbutils/src/auto/versions.txt index 03f3faacf..df0f8cdd5 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 @ db37199) -from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e) +Generated by gir (https://github.com/gtk-rs/gir @ 1ae9689) +from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de) diff --git a/gstreamer-pbutils/sys/build.rs b/gstreamer-pbutils/sys/build.rs index 93a1b219b..eadccf000 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 @ db37199) -// from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae9689) +// from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de) // DO NOT EDIT #[cfg(not(feature = "dox"))] diff --git a/gstreamer-pbutils/sys/src/lib.rs b/gstreamer-pbutils/sys/src/lib.rs index 030753ee7..41b0b0a4f 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 @ db37199) -// from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae9689) +// from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de) // DO NOT EDIT #![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)] @@ -8,6 +8,7 @@ clippy::type_complexity, clippy::unreadable_literal )] +#![cfg_attr(feature = "dox", feature(doc_cfg))] extern crate glib_sys as glib; extern crate gobject_sys as gobject; @@ -380,6 +381,7 @@ extern "C" { pub fn gst_install_plugins_context_get_type() -> GType; pub fn gst_install_plugins_context_new() -> *mut GstInstallPluginsContext; #[cfg(any(feature = "v1_12_1", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12_1")))] pub fn gst_install_plugins_context_copy( ctx: *mut GstInstallPluginsContext, ) -> *mut GstInstallPluginsContext; @@ -429,6 +431,7 @@ extern "C" { pub fn gst_discoverer_audio_info_get_type() -> GType; pub fn gst_discoverer_audio_info_get_bitrate(info: *const GstDiscovererAudioInfo) -> c_uint; #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_discoverer_audio_info_get_channel_mask(info: *const GstDiscovererAudioInfo) -> u64; pub fn gst_discoverer_audio_info_get_channels(info: *const GstDiscovererAudioInfo) -> c_uint; pub fn gst_discoverer_audio_info_get_depth(info: *const GstDiscovererAudioInfo) -> c_uint; @@ -461,6 +464,7 @@ extern "C" { ) -> *mut glib::GList; pub fn gst_discoverer_info_get_duration(info: *const GstDiscovererInfo) -> gst::GstClockTime; #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_discoverer_info_get_live(info: *const GstDiscovererInfo) -> gboolean; pub fn gst_discoverer_info_get_misc(info: *const GstDiscovererInfo) -> *const gst::GstStructure; @@ -595,6 +599,7 @@ extern "C" { info: *mut GstDiscovererInfo, ) -> *mut GstEncodingProfile; #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] pub fn gst_encoding_profile_copy(self_: *mut GstEncodingProfile) -> *mut GstEncodingProfile; pub fn gst_encoding_profile_get_allow_dynamic_output( profile: *mut GstEncodingProfile, @@ -615,6 +620,7 @@ extern "C" { profile: *mut GstEncodingProfile, ) -> *mut gst::GstCaps; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_encoding_profile_get_single_segment(profile: *mut GstEncodingProfile) -> gboolean; pub fn gst_encoding_profile_get_type_nick(profile: *mut GstEncodingProfile) -> *const c_char; pub fn gst_encoding_profile_is_enabled(profile: *mut GstEncodingProfile) -> gboolean; @@ -647,6 +653,7 @@ extern "C" { restriction: *mut gst::GstCaps, ); #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_encoding_profile_set_single_segment( profile: *mut GstEncodingProfile, single_segment: gboolean, @@ -679,6 +686,7 @@ extern "C" { pub fn gst_encoding_target_get_description(target: *mut GstEncodingTarget) -> *const c_char; pub fn gst_encoding_target_get_name(target: *mut GstEncodingTarget) -> *const c_char; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_encoding_target_get_path(target: *mut GstEncodingTarget) -> *const c_char; pub fn gst_encoding_target_get_profile( target: *mut GstEncodingTarget, @@ -724,11 +732,13 @@ extern "C" { len: c_uint, ) -> gboolean; #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_codec_utils_aac_get_channels(audio_config: *const u8, len: c_uint) -> c_uint; pub fn gst_codec_utils_aac_get_index_from_sample_rate(rate: c_uint) -> c_int; pub fn gst_codec_utils_aac_get_level(audio_config: *const u8, len: c_uint) -> *const c_char; pub fn gst_codec_utils_aac_get_profile(audio_config: *const u8, len: c_uint) -> *const c_char; #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_codec_utils_aac_get_sample_rate(audio_config: *const u8, len: c_uint) -> c_uint; pub fn gst_codec_utils_aac_get_sample_rate_from_index(sr_idx: c_uint) -> c_uint; pub fn gst_codec_utils_h264_caps_set_level_and_profile( diff --git a/gstreamer-pbutils/sys/tests/abi.rs b/gstreamer-pbutils/sys/tests/abi.rs index 43cca0bf2..a0b349e17 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 @ db37199) -// from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae9689) +// from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de) // DO NOT EDIT extern crate gstreamer_pbutils_sys; diff --git a/gstreamer-pbutils/sys/tests/constant.c b/gstreamer-pbutils/sys/tests/constant.c index 7a1c810ac..3658ebe72 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 @ db37199) -// from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae9689) +// from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-pbutils/sys/tests/layout.c b/gstreamer-pbutils/sys/tests/layout.c index 291623e9a..b418a479d 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 @ db37199) -// from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae9689) +// from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-player/src/auto/player.rs b/gstreamer-player/src/auto/player.rs index deaf93605..d1738a053 100644 --- a/gstreamer-player/src/auto/player.rs +++ b/gstreamer-player/src/auto/player.rs @@ -143,6 +143,7 @@ impl Player { } #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn get_subtitle_video_offset(&self) -> i64 { unsafe { gst_player_sys::gst_player_get_subtitle_video_offset(self.to_glib_none().0) } } @@ -281,6 +282,7 @@ impl Player { } #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn set_subtitle_video_offset(&self, offset: i64) { unsafe { gst_player_sys::gst_player_set_subtitle_video_offset(self.to_glib_none().0, offset); @@ -966,6 +968,7 @@ impl Player { } #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn connect_property_subtitle_video_offset_notify( &self, f: F, diff --git a/gstreamer-player/src/auto/versions.txt b/gstreamer-player/src/auto/versions.txt index 03f3faacf..df0f8cdd5 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 @ db37199) -from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e) +Generated by gir (https://github.com/gtk-rs/gir @ 1ae9689) +from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de) diff --git a/gstreamer-player/sys/build.rs b/gstreamer-player/sys/build.rs index 93a1b219b..eadccf000 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 @ db37199) -// from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae9689) +// from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de) // DO NOT EDIT #[cfg(not(feature = "dox"))] diff --git a/gstreamer-player/sys/src/lib.rs b/gstreamer-player/sys/src/lib.rs index 35d7b92ce..4b8095656 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 @ db37199) -// from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae9689) +// from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de) // DO NOT EDIT #![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)] @@ -8,6 +8,7 @@ clippy::type_complexity, clippy::unreadable_literal )] +#![cfg_attr(feature = "dox", feature(doc_cfg))] extern crate glib_sys as glib; extern crate gobject_sys as gobject; @@ -345,6 +346,7 @@ extern "C" { pub fn gst_player_get_rate(player: *mut GstPlayer) -> c_double; pub fn gst_player_get_subtitle_uri(player: *mut GstPlayer) -> *mut c_char; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_player_get_subtitle_video_offset(player: *mut GstPlayer) -> i64; pub fn gst_player_get_uri(player: *mut GstPlayer) -> *mut c_char; pub fn gst_player_get_video_snapshot( @@ -383,6 +385,7 @@ extern "C" { pub fn gst_player_set_subtitle_track_enabled(player: *mut GstPlayer, enabled: gboolean); pub fn gst_player_set_subtitle_uri(player: *mut GstPlayer, uri: *const c_char); #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_player_set_subtitle_video_offset(player: *mut GstPlayer, offset: i64); pub fn gst_player_set_uri(player: *mut GstPlayer, uri: *const c_char); pub fn gst_player_set_video_track(player: *mut GstPlayer, stream_index: c_int) -> gboolean; diff --git a/gstreamer-player/sys/tests/abi.rs b/gstreamer-player/sys/tests/abi.rs index 8dd8fa314..80ccbe7f9 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 @ db37199) -// from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae9689) +// from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de) // DO NOT EDIT extern crate gstreamer_player_sys; diff --git a/gstreamer-player/sys/tests/constant.c b/gstreamer-player/sys/tests/constant.c index 7a1c810ac..3658ebe72 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 @ db37199) -// from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae9689) +// from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-player/sys/tests/layout.c b/gstreamer-player/sys/tests/layout.c index 291623e9a..b418a479d 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 @ db37199) -// from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae9689) +// from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-rtp/src/auto/enums.rs b/gstreamer-rtp/src/auto/enums.rs index 11987fc06..69a94ed0b 100644 --- a/gstreamer-rtp/src/auto/enums.rs +++ b/gstreamer-rtp/src/auto/enums.rs @@ -253,6 +253,7 @@ impl SetValue for RTCPType { } #[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] pub enum RTCPXRType { @@ -269,6 +270,7 @@ pub enum RTCPXRType { } #[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[doc(hidden)] impl ToGlib for RTCPXRType { type GlibType = gst_rtp_sys::GstRTCPXRType; @@ -289,6 +291,7 @@ impl ToGlib for RTCPXRType { } #[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[doc(hidden)] impl FromGlib for RTCPXRType { fn from_glib(value: gst_rtp_sys::GstRTCPXRType) -> Self { @@ -308,6 +311,7 @@ impl FromGlib for RTCPXRType { } #[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] impl StaticType for RTCPXRType { fn static_type() -> Type { unsafe { from_glib(gst_rtp_sys::gst_rtcpxr_type_get_type()) } @@ -315,6 +319,7 @@ impl StaticType for RTCPXRType { } #[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] impl<'a> FromValueOptional<'a> for RTCPXRType { unsafe fn from_value_optional(value: &Value) -> Option { Some(FromValue::from_value(value)) @@ -322,6 +327,7 @@ impl<'a> FromValueOptional<'a> for RTCPXRType { } #[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] impl<'a> FromValue<'a> for RTCPXRType { unsafe fn from_value(value: &Value) -> Self { from_glib(gobject_sys::g_value_get_enum(value.to_glib_none().0)) @@ -329,6 +335,7 @@ impl<'a> FromValue<'a> for RTCPXRType { } #[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] impl SetValue for RTCPXRType { unsafe fn set_value(value: &mut Value, this: &Self) { gobject_sys::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib()) diff --git a/gstreamer-rtp/src/auto/flags.rs b/gstreamer-rtp/src/auto/flags.rs index 534be7380..813e51fd1 100644 --- a/gstreamer-rtp/src/auto/flags.rs +++ b/gstreamer-rtp/src/auto/flags.rs @@ -13,6 +13,7 @@ use gobject_sys; use gst_rtp_sys; #[cfg(any(feature = "v1_10", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] bitflags! { pub struct RTPBufferFlags: u32 { const RETRANSMISSION = 1048576; @@ -21,6 +22,7 @@ bitflags! { } #[cfg(any(feature = "v1_10", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] #[doc(hidden)] impl ToGlib for RTPBufferFlags { type GlibType = gst_rtp_sys::GstRTPBufferFlags; @@ -31,6 +33,7 @@ impl ToGlib for RTPBufferFlags { } #[cfg(any(feature = "v1_10", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] #[doc(hidden)] impl FromGlib for RTPBufferFlags { fn from_glib(value: gst_rtp_sys::GstRTPBufferFlags) -> RTPBufferFlags { @@ -40,6 +43,7 @@ impl FromGlib for RTPBufferFlags { } #[cfg(any(feature = "v1_10", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] impl StaticType for RTPBufferFlags { fn static_type() -> Type { unsafe { from_glib(gst_rtp_sys::gst_rtp_buffer_flags_get_type()) } @@ -47,6 +51,7 @@ impl StaticType for RTPBufferFlags { } #[cfg(any(feature = "v1_10", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] impl<'a> FromValueOptional<'a> for RTPBufferFlags { unsafe fn from_value_optional(value: &Value) -> Option { Some(FromValue::from_value(value)) @@ -54,6 +59,7 @@ impl<'a> FromValueOptional<'a> for RTPBufferFlags { } #[cfg(any(feature = "v1_10", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] impl<'a> FromValue<'a> for RTPBufferFlags { unsafe fn from_value(value: &Value) -> Self { from_glib(gobject_sys::g_value_get_flags(value.to_glib_none().0)) @@ -61,6 +67,7 @@ impl<'a> FromValue<'a> for RTPBufferFlags { } #[cfg(any(feature = "v1_10", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] impl SetValue for RTPBufferFlags { unsafe fn set_value(value: &mut Value, this: &Self) { gobject_sys::g_value_set_flags(value.to_glib_none_mut().0, this.to_glib()) diff --git a/gstreamer-rtp/src/auto/functions.rs b/gstreamer-rtp/src/auto/functions.rs index dffb40790..20eff670f 100644 --- a/gstreamer-rtp/src/auto/functions.rs +++ b/gstreamer-rtp/src/auto/functions.rs @@ -8,11 +8,13 @@ use gst_rtp_sys; use RTCPSDESType; //#[cfg(any(feature = "v1_16", feature = "dox"))] +//#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] //pub fn buffer_add_rtp_source_meta(buffer: &gst::Buffer, ssrc: u32, csrc: u32, csrc_count: u32) -> /*Ignored*/Option { // unsafe { TODO: call gst_rtp_sys:gst_buffer_add_rtp_source_meta() } //} //#[cfg(any(feature = "v1_16", feature = "dox"))] +//#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] //pub fn buffer_get_rtp_source_meta(buffer: &gst::Buffer) -> /*Ignored*/Option { // unsafe { TODO: call gst_rtp_sys:gst_buffer_get_rtp_source_meta() } //} diff --git a/gstreamer-rtp/src/auto/mod.rs b/gstreamer-rtp/src/auto/mod.rs index 1d24745b0..d9420453d 100644 --- a/gstreamer-rtp/src/auto/mod.rs +++ b/gstreamer-rtp/src/auto/mod.rs @@ -7,12 +7,14 @@ pub use self::enums::RTCPFBType; pub use self::enums::RTCPSDESType; pub use self::enums::RTCPType; #[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub use self::enums::RTCPXRType; pub use self::enums::RTPPayload; pub use self::enums::RTPProfile; mod flags; #[cfg(any(feature = "v1_10", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub use self::flags::RTPBufferFlags; pub use self::flags::RTPBufferMapFlags; diff --git a/gstreamer-rtp/src/auto/versions.txt b/gstreamer-rtp/src/auto/versions.txt index 03f3faacf..df0f8cdd5 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 @ db37199) -from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e) +Generated by gir (https://github.com/gtk-rs/gir @ 1ae9689) +from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de) diff --git a/gstreamer-rtp/sys/build.rs b/gstreamer-rtp/sys/build.rs index 93a1b219b..eadccf000 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 @ db37199) -// from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae9689) +// from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de) // DO NOT EDIT #[cfg(not(feature = "dox"))] diff --git a/gstreamer-rtp/sys/src/lib.rs b/gstreamer-rtp/sys/src/lib.rs index cd15d268f..6d2e55e9c 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 @ db37199) -// from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae9689) +// from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de) // DO NOT EDIT #![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)] @@ -8,6 +8,7 @@ clippy::type_complexity, clippy::unreadable_literal )] +#![cfg_attr(feature = "dox", feature(doc_cfg))] extern crate glib_sys as glib; extern crate gobject_sys as gobject; @@ -505,6 +506,7 @@ extern "C" { // GstRTCPXRType //========================================================================= #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_rtcpxr_type_get_type() -> GType; //========================================================================= @@ -521,6 +523,7 @@ extern "C" { // GstRTPBufferFlags //========================================================================= #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_rtp_buffer_flags_get_type() -> GType; //========================================================================= @@ -559,6 +562,7 @@ extern "C" { // GstRTCPPacket //========================================================================= #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_rtcp_packet_add_profile_specific_ext( packet: *mut GstRTCPPacket, data: *const u8, @@ -575,25 +579,34 @@ extern "C" { dlsr: u32, ) -> gboolean; #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_rtcp_packet_app_get_data(packet: *mut GstRTCPPacket) -> *mut u8; #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_rtcp_packet_app_get_data_length(packet: *mut GstRTCPPacket) -> u16; #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_rtcp_packet_app_get_name(packet: *mut GstRTCPPacket) -> *const c_char; #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_rtcp_packet_app_get_ssrc(packet: *mut GstRTCPPacket) -> u32; #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_rtcp_packet_app_get_subtype(packet: *mut GstRTCPPacket) -> u8; #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_rtcp_packet_app_set_data_length( packet: *mut GstRTCPPacket, wordlen: u16, ) -> gboolean; #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_rtcp_packet_app_set_name(packet: *mut GstRTCPPacket, name: *const c_char); #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_rtcp_packet_app_set_ssrc(packet: *mut GstRTCPPacket, ssrc: u32); #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_rtcp_packet_app_set_subtype(packet: *mut GstRTCPPacket, subtype: u8); pub fn gst_rtcp_packet_bye_add_ssrc(packet: *mut GstRTCPPacket, ssrc: u32) -> gboolean; pub fn gst_rtcp_packet_bye_add_ssrcs( @@ -610,6 +623,7 @@ extern "C" { reason: *const c_char, ) -> gboolean; #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_rtcp_packet_copy_profile_specific_ext( packet: *mut GstRTCPPacket, data: *mut *mut u8, @@ -628,12 +642,14 @@ extern "C" { pub fn gst_rtcp_packet_get_length(packet: *mut GstRTCPPacket) -> u16; pub fn gst_rtcp_packet_get_padding(packet: *mut GstRTCPPacket) -> gboolean; #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_rtcp_packet_get_profile_specific_ext( packet: *mut GstRTCPPacket, data: *mut *mut u8, len: *mut c_uint, ) -> gboolean; #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_rtcp_packet_get_profile_specific_ext_length(packet: *mut GstRTCPPacket) -> u16; pub fn gst_rtcp_packet_get_rb( packet: *mut GstRTCPPacket, @@ -705,12 +721,16 @@ extern "C" { octet_count: u32, ); #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_rtcp_packet_xr_first_rb(packet: *mut GstRTCPPacket) -> gboolean; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_rtcp_packet_xr_get_block_length(packet: *mut GstRTCPPacket) -> u16; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_rtcp_packet_xr_get_block_type(packet: *mut GstRTCPPacket) -> GstRTCPXRType; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_rtcp_packet_xr_get_dlrr_block( packet: *mut GstRTCPPacket, nth: c_uint, @@ -719,12 +739,14 @@ extern "C" { delay: *mut u32, ) -> gboolean; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_rtcp_packet_xr_get_prt_by_seq( packet: *mut GstRTCPPacket, seq: u16, receipt_time: *mut u32, ) -> gboolean; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_rtcp_packet_xr_get_prt_info( packet: *mut GstRTCPPacket, ssrc: *mut u32, @@ -733,6 +755,7 @@ extern "C" { end_seq: *mut u16, ) -> gboolean; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_rtcp_packet_xr_get_rle_info( packet: *mut GstRTCPPacket, ssrc: *mut u32, @@ -742,16 +765,20 @@ extern "C" { chunk_count: *mut u32, ) -> gboolean; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_rtcp_packet_xr_get_rle_nth_chunk( packet: *mut GstRTCPPacket, nth: c_uint, chunk: *mut u16, ) -> gboolean; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_rtcp_packet_xr_get_rrt(packet: *mut GstRTCPPacket, timestamp: *mut u64) -> gboolean; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_rtcp_packet_xr_get_ssrc(packet: *mut GstRTCPPacket) -> u32; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_rtcp_packet_xr_get_summary_info( packet: *mut GstRTCPPacket, ssrc: *mut u32, @@ -759,6 +786,7 @@ extern "C" { end_seq: *mut u16, ) -> gboolean; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_rtcp_packet_xr_get_summary_jitter( packet: *mut GstRTCPPacket, min_jitter: *mut u32, @@ -767,12 +795,14 @@ extern "C" { dev_jitter: *mut u32, ) -> gboolean; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_rtcp_packet_xr_get_summary_pkt( packet: *mut GstRTCPPacket, lost_packets: *mut u32, dup_packets: *mut u32, ) -> gboolean; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_rtcp_packet_xr_get_summary_ttl( packet: *mut GstRTCPPacket, is_ipv4: *mut gboolean, @@ -782,6 +812,7 @@ extern "C" { dev_ttl: *mut u8, ) -> gboolean; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_rtcp_packet_xr_get_voip_burst_metrics( packet: *mut GstRTCPPacket, burst_density: *mut u8, @@ -790,18 +821,21 @@ extern "C" { gap_duration: *mut u16, ) -> gboolean; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_rtcp_packet_xr_get_voip_configuration_params( packet: *mut GstRTCPPacket, gmin: *mut u8, rx_config: *mut u8, ) -> gboolean; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_rtcp_packet_xr_get_voip_delay_metrics( packet: *mut GstRTCPPacket, roundtrip_delay: *mut u16, end_system_delay: *mut u16, ) -> gboolean; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_rtcp_packet_xr_get_voip_jitter_buffer_params( packet: *mut GstRTCPPacket, jb_nominal: *mut u16, @@ -809,17 +843,20 @@ extern "C" { jb_abs_max: *mut u16, ) -> gboolean; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_rtcp_packet_xr_get_voip_metrics_ssrc( packet: *mut GstRTCPPacket, ssrc: *mut u32, ) -> gboolean; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_rtcp_packet_xr_get_voip_packet_metrics( packet: *mut GstRTCPPacket, loss_rate: *mut u8, discard_rate: *mut u8, ) -> gboolean; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_rtcp_packet_xr_get_voip_quality_metrics( packet: *mut GstRTCPPacket, r_factor: *mut u8, @@ -828,6 +865,7 @@ extern "C" { mos_cq: *mut u8, ) -> gboolean; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_rtcp_packet_xr_get_voip_signal_metrics( packet: *mut GstRTCPPacket, signal_level: *mut u8, @@ -836,6 +874,7 @@ extern "C" { gmin: *mut u8, ) -> gboolean; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_rtcp_packet_xr_next_rb(packet: *mut GstRTCPPacket) -> gboolean; //========================================================================= @@ -938,6 +977,7 @@ extern "C" { pub fn gst_rtp_buffer_default_clock_rate(payload_type: u8) -> u32; pub fn gst_rtp_buffer_ext_timestamp(exttimestamp: *mut u64, timestamp: u32) -> u64; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_rtp_buffer_get_extension_onebyte_header_from_bytes( bytes: *mut glib::GBytes, bit_pattern: u16, @@ -977,16 +1017,20 @@ extern "C" { // GstRTPSourceMeta //========================================================================= #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_rtp_source_meta_append_csrc( meta: *mut GstRTPSourceMeta, csrc: *const u32, csrc_count: c_uint, ) -> gboolean; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_rtp_source_meta_get_source_count(meta: *const GstRTPSourceMeta) -> c_uint; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_rtp_source_meta_set_ssrc(meta: *mut GstRTPSourceMeta, ssrc: *mut u32) -> gboolean; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_rtp_source_meta_get_info() -> *const gst::GstMetaInfo; //========================================================================= @@ -1032,6 +1076,7 @@ extern "C" { //========================================================================= pub fn gst_rtp_base_depayload_get_type() -> GType; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_rtp_base_depayload_is_source_info_enabled( depayload: *mut GstRTPBaseDepayload, ) -> gboolean; @@ -1044,6 +1089,7 @@ extern "C" { out_list: *mut gst::GstBufferList, ) -> gst::GstFlowReturn; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_rtp_base_depayload_set_source_info_enabled( depayload: *mut GstRTPBaseDepayload, enable: gboolean, @@ -1054,6 +1100,7 @@ extern "C" { //========================================================================= pub fn gst_rtp_base_payload_get_type() -> GType; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_rtp_base_payload_allocate_output_buffer( payload: *mut GstRTPBasePayload, payload_len: c_uint, @@ -1061,6 +1108,7 @@ extern "C" { csrc_count: u8, ) -> *mut gst::GstBuffer; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_rtp_base_payload_get_source_count( payload: *mut GstRTPBasePayload, buffer: *mut gst::GstBuffer, @@ -1071,6 +1119,7 @@ extern "C" { duration: gst::GstClockTime, ) -> gboolean; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_rtp_base_payload_is_source_info_enabled(payload: *mut GstRTPBasePayload) -> gboolean; pub fn gst_rtp_base_payload_push( @@ -1094,6 +1143,7 @@ extern "C" { ... ) -> gboolean; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_rtp_base_payload_set_source_info_enabled( payload: *mut GstRTPBasePayload, enable: gboolean, @@ -1103,6 +1153,7 @@ extern "C" { // Other functions //========================================================================= #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_buffer_add_rtp_source_meta( buffer: *mut gst::GstBuffer, ssrc: *const u32, @@ -1110,6 +1161,7 @@ extern "C" { csrc_count: c_uint, ) -> *mut GstRTPSourceMeta; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_buffer_get_rtp_source_meta(buffer: *mut gst::GstBuffer) -> *mut GstRTPSourceMeta; pub fn gst_rtcp_ntp_to_unix(ntptime: u64) -> u64; pub fn gst_rtcp_sdes_name_to_type(name: *const c_char) -> GstRTCPSDESType; @@ -1120,6 +1172,7 @@ extern "C" { pub fn gst_rtp_hdrext_set_ntp_56(data: gpointer, size: c_uint, ntptime: u64) -> gboolean; pub fn gst_rtp_hdrext_set_ntp_64(data: gpointer, size: c_uint, ntptime: u64) -> gboolean; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_rtp_source_meta_api_get_type() -> GType; } diff --git a/gstreamer-rtp/sys/tests/abi.rs b/gstreamer-rtp/sys/tests/abi.rs index 12f144842..b49bbcfdc 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 @ db37199) -// from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae9689) +// from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de) // DO NOT EDIT extern crate gstreamer_rtp_sys; diff --git a/gstreamer-rtp/sys/tests/constant.c b/gstreamer-rtp/sys/tests/constant.c index 7a1c810ac..3658ebe72 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 @ db37199) -// from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae9689) +// from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-rtp/sys/tests/layout.c b/gstreamer-rtp/sys/tests/layout.c index 291623e9a..b418a479d 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 @ db37199) -// from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae9689) +// from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-rtsp-server/src/auto/rtsp_auth.rs b/gstreamer-rtsp-server/src/auto/rtsp_auth.rs index 5a2537f10..478e1cc76 100644 --- a/gstreamer-rtsp-server/src/auto/rtsp_auth.rs +++ b/gstreamer-rtsp-server/src/auto/rtsp_auth.rs @@ -13,9 +13,11 @@ use glib::translate::*; use glib::GString; use glib_sys; #[cfg(any(feature = "v1_12", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] use gst_rtsp; use gst_rtsp_server_sys; #[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] use std; use std::boxed::Box as Box_; use std::mem::transmute; @@ -71,14 +73,17 @@ pub trait RTSPAuthExt: 'static { fn add_basic(&self, basic: &str, token: &RTSPToken); #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] fn add_digest(&self, user: &str, pass: &str, token: &RTSPToken); fn get_default_token(&self) -> Option; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn get_realm(&self) -> Option; #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] fn get_supported_methods(&self) -> gst_rtsp::RTSPAuthMethod; fn get_tls_authentication_mode(&self) -> gio::TlsAuthenticationMode; @@ -88,17 +93,21 @@ pub trait RTSPAuthExt: 'static { fn get_tls_database(&self) -> Option; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn parse_htdigest>(&self, path: P, token: &RTSPToken) -> bool; fn remove_basic(&self, basic: &str); #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] fn remove_digest(&self, user: &str); #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn set_realm(&self, realm: &str); #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] fn set_supported_methods(&self, methods: gst_rtsp::RTSPAuthMethod); fn set_tls_authentication_mode(&self, mode: gio::TlsAuthenticationMode); @@ -130,6 +139,7 @@ impl> RTSPAuthExt for O { } #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] fn add_digest(&self, user: &str, pass: &str, token: &RTSPToken) { unsafe { gst_rtsp_server_sys::gst_rtsp_auth_add_digest( @@ -150,6 +160,7 @@ impl> RTSPAuthExt for O { } #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn get_realm(&self) -> Option { unsafe { from_glib_full(gst_rtsp_server_sys::gst_rtsp_auth_get_realm( @@ -159,6 +170,7 @@ impl> RTSPAuthExt for O { } #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] fn get_supported_methods(&self) -> gst_rtsp::RTSPAuthMethod { unsafe { from_glib(gst_rtsp_server_sys::gst_rtsp_auth_get_supported_methods( @@ -194,6 +206,7 @@ impl> RTSPAuthExt for O { } #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn parse_htdigest>(&self, path: P, token: &RTSPToken) -> bool { unsafe { from_glib(gst_rtsp_server_sys::gst_rtsp_auth_parse_htdigest( @@ -214,6 +227,7 @@ impl> RTSPAuthExt for O { } #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] fn remove_digest(&self, user: &str) { unsafe { gst_rtsp_server_sys::gst_rtsp_auth_remove_digest( @@ -224,6 +238,7 @@ impl> RTSPAuthExt for O { } #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn set_realm(&self, realm: &str) { unsafe { gst_rtsp_server_sys::gst_rtsp_auth_set_realm( @@ -234,6 +249,7 @@ impl> RTSPAuthExt for O { } #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] fn set_supported_methods(&self, methods: gst_rtsp::RTSPAuthMethod) { unsafe { gst_rtsp_server_sys::gst_rtsp_auth_set_supported_methods( diff --git a/gstreamer-rtsp-server/src/auto/rtsp_client.rs b/gstreamer-rtsp-server/src/auto/rtsp_client.rs index 7d9e12abc..62779db5e 100644 --- a/gstreamer-rtsp-server/src/auto/rtsp_client.rs +++ b/gstreamer-rtsp-server/src/auto/rtsp_client.rs @@ -12,9 +12,11 @@ use glib::Value; use glib_sys; use gobject_sys; #[cfg(any(feature = "v1_12", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] use gst_rtsp; use gst_rtsp_server_sys; #[cfg(any(feature = "v1_12", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] use gst_rtsp_sys; use std::boxed::Box as Box_; use std::mem::transmute; @@ -25,6 +27,7 @@ use RTSPMountPoints; use RTSPSession; use RTSPSessionPool; #[cfg(any(feature = "v1_18", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] use RTSPStreamTransport; use RTSPThreadPool; @@ -62,6 +65,7 @@ pub trait RTSPClientExt: 'static { //fn get_connection(&self) -> /*Ignored*/Option; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn get_content_length_limit(&self) -> u32; fn get_mount_points(&self) -> Option; @@ -69,6 +73,7 @@ pub trait RTSPClientExt: 'static { fn get_session_pool(&self) -> Option; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn get_stream_transport(&self, channel: u8) -> Option; fn get_thread_pool(&self) -> Option; @@ -87,6 +92,7 @@ pub trait RTSPClientExt: 'static { //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")))] fn set_content_length_limit(&self, limit: u32); fn set_mount_points>(&self, mounts: Option<&P>); @@ -94,6 +100,7 @@ pub trait RTSPClientExt: 'static { //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")))] //fn set_send_messages_func(&self, func: /*Unimplemented*/Fn(&RTSPClient, /*Ignored*/gst_rtsp::RTSPMessage, u32, bool) -> bool, user_data: /*Unimplemented*/Option); fn set_session_pool>(&self, pool: Option<&P>); @@ -153,6 +160,7 @@ pub trait RTSPClientExt: 'static { ) -> SignalHandlerId; #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] fn connect_pre_announce_request< F: Fn(&Self, &RTSPContext) -> gst_rtsp::RTSPStatusCode + Send + Sync + 'static, >( @@ -161,6 +169,7 @@ pub trait RTSPClientExt: 'static { ) -> SignalHandlerId; #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] fn connect_pre_describe_request< F: Fn(&Self, &RTSPContext) -> gst_rtsp::RTSPStatusCode + Send + Sync + 'static, >( @@ -169,6 +178,7 @@ pub trait RTSPClientExt: 'static { ) -> SignalHandlerId; #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] fn connect_pre_get_parameter_request< F: Fn(&Self, &RTSPContext) -> gst_rtsp::RTSPStatusCode + Send + Sync + 'static, >( @@ -177,6 +187,7 @@ pub trait RTSPClientExt: 'static { ) -> SignalHandlerId; #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] fn connect_pre_options_request< F: Fn(&Self, &RTSPContext) -> gst_rtsp::RTSPStatusCode + Send + Sync + 'static, >( @@ -185,6 +196,7 @@ pub trait RTSPClientExt: 'static { ) -> SignalHandlerId; #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] fn connect_pre_pause_request< F: Fn(&Self, &RTSPContext) -> gst_rtsp::RTSPStatusCode + Send + Sync + 'static, >( @@ -193,6 +205,7 @@ pub trait RTSPClientExt: 'static { ) -> SignalHandlerId; #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] fn connect_pre_play_request< F: Fn(&Self, &RTSPContext) -> gst_rtsp::RTSPStatusCode + Send + Sync + 'static, >( @@ -201,6 +214,7 @@ pub trait RTSPClientExt: 'static { ) -> SignalHandlerId; #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] fn connect_pre_record_request< F: Fn(&Self, &RTSPContext) -> gst_rtsp::RTSPStatusCode + Send + Sync + 'static, >( @@ -209,6 +223,7 @@ pub trait RTSPClientExt: 'static { ) -> SignalHandlerId; #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] fn connect_pre_set_parameter_request< F: Fn(&Self, &RTSPContext) -> gst_rtsp::RTSPStatusCode + Send + Sync + 'static, >( @@ -217,6 +232,7 @@ pub trait RTSPClientExt: 'static { ) -> SignalHandlerId; #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] fn connect_pre_setup_request< F: Fn(&Self, &RTSPContext) -> gst_rtsp::RTSPStatusCode + Send + Sync + 'static, >( @@ -225,6 +241,7 @@ pub trait RTSPClientExt: 'static { ) -> SignalHandlerId; #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] fn connect_pre_teardown_request< F: Fn(&Self, &RTSPContext) -> gst_rtsp::RTSPStatusCode + Send + Sync + 'static, >( @@ -295,6 +312,7 @@ impl> RTSPClientExt for O { //} #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn get_content_length_limit(&self) -> u32 { unsafe { gst_rtsp_server_sys::gst_rtsp_client_get_content_length_limit( @@ -320,6 +338,7 @@ impl> RTSPClientExt for O { } #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn get_stream_transport(&self, channel: u8) -> Option { unsafe { from_glib_none(gst_rtsp_server_sys::gst_rtsp_client_get_stream_transport( @@ -402,6 +421,7 @@ impl> RTSPClientExt for O { //} #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn set_content_length_limit(&self, limit: u32) { unsafe { gst_rtsp_server_sys::gst_rtsp_client_set_content_length_limit( @@ -425,6 +445,7 @@ impl> RTSPClientExt for O { //} //#[cfg(any(feature = "v1_16", feature = "dox"))] + //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] //fn set_send_messages_func(&self, func: /*Unimplemented*/Fn(&RTSPClient, /*Ignored*/gst_rtsp::RTSPMessage, u32, bool) -> bool, user_data: /*Unimplemented*/Option) { // unsafe { TODO: call gst_rtsp_server_sys:gst_rtsp_client_set_send_messages_func() } //} @@ -789,6 +810,7 @@ impl> RTSPClientExt for O { } #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] fn connect_pre_announce_request< F: Fn(&Self, &RTSPContext) -> gst_rtsp::RTSPStatusCode + Send + Sync + 'static, >( @@ -827,6 +849,7 @@ impl> RTSPClientExt for O { } #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] fn connect_pre_describe_request< F: Fn(&Self, &RTSPContext) -> gst_rtsp::RTSPStatusCode + Send + Sync + 'static, >( @@ -865,6 +888,7 @@ impl> RTSPClientExt for O { } #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] fn connect_pre_get_parameter_request< F: Fn(&Self, &RTSPContext) -> gst_rtsp::RTSPStatusCode + Send + Sync + 'static, >( @@ -903,6 +927,7 @@ impl> RTSPClientExt for O { } #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] fn connect_pre_options_request< F: Fn(&Self, &RTSPContext) -> gst_rtsp::RTSPStatusCode + Send + Sync + 'static, >( @@ -941,6 +966,7 @@ impl> RTSPClientExt for O { } #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] fn connect_pre_pause_request< F: Fn(&Self, &RTSPContext) -> gst_rtsp::RTSPStatusCode + Send + Sync + 'static, >( @@ -979,6 +1005,7 @@ impl> RTSPClientExt for O { } #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] fn connect_pre_play_request< F: Fn(&Self, &RTSPContext) -> gst_rtsp::RTSPStatusCode + Send + Sync + 'static, >( @@ -1017,6 +1044,7 @@ impl> RTSPClientExt for O { } #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] fn connect_pre_record_request< F: Fn(&Self, &RTSPContext) -> gst_rtsp::RTSPStatusCode + Send + Sync + 'static, >( @@ -1055,6 +1083,7 @@ impl> RTSPClientExt for O { } #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] fn connect_pre_set_parameter_request< F: Fn(&Self, &RTSPContext) -> gst_rtsp::RTSPStatusCode + Send + Sync + 'static, >( @@ -1093,6 +1122,7 @@ impl> RTSPClientExt for O { } #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] fn connect_pre_setup_request< F: Fn(&Self, &RTSPContext) -> gst_rtsp::RTSPStatusCode + Send + Sync + 'static, >( @@ -1131,6 +1161,7 @@ impl> RTSPClientExt for O { } #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] fn connect_pre_teardown_request< F: Fn(&Self, &RTSPContext) -> gst_rtsp::RTSPStatusCode + Send + Sync + 'static, >( diff --git a/gstreamer-rtsp-server/src/auto/rtsp_media.rs b/gstreamer-rtsp-server/src/auto/rtsp_media.rs index 4c6d3ddbe..98f44a66b 100644 --- a/gstreamer-rtsp-server/src/auto/rtsp_media.rs +++ b/gstreamer-rtsp-server/src/auto/rtsp_media.rs @@ -19,6 +19,7 @@ use gst_rtsp_server_sys; use libc; use std::boxed::Box as Box_; #[cfg(any(feature = "v1_18", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] use std::mem; use std::mem::transmute; use RTSPAddressPool; @@ -58,6 +59,7 @@ pub trait RTSPMediaExt: 'static { fn collect_streams(&self); //#[cfg(any(feature = "v1_14", feature = "dox"))] + //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] //fn complete_pipeline(&self, transports: /*Ignored*/&[&gst_rtsp::RTSPTransport]) -> bool; fn create_stream, Q: IsA>( @@ -77,9 +79,11 @@ pub trait RTSPMediaExt: 'static { fn get_clock(&self) -> Option; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn get_do_retransmission(&self) -> bool; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn get_dscp_qos(&self) -> i32; fn get_element(&self) -> Option; @@ -87,6 +91,7 @@ pub trait RTSPMediaExt: 'static { fn get_latency(&self) -> u32; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn get_max_mcast_ttl(&self) -> u32; fn get_multicast_iface(&self) -> Option; @@ -102,9 +107,11 @@ pub trait RTSPMediaExt: 'static { 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")))] fn get_rate_control(&self) -> bool; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn get_rates(&self) -> Option<(f64, f64)>; fn get_retransmission_time(&self) -> gst::ClockTime; @@ -122,14 +129,17 @@ pub trait RTSPMediaExt: 'static { //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")))] fn has_completed_sender(&self) -> bool; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn is_bind_mcast_address(&self) -> bool; fn is_eos_shutdown(&self) -> bool; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn is_receive_only(&self) -> bool; fn is_reusable(&self) -> bool; @@ -141,6 +151,7 @@ pub trait RTSPMediaExt: 'static { fn is_time_provider(&self) -> bool; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn lock(&self); fn n_streams(&self) -> u32; @@ -150,17 +161,21 @@ pub trait RTSPMediaExt: 'static { //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")))] //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")))] //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")))] //fn seekable(&self) -> /*Ignored*/gst::ClockTimeDiff; fn set_address_pool>(&self, pool: Option<&P>); #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn set_bind_mcast_address(&self, bind_mcast_addr: bool); fn set_buffer_size(&self, size: u32); @@ -168,9 +183,11 @@ pub trait RTSPMediaExt: 'static { fn set_clock>(&self, clock: Option<&P>); #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn set_do_retransmission(&self, do_retransmission: bool); #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn set_dscp_qos(&self, dscp_qos: i32); fn set_eos_shutdown(&self, eos_shutdown: bool); @@ -178,6 +195,7 @@ pub trait RTSPMediaExt: 'static { fn set_latency(&self, latency: u32); #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn set_max_mcast_ttl(&self, ttl: u32) -> bool; fn set_multicast_iface(&self, multicast_iface: Option<&str>); @@ -193,6 +211,7 @@ pub trait RTSPMediaExt: 'static { fn set_publish_clock_mode(&self, mode: RTSPPublishClockMode); #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn set_rate_control(&self, enabled: bool); fn set_retransmission_time(&self, time: gst::ClockTime); @@ -214,6 +233,7 @@ pub trait RTSPMediaExt: 'static { fn suspend(&self) -> Result<(), glib::error::BoolError>; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn unlock(&self); fn unprepare(&self) -> Result<(), glib::error::BoolError>; @@ -350,6 +370,7 @@ impl> RTSPMediaExt for O { } //#[cfg(any(feature = "v1_14", feature = "dox"))] + //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] //fn complete_pipeline(&self, transports: /*Ignored*/&[&gst_rtsp::RTSPTransport]) -> bool { // unsafe { TODO: call gst_rtsp_server_sys:gst_rtsp_media_complete_pipeline() } //} @@ -408,6 +429,7 @@ impl> RTSPMediaExt for O { } #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn get_do_retransmission(&self) -> bool { unsafe { from_glib(gst_rtsp_server_sys::gst_rtsp_media_get_do_retransmission( @@ -417,6 +439,7 @@ impl> RTSPMediaExt for O { } #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn get_dscp_qos(&self) -> i32 { unsafe { gst_rtsp_server_sys::gst_rtsp_media_get_dscp_qos(self.as_ref().to_glib_none().0) } } @@ -434,6 +457,7 @@ impl> RTSPMediaExt for O { } #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn get_max_mcast_ttl(&self) -> u32 { unsafe { gst_rtsp_server_sys::gst_rtsp_media_get_max_mcast_ttl(self.as_ref().to_glib_none().0) @@ -487,6 +511,7 @@ impl> RTSPMediaExt for O { } #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn get_rate_control(&self) -> bool { unsafe { from_glib(gst_rtsp_server_sys::gst_rtsp_media_get_rate_control( @@ -496,6 +521,7 @@ impl> RTSPMediaExt for O { } #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn get_rates(&self) -> Option<(f64, f64)> { unsafe { let mut rate = mem::MaybeUninit::uninit(); @@ -565,6 +591,7 @@ impl> RTSPMediaExt for O { //} #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn has_completed_sender(&self) -> bool { unsafe { from_glib(gst_rtsp_server_sys::gst_rtsp_media_has_completed_sender( @@ -574,6 +601,7 @@ impl> RTSPMediaExt for O { } #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn is_bind_mcast_address(&self) -> bool { unsafe { from_glib(gst_rtsp_server_sys::gst_rtsp_media_is_bind_mcast_address( @@ -591,6 +619,7 @@ impl> RTSPMediaExt for O { } #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn is_receive_only(&self) -> bool { unsafe { from_glib(gst_rtsp_server_sys::gst_rtsp_media_is_receive_only( @@ -632,6 +661,7 @@ impl> RTSPMediaExt for O { } #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn lock(&self) { unsafe { gst_rtsp_server_sys::gst_rtsp_media_lock(self.as_ref().to_glib_none().0); @@ -659,16 +689,19 @@ impl> RTSPMediaExt for O { //} //#[cfg(any(feature = "v1_18", feature = "dox"))] + //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] //fn seek_full(&self, range: /*Ignored*/&mut gst_rtsp::RTSPTimeRange, flags: /*Ignored*/gst::SeekFlags) -> bool { // unsafe { TODO: call gst_rtsp_server_sys:gst_rtsp_media_seek_full() } //} //#[cfg(any(feature = "v1_18", feature = "dox"))] + //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] //fn seek_trickmode(&self, range: /*Ignored*/&mut gst_rtsp::RTSPTimeRange, flags: /*Ignored*/gst::SeekFlags, rate: f64, trickmode_interval: gst::ClockTime) -> bool { // unsafe { TODO: call gst_rtsp_server_sys:gst_rtsp_media_seek_trickmode() } //} //#[cfg(any(feature = "v1_14", feature = "dox"))] + //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] //fn seekable(&self) -> /*Ignored*/gst::ClockTimeDiff { // unsafe { TODO: call gst_rtsp_server_sys:gst_rtsp_media_seekable() } //} @@ -683,6 +716,7 @@ impl> RTSPMediaExt for O { } #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn set_bind_mcast_address(&self, bind_mcast_addr: bool) { unsafe { gst_rtsp_server_sys::gst_rtsp_media_set_bind_mcast_address( @@ -711,6 +745,7 @@ impl> RTSPMediaExt for O { } #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn set_do_retransmission(&self, do_retransmission: bool) { unsafe { gst_rtsp_server_sys::gst_rtsp_media_set_do_retransmission( @@ -721,6 +756,7 @@ impl> RTSPMediaExt for O { } #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn set_dscp_qos(&self, dscp_qos: i32) { unsafe { gst_rtsp_server_sys::gst_rtsp_media_set_dscp_qos( @@ -749,6 +785,7 @@ impl> RTSPMediaExt for O { } #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn set_max_mcast_ttl(&self, ttl: u32) -> bool { unsafe { from_glib(gst_rtsp_server_sys::gst_rtsp_media_set_max_mcast_ttl( @@ -808,6 +845,7 @@ impl> RTSPMediaExt for O { } #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn set_rate_control(&self, enabled: bool) { unsafe { gst_rtsp_server_sys::gst_rtsp_media_set_rate_control( @@ -895,6 +933,7 @@ impl> RTSPMediaExt for O { } #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn unlock(&self) { unsafe { gst_rtsp_server_sys::gst_rtsp_media_unlock(self.as_ref().to_glib_none().0); diff --git a/gstreamer-rtsp-server/src/auto/rtsp_media_factory.rs b/gstreamer-rtsp-server/src/auto/rtsp_media_factory.rs index 232fe92e1..75e4e4659 100644 --- a/gstreamer-rtsp-server/src/auto/rtsp_media_factory.rs +++ b/gstreamer-rtsp-server/src/auto/rtsp_media_factory.rs @@ -64,9 +64,11 @@ pub trait RTSPMediaFactoryExt: 'static { fn get_clock(&self) -> Option; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn get_do_retransmission(&self) -> bool; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn get_dscp_qos(&self) -> i32; fn get_latency(&self) -> u32; @@ -74,6 +76,7 @@ pub trait RTSPMediaFactoryExt: 'static { fn get_launch(&self) -> Option; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn get_max_mcast_ttl(&self) -> u32; fn get_media_gtype(&self) -> glib::types::Type; @@ -95,6 +98,7 @@ pub trait RTSPMediaFactoryExt: 'static { fn get_transport_mode(&self) -> RTSPTransportMode; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn is_bind_mcast_address(&self) -> bool; fn is_eos_shutdown(&self) -> bool; @@ -106,6 +110,7 @@ pub trait RTSPMediaFactoryExt: 'static { fn set_address_pool>(&self, pool: Option<&P>); #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn set_bind_mcast_address(&self, bind_mcast_addr: bool); fn set_buffer_size(&self, size: u32); @@ -113,9 +118,11 @@ pub trait RTSPMediaFactoryExt: 'static { fn set_clock>(&self, clock: Option<&P>); #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn set_do_retransmission(&self, do_retransmission: bool); #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn set_dscp_qos(&self, dscp_qos: i32); fn set_eos_shutdown(&self, eos_shutdown: bool); @@ -125,6 +132,7 @@ pub trait RTSPMediaFactoryExt: 'static { fn set_launch(&self, launch: &str); #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn set_max_mcast_ttl(&self, ttl: u32) -> bool; fn set_media_gtype(&self, media_gtype: glib::types::Type); @@ -300,6 +308,7 @@ impl> RTSPMediaFactoryExt for O { } #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn get_do_retransmission(&self) -> bool { unsafe { from_glib( @@ -311,6 +320,7 @@ impl> RTSPMediaFactoryExt for O { } #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn get_dscp_qos(&self) -> i32 { unsafe { gst_rtsp_server_sys::gst_rtsp_media_factory_get_dscp_qos(self.as_ref().to_glib_none().0) @@ -332,6 +342,7 @@ impl> RTSPMediaFactoryExt for O { } #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn get_max_mcast_ttl(&self) -> u32 { unsafe { gst_rtsp_server_sys::gst_rtsp_media_factory_get_max_mcast_ttl( @@ -419,6 +430,7 @@ impl> RTSPMediaFactoryExt for O { } #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn is_bind_mcast_address(&self) -> bool { unsafe { from_glib( @@ -465,6 +477,7 @@ impl> RTSPMediaFactoryExt for O { } #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn set_bind_mcast_address(&self, bind_mcast_addr: bool) { unsafe { gst_rtsp_server_sys::gst_rtsp_media_factory_set_bind_mcast_address( @@ -493,6 +506,7 @@ impl> RTSPMediaFactoryExt for O { } #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn set_do_retransmission(&self, do_retransmission: bool) { unsafe { gst_rtsp_server_sys::gst_rtsp_media_factory_set_do_retransmission( @@ -503,6 +517,7 @@ impl> RTSPMediaFactoryExt for O { } #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn set_dscp_qos(&self, dscp_qos: i32) { unsafe { gst_rtsp_server_sys::gst_rtsp_media_factory_set_dscp_qos( @@ -540,6 +555,7 @@ impl> RTSPMediaFactoryExt for O { } #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn set_max_mcast_ttl(&self, ttl: u32) -> bool { unsafe { from_glib( diff --git a/gstreamer-rtsp-server/src/auto/rtsp_server.rs b/gstreamer-rtsp-server/src/auto/rtsp_server.rs index fab851f7c..ab2100379 100644 --- a/gstreamer-rtsp-server/src/auto/rtsp_server.rs +++ b/gstreamer-rtsp-server/src/auto/rtsp_server.rs @@ -94,6 +94,7 @@ pub trait RTSPServerExt: 'static { fn get_bound_port(&self) -> i32; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn get_content_length_limit(&self) -> u32; fn get_mount_points(&self) -> Option; @@ -111,6 +112,7 @@ pub trait RTSPServerExt: 'static { fn set_backlog(&self, backlog: i32); #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn set_content_length_limit(&self, limit: u32); fn set_mount_points>(&self, mounts: Option<&P>); @@ -283,6 +285,7 @@ impl> RTSPServerExt for O { } #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn get_content_length_limit(&self) -> u32 { unsafe { gst_rtsp_server_sys::gst_rtsp_server_get_content_length_limit( @@ -351,6 +354,7 @@ impl> RTSPServerExt for O { } #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn set_content_length_limit(&self, limit: u32) { unsafe { gst_rtsp_server_sys::gst_rtsp_server_set_content_length_limit( diff --git a/gstreamer-rtsp-server/src/auto/rtsp_session_media.rs b/gstreamer-rtsp-server/src/auto/rtsp_session_media.rs index e5735a130..0b1684351 100644 --- a/gstreamer-rtsp-server/src/auto/rtsp_session_media.rs +++ b/gstreamer-rtsp-server/src/auto/rtsp_session_media.rs @@ -51,6 +51,7 @@ pub trait RTSPSessionMediaExt: 'static { fn get_transport(&self, idx: u32) -> Option; #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] fn get_transports(&self) -> Vec; fn matches(&self, path: &str) -> Option; @@ -105,6 +106,7 @@ impl> RTSPSessionMediaExt for O { } #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] fn get_transports(&self) -> Vec { unsafe { FromGlibPtrContainer::from_glib_full( diff --git a/gstreamer-rtsp-server/src/auto/rtsp_stream.rs b/gstreamer-rtsp-server/src/auto/rtsp_stream.rs index e91173620..e6345e948 100644 --- a/gstreamer-rtsp-server/src/auto/rtsp_stream.rs +++ b/gstreamer-rtsp-server/src/auto/rtsp_stream.rs @@ -56,6 +56,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")))] fn add_multicast_client_address( &self, destination: &str, @@ -72,6 +73,7 @@ pub trait RTSPStreamExt: 'static { //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")))] //fn complete_stream(&self, transport: /*Ignored*/&gst_rtsp::RTSPTransport) -> bool; fn get_address_pool(&self) -> Option; @@ -91,6 +93,7 @@ pub trait RTSPStreamExt: 'static { fn get_joined_bin(&self) -> Option; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn get_max_mcast_ttl(&self) -> u32; fn get_mtu(&self) -> u32; @@ -98,6 +101,7 @@ pub trait RTSPStreamExt: 'static { 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")))] fn get_multicast_client_addresses(&self) -> Option; fn get_multicast_iface(&self) -> Option; @@ -111,9 +115,11 @@ pub trait RTSPStreamExt: 'static { fn get_publish_clock_mode(&self) -> RTSPPublishClockMode; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn get_rate_control(&self) -> bool; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn get_rates(&self) -> Option<(f64, f64)>; fn get_retransmission_pt(&self) -> u32; @@ -121,6 +127,7 @@ pub trait RTSPStreamExt: 'static { fn get_retransmission_time(&self) -> gst::ClockTime; #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] fn get_rtcp_multicast_socket(&self, family: gio::SocketFamily) -> Option; fn get_rtcp_socket(&self, family: gio::SocketFamily) -> Option; @@ -146,17 +153,21 @@ pub trait RTSPStreamExt: 'static { fn get_ulpfec_enabled(&self) -> bool; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn get_ulpfec_percentage(&self) -> u32; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn get_ulpfec_pt(&self) -> u32; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn handle_keymgmt(&self, keymgmt: &str) -> bool; fn has_control(&self, control: Option<&str>) -> bool; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn is_bind_mcast_address(&self) -> bool; fn is_blocking(&self) -> bool; @@ -164,12 +175,15 @@ pub trait RTSPStreamExt: 'static { fn is_client_side(&self) -> bool; #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] fn is_complete(&self) -> bool; #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] fn is_receiver(&self) -> bool; #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] fn is_sender(&self) -> bool; //fn is_transport_supported(&self, transport: /*Ignored*/&mut gst_rtsp::RTSPTransport) -> bool; @@ -193,11 +207,13 @@ pub trait RTSPStreamExt: 'static { ) -> Result<(), glib::error::BoolError>; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn request_aux_receiver(&self, sessid: u32) -> Option; fn request_aux_sender(&self, sessid: u32) -> Option; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn request_ulpfec_decoder>( &self, rtpbin: &P, @@ -205,6 +221,7 @@ pub trait RTSPStreamExt: 'static { ) -> Option; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn request_ulpfec_encoder(&self, sessid: u32) -> Option; fn reserve_address( @@ -216,11 +233,13 @@ pub trait RTSPStreamExt: 'static { ) -> Option; #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] fn seekable(&self) -> bool; fn set_address_pool>(&self, pool: Option<&P>); #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn set_bind_mcast_address(&self, bind_mcast_addr: bool); fn set_blocked(&self, blocked: bool) -> Result<(), glib::error::BoolError>; @@ -234,6 +253,7 @@ pub trait RTSPStreamExt: 'static { fn set_dscp_qos(&self, dscp_qos: i32); #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn set_max_mcast_ttl(&self, ttl: u32) -> bool; fn set_mtu(&self, mtu: u32); @@ -249,6 +269,7 @@ pub trait RTSPStreamExt: 'static { fn set_publish_clock_mode(&self, mode: RTSPPublishClockMode); #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn set_rate_control(&self, enabled: bool); fn set_retransmission_pt(&self, rtx_pt: u32); @@ -258,9 +279,11 @@ pub trait RTSPStreamExt: 'static { fn set_seqnum_offset(&self, seqnum: u16); #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn set_ulpfec_percentage(&self, percentage: u32); #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn set_ulpfec_pt(&self, pt: u32); fn transport_filter( @@ -277,6 +300,7 @@ pub trait RTSPStreamExt: 'static { ) -> Result<(), glib::error::BoolError>; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn verify_mcast_ttl(&self, ttl: u32) -> bool; fn connect_new_rtcp_encoder( @@ -312,6 +336,7 @@ pub trait RTSPStreamExt: 'static { impl> RTSPStreamExt for O { #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn add_multicast_client_address( &self, destination: &str, @@ -352,6 +377,7 @@ impl> RTSPStreamExt for O { //} //#[cfg(any(feature = "v1_14", feature = "dox"))] + //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] //fn complete_stream(&self, transport: /*Ignored*/&gst_rtsp::RTSPTransport) -> bool { // unsafe { TODO: call gst_rtsp_server_sys:gst_rtsp_stream_complete_stream() } //} @@ -409,6 +435,7 @@ impl> RTSPStreamExt for O { } #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn get_max_mcast_ttl(&self) -> u32 { unsafe { gst_rtsp_server_sys::gst_rtsp_stream_get_max_mcast_ttl(self.as_ref().to_glib_none().0) @@ -429,6 +456,7 @@ impl> RTSPStreamExt for O { } #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn get_multicast_client_addresses(&self) -> Option { unsafe { from_glib_full( @@ -476,6 +504,7 @@ impl> RTSPStreamExt for O { } #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn get_rate_control(&self) -> bool { unsafe { from_glib(gst_rtsp_server_sys::gst_rtsp_stream_get_rate_control( @@ -485,6 +514,7 @@ impl> RTSPStreamExt for O { } #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn get_rates(&self) -> Option<(f64, f64)> { unsafe { let mut rate = mem::MaybeUninit::uninit(); @@ -523,6 +553,7 @@ impl> RTSPStreamExt for O { } #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] fn get_rtcp_multicast_socket(&self, family: gio::SocketFamily) -> Option { unsafe { from_glib_full( @@ -645,6 +676,7 @@ impl> RTSPStreamExt for O { } #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn get_ulpfec_percentage(&self) -> u32 { unsafe { gst_rtsp_server_sys::gst_rtsp_stream_get_ulpfec_percentage( @@ -654,6 +686,7 @@ impl> RTSPStreamExt for O { } #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn get_ulpfec_pt(&self) -> u32 { unsafe { gst_rtsp_server_sys::gst_rtsp_stream_get_ulpfec_pt(self.as_ref().to_glib_none().0) @@ -661,6 +694,7 @@ impl> RTSPStreamExt for O { } #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn handle_keymgmt(&self, keymgmt: &str) -> bool { unsafe { from_glib(gst_rtsp_server_sys::gst_rtsp_stream_handle_keymgmt( @@ -680,6 +714,7 @@ impl> RTSPStreamExt for O { } #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn is_bind_mcast_address(&self) -> bool { unsafe { from_glib(gst_rtsp_server_sys::gst_rtsp_stream_is_bind_mcast_address( @@ -705,6 +740,7 @@ impl> RTSPStreamExt for O { } #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] fn is_complete(&self) -> bool { unsafe { from_glib(gst_rtsp_server_sys::gst_rtsp_stream_is_complete( @@ -714,6 +750,7 @@ impl> RTSPStreamExt for O { } #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] fn is_receiver(&self) -> bool { unsafe { from_glib(gst_rtsp_server_sys::gst_rtsp_stream_is_receiver( @@ -723,6 +760,7 @@ impl> RTSPStreamExt for O { } #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] fn is_sender(&self) -> bool { unsafe { from_glib(gst_rtsp_server_sys::gst_rtsp_stream_is_sender( @@ -787,6 +825,7 @@ impl> RTSPStreamExt for O { } #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn request_aux_receiver(&self, sessid: u32) -> Option { unsafe { from_glib_full(gst_rtsp_server_sys::gst_rtsp_stream_request_aux_receiver( @@ -806,6 +845,7 @@ impl> RTSPStreamExt for O { } #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn request_ulpfec_decoder>( &self, rtpbin: &P, @@ -821,6 +861,7 @@ impl> RTSPStreamExt for O { } #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn request_ulpfec_encoder(&self, sessid: u32) -> Option { unsafe { from_glib_full(gst_rtsp_server_sys::gst_rtsp_stream_request_ulpfec_encoder( @@ -849,6 +890,7 @@ impl> RTSPStreamExt for O { } #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] fn seekable(&self) -> bool { unsafe { from_glib(gst_rtsp_server_sys::gst_rtsp_stream_seekable( @@ -867,6 +909,7 @@ impl> RTSPStreamExt for O { } #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn set_bind_mcast_address(&self, bind_mcast_addr: bool) { unsafe { gst_rtsp_server_sys::gst_rtsp_stream_set_bind_mcast_address( @@ -925,6 +968,7 @@ impl> RTSPStreamExt for O { } #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn set_max_mcast_ttl(&self, ttl: u32) -> bool { unsafe { from_glib(gst_rtsp_server_sys::gst_rtsp_stream_set_max_mcast_ttl( @@ -987,6 +1031,7 @@ impl> RTSPStreamExt for O { } #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn set_rate_control(&self, enabled: bool) { unsafe { gst_rtsp_server_sys::gst_rtsp_stream_set_rate_control( @@ -1024,6 +1069,7 @@ impl> RTSPStreamExt for O { } #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn set_ulpfec_percentage(&self, percentage: u32) { unsafe { gst_rtsp_server_sys::gst_rtsp_stream_set_ulpfec_percentage( @@ -1034,6 +1080,7 @@ impl> RTSPStreamExt for O { } #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn set_ulpfec_pt(&self, pt: u32) { unsafe { gst_rtsp_server_sys::gst_rtsp_stream_set_ulpfec_pt(self.as_ref().to_glib_none().0, pt); @@ -1113,6 +1160,7 @@ impl> RTSPStreamExt for O { } #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn verify_mcast_ttl(&self, ttl: u32) -> bool { unsafe { from_glib(gst_rtsp_server_sys::gst_rtsp_stream_verify_mcast_ttl( diff --git a/gstreamer-rtsp-server/src/auto/rtsp_stream_transport.rs b/gstreamer-rtsp-server/src/auto/rtsp_stream_transport.rs index cc71ddf32..f8a18ffd3 100644 --- a/gstreamer-rtsp-server/src/auto/rtsp_stream_transport.rs +++ b/gstreamer-rtsp-server/src/auto/rtsp_stream_transport.rs @@ -42,16 +42,19 @@ pub trait RTSPStreamTransportExt: 'static { fn keep_alive(&self); #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn message_sent(&self); 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")))] //fn send_rtcp_list(&self, buffer_list: /*Ignored*/&gst::BufferList) -> bool; 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")))] //fn send_rtp_list(&self, buffer_list: /*Ignored*/&gst::BufferList) -> bool; fn set_active(&self, active: bool) -> Result<(), glib::error::BoolError>; @@ -61,11 +64,13 @@ pub trait RTSPStreamTransportExt: 'static { fn set_keepalive(&self, keep_alive: P); //#[cfg(any(feature = "v1_16", feature = "dox"))] + //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] //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); fn set_message_sent(&self, message_sent: P); #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn set_message_sent_full(&self, message_sent: P); fn set_timed_out(&self, timedout: bool); @@ -122,6 +127,7 @@ impl> RTSPStreamTransportExt for O { } #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn message_sent(&self) { unsafe { gst_rtsp_server_sys::gst_rtsp_stream_transport_message_sent( @@ -143,6 +149,7 @@ impl> RTSPStreamTransportExt for O { } //#[cfg(any(feature = "v1_16", feature = "dox"))] + //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] //fn send_rtcp_list(&self, buffer_list: /*Ignored*/&gst::BufferList) -> bool { // unsafe { TODO: call gst_rtsp_server_sys:gst_rtsp_stream_transport_send_rtcp_list() } //} @@ -160,6 +167,7 @@ impl> RTSPStreamTransportExt for O { } //#[cfg(any(feature = "v1_16", feature = "dox"))] + //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] //fn send_rtp_list(&self, buffer_list: /*Ignored*/&gst::BufferList) -> bool { // unsafe { TODO: call gst_rtsp_server_sys:gst_rtsp_stream_transport_send_rtp_list() } //} @@ -203,6 +211,7 @@ impl> RTSPStreamTransportExt for O { } //#[cfg(any(feature = "v1_16", feature = "dox"))] + //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] //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) { // unsafe { TODO: call gst_rtsp_server_sys:gst_rtsp_stream_transport_set_list_callbacks() } //} @@ -230,6 +239,7 @@ impl> RTSPStreamTransportExt for O { } #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn set_message_sent_full(&self, message_sent: P) { let message_sent_data: Box_

= Box_::new(message_sent); unsafe extern "C" fn message_sent_func( diff --git a/gstreamer-rtsp-server/src/auto/versions.txt b/gstreamer-rtsp-server/src/auto/versions.txt index 03f3faacf..df0f8cdd5 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 @ db37199) -from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e) +Generated by gir (https://github.com/gtk-rs/gir @ 1ae9689) +from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de) diff --git a/gstreamer-rtsp-server/sys/build.rs b/gstreamer-rtsp-server/sys/build.rs index 93a1b219b..eadccf000 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 @ db37199) -// from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae9689) +// from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de) // 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 328796691..c76a17827 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 @ db37199) -// from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae9689) +// from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de) // DO NOT EDIT #![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)] @@ -8,6 +8,7 @@ clippy::type_complexity, clippy::unreadable_literal )] +#![cfg_attr(feature = "dox", feature(doc_cfg))] extern crate gio_sys as gio; extern crate glib_sys as glib; @@ -1308,6 +1309,7 @@ extern "C" { pub fn gst_rtsp_permissions_get_type() -> GType; pub fn gst_rtsp_permissions_new() -> *mut GstRTSPPermissions; #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_rtsp_permissions_add_permission_for_role( permissions: *mut GstRTSPPermissions, role: *const c_char, @@ -1321,11 +1323,13 @@ extern "C" { ... ); #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_rtsp_permissions_add_role_empty( permissions: *mut GstRTSPPermissions, role: *const c_char, ); #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_rtsp_permissions_add_role_from_structure( permissions: *mut GstRTSPPermissions, structure: *mut gst::GstStructure, @@ -1367,12 +1371,14 @@ extern "C" { pub fn gst_rtsp_token_get_structure(token: *mut GstRTSPToken) -> *const gst::GstStructure; pub fn gst_rtsp_token_is_allowed(token: *mut GstRTSPToken, field: *const c_char) -> gboolean; #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_rtsp_token_set_bool( token: *mut GstRTSPToken, field: *const c_char, bool_value: gboolean, ); #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_rtsp_token_set_string( token: *mut GstRTSPToken, field: *const c_char, @@ -1423,6 +1429,7 @@ extern "C" { token: *mut GstRTSPToken, ); #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] pub fn gst_rtsp_auth_add_digest( auth: *mut GstRTSPAuth, user: *const c_char, @@ -1431,8 +1438,10 @@ extern "C" { ); pub fn gst_rtsp_auth_get_default_token(auth: *mut GstRTSPAuth) -> *mut GstRTSPToken; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_rtsp_auth_get_realm(auth: *mut GstRTSPAuth) -> *mut c_char; #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] pub fn gst_rtsp_auth_get_supported_methods( auth: *mut GstRTSPAuth, ) -> gst_rtsp::GstRTSPAuthMethod; @@ -1442,6 +1451,7 @@ extern "C" { pub fn gst_rtsp_auth_get_tls_certificate(auth: *mut GstRTSPAuth) -> *mut gio::GTlsCertificate; pub fn gst_rtsp_auth_get_tls_database(auth: *mut GstRTSPAuth) -> *mut gio::GTlsDatabase; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_rtsp_auth_parse_htdigest( auth: *mut GstRTSPAuth, path: *const c_char, @@ -1449,11 +1459,14 @@ extern "C" { ) -> gboolean; pub fn gst_rtsp_auth_remove_basic(auth: *mut GstRTSPAuth, basic: *const c_char); #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] pub fn gst_rtsp_auth_remove_digest(auth: *mut GstRTSPAuth, user: *const c_char); pub fn gst_rtsp_auth_set_default_token(auth: *mut GstRTSPAuth, token: *mut GstRTSPToken); #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_rtsp_auth_set_realm(auth: *mut GstRTSPAuth, realm: *const c_char); #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] pub fn gst_rtsp_auth_set_supported_methods( auth: *mut GstRTSPAuth, methods: gst_rtsp::GstRTSPAuthMethod, @@ -1483,10 +1496,12 @@ extern "C" { client: *mut GstRTSPClient, ) -> *mut gst_rtsp::GstRTSPConnection; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_rtsp_client_get_content_length_limit(client: *mut GstRTSPClient) -> c_uint; pub fn gst_rtsp_client_get_mount_points(client: *mut GstRTSPClient) -> *mut GstRTSPMountPoints; pub fn gst_rtsp_client_get_session_pool(client: *mut GstRTSPClient) -> *mut GstRTSPSessionPool; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_rtsp_client_get_stream_transport( client: *mut GstRTSPClient, channel: u8, @@ -1512,6 +1527,7 @@ extern "C" { conn: *mut gst_rtsp::GstRTSPConnection, ) -> gboolean; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_rtsp_client_set_content_length_limit(client: *mut GstRTSPClient, limit: c_uint); pub fn gst_rtsp_client_set_mount_points( client: *mut GstRTSPClient, @@ -1524,6 +1540,7 @@ extern "C" { notify: glib::GDestroyNotify, ); #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_rtsp_client_set_send_messages_func( client: *mut GstRTSPClient, func: GstRTSPClientSendMessagesFunc, @@ -1546,6 +1563,7 @@ extern "C" { pub fn gst_rtsp_media_new(element: *mut gst::GstElement) -> *mut GstRTSPMedia; pub fn gst_rtsp_media_collect_streams(media: *mut GstRTSPMedia); #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_rtsp_media_complete_pipeline( media: *mut GstRTSPMedia, transports: *mut glib::GPtrArray, @@ -1564,12 +1582,15 @@ extern "C" { pub fn gst_rtsp_media_get_buffer_size(media: *mut GstRTSPMedia) -> c_uint; pub fn gst_rtsp_media_get_clock(media: *mut GstRTSPMedia) -> *mut gst::GstClock; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_rtsp_media_get_do_retransmission(media: *mut GstRTSPMedia) -> gboolean; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_rtsp_media_get_dscp_qos(media: *mut GstRTSPMedia) -> c_int; pub fn gst_rtsp_media_get_element(media: *mut GstRTSPMedia) -> *mut gst::GstElement; pub fn gst_rtsp_media_get_latency(media: *mut GstRTSPMedia) -> c_uint; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_rtsp_media_get_max_mcast_ttl(media: *mut GstRTSPMedia) -> c_uint; pub fn gst_rtsp_media_get_multicast_iface(media: *mut GstRTSPMedia) -> *mut c_char; pub fn gst_rtsp_media_get_permissions(media: *mut GstRTSPMedia) -> *mut GstRTSPPermissions; @@ -1584,8 +1605,10 @@ extern "C" { unit: gst_rtsp::GstRTSPRangeUnit, ) -> *mut c_char; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_rtsp_media_get_rate_control(media: *mut GstRTSPMedia) -> gboolean; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_rtsp_media_get_rates( media: *mut GstRTSPMedia, rate: *mut c_double, @@ -1606,17 +1629,21 @@ extern "C" { sdp: *mut gst_sdp::GstSDPMessage, ) -> gboolean; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_rtsp_media_has_completed_sender(media: *mut GstRTSPMedia) -> gboolean; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_rtsp_media_is_bind_mcast_address(media: *mut GstRTSPMedia) -> gboolean; pub fn gst_rtsp_media_is_eos_shutdown(media: *mut GstRTSPMedia) -> gboolean; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_rtsp_media_is_receive_only(media: *mut GstRTSPMedia) -> gboolean; pub fn gst_rtsp_media_is_reusable(media: *mut GstRTSPMedia) -> gboolean; pub fn gst_rtsp_media_is_shared(media: *mut GstRTSPMedia) -> gboolean; pub fn gst_rtsp_media_is_stop_on_disconnect(media: *mut GstRTSPMedia) -> gboolean; pub fn gst_rtsp_media_is_time_provider(media: *mut GstRTSPMedia) -> gboolean; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_rtsp_media_lock(media: *mut GstRTSPMedia); pub fn gst_rtsp_media_n_streams(media: *mut GstRTSPMedia) -> c_uint; pub fn gst_rtsp_media_prepare(media: *mut GstRTSPMedia, thread: *mut GstRTSPThread) @@ -1626,12 +1653,14 @@ extern "C" { range: *mut gst_rtsp::GstRTSPTimeRange, ) -> gboolean; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_rtsp_media_seek_full( media: *mut GstRTSPMedia, range: *mut gst_rtsp::GstRTSPTimeRange, flags: gst::GstSeekFlags, ) -> gboolean; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_rtsp_media_seek_trickmode( media: *mut GstRTSPMedia, range: *mut gst_rtsp::GstRTSPTimeRange, @@ -1640,9 +1669,11 @@ extern "C" { trickmode_interval: gst::GstClockTime, ) -> gboolean; #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_rtsp_media_seekable(media: *mut GstRTSPMedia) -> gst::GstClockTimeDiff; pub fn gst_rtsp_media_set_address_pool(media: *mut GstRTSPMedia, pool: *mut GstRTSPAddressPool); #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_rtsp_media_set_bind_mcast_address( media: *mut GstRTSPMedia, bind_mcast_addr: gboolean, @@ -1650,15 +1681,18 @@ extern "C" { pub fn gst_rtsp_media_set_buffer_size(media: *mut GstRTSPMedia, size: c_uint); pub fn gst_rtsp_media_set_clock(media: *mut GstRTSPMedia, clock: *mut gst::GstClock); #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_rtsp_media_set_do_retransmission( media: *mut GstRTSPMedia, do_retransmission: gboolean, ); #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_rtsp_media_set_dscp_qos(media: *mut GstRTSPMedia, dscp_qos: c_int); pub fn gst_rtsp_media_set_eos_shutdown(media: *mut GstRTSPMedia, eos_shutdown: gboolean); pub fn gst_rtsp_media_set_latency(media: *mut GstRTSPMedia, latency: c_uint); #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_rtsp_media_set_max_mcast_ttl(media: *mut GstRTSPMedia, ttl: c_uint) -> gboolean; pub fn gst_rtsp_media_set_multicast_iface( media: *mut GstRTSPMedia, @@ -1682,6 +1716,7 @@ extern "C" { mode: GstRTSPPublishClockMode, ); #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_rtsp_media_set_rate_control(media: *mut GstRTSPMedia, enabled: gboolean); pub fn gst_rtsp_media_set_retransmission_time( media: *mut GstRTSPMedia, @@ -1708,6 +1743,7 @@ extern "C" { pub fn gst_rtsp_media_suspend(media: *mut GstRTSPMedia) -> gboolean; pub fn gst_rtsp_media_take_pipeline(media: *mut GstRTSPMedia, pipeline: *mut gst::GstPipeline); #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_rtsp_media_unlock(media: *mut GstRTSPMedia); pub fn gst_rtsp_media_unprepare(media: *mut GstRTSPMedia) -> gboolean; pub fn gst_rtsp_media_unsuspend(media: *mut GstRTSPMedia) -> gboolean; @@ -1725,6 +1761,7 @@ extern "C" { ... ); #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_rtsp_media_factory_add_role_from_structure( factory: *mut GstRTSPMediaFactory, structure: *mut gst::GstStructure, @@ -1745,14 +1782,17 @@ extern "C" { factory: *mut GstRTSPMediaFactory, ) -> *mut gst::GstClock; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_rtsp_media_factory_get_do_retransmission( factory: *mut GstRTSPMediaFactory, ) -> gboolean; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_rtsp_media_factory_get_dscp_qos(factory: *mut GstRTSPMediaFactory) -> c_int; pub fn gst_rtsp_media_factory_get_latency(factory: *mut GstRTSPMediaFactory) -> c_uint; pub fn gst_rtsp_media_factory_get_launch(factory: *mut GstRTSPMediaFactory) -> *mut c_char; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_rtsp_media_factory_get_max_mcast_ttl(factory: *mut GstRTSPMediaFactory) -> c_uint; pub fn gst_rtsp_media_factory_get_media_gtype(factory: *mut GstRTSPMediaFactory) -> GType; pub fn gst_rtsp_media_factory_get_multicast_iface( @@ -1780,6 +1820,7 @@ extern "C" { factory: *mut GstRTSPMediaFactory, ) -> GstRTSPTransportMode; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_rtsp_media_factory_is_bind_mcast_address( factory: *mut GstRTSPMediaFactory, ) -> gboolean; @@ -1793,6 +1834,7 @@ extern "C" { pool: *mut GstRTSPAddressPool, ); #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_rtsp_media_factory_set_bind_mcast_address( factory: *mut GstRTSPMediaFactory, bind_mcast_addr: gboolean, @@ -1803,11 +1845,13 @@ extern "C" { clock: *mut gst::GstClock, ); #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_rtsp_media_factory_set_do_retransmission( factory: *mut GstRTSPMediaFactory, do_retransmission: gboolean, ); #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_rtsp_media_factory_set_dscp_qos(factory: *mut GstRTSPMediaFactory, dscp_qos: c_int); pub fn gst_rtsp_media_factory_set_eos_shutdown( factory: *mut GstRTSPMediaFactory, @@ -1819,6 +1863,7 @@ extern "C" { launch: *const c_char, ); #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_rtsp_media_factory_set_max_mcast_ttl( factory: *mut GstRTSPMediaFactory, ttl: c_uint, @@ -1904,20 +1949,26 @@ extern "C" { // GstRTSPOnvifClient //========================================================================= #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_rtsp_onvif_client_get_type() -> GType; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_rtsp_onvif_client_new() -> *mut GstRTSPClient; //========================================================================= // GstRTSPOnvifMedia //========================================================================= #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_rtsp_onvif_media_get_type() -> GType; #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_rtsp_onvif_media_collect_backchannel(media: *mut GstRTSPOnvifMedia) -> gboolean; #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_rtsp_onvif_media_get_backchannel_bandwidth(media: *mut GstRTSPOnvifMedia) -> c_uint; #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_rtsp_onvif_media_set_backchannel_bandwidth( media: *mut GstRTSPOnvifMedia, bandwidth: c_uint, @@ -1927,41 +1978,51 @@ extern "C" { // GstRTSPOnvifMediaFactory //========================================================================= #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_rtsp_onvif_media_factory_get_type() -> GType; #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_rtsp_onvif_media_factory_new() -> *mut GstRTSPMediaFactory; #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_rtsp_onvif_media_factory_requires_backchannel( factory: *mut GstRTSPMediaFactory, ctx: *mut GstRTSPContext, ) -> gboolean; #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_rtsp_onvif_media_factory_get_backchannel_bandwidth( factory: *mut GstRTSPOnvifMediaFactory, ) -> c_uint; #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_rtsp_onvif_media_factory_get_backchannel_launch( factory: *mut GstRTSPOnvifMediaFactory, ) -> *mut c_char; #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_rtsp_onvif_media_factory_has_backchannel_support( factory: *mut GstRTSPOnvifMediaFactory, ) -> gboolean; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_rtsp_onvif_media_factory_has_replay_support( factory: *mut GstRTSPOnvifMediaFactory, ) -> gboolean; #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_rtsp_onvif_media_factory_set_backchannel_bandwidth( factory: *mut GstRTSPOnvifMediaFactory, bandwidth: c_uint, ); #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_rtsp_onvif_media_factory_set_backchannel_launch( factory: *mut GstRTSPOnvifMediaFactory, launch: *const c_char, ); #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_rtsp_onvif_media_factory_set_replay_support( factory: *mut GstRTSPOnvifMediaFactory, has_replay_support: gboolean, @@ -1971,8 +2032,10 @@ extern "C" { // GstRTSPOnvifServer //========================================================================= #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_rtsp_onvif_server_get_type() -> GType; #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_rtsp_onvif_server_new() -> *mut GstRTSPServer; //========================================================================= @@ -2009,6 +2072,7 @@ extern "C" { pub fn gst_rtsp_server_get_backlog(server: *mut GstRTSPServer) -> c_int; pub fn gst_rtsp_server_get_bound_port(server: *mut GstRTSPServer) -> c_int; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_rtsp_server_get_content_length_limit(server: *mut GstRTSPServer) -> c_uint; pub fn gst_rtsp_server_get_mount_points(server: *mut GstRTSPServer) -> *mut GstRTSPMountPoints; pub fn gst_rtsp_server_get_service(server: *mut GstRTSPServer) -> *mut c_char; @@ -2018,6 +2082,7 @@ extern "C" { pub fn gst_rtsp_server_set_auth(server: *mut GstRTSPServer, auth: *mut GstRTSPAuth); pub fn gst_rtsp_server_set_backlog(server: *mut GstRTSPServer, backlog: c_int); #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_rtsp_server_set_content_length_limit(server: *mut GstRTSPServer, limit: c_uint); pub fn gst_rtsp_server_set_mount_points( server: *mut GstRTSPServer, @@ -2107,6 +2172,7 @@ extern "C" { idx: c_uint, ) -> *mut GstRTSPStreamTransport; #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_rtsp_session_media_get_transports( media: *mut GstRTSPSessionMedia, ) -> *mut glib::GPtrArray; @@ -2164,6 +2230,7 @@ extern "C" { pad: *mut gst::GstPad, ) -> *mut GstRTSPStream; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_rtsp_stream_add_multicast_client_address( stream: *mut GstRTSPStream, destination: *const c_char, @@ -2182,6 +2249,7 @@ extern "C" { use_client_settings: gboolean, ) -> gboolean; #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_rtsp_stream_complete_stream( stream: *mut GstRTSPStream, transport: *const gst_rtsp::GstRTSPTransport, @@ -2195,6 +2263,7 @@ extern "C" { pub fn gst_rtsp_stream_get_index(stream: *mut GstRTSPStream) -> c_uint; pub fn gst_rtsp_stream_get_joined_bin(stream: *mut GstRTSPStream) -> *mut gst::GstBin; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_rtsp_stream_get_max_mcast_ttl(stream: *mut GstRTSPStream) -> c_uint; pub fn gst_rtsp_stream_get_mtu(stream: *mut GstRTSPStream) -> c_uint; pub fn gst_rtsp_stream_get_multicast_address( @@ -2202,6 +2271,7 @@ extern "C" { family: gio::GSocketFamily, ) -> *mut GstRTSPAddress; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_rtsp_stream_get_multicast_client_addresses( stream: *mut GstRTSPStream, ) -> *mut c_char; @@ -2214,8 +2284,10 @@ extern "C" { stream: *mut GstRTSPStream, ) -> GstRTSPPublishClockMode; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_rtsp_stream_get_rate_control(stream: *mut GstRTSPStream) -> gboolean; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_rtsp_stream_get_rates( stream: *mut GstRTSPStream, rate: *mut c_double, @@ -2225,6 +2297,7 @@ extern "C" { pub fn gst_rtsp_stream_get_retransmission_time(stream: *mut GstRTSPStream) -> gst::GstClockTime; #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_rtsp_stream_get_rtcp_multicast_socket( stream: *mut GstRTSPStream, family: gio::GSocketFamily, @@ -2260,10 +2333,13 @@ extern "C" { pub fn gst_rtsp_stream_get_ssrc(stream: *mut GstRTSPStream, ssrc: *mut c_uint); pub fn gst_rtsp_stream_get_ulpfec_enabled(stream: *mut GstRTSPStream) -> gboolean; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_rtsp_stream_get_ulpfec_percentage(stream: *mut GstRTSPStream) -> c_uint; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_rtsp_stream_get_ulpfec_pt(stream: *mut GstRTSPStream) -> c_uint; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_rtsp_stream_handle_keymgmt( stream: *mut GstRTSPStream, keymgmt: *const c_char, @@ -2273,14 +2349,18 @@ extern "C" { control: *const c_char, ) -> gboolean; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_rtsp_stream_is_bind_mcast_address(stream: *mut GstRTSPStream) -> gboolean; pub fn gst_rtsp_stream_is_blocking(stream: *mut GstRTSPStream) -> gboolean; pub fn gst_rtsp_stream_is_client_side(stream: *mut GstRTSPStream) -> gboolean; #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_rtsp_stream_is_complete(stream: *mut GstRTSPStream) -> gboolean; #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_rtsp_stream_is_receiver(stream: *mut GstRTSPStream) -> gboolean; #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_rtsp_stream_is_sender(stream: *mut GstRTSPStream) -> gboolean; pub fn gst_rtsp_stream_is_transport_supported( stream: *mut GstRTSPStream, @@ -2315,6 +2395,7 @@ extern "C" { trans: *mut GstRTSPStreamTransport, ) -> gboolean; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_rtsp_stream_request_aux_receiver( stream: *mut GstRTSPStream, sessid: c_uint, @@ -2324,12 +2405,14 @@ extern "C" { sessid: c_uint, ) -> *mut gst::GstElement; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_rtsp_stream_request_ulpfec_decoder( stream: *mut GstRTSPStream, rtpbin: *mut gst::GstElement, sessid: c_uint, ) -> *mut gst::GstElement; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_rtsp_stream_request_ulpfec_encoder( stream: *mut GstRTSPStream, sessid: c_uint, @@ -2342,12 +2425,14 @@ extern "C" { ttl: c_uint, ) -> *mut GstRTSPAddress; #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_rtsp_stream_seekable(stream: *mut GstRTSPStream) -> gboolean; pub fn gst_rtsp_stream_set_address_pool( stream: *mut GstRTSPStream, pool: *mut GstRTSPAddressPool, ); #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_rtsp_stream_set_bind_mcast_address( stream: *mut GstRTSPStream, bind_mcast_addr: gboolean, @@ -2358,6 +2443,7 @@ extern "C" { pub fn gst_rtsp_stream_set_control(stream: *mut GstRTSPStream, control: *const c_char); pub fn gst_rtsp_stream_set_dscp_qos(stream: *mut GstRTSPStream, dscp_qos: c_int); #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_rtsp_stream_set_max_mcast_ttl(stream: *mut GstRTSPStream, ttl: c_uint) -> gboolean; pub fn gst_rtsp_stream_set_mtu(stream: *mut GstRTSPStream, mtu: c_uint); pub fn gst_rtsp_stream_set_multicast_iface( @@ -2382,6 +2468,7 @@ extern "C" { mode: GstRTSPPublishClockMode, ); #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_rtsp_stream_set_rate_control(stream: *mut GstRTSPStream, enabled: gboolean); pub fn gst_rtsp_stream_set_retransmission_pt(stream: *mut GstRTSPStream, rtx_pt: c_uint); pub fn gst_rtsp_stream_set_retransmission_time( @@ -2390,8 +2477,10 @@ extern "C" { ); pub fn gst_rtsp_stream_set_seqnum_offset(stream: *mut GstRTSPStream, seqnum: u16); #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_rtsp_stream_set_ulpfec_percentage(stream: *mut GstRTSPStream, percentage: c_uint); #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_rtsp_stream_set_ulpfec_pt(stream: *mut GstRTSPStream, pt: c_uint); pub fn gst_rtsp_stream_transport_filter( stream: *mut GstRTSPStream, @@ -2405,6 +2494,7 @@ extern "C" { crypto: *mut gst::GstCaps, ) -> gboolean; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_rtsp_stream_verify_mcast_ttl(stream: *mut GstRTSPStream, ttl: c_uint) -> gboolean; //========================================================================= @@ -2431,6 +2521,7 @@ extern "C" { pub fn gst_rtsp_stream_transport_is_timed_out(trans: *mut GstRTSPStreamTransport) -> gboolean; pub fn gst_rtsp_stream_transport_keep_alive(trans: *mut GstRTSPStreamTransport); #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_rtsp_stream_transport_message_sent(trans: *mut GstRTSPStreamTransport); pub fn gst_rtsp_stream_transport_recv_data( trans: *mut GstRTSPStreamTransport, @@ -2442,6 +2533,7 @@ extern "C" { buffer: *mut gst::GstBuffer, ) -> gboolean; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_rtsp_stream_transport_send_rtcp_list( trans: *mut GstRTSPStreamTransport, buffer_list: *mut gst::GstBufferList, @@ -2451,6 +2543,7 @@ extern "C" { buffer: *mut gst::GstBuffer, ) -> gboolean; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_rtsp_stream_transport_send_rtp_list( trans: *mut GstRTSPStreamTransport, buffer_list: *mut gst::GstBufferList, @@ -2473,6 +2566,7 @@ extern "C" { notify: glib::GDestroyNotify, ); #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_rtsp_stream_transport_set_list_callbacks( trans: *mut GstRTSPStreamTransport, send_rtp_list: GstRTSPSendListFunc, @@ -2487,6 +2581,7 @@ extern "C" { notify: glib::GDestroyNotify, ); #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_rtsp_stream_transport_set_message_sent_full( trans: *mut GstRTSPStreamTransport, message_sent: GstRTSPMessageSentFuncFull, @@ -2543,6 +2638,7 @@ extern "C" { stream: *mut GstRTSPStream, ) -> gboolean; #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_rtsp_sdp_make_media( sdp: *mut gst_sdp::GstSDPMessage, info: *mut GstSDPInfo, diff --git a/gstreamer-rtsp-server/sys/tests/abi.rs b/gstreamer-rtsp-server/sys/tests/abi.rs index 1f499de3d..33b47e3ab 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 @ db37199) -// from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae9689) +// from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de) // DO NOT EDIT extern crate gstreamer_rtsp_server_sys; diff --git a/gstreamer-rtsp-server/sys/tests/constant.c b/gstreamer-rtsp-server/sys/tests/constant.c index 7a1c810ac..3658ebe72 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 @ db37199) -// from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae9689) +// from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de) // 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 291623e9a..b418a479d 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 @ db37199) -// from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae9689) +// from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-rtsp/src/auto/mod.rs b/gstreamer-rtsp/src/auto/mod.rs index 5d814d022..1cd2a46ae 100644 --- a/gstreamer-rtsp/src/auto/mod.rs +++ b/gstreamer-rtsp/src/auto/mod.rs @@ -3,8 +3,10 @@ // DO NOT EDIT #[cfg(any(feature = "v1_12", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] mod rtsp_auth_param; #[cfg(any(feature = "v1_12", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] pub use self::rtsp_auth_param::RTSPAuthParam; mod rtsp_url; diff --git a/gstreamer-rtsp/src/auto/rtsp_auth_param.rs b/gstreamer-rtsp/src/auto/rtsp_auth_param.rs index ed6332e28..27c4208ab 100644 --- a/gstreamer-rtsp/src/auto/rtsp_auth_param.rs +++ b/gstreamer-rtsp/src/auto/rtsp_auth_param.rs @@ -3,6 +3,7 @@ // DO NOT EDIT #[cfg(any(feature = "v1_12", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] use glib::translate::*; use gst_rtsp_sys; diff --git a/gstreamer-rtsp/src/auto/rtsp_url.rs b/gstreamer-rtsp/src/auto/rtsp_url.rs index 7d071feb3..9af056681 100644 --- a/gstreamer-rtsp/src/auto/rtsp_url.rs +++ b/gstreamer-rtsp/src/auto/rtsp_url.rs @@ -37,6 +37,7 @@ impl RTSPUrl { } #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn get_request_uri_with_control(&self, control_path: &str) -> Option { unsafe { from_glib_full(gst_rtsp_sys::gst_rtsp_url_get_request_uri_with_control( diff --git a/gstreamer-rtsp/src/auto/versions.txt b/gstreamer-rtsp/src/auto/versions.txt index 03f3faacf..df0f8cdd5 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 @ db37199) -from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e) +Generated by gir (https://github.com/gtk-rs/gir @ 1ae9689) +from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de) diff --git a/gstreamer-rtsp/sys/build.rs b/gstreamer-rtsp/sys/build.rs index 93a1b219b..eadccf000 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 @ db37199) -// from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae9689) +// from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de) // DO NOT EDIT #[cfg(not(feature = "dox"))] diff --git a/gstreamer-rtsp/sys/src/lib.rs b/gstreamer-rtsp/sys/src/lib.rs index 49e1b8e48..228512494 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 @ db37199) -// from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae9689) +// from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de) // DO NOT EDIT #![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)] @@ -8,6 +8,7 @@ clippy::type_complexity, clippy::unreadable_literal )] +#![cfg_attr(feature = "dox", feature(doc_cfg))] extern crate gio_sys as gio; extern crate glib_sys as glib; @@ -792,16 +793,20 @@ extern "C" { // GstRTSPAuthCredential //========================================================================= #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] pub fn gst_rtsp_auth_credential_get_type() -> GType; //========================================================================= // GstRTSPAuthParam //========================================================================= #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] pub fn gst_rtsp_auth_param_get_type() -> GType; #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] pub fn gst_rtsp_auth_param_copy(param: *mut GstRTSPAuthParam) -> *mut GstRTSPAuthParam; #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] pub fn gst_rtsp_auth_param_free(param: *mut GstRTSPAuthParam); //========================================================================= @@ -814,6 +819,7 @@ extern "C" { timeout: *mut glib::GTimeVal, ) -> GstRTSPResult; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_rtsp_connection_connect_usec( conn: *mut GstRTSPConnection, timeout: i64, @@ -824,6 +830,7 @@ extern "C" { response: *mut GstRTSPMessage, ) -> GstRTSPResult; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_rtsp_connection_connect_with_response_usec( conn: *mut GstRTSPConnection, timeout: i64, @@ -866,6 +873,7 @@ extern "C" { timeout: *mut glib::GTimeVal, ) -> GstRTSPResult; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_rtsp_connection_next_timeout_usec(conn: *mut GstRTSPConnection) -> i64; pub fn gst_rtsp_connection_poll( conn: *mut GstRTSPConnection, @@ -874,6 +882,7 @@ extern "C" { timeout: *mut glib::GTimeVal, ) -> GstRTSPResult; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_rtsp_connection_poll_usec( conn: *mut GstRTSPConnection, events: GstRTSPEvent, @@ -887,6 +896,7 @@ extern "C" { timeout: *mut glib::GTimeVal, ) -> GstRTSPResult; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_rtsp_connection_read_usec( conn: *mut GstRTSPConnection, data: *mut u8, @@ -899,6 +909,7 @@ extern "C" { timeout: *mut glib::GTimeVal, ) -> GstRTSPResult; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_rtsp_connection_receive_usec( conn: *mut GstRTSPConnection, message: *mut GstRTSPMessage, @@ -911,6 +922,7 @@ extern "C" { timeout: *mut glib::GTimeVal, ) -> GstRTSPResult; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_rtsp_connection_send_messages( conn: *mut GstRTSPConnection, messages: *mut GstRTSPMessage, @@ -918,6 +930,7 @@ extern "C" { timeout: *mut glib::GTimeVal, ) -> GstRTSPResult; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_rtsp_connection_send_messages_usec( conn: *mut GstRTSPConnection, messages: *mut GstRTSPMessage, @@ -925,12 +938,14 @@ extern "C" { timeout: i64, ) -> GstRTSPResult; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_rtsp_connection_send_usec( conn: *mut GstRTSPConnection, message: *mut GstRTSPMessage, timeout: i64, ) -> GstRTSPResult; #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_rtsp_connection_set_accept_certificate_func( conn: *mut GstRTSPConnection, func: GstRTSPConnectionAcceptCertificateFunc, @@ -949,6 +964,7 @@ extern "C" { value: *const c_char, ); #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_rtsp_connection_set_content_length_limit( conn: *mut GstRTSPConnection, limit: c_uint, @@ -988,6 +1004,7 @@ extern "C" { timeout: *mut glib::GTimeVal, ) -> GstRTSPResult; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_rtsp_connection_write_usec( conn: *mut GstRTSPConnection, data: *const u8, @@ -1015,6 +1032,7 @@ extern "C" { // GstRTSPMessage //========================================================================= #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_rtsp_msg_get_type() -> GType; pub fn gst_rtsp_message_add_header( msg: *mut GstRTSPMessage, @@ -1031,6 +1049,7 @@ extern "C" { str: *mut glib::GString, ) -> GstRTSPResult; #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_rtsp_message_copy( msg: *const GstRTSPMessage, copy: *mut *mut GstRTSPMessage, @@ -1043,6 +1062,7 @@ extern "C" { size: *mut c_uint, ) -> GstRTSPResult; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_rtsp_message_get_body_buffer( msg: *const GstRTSPMessage, buffer: *mut *mut gst::GstBuffer, @@ -1060,8 +1080,10 @@ extern "C" { index: c_int, ) -> GstRTSPResult; #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_rtsp_message_get_type(msg: *mut GstRTSPMessage) -> GstRTSPMsgType; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_rtsp_message_has_body_buffer(msg: *const GstRTSPMessage) -> gboolean; pub fn gst_rtsp_message_init(msg: *mut GstRTSPMessage) -> GstRTSPResult; pub fn gst_rtsp_message_init_data(msg: *mut GstRTSPMessage, channel: u8) -> GstRTSPResult; @@ -1077,6 +1099,7 @@ extern "C" { request: *const GstRTSPMessage, ) -> GstRTSPResult; #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] pub fn gst_rtsp_message_parse_auth_credentials( msg: *mut GstRTSPMessage, field: GstRTSPHeaderField, @@ -1111,6 +1134,7 @@ extern "C" { size: c_uint, ) -> GstRTSPResult; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_rtsp_message_set_body_buffer( msg: *mut GstRTSPMessage, buffer: *mut gst::GstBuffer, @@ -1121,6 +1145,7 @@ extern "C" { size: *mut c_uint, ) -> GstRTSPResult; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_rtsp_message_steal_body_buffer( msg: *mut GstRTSPMessage, buffer: *mut *mut gst::GstBuffer, @@ -1131,6 +1156,7 @@ extern "C" { size: c_uint, ) -> GstRTSPResult; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_rtsp_message_take_body_buffer( msg: *mut GstRTSPMessage, buffer: *mut gst::GstBuffer, @@ -1201,6 +1227,7 @@ extern "C" { pub fn gst_rtsp_url_get_port(url: *const GstRTSPUrl, port: *mut u16) -> GstRTSPResult; pub fn gst_rtsp_url_get_request_uri(url: *const GstRTSPUrl) -> *mut c_char; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_rtsp_url_get_request_uri_with_control( url: *const GstRTSPUrl, control_path: *const c_char, @@ -1227,6 +1254,7 @@ extern "C" { id: *mut c_uint, ) -> GstRTSPResult; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_rtsp_watch_send_messages( watch: *mut GstRTSPWatch, messages: *mut GstRTSPMessage, @@ -1245,6 +1273,7 @@ extern "C" { timeout: *mut glib::GTimeVal, ) -> GstRTSPResult; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_rtsp_watch_wait_backlog_usec( watch: *mut GstRTSPWatch, timeout: i64, @@ -1315,10 +1344,12 @@ extern "C" { // Other functions //========================================================================= #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] pub fn gst_rtsp_auth_credentials_free(credentials: *mut *mut GstRTSPAuthCredential); pub fn gst_rtsp_find_header_field(header: *const c_char) -> GstRTSPHeaderField; pub fn gst_rtsp_find_method(method: *const c_char) -> GstRTSPMethod; #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] pub fn gst_rtsp_generate_digest_auth_response( algorithm: *const c_char, method: *const c_char, @@ -1329,6 +1360,7 @@ extern "C" { nonce: *const c_char, ) -> *mut c_char; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_rtsp_generate_digest_auth_response_from_md5( algorithm: *const c_char, method: *const c_char, diff --git a/gstreamer-rtsp/sys/tests/abi.rs b/gstreamer-rtsp/sys/tests/abi.rs index 435655d55..5a18c2596 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 @ db37199) -// from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae9689) +// from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de) // DO NOT EDIT extern crate gstreamer_rtsp_sys; diff --git a/gstreamer-rtsp/sys/tests/constant.c b/gstreamer-rtsp/sys/tests/constant.c index 7a1c810ac..3658ebe72 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 @ db37199) -// from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae9689) +// from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-rtsp/sys/tests/layout.c b/gstreamer-rtsp/sys/tests/layout.c index 291623e9a..b418a479d 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 @ db37199) -// from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae9689) +// from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-sdp/src/auto/versions.txt b/gstreamer-sdp/src/auto/versions.txt index 03f3faacf..df0f8cdd5 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 @ db37199) -from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e) +Generated by gir (https://github.com/gtk-rs/gir @ 1ae9689) +from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de) diff --git a/gstreamer-sdp/sys/build.rs b/gstreamer-sdp/sys/build.rs index 93a1b219b..eadccf000 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 @ db37199) -// from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae9689) +// from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de) // DO NOT EDIT #[cfg(not(feature = "dox"))] diff --git a/gstreamer-sdp/sys/src/lib.rs b/gstreamer-sdp/sys/src/lib.rs index 0718f8d03..bce408653 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 @ db37199) -// from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae9689) +// from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de) // DO NOT EDIT #![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)] @@ -8,6 +8,7 @@ clippy::type_complexity, clippy::unreadable_literal )] +#![cfg_attr(feature = "dox", feature(doc_cfg))] extern crate glib_sys as glib; extern crate gobject_sys as gobject; @@ -638,6 +639,7 @@ extern "C" { error: *mut *mut glib::GError, ) -> *mut glib::GBytes; #[cfg(any(feature = "v1_8_1", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_8_1")))] pub fn gst_mikey_message_to_caps( msg: *const GstMIKEYMessage, caps: *mut gst::GstCaps, @@ -850,6 +852,7 @@ extern "C" { format: *const c_char, ) -> GstSDPResult; #[cfg(any(feature = "v1_8_1", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_8_1")))] pub fn gst_sdp_media_parse_keymgmt( media: *const GstSDPMedia, mikey: *mut *mut GstMIKEYMessage, @@ -1010,6 +1013,7 @@ extern "C" { ) -> GstSDPResult; pub fn gst_sdp_message_medias_len(msg: *const GstSDPMessage) -> c_uint; #[cfg(any(feature = "v1_8_1", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_8_1")))] pub fn gst_sdp_message_parse_keymgmt( msg: *const GstSDPMessage, mikey: *mut *mut GstMIKEYMessage, @@ -1092,6 +1096,7 @@ extern "C" { pub fn gst_sdp_message_as_uri(scheme: *const c_char, msg: *const GstSDPMessage) -> *mut c_char; pub fn gst_sdp_message_new(msg: *mut *mut GstSDPMessage) -> GstSDPResult; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_sdp_message_new_from_text( text: *const c_char, msg: *mut *mut GstSDPMessage, diff --git a/gstreamer-sdp/sys/tests/abi.rs b/gstreamer-sdp/sys/tests/abi.rs index 41f44c4f5..e6803fc78 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 @ db37199) -// from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae9689) +// from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de) // DO NOT EDIT extern crate gstreamer_sdp_sys; diff --git a/gstreamer-sdp/sys/tests/constant.c b/gstreamer-sdp/sys/tests/constant.c index 7a1c810ac..3658ebe72 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 @ db37199) -// from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae9689) +// from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-sdp/sys/tests/layout.c b/gstreamer-sdp/sys/tests/layout.c index 291623e9a..b418a479d 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 @ db37199) -// from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae9689) +// from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-tag/sys/build.rs b/gstreamer-tag/sys/build.rs index 93a1b219b..eadccf000 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 @ db37199) -// from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae9689) +// from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de) // DO NOT EDIT #[cfg(not(feature = "dox"))] diff --git a/gstreamer-tag/sys/src/lib.rs b/gstreamer-tag/sys/src/lib.rs index 68016f0c9..5d95ad3a2 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 @ db37199) -// from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae9689) +// from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de) // DO NOT EDIT #![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)] @@ -8,6 +8,7 @@ clippy::type_complexity, clippy::unreadable_literal )] +#![cfg_attr(feature = "dox", feature(doc_cfg))] extern crate glib_sys as glib; extern crate gobject_sys as gobject; diff --git a/gstreamer-tag/sys/tests/abi.rs b/gstreamer-tag/sys/tests/abi.rs index 0d6b14c9e..db0e93149 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 @ db37199) -// from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae9689) +// from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de) // DO NOT EDIT extern crate gstreamer_tag_sys; diff --git a/gstreamer-tag/sys/tests/constant.c b/gstreamer-tag/sys/tests/constant.c index 7a1c810ac..3658ebe72 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 @ db37199) -// from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae9689) +// from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-tag/sys/tests/layout.c b/gstreamer-tag/sys/tests/layout.c index 291623e9a..b418a479d 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 @ db37199) -// from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae9689) +// from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-video/src/auto/enums.rs b/gstreamer-video/src/auto/enums.rs index 2e8d75a25..64a649eb9 100644 --- a/gstreamer-video/src/auto/enums.rs +++ b/gstreamer-video/src/auto/enums.rs @@ -13,6 +13,7 @@ use gobject_sys; use gst_video_sys; #[cfg(any(feature = "v1_18", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] pub enum VideoAFDSpec { @@ -24,6 +25,7 @@ pub enum VideoAFDSpec { } #[cfg(any(feature = "v1_18", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[doc(hidden)] impl ToGlib for VideoAFDSpec { type GlibType = gst_video_sys::GstVideoAFDSpec; @@ -39,6 +41,7 @@ impl ToGlib for VideoAFDSpec { } #[cfg(any(feature = "v1_18", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[doc(hidden)] impl FromGlib for VideoAFDSpec { fn from_glib(value: gst_video_sys::GstVideoAFDSpec) -> Self { @@ -53,6 +56,7 @@ impl FromGlib for VideoAFDSpec { } #[cfg(any(feature = "v1_18", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] impl StaticType for VideoAFDSpec { fn static_type() -> Type { unsafe { from_glib(gst_video_sys::gst_video_afd_spec_get_type()) } @@ -60,6 +64,7 @@ impl StaticType for VideoAFDSpec { } #[cfg(any(feature = "v1_18", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] impl<'a> FromValueOptional<'a> for VideoAFDSpec { unsafe fn from_value_optional(value: &Value) -> Option { Some(FromValue::from_value(value)) @@ -67,6 +72,7 @@ impl<'a> FromValueOptional<'a> for VideoAFDSpec { } #[cfg(any(feature = "v1_18", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] impl<'a> FromValue<'a> for VideoAFDSpec { unsafe fn from_value(value: &Value) -> Self { from_glib(gobject_sys::g_value_get_enum(value.to_glib_none().0)) @@ -74,6 +80,7 @@ impl<'a> FromValue<'a> for VideoAFDSpec { } #[cfg(any(feature = "v1_18", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] impl SetValue for VideoAFDSpec { unsafe fn set_value(value: &mut Value, this: &Self) { gobject_sys::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib()) @@ -81,6 +88,7 @@ impl SetValue for VideoAFDSpec { } #[cfg(any(feature = "v1_18", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] pub enum VideoAFDValue { @@ -100,6 +108,7 @@ pub enum VideoAFDValue { } #[cfg(any(feature = "v1_18", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[doc(hidden)] impl ToGlib for VideoAFDValue { type GlibType = gst_video_sys::GstVideoAFDValue; @@ -129,6 +138,7 @@ impl ToGlib for VideoAFDValue { } #[cfg(any(feature = "v1_18", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[doc(hidden)] impl FromGlib for VideoAFDValue { fn from_glib(value: gst_video_sys::GstVideoAFDValue) -> Self { @@ -151,6 +161,7 @@ impl FromGlib for VideoAFDValue { } #[cfg(any(feature = "v1_18", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] impl StaticType for VideoAFDValue { fn static_type() -> Type { unsafe { from_glib(gst_video_sys::gst_video_afd_value_get_type()) } @@ -158,6 +169,7 @@ impl StaticType for VideoAFDValue { } #[cfg(any(feature = "v1_18", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] impl<'a> FromValueOptional<'a> for VideoAFDValue { unsafe fn from_value_optional(value: &Value) -> Option { Some(FromValue::from_value(value)) @@ -165,6 +177,7 @@ impl<'a> FromValueOptional<'a> for VideoAFDValue { } #[cfg(any(feature = "v1_18", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] impl<'a> FromValue<'a> for VideoAFDValue { unsafe fn from_value(value: &Value) -> Self { from_glib(gobject_sys::g_value_get_enum(value.to_glib_none().0)) @@ -172,6 +185,7 @@ impl<'a> FromValue<'a> for VideoAFDValue { } #[cfg(any(feature = "v1_18", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] impl SetValue for VideoAFDValue { unsafe fn set_value(value: &mut Value, this: &Self) { gobject_sys::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib()) @@ -240,6 +254,7 @@ impl SetValue for VideoAlphaMode { } #[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] pub enum VideoCaptionType { @@ -253,6 +268,7 @@ pub enum VideoCaptionType { } #[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[doc(hidden)] impl ToGlib for VideoCaptionType { type GlibType = gst_video_sys::GstVideoCaptionType; @@ -270,6 +286,7 @@ impl ToGlib for VideoCaptionType { } #[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[doc(hidden)] impl FromGlib for VideoCaptionType { fn from_glib(value: gst_video_sys::GstVideoCaptionType) -> Self { @@ -286,6 +303,7 @@ impl FromGlib for VideoCaptionType { } #[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] impl StaticType for VideoCaptionType { fn static_type() -> Type { unsafe { from_glib(gst_video_sys::gst_video_caption_type_get_type()) } @@ -293,6 +311,7 @@ impl StaticType for VideoCaptionType { } #[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] impl<'a> FromValueOptional<'a> for VideoCaptionType { unsafe fn from_value_optional(value: &Value) -> Option { Some(FromValue::from_value(value)) @@ -300,6 +319,7 @@ impl<'a> FromValueOptional<'a> for VideoCaptionType { } #[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] impl<'a> FromValue<'a> for VideoCaptionType { unsafe fn from_value(value: &Value) -> Self { from_glib(gobject_sys::g_value_get_enum(value.to_glib_none().0)) @@ -307,6 +327,7 @@ impl<'a> FromValue<'a> for VideoCaptionType { } #[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] impl SetValue for VideoCaptionType { unsafe fn set_value(value: &mut Value, this: &Self) { gobject_sys::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib()) @@ -463,12 +484,16 @@ pub enum VideoColorPrimaries { Bt2020, Adobergb, #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] Smptest428, #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] Smpterp431, #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] Smpteeg432, #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] Ebu3213, #[doc(hidden)] __Unknown(i32), @@ -621,6 +646,7 @@ impl SetValue for VideoDitherMethod { } #[cfg(any(feature = "v1_12", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] pub enum VideoFieldOrder { @@ -632,6 +658,7 @@ pub enum VideoFieldOrder { } #[cfg(any(feature = "v1_12", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] #[doc(hidden)] impl ToGlib for VideoFieldOrder { type GlibType = gst_video_sys::GstVideoFieldOrder; @@ -649,6 +676,7 @@ impl ToGlib for VideoFieldOrder { } #[cfg(any(feature = "v1_12", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] #[doc(hidden)] impl FromGlib for VideoFieldOrder { fn from_glib(value: gst_video_sys::GstVideoFieldOrder) -> Self { @@ -663,6 +691,7 @@ impl FromGlib for VideoFieldOrder { } #[cfg(any(feature = "v1_12", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] impl StaticType for VideoFieldOrder { fn static_type() -> Type { unsafe { from_glib(gst_video_sys::gst_video_field_order_get_type()) } @@ -670,6 +699,7 @@ impl StaticType for VideoFieldOrder { } #[cfg(any(feature = "v1_12", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] impl<'a> FromValueOptional<'a> for VideoFieldOrder { unsafe fn from_value_optional(value: &Value) -> Option { Some(FromValue::from_value(value)) @@ -677,6 +707,7 @@ impl<'a> FromValueOptional<'a> for VideoFieldOrder { } #[cfg(any(feature = "v1_12", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] impl<'a> FromValue<'a> for VideoFieldOrder { unsafe fn from_value(value: &Value) -> Self { from_glib(gobject_sys::g_value_get_enum(value.to_glib_none().0)) @@ -684,6 +715,7 @@ impl<'a> FromValue<'a> for VideoFieldOrder { } #[cfg(any(feature = "v1_12", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] impl SetValue for VideoFieldOrder { unsafe fn set_value(value: &mut Value, this: &Self) { gobject_sys::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib()) @@ -755,80 +787,118 @@ pub enum VideoFormat { A44410le, Nv61, #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] P01010be, #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] P01010le, #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] Iyu2, #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] Vyuy, #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] Gbra, #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] Gbra10be, #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] Gbra10le, #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] Gbr12be, #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] Gbr12le, #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] Gbra12be, #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] Gbra12le, #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] I42012be, #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] I42012le, #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] I42212be, #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] I42212le, #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] Y44412be, #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] Y44412le, #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] Gray10Le32, #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] Nv1210le32, #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] Nv1610le32, #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] Nv1210le40, #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] Y210, #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] Y410, #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] Vuya, #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] Bgr10a2Le, #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] Rgb10a2Le, #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] Y44416be, #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] Y44416le, #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] P016Be, #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] P016Le, #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] P012Be, #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] P012Le, #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] Y212Be, #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] Y212Le, #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] Y412Be, #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] Y412Le, #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] Nv124l4, #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] Nv1232l32, #[doc(hidden)] __Unknown(i32), @@ -1219,6 +1289,7 @@ pub enum VideoInterlaceMode { Mixed, Fields, #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] Alternate, #[doc(hidden)] __Unknown(i32), @@ -1684,6 +1755,7 @@ pub enum VideoTileMode { Unknown, Zflipz2x2, #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] Linear, #[doc(hidden)] __Unknown(i32), @@ -1759,12 +1831,16 @@ pub enum VideoTransferFunction { Bt202012, Adobergb, #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] Bt202010, #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] Smpte2084, #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] AribStdB67, #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] Bt601, #[doc(hidden)] __Unknown(i32), diff --git a/gstreamer-video/src/auto/flags.rs b/gstreamer-video/src/auto/flags.rs index 35fc754f6..c63f26ff0 100644 --- a/gstreamer-video/src/auto/flags.rs +++ b/gstreamer-video/src/auto/flags.rs @@ -21,10 +21,13 @@ bitflags! { const MULTIPLE_VIEW = 16777216; const FIRST_IN_BUNDLE = 33554432; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] const TOP_FIELD = 10485760; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] const BOTTOM_FIELD = 8388608; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] const MARKER = 512; } } @@ -385,6 +388,7 @@ impl FromGlib for VideoOverlayFormatF } #[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] impl StaticType for VideoOverlayFormatFlags { fn static_type() -> Type { unsafe { from_glib(gst_video_sys::gst_video_overlay_format_flags_get_type()) } @@ -392,6 +396,7 @@ impl StaticType for VideoOverlayFormatFlags { } #[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] impl<'a> FromValueOptional<'a> for VideoOverlayFormatFlags { unsafe fn from_value_optional(value: &Value) -> Option { Some(FromValue::from_value(value)) @@ -399,6 +404,7 @@ impl<'a> FromValueOptional<'a> for VideoOverlayFormatFlags { } #[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] impl<'a> FromValue<'a> for VideoOverlayFormatFlags { unsafe fn from_value(value: &Value) -> Self { from_glib(gobject_sys::g_value_get_flags(value.to_glib_none().0)) @@ -406,6 +412,7 @@ impl<'a> FromValue<'a> for VideoOverlayFormatFlags { } #[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] impl SetValue for VideoOverlayFormatFlags { unsafe fn set_value(value: &mut Value, this: &Self) { gobject_sys::g_value_set_flags(value.to_glib_none_mut().0, this.to_glib()) @@ -461,6 +468,7 @@ impl SetValue for VideoPackFlags { } #[cfg(any(feature = "v1_10", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] bitflags! { pub struct VideoTimeCodeFlags: u32 { const DROP_FRAME = 1; @@ -469,6 +477,7 @@ bitflags! { } #[cfg(any(feature = "v1_10", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] #[doc(hidden)] impl ToGlib for VideoTimeCodeFlags { type GlibType = gst_video_sys::GstVideoTimeCodeFlags; @@ -479,6 +488,7 @@ impl ToGlib for VideoTimeCodeFlags { } #[cfg(any(feature = "v1_10", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] #[doc(hidden)] impl FromGlib for VideoTimeCodeFlags { fn from_glib(value: gst_video_sys::GstVideoTimeCodeFlags) -> VideoTimeCodeFlags { @@ -488,6 +498,7 @@ impl FromGlib for VideoTimeCodeFlags { } #[cfg(any(feature = "v1_18", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] impl StaticType for VideoTimeCodeFlags { fn static_type() -> Type { unsafe { from_glib(gst_video_sys::gst_video_time_code_flags_get_type()) } @@ -495,6 +506,7 @@ impl StaticType for VideoTimeCodeFlags { } #[cfg(any(feature = "v1_18", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] impl<'a> FromValueOptional<'a> for VideoTimeCodeFlags { unsafe fn from_value_optional(value: &Value) -> Option { Some(FromValue::from_value(value)) @@ -502,6 +514,7 @@ impl<'a> FromValueOptional<'a> for VideoTimeCodeFlags { } #[cfg(any(feature = "v1_18", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] impl<'a> FromValue<'a> for VideoTimeCodeFlags { unsafe fn from_value(value: &Value) -> Self { from_glib(gobject_sys::g_value_get_flags(value.to_glib_none().0)) @@ -509,6 +522,7 @@ impl<'a> FromValue<'a> for VideoTimeCodeFlags { } #[cfg(any(feature = "v1_18", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] impl SetValue for VideoTimeCodeFlags { unsafe fn set_value(value: &mut Value, this: &Self) { gobject_sys::g_value_set_flags(value.to_glib_none_mut().0, this.to_glib()) diff --git a/gstreamer-video/src/auto/mod.rs b/gstreamer-video/src/auto/mod.rs index aa2cde66d..1d803e2fc 100644 --- a/gstreamer-video/src/auto/mod.rs +++ b/gstreamer-video/src/auto/mod.rs @@ -26,17 +26,21 @@ pub use self::video_sink::{VideoSink, NONE_VIDEO_SINK}; mod enums; #[cfg(any(feature = "v1_18", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub use self::enums::VideoAFDSpec; #[cfg(any(feature = "v1_18", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub use self::enums::VideoAFDValue; pub use self::enums::VideoAlphaMode; #[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub use self::enums::VideoCaptionType; pub use self::enums::VideoChromaMode; pub use self::enums::VideoColorMatrix; pub use self::enums::VideoColorPrimaries; pub use self::enums::VideoDitherMethod; #[cfg(any(feature = "v1_12", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] pub use self::enums::VideoFieldOrder; pub use self::enums::VideoFormat; pub use self::enums::VideoGammaMode; @@ -60,6 +64,7 @@ pub use self::flags::VideoMultiviewFlags; pub use self::flags::VideoOverlayFormatFlags; pub use self::flags::VideoPackFlags; #[cfg(any(feature = "v1_10", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub use self::flags::VideoTimeCodeFlags; #[doc(hidden)] diff --git a/gstreamer-video/src/auto/versions.txt b/gstreamer-video/src/auto/versions.txt index 03f3faacf..df0f8cdd5 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 @ db37199) -from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e) +Generated by gir (https://github.com/gtk-rs/gir @ 1ae9689) +from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de) diff --git a/gstreamer-video/src/auto/video_decoder.rs b/gstreamer-video/src/auto/video_decoder.rs index cf6694bb5..20c1250ac 100644 --- a/gstreamer-video/src/auto/video_decoder.rs +++ b/gstreamer-video/src/auto/video_decoder.rs @@ -4,26 +4,35 @@ use glib; #[cfg(any(feature = "v1_18", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] use glib::object::Cast; use glib::object::IsA; #[cfg(any(feature = "v1_18", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] use glib::signal::connect_raw; #[cfg(any(feature = "v1_18", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] use glib::signal::SignalHandlerId; use glib::translate::*; #[cfg(any(feature = "v1_18", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] use glib::StaticType; #[cfg(any(feature = "v1_18", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] use glib::Value; #[cfg(any(feature = "v1_18", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] use glib_sys; #[cfg(any(feature = "v1_18", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] use gobject_sys; use gst; use gst_video_sys; #[cfg(any(feature = "v1_18", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] use std::boxed::Box as Box_; #[cfg(any(feature = "v1_18", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] use std::mem::transmute; use VideoCodecFrame; @@ -76,18 +85,22 @@ pub trait VideoDecoderExt: 'static { fn set_use_default_pad_acceptcaps(&self, use_: bool); #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn get_property_qos(&self) -> bool; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn set_property_qos(&self, qos: bool); #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn connect_property_max_errors_notify( &self, f: F, ) -> SignalHandlerId; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn connect_property_qos_notify( &self, f: F, @@ -228,6 +241,7 @@ impl> VideoDecoderExt for O { } #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn get_property_qos(&self) -> bool { unsafe { let mut value = Value::from_type(::static_type()); @@ -244,6 +258,7 @@ impl> VideoDecoderExt for O { } #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn set_property_qos(&self, qos: bool) { unsafe { gobject_sys::g_object_set_property( @@ -255,6 +270,7 @@ impl> VideoDecoderExt for O { } #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn connect_property_max_errors_notify( &self, f: F, @@ -283,6 +299,7 @@ impl> VideoDecoderExt for O { } #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn connect_property_qos_notify( &self, f: F, diff --git a/gstreamer-video/src/auto/video_encoder.rs b/gstreamer-video/src/auto/video_encoder.rs index a70bb005d..1c43b4f9c 100644 --- a/gstreamer-video/src/auto/video_encoder.rs +++ b/gstreamer-video/src/auto/video_encoder.rs @@ -17,6 +17,7 @@ use gst_video_sys; use std::boxed::Box as Box_; use std::mem::transmute; #[cfg(any(feature = "v1_14", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] use VideoCodecFrame; glib_wrapper! { @@ -36,12 +37,15 @@ pub trait VideoEncoderExt: 'static { fn allocate_output_buffer(&self, size: usize) -> Result; #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] 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")))] 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")))] fn is_qos_enabled(&self) -> bool; fn merge_tags(&self, tags: Option<&gst::TagList>, mode: gst::TagMergeMode); @@ -51,11 +55,13 @@ pub trait VideoEncoderExt: 'static { fn set_headers(&self, headers: &[&gst::Buffer]); #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn set_min_force_key_unit_interval(&self, interval: gst::ClockTime); 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")))] fn set_qos_enabled(&self, enabled: bool); fn get_property_qos(&self) -> bool; @@ -63,6 +69,7 @@ pub trait VideoEncoderExt: 'static { fn set_property_qos(&self, qos: bool); #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn connect_property_min_force_key_unit_interval_notify( &self, f: F, @@ -86,6 +93,7 @@ impl> VideoEncoderExt for O { } #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] fn get_max_encode_time(&self, frame: &VideoCodecFrame) -> gst::ClockTimeDiff { unsafe { gst_video_sys::gst_video_encoder_get_max_encode_time( @@ -96,6 +104,7 @@ impl> VideoEncoderExt for O { } #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn get_min_force_key_unit_interval(&self) -> gst::ClockTime { unsafe { from_glib( @@ -107,6 +116,7 @@ impl> VideoEncoderExt for O { } #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] fn is_qos_enabled(&self) -> bool { unsafe { from_glib(gst_video_sys::gst_video_encoder_is_qos_enabled( @@ -145,6 +155,7 @@ impl> VideoEncoderExt for O { } #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn set_min_force_key_unit_interval(&self, interval: gst::ClockTime) { unsafe { gst_video_sys::gst_video_encoder_set_min_force_key_unit_interval( @@ -164,6 +175,7 @@ impl> VideoEncoderExt for O { } #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] fn set_qos_enabled(&self, enabled: bool) { unsafe { gst_video_sys::gst_video_encoder_set_qos_enabled( @@ -199,6 +211,7 @@ impl> VideoEncoderExt for O { } #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn connect_property_min_force_key_unit_interval_notify( &self, f: F, diff --git a/gstreamer-video/src/auto/video_overlay.rs b/gstreamer-video/src/auto/video_overlay.rs index 504f74de1..1141af468 100644 --- a/gstreamer-video/src/auto/video_overlay.rs +++ b/gstreamer-video/src/auto/video_overlay.rs @@ -17,11 +17,13 @@ glib_wrapper! { impl VideoOverlay { //#[cfg(any(feature = "v1_14", feature = "dox"))] + //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] //pub fn install_properties(oclass: /*Ignored*/&mut glib::ObjectClass, last_prop_id: i32) { // unsafe { TODO: call gst_video_sys:gst_video_overlay_install_properties() } //} //#[cfg(any(feature = "v1_14", feature = "dox"))] + //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] //pub fn set_property>(object: &P, last_prop_id: i32, property_id: u32, value: /*Ignored*/&glib::Value) -> bool { // unsafe { TODO: call gst_video_sys:gst_video_overlay_set_property() } //} diff --git a/gstreamer-video/sys/build.rs b/gstreamer-video/sys/build.rs index 93a1b219b..eadccf000 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 @ db37199) -// from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae9689) +// from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de) // DO NOT EDIT #[cfg(not(feature = "dox"))] diff --git a/gstreamer-video/sys/src/lib.rs b/gstreamer-video/sys/src/lib.rs index 0cd4ad81f..5595451d9 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 @ db37199) -// from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae9689) +// from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de) // DO NOT EDIT #![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)] @@ -8,6 +8,7 @@ clippy::type_complexity, clippy::unreadable_literal )] +#![cfg_attr(feature = "dox", feature(doc_cfg))] extern crate glib_sys as glib; extern crate gobject_sys as gobject; @@ -2274,12 +2275,14 @@ extern "C" { // GstVideoAFDSpec //========================================================================= #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_video_afd_spec_get_type() -> GType; //========================================================================= // GstVideoAFDValue //========================================================================= #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_video_afd_value_get_type() -> GType; //========================================================================= @@ -2291,22 +2294,27 @@ extern "C" { // GstVideoAncillaryDID //========================================================================= #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_video_ancillary_did_get_type() -> GType; //========================================================================= // GstVideoAncillaryDID16 //========================================================================= #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_video_ancillary_di_d16_get_type() -> GType; //========================================================================= // GstVideoCaptionType //========================================================================= #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_video_caption_type_get_type() -> GType; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_video_caption_type_from_caps(caps: *const gst::GstCaps) -> GstVideoCaptionType; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_video_caption_type_to_caps(type_: GstVideoCaptionType) -> *mut gst::GstCaps; //========================================================================= @@ -2324,6 +2332,7 @@ extern "C" { //========================================================================= pub fn gst_video_color_matrix_get_type() -> GType; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_video_color_matrix_from_iso(value: c_uint) -> GstVideoColorMatrix; pub fn gst_video_color_matrix_get_Kr_Kb( matrix: GstVideoColorMatrix, @@ -2331,6 +2340,7 @@ extern "C" { Kb: *mut c_double, ) -> gboolean; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_video_color_matrix_to_iso(matrix: GstVideoColorMatrix) -> c_uint; //========================================================================= @@ -2338,11 +2348,13 @@ extern "C" { //========================================================================= pub fn gst_video_color_primaries_get_type() -> GType; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_video_color_primaries_from_iso(value: c_uint) -> GstVideoColorPrimaries; pub fn gst_video_color_primaries_get_info( primaries: GstVideoColorPrimaries, ) -> *const GstVideoColorPrimariesInfo; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_video_color_primaries_to_iso(primaries: GstVideoColorPrimaries) -> c_uint; //========================================================================= @@ -2365,10 +2377,13 @@ extern "C" { // GstVideoFieldOrder //========================================================================= #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] pub fn gst_video_field_order_get_type() -> GType; #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] pub fn gst_video_field_order_from_string(order: *const c_char) -> GstVideoFieldOrder; #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] pub fn gst_video_field_order_to_string(order: GstVideoFieldOrder) -> *const c_char; //========================================================================= @@ -2429,6 +2444,7 @@ extern "C" { // GstVideoOrientationMethod //========================================================================= #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_video_orientation_method_get_type() -> GType; //========================================================================= @@ -2456,8 +2472,10 @@ extern "C" { //========================================================================= pub fn gst_video_transfer_function_get_type() -> GType; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_video_transfer_function_from_iso(value: c_uint) -> GstVideoTransferFunction; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_video_transfer_function_is_equivalent( from_func: GstVideoTransferFunction, from_bpp: c_uint, @@ -2465,12 +2483,14 @@ extern "C" { to_bpp: c_uint, ) -> gboolean; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_video_transfer_function_to_iso(func: GstVideoTransferFunction) -> c_uint; //========================================================================= // GstVideoVBIParserResult //========================================================================= #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_video_vbi_parser_result_get_type() -> GType; //========================================================================= @@ -2522,6 +2542,7 @@ extern "C" { // GstVideoOverlayFormatFlags //========================================================================= #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_video_overlay_format_flags_get_type() -> GType; //========================================================================= @@ -2543,12 +2564,14 @@ extern "C" { // GstVideoTimeCodeFlags //========================================================================= #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_video_time_code_flags_get_type() -> GType; //========================================================================= // GstVideoAFDMeta //========================================================================= #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_video_afd_meta_get_info() -> *const gst::GstMetaInfo; //========================================================================= @@ -2569,12 +2592,14 @@ extern "C" { // GstVideoBarMeta //========================================================================= #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_video_bar_meta_get_info() -> *const gst::GstMetaInfo; //========================================================================= // GstVideoCaptionMeta //========================================================================= #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_video_caption_meta_get_info() -> *const gst::GstMetaInfo; //========================================================================= @@ -2636,23 +2661,28 @@ extern "C" { // GstVideoContentLightLevel //========================================================================= #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_video_content_light_level_add_to_caps( linfo: *const GstVideoContentLightLevel, caps: *mut gst::GstCaps, ) -> gboolean; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_video_content_light_level_from_caps( linfo: *mut GstVideoContentLightLevel, caps: *const gst::GstCaps, ) -> gboolean; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_video_content_light_level_from_string( linfo: *mut GstVideoContentLightLevel, level: *const c_char, ) -> gboolean; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_video_content_light_level_init(linfo: *mut GstVideoContentLightLevel); #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_video_content_light_level_to_string( linfo: *const GstVideoContentLightLevel, ) -> *mut c_char; @@ -2707,6 +2737,7 @@ extern "C" { // GstVideoFormatInfo //========================================================================= #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_video_format_info_component( info: *const GstVideoFormatInfo, plane: c_uint, @@ -2754,6 +2785,7 @@ extern "C" { pub fn gst_video_info_align(info: *mut GstVideoInfo, align: *mut GstVideoAlignment) -> gboolean; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_video_info_align_full( info: *mut GstVideoInfo, align: *mut GstVideoAlignment, @@ -2782,6 +2814,7 @@ extern "C" { height: c_uint, ) -> gboolean; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_video_info_set_interlaced_format( info: *mut GstVideoInfo, format: GstVideoFormat, @@ -2795,27 +2828,33 @@ extern "C" { // GstVideoMasteringDisplayInfo //========================================================================= #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_video_mastering_display_info_add_to_caps( minfo: *const GstVideoMasteringDisplayInfo, caps: *mut gst::GstCaps, ) -> gboolean; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_video_mastering_display_info_from_caps( minfo: *mut GstVideoMasteringDisplayInfo, caps: *const gst::GstCaps, ) -> gboolean; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_video_mastering_display_info_init(minfo: *mut GstVideoMasteringDisplayInfo); #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_video_mastering_display_info_is_equal( minfo: *const GstVideoMasteringDisplayInfo, other: *const GstVideoMasteringDisplayInfo, ) -> gboolean; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_video_mastering_display_info_to_string( minfo: *const GstVideoMasteringDisplayInfo, ) -> *mut c_char; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_video_mastering_display_info_from_string( minfo: *mut GstVideoMasteringDisplayInfo, mastering: *const c_char, @@ -2825,11 +2864,13 @@ extern "C" { // GstVideoMeta //========================================================================= #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_video_meta_get_plane_height( meta: *mut GstVideoMeta, plane_height: *mut c_uint, ) -> gboolean; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_video_meta_get_plane_size( meta: *mut GstVideoMeta, plane_size: *mut size_t, @@ -2843,6 +2884,7 @@ extern "C" { flags: gst::GstMapFlags, ) -> gboolean; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_video_meta_set_alignment( meta: *mut GstVideoMeta, alignment: GstVideoAlignment, @@ -2967,11 +3009,13 @@ extern "C" { // GstVideoRegionOfInterestMeta //========================================================================= #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_video_region_of_interest_meta_add_param( meta: *mut GstVideoRegionOfInterestMeta, s: *mut gst::GstStructure, ); #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_video_region_of_interest_meta_get_param( meta: *mut GstVideoRegionOfInterestMeta, name: *const c_char, @@ -3053,8 +3097,10 @@ extern "C" { // GstVideoTimeCode //========================================================================= #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_video_time_code_get_type() -> GType; #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_video_time_code_new( fps_n: c_uint, fps_d: c_uint, @@ -3067,8 +3113,10 @@ extern "C" { field_count: c_uint, ) -> *mut GstVideoTimeCode; #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_video_time_code_new_empty() -> *mut GstVideoTimeCode; #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] pub fn gst_video_time_code_new_from_date_time( fps_n: c_uint, fps_d: c_uint, @@ -3077,6 +3125,7 @@ extern "C" { field_count: c_uint, ) -> *mut GstVideoTimeCode; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_video_time_code_new_from_date_time_full( fps_n: c_uint, fps_d: c_uint, @@ -3085,30 +3134,40 @@ extern "C" { field_count: c_uint, ) -> *mut GstVideoTimeCode; #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] pub fn gst_video_time_code_new_from_string(tc_str: *const c_char) -> *mut GstVideoTimeCode; #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_video_time_code_add_frames(tc: *mut GstVideoTimeCode, frames: i64); #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] pub fn gst_video_time_code_add_interval( tc: *const GstVideoTimeCode, tc_inter: *const GstVideoTimeCodeInterval, ) -> *mut GstVideoTimeCode; #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_video_time_code_clear(tc: *mut GstVideoTimeCode); #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_video_time_code_compare( tc1: *const GstVideoTimeCode, tc2: *const GstVideoTimeCode, ) -> c_int; #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_video_time_code_copy(tc: *const GstVideoTimeCode) -> *mut GstVideoTimeCode; #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_video_time_code_frames_since_daily_jam(tc: *const GstVideoTimeCode) -> u64; #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_video_time_code_free(tc: *mut GstVideoTimeCode); #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_video_time_code_increment_frame(tc: *mut GstVideoTimeCode); #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_video_time_code_init( tc: *mut GstVideoTimeCode, fps_n: c_uint, @@ -3122,6 +3181,7 @@ extern "C" { field_count: c_uint, ); #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] pub fn gst_video_time_code_init_from_date_time( tc: *mut GstVideoTimeCode, fps_n: c_uint, @@ -3131,6 +3191,7 @@ extern "C" { field_count: c_uint, ); #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_video_time_code_init_from_date_time_full( tc: *mut GstVideoTimeCode, fps_n: c_uint, @@ -3140,20 +3201,26 @@ extern "C" { field_count: c_uint, ) -> gboolean; #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_video_time_code_is_valid(tc: *const GstVideoTimeCode) -> gboolean; #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_video_time_code_nsec_since_daily_jam(tc: *const GstVideoTimeCode) -> u64; #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_video_time_code_to_date_time(tc: *const GstVideoTimeCode) -> *mut glib::GDateTime; #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_video_time_code_to_string(tc: *const GstVideoTimeCode) -> *mut c_char; //========================================================================= // GstVideoTimeCodeInterval //========================================================================= #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] pub fn gst_video_time_code_interval_get_type() -> GType; #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] pub fn gst_video_time_code_interval_new( hours: c_uint, minutes: c_uint, @@ -3161,18 +3228,23 @@ extern "C" { frames: c_uint, ) -> *mut GstVideoTimeCodeInterval; #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] pub fn gst_video_time_code_interval_new_from_string( tc_inter_str: *const c_char, ) -> *mut GstVideoTimeCodeInterval; #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] pub fn gst_video_time_code_interval_clear(tc: *mut GstVideoTimeCodeInterval); #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] pub fn gst_video_time_code_interval_copy( tc: *const GstVideoTimeCodeInterval, ) -> *mut GstVideoTimeCodeInterval; #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] pub fn gst_video_time_code_interval_free(tc: *mut GstVideoTimeCodeInterval); #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] pub fn gst_video_time_code_interval_init( tc: *mut GstVideoTimeCodeInterval, hours: c_uint, @@ -3185,19 +3257,23 @@ extern "C" { // GstVideoTimeCodeMeta //========================================================================= #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_video_time_code_meta_get_info() -> *const gst::GstMetaInfo; //========================================================================= // GstVideoVBIEncoder //========================================================================= #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_video_vbi_encoder_get_type() -> GType; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_video_vbi_encoder_new( format: GstVideoFormat, pixel_width: u32, ) -> *mut GstVideoVBIEncoder; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_video_vbi_encoder_add_ancillary( encoder: *mut GstVideoVBIEncoder, composite: gboolean, @@ -3207,31 +3283,40 @@ extern "C" { data_count: c_uint, ) -> gboolean; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_video_vbi_encoder_copy( encoder: *const GstVideoVBIEncoder, ) -> *mut GstVideoVBIEncoder; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_video_vbi_encoder_free(encoder: *mut GstVideoVBIEncoder); #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_video_vbi_encoder_write_line(encoder: *mut GstVideoVBIEncoder, data: *mut u8); //========================================================================= // GstVideoVBIParser //========================================================================= #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_video_vbi_parser_get_type() -> GType; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_video_vbi_parser_new( format: GstVideoFormat, pixel_width: u32, ) -> *mut GstVideoVBIParser; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_video_vbi_parser_add_line(parser: *mut GstVideoVBIParser, data: *const u8); #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_video_vbi_parser_copy(parser: *const GstVideoVBIParser) -> *mut GstVideoVBIParser; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_video_vbi_parser_free(parser: *mut GstVideoVBIParser); #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_video_vbi_parser_get_ancillary( parser: *mut GstVideoVBIParser, anc: *mut GstVideoAncillary, @@ -3246,14 +3331,17 @@ extern "C" { // GstVideoAggregator //========================================================================= #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_video_aggregator_get_type() -> GType; //========================================================================= // GstVideoAggregatorConvertPad //========================================================================= #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_video_aggregator_convert_pad_get_type() -> GType; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_video_aggregator_convert_pad_update_conversion_info( pad: *mut GstVideoAggregatorConvertPad, ); @@ -3262,19 +3350,24 @@ extern "C" { // GstVideoAggregatorPad //========================================================================= #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_video_aggregator_pad_get_type() -> GType; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_video_aggregator_pad_get_current_buffer( pad: *mut GstVideoAggregatorPad, ) -> *mut gst::GstBuffer; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_video_aggregator_pad_get_prepared_frame( pad: *mut GstVideoAggregatorPad, ) -> *mut GstVideoFrame; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_video_aggregator_pad_has_current_buffer(pad: *mut GstVideoAggregatorPad) -> gboolean; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_video_aggregator_pad_set_needs_alpha( pad: *mut GstVideoAggregatorPad, needs_alpha: gboolean, @@ -3299,6 +3392,7 @@ extern "C" { frame: *mut GstVideoCodecFrame, ) -> gst::GstFlowReturn; #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] pub fn gst_video_decoder_allocate_output_frame_with_params( decoder: *mut GstVideoDecoder, frame: *mut GstVideoCodecFrame, @@ -3364,6 +3458,7 @@ extern "C" { ); pub fn gst_video_decoder_set_estimate_rate(dec: *mut GstVideoDecoder, enabled: gboolean); #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_video_decoder_set_interlaced_output_state( decoder: *mut GstVideoDecoder, fmt: GstVideoFormat, @@ -3410,6 +3505,7 @@ extern "C" { frame: *mut GstVideoCodecFrame, ) -> gst::GstFlowReturn; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_video_encoder_finish_subframe( encoder: *mut GstVideoEncoder, frame: *mut GstVideoCodecFrame, @@ -3430,11 +3526,13 @@ extern "C" { max_latency: *mut gst::GstClockTime, ); #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_video_encoder_get_max_encode_time( encoder: *mut GstVideoEncoder, frame: *mut GstVideoCodecFrame, ) -> gst::GstClockTimeDiff; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_video_encoder_get_min_force_key_unit_interval( encoder: *mut GstVideoEncoder, ) -> gst::GstClockTime; @@ -3445,6 +3543,7 @@ extern "C" { encoder: *mut GstVideoEncoder, ) -> *mut GstVideoCodecState; #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_video_encoder_is_qos_enabled(encoder: *mut GstVideoEncoder) -> gboolean; pub fn gst_video_encoder_merge_tags( encoder: *mut GstVideoEncoder, @@ -3464,6 +3563,7 @@ extern "C" { max_latency: gst::GstClockTime, ); #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_video_encoder_set_min_force_key_unit_interval( encoder: *mut GstVideoEncoder, interval: gst::GstClockTime, @@ -3475,6 +3575,7 @@ extern "C" { reference: *mut GstVideoCodecState, ) -> *mut GstVideoCodecState; #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_video_encoder_set_qos_enabled(encoder: *mut GstVideoEncoder, enabled: gboolean); //========================================================================= @@ -3545,6 +3646,7 @@ extern "C" { y: *mut c_double, ) -> gboolean; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_navigation_event_parse_mouse_scroll_event( event: *mut gst::GstEvent, x: *mut c_double, @@ -3633,6 +3735,7 @@ extern "C" { y: c_double, ); #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_navigation_send_mouse_scroll_event( navigation: *mut GstNavigation, x: c_double, @@ -3645,6 +3748,7 @@ extern "C" { // GstVideoDirection //========================================================================= #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_video_direction_get_type() -> GType; //========================================================================= @@ -3689,11 +3793,13 @@ extern "C" { //========================================================================= pub fn gst_video_overlay_get_type() -> GType; #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_video_overlay_install_properties( oclass: *mut gobject::GObjectClass, last_prop_id: c_int, ); #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_video_overlay_set_property( object: *mut gobject::GObject, last_prop_id: c_int, @@ -3717,6 +3823,7 @@ extern "C" { // Other functions //========================================================================= #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_buffer_add_video_afd_meta( buffer: *mut gst::GstBuffer, field: u8, @@ -3727,6 +3834,7 @@ extern "C" { buffer: *mut gst::GstBuffer, ) -> *mut GstVideoAffineTransformationMeta; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_buffer_add_video_bar_meta( buffer: *mut gst::GstBuffer, field: u8, @@ -3735,6 +3843,7 @@ extern "C" { bar_data2: c_uint, ) -> *mut GstVideoBarMeta; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_buffer_add_video_caption_meta( buffer: *mut gst::GstBuffer, caption_type: GstVideoCaptionType, @@ -3789,11 +3898,13 @@ extern "C" { h: c_uint, ) -> *mut GstVideoRegionOfInterestMeta; #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_buffer_add_video_time_code_meta( buffer: *mut gst::GstBuffer, tc: *const GstVideoTimeCode, ) -> *mut GstVideoTimeCodeMeta; #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_buffer_add_video_time_code_meta_full( buffer: *mut gst::GstBuffer, fps_n: c_uint, @@ -3827,9 +3938,11 @@ extern "C" { msg: *mut gst::GstMessage, ) -> gboolean; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_video_afd_meta_api_get_type() -> GType; pub fn gst_video_affine_transformation_meta_api_get_type() -> GType; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_video_bar_meta_api_get_type() -> GType; pub fn gst_video_blend( dest: *mut GstVideoFrame, @@ -3857,6 +3970,7 @@ extern "C" { display_par_d: c_uint, ) -> gboolean; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_video_caption_meta_api_get_type() -> GType; pub fn gst_video_chroma_from_string(s: *const c_char) -> GstVideoChromaSite; pub fn gst_video_chroma_resample( @@ -3921,6 +4035,7 @@ extern "C" { count: *mut c_uint, ) -> gboolean; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_video_formats_raw(len: *mut c_uint) -> *const GstVideoFormat; pub fn gst_video_gl_texture_upload_meta_api_get_type() -> GType; pub fn gst_video_guess_framerate( @@ -3929,11 +4044,13 @@ extern "C" { dest_d: *mut c_int, ) -> gboolean; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_video_make_raw_caps( formats: *const GstVideoFormat, len: c_uint, ) -> *mut gst::GstCaps; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_video_make_raw_caps_with_features( formats: *const GstVideoFormat, len: c_uint, @@ -3967,6 +4084,7 @@ extern "C" { y_tiles: c_int, ) -> c_uint; #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_video_time_code_meta_api_get_type() -> GType; } diff --git a/gstreamer-video/sys/tests/abi.rs b/gstreamer-video/sys/tests/abi.rs index ccfe9aa6f..5f12ceb2a 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 @ db37199) -// from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae9689) +// from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de) // DO NOT EDIT extern crate gstreamer_video_sys; diff --git a/gstreamer-video/sys/tests/constant.c b/gstreamer-video/sys/tests/constant.c index 7a1c810ac..3658ebe72 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 @ db37199) -// from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae9689) +// from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-video/sys/tests/layout.c b/gstreamer-video/sys/tests/layout.c index 291623e9a..b418a479d 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 @ db37199) -// from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae9689) +// from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-webrtc/src/auto/enums.rs b/gstreamer-webrtc/src/auto/enums.rs index 3f25d0b4b..9dfa1294e 100644 --- a/gstreamer-webrtc/src/auto/enums.rs +++ b/gstreamer-webrtc/src/auto/enums.rs @@ -13,6 +13,7 @@ use gobject_sys; use gst_web_rtc_sys; #[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] pub enum WebRTCBundlePolicy { @@ -25,6 +26,7 @@ pub enum WebRTCBundlePolicy { } #[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[doc(hidden)] impl ToGlib for WebRTCBundlePolicy { type GlibType = gst_web_rtc_sys::GstWebRTCBundlePolicy; @@ -41,6 +43,7 @@ impl ToGlib for WebRTCBundlePolicy { } #[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[doc(hidden)] impl FromGlib for WebRTCBundlePolicy { fn from_glib(value: gst_web_rtc_sys::GstWebRTCBundlePolicy) -> Self { @@ -56,6 +59,7 @@ impl FromGlib for WebRTCBundlePolicy { } #[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] impl StaticType for WebRTCBundlePolicy { fn static_type() -> Type { unsafe { from_glib(gst_web_rtc_sys::gst_webrtc_bundle_policy_get_type()) } @@ -63,6 +67,7 @@ impl StaticType for WebRTCBundlePolicy { } #[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] impl<'a> FromValueOptional<'a> for WebRTCBundlePolicy { unsafe fn from_value_optional(value: &Value) -> Option { Some(FromValue::from_value(value)) @@ -70,6 +75,7 @@ impl<'a> FromValueOptional<'a> for WebRTCBundlePolicy { } #[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] impl<'a> FromValue<'a> for WebRTCBundlePolicy { unsafe fn from_value(value: &Value) -> Self { from_glib(gobject_sys::g_value_get_enum(value.to_glib_none().0)) @@ -77,6 +83,7 @@ impl<'a> FromValue<'a> for WebRTCBundlePolicy { } #[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] impl SetValue for WebRTCBundlePolicy { unsafe fn set_value(value: &mut Value, this: &Self) { gobject_sys::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib()) @@ -223,6 +230,7 @@ impl SetValue for WebRTCDTLSTransportState { } #[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] pub enum WebRTCDataChannelState { @@ -236,6 +244,7 @@ pub enum WebRTCDataChannelState { } #[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[doc(hidden)] impl ToGlib for WebRTCDataChannelState { type GlibType = gst_web_rtc_sys::GstWebRTCDataChannelState; @@ -257,6 +266,7 @@ impl ToGlib for WebRTCDataChannelState { } #[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[doc(hidden)] impl FromGlib for WebRTCDataChannelState { fn from_glib(value: gst_web_rtc_sys::GstWebRTCDataChannelState) -> Self { @@ -273,6 +283,7 @@ impl FromGlib for WebRTCDataChannelS } #[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] impl StaticType for WebRTCDataChannelState { fn static_type() -> Type { unsafe { from_glib(gst_web_rtc_sys::gst_webrtc_data_channel_state_get_type()) } @@ -280,6 +291,7 @@ impl StaticType for WebRTCDataChannelState { } #[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] impl<'a> FromValueOptional<'a> for WebRTCDataChannelState { unsafe fn from_value_optional(value: &Value) -> Option { Some(FromValue::from_value(value)) @@ -287,6 +299,7 @@ impl<'a> FromValueOptional<'a> for WebRTCDataChannelState { } #[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] impl<'a> FromValue<'a> for WebRTCDataChannelState { unsafe fn from_value(value: &Value) -> Self { from_glib(gobject_sys::g_value_get_enum(value.to_glib_none().0)) @@ -294,6 +307,7 @@ impl<'a> FromValue<'a> for WebRTCDataChannelState { } #[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] impl SetValue for WebRTCDataChannelState { unsafe fn set_value(value: &mut Value, this: &Self) { gobject_sys::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib()) @@ -301,6 +315,7 @@ impl SetValue for WebRTCDataChannelState { } #[cfg(any(feature = "v1_14_1", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14_1")))] #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] pub enum WebRTCFECType { @@ -311,6 +326,7 @@ pub enum WebRTCFECType { } #[cfg(any(feature = "v1_14_1", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14_1")))] #[doc(hidden)] impl ToGlib for WebRTCFECType { type GlibType = gst_web_rtc_sys::GstWebRTCFECType; @@ -325,6 +341,7 @@ impl ToGlib for WebRTCFECType { } #[cfg(any(feature = "v1_14_1", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14_1")))] #[doc(hidden)] impl FromGlib for WebRTCFECType { fn from_glib(value: gst_web_rtc_sys::GstWebRTCFECType) -> Self { @@ -338,6 +355,7 @@ impl FromGlib for WebRTCFECType { } #[cfg(any(feature = "v1_14_1", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14_1")))] impl StaticType for WebRTCFECType { fn static_type() -> Type { unsafe { from_glib(gst_web_rtc_sys::gst_webrtc_fec_type_get_type()) } @@ -345,6 +363,7 @@ impl StaticType for WebRTCFECType { } #[cfg(any(feature = "v1_14_1", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14_1")))] impl<'a> FromValueOptional<'a> for WebRTCFECType { unsafe fn from_value_optional(value: &Value) -> Option { Some(FromValue::from_value(value)) @@ -352,6 +371,7 @@ impl<'a> FromValueOptional<'a> for WebRTCFECType { } #[cfg(any(feature = "v1_14_1", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14_1")))] impl<'a> FromValue<'a> for WebRTCFECType { unsafe fn from_value(value: &Value) -> Self { from_glib(gobject_sys::g_value_get_enum(value.to_glib_none().0)) @@ -359,6 +379,7 @@ impl<'a> FromValue<'a> for WebRTCFECType { } #[cfg(any(feature = "v1_14_1", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14_1")))] impl SetValue for WebRTCFECType { unsafe fn set_value(value: &mut Value, this: &Self) { gobject_sys::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib()) @@ -632,6 +653,7 @@ impl SetValue for WebRTCICERole { } #[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] pub enum WebRTCICETransportPolicy { @@ -642,6 +664,7 @@ pub enum WebRTCICETransportPolicy { } #[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[doc(hidden)] impl ToGlib for WebRTCICETransportPolicy { type GlibType = gst_web_rtc_sys::GstWebRTCICETransportPolicy; @@ -658,6 +681,7 @@ impl ToGlib for WebRTCICETransportPolicy { } #[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[doc(hidden)] impl FromGlib for WebRTCICETransportPolicy { fn from_glib(value: gst_web_rtc_sys::GstWebRTCICETransportPolicy) -> Self { @@ -671,6 +695,7 @@ impl FromGlib for WebRTCICETranspo } #[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] impl StaticType for WebRTCICETransportPolicy { fn static_type() -> Type { unsafe { from_glib(gst_web_rtc_sys::gst_webrtc_ice_transport_policy_get_type()) } @@ -678,6 +703,7 @@ impl StaticType for WebRTCICETransportPolicy { } #[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] impl<'a> FromValueOptional<'a> for WebRTCICETransportPolicy { unsafe fn from_value_optional(value: &Value) -> Option { Some(FromValue::from_value(value)) @@ -685,6 +711,7 @@ impl<'a> FromValueOptional<'a> for WebRTCICETransportPolicy { } #[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] impl<'a> FromValue<'a> for WebRTCICETransportPolicy { unsafe fn from_value(value: &Value) -> Self { from_glib(gobject_sys::g_value_get_enum(value.to_glib_none().0)) @@ -692,6 +719,7 @@ impl<'a> FromValue<'a> for WebRTCICETransportPolicy { } #[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] impl SetValue for WebRTCICETransportPolicy { unsafe fn set_value(value: &mut Value, this: &Self) { gobject_sys::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib()) @@ -779,6 +807,7 @@ impl SetValue for WebRTCPeerConnectionState { } #[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] pub enum WebRTCPriorityType { @@ -791,6 +820,7 @@ pub enum WebRTCPriorityType { } #[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[doc(hidden)] impl ToGlib for WebRTCPriorityType { type GlibType = gst_web_rtc_sys::GstWebRTCPriorityType; @@ -807,6 +837,7 @@ impl ToGlib for WebRTCPriorityType { } #[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[doc(hidden)] impl FromGlib for WebRTCPriorityType { fn from_glib(value: gst_web_rtc_sys::GstWebRTCPriorityType) -> Self { @@ -822,6 +853,7 @@ impl FromGlib for WebRTCPriorityType { } #[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] impl StaticType for WebRTCPriorityType { fn static_type() -> Type { unsafe { from_glib(gst_web_rtc_sys::gst_webrtc_priority_type_get_type()) } @@ -829,6 +861,7 @@ impl StaticType for WebRTCPriorityType { } #[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] impl<'a> FromValueOptional<'a> for WebRTCPriorityType { unsafe fn from_value_optional(value: &Value) -> Option { Some(FromValue::from_value(value)) @@ -836,6 +869,7 @@ impl<'a> FromValueOptional<'a> for WebRTCPriorityType { } #[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] impl<'a> FromValue<'a> for WebRTCPriorityType { unsafe fn from_value(value: &Value) -> Self { from_glib(gobject_sys::g_value_get_enum(value.to_glib_none().0)) @@ -843,6 +877,7 @@ impl<'a> FromValue<'a> for WebRTCPriorityType { } #[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] impl SetValue for WebRTCPriorityType { unsafe fn set_value(value: &mut Value, this: &Self) { gobject_sys::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib()) @@ -927,6 +962,7 @@ impl SetValue for WebRTCRTPTransceiverDirection { } #[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] pub enum WebRTCSCTPTransportState { @@ -939,6 +975,7 @@ pub enum WebRTCSCTPTransportState { } #[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[doc(hidden)] impl ToGlib for WebRTCSCTPTransportState { type GlibType = gst_web_rtc_sys::GstWebRTCSCTPTransportState; @@ -961,6 +998,7 @@ impl ToGlib for WebRTCSCTPTransportState { } #[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[doc(hidden)] impl FromGlib for WebRTCSCTPTransportState { fn from_glib(value: gst_web_rtc_sys::GstWebRTCSCTPTransportState) -> Self { @@ -976,6 +1014,7 @@ impl FromGlib for WebRTCSCTPTransp } #[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] impl StaticType for WebRTCSCTPTransportState { fn static_type() -> Type { unsafe { from_glib(gst_web_rtc_sys::gst_webrtc_sctp_transport_state_get_type()) } @@ -983,6 +1022,7 @@ impl StaticType for WebRTCSCTPTransportState { } #[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] impl<'a> FromValueOptional<'a> for WebRTCSCTPTransportState { unsafe fn from_value_optional(value: &Value) -> Option { Some(FromValue::from_value(value)) @@ -990,6 +1030,7 @@ impl<'a> FromValueOptional<'a> for WebRTCSCTPTransportState { } #[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] impl<'a> FromValue<'a> for WebRTCSCTPTransportState { unsafe fn from_value(value: &Value) -> Self { from_glib(gobject_sys::g_value_get_enum(value.to_glib_none().0)) @@ -997,6 +1038,7 @@ impl<'a> FromValue<'a> for WebRTCSCTPTransportState { } #[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] impl SetValue for WebRTCSCTPTransportState { unsafe fn set_value(value: &mut Value, this: &Self) { gobject_sys::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib()) diff --git a/gstreamer-webrtc/src/auto/mod.rs b/gstreamer-webrtc/src/auto/mod.rs index 723f2b500..bf1eac3f0 100644 --- a/gstreamer-webrtc/src/auto/mod.rs +++ b/gstreamer-webrtc/src/auto/mod.rs @@ -6,8 +6,10 @@ mod web_rtcdtls_transport; pub use self::web_rtcdtls_transport::WebRTCDTLSTransport; #[cfg(any(feature = "v1_18", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] mod web_rtc_data_channel; #[cfg(any(feature = "v1_18", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub use self::web_rtc_data_channel::WebRTCDataChannel; mod web_rtcice_transport; @@ -27,24 +29,30 @@ pub use self::web_rtc_session_description::WebRTCSessionDescription; mod enums; #[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub use self::enums::WebRTCBundlePolicy; pub use self::enums::WebRTCDTLSSetup; pub use self::enums::WebRTCDTLSTransportState; #[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub use self::enums::WebRTCDataChannelState; #[cfg(any(feature = "v1_14_1", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14_1")))] pub use self::enums::WebRTCFECType; pub use self::enums::WebRTCICEComponent; pub use self::enums::WebRTCICEConnectionState; pub use self::enums::WebRTCICEGatheringState; pub use self::enums::WebRTCICERole; #[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub use self::enums::WebRTCICETransportPolicy; pub use self::enums::WebRTCPeerConnectionState; #[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub use self::enums::WebRTCPriorityType; pub use self::enums::WebRTCRTPTransceiverDirection; #[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub use self::enums::WebRTCSCTPTransportState; pub use self::enums::WebRTCSDPType; pub use self::enums::WebRTCSignalingState; diff --git a/gstreamer-webrtc/src/auto/versions.txt b/gstreamer-webrtc/src/auto/versions.txt index 03f3faacf..df0f8cdd5 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 @ db37199) -from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e) +Generated by gir (https://github.com/gtk-rs/gir @ 1ae9689) +from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de) diff --git a/gstreamer-webrtc/src/auto/web_rtc_data_channel.rs b/gstreamer-webrtc/src/auto/web_rtc_data_channel.rs index 172b67bee..8a37d144c 100644 --- a/gstreamer-webrtc/src/auto/web_rtc_data_channel.rs +++ b/gstreamer-webrtc/src/auto/web_rtc_data_channel.rs @@ -30,6 +30,7 @@ glib_wrapper! { impl WebRTCDataChannel { #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn close(&self) { unsafe { gst_web_rtc_sys::gst_webrtc_data_channel_close(self.to_glib_none().0); @@ -37,6 +38,7 @@ impl WebRTCDataChannel { } #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn on_buffered_amount_low(&self) { unsafe { gst_web_rtc_sys::gst_webrtc_data_channel_on_buffered_amount_low(self.to_glib_none().0); @@ -44,6 +46,7 @@ impl WebRTCDataChannel { } #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn on_close(&self) { unsafe { gst_web_rtc_sys::gst_webrtc_data_channel_on_close(self.to_glib_none().0); @@ -51,6 +54,7 @@ impl WebRTCDataChannel { } #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn on_message_data(&self, data: Option<&glib::Bytes>) { unsafe { gst_web_rtc_sys::gst_webrtc_data_channel_on_message_data( @@ -61,6 +65,7 @@ impl WebRTCDataChannel { } #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn on_message_string(&self, str: Option<&str>) { unsafe { gst_web_rtc_sys::gst_webrtc_data_channel_on_message_string( @@ -71,6 +76,7 @@ impl WebRTCDataChannel { } #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn on_open(&self) { unsafe { gst_web_rtc_sys::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")))] pub fn send_data(&self, data: Option<&glib::Bytes>) { unsafe { gst_web_rtc_sys::gst_webrtc_data_channel_send_data( @@ -88,6 +95,7 @@ impl WebRTCDataChannel { } #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn send_string(&self, str: Option<&str>) { unsafe { gst_web_rtc_sys::gst_webrtc_data_channel_send_string( diff --git a/gstreamer-webrtc/src/auto/web_rtcrtp_transceiver.rs b/gstreamer-webrtc/src/auto/web_rtcrtp_transceiver.rs index 008c9d2c4..63c6b9258 100644 --- a/gstreamer-webrtc/src/auto/web_rtcrtp_transceiver.rs +++ b/gstreamer-webrtc/src/auto/web_rtcrtp_transceiver.rs @@ -4,23 +4,29 @@ use glib::object::ObjectType as ObjectType_; #[cfg(any(feature = "v1_18", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] use glib::signal::connect_raw; #[cfg(any(feature = "v1_18", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] use glib::signal::SignalHandlerId; use glib::translate::*; use glib::StaticType; use glib::Value; #[cfg(any(feature = "v1_18", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] use glib_sys; use gobject_sys; use gst_web_rtc_sys; #[cfg(any(feature = "v1_18", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] use std::boxed::Box as Box_; #[cfg(any(feature = "v1_18", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] use std::mem::transmute; use WebRTCRTPReceiver; use WebRTCRTPSender; #[cfg(any(feature = "v1_18", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] use WebRTCRTPTransceiverDirection; glib_wrapper! { @@ -33,6 +39,7 @@ glib_wrapper! { impl WebRTCRTPTransceiver { #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn get_property_direction(&self) -> WebRTCRTPTransceiverDirection { unsafe { let mut value = @@ -50,6 +57,7 @@ impl WebRTCRTPTransceiver { } #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn set_property_direction(&self, direction: WebRTCRTPTransceiverDirection) { unsafe { gobject_sys::g_object_set_property( @@ -104,6 +112,7 @@ impl WebRTCRTPTransceiver { } #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn connect_property_direction_notify< F: Fn(&WebRTCRTPTransceiver) + Send + Sync + 'static, >( diff --git a/gstreamer-webrtc/sys/build.rs b/gstreamer-webrtc/sys/build.rs index 93a1b219b..eadccf000 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 @ db37199) -// from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae9689) +// from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de) // DO NOT EDIT #[cfg(not(feature = "dox"))] diff --git a/gstreamer-webrtc/sys/src/lib.rs b/gstreamer-webrtc/sys/src/lib.rs index 0c2af7acc..84e16f390 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 @ db37199) -// from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae9689) +// from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de) // DO NOT EDIT #![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)] @@ -8,6 +8,7 @@ clippy::type_complexity, clippy::unreadable_literal )] +#![cfg_attr(feature = "dox", feature(doc_cfg))] extern crate glib_sys as glib; extern crate gobject_sys as gobject; @@ -460,6 +461,7 @@ extern "C" { // GstWebRTCBundlePolicy //========================================================================= #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_webrtc_bundle_policy_get_type() -> GType; //========================================================================= @@ -476,12 +478,14 @@ extern "C" { // GstWebRTCDataChannelState //========================================================================= #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_webrtc_data_channel_state_get_type() -> GType; //========================================================================= // GstWebRTCFECType //========================================================================= #[cfg(any(feature = "v1_14_1", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14_1")))] pub fn gst_webrtc_fec_type_get_type() -> GType; //========================================================================= @@ -508,6 +512,7 @@ extern "C" { // GstWebRTCICETransportPolicy //========================================================================= #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_webrtc_ice_transport_policy_get_type() -> GType; //========================================================================= @@ -519,6 +524,7 @@ extern "C" { // GstWebRTCPriorityType //========================================================================= #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_webrtc_priority_type_get_type() -> GType; //========================================================================= @@ -530,6 +536,7 @@ extern "C" { // GstWebRTCSCTPTransportState //========================================================================= #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_webrtc_sctp_transport_state_get_type() -> GType; //========================================================================= @@ -578,36 +585,46 @@ extern "C" { // GstWebRTCDataChannel //========================================================================= #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_webrtc_data_channel_get_type() -> GType; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_webrtc_data_channel_close(channel: *mut GstWebRTCDataChannel); #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_webrtc_data_channel_on_buffered_amount_low(channel: *mut GstWebRTCDataChannel); #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_webrtc_data_channel_on_close(channel: *mut GstWebRTCDataChannel); #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_webrtc_data_channel_on_error( channel: *mut GstWebRTCDataChannel, error: *mut glib::GError, ); #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_webrtc_data_channel_on_message_data( channel: *mut GstWebRTCDataChannel, data: *mut glib::GBytes, ); #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_webrtc_data_channel_on_message_string( channel: *mut GstWebRTCDataChannel, str: *const c_char, ); #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_webrtc_data_channel_on_open(channel: *mut GstWebRTCDataChannel); #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_webrtc_data_channel_send_data( channel: *mut GstWebRTCDataChannel, data: *mut glib::GBytes, ); #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_webrtc_data_channel_send_string( channel: *mut GstWebRTCDataChannel, str: *const c_char, diff --git a/gstreamer-webrtc/sys/tests/abi.rs b/gstreamer-webrtc/sys/tests/abi.rs index 22d968929..1ae025713 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 @ db37199) -// from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae9689) +// from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de) // DO NOT EDIT extern crate gstreamer_webrtc_sys; diff --git a/gstreamer-webrtc/sys/tests/constant.c b/gstreamer-webrtc/sys/tests/constant.c index 7a1c810ac..3658ebe72 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 @ db37199) -// from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae9689) +// from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-webrtc/sys/tests/layout.c b/gstreamer-webrtc/sys/tests/layout.c index 291623e9a..b418a479d 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 @ db37199) -// from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae9689) +// from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer/src/auto/bin.rs b/gstreamer/src/auto/bin.rs index ade01df14..af440b028 100644 --- a/gstreamer/src/auto/bin.rs +++ b/gstreamer/src/auto/bin.rs @@ -18,6 +18,7 @@ use std::mem::transmute; use ChildProxy; use Element; #[cfg(any(feature = "v1_10", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] use ElementFlags; use Object; use Pad; @@ -59,9 +60,11 @@ pub trait GstBinExt: 'static { 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")))] fn get_suppressed_flags(&self) -> ElementFlags; //#[cfg(any(feature = "v1_18", feature = "dox"))] + //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] //fn iterate_all_by_element_factory_name(&self, factory_name: &str) -> /*Ignored*/Option; //fn iterate_all_by_interface(&self, iface: glib::types::Type) -> /*Ignored*/Option; @@ -83,6 +86,7 @@ pub trait GstBinExt: 'static { //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")))] fn set_suppressed_flags(&self, flags: ElementFlags); fn sync_children_states(&self) -> Result<(), glib::error::BoolError>; @@ -96,12 +100,14 @@ pub trait GstBinExt: 'static { fn set_property_message_forward(&self, message_forward: bool); #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] fn connect_deep_element_added( &self, f: F, ) -> SignalHandlerId; #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] fn connect_deep_element_removed( &self, f: F, @@ -182,6 +188,7 @@ impl> GstBinExt for O { } #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] fn get_suppressed_flags(&self) -> ElementFlags { unsafe { from_glib(gst_sys::gst_bin_get_suppressed_flags( @@ -191,6 +198,7 @@ impl> GstBinExt for O { } //#[cfg(any(feature = "v1_18", feature = "dox"))] + //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] //fn iterate_all_by_element_factory_name(&self, factory_name: &str) -> /*Ignored*/Option { // unsafe { TODO: call gst_sys:gst_bin_iterate_all_by_element_factory_name() } //} @@ -245,6 +253,7 @@ impl> GstBinExt for O { //} #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] fn set_suppressed_flags(&self, flags: ElementFlags) { unsafe { gst_sys::gst_bin_set_suppressed_flags(self.as_ref().to_glib_none().0, flags.to_glib()); @@ -311,6 +320,7 @@ impl> GstBinExt for O { } #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] fn connect_deep_element_added( &self, f: F, @@ -347,6 +357,7 @@ impl> GstBinExt for O { } #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] fn connect_deep_element_removed( &self, f: F, diff --git a/gstreamer/src/auto/bus.rs b/gstreamer/src/auto/bus.rs index 1139aa90c..1f0490d4d 100644 --- a/gstreamer/src/auto/bus.rs +++ b/gstreamer/src/auto/bus.rs @@ -52,6 +52,7 @@ impl Bus { } //#[cfg(any(feature = "v1_14", feature = "dox"))] + //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] //pub fn get_pollfd(&self, fd: /*Ignored*/glib::PollFD) { // unsafe { TODO: call gst_sys:gst_bus_get_pollfd() } //} diff --git a/gstreamer/src/auto/clock.rs b/gstreamer/src/auto/clock.rs index b80856e84..88e134834 100644 --- a/gstreamer/src/auto/clock.rs +++ b/gstreamer/src/auto/clock.rs @@ -33,6 +33,7 @@ impl Clock { //} //#[cfg(any(feature = "v1_16", feature = "dox"))] + //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] //pub fn id_get_clock(id: /*Unimplemented*/ClockID) -> Option { // unsafe { TODO: call gst_sys:gst_clock_id_get_clock() } //} @@ -54,6 +55,7 @@ impl Clock { //} //#[cfg(any(feature = "v1_16", feature = "dox"))] + //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] //pub fn id_uses_clock>(id: /*Unimplemented*/ClockID, clock: &P) -> bool { // unsafe { TODO: call gst_sys:gst_clock_id_uses_clock() } //} diff --git a/gstreamer/src/auto/date_time.rs b/gstreamer/src/auto/date_time.rs index 2792f3c80..e7c720552 100644 --- a/gstreamer/src/auto/date_time.rs +++ b/gstreamer/src/auto/date_time.rs @@ -63,6 +63,7 @@ impl DateTime { } #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn from_unix_epoch_local_time_usecs(usecs: i64) -> DateTime { assert_initialized_main_thread!(); unsafe { @@ -78,6 +79,7 @@ impl DateTime { } #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn from_unix_epoch_utc_usecs(usecs: i64) -> DateTime { assert_initialized_main_thread!(); unsafe { from_glib_full(gst_sys::gst_date_time_new_from_unix_epoch_utc_usecs(usecs)) } diff --git a/gstreamer/src/auto/device_provider.rs b/gstreamer/src/auto/device_provider.rs index 47cc05297..372acc06d 100644 --- a/gstreamer/src/auto/device_provider.rs +++ b/gstreamer/src/auto/device_provider.rs @@ -38,6 +38,7 @@ pub trait DeviceProviderExt: 'static { fn device_add>(&self, device: &P); #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn device_changed, Q: IsA>(&self, device: &P, changed_device: &Q); fn device_remove>(&self, device: &P); @@ -88,6 +89,7 @@ impl> DeviceProviderExt for O { } #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn device_changed, Q: IsA>(&self, device: &P, changed_device: &Q) { unsafe { gst_sys::gst_device_provider_device_changed( diff --git a/gstreamer/src/auto/element.rs b/gstreamer/src/auto/element.rs index 4364d9d76..306ddac5d 100644 --- a/gstreamer/src/auto/element.rs +++ b/gstreamer/src/auto/element.rs @@ -70,12 +70,15 @@ pub trait ElementExt: 'static { fn create_all_pads(&self); #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] fn foreach_pad bool>(&self, func: P) -> bool; #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] 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")))] fn foreach_src_pad bool>(&self, func: P) -> bool; fn get_base_time(&self) -> ClockTime; @@ -146,6 +149,7 @@ pub trait ElementExt: 'static { //fn message_full(&self, type_: /*Ignored*/MessageType, domain: /*Ignored*/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")))] //fn message_full_with_details(&self, type_: /*Ignored*/MessageType, domain: /*Ignored*/glib::Quark, code: i32, text: Option<&str>, debug: Option<&str>, file: &str, function: &str, line: i32, structure: &mut Structure); fn no_more_pads(&self); @@ -222,6 +226,7 @@ impl> ElementExt for O { } #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] fn foreach_pad bool>(&self, func: P) -> bool { let func_data: P = func; unsafe extern "C" fn func_func bool>( @@ -247,6 +252,7 @@ impl> ElementExt for O { } #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] fn foreach_sink_pad bool>(&self, func: P) -> bool { let func_data: P = func; unsafe extern "C" fn func_func bool>( @@ -272,6 +278,7 @@ impl> ElementExt for O { } #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] fn foreach_src_pad bool>(&self, func: P) -> bool { let func_data: P = func; unsafe extern "C" fn func_func bool>( @@ -511,6 +518,7 @@ impl> ElementExt for O { //} //#[cfg(any(feature = "v1_10", feature = "dox"))] + //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] //fn message_full_with_details(&self, type_: /*Ignored*/MessageType, domain: /*Ignored*/glib::Quark, code: i32, text: Option<&str>, debug: Option<&str>, file: &str, function: &str, line: i32, structure: &mut Structure) { // unsafe { TODO: call gst_sys:gst_element_message_full_with_details() } //} diff --git a/gstreamer/src/auto/enums.rs b/gstreamer/src/auto/enums.rs index 0f5fec342..ffbb6ee43 100644 --- a/gstreamer/src/auto/enums.rs +++ b/gstreamer/src/auto/enums.rs @@ -339,6 +339,7 @@ pub enum ClockType { Monotonic, Other, #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] Tai, #[doc(hidden)] __Unknown(i32), @@ -626,6 +627,7 @@ pub enum EventType { Buffersize, SinkMessage, #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] StreamGroupDone, Eos, Toc, @@ -633,6 +635,7 @@ pub enum EventType { SegmentDone, Gap, #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] InstantRateChange, Qos, Seek, @@ -642,8 +645,10 @@ pub enum EventType { Reconfigure, TocSelect, #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] SelectStreams, #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] InstantRateSyncTime, CustomUpstream, CustomDownstream, @@ -1612,6 +1617,7 @@ impl SetValue for ProgressType { } #[cfg(any(feature = "v1_14", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] pub enum PromiseResult { @@ -1624,6 +1630,7 @@ pub enum PromiseResult { } #[cfg(any(feature = "v1_14", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] #[doc(hidden)] impl ToGlib for PromiseResult { type GlibType = gst_sys::GstPromiseResult; @@ -1640,6 +1647,7 @@ impl ToGlib for PromiseResult { } #[cfg(any(feature = "v1_14", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] #[doc(hidden)] impl FromGlib for PromiseResult { fn from_glib(value: gst_sys::GstPromiseResult) -> Self { @@ -1655,6 +1663,7 @@ impl FromGlib for PromiseResult { } #[cfg(any(feature = "v1_14", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] impl StaticType for PromiseResult { fn static_type() -> Type { unsafe { from_glib(gst_sys::gst_promise_result_get_type()) } @@ -1662,6 +1671,7 @@ impl StaticType for PromiseResult { } #[cfg(any(feature = "v1_14", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] impl<'a> FromValueOptional<'a> for PromiseResult { unsafe fn from_value_optional(value: &Value) -> Option { Some(FromValue::from_value(value)) @@ -1669,6 +1679,7 @@ impl<'a> FromValueOptional<'a> for PromiseResult { } #[cfg(any(feature = "v1_14", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] impl<'a> FromValue<'a> for PromiseResult { unsafe fn from_value(value: &Value) -> Self { from_glib(gobject_sys::g_value_get_enum(value.to_glib_none().0)) @@ -1676,6 +1687,7 @@ impl<'a> FromValue<'a> for PromiseResult { } #[cfg(any(feature = "v1_14", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] impl SetValue for PromiseResult { unsafe fn set_value(value: &mut Value, this: &Self) { gobject_sys::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib()) diff --git a/gstreamer/src/auto/flags.rs b/gstreamer/src/auto/flags.rs index c9cfd8066..35407f89e 100644 --- a/gstreamer/src/auto/flags.rs +++ b/gstreamer/src/auto/flags.rs @@ -16,6 +16,7 @@ bitflags! { pub struct BinFlags: u32 { const NO_RESYNC = 16384; #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] const STREAMS_AWARE = 32768; } } @@ -129,6 +130,7 @@ bitflags! { const TAG_MEMORY = 16384; const SYNC_AFTER = 32768; #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] const NON_DROPPABLE = 65536; } } @@ -500,6 +502,7 @@ impl SetValue for MemoryFlags { bitflags! { pub struct ObjectFlags: u32 { #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] const MAY_BE_LEAKED = 1; } } @@ -727,6 +730,7 @@ bitflags! { const FATAL_ERRORS = 1; const NO_SINGLE_ELEMENT_BINS = 2; #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] const PLACE_IN_BIN = 4; } } @@ -820,6 +824,7 @@ impl SetValue for PipelineFlags { } #[cfg(any(feature = "v1_18", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] bitflags! { pub struct PluginAPIFlags: u32 { const MEMBERS = 1; @@ -827,6 +832,7 @@ bitflags! { } #[cfg(any(feature = "v1_18", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[doc(hidden)] impl ToGlib for PluginAPIFlags { type GlibType = gst_sys::GstPluginAPIFlags; @@ -837,6 +843,7 @@ impl ToGlib for PluginAPIFlags { } #[cfg(any(feature = "v1_18", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[doc(hidden)] impl FromGlib for PluginAPIFlags { fn from_glib(value: gst_sys::GstPluginAPIFlags) -> PluginAPIFlags { @@ -846,6 +853,7 @@ impl FromGlib for PluginAPIFlags { } #[cfg(any(feature = "v1_18", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] impl StaticType for PluginAPIFlags { fn static_type() -> Type { unsafe { from_glib(gst_sys::gst_plugin_api_flags_get_type()) } @@ -853,6 +861,7 @@ impl StaticType for PluginAPIFlags { } #[cfg(any(feature = "v1_18", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] impl<'a> FromValueOptional<'a> for PluginAPIFlags { unsafe fn from_value_optional(value: &Value) -> Option { Some(FromValue::from_value(value)) @@ -860,6 +869,7 @@ impl<'a> FromValueOptional<'a> for PluginAPIFlags { } #[cfg(any(feature = "v1_18", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] impl<'a> FromValue<'a> for PluginAPIFlags { unsafe fn from_value(value: &Value) -> Self { from_glib(gobject_sys::g_value_get_flags(value.to_glib_none().0)) @@ -867,6 +877,7 @@ impl<'a> FromValue<'a> for PluginAPIFlags { } #[cfg(any(feature = "v1_18", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] impl SetValue for PluginAPIFlags { unsafe fn set_value(value: &mut Value, this: &Self) { gobject_sys::g_value_set_flags(value.to_glib_none_mut().0, this.to_glib()) @@ -1035,8 +1046,10 @@ bitflags! { const TRICKMODE_KEY_UNITS = 128; const TRICKMODE_NO_AUDIO = 256; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] const TRICKMODE_FORWARD_PREDICTED = 512; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] const INSTANT_RATE_CHANGE = 1024; } } @@ -1091,6 +1104,7 @@ bitflags! { const SEGMENT = 8; const TRICKMODE_KEY_UNITS = 128; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] const TRICKMODE_FORWARD_PREDICTED = 512; const TRICKMODE_NO_AUDIO = 256; } @@ -1138,6 +1152,7 @@ impl SetValue for SegmentFlags { } #[cfg(any(feature = "v1_12", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] bitflags! { pub struct StackTraceFlags: u32 { const FULL = 1; @@ -1145,6 +1160,7 @@ bitflags! { } #[cfg(any(feature = "v1_12", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] #[doc(hidden)] impl ToGlib for StackTraceFlags { type GlibType = gst_sys::GstStackTraceFlags; @@ -1155,6 +1171,7 @@ impl ToGlib for StackTraceFlags { } #[cfg(any(feature = "v1_12", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] #[doc(hidden)] impl FromGlib for StackTraceFlags { fn from_glib(value: gst_sys::GstStackTraceFlags) -> StackTraceFlags { @@ -1164,6 +1181,7 @@ impl FromGlib for StackTraceFlags { } #[cfg(any(feature = "v1_12", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] impl StaticType for StackTraceFlags { fn static_type() -> Type { unsafe { from_glib(gst_sys::gst_stack_trace_flags_get_type()) } @@ -1171,6 +1189,7 @@ impl StaticType for StackTraceFlags { } #[cfg(any(feature = "v1_12", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] impl<'a> FromValueOptional<'a> for StackTraceFlags { unsafe fn from_value_optional(value: &Value) -> Option { Some(FromValue::from_value(value)) @@ -1178,6 +1197,7 @@ impl<'a> FromValueOptional<'a> for StackTraceFlags { } #[cfg(any(feature = "v1_12", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] impl<'a> FromValue<'a> for StackTraceFlags { unsafe fn from_value(value: &Value) -> Self { from_glib(gobject_sys::g_value_get_flags(value.to_glib_none().0)) @@ -1185,6 +1205,7 @@ impl<'a> FromValue<'a> for StackTraceFlags { } #[cfg(any(feature = "v1_12", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] impl SetValue for StackTraceFlags { unsafe fn set_value(value: &mut Value, this: &Self) { gobject_sys::g_value_set_flags(value.to_glib_none_mut().0, this.to_glib()) @@ -1241,6 +1262,7 @@ impl SetValue for StreamFlags { } #[cfg(any(feature = "v1_10", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] bitflags! { pub struct StreamType: u32 { const UNKNOWN = 1; @@ -1252,6 +1274,7 @@ bitflags! { } #[cfg(any(feature = "v1_10", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] #[doc(hidden)] impl ToGlib for StreamType { type GlibType = gst_sys::GstStreamType; @@ -1262,6 +1285,7 @@ impl ToGlib for StreamType { } #[cfg(any(feature = "v1_10", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] #[doc(hidden)] impl FromGlib for StreamType { fn from_glib(value: gst_sys::GstStreamType) -> StreamType { @@ -1271,6 +1295,7 @@ impl FromGlib for StreamType { } #[cfg(any(feature = "v1_10", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] impl StaticType for StreamType { fn static_type() -> Type { unsafe { from_glib(gst_sys::gst_stream_type_get_type()) } @@ -1278,6 +1303,7 @@ impl StaticType for StreamType { } #[cfg(any(feature = "v1_10", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] impl<'a> FromValueOptional<'a> for StreamType { unsafe fn from_value_optional(value: &Value) -> Option { Some(FromValue::from_value(value)) @@ -1285,6 +1311,7 @@ impl<'a> FromValueOptional<'a> for StreamType { } #[cfg(any(feature = "v1_10", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] impl<'a> FromValue<'a> for StreamType { unsafe fn from_value(value: &Value) -> Self { from_glib(gobject_sys::g_value_get_flags(value.to_glib_none().0)) @@ -1292,6 +1319,7 @@ impl<'a> FromValue<'a> for StreamType { } #[cfg(any(feature = "v1_10", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] impl SetValue for StreamType { unsafe fn set_value(value: &mut Value, this: &Self) { gobject_sys::g_value_set_flags(value.to_glib_none_mut().0, this.to_glib()) diff --git a/gstreamer/src/auto/functions.rs b/gstreamer/src/auto/functions.rs index 85820f17f..404d2be75 100644 --- a/gstreamer/src/auto/functions.rs +++ b/gstreamer/src/auto/functions.rs @@ -16,11 +16,14 @@ use DebugGraphDetails; use DebugLevel; use Element; #[cfg(any(feature = "v1_18", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] use PluginAPIFlags; #[cfg(any(feature = "v1_12", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] use StackTraceFlags; #[cfg(any(feature = "v1_14", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn debug_add_ring_buffer_logger(max_size_per_thread: u32, thread_timeout: u32) { skip_assert_initialized!(); unsafe { @@ -74,6 +77,7 @@ pub fn debug_get_default_threshold() -> DebugLevel { } #[cfg(any(feature = "v1_12", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] pub fn debug_get_stack_trace(flags: StackTraceFlags) -> Result { skip_assert_initialized!(); unsafe { @@ -100,6 +104,7 @@ pub fn debug_print_stack_trace() { } #[cfg(any(feature = "v1_14", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn debug_remove_ring_buffer_logger() { skip_assert_initialized!(); unsafe { @@ -108,6 +113,7 @@ pub fn debug_remove_ring_buffer_logger() { } #[cfg(any(feature = "v1_14", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn debug_ring_buffer_logger_get_logs() -> Vec { skip_assert_initialized!(); unsafe { @@ -158,6 +164,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")))] pub fn get_main_executable_path() -> Result { assert_initialized_main_thread!(); unsafe { @@ -213,6 +220,7 @@ pub fn parse_launchv(argv: &[&str]) -> Result { } //#[cfg(any(feature = "v1_18", feature = "dox"))] +//#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] //pub fn tracing_get_active_tracers() -> /*Ignored*/Vec { // unsafe { TODO: call gst_sys:gst_tracing_get_active_tracers() } //} @@ -222,6 +230,7 @@ pub fn parse_launchv(argv: &[&str]) -> Result { //} #[cfg(any(feature = "v1_18", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn type_mark_as_plugin_api(type_: glib::types::Type, flags: PluginAPIFlags) { assert_initialized_main_thread!(); unsafe { diff --git a/gstreamer/src/auto/mod.rs b/gstreamer/src/auto/mod.rs index f0bedf637..902b0d8dc 100644 --- a/gstreamer/src/auto/mod.rs +++ b/gstreamer/src/auto/mod.rs @@ -93,13 +93,17 @@ mod registry; pub use self::registry::Registry; #[cfg(any(feature = "v1_10", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] mod stream; #[cfg(any(feature = "v1_10", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub use self::stream::Stream; #[cfg(any(feature = "v1_10", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] mod stream_collection; #[cfg(any(feature = "v1_10", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub use self::stream_collection::StreamCollection; mod system_clock; @@ -146,6 +150,7 @@ pub use self::enums::ParseError; pub use self::enums::PluginError; pub use self::enums::ProgressType; #[cfg(any(feature = "v1_14", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub use self::enums::PromiseResult; pub use self::enums::QOSType; pub use self::enums::Rank; @@ -185,6 +190,7 @@ pub use self::flags::PadProbeType; pub use self::flags::ParseFlags; pub use self::flags::PipelineFlags; #[cfg(any(feature = "v1_18", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub use self::flags::PluginAPIFlags; pub use self::flags::PluginDependencyFlags; pub use self::flags::PluginFlags; @@ -192,9 +198,11 @@ pub use self::flags::SchedulingFlags; pub use self::flags::SeekFlags; pub use self::flags::SegmentFlags; #[cfg(any(feature = "v1_12", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] pub use self::flags::StackTraceFlags; pub use self::flags::StreamFlags; #[cfg(any(feature = "v1_10", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub use self::flags::StreamType; mod alias; diff --git a/gstreamer/src/auto/pad.rs b/gstreamer/src/auto/pad.rs index c5306a4f8..7db11eb8c 100644 --- a/gstreamer/src/auto/pad.rs +++ b/gstreamer/src/auto/pad.rs @@ -23,12 +23,15 @@ use EventType; use Object; use PadDirection; #[cfg(any(feature = "v1_10", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] use PadLinkCheck; use PadMode; use PadTemplate; #[cfg(any(feature = "v1_10", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] use Stream; #[cfg(any(feature = "v1_12", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] use TaskState; glib_wrapper! { @@ -82,16 +85,19 @@ pub trait PadExt: 'static { fn get_peer(&self) -> Option; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn get_single_internal_link(&self) -> Option; 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")))] fn get_stream(&self) -> Option; fn get_stream_id(&self) -> Option; #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] fn get_task_state(&self) -> TaskState; fn has_current_caps(&self) -> bool; @@ -109,9 +115,11 @@ pub trait PadExt: 'static { //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")))] 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")))] fn link_maybe_ghosting_full>( &self, sink: &P, @@ -298,6 +306,7 @@ impl> PadExt for O { } #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn get_single_internal_link(&self) -> Option { unsafe { from_glib_full(gst_sys::gst_pad_get_single_internal_link( @@ -317,6 +326,7 @@ impl> PadExt for O { } #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] fn get_stream(&self) -> Option { unsafe { from_glib_full(gst_sys::gst_pad_get_stream(self.as_ref().to_glib_none().0)) } } @@ -330,6 +340,7 @@ impl> PadExt for O { } #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] fn get_task_state(&self) -> TaskState { unsafe { from_glib(gst_sys::gst_pad_get_task_state( @@ -371,6 +382,7 @@ impl> PadExt for O { //} #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] fn link_maybe_ghosting>(&self, sink: &P) -> Result<(), glib::error::BoolError> { unsafe { glib_result_from_gboolean!( @@ -384,6 +396,7 @@ impl> PadExt for O { } #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] fn link_maybe_ghosting_full>( &self, sink: &P, diff --git a/gstreamer/src/auto/pad_template.rs b/gstreamer/src/auto/pad_template.rs index 59209ebdb..3876e706d 100644 --- a/gstreamer/src/auto/pad_template.rs +++ b/gstreamer/src/auto/pad_template.rs @@ -50,6 +50,7 @@ impl PadTemplate { } #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn with_gtype( name_template: &str, direction: PadDirection, @@ -75,6 +76,7 @@ impl PadTemplate { } #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn get_documentation_caps(&self) -> Option { unsafe { from_glib_full(gst_sys::gst_pad_template_get_documentation_caps( @@ -93,6 +95,7 @@ impl PadTemplate { } #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn set_documentation_caps(&self, caps: &Caps) { unsafe { gst_sys::gst_pad_template_set_documentation_caps( @@ -118,6 +121,7 @@ impl PadTemplate { } #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn get_property_gtype(&self) -> glib::types::Type { unsafe { let mut value = Value::from_type(::static_type()); diff --git a/gstreamer/src/auto/stream.rs b/gstreamer/src/auto/stream.rs index 02ca81f62..5b189d091 100644 --- a/gstreamer/src/auto/stream.rs +++ b/gstreamer/src/auto/stream.rs @@ -3,29 +3,40 @@ // DO NOT EDIT #[cfg(any(feature = "v1_10", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] use glib::object::ObjectType as ObjectType_; #[cfg(any(feature = "v1_10", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] use glib::signal::connect_raw; #[cfg(any(feature = "v1_10", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] use glib::signal::SignalHandlerId; use glib::translate::*; #[cfg(any(feature = "v1_10", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] use glib::GString; #[cfg(any(feature = "v1_10", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] use glib_sys; use gst_sys; #[cfg(any(feature = "v1_10", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] use std::boxed::Box as Box_; #[cfg(any(feature = "v1_10", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] use std::mem::transmute; #[cfg(any(feature = "v1_10", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] use Caps; use Object; #[cfg(any(feature = "v1_10", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] use StreamFlags; #[cfg(any(feature = "v1_10", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] use StreamType; #[cfg(any(feature = "v1_10", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] use TagList; glib_wrapper! { @@ -38,31 +49,37 @@ glib_wrapper! { impl Stream { #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn get_caps(&self) -> Option { unsafe { from_glib_full(gst_sys::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")))] pub fn get_stream_flags(&self) -> StreamFlags { unsafe { from_glib(gst_sys::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")))] pub fn get_stream_id(&self) -> Option { unsafe { from_glib_none(gst_sys::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")))] pub fn get_stream_type(&self) -> StreamType { unsafe { from_glib(gst_sys::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")))] pub fn get_tags(&self) -> Option { unsafe { from_glib_full(gst_sys::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")))] pub fn set_caps(&self, caps: Option<&Caps>) { unsafe { gst_sys::gst_stream_set_caps(self.to_glib_none().0, caps.to_glib_none().0); @@ -70,6 +87,7 @@ impl Stream { } #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn set_stream_flags(&self, flags: StreamFlags) { unsafe { gst_sys::gst_stream_set_stream_flags(self.to_glib_none().0, flags.to_glib()); @@ -77,6 +95,7 @@ impl Stream { } #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn set_stream_type(&self, stream_type: StreamType) { unsafe { gst_sys::gst_stream_set_stream_type(self.to_glib_none().0, stream_type.to_glib()); @@ -84,6 +103,7 @@ impl Stream { } #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn set_tags(&self, tags: Option<&TagList>) { unsafe { gst_sys::gst_stream_set_tags(self.to_glib_none().0, tags.to_glib_none().0); @@ -91,6 +111,7 @@ impl Stream { } #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn connect_property_caps_notify( &self, f: F, @@ -117,6 +138,7 @@ impl Stream { } #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn connect_property_stream_flags_notify( &self, f: F, @@ -145,6 +167,7 @@ impl Stream { } #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn connect_property_stream_type_notify( &self, f: F, @@ -173,6 +196,7 @@ impl Stream { } #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn connect_property_tags_notify( &self, f: F, diff --git a/gstreamer/src/auto/stream_collection.rs b/gstreamer/src/auto/stream_collection.rs index 1532f093e..93c82737a 100644 --- a/gstreamer/src/auto/stream_collection.rs +++ b/gstreamer/src/auto/stream_collection.rs @@ -4,10 +4,12 @@ use glib::translate::*; #[cfg(any(feature = "v1_10", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] use glib::GString; use gst_sys; use Object; #[cfg(any(feature = "v1_10", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] use Stream; glib_wrapper! { @@ -20,11 +22,13 @@ glib_wrapper! { impl StreamCollection { #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn get_size(&self) -> u32 { unsafe { gst_sys::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")))] pub fn get_stream(&self, index: u32) -> Option { unsafe { from_glib_none(gst_sys::gst_stream_collection_get_stream( @@ -35,6 +39,7 @@ impl StreamCollection { } #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn get_upstream_id(&self) -> Option { unsafe { from_glib_none(gst_sys::gst_stream_collection_get_upstream_id( diff --git a/gstreamer/src/auto/versions.txt b/gstreamer/src/auto/versions.txt index 03f3faacf..df0f8cdd5 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 @ db37199) -from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e) +Generated by gir (https://github.com/gtk-rs/gir @ 1ae9689) +from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de) diff --git a/gstreamer/sys/build.rs b/gstreamer/sys/build.rs index 93a1b219b..eadccf000 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 @ db37199) -// from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae9689) +// from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de) // DO NOT EDIT #[cfg(not(feature = "dox"))] diff --git a/gstreamer/sys/src/lib.rs b/gstreamer/sys/src/lib.rs index f17217d28..3e6475ad4 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 @ db37199) -// from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae9689) +// from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de) // DO NOT EDIT #![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)] @@ -8,6 +8,7 @@ clippy::type_complexity, clippy::unreadable_literal )] +#![cfg_attr(feature = "dox", feature(doc_cfg))] extern crate glib_sys as glib; extern crate gobject_sys as gobject; @@ -3866,6 +3867,7 @@ extern "C" { // GstPromiseResult //========================================================================= #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_promise_result_get_type() -> GType; //========================================================================= @@ -3912,6 +3914,7 @@ extern "C" { //========================================================================= pub fn gst_state_change_get_type() -> GType; #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_state_change_get_name(transition: GstStateChange) -> *const c_char; //========================================================================= @@ -4123,6 +4126,7 @@ extern "C" { // GstPluginAPIFlags //========================================================================= #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_plugin_api_flags_get_type() -> GType; //========================================================================= @@ -4159,6 +4163,7 @@ extern "C" { // GstStackTraceFlags //========================================================================= #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] pub fn gst_stack_trace_flags_get_type() -> GType; //========================================================================= @@ -4170,8 +4175,10 @@ extern "C" { // GstStreamType //========================================================================= #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_stream_type_get_type() -> GType; #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_stream_type_get_name(stype: GstStreamType) -> *const c_char; //========================================================================= @@ -4213,6 +4220,7 @@ extern "C" { ) -> *mut GstBuffer; pub fn gst_buffer_new_wrapped(data: gpointer, size: size_t) -> *mut GstBuffer; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_buffer_new_wrapped_bytes(bytes: *mut glib::GBytes) -> *mut GstBuffer; pub fn gst_buffer_new_wrapped_full( flags: GstMemoryFlags, @@ -4237,6 +4245,7 @@ extern "C" { info: *mut GstStructure, ) -> *mut GstProtectionMeta; #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_buffer_add_reference_timestamp_meta( buffer: *mut GstBuffer, reference: *mut GstCaps, @@ -4252,6 +4261,7 @@ extern "C" { size: ssize_t, ) -> *mut GstBuffer; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_buffer_copy(buf: *const GstBuffer) -> *mut GstBuffer; pub fn gst_buffer_copy_deep(buf: *const GstBuffer) -> *mut GstBuffer; pub fn gst_buffer_copy_into( @@ -4301,6 +4311,7 @@ extern "C" { ) -> gboolean; pub fn gst_buffer_get_all_memory(buffer: *mut GstBuffer) -> *mut GstMemory; #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_buffer_get_flags(buffer: *mut GstBuffer) -> GstBufferFlags; pub fn gst_buffer_get_memory(buffer: *mut GstBuffer, idx: c_uint) -> *mut GstMemory; pub fn gst_buffer_get_memory_range( @@ -4310,8 +4321,10 @@ extern "C" { ) -> *mut GstMemory; pub fn gst_buffer_get_meta(buffer: *mut GstBuffer, api: GType) -> *mut GstMeta; #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_buffer_get_n_meta(buffer: *mut GstBuffer, api_type: GType) -> c_uint; #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_buffer_get_reference_timestamp_meta( buffer: *mut GstBuffer, reference: *mut GstCaps, @@ -4330,6 +4343,7 @@ extern "C" { maxsize: *mut size_t, ) -> size_t; #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_buffer_has_flags(buffer: *mut GstBuffer, flags: GstBufferFlags) -> gboolean; pub fn gst_buffer_insert_memory(buffer: *mut GstBuffer, idx: c_int, mem: *mut GstMemory); pub fn gst_buffer_is_all_memory_writable(buffer: *mut GstBuffer) -> gboolean; @@ -4340,6 +4354,7 @@ extern "C" { ) -> gboolean; pub fn gst_buffer_iterate_meta(buffer: *mut GstBuffer, state: *mut gpointer) -> *mut GstMeta; #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] pub fn gst_buffer_iterate_meta_filtered( buffer: *mut GstBuffer, state: *mut gpointer, @@ -4373,6 +4388,7 @@ extern "C" { pub fn gst_buffer_peek_memory(buffer: *mut GstBuffer, idx: c_uint) -> *mut GstMemory; pub fn gst_buffer_prepend_memory(buffer: *mut GstBuffer, mem: *mut GstMemory); #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_buffer_ref(buf: *mut GstBuffer) -> *mut GstBuffer; pub fn gst_buffer_remove_all_memory(buffer: *mut GstBuffer); pub fn gst_buffer_remove_memory(buffer: *mut GstBuffer, idx: c_uint); @@ -4395,15 +4411,19 @@ extern "C" { size: ssize_t, ) -> gboolean; #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_buffer_set_flags(buffer: *mut GstBuffer, flags: GstBufferFlags) -> gboolean; pub fn gst_buffer_set_size(buffer: *mut GstBuffer, size: ssize_t); pub fn gst_buffer_unmap(buffer: *mut GstBuffer, info: *mut GstMapInfo); #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_buffer_unref(buf: *mut GstBuffer); #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_buffer_unset_flags(buffer: *mut GstBuffer, flags: GstBufferFlags) -> gboolean; pub fn gst_buffer_get_max_memory() -> c_uint; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_buffer_replace(obuf: *mut *mut GstBuffer, nbuf: *mut GstBuffer) -> gboolean; //========================================================================= @@ -4413,8 +4433,10 @@ extern "C" { pub fn gst_buffer_list_new() -> *mut GstBufferList; pub fn gst_buffer_list_new_sized(size: c_uint) -> *mut GstBufferList; #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_buffer_list_calculate_size(list: *mut GstBufferList) -> size_t; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_buffer_list_copy(list: *const GstBufferList) -> *mut GstBufferList; pub fn gst_buffer_list_copy_deep(list: *const GstBufferList) -> *mut GstBufferList; pub fn gst_buffer_list_foreach( @@ -4424,13 +4446,16 @@ extern "C" { ) -> gboolean; pub fn gst_buffer_list_get(list: *mut GstBufferList, idx: c_uint) -> *mut GstBuffer; #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_buffer_list_get_writable(list: *mut GstBufferList, idx: c_uint) -> *mut GstBuffer; pub fn gst_buffer_list_insert(list: *mut GstBufferList, idx: c_int, buffer: *mut GstBuffer); pub fn gst_buffer_list_length(list: *mut GstBufferList) -> c_uint; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_buffer_list_ref(list: *mut GstBufferList) -> *mut GstBufferList; pub fn gst_buffer_list_remove(list: *mut GstBufferList, idx: c_uint, length: c_uint); #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_buffer_list_unref(list: *mut GstBufferList); //========================================================================= @@ -4456,8 +4481,10 @@ extern "C" { ); pub fn gst_caps_can_intersect(caps1: *const GstCaps, caps2: *const GstCaps) -> gboolean; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_caps_copy(caps: *const GstCaps) -> *mut GstCaps; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_caps_copy_nth(caps: *const GstCaps, nth: c_uint) -> *mut GstCaps; pub fn gst_caps_filter_and_map_in_place( caps: *mut GstCaps, @@ -4513,10 +4540,12 @@ extern "C" { ) -> *mut GstCaps; pub fn gst_caps_normalize(caps: *mut GstCaps) -> *mut GstCaps; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_caps_ref(caps: *mut GstCaps) -> *mut GstCaps; pub fn gst_caps_remove_structure(caps: *mut GstCaps, idx: c_uint); pub fn gst_caps_set_features(caps: *mut GstCaps, index: c_uint, features: *mut GstCapsFeatures); #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_caps_set_features_simple(caps: *mut GstCaps, features: *mut GstCapsFeatures); pub fn gst_caps_set_simple(caps: *mut GstCaps, field: *const c_char, ...); //pub fn gst_caps_set_simple_valist(caps: *mut GstCaps, field: *const c_char, varargs: /*Unimplemented*/va_list); @@ -4531,11 +4560,14 @@ extern "C" { pub fn gst_caps_to_string(caps: *const GstCaps) -> *mut c_char; pub fn gst_caps_truncate(caps: *mut GstCaps) -> *mut GstCaps; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_caps_unref(caps: *mut GstCaps); pub fn gst_caps_from_string(string: *const c_char) -> *mut GstCaps; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_caps_replace(old_caps: *mut *mut GstCaps, new_caps: *mut GstCaps) -> gboolean; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_caps_take(old_caps: *mut *mut GstCaps, new_caps: *mut GstCaps) -> gboolean; //========================================================================= @@ -4611,9 +4643,11 @@ extern "C" { pub fn gst_date_time_new_from_iso8601_string(string: *const c_char) -> *mut GstDateTime; pub fn gst_date_time_new_from_unix_epoch_local_time(secs: i64) -> *mut GstDateTime; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_date_time_new_from_unix_epoch_local_time_usecs(usecs: i64) -> *mut GstDateTime; pub fn gst_date_time_new_from_unix_epoch_utc(secs: i64) -> *mut GstDateTime; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_date_time_new_from_unix_epoch_utc_usecs(usecs: i64) -> *mut GstDateTime; pub fn gst_date_time_new_local_time( year: c_int, @@ -4716,6 +4750,7 @@ extern "C" { static_templ: *mut GstStaticPadTemplate, ); #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_element_class_add_static_pad_template_with_gtype( klass: *mut GstElementClass, static_templ: *mut GstStaticPadTemplate, @@ -4765,11 +4800,13 @@ extern "C" { pub fn gst_event_new_flush_stop(reset_time: gboolean) -> *mut GstEvent; pub fn gst_event_new_gap(timestamp: GstClockTime, duration: GstClockTime) -> *mut GstEvent; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_event_new_instant_rate_change( rate_multiplier: c_double, new_flags: GstSegmentFlags, ) -> *mut GstEvent; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_event_new_instant_rate_sync_time( rate_multiplier: c_double, running_time: GstClockTime, @@ -4801,6 +4838,7 @@ extern "C" { pub fn gst_event_new_segment(segment: *const GstSegment) -> *mut GstEvent; pub fn gst_event_new_segment_done(format: GstFormat, position: i64) -> *mut GstEvent; #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_event_new_select_streams(streams: *mut glib::GList) -> *mut GstEvent; pub fn gst_event_new_sink_message(name: *const c_char, msg: *mut GstMessage) -> *mut GstEvent; pub fn gst_event_new_step( @@ -4811,14 +4849,17 @@ extern "C" { intermediate: gboolean, ) -> *mut GstEvent; #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_event_new_stream_collection(collection: *mut GstStreamCollection) -> *mut GstEvent; #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_event_new_stream_group_done(group_id: c_uint) -> *mut GstEvent; pub fn gst_event_new_stream_start(stream_id: *const c_char) -> *mut GstEvent; pub fn gst_event_new_tag(taglist: *mut GstTagList) -> *mut GstEvent; pub fn gst_event_new_toc(toc: *mut GstToc, updated: gboolean) -> *mut GstEvent; pub fn gst_event_new_toc_select(uid: *const c_char) -> *mut GstEvent; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_event_copy(event: *const GstEvent) -> *mut GstEvent; pub fn gst_event_copy_segment(event: *mut GstEvent, segment: *mut GstSegment); pub fn gst_event_get_running_time_offset(event: *mut GstEvent) -> i64; @@ -4826,6 +4867,7 @@ extern "C" { pub fn gst_event_get_structure(event: *mut GstEvent) -> *const GstStructure; pub fn gst_event_has_name(event: *mut GstEvent, name: *const c_char) -> gboolean; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_event_has_name_id(event: *mut GstEvent, name: glib::GQuark) -> gboolean; pub fn gst_event_parse_buffer_size( event: *mut GstEvent, @@ -4843,12 +4885,14 @@ extern "C" { ); pub fn gst_event_parse_group_id(event: *mut GstEvent, group_id: *mut c_uint) -> gboolean; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_event_parse_instant_rate_change( event: *mut GstEvent, rate_multiplier: *mut c_double, new_flags: *mut GstSegmentFlags, ); #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_event_parse_instant_rate_sync_time( event: *mut GstEvent, rate_multiplier: *mut c_double, @@ -4880,6 +4924,7 @@ extern "C" { stop: *mut i64, ); #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_event_parse_seek_trickmode_interval( event: *mut GstEvent, interval: *mut GstClockTime, @@ -4891,6 +4936,7 @@ extern "C" { position: *mut i64, ); #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_event_parse_select_streams(event: *mut GstEvent, streams: *mut *mut glib::GList); pub fn gst_event_parse_sink_message(event: *mut GstEvent, msg: *mut *mut GstMessage); pub fn gst_event_parse_step( @@ -4902,37 +4948,47 @@ extern "C" { intermediate: *mut gboolean, ); #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_event_parse_stream(event: *mut GstEvent, stream: *mut *mut GstStream); #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_event_parse_stream_collection( event: *mut GstEvent, collection: *mut *mut GstStreamCollection, ); pub fn gst_event_parse_stream_flags(event: *mut GstEvent, flags: *mut GstStreamFlags); #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_event_parse_stream_group_done(event: *mut GstEvent, group_id: *mut c_uint); pub fn gst_event_parse_stream_start(event: *mut GstEvent, stream_id: *mut *const c_char); pub fn gst_event_parse_tag(event: *mut GstEvent, taglist: *mut *mut GstTagList); pub fn gst_event_parse_toc(event: *mut GstEvent, toc: *mut *mut GstToc, updated: *mut gboolean); pub fn gst_event_parse_toc_select(event: *mut GstEvent, uid: *mut *mut c_char); #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_event_ref(event: *mut GstEvent) -> *mut GstEvent; pub fn gst_event_set_group_id(event: *mut GstEvent, group_id: c_uint); pub fn gst_event_set_running_time_offset(event: *mut GstEvent, offset: i64); #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_event_set_seek_trickmode_interval(event: *mut GstEvent, interval: GstClockTime); pub fn gst_event_set_seqnum(event: *mut GstEvent, seqnum: u32); #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_event_set_stream(event: *mut GstEvent, stream: *mut GstStream); pub fn gst_event_set_stream_flags(event: *mut GstEvent, flags: GstStreamFlags); #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_event_unref(event: *mut GstEvent); pub fn gst_event_writable_structure(event: *mut GstEvent) -> *mut GstStructure; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_event_replace(old_event: *mut *mut GstEvent, new_event: *mut GstEvent) -> gboolean; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_event_steal(old_event: *mut *mut GstEvent) -> *mut GstEvent; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_event_take(old_event: *mut *mut GstEvent, new_event: *mut GstEvent) -> gboolean; //========================================================================= @@ -5037,11 +5093,13 @@ extern "C" { flags: GstMapFlags, ) -> gboolean; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_memory_ref(memory: *mut GstMemory) -> *mut GstMemory; pub fn gst_memory_resize(mem: *mut GstMemory, offset: ssize_t, size: size_t); pub fn gst_memory_share(mem: *mut GstMemory, offset: ssize_t, size: ssize_t) -> *mut GstMemory; pub fn gst_memory_unmap(mem: *mut GstMemory, info: *mut GstMapInfo); #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_memory_unref(memory: *mut GstMemory); //========================================================================= @@ -5075,6 +5133,7 @@ extern "C" { device: *mut GstDevice, ) -> *mut GstMessage; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_message_new_device_changed( src: *mut GstObject, device: *mut GstDevice, @@ -5096,6 +5155,7 @@ extern "C" { debug: *const c_char, ) -> *mut GstMessage; #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_message_new_error_with_details( src: *mut GstObject, error: *mut glib::GError, @@ -5112,6 +5172,7 @@ extern "C" { debug: *const c_char, ) -> *mut GstMessage; #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_message_new_info_with_details( src: *mut GstObject, error: *mut glib::GError, @@ -5119,6 +5180,7 @@ extern "C" { details: *mut GstStructure, ) -> *mut GstMessage; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_message_new_instant_rate_request( src: *mut GstObject, rate_multiplier: c_double, @@ -5136,6 +5198,7 @@ extern "C" { text: *const c_char, ) -> *mut GstMessage; #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_message_new_property_notify( src: *mut GstObject, property_name: *const c_char, @@ -5150,6 +5213,7 @@ extern "C" { duration: u64, ) -> *mut GstMessage; #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_message_new_redirect( src: *mut GstObject, location: *const c_char, @@ -5198,6 +5262,7 @@ extern "C" { intermediate: gboolean, ) -> *mut GstMessage; #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_message_new_stream_collection( src: *mut GstObject, collection: *mut GstStreamCollection, @@ -5209,6 +5274,7 @@ extern "C" { owner: *mut GstElement, ) -> *mut GstMessage; #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_message_new_streams_selected( src: *mut GstObject, collection: *mut GstStreamCollection, @@ -5231,6 +5297,7 @@ extern "C" { debug: *const c_char, ) -> *mut GstMessage; #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_message_new_warning_with_details( src: *mut GstObject, error: *mut glib::GError, @@ -5238,6 +5305,7 @@ extern "C" { details: *mut GstStructure, ) -> *mut GstMessage; #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_message_add_redirect_entry( message: *mut GstMessage, location: *const c_char, @@ -5245,8 +5313,10 @@ extern "C" { entry_struct: *const GstStructure, ); #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_message_copy(msg: *const GstMessage) -> *mut GstMessage; #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_message_get_num_redirect_entries(message: *mut GstMessage) -> size_t; pub fn gst_message_get_seqnum(message: *mut GstMessage) -> u32; pub fn gst_message_get_stream_status_object(message: *mut GstMessage) @@ -5274,6 +5344,7 @@ extern "C" { ) -> gboolean; pub fn gst_message_parse_device_added(message: *mut GstMessage, device: *mut *mut GstDevice); #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_message_parse_device_changed( message: *mut GstMessage, device: *mut *mut GstDevice, @@ -5286,6 +5357,7 @@ extern "C" { debug: *mut *mut c_char, ); #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_message_parse_error_details( message: *mut GstMessage, structure: *mut *const GstStructure, @@ -5298,11 +5370,13 @@ extern "C" { debug: *mut *mut c_char, ); #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_message_parse_info_details( message: *mut GstMessage, structure: *mut *const GstStructure, ); #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_message_parse_instant_rate_request( message: *mut GstMessage, rate_multiplier: *mut c_double, @@ -5315,6 +5389,7 @@ extern "C" { text: *mut *mut c_char, ); #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_message_parse_property_notify( message: *mut GstMessage, object: *mut *mut GstObject, @@ -5342,6 +5417,7 @@ extern "C" { quality: *mut c_int, ); #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_message_parse_redirect_entry( message: *mut GstMessage, entry_index: size_t, @@ -5387,6 +5463,7 @@ extern "C" { intermediate: *mut gboolean, ); #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_message_parse_stream_collection( message: *mut GstMessage, collection: *mut *mut GstStreamCollection, @@ -5397,6 +5474,7 @@ extern "C" { owner: *mut *mut GstElement, ); #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_message_parse_streams_selected( message: *mut GstMessage, collection: *mut *mut GstStreamCollection, @@ -5419,11 +5497,13 @@ extern "C" { debug: *mut *mut c_char, ); #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_message_parse_warning_details( message: *mut GstMessage, structure: *mut *const GstStructure, ); #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_message_ref(msg: *mut GstMessage) -> *mut GstMessage; pub fn gst_message_set_buffering_stats( message: *mut GstMessage, @@ -5451,19 +5531,25 @@ extern "C" { object: *const gobject::GValue, ); #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_message_streams_selected_add(message: *mut GstMessage, stream: *mut GstStream); #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_message_streams_selected_get_size(message: *mut GstMessage) -> c_uint; #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_message_streams_selected_get_stream( message: *mut GstMessage, idx: c_uint, ) -> *mut GstStream; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_message_unref(msg: *mut GstMessage); #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_message_writable_structure(message: *mut GstMessage) -> *mut GstStructure; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_message_replace( old_message: *mut *mut GstMessage, new_message: *mut GstMessage, @@ -5473,8 +5559,10 @@ extern "C" { // GstMeta //========================================================================= #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_meta_compare_seqnum(meta1: *const GstMeta, meta2: *const GstMeta) -> c_int; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_meta_get_seqnum(meta: *const GstMeta) -> u64; pub fn gst_meta_api_type_get_tags(api: GType) -> *const *const c_char; pub fn gst_meta_api_type_has_tag(api: GType, tag: glib::GQuark) -> gboolean; @@ -5493,6 +5581,7 @@ extern "C" { // GstMiniObject //========================================================================= #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_mini_object_add_parent(object: *mut GstMiniObject, parent: *mut GstMiniObject); pub fn gst_mini_object_copy(mini_object: *const GstMiniObject) -> *mut GstMiniObject; pub fn gst_mini_object_get_qdata(object: *mut GstMiniObject, quark: glib::GQuark) -> gpointer; @@ -5509,6 +5598,7 @@ extern "C" { pub fn gst_mini_object_make_writable(mini_object: *mut GstMiniObject) -> *mut GstMiniObject; pub fn gst_mini_object_ref(mini_object: *mut GstMiniObject) -> *mut GstMiniObject; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_mini_object_remove_parent(object: *mut GstMiniObject, parent: *mut GstMiniObject); pub fn gst_mini_object_set_qdata( object: *mut GstMiniObject, @@ -5559,6 +5649,7 @@ extern "C" { pub fn gst_parse_context_get_type() -> GType; pub fn gst_parse_context_new() -> *mut GstParseContext; #[cfg(any(feature = "v1_12_1", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12_1")))] pub fn gst_parse_context_copy(context: *const GstParseContext) -> *mut GstParseContext; pub fn gst_parse_context_free(context: *mut GstParseContext); pub fn gst_parse_context_get_missing_elements( @@ -5572,6 +5663,7 @@ extern "C" { pub fn gst_poll_fd_can_read(set: *const GstPoll, fd: *mut GstPollFD) -> gboolean; pub fn gst_poll_fd_can_write(set: *const GstPoll, fd: *mut GstPollFD) -> gboolean; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_poll_fd_ctl_pri(set: *mut GstPoll, fd: *mut GstPollFD, active: gboolean) -> gboolean; pub fn gst_poll_fd_ctl_read( @@ -5587,6 +5679,7 @@ extern "C" { pub fn gst_poll_fd_has_closed(set: *const GstPoll, fd: *mut GstPollFD) -> gboolean; pub fn gst_poll_fd_has_error(set: *const GstPoll, fd: *mut GstPollFD) -> gboolean; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_poll_fd_has_pri(set: *const GstPoll, fd: *mut GstPollFD) -> gboolean; pub fn gst_poll_fd_ignored(set: *mut GstPoll, fd: *mut GstPollFD); pub fn gst_poll_free(set: *mut GstPoll); @@ -5610,24 +5703,32 @@ extern "C" { // GstPromise //========================================================================= #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_promise_get_type() -> GType; #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_promise_new() -> *mut GstPromise; #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_promise_new_with_change_func( func: GstPromiseChangeFunc, user_data: gpointer, notify: glib::GDestroyNotify, ) -> *mut GstPromise; #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_promise_expire(promise: *mut GstPromise); #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_promise_get_reply(promise: *mut GstPromise) -> *const GstStructure; #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_promise_interrupt(promise: *mut GstPromise); #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_promise_reply(promise: *mut GstPromise, s: *mut GstStructure); #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_promise_wait(promise: *mut GstPromise) -> GstPromiseResult; //========================================================================= @@ -5642,6 +5743,7 @@ extern "C" { pub fn gst_query_new_accept_caps(caps: *mut GstCaps) -> *mut GstQuery; pub fn gst_query_new_allocation(caps: *mut GstCaps, need_pool: gboolean) -> *mut GstQuery; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_query_new_bitrate() -> *mut GstQuery; pub fn gst_query_new_buffering(format: GstFormat) -> *mut GstQuery; pub fn gst_query_new_caps(filter: *mut GstCaps) -> *mut GstQuery; @@ -5682,6 +5784,7 @@ extern "C" { pub fn gst_query_add_buffering_range(query: *mut GstQuery, start: i64, stop: i64) -> gboolean; pub fn gst_query_add_scheduling_mode(query: *mut GstQuery, mode: GstPadMode); #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_query_copy(q: *const GstQuery) -> *mut GstQuery; pub fn gst_query_find_allocation_meta( query: *mut GstQuery, @@ -5708,6 +5811,7 @@ extern "C" { need_pool: *mut gboolean, ); #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_query_parse_bitrate(query: *mut GstQuery, nominal_bitrate: *mut c_uint); pub fn gst_query_parse_buffering_percent( query: *mut GstQuery, @@ -5814,6 +5918,7 @@ extern "C" { pub fn gst_query_remove_nth_allocation_pool(query: *mut GstQuery, index: c_uint); pub fn gst_query_set_accept_caps_result(query: *mut GstQuery, result: gboolean); #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_query_set_bitrate(query: *mut GstQuery, nominal_bitrate: c_uint); pub fn gst_query_set_buffering_percent(query: *mut GstQuery, busy: gboolean, percent: c_int); pub fn gst_query_set_buffering_range( @@ -5892,15 +5997,18 @@ extern "C" { pub fn gst_query_set_uri_redirection(query: *mut GstQuery, uri: *const c_char); pub fn gst_query_set_uri_redirection_permanent(query: *mut GstQuery, permanent: gboolean); #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_query_unref(q: *mut GstQuery); pub fn gst_query_writable_structure(query: *mut GstQuery) -> *mut GstStructure; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_query_replace(old_query: *mut *mut GstQuery, new_query: *mut GstQuery) -> gboolean; //========================================================================= // GstReferenceTimestampMeta //========================================================================= #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_reference_timestamp_meta_get_info() -> *const GstMetaInfo; //========================================================================= @@ -5914,6 +6022,7 @@ extern "C" { info: *mut GstStructure, ) -> *mut GstSample; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_sample_copy(buf: *const GstSample) -> *mut GstSample; pub fn gst_sample_get_buffer(sample: *mut GstSample) -> *mut GstBuffer; pub fn gst_sample_get_buffer_list(sample: *mut GstSample) -> *mut GstBufferList; @@ -5921,17 +6030,23 @@ extern "C" { pub fn gst_sample_get_info(sample: *mut GstSample) -> *const GstStructure; pub fn gst_sample_get_segment(sample: *mut GstSample) -> *mut GstSegment; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_sample_ref(sample: *mut GstSample) -> *mut GstSample; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_sample_set_buffer(sample: *mut GstSample, buffer: *mut GstBuffer); pub fn gst_sample_set_buffer_list(sample: *mut GstSample, buffer_list: *mut GstBufferList); #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_sample_set_caps(sample: *mut GstSample, caps: *mut GstCaps); #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_sample_set_info(sample: *mut GstSample, info: *mut GstStructure) -> gboolean; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_sample_set_segment(sample: *mut GstSample, segment: *const GstSegment); #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_sample_unref(sample: *mut GstSample); //========================================================================= @@ -6112,6 +6227,7 @@ extern "C" { ... ) -> gboolean; #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] pub fn gst_structure_get_array( structure: *mut GstStructure, fieldname: *const c_char, @@ -6175,6 +6291,7 @@ extern "C" { value: *mut i64, ) -> gboolean; #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] pub fn gst_structure_get_list( structure: *mut GstStructure, fieldname: *const c_char, @@ -6270,12 +6387,14 @@ extern "C" { //pub fn gst_structure_remove_fields_valist(structure: *mut GstStructure, fieldname: *const c_char, varargs: /*Unimplemented*/va_list); pub fn gst_structure_set(structure: *mut GstStructure, fieldname: *const c_char, ...); #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] pub fn gst_structure_set_array( structure: *mut GstStructure, fieldname: *const c_char, array: *const gobject::GValueArray, ); #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] pub fn gst_structure_set_list( structure: *mut GstStructure, fieldname: *const c_char, @@ -6299,6 +6418,7 @@ extern "C" { ); pub fn gst_structure_to_string(structure: *const GstStructure) -> *mut c_char; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_structure_take( oldstr_ptr: *mut *mut GstStructure, newstr: *mut GstStructure, @@ -6328,6 +6448,7 @@ extern "C" { ... ); #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_tag_list_copy(taglist: *const GstTagList) -> *mut GstTagList; pub fn gst_tag_list_foreach( list: *const GstTagList, @@ -6494,11 +6615,13 @@ extern "C" { value: *mut *const c_char, ) -> gboolean; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_tag_list_ref(taglist: *mut GstTagList) -> *mut GstTagList; pub fn gst_tag_list_remove_tag(list: *mut GstTagList, tag: *const c_char); pub fn gst_tag_list_set_scope(list: *mut GstTagList, scope: GstTagScope); pub fn gst_tag_list_to_string(list: *const GstTagList) -> *mut c_char; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_tag_list_unref(taglist: *mut GstTagList); pub fn gst_tag_list_copy_value( dest: *mut gobject::GValue, @@ -6601,6 +6724,7 @@ extern "C" { pub fn gst_uri_get_fragment(uri: *const GstUri) -> *const c_char; pub fn gst_uri_get_host(uri: *const GstUri) -> *const c_char; #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] pub fn gst_uri_get_media_fragment_table(uri: *const GstUri) -> *mut glib::GHashTable; pub fn gst_uri_get_path(uri: *const GstUri) -> *mut c_char; pub fn gst_uri_get_path_segments(uri: *const GstUri) -> *mut glib::GList; @@ -6652,6 +6776,7 @@ extern "C" { pub fn gst_uri_construct(protocol: *const c_char, location: *const c_char) -> *mut c_char; pub fn gst_uri_from_string(uri: *const c_char) -> *mut GstUri; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_uri_from_string_escaped(uri: *const c_char) -> *mut GstUri; pub fn gst_uri_get_location(uri: *const c_char) -> *mut c_char; pub fn gst_uri_get_protocol(uri: *const c_char) -> *mut c_char; @@ -6688,8 +6813,10 @@ extern "C" { pub fn gst_bin_get_by_name_recurse_up(bin: *mut GstBin, name: *const c_char) -> *mut GstElement; #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_bin_get_suppressed_flags(bin: *mut GstBin) -> GstElementFlags; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_bin_iterate_all_by_element_factory_name( bin: *mut GstBin, factory_name: *const c_char, @@ -6704,6 +6831,7 @@ extern "C" { pub fn gst_bin_remove(bin: *mut GstBin, element: *mut GstElement) -> gboolean; pub fn gst_bin_remove_many(bin: *mut GstBin, element_1: *mut GstElement, ...); #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_bin_set_suppressed_flags(bin: *mut GstBin, flags: GstElementFlags); pub fn gst_bin_sync_children_states(bin: *mut GstBin) -> gboolean; @@ -6799,6 +6927,7 @@ extern "C" { pub fn gst_bus_disable_sync_message_emission(bus: *mut GstBus); pub fn gst_bus_enable_sync_message_emission(bus: *mut GstBus); #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_bus_get_pollfd(bus: *mut GstBus, fd: *mut glib::GPollFD); pub fn gst_bus_have_pending(bus: *mut GstBus) -> gboolean; pub fn gst_bus_peek(bus: *mut GstBus) -> *mut GstMessage; @@ -6837,12 +6966,14 @@ extern "C" { pub fn gst_clock_get_type() -> GType; pub fn gst_clock_id_compare_func(id1: gconstpointer, id2: gconstpointer) -> c_int; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_clock_id_get_clock(id: GstClockID) -> *mut GstClock; pub fn gst_clock_id_get_time(id: GstClockID) -> GstClockTime; pub fn gst_clock_id_ref(id: GstClockID) -> GstClockID; pub fn gst_clock_id_unref(id: GstClockID); pub fn gst_clock_id_unschedule(id: GstClockID); #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_clock_id_uses_clock(id: GstClockID, clock: *mut GstClock) -> gboolean; pub fn gst_clock_id_wait(id: GstClockID, jitter: *mut GstClockTimeDiff) -> GstClockReturn; pub fn gst_clock_id_wait_async( @@ -7037,6 +7168,7 @@ extern "C" { pub fn gst_device_provider_can_monitor(provider: *mut GstDeviceProvider) -> gboolean; pub fn gst_device_provider_device_add(provider: *mut GstDeviceProvider, device: *mut GstDevice); #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_device_provider_device_changed( provider: *mut GstDeviceProvider, device: *mut GstDevice, @@ -7055,6 +7187,7 @@ extern "C" { provider: *mut GstDeviceProvider, ) -> *mut *mut c_char; #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_device_provider_get_metadata( provider: *mut GstDeviceProvider, key: *const c_char, @@ -7109,8 +7242,10 @@ extern "C" { // GstDynamicTypeFactory //========================================================================= #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] pub fn gst_dynamic_type_factory_get_type() -> GType; #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] pub fn gst_dynamic_type_factory_load(factoryname: *const c_char) -> GType; //========================================================================= @@ -7136,18 +7271,21 @@ extern "C" { pub fn gst_element_abort_state(element: *mut GstElement); pub fn gst_element_add_pad(element: *mut GstElement, pad: *mut GstPad) -> gboolean; #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_element_add_property_deep_notify_watch( element: *mut GstElement, property_name: *const c_char, include_value: gboolean, ) -> c_ulong; #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_element_add_property_notify_watch( element: *mut GstElement, property_name: *const c_char, include_value: gboolean, ) -> c_ulong; #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_element_call_async( element: *mut GstElement, func: GstElementCallAsyncFunc, @@ -7164,18 +7302,21 @@ extern "C" { ) -> GstStateChangeReturn; pub fn gst_element_create_all_pads(element: *mut GstElement); #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_element_foreach_pad( element: *mut GstElement, func: GstElementForeachPadFunc, user_data: gpointer, ) -> gboolean; #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_element_foreach_sink_pad( element: *mut GstElement, func: GstElementForeachPadFunc, user_data: gpointer, ) -> gboolean; #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_element_foreach_src_pad( element: *mut GstElement, func: GstElementForeachPadFunc, @@ -7203,18 +7344,23 @@ extern "C" { ) -> *mut GstContext; pub fn gst_element_get_contexts(element: *mut GstElement) -> *mut glib::GList; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_element_get_current_clock_time(element: *mut GstElement) -> GstClockTime; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_element_get_current_running_time(element: *mut GstElement) -> GstClockTime; pub fn gst_element_get_factory(element: *mut GstElement) -> *mut GstElementFactory; #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_element_get_metadata(element: *mut GstElement, key: *const c_char) -> *const c_char; #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_element_get_pad_template( element: *mut GstElement, name: *const c_char, ) -> *mut GstPadTemplate; #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_element_get_pad_template_list(element: *mut GstElement) -> *mut glib::GList; pub fn gst_element_get_request_pad( element: *mut GstElement, @@ -7277,6 +7423,7 @@ extern "C" { line: c_int, ); #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_element_message_full_with_details( element: *mut GstElement, type_: GstMessageType, @@ -7314,6 +7461,7 @@ extern "C" { pub fn gst_element_release_request_pad(element: *mut GstElement, pad: *mut GstPad); pub fn gst_element_remove_pad(element: *mut GstElement, pad: *mut GstPad) -> gboolean; #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_element_remove_property_notify_watch(element: *mut GstElement, watch_id: c_ulong); pub fn gst_element_request_pad( element: *mut GstElement, @@ -7620,6 +7768,7 @@ extern "C" { buffer: *mut *mut GstBuffer, ) -> GstFlowReturn; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_pad_get_single_internal_link(pad: *mut GstPad) -> *mut GstPad; pub fn gst_pad_get_sticky_event( pad: *mut GstPad, @@ -7627,9 +7776,11 @@ extern "C" { idx: c_uint, ) -> *mut GstEvent; #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_pad_get_stream(pad: *mut GstPad) -> *mut GstStream; pub fn gst_pad_get_stream_id(pad: *mut GstPad) -> *mut c_char; #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] pub fn gst_pad_get_task_state(pad: *mut GstPad) -> GstTaskState; pub fn gst_pad_has_current_caps(pad: *mut GstPad) -> gboolean; pub fn gst_pad_is_active(pad: *mut GstPad) -> gboolean; @@ -7648,8 +7799,10 @@ extern "C" { flags: GstPadLinkCheck, ) -> GstPadLinkReturn; #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_pad_link_maybe_ghosting(src: *mut GstPad, sink: *mut GstPad) -> gboolean; #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_pad_link_maybe_ghosting_full( src: *mut GstPad, sink: *mut GstPad, @@ -7808,11 +7961,13 @@ extern "C" { caps: *mut GstCaps, ) -> *mut GstPadTemplate; #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_pad_template_new_from_static_pad_template_with_gtype( pad_template: *mut GstStaticPadTemplate, pad_type: GType, ) -> *mut GstPadTemplate; #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_pad_template_new_with_gtype( name_template: *const c_char, direction: GstPadDirection, @@ -7822,15 +7977,18 @@ extern "C" { ) -> *mut GstPadTemplate; pub fn gst_pad_template_get_caps(templ: *mut GstPadTemplate) -> *mut GstCaps; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_pad_template_get_documentation_caps(templ: *mut GstPadTemplate) -> *mut GstCaps; pub fn gst_pad_template_pad_created(templ: *mut GstPadTemplate, pad: *mut GstPad); #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_pad_template_set_documentation_caps(templ: *mut GstPadTemplate, caps: *mut GstCaps); //========================================================================= // GstParamArray //========================================================================= #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] pub fn gst_param_spec_array_get_type() -> GType; //========================================================================= @@ -8032,8 +8190,10 @@ extern "C" { // GstStream //========================================================================= #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_stream_get_type() -> GType; #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_stream_new( stream_id: *const c_char, caps: *mut GstCaps, @@ -8041,44 +8201,59 @@ extern "C" { flags: GstStreamFlags, ) -> *mut GstStream; #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_stream_get_caps(stream: *mut GstStream) -> *mut GstCaps; #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_stream_get_stream_flags(stream: *mut GstStream) -> GstStreamFlags; #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_stream_get_stream_id(stream: *mut GstStream) -> *const c_char; #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_stream_get_stream_type(stream: *mut GstStream) -> GstStreamType; #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_stream_get_tags(stream: *mut GstStream) -> *mut GstTagList; #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_stream_set_caps(stream: *mut GstStream, caps: *mut GstCaps); #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_stream_set_stream_flags(stream: *mut GstStream, flags: GstStreamFlags); #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_stream_set_stream_type(stream: *mut GstStream, stream_type: GstStreamType); #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_stream_set_tags(stream: *mut GstStream, tags: *mut GstTagList); //========================================================================= // GstStreamCollection //========================================================================= #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_stream_collection_get_type() -> GType; #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_stream_collection_new(upstream_id: *const c_char) -> *mut GstStreamCollection; #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_stream_collection_add_stream( collection: *mut GstStreamCollection, stream: *mut GstStream, ) -> gboolean; #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_stream_collection_get_size(collection: *mut GstStreamCollection) -> c_uint; #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_stream_collection_get_stream( collection: *mut GstStreamCollection, index: c_uint, ) -> *mut GstStream; #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_stream_collection_get_upstream_id( collection: *mut GstStreamCollection, ) -> *const c_char; @@ -8105,6 +8280,7 @@ extern "C" { pub fn gst_task_join(task: *mut GstTask) -> gboolean; pub fn gst_task_pause(task: *mut GstTask) -> gboolean; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_task_resume(task: *mut GstTask) -> gboolean; pub fn gst_task_set_enter_callback( task: *mut GstTask, @@ -8144,6 +8320,7 @@ extern "C" { //========================================================================= pub fn gst_tracer_get_type() -> GType; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_tracer_register( plugin: *mut GstPlugin, name: *const c_char, @@ -8156,6 +8333,7 @@ extern "C" { pub fn gst_tracer_factory_get_type() -> GType; pub fn gst_tracer_factory_get_list() -> *mut glib::GList; #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_tracer_factory_get_tracer_type(factory: *mut GstTracerFactory) -> GType; //========================================================================= @@ -8202,6 +8380,7 @@ extern "C" { index: c_uint, ) -> *const gobject::GValue; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_value_array_init( value: *mut gobject::GValue, prealloc: c_uint, @@ -8234,6 +8413,7 @@ extern "C" { index: c_uint, ) -> *const gobject::GValue; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_value_list_init( value: *mut gobject::GValue, prealloc: c_uint, @@ -8381,6 +8561,7 @@ extern "C" { // Other functions //========================================================================= #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] pub fn gst_calculate_linear_regression( xy: *const GstClockTime, temp: *mut GstClockTime, @@ -8392,10 +8573,13 @@ extern "C" { r_squared: *mut c_double, ) -> gboolean; #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_clear_mini_object(object_ptr: *mut *mut GstMiniObject); #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_clear_object(object_ptr: *mut *mut GstObject); #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_clear_structure(structure_ptr: *mut *mut GstStructure); pub fn gst_debug_add_log_function( func: GstLogFunction, @@ -8403,6 +8587,7 @@ extern "C" { notify: glib::GDestroyNotify, ); #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_debug_add_ring_buffer_logger(max_size_per_thread: c_uint, thread_timeout: c_uint); pub fn gst_debug_bin_to_dot_data( bin: *mut GstBin, @@ -8424,6 +8609,7 @@ extern "C" { pub fn gst_debug_get_color_mode() -> GstDebugColorMode; pub fn gst_debug_get_default_threshold() -> GstDebugLevel; #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] pub fn gst_debug_get_stack_trace(flags: GstStackTraceFlags) -> *mut c_char; pub fn gst_debug_is_active() -> gboolean; pub fn gst_debug_is_colored() -> gboolean; @@ -8448,6 +8634,7 @@ extern "C" { user_data: gpointer, ); #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_debug_log_get_line( category: *mut GstDebugCategory, level: GstDebugLevel, @@ -8462,8 +8649,10 @@ extern "C" { pub fn gst_debug_remove_log_function(func: GstLogFunction) -> c_uint; pub fn gst_debug_remove_log_function_by_data(data: gpointer) -> c_uint; #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_debug_remove_ring_buffer_logger(); #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_debug_ring_buffer_logger_get_logs() -> *mut *mut c_char; pub fn gst_debug_set_active(active: gboolean); pub fn gst_debug_set_color_mode(mode: GstDebugColorMode); @@ -8475,6 +8664,7 @@ extern "C" { pub fn gst_debug_unset_threshold_for_name(name: *const c_char); pub fn gst_deinit(); #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] pub fn gst_dynamic_type_register(plugin: *mut GstPlugin, type_: GType) -> gboolean; pub fn gst_error_get_message(domain: glib::GQuark, code: c_int) -> *mut c_char; pub fn gst_filename_to_uri( @@ -8485,6 +8675,7 @@ extern "C" { pub fn gst_flow_to_quark(ret: GstFlowReturn) -> glib::GQuark; pub fn gst_formats_contains(formats: *const GstFormat, format: GstFormat) -> gboolean; #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_get_main_executable_path() -> *const c_char; pub fn gst_info_strdup_printf(format: *const c_char, ...) -> *mut c_char; //pub fn gst_info_strdup_vprintf(format: *const c_char, args: /*Unimplemented*/va_list) -> *mut c_char; @@ -8499,8 +8690,10 @@ extern "C" { pub fn gst_is_caps_features(obj: gconstpointer) -> gboolean; pub fn gst_is_initialized() -> gboolean; #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_make_element_message_details(name: *const c_char, ...) -> *mut GstStructure; #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_param_spec_array( name: *const c_char, nick: *const c_char, @@ -8554,20 +8747,26 @@ extern "C" { error: *mut *mut glib::GError, ) -> *mut GstElement; #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] pub fn gst_print(format: *const c_char, ...); #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] pub fn gst_printerr(format: *const c_char, ...); #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] pub fn gst_printerrln(format: *const c_char, ...); #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] pub fn gst_println(format: *const c_char, ...); #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_protection_filter_systems_by_available_decryptors( system_identifiers: *mut *const c_char, ) -> *mut *mut c_char; pub fn gst_protection_meta_api_get_type() -> GType; pub fn gst_protection_select_system(system_identifiers: *mut *const c_char) -> *const c_char; #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_reference_timestamp_meta_api_get_type() -> GType; pub fn gst_segtrap_is_enabled() -> gboolean; pub fn gst_segtrap_set_enabled(enabled: gboolean); @@ -8601,6 +8800,7 @@ extern "C" { func: GstTagMergeFunc, ); #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_tracing_get_active_tracers() -> *mut glib::GList; pub fn gst_tracing_register_hook( tracer: *mut GstTracer, @@ -8609,8 +8809,10 @@ extern "C" { ); pub fn gst_type_find_get_type() -> GType; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_type_is_plugin_api(type_: GType, flags: *mut GstPluginAPIFlags) -> gboolean; #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn gst_type_mark_as_plugin_api(type_: GType, flags: GstPluginAPIFlags); pub fn gst_update_registry() -> gboolean; pub fn gst_util_array_binary_search( @@ -8624,6 +8826,7 @@ extern "C" { ) -> gpointer; pub fn gst_util_double_to_fraction(src: c_double, dest_n: *mut c_int, dest_d: *mut c_int); #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gst_util_dump_buffer(buf: *mut GstBuffer); pub fn gst_util_dump_mem(mem: *const u8, size: c_uint); pub fn gst_util_fraction_add( @@ -8646,6 +8849,7 @@ extern "C" { pub fn gst_util_fraction_to_double(src_n: c_int, src_d: c_int, dest: *mut c_double); pub fn gst_util_gdouble_to_guint64(value: c_double) -> u64; #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] pub fn gst_util_get_object_array( object: *mut gobject::GObject, name: *const c_char, @@ -8664,6 +8868,7 @@ extern "C" { value: *const c_char, ); #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] pub fn gst_util_set_object_array( object: *mut gobject::GObject, name: *const c_char, diff --git a/gstreamer/sys/tests/abi.rs b/gstreamer/sys/tests/abi.rs index ec35a2103..eb56ab649 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 @ db37199) -// from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae9689) +// from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de) // DO NOT EDIT extern crate gstreamer_sys; diff --git a/gstreamer/sys/tests/constant.c b/gstreamer/sys/tests/constant.c index 7a1c810ac..3658ebe72 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 @ db37199) -// from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae9689) +// from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer/sys/tests/layout.c b/gstreamer/sys/tests/layout.c index 291623e9a..b418a479d 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 @ db37199) -// from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae9689) +// from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de) // DO NOT EDIT #include "manual.h"