From 28438d245a66af2ef602ca3e31d4b6ccbcc62ace Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Wed, 25 Nov 2020 15:53:45 +0100 Subject: [PATCH] regen --- gstreamer-app/src/auto/app_sink.rs | 16 +- gstreamer-app/src/auto/app_src.rs | 24 +- gstreamer-app/src/auto/versions.txt | 4 +- gstreamer-app/sys/Cargo.toml | 2 +- gstreamer-app/sys/build.rs | 10 +- gstreamer-app/sys/src/lib.rs | 34 +- 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 | 16 +- gstreamer-audio/src/auto/audio_encoder.rs | 8 +- .../src/auto/audio_stream_align.rs | 44 +- gstreamer-audio/src/auto/enums.rs | 24 +- gstreamer-audio/src/auto/mod.rs | 8 +- gstreamer-audio/src/auto/versions.txt | 4 +- gstreamer-audio/sys/Cargo.toml | 2 +- gstreamer-audio/sys/build.rs | 10 +- gstreamer-audio/sys/src/lib.rs | 206 ++--- 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 | 20 +- gstreamer-base/src/auto/aggregator.rs | 144 +-- gstreamer-base/src/auto/aggregator_pad.rs | 72 +- gstreamer-base/src/auto/base_parse.rs | 8 +- gstreamer-base/src/auto/base_sink.rs | 56 +- gstreamer-base/src/auto/base_src.rs | 8 +- gstreamer-base/src/auto/base_transform.rs | 8 +- gstreamer-base/src/auto/enums.rs | 28 +- gstreamer-base/src/auto/functions.rs | 4 +- gstreamer-base/src/auto/mod.rs | 36 +- gstreamer-base/src/auto/versions.txt | 4 +- gstreamer-base/sys/Cargo.toml | 2 +- gstreamer-base/sys/build.rs | 10 +- gstreamer-base/sys/src/lib.rs | 290 +++--- 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 | 8 +- gstreamer-check/src/auto/versions.txt | 4 +- gstreamer-check/sys/Cargo.toml | 2 +- gstreamer-check/sys/build.rs | 10 +- gstreamer-check/sys/src/lib.rs | 34 +- 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 | 8 +- .../src/auto/proxy_control_binding.rs | 12 +- gstreamer-controller/src/auto/versions.txt | 4 +- gstreamer-controller/sys/Cargo.toml | 2 +- gstreamer-controller/sys/build.rs | 10 +- gstreamer-controller/sys/src/lib.rs | 10 +- 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 | 24 +- gstreamer-editing-services/src/auto/clip.rs | 96 +- gstreamer-editing-services/src/auto/layer.rs | 48 +- .../src/auto/project.rs | 24 +- .../src/auto/timeline.rs | 40 +- .../src/auto/timeline_element.rs | 76 +- gstreamer-editing-services/src/auto/track.rs | 52 +- .../src/auto/track_element.rs | 72 +- .../src/auto/uri_clip_asset.rs | 40 +- .../src/auto/uri_source_asset.rs | 8 +- .../src/auto/versions.txt | 4 +- gstreamer-editing-services/sys/Cargo.toml | 2 +- gstreamer-editing-services/sys/build.rs | 10 +- gstreamer-editing-services/sys/src/lib.rs | 246 +++--- 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 | 4 +- gstreamer-gl/src/auto/gl_base_filter.rs | 16 +- gstreamer-gl/src/auto/gl_context.rs | 16 +- gstreamer-gl/src/auto/gl_display.rs | 16 +- .../src/auto/gl_overlay_compositor.rs | 40 +- gstreamer-gl/src/auto/gl_shader.rs | 20 +- gstreamer-gl/src/auto/gl_window.rs | 32 +- gstreamer-gl/src/auto/mod.rs | 40 +- gstreamer-gl/src/auto/versions.txt | 4 +- gstreamer-gl/sys/Cargo.toml | 2 +- gstreamer-gl/sys/build.rs | 10 +- gstreamer-gl/sys/src/lib.rs | 158 ++-- gstreamer-gl/sys/tests/abi.rs | 28 +- gstreamer-gl/sys/tests/constant.c | 4 +- gstreamer-gl/sys/tests/layout.c | 4 +- gstreamer-mpegts/sys/Cargo.toml | 2 +- gstreamer-mpegts/sys/build.rs | 10 +- gstreamer-mpegts/sys/src/lib.rs | 34 +- 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/Cargo.toml | 2 +- gstreamer-net/sys/build.rs | 10 +- gstreamer-net/sys/src/lib.rs | 10 +- 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 | 20 +- .../src/auto/discoverer_audio_info.rs | 4 +- gstreamer-pbutils/src/auto/discoverer_info.rs | 4 +- .../src/auto/encoding_profile.rs | 16 +- gstreamer-pbutils/src/auto/encoding_target.rs | 4 +- gstreamer-pbutils/src/auto/versions.txt | 4 +- gstreamer-pbutils/sys/Cargo.toml | 2 +- gstreamer-pbutils/sys/build.rs | 10 +- gstreamer-pbutils/sys/src/lib.rs | 42 +- 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 | 12 +- gstreamer-player/src/auto/versions.txt | 4 +- gstreamer-player/sys/Cargo.toml | 2 +- gstreamer-player/sys/build.rs | 10 +- gstreamer-player/sys/src/lib.rs | 14 +- 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 | 28 +- gstreamer-rtp/src/auto/flags.rs | 28 +- gstreamer-rtp/src/auto/functions.rs | 8 +- gstreamer-rtp/src/auto/mod.rs | 8 +- gstreamer-rtp/src/auto/versions.txt | 4 +- gstreamer-rtp/sys/Cargo.toml | 2 +- gstreamer-rtp/sys/build.rs | 10 +- gstreamer-rtp/sys/src/lib.rs | 214 ++--- 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 | 56 +- gstreamer-rtsp-server/src/auto/rtsp_client.rs | 116 +-- gstreamer-rtsp-server/src/auto/rtsp_media.rs | 156 ++-- .../src/auto/rtsp_media_factory.rs | 64 +- gstreamer-rtsp-server/src/auto/rtsp_server.rs | 16 +- .../src/auto/rtsp_session_media.rs | 8 +- gstreamer-rtsp-server/src/auto/rtsp_stream.rs | 192 ++-- .../src/auto/rtsp_stream_transport.rs | 40 +- gstreamer-rtsp-server/src/auto/versions.txt | 4 +- gstreamer-rtsp-server/sys/Cargo.toml | 2 +- gstreamer-rtsp-server/sys/build.rs | 10 +- gstreamer-rtsp-server/sys/src/lib.rs | 386 ++++---- 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 | 8 +- gstreamer-rtsp/src/auto/rtsp_auth_param.rs | 4 +- gstreamer-rtsp/src/auto/rtsp_url.rs | 4 +- gstreamer-rtsp/src/auto/versions.txt | 4 +- gstreamer-rtsp/sys/Cargo.toml | 2 +- gstreamer-rtsp/sys/build.rs | 10 +- gstreamer-rtsp/sys/src/lib.rs | 130 +-- 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/Cargo.toml | 2 +- gstreamer-sdp/sys/build.rs | 10 +- gstreamer-sdp/sys/src/lib.rs | 22 +- gstreamer-sdp/sys/tests/abi.rs | 4 +- gstreamer-sdp/sys/tests/constant.c | 4 +- gstreamer-sdp/sys/tests/layout.c | 4 +- gstreamer-tag/sys/Cargo.toml | 2 +- gstreamer-tag/sys/build.rs | 10 +- gstreamer-tag/sys/src/lib.rs | 6 +- 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 | 496 +++++------ gstreamer-video/src/auto/flags.rs | 56 +- gstreamer-video/src/auto/mod.rs | 20 +- gstreamer-video/src/auto/versions.txt | 4 +- gstreamer-video/src/auto/video_decoder.rs | 60 +- gstreamer-video/src/auto/video_encoder.rs | 52 +- gstreamer-video/src/auto/video_overlay.rs | 8 +- gstreamer-video/sys/Cargo.toml | 2 +- gstreamer-video/sys/build.rs | 10 +- gstreamer-video/sys/src/lib.rs | 474 +++++----- 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 | 168 ++-- gstreamer-webrtc/src/auto/mod.rs | 32 +- gstreamer-webrtc/src/auto/versions.txt | 4 +- .../src/auto/web_rtc_data_channel.rs | 32 +- .../src/auto/web_rtcrtp_transceiver.rs | 32 +- gstreamer-webrtc/sys/Cargo.toml | 2 +- gstreamer-webrtc/sys/build.rs | 10 +- gstreamer-webrtc/sys/src/lib.rs | 70 +- 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 | 44 +- gstreamer/src/auto/bus.rs | 4 +- gstreamer/src/auto/clock.rs | 8 +- gstreamer/src/auto/date_time.rs | 8 +- gstreamer/src/auto/device_provider.rs | 8 +- gstreamer/src/auto/element.rs | 32 +- gstreamer/src/auto/enums.rs | 68 +- gstreamer/src/auto/flags.rs | 112 +-- gstreamer/src/auto/functions.rs | 36 +- gstreamer/src/auto/mod.rs | 32 +- gstreamer/src/auto/pad.rs | 52 +- gstreamer/src/auto/pad_template.rs | 16 +- gstreamer/src/auto/stream.rs | 88 +- gstreamer/src/auto/stream_collection.rs | 16 +- gstreamer/src/auto/versions.txt | 4 +- gstreamer/sys/Cargo.toml | 2 +- gstreamer/sys/build.rs | 10 +- gstreamer/sys/src/lib.rs | 822 +++++++++--------- gstreamer/sys/tests/abi.rs | 4 +- gstreamer/sys/tests/constant.c | 4 +- gstreamer/sys/tests/layout.c | 4 +- 214 files changed, 3621 insertions(+), 3621 deletions(-) diff --git a/gstreamer-app/src/auto/app_sink.rs b/gstreamer-app/src/auto/app_sink.rs index 774229e9a..e0378e3af 100644 --- a/gstreamer-app/src/auto/app_sink.rs +++ b/gstreamer-app/src/auto/app_sink.rs @@ -20,8 +20,8 @@ glib::glib_wrapper! { } impl AppSink { - #[cfg(any(feature = "v1_12", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] pub fn get_buffer_list_support(&self) -> bool { unsafe { from_glib(ffi::gst_app_sink_get_buffer_list_support( @@ -68,8 +68,8 @@ impl AppSink { } } - #[cfg(any(feature = "v1_12", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] pub fn set_buffer_list_support(&self, enable_lists: bool) { unsafe { ffi::gst_app_sink_set_buffer_list_support( @@ -113,8 +113,8 @@ impl AppSink { } } - #[cfg(any(feature = "v1_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] pub fn try_pull_preroll(&self, timeout: gst::ClockTime) -> Option { unsafe { from_glib_full(ffi::gst_app_sink_try_pull_preroll( @@ -124,8 +124,8 @@ impl AppSink { } } - #[cfg(any(feature = "v1_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] pub fn try_pull_sample(&self, timeout: gst::ClockTime) -> Option { unsafe { from_glib_full(ffi::gst_app_sink_try_pull_sample( diff --git a/gstreamer-app/src/auto/app_src.rs b/gstreamer-app/src/auto/app_src.rs index 9563857d5..1a04305cc 100644 --- a/gstreamer-app/src/auto/app_src.rs +++ b/gstreamer-app/src/auto/app_src.rs @@ -29,8 +29,8 @@ impl AppSrc { unsafe { ffi::gst_app_src_get_current_level_bytes(self.to_glib_none().0) } } - #[cfg(any(feature = "v1_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] pub fn get_duration(&self) -> gst::ClockTime { unsafe { from_glib(ffi::gst_app_src_get_duration(self.to_glib_none().0)) } } @@ -61,8 +61,8 @@ impl AppSrc { } } - #[cfg(any(feature = "v1_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] pub fn set_duration(&self, duration: gst::ClockTime) { unsafe { ffi::gst_app_src_set_duration(self.to_glib_none().0, duration.to_glib()); @@ -143,8 +143,8 @@ impl AppSrc { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] pub fn get_property_handle_segment_change(&self) -> bool { unsafe { let mut value = Value::from_type(::static_type()); @@ -160,8 +160,8 @@ impl AppSrc { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] pub fn set_property_handle_segment_change(&self, handle_segment_change: bool) { unsafe { glib::gobject_ffi::g_object_set_property( @@ -425,8 +425,8 @@ impl AppSrc { } } - #[cfg(any(feature = "v1_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] pub fn connect_property_duration_notify( &self, f: F, @@ -504,8 +504,8 @@ impl AppSrc { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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 f7a42b211..94b4315ac 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 @ 694b4b8) -from gir-files (https://github.com/gtk-rs/gir-files @ 58bda97d) +Generated by gir (https://github.com/gtk-rs/gir @ b16d610) +from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) diff --git a/gstreamer-app/sys/Cargo.toml b/gstreamer-app/sys/Cargo.toml index c8a5da0c0..f86253efa 100644 --- a/gstreamer-app/sys/Cargo.toml +++ b/gstreamer-app/sys/Cargo.toml @@ -47,7 +47,7 @@ repository = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs" version = "0.17.0" edition = "2018" [package.metadata.docs.rs] -features = ["dox"] +features = [] [package.metadata.system-deps.gstreamer_app_1_0] name = "gstreamer-app-1.0" version = "1.8" diff --git a/gstreamer-app/sys/build.rs b/gstreamer-app/sys/build.rs index c69299ced..f3f73eb6b 100644 --- a/gstreamer-app/sys/build.rs +++ b/gstreamer-app/sys/build.rs @@ -1,14 +1,14 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 694b4b8) -// from gir-files (https://github.com/gtk-rs/gir-files @ 58bda97d) +// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) +// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) // DO NOT EDIT -#[cfg(not(feature = "dox"))] +#[cfg(any(not(doc), doctest))] use std::process; -#[cfg(feature = "dox")] +#[cfg(all(not(doctest), doc))] fn main() {} // prevent linking libraries to avoid documentation failure -#[cfg(not(feature = "dox"))] +#[cfg(any(not(doc), doctest))] fn main() { if let Err(s) = system_deps::Config::new().probe() { let _ = eprintln!("{}", s); diff --git a/gstreamer-app/sys/src/lib.rs b/gstreamer-app/sys/src/lib.rs index b40309401..7208ee16b 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 @ 694b4b8) -// from gir-files (https://github.com/gtk-rs/gir-files @ 58bda97d) +// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) +// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) // DO NOT EDIT #![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)] @@ -8,7 +8,7 @@ clippy::type_complexity, clippy::unreadable_literal )] -#![cfg_attr(feature = "dox", feature(doc_cfg))] +#![cfg_attr(all(not(doctest), doc), feature(doc_cfg))] use glib_sys as glib; use gstreamer_base_sys as gst_base; @@ -186,8 +186,8 @@ extern "C" { // GstAppSink //========================================================================= pub fn gst_app_sink_get_type() -> GType; - #[cfg(any(feature = "v1_12", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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,8 +197,8 @@ extern "C" { pub fn gst_app_sink_is_eos(appsink: *mut GstAppSink) -> gboolean; 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")))] + #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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, @@ -211,14 +211,14 @@ extern "C" { pub fn gst_app_sink_set_emit_signals(appsink: *mut GstAppSink, emit: gboolean); 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")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] pub fn gst_app_sink_try_pull_sample( appsink: *mut GstAppSink, timeout: gst::GstClockTime, @@ -231,8 +231,8 @@ extern "C" { pub fn gst_app_src_end_of_stream(appsrc: *mut GstAppSrc) -> gst::GstFlowReturn; 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")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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); @@ -243,8 +243,8 @@ extern "C" { appsrc: *mut GstAppSrc, buffer: *mut gst::GstBuffer, ) -> gst::GstFlowReturn; - #[cfg(any(feature = "v1_14", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] pub fn gst_app_src_push_buffer_list( appsrc: *mut GstAppSrc, buffer_list: *mut gst::GstBufferList, @@ -260,8 +260,8 @@ extern "C" { notify: glib::GDestroyNotify, ); 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")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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 c1c862343..5a958efb4 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 @ 694b4b8) -// from gir-files (https://github.com/gtk-rs/gir-files @ 58bda97d) +// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) +// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) // DO NOT EDIT use gstreamer_app_sys::*; diff --git a/gstreamer-app/sys/tests/constant.c b/gstreamer-app/sys/tests/constant.c index 63be6f6a4..819aa4a30 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 @ 694b4b8) -// from gir-files (https://github.com/gtk-rs/gir-files @ 58bda97d) +// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) +// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-app/sys/tests/layout.c b/gstreamer-app/sys/tests/layout.c index 73f80e89d..ad8a5a3ff 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 @ 694b4b8) -// from gir-files (https://github.com/gtk-rs/gir-files @ 58bda97d) +// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) +// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) // 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 6c71bb15a..f7793430b 100644 --- a/gstreamer-audio/src/auto/audio_decoder.rs +++ b/gstreamer-audio/src/auto/audio_decoder.rs @@ -56,8 +56,8 @@ 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")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] fn set_allocation_caps(&self, allocation_caps: Option<&gst::Caps>); fn set_drainable(&self, enabled: bool); @@ -80,8 +80,8 @@ 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] fn connect_property_max_errors_notify( &self, f: F, @@ -228,8 +228,8 @@ impl> AudioDecoderExt for O { } } - #[cfg(any(feature = "v1_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] fn set_allocation_caps(&self, allocation_caps: Option<&gst::Caps>) { unsafe { ffi::gst_audio_decoder_set_allocation_caps( @@ -315,8 +315,8 @@ impl> AudioDecoderExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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 c784711e4..c0aa57704 100644 --- a/gstreamer-audio/src/auto/audio_encoder.rs +++ b/gstreamer-audio/src/auto/audio_encoder.rs @@ -53,8 +53,8 @@ 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")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] fn set_allocation_caps(&self, allocation_caps: Option<&gst::Caps>); fn set_drainable(&self, enabled: bool); @@ -205,8 +205,8 @@ impl> AudioEncoderExt for O { } } - #[cfg(any(feature = "v1_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] fn set_allocation_caps(&self, allocation_caps: Option<&gst::Caps>) { unsafe { ffi::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 a839d2774..363fc6054 100644 --- a/gstreamer-audio/src/auto/audio_stream_align.rs +++ b/gstreamer-audio/src/auto/audio_stream_align.rs @@ -2,8 +2,8 @@ // from gir-files (https://github.com/gtk-rs/gir-files) // DO NOT EDIT -#[cfg(any(feature = "v1_14", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] +#[cfg(any(feature = "v1_14", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] use glib::translate::*; glib::glib_wrapper! { @@ -18,8 +18,8 @@ glib::glib_wrapper! { } impl AudioStreamAlign { - #[cfg(any(feature = "v1_14", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] pub fn new( rate: i32, alignment_threshold: gst::ClockTime, @@ -35,8 +35,8 @@ impl AudioStreamAlign { } } - #[cfg(any(feature = "v1_14", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] pub fn get_alignment_threshold(&self) -> gst::ClockTime { unsafe { from_glib(ffi::gst_audio_stream_align_get_alignment_threshold( @@ -45,8 +45,8 @@ impl AudioStreamAlign { } } - #[cfg(any(feature = "v1_14", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] pub fn get_discont_wait(&self) -> gst::ClockTime { unsafe { from_glib(ffi::gst_audio_stream_align_get_discont_wait(mut_override( @@ -55,14 +55,14 @@ impl AudioStreamAlign { } } - #[cfg(any(feature = "v1_14", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] pub fn get_rate(&self) -> i32 { unsafe { ffi::gst_audio_stream_align_get_rate(mut_override(self.to_glib_none().0)) } } - #[cfg(any(feature = "v1_14", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] pub fn get_samples_since_discont(&self) -> u64 { unsafe { ffi::gst_audio_stream_align_get_samples_since_discont(mut_override( @@ -71,8 +71,8 @@ impl AudioStreamAlign { } } - #[cfg(any(feature = "v1_14", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] pub fn get_timestamp_at_discont(&self) -> gst::ClockTime { unsafe { from_glib(ffi::gst_audio_stream_align_get_timestamp_at_discont( @@ -81,16 +81,16 @@ impl AudioStreamAlign { } } - #[cfg(any(feature = "v1_14", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] pub fn mark_discont(&mut self) { unsafe { ffi::gst_audio_stream_align_mark_discont(self.to_glib_none_mut().0); } } - #[cfg(any(feature = "v1_14", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] pub fn set_alignment_threshold(&mut self, alignment_threshold: gst::ClockTime) { unsafe { ffi::gst_audio_stream_align_set_alignment_threshold( @@ -100,8 +100,8 @@ impl AudioStreamAlign { } } - #[cfg(any(feature = "v1_14", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] pub fn set_discont_wait(&mut self, discont_wait: gst::ClockTime) { unsafe { ffi::gst_audio_stream_align_set_discont_wait( @@ -111,8 +111,8 @@ impl AudioStreamAlign { } } - #[cfg(any(feature = "v1_14", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] pub fn set_rate(&mut self, rate: i32) { unsafe { ffi::gst_audio_stream_align_set_rate(self.to_glib_none_mut().0, rate); diff --git a/gstreamer-audio/src/auto/enums.rs b/gstreamer-audio/src/auto/enums.rs index ca0075897..2df88b55f 100644 --- a/gstreamer-audio/src/auto/enums.rs +++ b/gstreamer-audio/src/auto/enums.rs @@ -388,14 +388,14 @@ pub enum AudioRingBufferFormatType { Dts, Mpeg2Aac, Mpeg4Aac, - #[cfg(any(feature = "v1_12", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] Mpeg2AacRaw, - #[cfg(any(feature = "v1_12", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] Mpeg4AacRaw, - #[cfg(any(feature = "v1_12", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] Flac, #[doc(hidden)] __Unknown(i32), @@ -419,15 +419,15 @@ impl ToGlib for AudioRingBufferFormatType { AudioRingBufferFormatType::Dts => ffi::GST_AUDIO_RING_BUFFER_FORMAT_TYPE_DTS, AudioRingBufferFormatType::Mpeg2Aac => ffi::GST_AUDIO_RING_BUFFER_FORMAT_TYPE_MPEG2_AAC, AudioRingBufferFormatType::Mpeg4Aac => ffi::GST_AUDIO_RING_BUFFER_FORMAT_TYPE_MPEG4_AAC, - #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] AudioRingBufferFormatType::Mpeg2AacRaw => { ffi::GST_AUDIO_RING_BUFFER_FORMAT_TYPE_MPEG2_AAC_RAW } - #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] AudioRingBufferFormatType::Mpeg4AacRaw => { ffi::GST_AUDIO_RING_BUFFER_FORMAT_TYPE_MPEG4_AAC_RAW } - #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] AudioRingBufferFormatType::Flac => ffi::GST_AUDIO_RING_BUFFER_FORMAT_TYPE_FLAC, AudioRingBufferFormatType::__Unknown(value) => value, } @@ -451,11 +451,11 @@ impl FromGlib for AudioRingBufferFormatType { 9 => AudioRingBufferFormatType::Dts, 10 => AudioRingBufferFormatType::Mpeg2Aac, 11 => AudioRingBufferFormatType::Mpeg4Aac, - #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] 12 => AudioRingBufferFormatType::Mpeg2AacRaw, - #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] 13 => AudioRingBufferFormatType::Mpeg4AacRaw, - #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] 14 => AudioRingBufferFormatType::Flac, value => AudioRingBufferFormatType::__Unknown(value), } diff --git a/gstreamer-audio/src/auto/mod.rs b/gstreamer-audio/src/auto/mod.rs index 755680d63..3047ec125 100644 --- a/gstreamer-audio/src/auto/mod.rs +++ b/gstreamer-audio/src/auto/mod.rs @@ -28,11 +28,11 @@ mod stream_volume; 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")))] +#[cfg(any(feature = "v1_14", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), 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")))] +#[cfg(any(feature = "v1_14", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), 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 f7a42b211..94b4315ac 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 @ 694b4b8) -from gir-files (https://github.com/gtk-rs/gir-files @ 58bda97d) +Generated by gir (https://github.com/gtk-rs/gir @ b16d610) +from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) diff --git a/gstreamer-audio/sys/Cargo.toml b/gstreamer-audio/sys/Cargo.toml index 23c520513..a02ebf903 100644 --- a/gstreamer-audio/sys/Cargo.toml +++ b/gstreamer-audio/sys/Cargo.toml @@ -50,7 +50,7 @@ repository = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs" version = "0.17.0" edition = "2018" [package.metadata.docs.rs] -features = ["dox"] +features = [] [package.metadata.system-deps.gstreamer_audio_1_0] name = "gstreamer-audio-1.0" version = "1.8" diff --git a/gstreamer-audio/sys/build.rs b/gstreamer-audio/sys/build.rs index c69299ced..f3f73eb6b 100644 --- a/gstreamer-audio/sys/build.rs +++ b/gstreamer-audio/sys/build.rs @@ -1,14 +1,14 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 694b4b8) -// from gir-files (https://github.com/gtk-rs/gir-files @ 58bda97d) +// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) +// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) // DO NOT EDIT -#[cfg(not(feature = "dox"))] +#[cfg(any(not(doc), doctest))] use std::process; -#[cfg(feature = "dox")] +#[cfg(all(not(doctest), doc))] fn main() {} // prevent linking libraries to avoid documentation failure -#[cfg(not(feature = "dox"))] +#[cfg(any(not(doc), doctest))] fn main() { if let Err(s) = system_deps::Config::new().probe() { let _ = eprintln!("{}", s); diff --git a/gstreamer-audio/sys/src/lib.rs b/gstreamer-audio/sys/src/lib.rs index 0eaa36c62..d7af10ae6 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 @ 694b4b8) -// from gir-files (https://github.com/gtk-rs/gir-files @ 58bda97d) +// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) +// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) // DO NOT EDIT #![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)] @@ -8,7 +8,7 @@ clippy::type_complexity, clippy::unreadable_literal )] -#![cfg_attr(feature = "dox", feature(doc_cfg))] +#![cfg_attr(all(not(doctest), doc), feature(doc_cfg))] use glib_sys as glib; use gobject_sys as gobject; @@ -1441,22 +1441,22 @@ extern "C" { //========================================================================= // GstAudioResamplerFilterInterpolation //========================================================================= - #[cfg(any(feature = "v1_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] pub fn gst_audio_resampler_method_get_type() -> GType; //========================================================================= @@ -1502,23 +1502,23 @@ extern "C" { //========================================================================= // GstAudioResamplerFlags //========================================================================= - #[cfg(any(feature = "v1_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] pub fn gst_audio_buffer_map( buffer: *mut GstAudioBuffer, info: *const GstAudioInfo, gstbuffer: *mut gst::GstBuffer, flags: gst::GstMapFlags, ) -> gboolean; - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] pub fn gst_audio_buffer_unmap(buffer: *mut GstAudioBuffer); pub fn gst_audio_buffer_clip( buffer: *mut gst::GstBuffer, @@ -1533,8 +1533,8 @@ extern "C" { from: *const GstAudioChannelPosition, to: *const GstAudioChannelPosition, ) -> gboolean; - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] pub fn gst_audio_buffer_truncate( buffer: *mut gst::GstBuffer, bpf: c_int, @@ -1561,8 +1561,8 @@ extern "C" { out_channels: c_int, out_position: *mut GstAudioChannelPosition, ) -> *mut GstAudioChannelMixer; - #[cfg(any(feature = "v1_14", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] pub fn gst_audio_channel_mixer_new_with_matrix( flags: GstAudioChannelMixerFlags, format: GstAudioFormat, @@ -1579,8 +1579,8 @@ extern "C" { //========================================================================= // GstAudioConverter //========================================================================= - #[cfg(any(feature = "v1_14", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] pub fn gst_audio_converter_get_type() -> GType; pub fn gst_audio_converter_new( flags: GstAudioConverterFlags, @@ -1588,8 +1588,8 @@ extern "C" { out_info: *mut GstAudioInfo, config: *mut gst::GstStructure, ) -> *mut GstAudioConverter; - #[cfg(any(feature = "v1_14", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] pub fn gst_audio_converter_convert( convert: *mut GstAudioConverter, flags: GstAudioConverterFlags, @@ -1613,8 +1613,8 @@ extern "C" { convert: *mut GstAudioConverter, in_frames: size_t, ) -> size_t; - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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( @@ -1625,8 +1625,8 @@ extern "C" { out: *mut gpointer, out_frames: size_t, ) -> gboolean; - #[cfg(any(feature = "v1_12", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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, @@ -1681,8 +1681,8 @@ extern "C" { //========================================================================= // GstAudioMeta //========================================================================= - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] pub fn gst_audio_meta_get_info() -> *const gst::GstMetaInfo; //========================================================================= @@ -1708,26 +1708,26 @@ extern "C" { //========================================================================= // GstAudioResampler //========================================================================= - #[cfg(any(feature = "v1_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] pub fn gst_audio_resampler_resample( resampler: *mut GstAudioResampler, in_: *mut gpointer, @@ -1735,19 +1735,19 @@ extern "C" { out: *mut gpointer, out_frames: size_t, ); - #[cfg(any(feature = "v1_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] pub fn gst_audio_resampler_update( resampler: *mut GstAudioResampler, in_rate: c_int, out_rate: c_int, options: *mut gst::GstStructure, ) -> gboolean; - #[cfg(any(feature = "v1_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] pub fn gst_audio_resampler_new( method: GstAudioResamplerMethod, flags: GstAudioResamplerFlags, @@ -1757,8 +1757,8 @@ extern "C" { out_rate: c_int, options: *mut gst::GstStructure, ) -> *mut GstAudioResampler; - #[cfg(any(feature = "v1_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] pub fn gst_audio_resampler_options_set_quality( method: GstAudioResamplerMethod, quality: c_uint, @@ -1770,51 +1770,51 @@ extern "C" { //========================================================================= // GstAudioStreamAlign //========================================================================= - #[cfg(any(feature = "v1_14", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] pub fn gst_audio_stream_align_process( align: *mut GstAudioStreamAlign, discont: gboolean, @@ -1824,30 +1824,30 @@ extern "C" { out_duration: *mut gst::GstClockTime, out_sample_position: *mut u64, ) -> gboolean; - #[cfg(any(feature = "v1_14", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] pub fn gst_audio_aggregator_set_sink_caps( aagg: *mut GstAudioAggregator, pad: *mut GstAudioAggregatorPad, @@ -1857,15 +1857,15 @@ extern "C" { //========================================================================= // GstAudioAggregatorConvertPad //========================================================================= - #[cfg(any(feature = "v1_14", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] pub fn gst_audio_aggregator_pad_get_type() -> GType; //========================================================================= @@ -1966,8 +1966,8 @@ extern "C" { buf: *mut gst::GstBuffer, frames: c_int, ) -> gst::GstFlowReturn; - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] pub fn gst_audio_decoder_finish_subframe( dec: *mut GstAudioDecoder, buf: *mut gst::GstBuffer, @@ -2008,8 +2008,8 @@ extern "C" { caps: *mut gst::GstCaps, filter: *mut gst::GstCaps, ) -> *mut gst::GstCaps; - #[cfg(any(feature = "v1_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] pub fn gst_audio_decoder_set_allocation_caps( dec: *mut GstAudioDecoder, allocation_caps: *mut gst::GstCaps, @@ -2024,8 +2024,8 @@ extern "C" { pub fn gst_audio_decoder_set_max_errors(dec: *mut GstAudioDecoder, num: c_int); 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] pub fn gst_audio_decoder_set_output_caps( dec: *mut GstAudioDecoder, caps: *mut gst::GstCaps, @@ -2087,8 +2087,8 @@ extern "C" { caps: *mut gst::GstCaps, filter: *mut gst::GstCaps, ) -> *mut gst::GstCaps; - #[cfg(any(feature = "v1_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] pub fn gst_audio_encoder_set_allocation_caps( enc: *mut GstAudioEncoder, allocation_caps: *mut gst::GstCaps, @@ -2184,8 +2184,8 @@ extern "C" { cb: GstAudioRingBufferCallback, user_data: gpointer, ); - #[cfg(any(feature = "v1_12", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] pub fn gst_audio_ring_buffer_set_callback_full( buf: *mut GstAudioRingBuffer, cb: GstAudioRingBufferCallback, @@ -2252,8 +2252,8 @@ extern "C" { force_order: gboolean, channel_mask: *mut u64, ) -> gboolean; - #[cfg(any(feature = "v1_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] pub fn gst_audio_channel_positions_to_string( position: *const GstAudioChannelPosition, channels: c_int, @@ -2270,8 +2270,8 @@ extern "C" { pub fn gst_audio_clipping_meta_api_get_type() -> GType; 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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, @@ -2288,15 +2288,15 @@ extern "C" { spec: *const GstAudioRingBufferSpec, endianness: c_int, ) -> gboolean; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] pub fn gst_audio_meta_api_get_type() -> GType; pub fn gst_audio_reorder_channels( data: gpointer, @@ -2320,8 +2320,8 @@ extern "C" { to_channels: c_int, matrix: *mut *const c_float, ) -> *mut GstAudioDownmixMeta; - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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 8427a22ff..5a7169043 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 @ 694b4b8) -// from gir-files (https://github.com/gtk-rs/gir-files @ 58bda97d) +// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) +// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) // DO NOT EDIT use gstreamer_audio_sys::*; diff --git a/gstreamer-audio/sys/tests/constant.c b/gstreamer-audio/sys/tests/constant.c index 63be6f6a4..819aa4a30 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 @ 694b4b8) -// from gir-files (https://github.com/gtk-rs/gir-files @ 58bda97d) +// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) +// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-audio/sys/tests/layout.c b/gstreamer-audio/sys/tests/layout.c index 73f80e89d..ad8a5a3ff 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 @ 694b4b8) -// from gir-files (https://github.com/gtk-rs/gir-files @ 58bda97d) +// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) +// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-base/src/auto/adapter.rs b/gstreamer-base/src/auto/adapter.rs index abf3a4754..9dc5b09c8 100644 --- a/gstreamer-base/src/auto/adapter.rs +++ b/gstreamer-base/src/auto/adapter.rs @@ -45,14 +45,14 @@ impl Adapter { } } - #[cfg(any(feature = "v1_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] pub fn distance_from_discont(&self) -> u64 { unsafe { ffi::gst_adapter_distance_from_discont(self.to_glib_none().0) } } - #[cfg(any(feature = "v1_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] pub fn dts_at_discont(&self) -> gst::ClockTime { unsafe { from_glib(ffi::gst_adapter_dts_at_discont(self.to_glib_none().0)) } } @@ -127,8 +127,8 @@ impl Adapter { } } - #[cfg(any(feature = "v1_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] pub fn offset_at_discont(&self) -> u64 { unsafe { ffi::gst_adapter_offset_at_discont(self.to_glib_none().0) } } @@ -158,8 +158,8 @@ impl Adapter { } } - #[cfg(any(feature = "v1_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] pub fn prev_offset(&self) -> (u64, u64) { unsafe { let mut distance = mem::MaybeUninit::uninit(); @@ -194,8 +194,8 @@ impl Adapter { } } - #[cfg(any(feature = "v1_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] pub fn pts_at_discont(&self) -> gst::ClockTime { unsafe { from_glib(ffi::gst_adapter_pts_at_discont(self.to_glib_none().0)) } } diff --git a/gstreamer-base/src/auto/aggregator.rs b/gstreamer-base/src/auto/aggregator.rs index d7284ac0d..f9f8fa410 100644 --- a/gstreamer-base/src/auto/aggregator.rs +++ b/gstreamer-base/src/auto/aggregator.rs @@ -2,11 +2,11 @@ // from gir-files (https://github.com/gtk-rs/gir-files) // DO NOT EDIT -#[cfg(any(feature = "v1_18", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] +#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] use crate::AggregatorPad; -#[cfg(any(feature = "v1_18", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] +#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] use crate::AggregatorStartTimeSelection; use glib::object::Cast; use glib::object::IsA; @@ -32,75 +32,75 @@ unsafe impl Sync for Aggregator {} 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")))] + //#[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + //#[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + //#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + //#[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] fn set_property_emit_signals(&self, emit_signals: bool); fn get_property_start_time(&self) -> u64; 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + //#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + //#[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] fn connect_property_latency_notify( &self, f: F, @@ -111,8 +111,8 @@ pub trait AggregatorExt: 'static { f: F, ) -> SignalHandlerId; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] fn connect_property_start_time_selection_notify( &self, f: F, @@ -120,14 +120,14 @@ pub trait AggregatorExt: 'static { } impl> AggregatorExt for O { - //#[cfg(any(feature = "v1_14", feature = "dox"))] - //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] + //#[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + //#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] //fn get_allocator(&self, allocator: /*Ignored*/gst::Allocator, params: /*Ignored*/gst::AllocationParams) { // unsafe { TODO: call ffi:gst_aggregator_get_allocator() } //} - #[cfg(any(feature = "v1_14", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] fn get_buffer_pool(&self) -> Option { unsafe { from_glib_full(ffi::gst_aggregator_get_buffer_pool( @@ -136,8 +136,8 @@ impl> AggregatorExt for O { } } - #[cfg(any(feature = "v1_14", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] fn get_latency(&self) -> gst::ClockTime { unsafe { from_glib(ffi::gst_aggregator_get_latency( @@ -146,8 +146,8 @@ impl> AggregatorExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] fn negotiate(&self) -> bool { unsafe { from_glib(ffi::gst_aggregator_negotiate( @@ -156,8 +156,8 @@ impl> AggregatorExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] fn peek_next_sample>(&self, pad: &P) -> Option { unsafe { from_glib_full(ffi::gst_aggregator_peek_next_sample( @@ -167,8 +167,8 @@ impl> AggregatorExt for O { } } - #[cfg(any(feature = "v1_14", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] fn set_latency(&self, min_latency: gst::ClockTime, max_latency: gst::ClockTime) { unsafe { ffi::gst_aggregator_set_latency( @@ -179,16 +179,16 @@ impl> AggregatorExt for O { } } - #[cfg(any(feature = "v1_14", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] fn set_src_caps(&self, caps: &gst::Caps) { unsafe { ffi::gst_aggregator_set_src_caps(self.as_ref().to_glib_none().0, caps.to_glib_none().0); } } - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] fn simple_get_next_time(&self) -> gst::ClockTime { unsafe { from_glib(ffi::gst_aggregator_simple_get_next_time( @@ -197,14 +197,14 @@ impl> AggregatorExt for O { } } - //#[cfg(any(feature = "v1_18", feature = "dox"))] - //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + //#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + //#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] //fn update_segment(&self, segment: /*Ignored*/&gst::Segment) { // unsafe { TODO: call ffi:gst_aggregator_update_segment() } //} - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] fn get_property_emit_signals(&self) -> bool { unsafe { let mut value = Value::from_type(::static_type()); @@ -220,8 +220,8 @@ impl> AggregatorExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] fn set_property_emit_signals(&self, emit_signals: bool) { unsafe { glib::gobject_ffi::g_object_set_property( @@ -257,8 +257,8 @@ impl> AggregatorExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] fn get_property_start_time_selection(&self) -> AggregatorStartTimeSelection { unsafe { let mut value = @@ -275,8 +275,8 @@ impl> AggregatorExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] fn set_property_start_time_selection( &self, start_time_selection: AggregatorStartTimeSelection, @@ -290,14 +290,14 @@ impl> AggregatorExt for O { } } - //#[cfg(any(feature = "v1_18", feature = "dox"))] - //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + //#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + //#[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] fn connect_property_emit_signals_notify( &self, f: F, @@ -325,8 +325,8 @@ impl> AggregatorExt for O { } } - #[cfg(any(feature = "v1_14", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] fn connect_property_latency_notify( &self, f: F, @@ -381,8 +381,8 @@ impl> AggregatorExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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 23508b7d5..1d66ff114 100644 --- a/gstreamer-base/src/auto/aggregator_pad.rs +++ b/gstreamer-base/src/auto/aggregator_pad.rs @@ -7,11 +7,11 @@ use glib::object::IsA; 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")))] +#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] use glib::StaticType; -#[cfg(any(feature = "v1_16", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] +#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] use glib::Value; use std::boxed::Box as Box_; use std::mem::transmute; @@ -30,32 +30,32 @@ unsafe impl Sync for AggregatorPad {} 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")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_14_1", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] fn set_property_emit_signals(&self, emit_signals: bool); fn connect_buffer_consumed( @@ -63,8 +63,8 @@ pub trait AggregatorPadExt: 'static { f: F, ) -> SignalHandlerId; - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] fn connect_property_emit_signals_notify( &self, f: F, @@ -72,8 +72,8 @@ pub trait AggregatorPadExt: 'static { } impl> AggregatorPadExt for O { - #[cfg(any(feature = "v1_14", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] fn drop_buffer(&self) -> bool { unsafe { from_glib(ffi::gst_aggregator_pad_drop_buffer( @@ -82,8 +82,8 @@ impl> AggregatorPadExt for O { } } - #[cfg(any(feature = "v1_14_1", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14_1")))] + #[cfg(any(feature = "v1_14_1", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14_1")))] fn has_buffer(&self) -> bool { unsafe { from_glib(ffi::gst_aggregator_pad_has_buffer( @@ -92,8 +92,8 @@ impl> AggregatorPadExt for O { } } - #[cfg(any(feature = "v1_14", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] fn is_eos(&self) -> bool { unsafe { from_glib(ffi::gst_aggregator_pad_is_eos( @@ -102,8 +102,8 @@ impl> AggregatorPadExt for O { } } - #[cfg(any(feature = "v1_14", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] fn peek_buffer(&self) -> Option { unsafe { from_glib_full(ffi::gst_aggregator_pad_peek_buffer( @@ -112,8 +112,8 @@ impl> AggregatorPadExt for O { } } - #[cfg(any(feature = "v1_14", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] fn pop_buffer(&self) -> Option { unsafe { from_glib_full(ffi::gst_aggregator_pad_pop_buffer( @@ -122,8 +122,8 @@ impl> AggregatorPadExt for O { } } - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] fn get_property_emit_signals(&self) -> bool { unsafe { let mut value = Value::from_type(::static_type()); @@ -139,8 +139,8 @@ impl> AggregatorPadExt for O { } } - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] fn set_property_emit_signals(&self, emit_signals: bool) { unsafe { glib::gobject_ffi::g_object_set_property( @@ -184,8 +184,8 @@ impl> AggregatorPadExt for O { } } - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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 beceebb1b..03a27aef4 100644 --- a/gstreamer-base/src/auto/base_parse.rs +++ b/gstreamer-base/src/auto/base_parse.rs @@ -28,8 +28,8 @@ pub const NONE_BASE_PARSE: Option<&BaseParse> = None; 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")))] + #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] fn drain(&self); fn merge_tags(&self, tags: Option<&gst::TagList>, mode: gst::TagMergeMode); @@ -75,8 +75,8 @@ impl> BaseParseExt for O { } } - #[cfg(any(feature = "v1_12", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] fn drain(&self) { unsafe { ffi::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 74a11a2bf..c30ed05a5 100644 --- a/gstreamer-base/src/auto/base_sink.rs +++ b/gstreamer-base/src/auto/base_sink.rs @@ -30,8 +30,8 @@ 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")))] + #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] fn get_drop_out_of_segment(&self) -> bool; fn get_last_sample(&self) -> Option; @@ -42,14 +42,14 @@ 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] fn get_stats(&self) -> Option; fn get_sync(&self) -> bool; @@ -68,8 +68,8 @@ 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")))] + #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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); @@ -78,8 +78,8 @@ 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] fn set_processing_deadline(&self, processing_deadline: gst::ClockTime); fn set_qos_enabled(&self, enabled: bool); @@ -134,8 +134,8 @@ pub trait BaseSinkExt: 'static { f: F, ) -> SignalHandlerId; - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] fn connect_property_processing_deadline_notify( &self, f: F, @@ -151,8 +151,8 @@ pub trait BaseSinkExt: 'static { f: F, ) -> SignalHandlerId; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] fn connect_property_stats_notify( &self, f: F, @@ -183,8 +183,8 @@ impl> BaseSinkExt for O { unsafe { ffi::gst_base_sink_get_blocksize(self.as_ref().to_glib_none().0) } } - #[cfg(any(feature = "v1_12", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] fn get_drop_out_of_segment(&self) -> bool { unsafe { from_glib(ffi::gst_base_sink_get_drop_out_of_segment( @@ -217,8 +217,8 @@ impl> BaseSinkExt for O { unsafe { ffi::gst_base_sink_get_max_lateness(self.as_ref().to_glib_none().0) } } - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] fn get_processing_deadline(&self) -> gst::ClockTime { unsafe { from_glib(ffi::gst_base_sink_get_processing_deadline( @@ -235,8 +235,8 @@ impl> BaseSinkExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] fn get_stats(&self) -> Option { unsafe { from_glib_full(ffi::gst_base_sink_get_stats(self.as_ref().to_glib_none().0)) } } @@ -289,8 +289,8 @@ impl> BaseSinkExt for O { } } - #[cfg(any(feature = "v1_12", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] fn set_drop_out_of_segment(&self, drop_out_of_segment: bool) { unsafe { ffi::gst_base_sink_set_drop_out_of_segment( @@ -321,8 +321,8 @@ impl> BaseSinkExt for O { } } - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] fn set_processing_deadline(&self, processing_deadline: gst::ClockTime) { unsafe { ffi::gst_base_sink_set_processing_deadline( @@ -602,8 +602,8 @@ impl> BaseSinkExt for O { } } - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] fn connect_property_processing_deadline_notify( &self, f: F, @@ -688,8 +688,8 @@ impl> BaseSinkExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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 1dbd916f5..bc3dc9d2f 100644 --- a/gstreamer-base/src/auto/base_src.rs +++ b/gstreamer-base/src/auto/base_src.rs @@ -38,8 +38,8 @@ 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] fn negotiate(&self) -> bool; #[cfg_attr(feature = "v1_18", deprecated)] @@ -123,8 +123,8 @@ impl> BaseSrcExt for O { unsafe { from_glib(ffi::gst_base_src_is_live(self.as_ref().to_glib_none().0)) } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] fn negotiate(&self) -> bool { unsafe { from_glib(ffi::gst_base_src_negotiate(self.as_ref().to_glib_none().0)) } } diff --git a/gstreamer-base/src/auto/base_transform.rs b/gstreamer-base/src/auto/base_transform.rs index e8424f40d..0d0212a3c 100644 --- a/gstreamer-base/src/auto/base_transform.rs +++ b/gstreamer-base/src/auto/base_transform.rs @@ -36,8 +36,8 @@ 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] fn reconfigure(&self) -> bool; fn reconfigure_sink(&self); @@ -105,8 +105,8 @@ impl> BaseTransformExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] fn reconfigure(&self) -> bool { unsafe { from_glib(ffi::gst_base_transform_reconfigure( diff --git a/gstreamer-base/src/auto/enums.rs b/gstreamer-base/src/auto/enums.rs index fa38311f7..0d906ad74 100644 --- a/gstreamer-base/src/auto/enums.rs +++ b/gstreamer-base/src/auto/enums.rs @@ -10,8 +10,8 @@ use glib::value::Value; use glib::StaticType; use glib::Type; -#[cfg(any(feature = "v1_18", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] +#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] pub enum AggregatorStartTimeSelection { @@ -22,8 +22,8 @@ pub enum AggregatorStartTimeSelection { __Unknown(i32), } -#[cfg(any(feature = "v1_18", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] +#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] #[doc(hidden)] impl ToGlib for AggregatorStartTimeSelection { type GlibType = ffi::GstAggregatorStartTimeSelection; @@ -38,8 +38,8 @@ impl ToGlib for AggregatorStartTimeSelection { } } -#[cfg(any(feature = "v1_18", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] +#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] #[doc(hidden)] impl FromGlib for AggregatorStartTimeSelection { fn from_glib(value: ffi::GstAggregatorStartTimeSelection) -> Self { @@ -53,32 +53,32 @@ impl FromGlib for AggregatorStartTimeSelec } } -#[cfg(any(feature = "v1_18", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] +#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] impl StaticType for AggregatorStartTimeSelection { fn static_type() -> Type { unsafe { from_glib(ffi::gst_aggregator_start_time_selection_get_type()) } } } -#[cfg(any(feature = "v1_18", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] +#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] impl<'a> FromValueOptional<'a> for AggregatorStartTimeSelection { unsafe fn from_value_optional(value: &Value) -> Option { Some(FromValue::from_value(value)) } } -#[cfg(any(feature = "v1_18", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] +#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] impl<'a> FromValue<'a> for AggregatorStartTimeSelection { unsafe fn from_value(value: &Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0)) } } -#[cfg(any(feature = "v1_18", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] +#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] impl SetValue for AggregatorStartTimeSelection { unsafe fn set_value(value: &mut Value, this: &Self) { glib::gobject_ffi::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 fb8e4f253..da06d7de0 100644 --- a/gstreamer-base/src/auto/functions.rs +++ b/gstreamer-base/src/auto/functions.rs @@ -37,8 +37,8 @@ pub fn type_find_helper_for_extension>( // unsafe { TODO: call ffi:gst_type_find_helper_get_range() } //} -//#[cfg(any(feature = "v1_14_3", feature = "dox"))] -//#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14_3")))] +//#[cfg(any(feature = "v1_14_3", all(not(doctest), doc)))] +//#[cfg_attr(all(not(doctest), doc), 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 ffi:gst_type_find_helper_get_range_full() } //} diff --git a/gstreamer-base/src/auto/mod.rs b/gstreamer-base/src/auto/mod.rs index 828c6259d..f84d3a361 100644 --- a/gstreamer-base/src/auto/mod.rs +++ b/gstreamer-base/src/auto/mod.rs @@ -5,24 +5,24 @@ mod adapter; pub use self::adapter::Adapter; -#[cfg(any(feature = "v1_14", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] +#[cfg(any(feature = "v1_14", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] mod aggregator; -#[cfg(any(feature = "v1_14", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] +#[cfg(any(feature = "v1_14", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), 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")))] +#[cfg(any(feature = "v1_14", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), 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")))] +#[cfg(any(feature = "v1_14", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] mod aggregator_pad; -#[cfg(any(feature = "v1_14", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] +#[cfg(any(feature = "v1_14", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), 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")))] +#[cfg(any(feature = "v1_14", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] pub use self::aggregator_pad::{AggregatorPad, NONE_AGGREGATOR_PAD}; mod base_parse; @@ -45,8 +45,8 @@ mod push_src; 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")))] +#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] pub use self::enums::AggregatorStartTimeSelection; mod flags; @@ -56,11 +56,11 @@ pub mod functions; #[doc(hidden)] pub mod traits { - #[cfg(any(feature = "v1_14", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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 f7a42b211..94b4315ac 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 @ 694b4b8) -from gir-files (https://github.com/gtk-rs/gir-files @ 58bda97d) +Generated by gir (https://github.com/gtk-rs/gir @ b16d610) +from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) diff --git a/gstreamer-base/sys/Cargo.toml b/gstreamer-base/sys/Cargo.toml index 083263afc..ec8b7bc33 100644 --- a/gstreamer-base/sys/Cargo.toml +++ b/gstreamer-base/sys/Cargo.toml @@ -51,7 +51,7 @@ repository = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs" version = "0.17.0" edition = "2018" [package.metadata.docs.rs] -features = ["dox"] +features = [] [package.metadata.system-deps.gstreamer_base_1_0] name = "gstreamer-base-1.0" version = "1.8" diff --git a/gstreamer-base/sys/build.rs b/gstreamer-base/sys/build.rs index c69299ced..f3f73eb6b 100644 --- a/gstreamer-base/sys/build.rs +++ b/gstreamer-base/sys/build.rs @@ -1,14 +1,14 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 694b4b8) -// from gir-files (https://github.com/gtk-rs/gir-files @ 58bda97d) +// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) +// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) // DO NOT EDIT -#[cfg(not(feature = "dox"))] +#[cfg(any(not(doc), doctest))] use std::process; -#[cfg(feature = "dox")] +#[cfg(all(not(doctest), doc))] fn main() {} // prevent linking libraries to avoid documentation failure -#[cfg(not(feature = "dox"))] +#[cfg(any(not(doc), doctest))] fn main() { if let Err(s) = system_deps::Config::new().probe() { let _ = eprintln!("{}", s); diff --git a/gstreamer-base/sys/src/lib.rs b/gstreamer-base/sys/src/lib.rs index 51eff1478..f1e14d908 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 @ 694b4b8) -// from gir-files (https://github.com/gtk-rs/gir-files @ 58bda97d) +// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) +// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) // DO NOT EDIT #![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)] @@ -8,7 +8,7 @@ clippy::type_complexity, clippy::unreadable_literal )] -#![cfg_attr(feature = "dox", feature(doc_cfg))] +#![cfg_attr(all(not(doctest), doc), feature(doc_cfg))] use glib_sys as glib; use gobject_sys as gobject; @@ -1216,8 +1216,8 @@ extern "C" { //========================================================================= // GstAggregatorStartTimeSelection //========================================================================= - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] pub fn gst_aggregator_start_time_selection_get_type() -> GType; //========================================================================= @@ -1229,8 +1229,8 @@ extern "C" { flags: GstBaseParseFrameFlags, overhead: c_int, ) -> *mut GstBaseParseFrame; - #[cfg(any(feature = "v1_12_1", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12_1")))] + #[cfg(any(feature = "v1_12_1", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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); @@ -1291,101 +1291,101 @@ extern "C" { //========================================================================= // GstBitWriter //========================================================================= - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] pub fn gst_bit_writer_init_with_data( bitwriter: *mut GstBitWriter, data: *mut u8, size: c_uint, initialized: gboolean, ); - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] pub fn gst_bit_writer_new_with_size(size: u32, fixed: gboolean) -> *mut GstBitWriter; //========================================================================= @@ -1616,13 +1616,13 @@ extern "C" { pub fn gst_flow_combiner_add_pad(combiner: *mut GstFlowCombiner, pad: *mut gst::GstPad); 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")))] + #[cfg(any(feature = "v1_12_1", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_12_1", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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, @@ -1637,8 +1637,8 @@ extern "C" { //========================================================================= // GstQueueArray //========================================================================= - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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( @@ -1656,30 +1656,30 @@ extern "C" { pub fn gst_queue_array_is_empty(array: *mut GstQueueArray) -> gboolean; 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] pub fn gst_queue_array_set_clear_func( array: *mut GstQueueArray, clear_func: glib::GDestroyNotify, @@ -1704,11 +1704,11 @@ extern "C" { offset: size_t, size: size_t, ) -> *mut glib::GBytes; - #[cfg(any(feature = "v1_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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; @@ -1737,8 +1737,8 @@ extern "C" { size: size_t, value: *mut u32, ) -> ssize_t; - #[cfg(any(feature = "v1_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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( @@ -1746,8 +1746,8 @@ extern "C" { offset: size_t, distance: *mut u64, ) -> gst::GstClockTime; - #[cfg(any(feature = "v1_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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( @@ -1755,8 +1755,8 @@ extern "C" { offset: size_t, distance: *mut u64, ) -> gst::GstClockTime; - #[cfg(any(feature = "v1_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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; @@ -1776,45 +1776,45 @@ extern "C" { //========================================================================= // GstAggregator //========================================================================= - #[cfg(any(feature = "v1_14", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] pub fn gst_aggregator_selected_samples( self_: *mut GstAggregator, pts: gst::GstClockTime, @@ -1822,21 +1822,21 @@ extern "C" { duration: gst::GstClockTime, info: *mut gst::GstStructure, ); - #[cfg(any(feature = "v1_14", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] pub fn gst_aggregator_update_segment( self_: *mut GstAggregator, segment: *const gst::GstSegment, @@ -1845,23 +1845,23 @@ extern "C" { //========================================================================= // GstAggregatorPad //========================================================================= - #[cfg(any(feature = "v1_14", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_14_1", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] pub fn gst_aggregator_pad_pop_buffer(pad: *mut GstAggregatorPad) -> *mut gst::GstBuffer; //========================================================================= @@ -1882,8 +1882,8 @@ extern "C" { dest_format: gst::GstFormat, dest_value: *mut i64, ) -> gboolean; - #[cfg(any(feature = "v1_12", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] pub fn gst_base_parse_drain(parse: *mut GstBaseParse); pub fn gst_base_parse_finish_frame( parse: *mut GstBaseParse, @@ -1938,19 +1938,19 @@ extern "C" { obj: *mut gst::GstMiniObject, ) -> 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")))] + #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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; @@ -1967,8 +1967,8 @@ extern "C" { ) -> gboolean; 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")))] + #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] pub fn gst_base_sink_set_drop_out_of_segment( sink: *mut GstBaseSink, drop_out_of_segment: gboolean, @@ -1976,8 +1976,8 @@ extern "C" { pub fn gst_base_sink_set_last_sample_enabled(sink: *mut GstBaseSink, enabled: gboolean); 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] pub fn gst_base_sink_set_processing_deadline( sink: *mut GstBaseSink, processing_deadline: gst::GstClockTime, @@ -2013,8 +2013,8 @@ extern "C" { pub fn gst_base_src_get_do_timestamp(src: *mut GstBaseSrc) -> gboolean; 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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, @@ -2022,8 +2022,8 @@ extern "C" { stop: i64, time: i64, ) -> gboolean; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] pub fn gst_base_src_new_segment( src: *mut GstBaseSrc, segment: *const gst::GstSegment, @@ -2044,8 +2044,8 @@ extern "C" { pub fn gst_base_src_set_live(src: *mut GstBaseSrc, live: gboolean); 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")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] pub fn gst_base_src_submit_buffer_list( src: *mut GstBaseSrc, buffer_list: *mut gst::GstBufferList, @@ -2067,8 +2067,8 @@ extern "C" { pub fn gst_base_transform_is_in_place(trans: *mut GstBaseTransform) -> gboolean; 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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); @@ -2244,8 +2244,8 @@ extern "C" { buf: *mut gst::GstBuffer, prob: *mut gst::GstTypeFindProbability, ) -> *mut gst::GstCaps; - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] pub fn gst_type_find_helper_for_buffer_with_extension( obj: *mut gst::GstObject, buf: *mut gst::GstBuffer, @@ -2258,8 +2258,8 @@ extern "C" { size: size_t, prob: *mut gst::GstTypeFindProbability, ) -> *mut gst::GstCaps; - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] pub fn gst_type_find_helper_for_data_with_extension( obj: *mut gst::GstObject, data: *const u8, @@ -2279,8 +2279,8 @@ extern "C" { extension: *const c_char, 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")))] + #[cfg(any(feature = "v1_14_3", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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 a215f998d..962eccf8b 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 @ 694b4b8) -// from gir-files (https://github.com/gtk-rs/gir-files @ 58bda97d) +// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) +// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) // DO NOT EDIT use gstreamer_base_sys::*; diff --git a/gstreamer-base/sys/tests/constant.c b/gstreamer-base/sys/tests/constant.c index 63be6f6a4..819aa4a30 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 @ 694b4b8) -// from gir-files (https://github.com/gtk-rs/gir-files @ 58bda97d) +// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) +// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-base/sys/tests/layout.c b/gstreamer-base/sys/tests/layout.c index 73f80e89d..ad8a5a3ff 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 @ 694b4b8) -// from gir-files (https://github.com/gtk-rs/gir-files @ 58bda97d) +// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) +// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) // 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 d3537aec5..048ddc898 100644 --- a/gstreamer-check/src/auto/test_clock.rs +++ b/gstreamer-check/src/auto/test_clock.rs @@ -66,8 +66,8 @@ impl TestClock { // unsafe { TODO: call ffi:gst_test_clock_peek_next_pending_id() } //} - //#[cfg(any(feature = "v1_18", feature = "dox"))] - //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + //#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + //#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] //pub fn process_id(&self, pending_id: /*Ignored*/gst::ClockID) -> bool { // unsafe { TODO: call ffi:gst_test_clock_process_id() } //} @@ -86,8 +86,8 @@ impl TestClock { } } - //#[cfg(any(feature = "v1_16", feature = "dox"))] - //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + //#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + //#[cfg_attr(all(not(doctest), doc), 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 ffi: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 7477df63b..94b4315ac 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 @ 694b4b8) -from gir-files (https://github.com/gtk-rs/gir-files @ 7a318d65) +Generated by gir (https://github.com/gtk-rs/gir @ b16d610) +from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) diff --git a/gstreamer-check/sys/Cargo.toml b/gstreamer-check/sys/Cargo.toml index ff69e7825..56a81c8ef 100644 --- a/gstreamer-check/sys/Cargo.toml +++ b/gstreamer-check/sys/Cargo.toml @@ -47,7 +47,7 @@ repository = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs" version = "0.17.0" edition = "2018" [package.metadata.docs.rs] -features = ["dox"] +features = [] [package.metadata.system-deps.gstreamer_check_1_0] name = "gstreamer-check-1.0" version = "1.8" diff --git a/gstreamer-check/sys/build.rs b/gstreamer-check/sys/build.rs index c69299ced..f3f73eb6b 100644 --- a/gstreamer-check/sys/build.rs +++ b/gstreamer-check/sys/build.rs @@ -1,14 +1,14 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 694b4b8) -// from gir-files (https://github.com/gtk-rs/gir-files @ 58bda97d) +// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) +// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) // DO NOT EDIT -#[cfg(not(feature = "dox"))] +#[cfg(any(not(doc), doctest))] use std::process; -#[cfg(feature = "dox")] +#[cfg(all(not(doctest), doc))] fn main() {} // prevent linking libraries to avoid documentation failure -#[cfg(not(feature = "dox"))] +#[cfg(any(not(doc), doctest))] fn main() { if let Err(s) = system_deps::Config::new().probe() { let _ = eprintln!("{}", s); diff --git a/gstreamer-check/sys/src/lib.rs b/gstreamer-check/sys/src/lib.rs index c2deed7cc..eeb60ffcb 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 @ 694b4b8) -// from gir-files (https://github.com/gtk-rs/gir-files @ 58bda97d) +// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) +// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) // DO NOT EDIT #![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)] @@ -8,7 +8,7 @@ clippy::type_complexity, clippy::unreadable_literal )] -#![cfg_attr(feature = "dox", feature(doc_cfg))] +#![cfg_attr(all(not(doctest), doc), feature(doc_cfg))] use glib_sys as glib; use gobject_sys as gobject; @@ -129,8 +129,8 @@ extern "C" { user_data: gpointer, destroy_data: glib::GDestroyNotify, ); - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] pub fn gst_harness_add_propose_allocation_meta( h: *mut GstHarness, api: GType, @@ -182,8 +182,8 @@ extern "C" { pub fn gst_harness_play(h: *mut GstHarness); 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] pub fn gst_harness_pull_until_eos( h: *mut GstHarness, buf: *mut *mut gst::GstBuffer, @@ -296,14 +296,14 @@ extern "C" { h: *mut GstHarness, sleep: c_ulong, ) -> *mut GstHarnessThread; - #[cfg(any(feature = "v1_14", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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; @@ -363,8 +363,8 @@ extern "C" { test_clock: *mut GstTestClock, pending_id: *mut gst::GstClockID, ) -> gboolean; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] pub fn gst_test_clock_process_id( test_clock: *mut GstTestClock, pending_id: gst::GstClockID, @@ -375,8 +375,8 @@ extern "C" { ) -> c_uint; 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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 21b7a07d3..f9629291c 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 @ 694b4b8) -// from gir-files (https://github.com/gtk-rs/gir-files @ 58bda97d) +// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) +// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) // DO NOT EDIT use gstreamer_check_sys::*; diff --git a/gstreamer-check/sys/tests/constant.c b/gstreamer-check/sys/tests/constant.c index 63be6f6a4..819aa4a30 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 @ 694b4b8) -// from gir-files (https://github.com/gtk-rs/gir-files @ 58bda97d) +// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) +// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-check/sys/tests/layout.c b/gstreamer-check/sys/tests/layout.c index 73f80e89d..ad8a5a3ff 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 @ 694b4b8) -// from gir-files (https://github.com/gtk-rs/gir-files @ 58bda97d) +// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) +// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-controller/src/auto/mod.rs b/gstreamer-controller/src/auto/mod.rs index a3a2fedbd..7921ed664 100644 --- a/gstreamer-controller/src/auto/mod.rs +++ b/gstreamer-controller/src/auto/mod.rs @@ -20,11 +20,11 @@ mod lfo_control_source; 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")))] +#[cfg(any(feature = "v1_12", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), 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")))] +#[cfg(any(feature = "v1_12", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), 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 fd396e75e..b84fb9cf9 100644 --- a/gstreamer-controller/src/auto/proxy_control_binding.rs +++ b/gstreamer-controller/src/auto/proxy_control_binding.rs @@ -2,11 +2,11 @@ // from gir-files (https://github.com/gtk-rs/gir-files) // DO NOT EDIT -#[cfg(any(feature = "v1_12", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] +#[cfg(any(feature = "v1_12", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), 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")))] +#[cfg(any(feature = "v1_12", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] use glib::object::IsA; use glib::translate::*; @@ -19,8 +19,8 @@ glib::glib_wrapper! { } impl ProxyControlBinding { - #[cfg(any(feature = "v1_12", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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 df334fa7c..94b4315ac 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 @ 694b4b8) -from gir-files (https://github.com/gtk-rs/gir-files @ eb37d44c) +Generated by gir (https://github.com/gtk-rs/gir @ b16d610) +from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) diff --git a/gstreamer-controller/sys/Cargo.toml b/gstreamer-controller/sys/Cargo.toml index f68addb2e..2cc1ce025 100644 --- a/gstreamer-controller/sys/Cargo.toml +++ b/gstreamer-controller/sys/Cargo.toml @@ -48,7 +48,7 @@ repository = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs" version = "0.17.0" edition = "2018" [package.metadata.docs.rs] -features = ["dox"] +features = [] [package.metadata.system-deps.gstreamer_controller_1_0] name = "gstreamer-controller-1.0" version = "1.8" diff --git a/gstreamer-controller/sys/build.rs b/gstreamer-controller/sys/build.rs index c69299ced..f3f73eb6b 100644 --- a/gstreamer-controller/sys/build.rs +++ b/gstreamer-controller/sys/build.rs @@ -1,14 +1,14 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 694b4b8) -// from gir-files (https://github.com/gtk-rs/gir-files @ 58bda97d) +// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) +// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) // DO NOT EDIT -#[cfg(not(feature = "dox"))] +#[cfg(any(not(doc), doctest))] use std::process; -#[cfg(feature = "dox")] +#[cfg(all(not(doctest), doc))] fn main() {} // prevent linking libraries to avoid documentation failure -#[cfg(not(feature = "dox"))] +#[cfg(any(not(doc), doctest))] fn main() { if let Err(s) = system_deps::Config::new().probe() { let _ = eprintln!("{}", s); diff --git a/gstreamer-controller/sys/src/lib.rs b/gstreamer-controller/sys/src/lib.rs index 5210639c6..3ff42bdb7 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 @ 694b4b8) -// from gir-files (https://github.com/gtk-rs/gir-files @ 58bda97d) +// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) +// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) // DO NOT EDIT #![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)] @@ -8,7 +8,7 @@ clippy::type_complexity, clippy::unreadable_literal )] -#![cfg_attr(feature = "dox", feature(doc_cfg))] +#![cfg_attr(all(not(doctest), doc), feature(doc_cfg))] use glib_sys as glib; use gobject_sys as gobject; @@ -504,8 +504,8 @@ extern "C" { // GstProxyControlBinding //========================================================================= 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")))] + #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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 d44503c18..fa663d43e 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 @ 694b4b8) -// from gir-files (https://github.com/gtk-rs/gir-files @ 58bda97d) +// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) +// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) // DO NOT EDIT use gstreamer_controller_sys::*; diff --git a/gstreamer-controller/sys/tests/constant.c b/gstreamer-controller/sys/tests/constant.c index 63be6f6a4..819aa4a30 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 @ 694b4b8) -// from gir-files (https://github.com/gtk-rs/gir-files @ 58bda97d) +// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) +// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-controller/sys/tests/layout.c b/gstreamer-controller/sys/tests/layout.c index 73f80e89d..ad8a5a3ff 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 @ 694b4b8) -// from gir-files (https://github.com/gtk-rs/gir-files @ 58bda97d) +// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) +// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) // 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 9629febe1..3abf0ef3c 100644 --- a/gstreamer-editing-services/src/auto/base_effect.rs +++ b/gstreamer-editing-services/src/auto/base_effect.rs @@ -19,22 +19,22 @@ glib::glib_wrapper! { 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + //#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + //#[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] fn is_time_effect(&self) -> bool { unsafe { from_glib(ffi::ges_base_effect_is_time_effect( @@ -43,8 +43,8 @@ impl> BaseEffectExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] fn register_time_property(&self, child_property_name: &str) -> bool { unsafe { from_glib(ffi::ges_base_effect_register_time_property( @@ -54,8 +54,8 @@ impl> BaseEffectExt for O { } } - //#[cfg(any(feature = "v1_18", feature = "dox"))] - //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + //#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + //#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] //fn set_time_translation_funcs(&self, source_to_sink_func: /*Unimplemented*/Fn(&BaseEffect, gst::ClockTime, /*Unimplemented*/HashTable TypeId { ns_id: 0, id: 28 }/TypeId { ns_id: 3, id: 11 }) -> gst::ClockTime, sink_to_source_func: /*Unimplemented*/Fn(&BaseEffect, gst::ClockTime, /*Unimplemented*/HashTable TypeId { ns_id: 0, id: 28 }/TypeId { ns_id: 3, id: 11 }) -> gst::ClockTime, user_data: /*Unimplemented*/Option) -> bool { // unsafe { TODO: call ffi:ges_base_effect_set_time_translation_funcs() } //} diff --git a/gstreamer-editing-services/src/auto/clip.rs b/gstreamer-editing-services/src/auto/clip.rs index 9f7403819..651b0a7ee 100644 --- a/gstreamer-editing-services/src/auto/clip.rs +++ b/gstreamer-editing-services/src/auto/clip.rs @@ -6,8 +6,8 @@ use crate::Asset; use crate::BaseEffect; use crate::Container; use crate::Extractable; -#[cfg(any(feature = "v1_18", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] +#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] use crate::FrameNumber; use crate::Layer; use crate::TimelineElement; @@ -21,8 +21,8 @@ use glib::signal::SignalHandlerId; use glib::translate::*; 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")))] +#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] use std::ptr; glib::glib_wrapper! { @@ -38,16 +38,16 @@ pub const NONE_CLIP: Option<&Clip> = None; 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] fn add_child_to_track, Q: IsA>( &self, child: &P, track: &Q, ) -> Result; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] fn add_top_effect>(&self, effect: &P, index: i32) -> Result<(), glib::Error>; @@ -64,12 +64,12 @@ pub trait ClipExt: 'static { type_: glib::types::Type, ) -> Vec; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] fn get_internal_time_from_timeline_time>( &self, child: &P, @@ -80,16 +80,16 @@ 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] fn get_timeline_time_from_internal_time>( &self, child: &P, internal_time: gst::ClockTime, ) -> Result; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] fn get_timeline_time_from_source_frame( &self, frame_number: FrameNumber, @@ -103,12 +103,12 @@ 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] fn remove_top_effect>(&self, effect: &P) -> Result<(), glib::Error>; fn set_supported_formats(&self, supportedformats: TrackType); @@ -119,8 +119,8 @@ pub trait ClipExt: 'static { newindex: u32, ) -> Result<(), glib::error::BoolError>; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] fn set_top_effect_index_full>( &self, effect: &P, @@ -135,12 +135,12 @@ 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] fn connect_property_duration_limit_notify( &self, f: F, @@ -165,8 +165,8 @@ impl> ClipExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] fn add_child_to_track, Q: IsA>( &self, child: &P, @@ -188,8 +188,8 @@ impl> ClipExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] fn add_top_effect>( &self, effect: &P, @@ -241,8 +241,8 @@ impl> ClipExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] fn get_duration_limit(&self) -> gst::ClockTime { unsafe { from_glib(ffi::ges_clip_get_duration_limit( @@ -251,8 +251,8 @@ impl> ClipExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] fn get_internal_time_from_timeline_time>( &self, child: &P, @@ -286,8 +286,8 @@ impl> ClipExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] fn get_timeline_time_from_internal_time>( &self, child: &P, @@ -309,8 +309,8 @@ impl> ClipExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] fn get_timeline_time_from_source_frame( &self, frame_number: FrameNumber, @@ -368,8 +368,8 @@ impl> ClipExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] fn move_to_layer_full>(&self, layer: &P) -> Result<(), glib::Error> { unsafe { let mut error = ptr::null_mut(); @@ -386,8 +386,8 @@ impl> ClipExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] fn remove_top_effect>(&self, effect: &P) -> Result<(), glib::Error> { unsafe { let mut error = ptr::null_mut(); @@ -430,8 +430,8 @@ impl> ClipExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] fn set_top_effect_index_full>( &self, effect: &P, @@ -480,8 +480,8 @@ impl> ClipExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] fn split_full(&self, position: u64) -> Result, glib::Error> { unsafe { let mut error = ptr::null_mut(); @@ -495,8 +495,8 @@ impl> ClipExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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 f906ad937..0c5b97eda 100644 --- a/gstreamer-editing-services/src/auto/layer.rs +++ b/gstreamer-editing-services/src/auto/layer.rs @@ -6,8 +6,8 @@ use crate::Asset; use crate::Clip; use crate::Extractable; use crate::Timeline; -#[cfg(any(feature = "v1_18", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] +#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] use crate::Track; use crate::TrackType; use glib::object::Cast; @@ -17,8 +17,8 @@ use glib::signal::SignalHandlerId; use glib::translate::*; 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")))] +#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] use std::ptr; glib::glib_wrapper! { @@ -54,8 +54,8 @@ pub trait LayerExt: 'static { track_types: TrackType, ) -> Result; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] fn add_asset_full>( &self, asset: &P, @@ -67,12 +67,12 @@ 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] fn get_active_for_track>(&self, track: &P) -> bool; fn get_auto_transition(&self) -> bool; @@ -91,8 +91,8 @@ 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] fn set_active_for_tracks(&self, active: bool, tracks: &[Track]) -> bool; fn set_auto_transition(&self, auto_transition: bool); @@ -102,8 +102,8 @@ 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")))] + //#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + //#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] //fn connect_active_changed(&self, f: F) -> SignalHandlerId; fn connect_clip_added(&self, f: F) -> SignalHandlerId; @@ -141,8 +141,8 @@ impl> LayerExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] fn add_asset_full>( &self, asset: &P, @@ -182,8 +182,8 @@ impl> LayerExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] fn add_clip_full>(&self, clip: &P) -> Result<(), glib::Error> { unsafe { let mut error = ptr::null_mut(); @@ -200,8 +200,8 @@ impl> LayerExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] fn get_active_for_track>(&self, track: &P) -> bool { unsafe { from_glib(ffi::ges_layer_get_active_for_track( @@ -265,8 +265,8 @@ impl> LayerExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] fn set_active_for_tracks(&self, active: bool, tracks: &[Track]) -> bool { unsafe { from_glib(ffi::ges_layer_set_active_for_tracks( @@ -301,8 +301,8 @@ impl> LayerExt for O { } } - //#[cfg(any(feature = "v1_18", feature = "dox"))] - //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + //#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + //#[cfg_attr(all(not(doctest), doc), 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 6fc145f2a..5b431a4e9 100644 --- a/gstreamer-editing-services/src/auto/project.rs +++ b/gstreamer-editing-services/src/auto/project.rs @@ -38,8 +38,8 @@ pub trait ProjectExt: 'static { profile: &P, ) -> Result<(), glib::error::BoolError>; - //#[cfg(any(feature = "v1_18", feature = "dox"))] - //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + //#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + //#[cfg_attr(all(not(doctest), doc), 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; @@ -78,8 +78,8 @@ 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] fn connect_error_loading( &self, f: F, @@ -92,8 +92,8 @@ 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] fn connect_loading(&self, f: F) -> SignalHandlerId; fn connect_missing_uri Option + 'static>( @@ -127,8 +127,8 @@ impl> ProjectExt for O { } } - //#[cfg(any(feature = "v1_18", feature = "dox"))] - //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + //#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + //#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] //fn add_formatter(&self, formatter: /*Ignored*/&Formatter) { // unsafe { TODO: call ffi:ges_project_add_formatter() } //} @@ -337,8 +337,8 @@ impl> ProjectExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] fn connect_error_loading( &self, f: F, @@ -440,8 +440,8 @@ impl> ProjectExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] fn connect_loading(&self, f: F) -> SignalHandlerId { unsafe extern "C" fn loading_trampoline( this: *mut ffi::GESProject, diff --git a/gstreamer-editing-services/src/auto/timeline.rs b/gstreamer-editing-services/src/auto/timeline.rs index 1b373bf03..9c8b2e8b4 100644 --- a/gstreamer-editing-services/src/auto/timeline.rs +++ b/gstreamer-editing-services/src/auto/timeline.rs @@ -3,12 +3,12 @@ // DO NOT EDIT use crate::Asset; -#[cfg(any(feature = "v1_18", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] +#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] use crate::Clip; use crate::Extractable; -#[cfg(any(feature = "v1_18", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] +#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] use crate::FrameNumber; use crate::Group; use crate::Layer; @@ -83,12 +83,12 @@ 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] fn get_frame_time(&self, frame_number: FrameNumber) -> gst::ClockTime; fn get_groups(&self) -> Vec; @@ -109,8 +109,8 @@ 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] fn move_layer>( &self, layer: &P, @@ -149,8 +149,8 @@ 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] fn connect_select_element_track Track + 'static>( &self, f: F, @@ -255,16 +255,16 @@ impl> TimelineExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] fn get_frame_at(&self, timestamp: gst::ClockTime) -> FrameNumber { unsafe { ffi::ges_timeline_get_frame_at(self.as_ref().to_glib_none().0, timestamp.to_glib()) } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] fn get_frame_time(&self, frame_number: FrameNumber) -> gst::ClockTime { unsafe { from_glib(ffi::ges_timeline_get_frame_time( @@ -353,8 +353,8 @@ impl> TimelineExt for O { } } - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] fn move_layer>( &self, layer: &P, @@ -561,8 +561,8 @@ impl> TimelineExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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 5b322cb03..9bed56ca1 100644 --- a/gstreamer-editing-services/src/auto/timeline_element.rs +++ b/gstreamer-editing-services/src/auto/timeline_element.rs @@ -2,15 +2,15 @@ // from gir-files (https://github.com/gtk-rs/gir-files) // DO NOT EDIT -#[cfg(any(feature = "v1_18", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] +#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] use crate::Edge; -#[cfg(any(feature = "v1_18", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] +#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] use crate::EditMode; use crate::Extractable; -#[cfg(any(feature = "v1_18", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] +#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] use crate::Layer; use crate::Timeline; use crate::TrackType; @@ -22,12 +22,12 @@ use glib::translate::*; use glib::StaticType; use glib::Value; use std::boxed::Box as Box_; -#[cfg(any(feature = "v1_18", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] +#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), 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")))] +#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] use std::ptr; glib::glib_wrapper! { @@ -45,8 +45,8 @@ 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] fn edit( &self, layers: &[Layer], @@ -56,8 +56,8 @@ pub trait TimelineElementExt: 'static { position: u64, ) -> bool; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] fn edit_full( &self, new_layer_priority: i64, @@ -78,16 +78,16 @@ 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] fn get_layer_priority(&self) -> u32; fn get_max_duration(&self) -> gst::ClockTime; fn get_name(&self) -> Option; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] fn get_natural_framerate(&self) -> Option<(i32, i32)>; fn get_parent(&self) -> Option; @@ -124,8 +124,8 @@ 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")))] + //#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + //#[cfg_attr(all(not(doctest), doc), 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); @@ -158,12 +158,12 @@ 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")))] + //#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + //#[cfg_attr(all(not(doctest), doc), 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")))] + //#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + //#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] //fn connect_child_property_removed(&self, f: F) -> SignalHandlerId; //fn connect_deep_notify(&self, f: F) -> SignalHandlerId; @@ -204,8 +204,8 @@ impl> TimelineElementExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] fn edit( &self, layers: &[Layer], @@ -226,8 +226,8 @@ impl> TimelineElementExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] fn edit_full( &self, new_layer_priority: i64, @@ -285,8 +285,8 @@ impl> TimelineElementExt for O { } } - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] fn get_layer_priority(&self) -> u32 { unsafe { ffi::ges_timeline_element_get_layer_priority(self.as_ref().to_glib_none().0) } } @@ -307,8 +307,8 @@ impl> TimelineElementExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] fn get_natural_framerate(&self) -> Option<(i32, i32)> { unsafe { let mut framerate_n = mem::MaybeUninit::uninit(); @@ -445,8 +445,8 @@ impl> TimelineElementExt for O { // unsafe { TODO: call ffi:ges_timeline_element_set_child_property_by_pspec() } //} - //#[cfg(any(feature = "v1_18", feature = "dox"))] - //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + //#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + //#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] //fn set_child_property_full(&self, property_name: &str, value: /*Ignored*/&glib::Value) -> Result<(), glib::Error> { // unsafe { TODO: call ffi:ges_timeline_element_set_child_property_full() } //} @@ -598,14 +598,14 @@ impl> TimelineElementExt for O { } } - //#[cfg(any(feature = "v1_18", feature = "dox"))] - //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + //#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + //#[cfg_attr(all(not(doctest), doc), 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")))] + //#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + //#[cfg_attr(all(not(doctest), doc), 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 c32322606..e6791e51e 100644 --- a/gstreamer-editing-services/src/auto/track.rs +++ b/gstreamer-editing-services/src/auto/track.rs @@ -14,8 +14,8 @@ use glib::StaticType; use glib::Value; 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")))] +#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] use std::ptr; glib::glib_wrapper! { @@ -38,8 +38,8 @@ pub const NONE_TRACK: Option<&Track> = None; 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] fn add_element_full>(&self, object: &P) -> Result<(), glib::Error>; fn commit(&self) -> bool; @@ -50,8 +50,8 @@ 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] fn get_restriction_caps(&self) -> Option; fn get_timeline(&self) -> Option; @@ -61,8 +61,8 @@ pub trait GESTrackExt: 'static { object: &P, ) -> Result<(), glib::error::BoolError>; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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); @@ -77,12 +77,12 @@ 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] fn set_property_id(&self, id: Option<&str>); fn get_property_restriction_caps(&self) -> Option; @@ -103,8 +103,8 @@ 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] fn connect_property_id_notify(&self, f: F) -> SignalHandlerId; fn connect_property_mixing_notify(&self, f: F) -> SignalHandlerId; @@ -128,8 +128,8 @@ impl> GESTrackExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] fn add_element_full>(&self, object: &P) -> Result<(), glib::Error> { unsafe { let mut error = ptr::null_mut(); @@ -166,8 +166,8 @@ impl> GESTrackExt for O { unsafe { from_glib(ffi::ges_track_get_mixing(self.as_ref().to_glib_none().0)) } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] fn get_restriction_caps(&self) -> Option { unsafe { from_glib_full(ffi::ges_track_get_restriction_caps( @@ -195,8 +195,8 @@ impl> GESTrackExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] fn remove_element_full>(&self, object: &P) -> Result<(), glib::Error> { unsafe { let mut error = ptr::null_mut(); @@ -265,8 +265,8 @@ impl> GESTrackExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] fn get_property_id(&self) -> Option { unsafe { let mut value = Value::from_type(::static_type()); @@ -279,8 +279,8 @@ impl> GESTrackExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] fn set_property_id(&self, id: Option<&str>) { unsafe { glib::gobject_ffi::g_object_set_property( @@ -430,8 +430,8 @@ impl> GESTrackExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] fn connect_property_id_notify(&self, f: F) -> SignalHandlerId { unsafe extern "C" fn notify_id_trampoline( this: *mut ffi::GESTrack, diff --git a/gstreamer-editing-services/src/auto/track_element.rs b/gstreamer-editing-services/src/auto/track_element.rs index 4e988d41c..5f9ffd4f2 100644 --- a/gstreamer-editing-services/src/auto/track_element.rs +++ b/gstreamer-editing-services/src/auto/track_element.rs @@ -38,8 +38,8 @@ pub trait TrackElementExt: 'static { whitelist: &[&str], ); - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] fn clamp_control_source(&self, property_name: &str); #[cfg_attr(feature = "v1_18", deprecated)] @@ -53,8 +53,8 @@ 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] fn get_auto_clamp_control_sources(&self) -> bool; //fn get_control_binding(&self, property_name: &str) -> /*Ignored*/Option; @@ -69,14 +69,14 @@ 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] fn is_core(&self) -> bool; //fn lookup_child(&self, prop_name: &str, pspec: /*Ignored*/glib::ParamSpec) -> Option; @@ -85,22 +85,22 @@ 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] fn set_has_internal_source(&self, has_internal_source: bool) -> bool; fn set_track_type(&self, type_: TrackType); fn get_property_active(&self) -> bool; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] fn get_property_has_internal_source(&self) -> bool; //fn connect_control_binding_added(&self, f: F) -> SignalHandlerId; @@ -109,15 +109,15 @@ 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] fn connect_property_has_internal_source_notify( &self, f: F, @@ -147,8 +147,8 @@ impl> TrackElementExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] fn clamp_control_source(&self, property_name: &str) { unsafe { ffi::ges_track_element_clamp_control_source( @@ -183,8 +183,8 @@ impl> TrackElementExt for O { // unsafe { TODO: call ffi:ges_track_element_get_all_control_bindings() } //} - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] fn get_auto_clamp_control_sources(&self) -> bool { unsafe { from_glib(ffi::ges_track_element_get_auto_clamp_control_sources( @@ -237,8 +237,8 @@ impl> TrackElementExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] fn has_internal_source(&self) -> bool { unsafe { from_glib(ffi::ges_track_element_has_internal_source( @@ -255,8 +255,8 @@ impl> TrackElementExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] fn is_core(&self) -> bool { unsafe { from_glib(ffi::ges_track_element_is_core( @@ -290,8 +290,8 @@ impl> TrackElementExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] fn set_auto_clamp_control_sources(&self, auto_clamp: bool) { unsafe { ffi::ges_track_element_set_auto_clamp_control_sources( @@ -305,8 +305,8 @@ impl> TrackElementExt for O { // unsafe { TODO: call ffi:ges_track_element_set_control_source() } //} - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] fn set_has_internal_source(&self, has_internal_source: bool) -> bool { unsafe { from_glib(ffi::ges_track_element_set_has_internal_source( @@ -337,8 +337,8 @@ impl> TrackElementExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] fn get_property_has_internal_source(&self) -> bool { unsafe { let mut value = Value::from_type(::static_type()); @@ -386,8 +386,8 @@ impl> TrackElementExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] fn connect_property_auto_clamp_control_sources_notify( &self, f: F, @@ -415,8 +415,8 @@ impl> TrackElementExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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 351d1f28f..f82399417 100644 --- a/gstreamer-editing-services/src/auto/uri_clip_asset.rs +++ b/gstreamer-editing-services/src/auto/uri_clip_asset.rs @@ -9,8 +9,8 @@ use glib::object::IsA; 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")))] +#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] use glib::StaticType; use glib::Value; use std::boxed::Box as Box_; @@ -26,8 +26,8 @@ glib::glib_wrapper! { } impl UriClipAsset { - //#[cfg(any(feature = "v1_16", feature = "dox"))] - //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + //#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + //#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] //pub fn finish(res: /*Ignored*/&gio::AsyncResult) -> Result { // unsafe { TODO: call ffi:ges_uri_clip_asset_finish() } //} @@ -57,26 +57,26 @@ 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] fn connect_property_is_nested_timeline_notify( &self, f: F, @@ -100,8 +100,8 @@ impl> UriClipAssetExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] fn get_max_duration(&self) -> gst::ClockTime { unsafe { from_glib(ffi::ges_uri_clip_asset_get_max_duration( @@ -118,8 +118,8 @@ impl> UriClipAssetExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] fn is_image(&self) -> bool { unsafe { from_glib(ffi::ges_uri_clip_asset_is_image( @@ -138,8 +138,8 @@ impl> UriClipAssetExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] fn get_property_is_nested_timeline(&self) -> bool { unsafe { let mut value = Value::from_type(::static_type()); @@ -179,8 +179,8 @@ impl> UriClipAssetExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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 b7401c679..d81cc762c 100644 --- a/gstreamer-editing-services/src/auto/uri_source_asset.rs +++ b/gstreamer-editing-services/src/auto/uri_source_asset.rs @@ -24,8 +24,8 @@ 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] fn is_image(&self) -> bool; } @@ -54,8 +54,8 @@ impl> UriSourceAssetExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] fn is_image(&self) -> bool { unsafe { from_glib(ffi::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 ba8538677..94b4315ac 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 @ 694b4b8) -from gir-files (https://github.com/gtk-rs/gir-files @ 42578da2) +Generated by gir (https://github.com/gtk-rs/gir @ b16d610) +from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) diff --git a/gstreamer-editing-services/sys/Cargo.toml b/gstreamer-editing-services/sys/Cargo.toml index 8ee5becd6..ce2229fc2 100644 --- a/gstreamer-editing-services/sys/Cargo.toml +++ b/gstreamer-editing-services/sys/Cargo.toml @@ -53,7 +53,7 @@ repository = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs" version = "0.17.0" edition = "2018" [package.metadata.docs.rs] -features = ["dox"] +features = [] [package.metadata.system-deps.gst_editing_services_1_0] name = "gst-editing-services-1.0" version = "1.8" diff --git a/gstreamer-editing-services/sys/build.rs b/gstreamer-editing-services/sys/build.rs index c69299ced..f3f73eb6b 100644 --- a/gstreamer-editing-services/sys/build.rs +++ b/gstreamer-editing-services/sys/build.rs @@ -1,14 +1,14 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 694b4b8) -// from gir-files (https://github.com/gtk-rs/gir-files @ 58bda97d) +// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) +// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) // DO NOT EDIT -#[cfg(not(feature = "dox"))] +#[cfg(any(not(doc), doctest))] use std::process; -#[cfg(feature = "dox")] +#[cfg(all(not(doctest), doc))] fn main() {} // prevent linking libraries to avoid documentation failure -#[cfg(not(feature = "dox"))] +#[cfg(any(not(doc), doctest))] fn main() { if let Err(s) = system_deps::Config::new().probe() { let _ = eprintln!("{}", s); diff --git a/gstreamer-editing-services/sys/src/lib.rs b/gstreamer-editing-services/sys/src/lib.rs index 30fb126f8..a52226496 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 @ 694b4b8) -// from gir-files (https://github.com/gtk-rs/gir-files @ 58bda97d) +// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) +// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) // DO NOT EDIT #![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)] @@ -8,7 +8,7 @@ clippy::type_complexity, clippy::unreadable_literal )] -#![cfg_attr(feature = "dox", feature(doc_cfg))] +#![cfg_attr(all(not(doctest), doc), feature(doc_cfg))] use gio_sys as gio; use glib_sys as glib; @@ -2651,16 +2651,16 @@ extern "C" { // GESEdge //========================================================================= pub fn ges_edge_get_type() -> GType; - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] pub fn ges_edge_name(edge: GESEdge) -> *const c_char; //========================================================================= // GESEditMode //========================================================================= pub fn ges_edit_mode_get_type() -> GType; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] pub fn ges_edit_mode_name(mode: GESEditMode) -> *const c_char; //========================================================================= @@ -2798,17 +2798,17 @@ extern "C" { // GESBaseEffect //========================================================================= pub fn ges_base_effect_get_type() -> GType; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] pub fn ges_base_effect_set_time_translation_funcs( effect: *mut GESBaseEffect, source_to_sink_func: GESBaseEffectTimeTranslationFunc, @@ -2837,16 +2837,16 @@ 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] pub fn ges_clip_add_child_to_track( clip: *mut GESClip, child: *mut GESTrackElement, track: *mut GESTrack, error: *mut *mut glib::GError, ) -> *mut GESTrackElement; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] pub fn ges_clip_add_top_effect( clip: *mut GESClip, effect: *mut GESBaseEffect, @@ -2864,11 +2864,11 @@ extern "C" { track_type: GESTrackType, type_: GType, ) -> *mut glib::GList; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] pub fn ges_clip_get_internal_time_from_timeline_time( clip: *mut GESClip, child: *mut GESTrackElement, @@ -2877,16 +2877,16 @@ extern "C" { ) -> gst::GstClockTime; 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] pub fn ges_clip_get_timeline_time_from_internal_time( clip: *mut GESClip, child: *mut GESTrackElement, internal_time: gst::GstClockTime, error: *mut *mut glib::GError, ) -> gst::GstClockTime; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] pub fn ges_clip_get_timeline_time_from_source_frame( clip: *mut GESClip, frame_number: GESFrameNumber, @@ -2899,15 +2899,15 @@ extern "C" { ) -> c_int; 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] pub fn ges_clip_remove_top_effect( clip: *mut GESClip, effect: *mut GESBaseEffect, @@ -2919,8 +2919,8 @@ extern "C" { effect: *mut GESBaseEffect, newindex: c_uint, ) -> gboolean; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] pub fn ges_clip_set_top_effect_index_full( clip: *mut GESClip, effect: *mut GESBaseEffect, @@ -2933,8 +2933,8 @@ extern "C" { newpriority: c_uint, ) -> 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] pub fn ges_clip_split_full( clip: *mut GESClip, position: u64, @@ -2945,14 +2945,14 @@ extern "C" { // GESClipAsset //========================================================================= pub fn ges_clip_asset_get_type() -> GType; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] pub fn ges_clip_asset_get_natural_framerate( self_: *mut GESClipAsset, framerate_n: *mut c_int, @@ -3074,8 +3074,8 @@ extern "C" { duration: gst::GstClockTime, track_types: GESTrackType, ) -> *mut GESClip; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] pub fn ges_layer_add_asset_full( layer: *mut GESLayer, asset: *mut GESAsset, @@ -3086,15 +3086,15 @@ extern "C" { error: *mut *mut glib::GError, ) -> *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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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; @@ -3108,8 +3108,8 @@ extern "C" { pub fn ges_layer_get_timeline(layer: *mut GESLayer) -> *mut GESTimeline; 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] pub fn ges_layer_set_active_for_tracks( layer: *mut GESLayer, active: gboolean, @@ -3122,40 +3122,40 @@ extern "C" { //========================================================================= // GESMarker //========================================================================= - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] pub fn ges_marker_list_size(list: *mut GESMarkerList) -> c_uint; //========================================================================= @@ -3233,8 +3233,8 @@ extern "C" { project: *mut GESProject, profile: *mut gst_pbutils::GstEncodingProfile, ) -> gboolean; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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, @@ -3280,15 +3280,15 @@ extern "C" { // GESSourceClip //========================================================================= pub fn ges_source_clip_get_type() -> GType; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] pub fn ges_source_clip_asset_get_type() -> GType; //========================================================================= @@ -3370,14 +3370,14 @@ extern "C" { timeline: *mut GESTimeline, name: *const c_char, ) -> *mut GESTimelineElement; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] pub fn ges_timeline_get_frame_time( self_: *mut GESTimeline, frame_number: GESFrameNumber, @@ -3401,8 +3401,8 @@ extern "C" { uri: *const c_char, error: *mut *mut glib::GError, ) -> gboolean; - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] pub fn ges_timeline_move_layer( timeline: *mut GESTimeline, layer: *mut GESLayer, @@ -3442,8 +3442,8 @@ extern "C" { self_: *mut GESTimelineElement, deep: gboolean, ) -> *mut GESTimelineElement; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] pub fn ges_timeline_element_edit( self_: *mut GESTimelineElement, layers: *mut glib::GList, @@ -3452,8 +3452,8 @@ extern "C" { edge: GESEdge, position: u64, ) -> gboolean; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] pub fn ges_timeline_element_edit_full( self_: *mut GESTimelineElement, new_layer_priority: i64, @@ -3480,15 +3480,15 @@ extern "C" { //pub fn ges_timeline_element_get_child_property_valist(self_: *mut GESTimelineElement, first_property_name: *const c_char, var_args: /*Unimplemented*/va_list); 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] pub fn ges_timeline_element_get_natural_framerate( self_: *mut GESTimelineElement, framerate_n: *mut c_int, @@ -3553,8 +3553,8 @@ extern "C" { pspec: *mut gobject::GParamSpec, value: *const gobject::GValue, ); - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] pub fn ges_timeline_element_set_child_property_full( self_: *mut GESTimelineElement, property_name: *const c_char, @@ -3648,8 +3648,8 @@ extern "C" { pub fn ges_track_get_type() -> GType; 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] pub fn ges_track_add_element_full( track: *mut GESTrack, object: *mut GESTrackElement, @@ -3659,14 +3659,14 @@ extern "C" { pub fn ges_track_get_caps(track: *mut GESTrack) -> *const gst::GstCaps; 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] pub fn ges_track_remove_element_full( track: *mut GESTrack, object: *mut GESTrackElement, @@ -3692,8 +3692,8 @@ extern "C" { blacklist: *mut *const c_char, whitelist: *mut *const c_char, ); - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] pub fn ges_track_element_clamp_control_source( object: *mut GESTrackElement, property_name: *const c_char, @@ -3708,8 +3708,8 @@ extern "C" { pub fn ges_track_element_get_all_control_bindings( trackelement: *mut GESTrackElement, ) -> *mut glib::GHashTable; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] pub fn ges_track_element_get_auto_clamp_control_sources( object: *mut GESTrackElement, ) -> gboolean; @@ -3738,12 +3738,12 @@ extern "C" { pub fn ges_track_element_get_nleobject(object: *mut GESTrackElement) -> *mut gst::GstElement; 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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, @@ -3761,8 +3761,8 @@ extern "C" { ) -> gboolean; 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] pub fn ges_track_element_set_auto_clamp_control_sources( object: *mut GESTrackElement, auto_clamp: gboolean, @@ -3789,8 +3789,8 @@ extern "C" { property_name: *const c_char, binding_type: *const c_char, ) -> gboolean; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] pub fn ges_track_element_set_has_internal_source( object: *mut GESTrackElement, has_internal_source: gboolean, @@ -3801,8 +3801,8 @@ extern "C" { // GESTrackElementAsset //========================================================================= 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] pub fn ges_track_element_asset_get_natural_framerate( self_: *mut GESTrackElementAsset, framerate_n: *mut c_int, @@ -3843,8 +3843,8 @@ extern "C" { // GESUriClipAsset //========================================================================= 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] pub fn ges_uri_clip_asset_finish( res: *mut gio::GAsyncResult, error: *mut *mut glib::GError, @@ -3863,12 +3863,12 @@ extern "C" { pub fn ges_uri_clip_asset_get_info( self_: *const GESUriClipAsset, ) -> *mut gst_pbutils::GstDiscovererInfo; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] pub fn ges_uri_clip_asset_is_image(self_: *mut GESUriClipAsset) -> gboolean; //========================================================================= @@ -3882,16 +3882,16 @@ extern "C" { asset: *mut GESUriSourceAsset, ) -> *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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] pub fn ges_uri_source_asset_is_image(asset: *mut GESUriSourceAsset) -> gboolean; //========================================================================= // GESVideoSource //========================================================================= pub fn ges_video_source_get_type() -> GType; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] pub fn ges_video_source_get_natural_size( self_: *mut GESVideoSource, width: *mut c_int, @@ -4005,8 +4005,8 @@ extern "C" { meta_item: *const c_char, dest: *mut i64, ) -> gboolean; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] pub fn ges_meta_container_get_marker_list( container: *mut GESMetaContainer, key: *const c_char, @@ -4096,8 +4096,8 @@ extern "C" { meta_item: *const c_char, value: u64, ) -> gboolean; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] pub fn ges_meta_container_register_static_meta( container: *mut GESMetaContainer, flags: GESMetaFlag, @@ -4139,8 +4139,8 @@ extern "C" { meta_item: *const c_char, value: i64, ) -> gboolean; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] pub fn ges_meta_container_set_marker_list( container: *mut GESMetaContainer, meta_item: *const c_char, @@ -4172,8 +4172,8 @@ 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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( @@ -4182,8 +4182,8 @@ extern "C" { error: *mut *mut glib::GError, ) -> 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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 80da559ed..29b199662 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 @ 694b4b8) -// from gir-files (https://github.com/gtk-rs/gir-files @ 58bda97d) +// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) +// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) // DO NOT EDIT use gstreamer_editing_services_sys::*; diff --git a/gstreamer-editing-services/sys/tests/constant.c b/gstreamer-editing-services/sys/tests/constant.c index 63be6f6a4..819aa4a30 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 @ 694b4b8) -// from gir-files (https://github.com/gtk-rs/gir-files @ 58bda97d) +// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) +// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) // 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 73f80e89d..ad8a5a3ff 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 @ 694b4b8) -// from gir-files (https://github.com/gtk-rs/gir-files @ 58bda97d) +// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) +// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-gl/src/auto/flags.rs b/gstreamer-gl/src/auto/flags.rs index a303ecdbd..b9cfdaa15 100644 --- a/gstreamer-gl/src/auto/flags.rs +++ b/gstreamer-gl/src/auto/flags.rs @@ -71,8 +71,8 @@ bitflags! { const EGL = 32; const VIV_FB = 64; const GBM = 128; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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 63b171492..f77fef716 100644 --- a/gstreamer-gl/src/auto/gl_base_filter.rs +++ b/gstreamer-gl/src/auto/gl_base_filter.rs @@ -27,12 +27,12 @@ unsafe impl Sync for GLBaseFilter {} 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] fn get_gl_context(&self) -> Option; fn get_property_context(&self) -> Option; @@ -44,8 +44,8 @@ pub trait GLBaseFilterExt: 'static { } impl> GLBaseFilterExt for O { - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] fn find_gl_context(&self) -> bool { unsafe { from_glib(ffi::gst_gl_base_filter_find_gl_context( @@ -54,8 +54,8 @@ impl> GLBaseFilterExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] fn get_gl_context(&self) -> Option { unsafe { from_glib_full(ffi::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 db5909fd2..2f4d12470 100644 --- a/gstreamer-gl/src/auto/gl_context.rs +++ b/gstreamer-gl/src/auto/gl_context.rs @@ -95,12 +95,12 @@ 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] fn supports_precision_highp(&self, version: GLSLVersion, profile: GLSLProfile) -> bool; fn swap_buffers(&self); @@ -301,8 +301,8 @@ impl> GLContextExt for O { } } - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] fn supports_precision(&self, version: GLSLVersion, profile: GLSLProfile) -> bool { unsafe { from_glib(ffi::gst_gl_context_supports_precision( @@ -313,8 +313,8 @@ impl> GLContextExt for O { } } - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] fn supports_precision_highp(&self, version: GLSLVersion, profile: GLSLProfile) -> bool { unsafe { from_glib(ffi::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 f976a7b58..08a96b5fb 100644 --- a/gstreamer-gl/src/auto/gl_display.rs +++ b/gstreamer-gl/src/auto/gl_display.rs @@ -59,14 +59,14 @@ 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + //#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + //#[cfg_attr(all(not(doctest), doc), 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>( @@ -148,8 +148,8 @@ impl> GLDisplayExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] fn remove_context>(&self, context: &P) { unsafe { ffi::gst_gl_display_remove_context( @@ -171,8 +171,8 @@ impl> GLDisplayExt for O { } } - //#[cfg(any(feature = "v1_18", feature = "dox"))] - //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + //#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + //#[cfg_attr(all(not(doctest), doc), 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 ffi: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 59290955f..2a12950a3 100644 --- a/gstreamer-gl/src/auto/gl_overlay_compositor.rs +++ b/gstreamer-gl/src/auto/gl_overlay_compositor.rs @@ -4,27 +4,27 @@ use crate::GLContext; use glib::object::IsA; -#[cfg(any(feature = "v1_16", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] +#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), 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")))] +#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), 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")))] +#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), 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")))] +#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] use glib::StaticType; -#[cfg(any(feature = "v1_16", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] +#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] use glib::Value; -#[cfg(any(feature = "v1_16", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] +#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), 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")))] +#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] use std::mem::transmute; glib::glib_wrapper! { @@ -57,8 +57,8 @@ impl GLOverlayCompositor { } } - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] pub fn get_property_yinvert(&self) -> bool { unsafe { let mut value = Value::from_type(::static_type()); @@ -74,8 +74,8 @@ impl GLOverlayCompositor { } } - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] pub fn set_property_yinvert(&self, yinvert: bool) { unsafe { glib::gobject_ffi::g_object_set_property( @@ -95,8 +95,8 @@ impl GLOverlayCompositor { } } - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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 912d0a894..721d6f833 100644 --- a/gstreamer-gl/src/auto/gl_shader.rs +++ b/gstreamer-gl/src/auto/gl_shader.rs @@ -3,12 +3,12 @@ // DO NOT EDIT use crate::GLContext; -#[cfg(any(feature = "v1_16", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] +#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] use crate::GLSLProfile; use crate::GLSLStage; -#[cfg(any(feature = "v1_16", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] +#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] use crate::GLSLVersion; use glib::object::IsA; use glib::object::ObjectType as ObjectType_; @@ -351,8 +351,8 @@ impl GLShader { } } - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] pub fn string_fragment_external_oes_get_default>( context: &P, version: GLSLVersion, @@ -368,8 +368,8 @@ impl GLShader { } } - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] pub fn string_fragment_get_default>( context: &P, version: GLSLVersion, @@ -385,8 +385,8 @@ impl GLShader { } } - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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 5058dc7fb..857293069 100644 --- a/gstreamer-gl/src/auto/gl_window.rs +++ b/gstreamer-gl/src/auto/gl_window.rs @@ -34,8 +34,8 @@ unsafe impl Sync for GLWindow {} 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] fn controls_viewport(&self) -> bool; fn draw(&self); @@ -46,8 +46,8 @@ 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] fn has_output_surface(&self) -> bool; fn queue_resize(&self); @@ -62,8 +62,8 @@ 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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); @@ -88,8 +88,8 @@ pub trait GLWindowExt: 'static { f: F, ) -> SignalHandlerId; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] fn connect_scroll_event( &self, f: F, @@ -97,8 +97,8 @@ pub trait GLWindowExt: 'static { } impl> GLWindowExt for O { - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] fn controls_viewport(&self) -> bool { unsafe { from_glib(ffi::gst_gl_window_controls_viewport( @@ -145,8 +145,8 @@ impl> GLWindowExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] fn has_output_surface(&self) -> bool { unsafe { from_glib(ffi::gst_gl_window_has_output_surface( @@ -201,8 +201,8 @@ impl> GLWindowExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] fn send_scroll_event(&self, posx: f64, posy: f64, delta_x: f64, delta_y: f64) { unsafe { ffi::gst_gl_window_send_scroll_event( @@ -322,8 +322,8 @@ impl> GLWindowExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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 e878369ea..3821a0e1f 100644 --- a/gstreamer-gl/src/auto/mod.rs +++ b/gstreamer-gl/src/auto/mod.rs @@ -2,14 +2,14 @@ // from gir-files (https://github.com/gtk-rs/gir-files) // DO NOT EDIT -#[cfg(any(feature = "v1_16", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] +#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), 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")))] +#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), 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")))] +#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] pub use self::gl_base_filter::{GLBaseFilter, NONE_GL_BASE_FILTER}; mod gl_color_convert; @@ -23,25 +23,25 @@ mod gl_display; 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")))] +#[cfg(any(feature = "egl", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "egl")))] mod gl_display_egl; -#[cfg(any(feature = "egl", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "egl")))] +#[cfg(any(feature = "egl", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), 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")))] +#[cfg(any(feature = "wayland", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "wayland")))] mod gl_display_wayland; -#[cfg(any(feature = "wayland", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "wayland")))] +#[cfg(any(feature = "wayland", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), 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")))] +#[cfg(any(feature = "x11", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "x11")))] mod gl_display_x11; -#[cfg(any(feature = "x11", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "x11")))] +#[cfg(any(feature = "x11", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "x11")))] pub use self::gl_display_x11::GLDisplayX11; mod gl_framebuffer; @@ -86,8 +86,8 @@ 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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 2da83d4c5..94b4315ac 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 @ 694b4b8) -from gir-files (https://github.com/gtk-rs/gir-files @ 135fd08b) +Generated by gir (https://github.com/gtk-rs/gir @ b16d610) +from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) diff --git a/gstreamer-gl/sys/Cargo.toml b/gstreamer-gl/sys/Cargo.toml index 2d929f9e6..bb59c6947 100644 --- a/gstreamer-gl/sys/Cargo.toml +++ b/gstreamer-gl/sys/Cargo.toml @@ -52,7 +52,7 @@ repository = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs" version = "0.17.0" edition = "2018" [package.metadata.docs.rs] -features = ["dox"] +features = [] [package.metadata.system-deps.gstreamer_gl_1_0] name = "gstreamer-gl-1.0" version = "1.14" diff --git a/gstreamer-gl/sys/build.rs b/gstreamer-gl/sys/build.rs index c69299ced..f3f73eb6b 100644 --- a/gstreamer-gl/sys/build.rs +++ b/gstreamer-gl/sys/build.rs @@ -1,14 +1,14 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 694b4b8) -// from gir-files (https://github.com/gtk-rs/gir-files @ 58bda97d) +// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) +// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) // DO NOT EDIT -#[cfg(not(feature = "dox"))] +#[cfg(any(not(doc), doctest))] use std::process; -#[cfg(feature = "dox")] +#[cfg(all(not(doctest), doc))] fn main() {} // prevent linking libraries to avoid documentation failure -#[cfg(not(feature = "dox"))] +#[cfg(any(not(doc), doctest))] fn main() { if let Err(s) = system_deps::Config::new().probe() { let _ = eprintln!("{}", s); diff --git a/gstreamer-gl/sys/src/lib.rs b/gstreamer-gl/sys/src/lib.rs index 2fe9cb7dd..a9e4d22a1 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 @ 694b4b8) -// from gir-files (https://github.com/gtk-rs/gir-files @ 58bda97d) +// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) +// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) // DO NOT EDIT #![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)] @@ -8,7 +8,7 @@ clippy::type_complexity, clippy::unreadable_literal )] -#![cfg_attr(feature = "dox", feature(doc_cfg))] +#![cfg_attr(all(not(doctest), doc), feature(doc_cfg))] use glib_sys as glib; use gobject_sys as gobject; @@ -599,8 +599,8 @@ impl ::std::fmt::Debug for GstGLDisplayClass { } } -#[cfg(any(feature = "egl", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "egl")))] +#[cfg(any(feature = "egl", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "egl")))] #[repr(C)] #[derive(Copy, Clone)] pub struct GstGLDisplayEGLClass { @@ -608,8 +608,8 @@ pub struct GstGLDisplayEGLClass { pub _padding: [gpointer; 4], } -#[cfg(any(feature = "egl", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "egl")))] +#[cfg(any(feature = "egl", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), 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 _)) @@ -624,8 +624,8 @@ pub struct _GstGLDisplayPrivate(c_void); pub type GstGLDisplayPrivate = *mut _GstGLDisplayPrivate; -#[cfg(any(feature = "wayland", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "wayland")))] +#[cfg(any(feature = "wayland", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "wayland")))] #[repr(C)] #[derive(Copy, Clone)] pub struct GstGLDisplayWaylandClass { @@ -633,8 +633,8 @@ pub struct GstGLDisplayWaylandClass { pub _padding: [gpointer; 4], } -#[cfg(any(feature = "wayland", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "wayland")))] +#[cfg(any(feature = "wayland", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), 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!( @@ -647,8 +647,8 @@ impl ::std::fmt::Debug for GstGLDisplayWaylandClass { } } -#[cfg(any(feature = "x11", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "x11")))] +#[cfg(any(feature = "x11", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "x11")))] #[repr(C)] #[derive(Copy, Clone)] pub struct GstGLDisplayX11Class { @@ -656,8 +656,8 @@ pub struct GstGLDisplayX11Class { pub _padding: [gpointer; 4], } -#[cfg(any(feature = "x11", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "x11")))] +#[cfg(any(feature = "x11", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), 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 _)) @@ -1294,8 +1294,8 @@ impl ::std::fmt::Debug for GstGLDisplay { } } -#[cfg(any(feature = "egl", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "egl")))] +#[cfg(any(feature = "egl", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "egl")))] #[repr(C)] #[derive(Copy, Clone)] pub struct GstGLDisplayEGL { @@ -1305,8 +1305,8 @@ pub struct GstGLDisplayEGL { pub _padding: [gpointer; 4], } -#[cfg(any(feature = "egl", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "egl")))] +#[cfg(any(feature = "egl", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), 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 _)) @@ -1315,8 +1315,8 @@ impl ::std::fmt::Debug for GstGLDisplayEGL { } } -#[cfg(any(feature = "wayland", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "wayland")))] +#[cfg(any(feature = "wayland", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "wayland")))] #[repr(C)] #[derive(Copy, Clone)] pub struct GstGLDisplayWayland { @@ -1330,8 +1330,8 @@ pub struct GstGLDisplayWayland { pub _padding: [gpointer; 4], } -#[cfg(any(feature = "wayland", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "wayland")))] +#[cfg(any(feature = "wayland", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), 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 _)) @@ -1345,8 +1345,8 @@ impl ::std::fmt::Debug for GstGLDisplayWayland { } } -#[cfg(any(feature = "x11", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "x11")))] +#[cfg(any(feature = "x11", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "x11")))] #[repr(C)] #[derive(Copy, Clone)] pub struct GstGLDisplayX11 { @@ -1358,8 +1358,8 @@ pub struct GstGLDisplayX11 { pub _padding: [gpointer; 4], } -#[cfg(any(feature = "x11", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "x11")))] +#[cfg(any(feature = "x11", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), 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 _)) @@ -1642,11 +1642,11 @@ extern "C" { vinfo: *mut gst_video::GstVideoInfo, plane: c_uint, ) -> GstGLFormat; - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] pub fn gst_gl_format_type_from_sized_gl_format( format: GstGLFormat, unsized_format: *mut GstGLFormat, @@ -2044,11 +2044,11 @@ extern "C" { // GstGLBaseFilter //========================================================================= 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] pub fn gst_gl_base_filter_get_gl_context(filter: *mut GstGLBaseFilter) -> *mut GstGLContext; //========================================================================= @@ -2059,8 +2059,8 @@ extern "C" { //========================================================================= // GstGLBaseSrc //========================================================================= - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] pub fn gst_gl_base_src_get_type() -> GType; //========================================================================= @@ -2194,15 +2194,15 @@ extern "C" { version: GstGLSLVersion, profile: GstGLSLProfile, ) -> gboolean; - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] pub fn gst_gl_context_supports_precision_highp( context: *mut GstGLContext, version: GstGLSLVersion, @@ -2245,15 +2245,15 @@ extern "C" { ) -> *mut GstGLContext; 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] pub fn gst_gl_display_retrieve_window( display: *mut GstGLDisplay, data: gpointer, @@ -2263,20 +2263,20 @@ extern "C" { //========================================================================= // GstGLDisplayEGL //========================================================================= - #[cfg(any(feature = "egl", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "egl")))] + #[cfg(any(feature = "egl", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "egl", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "egl", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "egl", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "egl", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "egl")))] pub fn gst_gl_display_egl_get_from_native( type_: GstGLDisplayType, display: uintptr_t, @@ -2285,27 +2285,27 @@ extern "C" { //========================================================================= // GstGLDisplayWayland //========================================================================= - #[cfg(any(feature = "wayland", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "wayland")))] + #[cfg(any(feature = "wayland", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "wayland", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "wayland", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "x11", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "x11", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "x11", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "x11")))] pub fn gst_gl_display_x11_new_with_display(display: gpointer) -> *mut GstGLDisplayX11; //========================================================================= @@ -2451,22 +2451,22 @@ extern "C" { error: *mut *mut glib::GError, ... ) -> *mut GstGLShader; - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] pub fn gst_gl_shader_string_get_highest_precision( context: *mut GstGLContext, version: GstGLSLVersion, @@ -2749,8 +2749,8 @@ 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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; @@ -2762,8 +2762,8 @@ 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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); @@ -2792,8 +2792,8 @@ extern "C" { posx: c_double, posy: c_double, ); - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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 deeea97a1..115d8f39a 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 @ 694b4b8) -// from gir-files (https://github.com/gtk-rs/gir-files @ 58bda97d) +// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) +// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) // DO NOT EDIT use gstreamer_gl_sys::*; @@ -424,8 +424,8 @@ const RUST_LAYOUTS: &[(&str, Layout)] = &[ alignment: align_of::(), }, ), - #[cfg(any(feature = "egl", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "egl")))] + #[cfg(any(feature = "egl", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "egl")))] ( "GstGLDisplayEGL", Layout { @@ -433,8 +433,8 @@ const RUST_LAYOUTS: &[(&str, Layout)] = &[ alignment: align_of::(), }, ), - #[cfg(any(feature = "egl", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "egl")))] + #[cfg(any(feature = "egl", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "egl")))] ( "GstGLDisplayEGLClass", Layout { @@ -449,8 +449,8 @@ const RUST_LAYOUTS: &[(&str, Layout)] = &[ alignment: align_of::(), }, ), - #[cfg(any(feature = "wayland", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "wayland")))] + #[cfg(any(feature = "wayland", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "wayland")))] ( "GstGLDisplayWayland", Layout { @@ -458,8 +458,8 @@ const RUST_LAYOUTS: &[(&str, Layout)] = &[ alignment: align_of::(), }, ), - #[cfg(any(feature = "wayland", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "wayland")))] + #[cfg(any(feature = "wayland", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "wayland")))] ( "GstGLDisplayWaylandClass", Layout { @@ -467,8 +467,8 @@ const RUST_LAYOUTS: &[(&str, Layout)] = &[ alignment: align_of::(), }, ), - #[cfg(any(feature = "x11", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "x11")))] + #[cfg(any(feature = "x11", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "x11")))] ( "GstGLDisplayX11", Layout { @@ -476,8 +476,8 @@ const RUST_LAYOUTS: &[(&str, Layout)] = &[ alignment: align_of::(), }, ), - #[cfg(any(feature = "x11", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "x11")))] + #[cfg(any(feature = "x11", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "x11")))] ( "GstGLDisplayX11Class", Layout { diff --git a/gstreamer-gl/sys/tests/constant.c b/gstreamer-gl/sys/tests/constant.c index 63be6f6a4..819aa4a30 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 @ 694b4b8) -// from gir-files (https://github.com/gtk-rs/gir-files @ 58bda97d) +// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) +// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-gl/sys/tests/layout.c b/gstreamer-gl/sys/tests/layout.c index 73f80e89d..ad8a5a3ff 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 @ 694b4b8) -// from gir-files (https://github.com/gtk-rs/gir-files @ 58bda97d) +// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) +// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-mpegts/sys/Cargo.toml b/gstreamer-mpegts/sys/Cargo.toml index f3a3a62c2..a34d07b14 100644 --- a/gstreamer-mpegts/sys/Cargo.toml +++ b/gstreamer-mpegts/sys/Cargo.toml @@ -50,7 +50,7 @@ repository = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs" version = "0.17.0" edition = "2018" [package.metadata.docs.rs] -features = ["dox"] +features = [] [package.metadata.system-deps.gstreamer_mpegts_1_0] name = "gstreamer-mpegts-1.0" version = "1.12" diff --git a/gstreamer-mpegts/sys/build.rs b/gstreamer-mpegts/sys/build.rs index c69299ced..f3f73eb6b 100644 --- a/gstreamer-mpegts/sys/build.rs +++ b/gstreamer-mpegts/sys/build.rs @@ -1,14 +1,14 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 694b4b8) -// from gir-files (https://github.com/gtk-rs/gir-files @ 58bda97d) +// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) +// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) // DO NOT EDIT -#[cfg(not(feature = "dox"))] +#[cfg(any(not(doc), doctest))] use std::process; -#[cfg(feature = "dox")] +#[cfg(all(not(doctest), doc))] fn main() {} // prevent linking libraries to avoid documentation failure -#[cfg(not(feature = "dox"))] +#[cfg(any(not(doc), doctest))] fn main() { if let Err(s) = system_deps::Config::new().probe() { let _ = eprintln!("{}", s); diff --git a/gstreamer-mpegts/sys/src/lib.rs b/gstreamer-mpegts/sys/src/lib.rs index 623a2bb48..f0eebe0c8 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 @ 694b4b8) -// from gir-files (https://github.com/gtk-rs/gir-files @ 58bda97d) +// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) +// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) // DO NOT EDIT #![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)] @@ -8,7 +8,7 @@ clippy::type_complexity, clippy::unreadable_literal )] -#![cfg_attr(feature = "dox", feature(doc_cfg))] +#![cfg_attr(all(not(doctest), doc), feature(doc_cfg))] use glib_sys as glib; use gobject_sys as gobject; @@ -1900,11 +1900,11 @@ extern "C" { //========================================================================= // GstMpegtsAtscRRT //========================================================================= - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] pub fn gst_mpegts_atsc_rrt_new() -> *mut GstMpegtsAtscRRT; //========================================================================= @@ -1916,11 +1916,11 @@ extern "C" { //========================================================================= // GstMpegtsAtscRRTDimensionValue //========================================================================= - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] pub fn gst_mpegts_atsc_rrt_dimension_value_new() -> *mut GstMpegtsAtscRRTDimensionValue; //========================================================================= @@ -2370,8 +2370,8 @@ extern "C" { pub fn gst_mpegts_section_get_atsc_mgt( section: *mut GstMpegtsSection, ) -> *const GstMpegtsAtscMGT; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] pub fn gst_mpegts_section_get_atsc_rrt( section: *mut GstMpegtsSection, ) -> *const GstMpegtsAtscRRT; @@ -2403,11 +2403,11 @@ extern "C" { section: *mut GstMpegtsSection, element: *mut gst::GstElement, ) -> gboolean; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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 f4b31b54f..1862a0aa3 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 @ 694b4b8) -// from gir-files (https://github.com/gtk-rs/gir-files @ 58bda97d) +// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) +// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) // DO NOT EDIT use gstreamer_mpegts_sys::*; diff --git a/gstreamer-mpegts/sys/tests/constant.c b/gstreamer-mpegts/sys/tests/constant.c index 63be6f6a4..819aa4a30 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 @ 694b4b8) -// from gir-files (https://github.com/gtk-rs/gir-files @ 58bda97d) +// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) +// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-mpegts/sys/tests/layout.c b/gstreamer-mpegts/sys/tests/layout.c index 73f80e89d..ad8a5a3ff 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 @ 694b4b8) -// from gir-files (https://github.com/gtk-rs/gir-files @ 58bda97d) +// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) +// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-net/src/auto/versions.txt b/gstreamer-net/src/auto/versions.txt index b99a6671e..94b4315ac 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 @ 694b4b8) -from gir-files (https://github.com/gtk-rs/gir-files @ 520eb582) +Generated by gir (https://github.com/gtk-rs/gir @ b16d610) +from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) diff --git a/gstreamer-net/sys/Cargo.toml b/gstreamer-net/sys/Cargo.toml index 69b4556cd..ffef1755f 100644 --- a/gstreamer-net/sys/Cargo.toml +++ b/gstreamer-net/sys/Cargo.toml @@ -47,7 +47,7 @@ repository = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs" version = "0.17.0" edition = "2018" [package.metadata.docs.rs] -features = ["dox"] +features = [] [package.metadata.system-deps.gstreamer_net_1_0] name = "gstreamer-net-1.0" version = "1.8" diff --git a/gstreamer-net/sys/build.rs b/gstreamer-net/sys/build.rs index c69299ced..f3f73eb6b 100644 --- a/gstreamer-net/sys/build.rs +++ b/gstreamer-net/sys/build.rs @@ -1,14 +1,14 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 694b4b8) -// from gir-files (https://github.com/gtk-rs/gir-files @ 58bda97d) +// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) +// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) // DO NOT EDIT -#[cfg(not(feature = "dox"))] +#[cfg(any(not(doc), doctest))] use std::process; -#[cfg(feature = "dox")] +#[cfg(all(not(doctest), doc))] fn main() {} // prevent linking libraries to avoid documentation failure -#[cfg(not(feature = "dox"))] +#[cfg(any(not(doc), doctest))] fn main() { if let Err(s) = system_deps::Config::new().probe() { let _ = eprintln!("{}", s); diff --git a/gstreamer-net/sys/src/lib.rs b/gstreamer-net/sys/src/lib.rs index 1ebe7aa91..c4d2ec419 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 @ 694b4b8) -// from gir-files (https://github.com/gtk-rs/gir-files @ 8865faed) +// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) +// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) // DO NOT EDIT #![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)] @@ -8,7 +8,7 @@ clippy::type_complexity, clippy::unreadable_literal )] -#![cfg_attr(feature = "dox", feature(doc_cfg))] +#![cfg_attr(all(not(doctest), doc), feature(doc_cfg))] use gio_sys as gio; use glib_sys as glib; @@ -317,8 +317,8 @@ extern "C" { pub fn gst_buffer_get_net_address_meta(buffer: *mut gst::GstBuffer) -> *mut GstNetAddressMeta; 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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 7901e4377..5840f9582 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 @ 694b4b8) -// from gir-files (https://github.com/gtk-rs/gir-files @ 58bda97d) +// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) +// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) // DO NOT EDIT use gstreamer_net_sys::*; diff --git a/gstreamer-net/sys/tests/constant.c b/gstreamer-net/sys/tests/constant.c index 63be6f6a4..819aa4a30 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 @ 694b4b8) -// from gir-files (https://github.com/gtk-rs/gir-files @ 58bda97d) +// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) +// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-net/sys/tests/layout.c b/gstreamer-net/sys/tests/layout.c index 73f80e89d..ad8a5a3ff 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 @ 694b4b8) -// from gir-files (https://github.com/gtk-rs/gir-files @ 58bda97d) +// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) +// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-pbutils/src/auto/discoverer.rs b/gstreamer-pbutils/src/auto/discoverer.rs index 0c4d7ba5e..6406afbe2 100644 --- a/gstreamer-pbutils/src/auto/discoverer.rs +++ b/gstreamer-pbutils/src/auto/discoverer.rs @@ -7,11 +7,11 @@ use glib::object::ObjectType as ObjectType_; 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")))] +#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] use glib::StaticType; -#[cfg(any(feature = "v1_16", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] +#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] use glib::Value; use std::boxed::Box as Box_; use std::mem::transmute; @@ -76,8 +76,8 @@ impl Discoverer { } } - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] pub fn get_property_use_cache(&self) -> bool { unsafe { let mut value = Value::from_type(::static_type()); @@ -93,8 +93,8 @@ impl Discoverer { } } - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] pub fn set_property_use_cache(&self, use_cache: bool) { unsafe { glib::gobject_ffi::g_object_set_property( @@ -216,8 +216,8 @@ impl Discoverer { } } - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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 871e77e7e..0f83863f7 100644 --- a/gstreamer-pbutils/src/auto/discoverer_audio_info.rs +++ b/gstreamer-pbutils/src/auto/discoverer_audio_info.rs @@ -18,8 +18,8 @@ impl DiscovererAudioInfo { unsafe { ffi::gst_discoverer_audio_info_get_bitrate(self.to_glib_none().0) } } - #[cfg(any(feature = "v1_14", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] pub fn get_channel_mask(&self) -> u64 { unsafe { ffi::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 b532f3744..fc85c5382 100644 --- a/gstreamer-pbutils/src/auto/discoverer_info.rs +++ b/gstreamer-pbutils/src/auto/discoverer_info.rs @@ -40,8 +40,8 @@ impl DiscovererInfo { unsafe { from_glib(ffi::gst_discoverer_info_get_duration(self.to_glib_none().0)) } } - #[cfg(any(feature = "v1_14", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] pub fn get_live(&self) -> bool { unsafe { from_glib(ffi::gst_discoverer_info_get_live(self.to_glib_none().0)) } } diff --git a/gstreamer-pbutils/src/auto/encoding_profile.rs b/gstreamer-pbutils/src/auto/encoding_profile.rs index 27968f3fd..ee5b73299 100644 --- a/gstreamer-pbutils/src/auto/encoding_profile.rs +++ b/gstreamer-pbutils/src/auto/encoding_profile.rs @@ -49,8 +49,8 @@ unsafe impl Sync for EncodingProfile {} 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")))] + #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] fn copy(&self) -> EncodingProfile; fn get_allow_dynamic_output(&self) -> bool; @@ -71,8 +71,8 @@ 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] fn get_single_segment(&self) -> bool; fn get_type_nick(&self) -> Option; @@ -83,8 +83,8 @@ pub trait EncodingProfileExt: 'static { } impl> EncodingProfileExt for O { - #[cfg(any(feature = "v1_12", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] fn copy(&self) -> EncodingProfile { unsafe { from_glib_full(ffi::gst_encoding_profile_copy( @@ -161,8 +161,8 @@ impl> EncodingProfileExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] fn get_single_segment(&self) -> bool { unsafe { from_glib(ffi::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 1e198c9ad..0490dba87 100644 --- a/gstreamer-pbutils/src/auto/encoding_target.rs +++ b/gstreamer-pbutils/src/auto/encoding_target.rs @@ -48,8 +48,8 @@ impl EncodingTarget { unsafe { from_glib_none(ffi::gst_encoding_target_get_name(self.to_glib_none().0)) } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] pub fn get_path(&self) -> Option { unsafe { from_glib_none(ffi::gst_encoding_target_get_path(self.to_glib_none().0)) } } diff --git a/gstreamer-pbutils/src/auto/versions.txt b/gstreamer-pbutils/src/auto/versions.txt index c4cc007de..94b4315ac 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 @ 694b4b8) -from gir-files (https://github.com/gtk-rs/gir-files @ 9739801c) +Generated by gir (https://github.com/gtk-rs/gir @ b16d610) +from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) diff --git a/gstreamer-pbutils/sys/Cargo.toml b/gstreamer-pbutils/sys/Cargo.toml index a07c44772..21d255450 100644 --- a/gstreamer-pbutils/sys/Cargo.toml +++ b/gstreamer-pbutils/sys/Cargo.toml @@ -54,7 +54,7 @@ repository = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs" version = "0.17.0" edition = "2018" [package.metadata.docs.rs] -features = ["dox"] +features = [] [package.metadata.system-deps.gstreamer_pbutils_1_0] name = "gstreamer-pbutils-1.0" version = "1.8" diff --git a/gstreamer-pbutils/sys/build.rs b/gstreamer-pbutils/sys/build.rs index c69299ced..f3f73eb6b 100644 --- a/gstreamer-pbutils/sys/build.rs +++ b/gstreamer-pbutils/sys/build.rs @@ -1,14 +1,14 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 694b4b8) -// from gir-files (https://github.com/gtk-rs/gir-files @ 58bda97d) +// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) +// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) // DO NOT EDIT -#[cfg(not(feature = "dox"))] +#[cfg(any(not(doc), doctest))] use std::process; -#[cfg(feature = "dox")] +#[cfg(all(not(doctest), doc))] fn main() {} // prevent linking libraries to avoid documentation failure -#[cfg(not(feature = "dox"))] +#[cfg(any(not(doc), doctest))] fn main() { if let Err(s) = system_deps::Config::new().probe() { let _ = eprintln!("{}", s); diff --git a/gstreamer-pbutils/sys/src/lib.rs b/gstreamer-pbutils/sys/src/lib.rs index da2ea6b33..598bd6870 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 @ 694b4b8) -// from gir-files (https://github.com/gtk-rs/gir-files @ 58bda97d) +// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) +// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) // DO NOT EDIT #![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)] @@ -8,7 +8,7 @@ clippy::type_complexity, clippy::unreadable_literal )] -#![cfg_attr(feature = "dox", feature(doc_cfg))] +#![cfg_attr(all(not(doctest), doc), feature(doc_cfg))] use glib_sys as glib; use gobject_sys as gobject; @@ -379,8 +379,8 @@ 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")))] + #[cfg(any(feature = "v1_12_1", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12_1")))] pub fn gst_install_plugins_context_copy( ctx: *mut GstInstallPluginsContext, ) -> *mut GstInstallPluginsContext; @@ -429,8 +429,8 @@ 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")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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; @@ -462,8 +462,8 @@ extern "C" { info: *mut GstDiscovererInfo, ) -> *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")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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; @@ -597,8 +597,8 @@ extern "C" { pub fn gst_encoding_profile_from_discoverer( info: *mut GstDiscovererInfo, ) -> *mut GstEncodingProfile; - #[cfg(any(feature = "v1_12", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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, @@ -618,8 +618,8 @@ extern "C" { pub fn gst_encoding_profile_get_restriction( profile: *mut GstEncodingProfile, ) -> *mut gst::GstCaps; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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; @@ -651,8 +651,8 @@ extern "C" { profile: *mut GstEncodingProfile, restriction: *mut gst::GstCaps, ); - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] pub fn gst_encoding_profile_set_single_segment( profile: *mut GstEncodingProfile, single_segment: gboolean, @@ -684,8 +684,8 @@ extern "C" { pub fn gst_encoding_target_get_category(target: *mut GstEncodingTarget) -> *const c_char; 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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, @@ -730,14 +730,14 @@ extern "C" { audio_config: *const u8, len: c_uint, ) -> gboolean; - #[cfg(any(feature = "v1_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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 74ae955a9..aed06793c 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 @ 694b4b8) -// from gir-files (https://github.com/gtk-rs/gir-files @ 58bda97d) +// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) +// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) // DO NOT EDIT use gstreamer_pbutils_sys::*; diff --git a/gstreamer-pbutils/sys/tests/constant.c b/gstreamer-pbutils/sys/tests/constant.c index 63be6f6a4..819aa4a30 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 @ 694b4b8) -// from gir-files (https://github.com/gtk-rs/gir-files @ 58bda97d) +// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) +// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-pbutils/sys/tests/layout.c b/gstreamer-pbutils/sys/tests/layout.c index 73f80e89d..ad8a5a3ff 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 @ 694b4b8) -// from gir-files (https://github.com/gtk-rs/gir-files @ 58bda97d) +// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) +// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-player/src/auto/player.rs b/gstreamer-player/src/auto/player.rs index 9873ff939..a50a0499b 100644 --- a/gstreamer-player/src/auto/player.rs +++ b/gstreamer-player/src/auto/player.rs @@ -104,8 +104,8 @@ impl Player { unsafe { from_glib_full(ffi::gst_player_get_subtitle_uri(self.to_glib_none().0)) } } - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] pub fn get_subtitle_video_offset(&self) -> i64 { unsafe { ffi::gst_player_get_subtitle_video_offset(self.to_glib_none().0) } } @@ -226,8 +226,8 @@ impl Player { } } - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] pub fn set_subtitle_video_offset(&self, offset: i64) { unsafe { ffi::gst_player_set_subtitle_video_offset(self.to_glib_none().0, offset); @@ -904,8 +904,8 @@ impl Player { } } - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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 6d165cbfb..94b4315ac 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 @ 694b4b8) -from gir-files (https://github.com/gtk-rs/gir-files @ 2762b6d7) +Generated by gir (https://github.com/gtk-rs/gir @ b16d610) +from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) diff --git a/gstreamer-player/sys/Cargo.toml b/gstreamer-player/sys/Cargo.toml index 70891983b..6d2271450 100644 --- a/gstreamer-player/sys/Cargo.toml +++ b/gstreamer-player/sys/Cargo.toml @@ -46,7 +46,7 @@ repository = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs" version = "0.17.0" edition = "2018" [package.metadata.docs.rs] -features = ["dox"] +features = [] [package.metadata.system-deps.gstreamer_player_1_0] name = "gstreamer-player-1.0" version = "1.12" diff --git a/gstreamer-player/sys/build.rs b/gstreamer-player/sys/build.rs index c69299ced..f3f73eb6b 100644 --- a/gstreamer-player/sys/build.rs +++ b/gstreamer-player/sys/build.rs @@ -1,14 +1,14 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 694b4b8) -// from gir-files (https://github.com/gtk-rs/gir-files @ 58bda97d) +// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) +// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) // DO NOT EDIT -#[cfg(not(feature = "dox"))] +#[cfg(any(not(doc), doctest))] use std::process; -#[cfg(feature = "dox")] +#[cfg(all(not(doctest), doc))] fn main() {} // prevent linking libraries to avoid documentation failure -#[cfg(not(feature = "dox"))] +#[cfg(any(not(doc), doctest))] fn main() { if let Err(s) = system_deps::Config::new().probe() { let _ = eprintln!("{}", s); diff --git a/gstreamer-player/sys/src/lib.rs b/gstreamer-player/sys/src/lib.rs index c89fddbc7..7f624ff39 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 @ 694b4b8) -// from gir-files (https://github.com/gtk-rs/gir-files @ 58bda97d) +// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) +// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) // DO NOT EDIT #![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)] @@ -8,7 +8,7 @@ clippy::type_complexity, clippy::unreadable_literal )] -#![cfg_attr(feature = "dox", feature(doc_cfg))] +#![cfg_attr(all(not(doctest), doc), feature(doc_cfg))] use glib_sys as glib; use gobject_sys as gobject; @@ -344,8 +344,8 @@ extern "C" { pub fn gst_player_get_position(player: *mut GstPlayer) -> gst::GstClockTime; 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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,8 +383,8 @@ extern "C" { pub fn gst_player_set_subtitle_track(player: *mut GstPlayer, stream_index: c_int) -> gboolean; 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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 3344b2dfb..8937f514f 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 @ 694b4b8) -// from gir-files (https://github.com/gtk-rs/gir-files @ 58bda97d) +// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) +// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) // DO NOT EDIT use gstreamer_player_sys::*; diff --git a/gstreamer-player/sys/tests/constant.c b/gstreamer-player/sys/tests/constant.c index 63be6f6a4..819aa4a30 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 @ 694b4b8) -// from gir-files (https://github.com/gtk-rs/gir-files @ 58bda97d) +// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) +// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-player/sys/tests/layout.c b/gstreamer-player/sys/tests/layout.c index 73f80e89d..ad8a5a3ff 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 @ 694b4b8) -// from gir-files (https://github.com/gtk-rs/gir-files @ 58bda97d) +// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) +// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-rtp/src/auto/enums.rs b/gstreamer-rtp/src/auto/enums.rs index 1204aa394..5fd7ed628 100644 --- a/gstreamer-rtp/src/auto/enums.rs +++ b/gstreamer-rtp/src/auto/enums.rs @@ -250,8 +250,8 @@ impl SetValue for RTCPType { } } -#[cfg(any(feature = "v1_16", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] +#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] pub enum RTCPXRType { @@ -267,8 +267,8 @@ pub enum RTCPXRType { __Unknown(i32), } -#[cfg(any(feature = "v1_16", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] +#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] #[doc(hidden)] impl ToGlib for RTCPXRType { type GlibType = ffi::GstRTCPXRType; @@ -288,8 +288,8 @@ impl ToGlib for RTCPXRType { } } -#[cfg(any(feature = "v1_16", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] +#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] #[doc(hidden)] impl FromGlib for RTCPXRType { fn from_glib(value: ffi::GstRTCPXRType) -> Self { @@ -308,32 +308,32 @@ impl FromGlib for RTCPXRType { } } -#[cfg(any(feature = "v1_16", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] +#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] impl StaticType for RTCPXRType { fn static_type() -> Type { unsafe { from_glib(ffi::gst_rtcpxr_type_get_type()) } } } -#[cfg(any(feature = "v1_16", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] +#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] impl<'a> FromValueOptional<'a> for RTCPXRType { unsafe fn from_value_optional(value: &Value) -> Option { Some(FromValue::from_value(value)) } } -#[cfg(any(feature = "v1_16", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] +#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] impl<'a> FromValue<'a> for RTCPXRType { unsafe fn from_value(value: &Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0)) } } -#[cfg(any(feature = "v1_16", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] +#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] impl SetValue for RTCPXRType { unsafe fn set_value(value: &mut Value, this: &Self) { glib::gobject_ffi::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 8e23a727f..fe80b03f9 100644 --- a/gstreamer-rtp/src/auto/flags.rs +++ b/gstreamer-rtp/src/auto/flags.rs @@ -11,8 +11,8 @@ use glib::value::Value; use glib::StaticType; use glib::Type; -#[cfg(any(feature = "v1_10", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] +#[cfg(any(feature = "v1_10", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] bitflags! { pub struct RTPBufferFlags: u32 { const RETRANSMISSION = 1048576; @@ -20,8 +20,8 @@ bitflags! { } } -#[cfg(any(feature = "v1_10", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] +#[cfg(any(feature = "v1_10", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] #[doc(hidden)] impl ToGlib for RTPBufferFlags { type GlibType = ffi::GstRTPBufferFlags; @@ -31,8 +31,8 @@ impl ToGlib for RTPBufferFlags { } } -#[cfg(any(feature = "v1_10", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] +#[cfg(any(feature = "v1_10", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] #[doc(hidden)] impl FromGlib for RTPBufferFlags { fn from_glib(value: ffi::GstRTPBufferFlags) -> RTPBufferFlags { @@ -41,32 +41,32 @@ impl FromGlib for RTPBufferFlags { } } -#[cfg(any(feature = "v1_10", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] +#[cfg(any(feature = "v1_10", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] impl StaticType for RTPBufferFlags { fn static_type() -> Type { unsafe { from_glib(ffi::gst_rtp_buffer_flags_get_type()) } } } -#[cfg(any(feature = "v1_10", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] +#[cfg(any(feature = "v1_10", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] impl<'a> FromValueOptional<'a> for RTPBufferFlags { unsafe fn from_value_optional(value: &Value) -> Option { Some(FromValue::from_value(value)) } } -#[cfg(any(feature = "v1_10", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] +#[cfg(any(feature = "v1_10", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] impl<'a> FromValue<'a> for RTPBufferFlags { unsafe fn from_value(value: &Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_flags(value.to_glib_none().0)) } } -#[cfg(any(feature = "v1_10", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] +#[cfg(any(feature = "v1_10", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] impl SetValue for RTPBufferFlags { unsafe fn set_value(value: &mut Value, this: &Self) { glib::gobject_ffi::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 fb4a7ba21..0c7bd981e 100644 --- a/gstreamer-rtp/src/auto/functions.rs +++ b/gstreamer-rtp/src/auto/functions.rs @@ -5,14 +5,14 @@ use crate::RTCPSDESType; use glib::translate::*; -//#[cfg(any(feature = "v1_16", feature = "dox"))] -//#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] +//#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] +//#[cfg_attr(all(not(doctest), doc), 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 ffi:gst_buffer_add_rtp_source_meta() } //} -//#[cfg(any(feature = "v1_16", feature = "dox"))] -//#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] +//#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] +//#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] //pub fn buffer_get_rtp_source_meta(buffer: &gst::Buffer) -> /*Ignored*/Option { // unsafe { TODO: call ffi:gst_buffer_get_rtp_source_meta() } //} diff --git a/gstreamer-rtp/src/auto/mod.rs b/gstreamer-rtp/src/auto/mod.rs index d9420453d..6773f84a3 100644 --- a/gstreamer-rtp/src/auto/mod.rs +++ b/gstreamer-rtp/src/auto/mod.rs @@ -6,15 +6,15 @@ mod enums; 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")))] +#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), 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")))] +#[cfg(any(feature = "v1_10", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), 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 b492a0529..94b4315ac 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 @ 694b4b8) -from gir-files (https://github.com/gtk-rs/gir-files @ 85876a52) +Generated by gir (https://github.com/gtk-rs/gir @ b16d610) +from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) diff --git a/gstreamer-rtp/sys/Cargo.toml b/gstreamer-rtp/sys/Cargo.toml index b9a73f7bb..bf16b1663 100644 --- a/gstreamer-rtp/sys/Cargo.toml +++ b/gstreamer-rtp/sys/Cargo.toml @@ -49,7 +49,7 @@ repository = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs" version = "0.17.0" edition = "2018" [package.metadata.docs.rs] -features = ["dox"] +features = [] [package.metadata.system-deps.gstreamer_rtp_1_0] name = "gstreamer-rtp-1.0" version = "1.8" diff --git a/gstreamer-rtp/sys/build.rs b/gstreamer-rtp/sys/build.rs index c69299ced..f3f73eb6b 100644 --- a/gstreamer-rtp/sys/build.rs +++ b/gstreamer-rtp/sys/build.rs @@ -1,14 +1,14 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 694b4b8) -// from gir-files (https://github.com/gtk-rs/gir-files @ 58bda97d) +// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) +// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) // DO NOT EDIT -#[cfg(not(feature = "dox"))] +#[cfg(any(not(doc), doctest))] use std::process; -#[cfg(feature = "dox")] +#[cfg(all(not(doctest), doc))] fn main() {} // prevent linking libraries to avoid documentation failure -#[cfg(not(feature = "dox"))] +#[cfg(any(not(doc), doctest))] fn main() { if let Err(s) = system_deps::Config::new().probe() { let _ = eprintln!("{}", s); diff --git a/gstreamer-rtp/sys/src/lib.rs b/gstreamer-rtp/sys/src/lib.rs index c6fa2069f..349b5ca83 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 @ 694b4b8) -// from gir-files (https://github.com/gtk-rs/gir-files @ 58bda97d) +// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) +// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) // DO NOT EDIT #![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)] @@ -8,7 +8,7 @@ clippy::type_complexity, clippy::unreadable_literal )] -#![cfg_attr(feature = "dox", feature(doc_cfg))] +#![cfg_attr(all(not(doctest), doc), feature(doc_cfg))] use glib_sys as glib; use gstreamer_base_sys as gst_base; @@ -503,8 +503,8 @@ extern "C" { //========================================================================= // GstRTCPXRType //========================================================================= - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] pub fn gst_rtcpxr_type_get_type() -> GType; //========================================================================= @@ -520,8 +520,8 @@ extern "C" { //========================================================================= // GstRTPBufferFlags //========================================================================= - #[cfg(any(feature = "v1_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] pub fn gst_rtp_buffer_flags_get_type() -> GType; //========================================================================= @@ -559,8 +559,8 @@ extern "C" { //========================================================================= // GstRTCPPacket //========================================================================= - #[cfg(any(feature = "v1_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] pub fn gst_rtcp_packet_add_profile_specific_ext( packet: *mut GstRTCPPacket, data: *const u8, @@ -576,35 +576,35 @@ extern "C" { lsr: u32, dlsr: u32, ) -> gboolean; - #[cfg(any(feature = "v1_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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( @@ -620,8 +620,8 @@ extern "C" { packet: *mut GstRTCPPacket, reason: *const c_char, ) -> gboolean; - #[cfg(any(feature = "v1_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] pub fn gst_rtcp_packet_copy_profile_specific_ext( packet: *mut GstRTCPPacket, data: *mut *mut u8, @@ -639,15 +639,15 @@ extern "C" { pub fn gst_rtcp_packet_get_count(packet: *mut GstRTCPPacket) -> u8; 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")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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, @@ -718,17 +718,17 @@ extern "C" { packet_count: u32, octet_count: u32, ); - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] pub fn gst_rtcp_packet_xr_get_dlrr_block( packet: *mut GstRTCPPacket, nth: c_uint, @@ -736,15 +736,15 @@ extern "C" { last_rr: *mut u32, delay: *mut u32, ) -> gboolean; - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] pub fn gst_rtcp_packet_xr_get_prt_info( packet: *mut GstRTCPPacket, ssrc: *mut u32, @@ -752,8 +752,8 @@ extern "C" { begin_seq: *mut u16, end_seq: *mut u16, ) -> gboolean; - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] pub fn gst_rtcp_packet_xr_get_rle_info( packet: *mut GstRTCPPacket, ssrc: *mut u32, @@ -762,29 +762,29 @@ extern "C" { end_seq: *mut u16, chunk_count: *mut u32, ) -> gboolean; - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] pub fn gst_rtcp_packet_xr_get_summary_info( packet: *mut GstRTCPPacket, ssrc: *mut u32, begin_seq: *mut u16, end_seq: *mut u16, ) -> gboolean; - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] pub fn gst_rtcp_packet_xr_get_summary_jitter( packet: *mut GstRTCPPacket, min_jitter: *mut u32, @@ -792,15 +792,15 @@ extern "C" { mean_jitter: *mut u32, dev_jitter: *mut u32, ) -> gboolean; - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] pub fn gst_rtcp_packet_xr_get_summary_ttl( packet: *mut GstRTCPPacket, is_ipv4: *mut gboolean, @@ -809,8 +809,8 @@ extern "C" { mean_ttl: *mut u8, dev_ttl: *mut u8, ) -> gboolean; - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] pub fn gst_rtcp_packet_xr_get_voip_burst_metrics( packet: *mut GstRTCPPacket, burst_density: *mut u8, @@ -818,43 +818,43 @@ extern "C" { burst_duration: *mut u16, gap_duration: *mut u16, ) -> gboolean; - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] pub fn gst_rtcp_packet_xr_get_voip_jitter_buffer_params( packet: *mut GstRTCPPacket, jb_nominal: *mut u16, jb_maximum: *mut u16, jb_abs_max: *mut u16, ) -> gboolean; - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] pub fn gst_rtcp_packet_xr_get_voip_quality_metrics( packet: *mut GstRTCPPacket, r_factor: *mut u8, @@ -862,8 +862,8 @@ extern "C" { mos_lq: *mut u8, mos_cq: *mut u8, ) -> gboolean; - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] pub fn gst_rtcp_packet_xr_get_voip_signal_metrics( packet: *mut GstRTCPPacket, signal_level: *mut u8, @@ -871,8 +871,8 @@ extern "C" { rerl: *mut u8, gmin: *mut u8, ) -> gboolean; - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] pub fn gst_rtcp_packet_xr_next_rb(packet: *mut GstRTCPPacket) -> gboolean; //========================================================================= @@ -974,8 +974,8 @@ extern "C" { pub fn gst_rtp_buffer_compare_seqnum(seqnum1: u16, seqnum2: u16) -> c_int; 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] pub fn gst_rtp_buffer_get_extension_onebyte_header_from_bytes( bytes: *mut glib::GBytes, bit_pattern: u16, @@ -1014,21 +1014,21 @@ extern "C" { //========================================================================= // GstRTPSourceMeta //========================================================================= - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] pub fn gst_rtp_source_meta_get_info() -> *const gst::GstMetaInfo; //========================================================================= @@ -1073,8 +1073,8 @@ extern "C" { // GstRTPBaseDepayload //========================================================================= 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] pub fn gst_rtp_base_depayload_is_source_info_enabled( depayload: *mut GstRTPBaseDepayload, ) -> gboolean; @@ -1086,8 +1086,8 @@ extern "C" { filter: *mut GstRTPBaseDepayload, out_list: *mut gst::GstBufferList, ) -> gst::GstFlowReturn; - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] pub fn gst_rtp_base_depayload_set_source_info_enabled( depayload: *mut GstRTPBaseDepayload, enable: gboolean, @@ -1097,16 +1097,16 @@ extern "C" { // GstRTPBasePayload //========================================================================= 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] pub fn gst_rtp_base_payload_allocate_output_buffer( payload: *mut GstRTPBasePayload, payload_len: c_uint, pad_len: u8, csrc_count: u8, ) -> *mut gst::GstBuffer; - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] pub fn gst_rtp_base_payload_get_source_count( payload: *mut GstRTPBasePayload, buffer: *mut gst::GstBuffer, @@ -1116,8 +1116,8 @@ extern "C" { size: c_uint, duration: gst::GstClockTime, ) -> gboolean; - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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( @@ -1140,8 +1140,8 @@ extern "C" { fieldname: *const c_char, ... ) -> gboolean; - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] pub fn gst_rtp_base_payload_set_source_info_enabled( payload: *mut GstRTPBasePayload, enable: gboolean, @@ -1150,16 +1150,16 @@ extern "C" { //========================================================================= // Other functions //========================================================================= - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] pub fn gst_buffer_add_rtp_source_meta( buffer: *mut gst::GstBuffer, ssrc: *const u32, csrc: *const u32, csrc_count: c_uint, ) -> *mut GstRTPSourceMeta; - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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; @@ -1169,8 +1169,8 @@ extern "C" { pub fn gst_rtp_hdrext_get_ntp_64(data: gpointer, size: c_uint, ntptime: *mut u64) -> gboolean; 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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 5d3c20591..e9e423c5d 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 @ 694b4b8) -// from gir-files (https://github.com/gtk-rs/gir-files @ 58bda97d) +// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) +// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) // DO NOT EDIT use gstreamer_rtp_sys::*; diff --git a/gstreamer-rtp/sys/tests/constant.c b/gstreamer-rtp/sys/tests/constant.c index 63be6f6a4..819aa4a30 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 @ 694b4b8) -// from gir-files (https://github.com/gtk-rs/gir-files @ 58bda97d) +// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) +// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-rtp/sys/tests/layout.c b/gstreamer-rtp/sys/tests/layout.c index 73f80e89d..ad8a5a3ff 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 @ 694b4b8) -// from gir-files (https://github.com/gtk-rs/gir-files @ 58bda97d) +// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) +// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) // 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 e429a6e63..d487c10db 100644 --- a/gstreamer-rtsp-server/src/auto/rtsp_auth.rs +++ b/gstreamer-rtsp-server/src/auto/rtsp_auth.rs @@ -60,18 +60,18 @@ pub const NONE_RTSP_AUTH: Option<&RTSPAuth> = None; 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")))] + #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] fn get_supported_methods(&self) -> gst_rtsp::RTSPAuthMethod; fn get_tls_authentication_mode(&self) -> gio::TlsAuthenticationMode; @@ -80,22 +80,22 @@ 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] fn set_supported_methods(&self, methods: gst_rtsp::RTSPAuthMethod); fn set_tls_authentication_mode(&self, mode: gio::TlsAuthenticationMode); @@ -126,8 +126,8 @@ impl> RTSPAuthExt for O { } } - #[cfg(any(feature = "v1_12", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] fn add_digest(&self, user: &str, pass: &str, token: &RTSPToken) { unsafe { ffi::gst_rtsp_auth_add_digest( @@ -147,14 +147,14 @@ impl> RTSPAuthExt for O { } } - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] fn get_realm(&self) -> Option { unsafe { from_glib_full(ffi::gst_rtsp_auth_get_realm(self.as_ref().to_glib_none().0)) } } - #[cfg(any(feature = "v1_12", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] fn get_supported_methods(&self) -> gst_rtsp::RTSPAuthMethod { unsafe { from_glib(ffi::gst_rtsp_auth_get_supported_methods( @@ -187,8 +187,8 @@ impl> RTSPAuthExt for O { } } - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] fn parse_htdigest>(&self, path: P, token: &RTSPToken) -> bool { unsafe { from_glib(ffi::gst_rtsp_auth_parse_htdigest( @@ -205,24 +205,24 @@ impl> RTSPAuthExt for O { } } - #[cfg(any(feature = "v1_12", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] fn remove_digest(&self, user: &str) { unsafe { ffi::gst_rtsp_auth_remove_digest(self.as_ref().to_glib_none().0, user.to_glib_none().0); } } - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] fn set_realm(&self, realm: &str) { unsafe { ffi::gst_rtsp_auth_set_realm(self.as_ref().to_glib_none().0, realm.to_glib_none().0); } } - #[cfg(any(feature = "v1_12", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] fn set_supported_methods(&self, methods: gst_rtsp::RTSPAuthMethod) { unsafe { ffi::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 7593abb90..b322d4321 100644 --- a/gstreamer-rtsp-server/src/auto/rtsp_client.rs +++ b/gstreamer-rtsp-server/src/auto/rtsp_client.rs @@ -8,8 +8,8 @@ use crate::RTSPFilterResult; use crate::RTSPMountPoints; use crate::RTSPSession; use crate::RTSPSessionPool; -#[cfg(any(feature = "v1_18", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] +#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] use crate::RTSPStreamTransport; use crate::RTSPThreadPool; use glib::object::Cast; @@ -55,16 +55,16 @@ 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] fn get_content_length_limit(&self) -> u32; fn get_mount_points(&self) -> Option; fn get_session_pool(&self) -> Option; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] fn get_stream_transport(&self, channel: u8) -> Option; fn get_thread_pool(&self) -> Option; @@ -82,16 +82,16 @@ 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] fn set_content_length_limit(&self, limit: u32); fn set_mount_points>(&self, mounts: Option<&P>); //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")))] + //#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + //#[cfg_attr(all(not(doctest), doc), 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>); @@ -150,8 +150,8 @@ pub trait RTSPClientExt: 'static { f: F, ) -> SignalHandlerId; - #[cfg(any(feature = "v1_12", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] fn connect_pre_announce_request< F: Fn(&Self, &RTSPContext) -> gst_rtsp::RTSPStatusCode + Send + Sync + 'static, >( @@ -159,8 +159,8 @@ pub trait RTSPClientExt: 'static { f: F, ) -> SignalHandlerId; - #[cfg(any(feature = "v1_12", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] fn connect_pre_describe_request< F: Fn(&Self, &RTSPContext) -> gst_rtsp::RTSPStatusCode + Send + Sync + 'static, >( @@ -168,8 +168,8 @@ pub trait RTSPClientExt: 'static { f: F, ) -> SignalHandlerId; - #[cfg(any(feature = "v1_12", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] fn connect_pre_get_parameter_request< F: Fn(&Self, &RTSPContext) -> gst_rtsp::RTSPStatusCode + Send + Sync + 'static, >( @@ -177,8 +177,8 @@ pub trait RTSPClientExt: 'static { f: F, ) -> SignalHandlerId; - #[cfg(any(feature = "v1_12", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] fn connect_pre_options_request< F: Fn(&Self, &RTSPContext) -> gst_rtsp::RTSPStatusCode + Send + Sync + 'static, >( @@ -186,8 +186,8 @@ pub trait RTSPClientExt: 'static { f: F, ) -> SignalHandlerId; - #[cfg(any(feature = "v1_12", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] fn connect_pre_pause_request< F: Fn(&Self, &RTSPContext) -> gst_rtsp::RTSPStatusCode + Send + Sync + 'static, >( @@ -195,8 +195,8 @@ pub trait RTSPClientExt: 'static { f: F, ) -> SignalHandlerId; - #[cfg(any(feature = "v1_12", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] fn connect_pre_play_request< F: Fn(&Self, &RTSPContext) -> gst_rtsp::RTSPStatusCode + Send + Sync + 'static, >( @@ -204,8 +204,8 @@ pub trait RTSPClientExt: 'static { f: F, ) -> SignalHandlerId; - #[cfg(any(feature = "v1_12", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] fn connect_pre_record_request< F: Fn(&Self, &RTSPContext) -> gst_rtsp::RTSPStatusCode + Send + Sync + 'static, >( @@ -213,8 +213,8 @@ pub trait RTSPClientExt: 'static { f: F, ) -> SignalHandlerId; - #[cfg(any(feature = "v1_12", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] fn connect_pre_set_parameter_request< F: Fn(&Self, &RTSPContext) -> gst_rtsp::RTSPStatusCode + Send + Sync + 'static, >( @@ -222,8 +222,8 @@ pub trait RTSPClientExt: 'static { f: F, ) -> SignalHandlerId; - #[cfg(any(feature = "v1_12", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] fn connect_pre_setup_request< F: Fn(&Self, &RTSPContext) -> gst_rtsp::RTSPStatusCode + Send + Sync + 'static, >( @@ -231,8 +231,8 @@ pub trait RTSPClientExt: 'static { f: F, ) -> SignalHandlerId; - #[cfg(any(feature = "v1_12", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] fn connect_pre_teardown_request< F: Fn(&Self, &RTSPContext) -> gst_rtsp::RTSPStatusCode + Send + Sync + 'static, >( @@ -302,8 +302,8 @@ impl> RTSPClientExt for O { // unsafe { TODO: call ffi:gst_rtsp_client_get_connection() } //} - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] fn get_content_length_limit(&self) -> u32 { unsafe { ffi::gst_rtsp_client_get_content_length_limit(self.as_ref().to_glib_none().0) } } @@ -324,8 +324,8 @@ impl> RTSPClientExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] fn get_stream_transport(&self, channel: u8) -> Option { unsafe { from_glib_none(ffi::gst_rtsp_client_get_stream_transport( @@ -405,8 +405,8 @@ impl> RTSPClientExt for O { // unsafe { TODO: call ffi:gst_rtsp_client_set_connection() } //} - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] fn set_content_length_limit(&self, limit: u32) { unsafe { ffi::gst_rtsp_client_set_content_length_limit(self.as_ref().to_glib_none().0, limit); @@ -426,8 +426,8 @@ impl> RTSPClientExt for O { // unsafe { TODO: call ffi:gst_rtsp_client_set_send_func() } //} - //#[cfg(any(feature = "v1_16", feature = "dox"))] - //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + //#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + //#[cfg_attr(all(not(doctest), doc), 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 ffi:gst_rtsp_client_set_send_messages_func() } //} @@ -791,8 +791,8 @@ impl> RTSPClientExt for O { } } - #[cfg(any(feature = "v1_12", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] fn connect_pre_announce_request< F: Fn(&Self, &RTSPContext) -> gst_rtsp::RTSPStatusCode + Send + Sync + 'static, >( @@ -830,8 +830,8 @@ impl> RTSPClientExt for O { } } - #[cfg(any(feature = "v1_12", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] fn connect_pre_describe_request< F: Fn(&Self, &RTSPContext) -> gst_rtsp::RTSPStatusCode + Send + Sync + 'static, >( @@ -869,8 +869,8 @@ impl> RTSPClientExt for O { } } - #[cfg(any(feature = "v1_12", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] fn connect_pre_get_parameter_request< F: Fn(&Self, &RTSPContext) -> gst_rtsp::RTSPStatusCode + Send + Sync + 'static, >( @@ -908,8 +908,8 @@ impl> RTSPClientExt for O { } } - #[cfg(any(feature = "v1_12", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] fn connect_pre_options_request< F: Fn(&Self, &RTSPContext) -> gst_rtsp::RTSPStatusCode + Send + Sync + 'static, >( @@ -947,8 +947,8 @@ impl> RTSPClientExt for O { } } - #[cfg(any(feature = "v1_12", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] fn connect_pre_pause_request< F: Fn(&Self, &RTSPContext) -> gst_rtsp::RTSPStatusCode + Send + Sync + 'static, >( @@ -986,8 +986,8 @@ impl> RTSPClientExt for O { } } - #[cfg(any(feature = "v1_12", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] fn connect_pre_play_request< F: Fn(&Self, &RTSPContext) -> gst_rtsp::RTSPStatusCode + Send + Sync + 'static, >( @@ -1025,8 +1025,8 @@ impl> RTSPClientExt for O { } } - #[cfg(any(feature = "v1_12", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] fn connect_pre_record_request< F: Fn(&Self, &RTSPContext) -> gst_rtsp::RTSPStatusCode + Send + Sync + 'static, >( @@ -1064,8 +1064,8 @@ impl> RTSPClientExt for O { } } - #[cfg(any(feature = "v1_12", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] fn connect_pre_set_parameter_request< F: Fn(&Self, &RTSPContext) -> gst_rtsp::RTSPStatusCode + Send + Sync + 'static, >( @@ -1103,8 +1103,8 @@ impl> RTSPClientExt for O { } } - #[cfg(any(feature = "v1_12", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] fn connect_pre_setup_request< F: Fn(&Self, &RTSPContext) -> gst_rtsp::RTSPStatusCode + Send + Sync + 'static, >( @@ -1142,8 +1142,8 @@ impl> RTSPClientExt for O { } } - #[cfg(any(feature = "v1_12", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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 058fb1267..308d8c8ed 100644 --- a/gstreamer-rtsp-server/src/auto/rtsp_media.rs +++ b/gstreamer-rtsp-server/src/auto/rtsp_media.rs @@ -18,8 +18,8 @@ use glib::translate::*; use glib::StaticType; use glib::Value; use std::boxed::Box as Box_; -#[cfg(any(feature = "v1_18", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] +#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] use std::mem; use std::mem::transmute; @@ -46,8 +46,8 @@ pub const NONE_RTSP_MEDIA: Option<&RTSPMedia> = None; pub trait RTSPMediaExt: 'static { fn collect_streams(&self); - //#[cfg(any(feature = "v1_14", feature = "dox"))] - //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] + //#[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + //#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] //fn complete_pipeline(&self, transports: /*Ignored*/&[&gst_rtsp::RTSPTransport]) -> bool; fn create_stream, Q: IsA>( @@ -66,20 +66,20 @@ 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] fn get_dscp_qos(&self) -> i32; fn get_element(&self) -> Option; fn get_latency(&self) -> u32; - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] fn get_max_mcast_ttl(&self) -> u32; fn get_multicast_iface(&self) -> Option; @@ -94,12 +94,12 @@ 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] fn get_rates(&self) -> Option<(f64, f64)>; fn get_retransmission_time(&self) -> gst::ClockTime; @@ -116,18 +116,18 @@ 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] fn is_receive_only(&self) -> bool; fn is_reusable(&self) -> bool; @@ -138,8 +138,8 @@ 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] fn lock(&self); fn n_streams(&self) -> u32; @@ -148,42 +148,42 @@ 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")))] + //#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + //#[cfg_attr(all(not(doctest), doc), 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")))] + //#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + //#[cfg_attr(all(not(doctest), doc), 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")))] + //#[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + //#[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] fn set_bind_mcast_address(&self, bind_mcast_addr: bool); fn set_buffer_size(&self, size: u32); fn set_clock>(&self, clock: Option<&P>); - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] fn set_dscp_qos(&self, dscp_qos: i32); fn set_eos_shutdown(&self, eos_shutdown: bool); fn set_latency(&self, latency: u32); - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] fn set_max_mcast_ttl(&self, ttl: u32) -> bool; fn set_multicast_iface(&self, multicast_iface: Option<&str>); @@ -198,8 +198,8 @@ 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] fn set_rate_control(&self, enabled: bool); fn set_retransmission_time(&self, time: gst::ClockTime); @@ -220,8 +220,8 @@ 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] fn unlock(&self); fn unprepare(&self) -> Result<(), glib::error::BoolError>; @@ -357,8 +357,8 @@ impl> RTSPMediaExt for O { } } - //#[cfg(any(feature = "v1_14", feature = "dox"))] - //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] + //#[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + //#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] //fn complete_pipeline(&self, transports: /*Ignored*/&[&gst_rtsp::RTSPTransport]) -> bool { // unsafe { TODO: call ffi:gst_rtsp_media_complete_pipeline() } //} @@ -414,8 +414,8 @@ impl> RTSPMediaExt for O { } } - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] fn get_do_retransmission(&self) -> bool { unsafe { from_glib(ffi::gst_rtsp_media_get_do_retransmission( @@ -424,8 +424,8 @@ impl> RTSPMediaExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] fn get_dscp_qos(&self) -> i32 { unsafe { ffi::gst_rtsp_media_get_dscp_qos(self.as_ref().to_glib_none().0) } } @@ -442,8 +442,8 @@ impl> RTSPMediaExt for O { unsafe { ffi::gst_rtsp_media_get_latency(self.as_ref().to_glib_none().0) } } - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] fn get_max_mcast_ttl(&self) -> u32 { unsafe { ffi::gst_rtsp_media_get_max_mcast_ttl(self.as_ref().to_glib_none().0) } } @@ -494,8 +494,8 @@ impl> RTSPMediaExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] fn get_rate_control(&self) -> bool { unsafe { from_glib(ffi::gst_rtsp_media_get_rate_control( @@ -504,8 +504,8 @@ impl> RTSPMediaExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] fn get_rates(&self) -> Option<(f64, f64)> { unsafe { let mut rate = mem::MaybeUninit::uninit(); @@ -574,8 +574,8 @@ impl> RTSPMediaExt for O { // unsafe { TODO: call ffi:gst_rtsp_media_handle_sdp() } //} - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] fn has_completed_sender(&self) -> bool { unsafe { from_glib(ffi::gst_rtsp_media_has_completed_sender( @@ -584,8 +584,8 @@ impl> RTSPMediaExt for O { } } - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] fn is_bind_mcast_address(&self) -> bool { unsafe { from_glib(ffi::gst_rtsp_media_is_bind_mcast_address( @@ -602,8 +602,8 @@ impl> RTSPMediaExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] fn is_receive_only(&self) -> bool { unsafe { from_glib(ffi::gst_rtsp_media_is_receive_only( @@ -644,8 +644,8 @@ impl> RTSPMediaExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] fn lock(&self) { unsafe { ffi::gst_rtsp_media_lock(self.as_ref().to_glib_none().0); @@ -669,20 +669,20 @@ impl> RTSPMediaExt for O { // unsafe { TODO: call ffi:gst_rtsp_media_seek() } //} - //#[cfg(any(feature = "v1_18", feature = "dox"))] - //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + //#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + //#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] //fn seek_full(&self, range: /*Ignored*/&mut gst_rtsp::RTSPTimeRange, flags: /*Ignored*/gst::SeekFlags) -> bool { // unsafe { TODO: call ffi:gst_rtsp_media_seek_full() } //} - //#[cfg(any(feature = "v1_18", feature = "dox"))] - //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + //#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + //#[cfg_attr(all(not(doctest), doc), 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 ffi:gst_rtsp_media_seek_trickmode() } //} - //#[cfg(any(feature = "v1_14", feature = "dox"))] - //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] + //#[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + //#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] //fn seekable(&self) -> /*Ignored*/gst::ClockTimeDiff { // unsafe { TODO: call ffi:gst_rtsp_media_seekable() } //} @@ -696,8 +696,8 @@ impl> RTSPMediaExt for O { } } - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] fn set_bind_mcast_address(&self, bind_mcast_addr: bool) { unsafe { ffi::gst_rtsp_media_set_bind_mcast_address( @@ -722,8 +722,8 @@ impl> RTSPMediaExt for O { } } - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] fn set_do_retransmission(&self, do_retransmission: bool) { unsafe { ffi::gst_rtsp_media_set_do_retransmission( @@ -733,8 +733,8 @@ impl> RTSPMediaExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] fn set_dscp_qos(&self, dscp_qos: i32) { unsafe { ffi::gst_rtsp_media_set_dscp_qos(self.as_ref().to_glib_none().0, dscp_qos); @@ -756,8 +756,8 @@ impl> RTSPMediaExt for O { } } - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] fn set_max_mcast_ttl(&self, ttl: u32) -> bool { unsafe { from_glib(ffi::gst_rtsp_media_set_max_mcast_ttl( @@ -807,8 +807,8 @@ impl> RTSPMediaExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] fn set_rate_control(&self, enabled: bool) { unsafe { ffi::gst_rtsp_media_set_rate_control(self.as_ref().to_glib_none().0, enabled.to_glib()); @@ -880,8 +880,8 @@ impl> RTSPMediaExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] fn unlock(&self) { unsafe { ffi::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 687df06a3..4b639e0d9 100644 --- a/gstreamer-rtsp-server/src/auto/rtsp_media_factory.rs +++ b/gstreamer-rtsp-server/src/auto/rtsp_media_factory.rs @@ -56,20 +56,20 @@ 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] fn get_dscp_qos(&self) -> i32; fn get_latency(&self) -> u32; fn get_launch(&self) -> Option; - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] fn get_max_mcast_ttl(&self) -> u32; fn get_media_gtype(&self) -> glib::types::Type; @@ -90,8 +90,8 @@ 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] fn is_bind_mcast_address(&self) -> bool; fn is_eos_shutdown(&self) -> bool; @@ -102,20 +102,20 @@ 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] fn set_bind_mcast_address(&self, bind_mcast_addr: bool); fn set_buffer_size(&self, size: u32); fn set_clock>(&self, clock: Option<&P>); - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] fn set_dscp_qos(&self, dscp_qos: i32); fn set_eos_shutdown(&self, eos_shutdown: bool); @@ -124,8 +124,8 @@ 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] fn set_max_mcast_ttl(&self, ttl: u32) -> bool; fn set_media_gtype(&self, media_gtype: glib::types::Type); @@ -294,8 +294,8 @@ impl> RTSPMediaFactoryExt for O { } } - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] fn get_do_retransmission(&self) -> bool { unsafe { from_glib(ffi::gst_rtsp_media_factory_get_do_retransmission( @@ -304,8 +304,8 @@ impl> RTSPMediaFactoryExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] fn get_dscp_qos(&self) -> i32 { unsafe { ffi::gst_rtsp_media_factory_get_dscp_qos(self.as_ref().to_glib_none().0) } } @@ -322,8 +322,8 @@ impl> RTSPMediaFactoryExt for O { } } - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] fn get_max_mcast_ttl(&self) -> u32 { unsafe { ffi::gst_rtsp_media_factory_get_max_mcast_ttl(self.as_ref().to_glib_none().0) } } @@ -396,8 +396,8 @@ impl> RTSPMediaFactoryExt for O { } } - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] fn is_bind_mcast_address(&self) -> bool { unsafe { from_glib(ffi::gst_rtsp_media_factory_is_bind_mcast_address( @@ -439,8 +439,8 @@ impl> RTSPMediaFactoryExt for O { } } - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] fn set_bind_mcast_address(&self, bind_mcast_addr: bool) { unsafe { ffi::gst_rtsp_media_factory_set_bind_mcast_address( @@ -465,8 +465,8 @@ impl> RTSPMediaFactoryExt for O { } } - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] fn set_do_retransmission(&self, do_retransmission: bool) { unsafe { ffi::gst_rtsp_media_factory_set_do_retransmission( @@ -476,8 +476,8 @@ impl> RTSPMediaFactoryExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] fn set_dscp_qos(&self, dscp_qos: i32) { unsafe { ffi::gst_rtsp_media_factory_set_dscp_qos(self.as_ref().to_glib_none().0, dscp_qos); @@ -508,8 +508,8 @@ impl> RTSPMediaFactoryExt for O { } } - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] fn set_max_mcast_ttl(&self, ttl: u32) -> bool { unsafe { from_glib(ffi::gst_rtsp_media_factory_set_max_mcast_ttl( diff --git a/gstreamer-rtsp-server/src/auto/rtsp_server.rs b/gstreamer-rtsp-server/src/auto/rtsp_server.rs index 65828bc98..3af49503f 100644 --- a/gstreamer-rtsp-server/src/auto/rtsp_server.rs +++ b/gstreamer-rtsp-server/src/auto/rtsp_server.rs @@ -87,8 +87,8 @@ 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] fn get_content_length_limit(&self) -> u32; fn get_mount_points(&self) -> Option; @@ -105,8 +105,8 @@ 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] fn set_content_length_limit(&self, limit: u32); fn set_mount_points>(&self, mounts: Option<&P>); @@ -274,8 +274,8 @@ impl> RTSPServerExt for O { unsafe { ffi::gst_rtsp_server_get_bound_port(self.as_ref().to_glib_none().0) } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] fn get_content_length_limit(&self) -> u32 { unsafe { ffi::gst_rtsp_server_get_content_length_limit(self.as_ref().to_glib_none().0) } } @@ -336,8 +336,8 @@ impl> RTSPServerExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] fn set_content_length_limit(&self, limit: u32) { unsafe { ffi::gst_rtsp_server_set_content_length_limit(self.as_ref().to_glib_none().0, limit); diff --git a/gstreamer-rtsp-server/src/auto/rtsp_session_media.rs b/gstreamer-rtsp-server/src/auto/rtsp_session_media.rs index 6e084f8aa..0b6786706 100644 --- a/gstreamer-rtsp-server/src/auto/rtsp_session_media.rs +++ b/gstreamer-rtsp-server/src/auto/rtsp_session_media.rs @@ -46,8 +46,8 @@ 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")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] fn get_transports(&self) -> Vec; fn matches(&self, path: &str) -> Option; @@ -101,8 +101,8 @@ impl> RTSPSessionMediaExt for O { } } - #[cfg(any(feature = "v1_14", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] fn get_transports(&self) -> Vec { unsafe { FromGlibPtrContainer::from_glib_full(ffi::gst_rtsp_session_media_get_transports( diff --git a/gstreamer-rtsp-server/src/auto/rtsp_stream.rs b/gstreamer-rtsp-server/src/auto/rtsp_stream.rs index 6609286e7..7b33b7c14 100644 --- a/gstreamer-rtsp-server/src/auto/rtsp_stream.rs +++ b/gstreamer-rtsp-server/src/auto/rtsp_stream.rs @@ -47,8 +47,8 @@ unsafe impl Sync for RTSPStream {} 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] fn add_multicast_client_address( &self, destination: &str, @@ -64,8 +64,8 @@ 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")))] + //#[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + //#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] //fn complete_stream(&self, transport: /*Ignored*/&gst_rtsp::RTSPTransport) -> bool; fn get_address_pool(&self) -> Option; @@ -84,16 +84,16 @@ 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] fn get_max_mcast_ttl(&self) -> u32; fn get_mtu(&self) -> u32; 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] fn get_multicast_client_addresses(&self) -> Option; fn get_multicast_iface(&self) -> Option; @@ -106,20 +106,20 @@ 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] fn get_rates(&self) -> Option<(f64, f64)>; fn get_retransmission_pt(&self) -> u32; fn get_retransmission_time(&self) -> gst::ClockTime; - #[cfg(any(feature = "v1_14", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] fn get_rtcp_multicast_socket(&self, family: gio::SocketFamily) -> Option; fn get_rtcp_socket(&self, family: gio::SocketFamily) -> Option; @@ -144,38 +144,38 @@ 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] fn is_bind_mcast_address(&self) -> bool; fn is_blocking(&self) -> bool; fn is_client_side(&self) -> bool; - #[cfg(any(feature = "v1_14", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] fn is_sender(&self) -> bool; //fn is_transport_supported(&self, transport: /*Ignored*/&mut gst_rtsp::RTSPTransport) -> bool; @@ -198,22 +198,22 @@ pub trait RTSPStreamExt: 'static { trans: &P, ) -> Result<(), glib::error::BoolError>; - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] fn request_ulpfec_decoder>( &self, rtpbin: &P, sessid: u32, ) -> Option; - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] fn request_ulpfec_encoder(&self, sessid: u32) -> Option; fn reserve_address( @@ -224,14 +224,14 @@ pub trait RTSPStreamExt: 'static { ttl: u32, ) -> Option; - #[cfg(any(feature = "v1_14", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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>; @@ -244,8 +244,8 @@ 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] fn set_max_mcast_ttl(&self, ttl: u32) -> bool; fn set_mtu(&self, mtu: u32); @@ -260,8 +260,8 @@ 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] fn set_rate_control(&self, enabled: bool); fn set_retransmission_pt(&self, rtx_pt: u32); @@ -270,12 +270,12 @@ 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] fn set_ulpfec_pt(&self, pt: u32); fn transport_filter( @@ -291,8 +291,8 @@ pub trait RTSPStreamExt: 'static { crypto: Option<&gst::Caps>, ) -> Result<(), glib::error::BoolError>; - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] fn verify_mcast_ttl(&self, ttl: u32) -> bool; fn connect_new_rtcp_encoder( @@ -327,8 +327,8 @@ pub trait RTSPStreamExt: 'static { } impl> RTSPStreamExt for O { - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] fn add_multicast_client_address( &self, destination: &str, @@ -366,8 +366,8 @@ impl> RTSPStreamExt for O { // unsafe { TODO: call ffi:gst_rtsp_stream_allocate_udp_sockets() } //} - //#[cfg(any(feature = "v1_14", feature = "dox"))] - //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] + //#[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + //#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] //fn complete_stream(&self, transport: /*Ignored*/&gst_rtsp::RTSPTransport) -> bool { // unsafe { TODO: call ffi:gst_rtsp_stream_complete_stream() } //} @@ -420,8 +420,8 @@ impl> RTSPStreamExt for O { } } - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] fn get_max_mcast_ttl(&self) -> u32 { unsafe { ffi::gst_rtsp_stream_get_max_mcast_ttl(self.as_ref().to_glib_none().0) } } @@ -439,8 +439,8 @@ impl> RTSPStreamExt for O { } } - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] fn get_multicast_client_addresses(&self) -> Option { unsafe { from_glib_full(ffi::gst_rtsp_stream_get_multicast_client_addresses( @@ -485,8 +485,8 @@ impl> RTSPStreamExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] fn get_rate_control(&self) -> bool { unsafe { from_glib(ffi::gst_rtsp_stream_get_rate_control( @@ -495,8 +495,8 @@ impl> RTSPStreamExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] fn get_rates(&self) -> Option<(f64, f64)> { unsafe { let mut rate = mem::MaybeUninit::uninit(); @@ -528,8 +528,8 @@ impl> RTSPStreamExt for O { } } - #[cfg(any(feature = "v1_14", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] fn get_rtcp_multicast_socket(&self, family: gio::SocketFamily) -> Option { unsafe { from_glib_full(ffi::gst_rtsp_stream_get_rtcp_multicast_socket( @@ -644,20 +644,20 @@ impl> RTSPStreamExt for O { } } - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] fn get_ulpfec_percentage(&self) -> u32 { unsafe { ffi::gst_rtsp_stream_get_ulpfec_percentage(self.as_ref().to_glib_none().0) } } - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] fn get_ulpfec_pt(&self) -> u32 { unsafe { ffi::gst_rtsp_stream_get_ulpfec_pt(self.as_ref().to_glib_none().0) } } - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] fn handle_keymgmt(&self, keymgmt: &str) -> bool { unsafe { from_glib(ffi::gst_rtsp_stream_handle_keymgmt( @@ -676,8 +676,8 @@ impl> RTSPStreamExt for O { } } - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] fn is_bind_mcast_address(&self) -> bool { unsafe { from_glib(ffi::gst_rtsp_stream_is_bind_mcast_address( @@ -702,8 +702,8 @@ impl> RTSPStreamExt for O { } } - #[cfg(any(feature = "v1_14", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] fn is_complete(&self) -> bool { unsafe { from_glib(ffi::gst_rtsp_stream_is_complete( @@ -712,8 +712,8 @@ impl> RTSPStreamExt for O { } } - #[cfg(any(feature = "v1_14", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] fn is_receiver(&self) -> bool { unsafe { from_glib(ffi::gst_rtsp_stream_is_receiver( @@ -722,8 +722,8 @@ impl> RTSPStreamExt for O { } } - #[cfg(any(feature = "v1_14", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] fn is_sender(&self) -> bool { unsafe { from_glib(ffi::gst_rtsp_stream_is_sender( @@ -787,8 +787,8 @@ impl> RTSPStreamExt for O { } } - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] fn request_aux_receiver(&self, sessid: u32) -> Option { unsafe { from_glib_full(ffi::gst_rtsp_stream_request_aux_receiver( @@ -807,8 +807,8 @@ impl> RTSPStreamExt for O { } } - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] fn request_ulpfec_decoder>( &self, rtpbin: &P, @@ -823,8 +823,8 @@ impl> RTSPStreamExt for O { } } - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] fn request_ulpfec_encoder(&self, sessid: u32) -> Option { unsafe { from_glib_full(ffi::gst_rtsp_stream_request_ulpfec_encoder( @@ -852,8 +852,8 @@ impl> RTSPStreamExt for O { } } - #[cfg(any(feature = "v1_14", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] fn seekable(&self) -> bool { unsafe { from_glib(ffi::gst_rtsp_stream_seekable( @@ -871,8 +871,8 @@ impl> RTSPStreamExt for O { } } - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] fn set_bind_mcast_address(&self, bind_mcast_addr: bool) { unsafe { ffi::gst_rtsp_stream_set_bind_mcast_address( @@ -921,8 +921,8 @@ impl> RTSPStreamExt for O { } } - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] fn set_max_mcast_ttl(&self, ttl: u32) -> bool { unsafe { from_glib(ffi::gst_rtsp_stream_set_max_mcast_ttl( @@ -978,8 +978,8 @@ impl> RTSPStreamExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] fn set_rate_control(&self, enabled: bool) { unsafe { ffi::gst_rtsp_stream_set_rate_control( @@ -1010,16 +1010,16 @@ impl> RTSPStreamExt for O { } } - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] fn set_ulpfec_percentage(&self, percentage: u32) { unsafe { ffi::gst_rtsp_stream_set_ulpfec_percentage(self.as_ref().to_glib_none().0, percentage); } } - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] fn set_ulpfec_pt(&self, pt: u32) { unsafe { ffi::gst_rtsp_stream_set_ulpfec_pt(self.as_ref().to_glib_none().0, pt); @@ -1096,8 +1096,8 @@ impl> RTSPStreamExt for O { } } - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] fn verify_mcast_ttl(&self, ttl: u32) -> bool { unsafe { from_glib(ffi::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 05daae8d4..74b57d0a3 100644 --- a/gstreamer-rtsp-server/src/auto/rtsp_stream_transport.rs +++ b/gstreamer-rtsp-server/src/auto/rtsp_stream_transport.rs @@ -36,20 +36,20 @@ pub trait RTSPStreamTransportExt: 'static { fn keep_alive(&self); - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + //#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + //#[cfg_attr(all(not(doctest), doc), 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")))] + //#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + //#[cfg_attr(all(not(doctest), doc), 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>; @@ -58,14 +58,14 @@ 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")))] + //#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + //#[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] fn set_message_sent_full(&self, message_sent: P); fn set_timed_out(&self, timedout: bool); @@ -119,8 +119,8 @@ impl> RTSPStreamTransportExt for O { } } - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] fn message_sent(&self) { unsafe { ffi::gst_rtsp_stream_transport_message_sent(self.as_ref().to_glib_none().0); @@ -139,8 +139,8 @@ impl> RTSPStreamTransportExt for O { } } - //#[cfg(any(feature = "v1_16", feature = "dox"))] - //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + //#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + //#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] //fn send_rtcp_list(&self, buffer_list: /*Ignored*/&gst::BufferList) -> bool { // unsafe { TODO: call ffi:gst_rtsp_stream_transport_send_rtcp_list() } //} @@ -157,8 +157,8 @@ impl> RTSPStreamTransportExt for O { } } - //#[cfg(any(feature = "v1_16", feature = "dox"))] - //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + //#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + //#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] //fn send_rtp_list(&self, buffer_list: /*Ignored*/&gst::BufferList) -> bool { // unsafe { TODO: call ffi:gst_rtsp_stream_transport_send_rtp_list() } //} @@ -201,8 +201,8 @@ impl> RTSPStreamTransportExt for O { } } - //#[cfg(any(feature = "v1_16", feature = "dox"))] - //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + //#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + //#[cfg_attr(all(not(doctest), doc), 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 ffi:gst_rtsp_stream_transport_set_list_callbacks() } //} @@ -229,8 +229,8 @@ impl> RTSPStreamTransportExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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 2dc6fa791..94b4315ac 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 @ 694b4b8) -from gir-files (https://github.com/gtk-rs/gir-files @ 6278d819) +Generated by gir (https://github.com/gtk-rs/gir @ b16d610) +from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) diff --git a/gstreamer-rtsp-server/sys/Cargo.toml b/gstreamer-rtsp-server/sys/Cargo.toml index 9fcc923a9..087897f58 100644 --- a/gstreamer-rtsp-server/sys/Cargo.toml +++ b/gstreamer-rtsp-server/sys/Cargo.toml @@ -59,7 +59,7 @@ repository = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs" version = "0.17.0" edition = "2018" [package.metadata.docs.rs] -features = ["dox"] +features = [] [package.metadata.system-deps.gstreamer_rtsp_server_1_0] name = "gstreamer-rtsp-server-1.0" version = "1.8" diff --git a/gstreamer-rtsp-server/sys/build.rs b/gstreamer-rtsp-server/sys/build.rs index c69299ced..f3f73eb6b 100644 --- a/gstreamer-rtsp-server/sys/build.rs +++ b/gstreamer-rtsp-server/sys/build.rs @@ -1,14 +1,14 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 694b4b8) -// from gir-files (https://github.com/gtk-rs/gir-files @ 58bda97d) +// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) +// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) // DO NOT EDIT -#[cfg(not(feature = "dox"))] +#[cfg(any(not(doc), doctest))] use std::process; -#[cfg(feature = "dox")] +#[cfg(all(not(doctest), doc))] fn main() {} // prevent linking libraries to avoid documentation failure -#[cfg(not(feature = "dox"))] +#[cfg(any(not(doc), doctest))] fn main() { if let Err(s) = system_deps::Config::new().probe() { let _ = eprintln!("{}", s); diff --git a/gstreamer-rtsp-server/sys/src/lib.rs b/gstreamer-rtsp-server/sys/src/lib.rs index 418053797..98c8515f9 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 @ 694b4b8) -// from gir-files (https://github.com/gtk-rs/gir-files @ 58bda97d) +// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) +// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) // DO NOT EDIT #![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)] @@ -8,7 +8,7 @@ clippy::type_complexity, clippy::unreadable_literal )] -#![cfg_attr(feature = "dox", feature(doc_cfg))] +#![cfg_attr(all(not(doctest), doc), feature(doc_cfg))] use gio_sys as gio; use glib_sys as glib; @@ -1307,8 +1307,8 @@ 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")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] pub fn gst_rtsp_permissions_add_permission_for_role( permissions: *mut GstRTSPPermissions, role: *const c_char, @@ -1321,14 +1321,14 @@ extern "C" { fieldname: *const c_char, ... ); - #[cfg(any(feature = "v1_14", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] pub fn gst_rtsp_permissions_add_role_from_structure( permissions: *mut GstRTSPPermissions, structure: *mut gst::GstStructure, @@ -1369,15 +1369,15 @@ extern "C" { ) -> *const c_char; 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")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] pub fn gst_rtsp_token_set_string( token: *mut GstRTSPToken, field: *const c_char, @@ -1427,8 +1427,8 @@ extern "C" { basic: *const c_char, token: *mut GstRTSPToken, ); - #[cfg(any(feature = "v1_12", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] pub fn gst_rtsp_auth_add_digest( auth: *mut GstRTSPAuth, user: *const c_char, @@ -1436,11 +1436,11 @@ extern "C" { token: *mut GstRTSPToken, ); 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] pub fn gst_rtsp_auth_get_supported_methods( auth: *mut GstRTSPAuth, ) -> gst_rtsp::GstRTSPAuthMethod; @@ -1449,23 +1449,23 @@ extern "C" { ) -> gio::GTlsAuthenticationMode; 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] pub fn gst_rtsp_auth_parse_htdigest( auth: *mut GstRTSPAuth, path: *const c_char, token: *mut GstRTSPToken, ) -> 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")))] + #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] pub fn gst_rtsp_auth_set_supported_methods( auth: *mut GstRTSPAuth, methods: gst_rtsp::GstRTSPAuthMethod, @@ -1494,13 +1494,13 @@ extern "C" { pub fn gst_rtsp_client_get_connection( client: *mut GstRTSPClient, ) -> *mut gst_rtsp::GstRTSPConnection; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] pub fn gst_rtsp_client_get_stream_transport( client: *mut GstRTSPClient, channel: u8, @@ -1525,8 +1525,8 @@ extern "C" { client: *mut GstRTSPClient, conn: *mut gst_rtsp::GstRTSPConnection, ) -> gboolean; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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, @@ -1538,8 +1538,8 @@ extern "C" { user_data: gpointer, notify: glib::GDestroyNotify, ); - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] pub fn gst_rtsp_client_set_send_messages_func( client: *mut GstRTSPClient, func: GstRTSPClientSendMessagesFunc, @@ -1561,8 +1561,8 @@ extern "C" { pub fn gst_rtsp_media_get_type() -> GType; 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")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] pub fn gst_rtsp_media_complete_pipeline( media: *mut GstRTSPMedia, transports: *mut glib::GPtrArray, @@ -1580,16 +1580,16 @@ extern "C" { pub fn gst_rtsp_media_get_base_time(media: *mut GstRTSPMedia) -> gst::GstClockTime; 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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; @@ -1603,11 +1603,11 @@ extern "C" { play: gboolean, unit: gst_rtsp::GstRTSPRangeUnit, ) -> *mut c_char; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] pub fn gst_rtsp_media_get_rates( media: *mut GstRTSPMedia, rate: *mut c_double, @@ -1627,22 +1627,22 @@ extern "C" { media: *mut GstRTSPMedia, sdp: *mut gst_sdp::GstSDPMessage, ) -> gboolean; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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) @@ -1651,15 +1651,15 @@ extern "C" { media: *mut GstRTSPMedia, range: *mut gst_rtsp::GstRTSPTimeRange, ) -> gboolean; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] pub fn gst_rtsp_media_seek_trickmode( media: *mut GstRTSPMedia, range: *mut gst_rtsp::GstRTSPTimeRange, @@ -1667,31 +1667,31 @@ extern "C" { rate: c_double, trickmode_interval: gst::GstClockTime, ) -> gboolean; - #[cfg(any(feature = "v1_14", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] pub fn gst_rtsp_media_set_bind_mcast_address( media: *mut GstRTSPMedia, bind_mcast_addr: gboolean, ); 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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, @@ -1714,8 +1714,8 @@ extern "C" { media: *mut GstRTSPMedia, mode: GstRTSPPublishClockMode, ); - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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, @@ -1741,8 +1741,8 @@ extern "C" { ) -> gboolean; 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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; @@ -1759,8 +1759,8 @@ extern "C" { fieldname: *const c_char, ... ); - #[cfg(any(feature = "v1_14", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] pub fn gst_rtsp_media_factory_add_role_from_structure( factory: *mut GstRTSPMediaFactory, structure: *mut gst::GstStructure, @@ -1780,18 +1780,18 @@ extern "C" { pub fn gst_rtsp_media_factory_get_clock( factory: *mut GstRTSPMediaFactory, ) -> *mut gst::GstClock; - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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( @@ -1818,8 +1818,8 @@ extern "C" { pub fn gst_rtsp_media_factory_get_transport_mode( factory: *mut GstRTSPMediaFactory, ) -> GstRTSPTransportMode; - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] pub fn gst_rtsp_media_factory_is_bind_mcast_address( factory: *mut GstRTSPMediaFactory, ) -> gboolean; @@ -1832,8 +1832,8 @@ extern "C" { factory: *mut GstRTSPMediaFactory, pool: *mut GstRTSPAddressPool, ); - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] pub fn gst_rtsp_media_factory_set_bind_mcast_address( factory: *mut GstRTSPMediaFactory, bind_mcast_addr: gboolean, @@ -1843,14 +1843,14 @@ extern "C" { factory: *mut GstRTSPMediaFactory, clock: *mut gst::GstClock, ); - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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, @@ -1861,8 +1861,8 @@ extern "C" { factory: *mut GstRTSPMediaFactory, launch: *const c_char, ); - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] pub fn gst_rtsp_media_factory_set_max_mcast_ttl( factory: *mut GstRTSPMediaFactory, ttl: c_uint, @@ -1947,27 +1947,27 @@ extern "C" { //========================================================================= // GstRTSPOnvifClient //========================================================================= - #[cfg(any(feature = "v1_14", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] pub fn gst_rtsp_onvif_media_set_backchannel_bandwidth( media: *mut GstRTSPOnvifMedia, bandwidth: c_uint, @@ -1976,52 +1976,52 @@ extern "C" { //========================================================================= // GstRTSPOnvifMediaFactory //========================================================================= - #[cfg(any(feature = "v1_14", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] pub fn gst_rtsp_onvif_media_factory_set_replay_support( factory: *mut GstRTSPOnvifMediaFactory, has_replay_support: gboolean, @@ -2030,11 +2030,11 @@ extern "C" { //========================================================================= // GstRTSPOnvifServer //========================================================================= - #[cfg(any(feature = "v1_14", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] pub fn gst_rtsp_onvif_server_new() -> *mut GstRTSPServer; //========================================================================= @@ -2070,8 +2070,8 @@ extern "C" { pub fn gst_rtsp_server_get_auth(server: *mut GstRTSPServer) -> *mut GstRTSPAuth; 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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; @@ -2080,8 +2080,8 @@ extern "C" { pub fn gst_rtsp_server_set_address(server: *mut GstRTSPServer, address: *const c_char); 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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, @@ -2170,8 +2170,8 @@ extern "C" { media: *mut GstRTSPSessionMedia, idx: c_uint, ) -> *mut GstRTSPStreamTransport; - #[cfg(any(feature = "v1_14", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] pub fn gst_rtsp_session_media_get_transports( media: *mut GstRTSPSessionMedia, ) -> *mut glib::GPtrArray; @@ -2228,8 +2228,8 @@ extern "C" { payloader: *mut gst::GstElement, pad: *mut gst::GstPad, ) -> *mut GstRTSPStream; - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] pub fn gst_rtsp_stream_add_multicast_client_address( stream: *mut GstRTSPStream, destination: *const c_char, @@ -2247,8 +2247,8 @@ extern "C" { transport: *mut gst_rtsp::GstRTSPTransport, use_client_settings: gboolean, ) -> gboolean; - #[cfg(any(feature = "v1_14", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] pub fn gst_rtsp_stream_complete_stream( stream: *mut GstRTSPStream, transport: *const gst_rtsp::GstRTSPTransport, @@ -2261,16 +2261,16 @@ extern "C" { pub fn gst_rtsp_stream_get_dscp_qos(stream: *mut GstRTSPStream) -> c_int; 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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( stream: *mut GstRTSPStream, family: gio::GSocketFamily, ) -> *mut GstRTSPAddress; - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] pub fn gst_rtsp_stream_get_multicast_client_addresses( stream: *mut GstRTSPStream, ) -> *mut c_char; @@ -2282,11 +2282,11 @@ extern "C" { pub fn gst_rtsp_stream_get_publish_clock_mode( stream: *mut GstRTSPStream, ) -> GstRTSPPublishClockMode; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] pub fn gst_rtsp_stream_get_rates( stream: *mut GstRTSPStream, rate: *mut c_double, @@ -2295,8 +2295,8 @@ extern "C" { pub fn gst_rtsp_stream_get_retransmission_pt(stream: *mut GstRTSPStream) -> c_uint; 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")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] pub fn gst_rtsp_stream_get_rtcp_multicast_socket( stream: *mut GstRTSPStream, family: gio::GSocketFamily, @@ -2331,14 +2331,14 @@ extern "C" { pub fn gst_rtsp_stream_get_srtp_encoder(stream: *mut GstRTSPStream) -> *mut gst::GstElement; 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] pub fn gst_rtsp_stream_handle_keymgmt( stream: *mut GstRTSPStream, keymgmt: *const c_char, @@ -2347,19 +2347,19 @@ extern "C" { stream: *mut GstRTSPStream, control: *const c_char, ) -> gboolean; - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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, @@ -2393,8 +2393,8 @@ extern "C" { stream: *mut GstRTSPStream, trans: *mut GstRTSPStreamTransport, ) -> gboolean; - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] pub fn gst_rtsp_stream_request_aux_receiver( stream: *mut GstRTSPStream, sessid: c_uint, @@ -2403,15 +2403,15 @@ extern "C" { stream: *mut GstRTSPStream, sessid: c_uint, ) -> *mut gst::GstElement; - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] pub fn gst_rtsp_stream_request_ulpfec_encoder( stream: *mut GstRTSPStream, sessid: c_uint, @@ -2423,15 +2423,15 @@ extern "C" { n_ports: c_uint, ttl: c_uint, ) -> *mut GstRTSPAddress; - #[cfg(any(feature = "v1_14", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] pub fn gst_rtsp_stream_set_bind_mcast_address( stream: *mut GstRTSPStream, bind_mcast_addr: gboolean, @@ -2441,8 +2441,8 @@ extern "C" { pub fn gst_rtsp_stream_set_client_side(stream: *mut GstRTSPStream, client_side: gboolean); 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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( @@ -2466,8 +2466,8 @@ extern "C" { stream: *mut GstRTSPStream, mode: GstRTSPPublishClockMode, ); - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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( @@ -2475,11 +2475,11 @@ extern "C" { time: gst::GstClockTime, ); 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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, @@ -2492,8 +2492,8 @@ extern "C" { ssrc: c_uint, crypto: *mut gst::GstCaps, ) -> gboolean; - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] pub fn gst_rtsp_stream_verify_mcast_ttl(stream: *mut GstRTSPStream, ttl: c_uint) -> gboolean; //========================================================================= @@ -2519,8 +2519,8 @@ extern "C" { ) -> *const gst_rtsp::GstRTSPUrl; 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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, @@ -2531,8 +2531,8 @@ extern "C" { trans: *mut GstRTSPStreamTransport, buffer: *mut gst::GstBuffer, ) -> gboolean; - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] pub fn gst_rtsp_stream_transport_send_rtcp_list( trans: *mut GstRTSPStreamTransport, buffer_list: *mut gst::GstBufferList, @@ -2541,8 +2541,8 @@ extern "C" { trans: *mut GstRTSPStreamTransport, buffer: *mut gst::GstBuffer, ) -> gboolean; - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] pub fn gst_rtsp_stream_transport_send_rtp_list( trans: *mut GstRTSPStreamTransport, buffer_list: *mut gst::GstBufferList, @@ -2564,8 +2564,8 @@ extern "C" { user_data: gpointer, notify: glib::GDestroyNotify, ); - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] pub fn gst_rtsp_stream_transport_set_list_callbacks( trans: *mut GstRTSPStreamTransport, send_rtp_list: GstRTSPSendListFunc, @@ -2579,8 +2579,8 @@ extern "C" { user_data: gpointer, notify: glib::GDestroyNotify, ); - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] pub fn gst_rtsp_stream_transport_set_message_sent_full( trans: *mut GstRTSPStreamTransport, message_sent: GstRTSPMessageSentFuncFull, @@ -2636,8 +2636,8 @@ extern "C" { info: *mut GstSDPInfo, stream: *mut GstRTSPStream, ) -> gboolean; - #[cfg(any(feature = "v1_14", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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 fcc1a4b76..be507a2a9 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 @ 694b4b8) -// from gir-files (https://github.com/gtk-rs/gir-files @ 58bda97d) +// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) +// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) // DO NOT EDIT use gstreamer_rtsp_server_sys::*; diff --git a/gstreamer-rtsp-server/sys/tests/constant.c b/gstreamer-rtsp-server/sys/tests/constant.c index 63be6f6a4..819aa4a30 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 @ 694b4b8) -// from gir-files (https://github.com/gtk-rs/gir-files @ 58bda97d) +// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) +// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) // 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 73f80e89d..ad8a5a3ff 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 @ 694b4b8) -// from gir-files (https://github.com/gtk-rs/gir-files @ 58bda97d) +// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) +// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-rtsp/src/auto/mod.rs b/gstreamer-rtsp/src/auto/mod.rs index 1cd2a46ae..8a3576e07 100644 --- a/gstreamer-rtsp/src/auto/mod.rs +++ b/gstreamer-rtsp/src/auto/mod.rs @@ -2,11 +2,11 @@ // from gir-files (https://github.com/gtk-rs/gir-files) // DO NOT EDIT -#[cfg(any(feature = "v1_12", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] +#[cfg(any(feature = "v1_12", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), 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")))] +#[cfg(any(feature = "v1_12", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), 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 a057b86a4..669756dce 100644 --- a/gstreamer-rtsp/src/auto/rtsp_auth_param.rs +++ b/gstreamer-rtsp/src/auto/rtsp_auth_param.rs @@ -2,8 +2,8 @@ // from gir-files (https://github.com/gtk-rs/gir-files) // DO NOT EDIT -#[cfg(any(feature = "v1_12", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] +#[cfg(any(feature = "v1_12", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] use glib::translate::*; glib::glib_wrapper! { diff --git a/gstreamer-rtsp/src/auto/rtsp_url.rs b/gstreamer-rtsp/src/auto/rtsp_url.rs index 88d529ec5..15cc26a7d 100644 --- a/gstreamer-rtsp/src/auto/rtsp_url.rs +++ b/gstreamer-rtsp/src/auto/rtsp_url.rs @@ -30,8 +30,8 @@ impl RTSPUrl { unsafe { from_glib_full(ffi::gst_rtsp_url_get_request_uri(self.to_glib_none().0)) } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] pub fn get_request_uri_with_control(&self, control_path: &str) -> Option { unsafe { from_glib_full(ffi::gst_rtsp_url_get_request_uri_with_control( diff --git a/gstreamer-rtsp/src/auto/versions.txt b/gstreamer-rtsp/src/auto/versions.txt index c6e571be8..94b4315ac 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 @ 694b4b8) -from gir-files (https://github.com/gtk-rs/gir-files @ b325ef85) +Generated by gir (https://github.com/gtk-rs/gir @ b16d610) +from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) diff --git a/gstreamer-rtsp/sys/Cargo.toml b/gstreamer-rtsp/sys/Cargo.toml index 90b47571d..1ea1c43ed 100644 --- a/gstreamer-rtsp/sys/Cargo.toml +++ b/gstreamer-rtsp/sys/Cargo.toml @@ -54,7 +54,7 @@ repository = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs" version = "0.17.0" edition = "2018" [package.metadata.docs.rs] -features = ["dox"] +features = [] [package.metadata.system-deps.gstreamer_rtsp_1_0] name = "gstreamer-rtsp-1.0" version = "1.8" diff --git a/gstreamer-rtsp/sys/build.rs b/gstreamer-rtsp/sys/build.rs index c69299ced..f3f73eb6b 100644 --- a/gstreamer-rtsp/sys/build.rs +++ b/gstreamer-rtsp/sys/build.rs @@ -1,14 +1,14 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 694b4b8) -// from gir-files (https://github.com/gtk-rs/gir-files @ 58bda97d) +// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) +// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) // DO NOT EDIT -#[cfg(not(feature = "dox"))] +#[cfg(any(not(doc), doctest))] use std::process; -#[cfg(feature = "dox")] +#[cfg(all(not(doctest), doc))] fn main() {} // prevent linking libraries to avoid documentation failure -#[cfg(not(feature = "dox"))] +#[cfg(any(not(doc), doctest))] fn main() { if let Err(s) = system_deps::Config::new().probe() { let _ = eprintln!("{}", s); diff --git a/gstreamer-rtsp/sys/src/lib.rs b/gstreamer-rtsp/sys/src/lib.rs index e14258050..1a54c1bda 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 @ 694b4b8) -// from gir-files (https://github.com/gtk-rs/gir-files @ 58bda97d) +// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) +// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) // DO NOT EDIT #![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)] @@ -8,7 +8,7 @@ clippy::type_complexity, clippy::unreadable_literal )] -#![cfg_attr(feature = "dox", feature(doc_cfg))] +#![cfg_attr(all(not(doctest), doc), feature(doc_cfg))] use gio_sys as gio; use glib_sys as glib; @@ -791,21 +791,21 @@ extern "C" { //========================================================================= // GstRTSPAuthCredential //========================================================================= - #[cfg(any(feature = "v1_12", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] pub fn gst_rtsp_auth_param_free(param: *mut GstRTSPAuthParam); //========================================================================= @@ -817,8 +817,8 @@ extern "C" { conn: *mut GstRTSPConnection, timeout: *mut glib::GTimeVal, ) -> GstRTSPResult; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] pub fn gst_rtsp_connection_connect_usec( conn: *mut GstRTSPConnection, timeout: i64, @@ -828,8 +828,8 @@ extern "C" { timeout: *mut glib::GTimeVal, response: *mut GstRTSPMessage, ) -> GstRTSPResult; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] pub fn gst_rtsp_connection_connect_with_response_usec( conn: *mut GstRTSPConnection, timeout: i64, @@ -871,8 +871,8 @@ extern "C" { conn: *mut GstRTSPConnection, timeout: *mut glib::GTimeVal, ) -> GstRTSPResult; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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, @@ -880,8 +880,8 @@ extern "C" { revents: *mut GstRTSPEvent, timeout: *mut glib::GTimeVal, ) -> GstRTSPResult; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] pub fn gst_rtsp_connection_poll_usec( conn: *mut GstRTSPConnection, events: GstRTSPEvent, @@ -894,8 +894,8 @@ extern "C" { size: c_uint, timeout: *mut glib::GTimeVal, ) -> GstRTSPResult; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] pub fn gst_rtsp_connection_read_usec( conn: *mut GstRTSPConnection, data: *mut u8, @@ -907,8 +907,8 @@ extern "C" { message: *mut GstRTSPMessage, timeout: *mut glib::GTimeVal, ) -> GstRTSPResult; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] pub fn gst_rtsp_connection_receive_usec( conn: *mut GstRTSPConnection, message: *mut GstRTSPMessage, @@ -920,31 +920,31 @@ extern "C" { message: *mut GstRTSPMessage, timeout: *mut glib::GTimeVal, ) -> GstRTSPResult; - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] pub fn gst_rtsp_connection_send_messages( conn: *mut GstRTSPConnection, messages: *mut GstRTSPMessage, n_messages: c_uint, timeout: *mut glib::GTimeVal, ) -> GstRTSPResult; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] pub fn gst_rtsp_connection_send_messages_usec( conn: *mut GstRTSPConnection, messages: *mut GstRTSPMessage, n_messages: c_uint, timeout: i64, ) -> GstRTSPResult; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] pub fn gst_rtsp_connection_set_accept_certificate_func( conn: *mut GstRTSPConnection, func: GstRTSPConnectionAcceptCertificateFunc, @@ -962,8 +962,8 @@ extern "C" { param: *const c_char, value: *const c_char, ); - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] pub fn gst_rtsp_connection_set_content_length_limit( conn: *mut GstRTSPConnection, limit: c_uint, @@ -1002,8 +1002,8 @@ extern "C" { size: c_uint, timeout: *mut glib::GTimeVal, ) -> GstRTSPResult; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] pub fn gst_rtsp_connection_write_usec( conn: *mut GstRTSPConnection, data: *const u8, @@ -1030,8 +1030,8 @@ extern "C" { //========================================================================= // GstRTSPMessage //========================================================================= - #[cfg(any(feature = "v1_14", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] pub fn gst_rtsp_msg_get_type() -> GType; pub fn gst_rtsp_message_add_header( msg: *mut GstRTSPMessage, @@ -1047,8 +1047,8 @@ extern "C" { msg: *const GstRTSPMessage, str: *mut glib::GString, ) -> GstRTSPResult; - #[cfg(any(feature = "v1_14", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] pub fn gst_rtsp_message_copy( msg: *const GstRTSPMessage, copy: *mut *mut GstRTSPMessage, @@ -1060,8 +1060,8 @@ extern "C" { data: *mut *mut u8, size: *mut c_uint, ) -> GstRTSPResult; - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] pub fn gst_rtsp_message_get_body_buffer( msg: *const GstRTSPMessage, buffer: *mut *mut gst::GstBuffer, @@ -1078,11 +1078,11 @@ extern "C" { value: *mut *mut c_char, index: c_int, ) -> GstRTSPResult; - #[cfg(any(feature = "v1_14", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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; @@ -1097,8 +1097,8 @@ extern "C" { reason: *const c_char, request: *const GstRTSPMessage, ) -> GstRTSPResult; - #[cfg(any(feature = "v1_12", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] pub fn gst_rtsp_message_parse_auth_credentials( msg: *mut GstRTSPMessage, field: GstRTSPHeaderField, @@ -1132,8 +1132,8 @@ extern "C" { data: *const u8, size: c_uint, ) -> GstRTSPResult; - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] pub fn gst_rtsp_message_set_body_buffer( msg: *mut GstRTSPMessage, buffer: *mut gst::GstBuffer, @@ -1143,8 +1143,8 @@ extern "C" { data: *mut *mut u8, size: *mut c_uint, ) -> GstRTSPResult; - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] pub fn gst_rtsp_message_steal_body_buffer( msg: *mut GstRTSPMessage, buffer: *mut *mut gst::GstBuffer, @@ -1154,8 +1154,8 @@ extern "C" { data: *mut u8, size: c_uint, ) -> GstRTSPResult; - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] pub fn gst_rtsp_message_take_body_buffer( msg: *mut GstRTSPMessage, buffer: *mut gst::GstBuffer, @@ -1225,8 +1225,8 @@ extern "C" { pub fn gst_rtsp_url_free(url: *mut GstRTSPUrl); 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] pub fn gst_rtsp_url_get_request_uri_with_control( url: *const GstRTSPUrl, control_path: *const c_char, @@ -1252,8 +1252,8 @@ extern "C" { message: *mut GstRTSPMessage, id: *mut c_uint, ) -> GstRTSPResult; - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] pub fn gst_rtsp_watch_send_messages( watch: *mut GstRTSPWatch, messages: *mut GstRTSPMessage, @@ -1271,8 +1271,8 @@ extern "C" { watch: *mut GstRTSPWatch, timeout: *mut glib::GTimeVal, ) -> GstRTSPResult; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] pub fn gst_rtsp_watch_wait_backlog_usec( watch: *mut GstRTSPWatch, timeout: i64, @@ -1342,13 +1342,13 @@ extern "C" { //========================================================================= // Other functions //========================================================================= - #[cfg(any(feature = "v1_12", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] pub fn gst_rtsp_generate_digest_auth_response( algorithm: *const c_char, method: *const c_char, @@ -1358,8 +1358,8 @@ extern "C" { uri: *const c_char, nonce: *const c_char, ) -> *mut c_char; - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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 9db517bea..cedbb5bb0 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 @ 694b4b8) -// from gir-files (https://github.com/gtk-rs/gir-files @ 58bda97d) +// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) +// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) // DO NOT EDIT use gstreamer_rtsp_sys::*; diff --git a/gstreamer-rtsp/sys/tests/constant.c b/gstreamer-rtsp/sys/tests/constant.c index 63be6f6a4..819aa4a30 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 @ 694b4b8) -// from gir-files (https://github.com/gtk-rs/gir-files @ 58bda97d) +// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) +// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-rtsp/sys/tests/layout.c b/gstreamer-rtsp/sys/tests/layout.c index 73f80e89d..ad8a5a3ff 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 @ 694b4b8) -// from gir-files (https://github.com/gtk-rs/gir-files @ 58bda97d) +// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) +// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-sdp/src/auto/versions.txt b/gstreamer-sdp/src/auto/versions.txt index 1f7b60f32..94b4315ac 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 @ 694b4b8) -from gir-files (https://github.com/gtk-rs/gir-files @ 776e183c) +Generated by gir (https://github.com/gtk-rs/gir @ b16d610) +from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) diff --git a/gstreamer-sdp/sys/Cargo.toml b/gstreamer-sdp/sys/Cargo.toml index 556fae8e5..12e8252c1 100644 --- a/gstreamer-sdp/sys/Cargo.toml +++ b/gstreamer-sdp/sys/Cargo.toml @@ -45,7 +45,7 @@ repository = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs" version = "0.17.0" edition = "2018" [package.metadata.docs.rs] -features = ["dox"] +features = [] [package.metadata.system-deps.gstreamer_sdp_1_0] name = "gstreamer-sdp-1.0" version = "1.8" diff --git a/gstreamer-sdp/sys/build.rs b/gstreamer-sdp/sys/build.rs index c69299ced..f3f73eb6b 100644 --- a/gstreamer-sdp/sys/build.rs +++ b/gstreamer-sdp/sys/build.rs @@ -1,14 +1,14 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 694b4b8) -// from gir-files (https://github.com/gtk-rs/gir-files @ 58bda97d) +// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) +// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) // DO NOT EDIT -#[cfg(not(feature = "dox"))] +#[cfg(any(not(doc), doctest))] use std::process; -#[cfg(feature = "dox")] +#[cfg(all(not(doctest), doc))] fn main() {} // prevent linking libraries to avoid documentation failure -#[cfg(not(feature = "dox"))] +#[cfg(any(not(doc), doctest))] fn main() { if let Err(s) = system_deps::Config::new().probe() { let _ = eprintln!("{}", s); diff --git a/gstreamer-sdp/sys/src/lib.rs b/gstreamer-sdp/sys/src/lib.rs index cb89f0d2d..8566dd1d9 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 @ 694b4b8) -// from gir-files (https://github.com/gtk-rs/gir-files @ 8865faed) +// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) +// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) // DO NOT EDIT #![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)] @@ -8,7 +8,7 @@ clippy::type_complexity, clippy::unreadable_literal )] -#![cfg_attr(feature = "dox", feature(doc_cfg))] +#![cfg_attr(all(not(doctest), doc), feature(doc_cfg))] use glib_sys as glib; use gstreamer_sys as gst; @@ -636,8 +636,8 @@ extern "C" { info: *mut GstMIKEYEncryptInfo, 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")))] + #[cfg(any(feature = "v1_8_1", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_8_1")))] pub fn gst_mikey_message_to_caps( msg: *const GstMIKEYMessage, caps: *mut gst::GstCaps, @@ -849,8 +849,8 @@ extern "C" { idx: c_int, format: *const c_char, ) -> GstSDPResult; - #[cfg(any(feature = "v1_8_1", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_8_1")))] + #[cfg(any(feature = "v1_8_1", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_8_1")))] pub fn gst_sdp_media_parse_keymgmt( media: *const GstSDPMedia, mikey: *mut *mut GstMIKEYMessage, @@ -1010,8 +1010,8 @@ extern "C" { zone: *mut GstSDPZone, ) -> 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")))] + #[cfg(any(feature = "v1_8_1", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_8_1")))] pub fn gst_sdp_message_parse_keymgmt( msg: *const GstSDPMessage, mikey: *mut *mut GstMIKEYMessage, @@ -1093,8 +1093,8 @@ extern "C" { pub fn gst_sdp_message_zones_len(msg: *const GstSDPMessage) -> c_uint; 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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 d49dab231..7cf1a66c1 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 @ 694b4b8) -// from gir-files (https://github.com/gtk-rs/gir-files @ 58bda97d) +// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) +// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) // DO NOT EDIT use gstreamer_sdp_sys::*; diff --git a/gstreamer-sdp/sys/tests/constant.c b/gstreamer-sdp/sys/tests/constant.c index 63be6f6a4..819aa4a30 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 @ 694b4b8) -// from gir-files (https://github.com/gtk-rs/gir-files @ 58bda97d) +// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) +// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-sdp/sys/tests/layout.c b/gstreamer-sdp/sys/tests/layout.c index 73f80e89d..ad8a5a3ff 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 @ 694b4b8) -// from gir-files (https://github.com/gtk-rs/gir-files @ 58bda97d) +// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) +// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-tag/sys/Cargo.toml b/gstreamer-tag/sys/Cargo.toml index 99c053bfb..183716ef0 100644 --- a/gstreamer-tag/sys/Cargo.toml +++ b/gstreamer-tag/sys/Cargo.toml @@ -50,7 +50,7 @@ repository = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs" version = "0.17.0" edition = "2018" [package.metadata.docs.rs] -features = ["dox"] +features = [] [package.metadata.system-deps.gstreamer_tag_1_0] name = "gstreamer-tag-1.0" version = "1.8" diff --git a/gstreamer-tag/sys/build.rs b/gstreamer-tag/sys/build.rs index c69299ced..f3f73eb6b 100644 --- a/gstreamer-tag/sys/build.rs +++ b/gstreamer-tag/sys/build.rs @@ -1,14 +1,14 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 694b4b8) -// from gir-files (https://github.com/gtk-rs/gir-files @ 58bda97d) +// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) +// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) // DO NOT EDIT -#[cfg(not(feature = "dox"))] +#[cfg(any(not(doc), doctest))] use std::process; -#[cfg(feature = "dox")] +#[cfg(all(not(doctest), doc))] fn main() {} // prevent linking libraries to avoid documentation failure -#[cfg(not(feature = "dox"))] +#[cfg(any(not(doc), doctest))] fn main() { if let Err(s) = system_deps::Config::new().probe() { let _ = eprintln!("{}", s); diff --git a/gstreamer-tag/sys/src/lib.rs b/gstreamer-tag/sys/src/lib.rs index 4bf55cc39..e9134072c 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 @ 694b4b8) -// from gir-files (https://github.com/gtk-rs/gir-files @ 58bda97d) +// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) +// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) // DO NOT EDIT #![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)] @@ -8,7 +8,7 @@ clippy::type_complexity, clippy::unreadable_literal )] -#![cfg_attr(feature = "dox", feature(doc_cfg))] +#![cfg_attr(all(not(doctest), doc), feature(doc_cfg))] use glib_sys as glib; use gobject_sys as gobject; diff --git a/gstreamer-tag/sys/tests/abi.rs b/gstreamer-tag/sys/tests/abi.rs index 2b9661592..3487297e8 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 @ 694b4b8) -// from gir-files (https://github.com/gtk-rs/gir-files @ 58bda97d) +// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) +// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) // DO NOT EDIT use gstreamer_tag_sys::*; diff --git a/gstreamer-tag/sys/tests/constant.c b/gstreamer-tag/sys/tests/constant.c index 63be6f6a4..819aa4a30 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 @ 694b4b8) -// from gir-files (https://github.com/gtk-rs/gir-files @ 58bda97d) +// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) +// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-tag/sys/tests/layout.c b/gstreamer-tag/sys/tests/layout.c index 73f80e89d..ad8a5a3ff 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 @ 694b4b8) -// from gir-files (https://github.com/gtk-rs/gir-files @ 58bda97d) +// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) +// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-video/src/auto/enums.rs b/gstreamer-video/src/auto/enums.rs index acd184914..26719d09f 100644 --- a/gstreamer-video/src/auto/enums.rs +++ b/gstreamer-video/src/auto/enums.rs @@ -10,8 +10,8 @@ use glib::value::Value; use glib::StaticType; use glib::Type; -#[cfg(any(feature = "v1_18", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] +#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] pub enum VideoAFDSpec { @@ -22,8 +22,8 @@ pub enum VideoAFDSpec { __Unknown(i32), } -#[cfg(any(feature = "v1_18", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] +#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] #[doc(hidden)] impl ToGlib for VideoAFDSpec { type GlibType = ffi::GstVideoAFDSpec; @@ -38,8 +38,8 @@ impl ToGlib for VideoAFDSpec { } } -#[cfg(any(feature = "v1_18", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] +#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] #[doc(hidden)] impl FromGlib for VideoAFDSpec { fn from_glib(value: ffi::GstVideoAFDSpec) -> Self { @@ -53,40 +53,40 @@ impl FromGlib for VideoAFDSpec { } } -#[cfg(any(feature = "v1_18", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] +#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] impl StaticType for VideoAFDSpec { fn static_type() -> Type { unsafe { from_glib(ffi::gst_video_afd_spec_get_type()) } } } -#[cfg(any(feature = "v1_18", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] +#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] impl<'a> FromValueOptional<'a> for VideoAFDSpec { unsafe fn from_value_optional(value: &Value) -> Option { Some(FromValue::from_value(value)) } } -#[cfg(any(feature = "v1_18", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] +#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] impl<'a> FromValue<'a> for VideoAFDSpec { unsafe fn from_value(value: &Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0)) } } -#[cfg(any(feature = "v1_18", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] +#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] impl SetValue for VideoAFDSpec { unsafe fn set_value(value: &mut Value, this: &Self) { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib()) } } -#[cfg(any(feature = "v1_18", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] +#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] pub enum VideoAFDValue { @@ -105,8 +105,8 @@ pub enum VideoAFDValue { __Unknown(i32), } -#[cfg(any(feature = "v1_18", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] +#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] #[doc(hidden)] impl ToGlib for VideoAFDValue { type GlibType = ffi::GstVideoAFDValue; @@ -129,8 +129,8 @@ impl ToGlib for VideoAFDValue { } } -#[cfg(any(feature = "v1_18", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] +#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] #[doc(hidden)] impl FromGlib for VideoAFDValue { fn from_glib(value: ffi::GstVideoAFDValue) -> Self { @@ -152,32 +152,32 @@ impl FromGlib for VideoAFDValue { } } -#[cfg(any(feature = "v1_18", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] +#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] impl StaticType for VideoAFDValue { fn static_type() -> Type { unsafe { from_glib(ffi::gst_video_afd_value_get_type()) } } } -#[cfg(any(feature = "v1_18", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] +#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] impl<'a> FromValueOptional<'a> for VideoAFDValue { unsafe fn from_value_optional(value: &Value) -> Option { Some(FromValue::from_value(value)) } } -#[cfg(any(feature = "v1_18", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] +#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] impl<'a> FromValue<'a> for VideoAFDValue { unsafe fn from_value(value: &Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0)) } } -#[cfg(any(feature = "v1_18", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] +#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] impl SetValue for VideoAFDValue { unsafe fn set_value(value: &mut Value, this: &Self) { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib()) @@ -245,8 +245,8 @@ impl SetValue for VideoAlphaMode { } } -#[cfg(any(feature = "v1_16", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] +#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] pub enum VideoCaptionType { @@ -259,8 +259,8 @@ pub enum VideoCaptionType { __Unknown(i32), } -#[cfg(any(feature = "v1_16", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] +#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] #[doc(hidden)] impl ToGlib for VideoCaptionType { type GlibType = ffi::GstVideoCaptionType; @@ -277,8 +277,8 @@ impl ToGlib for VideoCaptionType { } } -#[cfg(any(feature = "v1_16", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] +#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] #[doc(hidden)] impl FromGlib for VideoCaptionType { fn from_glib(value: ffi::GstVideoCaptionType) -> Self { @@ -294,32 +294,32 @@ impl FromGlib for VideoCaptionType { } } -#[cfg(any(feature = "v1_16", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] +#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] impl StaticType for VideoCaptionType { fn static_type() -> Type { unsafe { from_glib(ffi::gst_video_caption_type_get_type()) } } } -#[cfg(any(feature = "v1_16", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] +#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] impl<'a> FromValueOptional<'a> for VideoCaptionType { unsafe fn from_value_optional(value: &Value) -> Option { Some(FromValue::from_value(value)) } } -#[cfg(any(feature = "v1_16", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] +#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] impl<'a> FromValue<'a> for VideoCaptionType { unsafe fn from_value(value: &Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0)) } } -#[cfg(any(feature = "v1_16", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] +#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] impl SetValue for VideoCaptionType { unsafe fn set_value(value: &mut Value, this: &Self) { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib()) @@ -475,17 +475,17 @@ pub enum VideoColorPrimaries { Film, Bt2020, Adobergb, - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] Smptest428, - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] Smpterp431, - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] Smpteeg432, - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] Ebu3213, #[doc(hidden)] __Unknown(i32), @@ -506,13 +506,13 @@ impl ToGlib for VideoColorPrimaries { VideoColorPrimaries::Film => ffi::GST_VIDEO_COLOR_PRIMARIES_FILM, VideoColorPrimaries::Bt2020 => ffi::GST_VIDEO_COLOR_PRIMARIES_BT2020, VideoColorPrimaries::Adobergb => ffi::GST_VIDEO_COLOR_PRIMARIES_ADOBERGB, - #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] VideoColorPrimaries::Smptest428 => ffi::GST_VIDEO_COLOR_PRIMARIES_SMPTEST428, - #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] VideoColorPrimaries::Smpterp431 => ffi::GST_VIDEO_COLOR_PRIMARIES_SMPTERP431, - #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] VideoColorPrimaries::Smpteeg432 => ffi::GST_VIDEO_COLOR_PRIMARIES_SMPTEEG432, - #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] VideoColorPrimaries::Ebu3213 => ffi::GST_VIDEO_COLOR_PRIMARIES_EBU3213, VideoColorPrimaries::__Unknown(value) => value, } @@ -533,13 +533,13 @@ impl FromGlib for VideoColorPrimaries { 6 => VideoColorPrimaries::Film, 7 => VideoColorPrimaries::Bt2020, 8 => VideoColorPrimaries::Adobergb, - #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] 9 => VideoColorPrimaries::Smptest428, - #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] 10 => VideoColorPrimaries::Smpterp431, - #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] 11 => VideoColorPrimaries::Smpteeg432, - #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] 12 => VideoColorPrimaries::Ebu3213, value => VideoColorPrimaries::__Unknown(value), } @@ -637,8 +637,8 @@ impl SetValue for VideoDitherMethod { } } -#[cfg(any(feature = "v1_12", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] +#[cfg(any(feature = "v1_12", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] pub enum VideoFieldOrder { @@ -649,8 +649,8 @@ pub enum VideoFieldOrder { __Unknown(i32), } -#[cfg(any(feature = "v1_12", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] +#[cfg(any(feature = "v1_12", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] #[doc(hidden)] impl ToGlib for VideoFieldOrder { type GlibType = ffi::GstVideoFieldOrder; @@ -665,8 +665,8 @@ impl ToGlib for VideoFieldOrder { } } -#[cfg(any(feature = "v1_12", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] +#[cfg(any(feature = "v1_12", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] #[doc(hidden)] impl FromGlib for VideoFieldOrder { fn from_glib(value: ffi::GstVideoFieldOrder) -> Self { @@ -680,32 +680,32 @@ impl FromGlib for VideoFieldOrder { } } -#[cfg(any(feature = "v1_12", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] +#[cfg(any(feature = "v1_12", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] impl StaticType for VideoFieldOrder { fn static_type() -> Type { unsafe { from_glib(ffi::gst_video_field_order_get_type()) } } } -#[cfg(any(feature = "v1_12", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] +#[cfg(any(feature = "v1_12", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] impl<'a> FromValueOptional<'a> for VideoFieldOrder { unsafe fn from_value_optional(value: &Value) -> Option { Some(FromValue::from_value(value)) } } -#[cfg(any(feature = "v1_12", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] +#[cfg(any(feature = "v1_12", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] impl<'a> FromValue<'a> for VideoFieldOrder { unsafe fn from_value(value: &Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0)) } } -#[cfg(any(feature = "v1_12", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] +#[cfg(any(feature = "v1_12", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] impl SetValue for VideoFieldOrder { unsafe fn set_value(value: &mut Value, this: &Self) { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib()) @@ -776,119 +776,119 @@ pub enum VideoFormat { A44410be, A44410le, Nv61, - #[cfg(any(feature = "v1_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] P01010be, - #[cfg(any(feature = "v1_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] P01010le, - #[cfg(any(feature = "v1_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] Iyu2, - #[cfg(any(feature = "v1_12", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] Vyuy, - #[cfg(any(feature = "v1_12", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] Gbra, - #[cfg(any(feature = "v1_12", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] Gbra10be, - #[cfg(any(feature = "v1_12", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] Gbra10le, - #[cfg(any(feature = "v1_12", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] Gbr12be, - #[cfg(any(feature = "v1_12", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] Gbr12le, - #[cfg(any(feature = "v1_12", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] Gbra12be, - #[cfg(any(feature = "v1_12", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] Gbra12le, - #[cfg(any(feature = "v1_12", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] I42012be, - #[cfg(any(feature = "v1_12", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] I42012le, - #[cfg(any(feature = "v1_12", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] I42212be, - #[cfg(any(feature = "v1_12", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] I42212le, - #[cfg(any(feature = "v1_12", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] Y44412be, - #[cfg(any(feature = "v1_12", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] Y44412le, - #[cfg(any(feature = "v1_14", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] Gray10Le32, - #[cfg(any(feature = "v1_14", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] Nv1210le32, - #[cfg(any(feature = "v1_14", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] Nv1610le32, - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] Nv1210le40, - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] Y210, - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] Y410, - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] Vuya, - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] Bgr10a2Le, - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] Rgb10a2Le, - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] Y44416be, - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] Y44416le, - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] P016Be, - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] P016Le, - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] P012Be, - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] P012Le, - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] Y212Be, - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] Y212Le, - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] Y412Be, - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] Y412Le, - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] Nv124l4, - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] Nv1232l32, #[doc(hidden)] __Unknown(i32), @@ -961,81 +961,81 @@ impl ToGlib for VideoFormat { VideoFormat::A44410be => ffi::GST_VIDEO_FORMAT_A444_10BE, VideoFormat::A44410le => ffi::GST_VIDEO_FORMAT_A444_10LE, VideoFormat::Nv61 => ffi::GST_VIDEO_FORMAT_NV61, - #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] VideoFormat::P01010be => ffi::GST_VIDEO_FORMAT_P010_10BE, - #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] VideoFormat::P01010le => ffi::GST_VIDEO_FORMAT_P010_10LE, - #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] VideoFormat::Iyu2 => ffi::GST_VIDEO_FORMAT_IYU2, - #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] VideoFormat::Vyuy => ffi::GST_VIDEO_FORMAT_VYUY, - #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] VideoFormat::Gbra => ffi::GST_VIDEO_FORMAT_GBRA, - #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] VideoFormat::Gbra10be => ffi::GST_VIDEO_FORMAT_GBRA_10BE, - #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] VideoFormat::Gbra10le => ffi::GST_VIDEO_FORMAT_GBRA_10LE, - #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] VideoFormat::Gbr12be => ffi::GST_VIDEO_FORMAT_GBR_12BE, - #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] VideoFormat::Gbr12le => ffi::GST_VIDEO_FORMAT_GBR_12LE, - #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] VideoFormat::Gbra12be => ffi::GST_VIDEO_FORMAT_GBRA_12BE, - #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] VideoFormat::Gbra12le => ffi::GST_VIDEO_FORMAT_GBRA_12LE, - #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] VideoFormat::I42012be => ffi::GST_VIDEO_FORMAT_I420_12BE, - #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] VideoFormat::I42012le => ffi::GST_VIDEO_FORMAT_I420_12LE, - #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] VideoFormat::I42212be => ffi::GST_VIDEO_FORMAT_I422_12BE, - #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] VideoFormat::I42212le => ffi::GST_VIDEO_FORMAT_I422_12LE, - #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] VideoFormat::Y44412be => ffi::GST_VIDEO_FORMAT_Y444_12BE, - #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] VideoFormat::Y44412le => ffi::GST_VIDEO_FORMAT_Y444_12LE, - #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] VideoFormat::Gray10Le32 => ffi::GST_VIDEO_FORMAT_GRAY10_LE32, - #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] VideoFormat::Nv1210le32 => ffi::GST_VIDEO_FORMAT_NV12_10LE32, - #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] VideoFormat::Nv1610le32 => ffi::GST_VIDEO_FORMAT_NV16_10LE32, - #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] VideoFormat::Nv1210le40 => ffi::GST_VIDEO_FORMAT_NV12_10LE40, - #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] VideoFormat::Y210 => ffi::GST_VIDEO_FORMAT_Y210, - #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] VideoFormat::Y410 => ffi::GST_VIDEO_FORMAT_Y410, - #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] VideoFormat::Vuya => ffi::GST_VIDEO_FORMAT_VUYA, - #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] VideoFormat::Bgr10a2Le => ffi::GST_VIDEO_FORMAT_BGR10A2_LE, - #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] VideoFormat::Rgb10a2Le => ffi::GST_VIDEO_FORMAT_RGB10A2_LE, - #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] VideoFormat::Y44416be => ffi::GST_VIDEO_FORMAT_Y444_16BE, - #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] VideoFormat::Y44416le => ffi::GST_VIDEO_FORMAT_Y444_16LE, - #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] VideoFormat::P016Be => ffi::GST_VIDEO_FORMAT_P016_BE, - #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] VideoFormat::P016Le => ffi::GST_VIDEO_FORMAT_P016_LE, - #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] VideoFormat::P012Be => ffi::GST_VIDEO_FORMAT_P012_BE, - #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] VideoFormat::P012Le => ffi::GST_VIDEO_FORMAT_P012_LE, - #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] VideoFormat::Y212Be => ffi::GST_VIDEO_FORMAT_Y212_BE, - #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] VideoFormat::Y212Le => ffi::GST_VIDEO_FORMAT_Y212_LE, - #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] VideoFormat::Y412Be => ffi::GST_VIDEO_FORMAT_Y412_BE, - #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] VideoFormat::Y412Le => ffi::GST_VIDEO_FORMAT_Y412_LE, - #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] VideoFormat::Nv124l4 => ffi::GST_VIDEO_FORMAT_NV12_4L4, - #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] VideoFormat::Nv1232l32 => ffi::GST_VIDEO_FORMAT_NV12_32L32, VideoFormat::__Unknown(value) => value, } @@ -1108,81 +1108,81 @@ impl FromGlib for VideoFormat { 58 => VideoFormat::A44410be, 59 => VideoFormat::A44410le, 60 => VideoFormat::Nv61, - #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] 61 => VideoFormat::P01010be, - #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] 62 => VideoFormat::P01010le, - #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] 63 => VideoFormat::Iyu2, - #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] 64 => VideoFormat::Vyuy, - #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] 65 => VideoFormat::Gbra, - #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] 66 => VideoFormat::Gbra10be, - #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] 67 => VideoFormat::Gbra10le, - #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] 68 => VideoFormat::Gbr12be, - #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] 69 => VideoFormat::Gbr12le, - #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] 70 => VideoFormat::Gbra12be, - #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] 71 => VideoFormat::Gbra12le, - #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] 72 => VideoFormat::I42012be, - #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] 73 => VideoFormat::I42012le, - #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] 74 => VideoFormat::I42212be, - #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] 75 => VideoFormat::I42212le, - #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] 76 => VideoFormat::Y44412be, - #[cfg(any(feature = "v1_12", feature = "dox"))] + #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] 77 => VideoFormat::Y44412le, - #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] 78 => VideoFormat::Gray10Le32, - #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] 79 => VideoFormat::Nv1210le32, - #[cfg(any(feature = "v1_14", feature = "dox"))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] 80 => VideoFormat::Nv1610le32, - #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] 81 => VideoFormat::Nv1210le40, - #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] 82 => VideoFormat::Y210, - #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] 83 => VideoFormat::Y410, - #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] 84 => VideoFormat::Vuya, - #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] 85 => VideoFormat::Bgr10a2Le, - #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] 86 => VideoFormat::Rgb10a2Le, - #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] 87 => VideoFormat::Y44416be, - #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] 88 => VideoFormat::Y44416le, - #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] 89 => VideoFormat::P016Be, - #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] 90 => VideoFormat::P016Le, - #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] 91 => VideoFormat::P012Be, - #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] 92 => VideoFormat::P012Le, - #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] 93 => VideoFormat::Y212Be, - #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] 94 => VideoFormat::Y212Le, - #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] 95 => VideoFormat::Y412Be, - #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] 96 => VideoFormat::Y412Le, - #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] 97 => VideoFormat::Nv124l4, - #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] 98 => VideoFormat::Nv1232l32, value => VideoFormat::__Unknown(value), } @@ -1278,8 +1278,8 @@ pub enum VideoInterlaceMode { Interleaved, Mixed, Fields, - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] Alternate, #[doc(hidden)] __Unknown(i32), @@ -1295,7 +1295,7 @@ impl ToGlib for VideoInterlaceMode { VideoInterlaceMode::Interleaved => ffi::GST_VIDEO_INTERLACE_MODE_INTERLEAVED, VideoInterlaceMode::Mixed => ffi::GST_VIDEO_INTERLACE_MODE_MIXED, VideoInterlaceMode::Fields => ffi::GST_VIDEO_INTERLACE_MODE_FIELDS, - #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] VideoInterlaceMode::Alternate => ffi::GST_VIDEO_INTERLACE_MODE_ALTERNATE, VideoInterlaceMode::__Unknown(value) => value, } @@ -1311,7 +1311,7 @@ impl FromGlib for VideoInterlaceMode { 1 => VideoInterlaceMode::Interleaved, 2 => VideoInterlaceMode::Mixed, 3 => VideoInterlaceMode::Fields, - #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] 4 => VideoInterlaceMode::Alternate, value => VideoInterlaceMode::__Unknown(value), } @@ -1730,8 +1730,8 @@ impl SetValue for VideoResamplerMethod { pub enum VideoTileMode { Unknown, Zflipz2x2, - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] Linear, #[doc(hidden)] __Unknown(i32), @@ -1745,7 +1745,7 @@ impl ToGlib for VideoTileMode { match *self { VideoTileMode::Unknown => ffi::GST_VIDEO_TILE_MODE_UNKNOWN, VideoTileMode::Zflipz2x2 => ffi::GST_VIDEO_TILE_MODE_ZFLIPZ_2X2, - #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] VideoTileMode::Linear => ffi::GST_VIDEO_TILE_MODE_LINEAR, VideoTileMode::__Unknown(value) => value, } @@ -1759,7 +1759,7 @@ impl FromGlib for VideoTileMode { match value { 0 => VideoTileMode::Unknown, 65536 => VideoTileMode::Zflipz2x2, - #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] 131072 => VideoTileMode::Linear, value => VideoTileMode::__Unknown(value), } @@ -1806,17 +1806,17 @@ pub enum VideoTransferFunction { Log316, Bt202012, Adobergb, - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] Bt202010, - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] Smpte2084, - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] AribStdB67, - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] Bt601, #[doc(hidden)] __Unknown(i32), @@ -1841,13 +1841,13 @@ impl ToGlib for VideoTransferFunction { VideoTransferFunction::Log316 => ffi::GST_VIDEO_TRANSFER_LOG316, VideoTransferFunction::Bt202012 => ffi::GST_VIDEO_TRANSFER_BT2020_12, VideoTransferFunction::Adobergb => ffi::GST_VIDEO_TRANSFER_ADOBERGB, - #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] VideoTransferFunction::Bt202010 => ffi::GST_VIDEO_TRANSFER_BT2020_10, - #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] VideoTransferFunction::Smpte2084 => ffi::GST_VIDEO_TRANSFER_SMPTE2084, - #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] VideoTransferFunction::AribStdB67 => ffi::GST_VIDEO_TRANSFER_ARIB_STD_B67, - #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] VideoTransferFunction::Bt601 => ffi::GST_VIDEO_TRANSFER_BT601, VideoTransferFunction::__Unknown(value) => value, } @@ -1872,13 +1872,13 @@ impl FromGlib for VideoTransferFunction { 10 => VideoTransferFunction::Log316, 11 => VideoTransferFunction::Bt202012, 12 => VideoTransferFunction::Adobergb, - #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] 13 => VideoTransferFunction::Bt202010, - #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] 14 => VideoTransferFunction::Smpte2084, - #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] 15 => VideoTransferFunction::AribStdB67, - #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] 16 => VideoTransferFunction::Bt601, value => VideoTransferFunction::__Unknown(value), } diff --git a/gstreamer-video/src/auto/flags.rs b/gstreamer-video/src/auto/flags.rs index 0257bbc20..73b867081 100644 --- a/gstreamer-video/src/auto/flags.rs +++ b/gstreamer-video/src/auto/flags.rs @@ -19,14 +19,14 @@ bitflags! { const ONEFIELD = 8388608; 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] const MARKER = 512; } } @@ -386,32 +386,32 @@ impl FromGlib for VideoOverlayFormatFlags { } } -#[cfg(any(feature = "v1_16", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] +#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] impl StaticType for VideoOverlayFormatFlags { fn static_type() -> Type { unsafe { from_glib(ffi::gst_video_overlay_format_flags_get_type()) } } } -#[cfg(any(feature = "v1_16", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] +#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] impl<'a> FromValueOptional<'a> for VideoOverlayFormatFlags { unsafe fn from_value_optional(value: &Value) -> Option { Some(FromValue::from_value(value)) } } -#[cfg(any(feature = "v1_16", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] +#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] impl<'a> FromValue<'a> for VideoOverlayFormatFlags { unsafe fn from_value(value: &Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_flags(value.to_glib_none().0)) } } -#[cfg(any(feature = "v1_16", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] +#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] impl SetValue for VideoOverlayFormatFlags { unsafe fn set_value(value: &mut Value, this: &Self) { glib::gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, this.to_glib()) @@ -466,8 +466,8 @@ impl SetValue for VideoPackFlags { } } -#[cfg(any(feature = "v1_10", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] +#[cfg(any(feature = "v1_10", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] bitflags! { pub struct VideoTimeCodeFlags: u32 { const DROP_FRAME = 1; @@ -475,8 +475,8 @@ bitflags! { } } -#[cfg(any(feature = "v1_10", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] +#[cfg(any(feature = "v1_10", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] #[doc(hidden)] impl ToGlib for VideoTimeCodeFlags { type GlibType = ffi::GstVideoTimeCodeFlags; @@ -486,8 +486,8 @@ impl ToGlib for VideoTimeCodeFlags { } } -#[cfg(any(feature = "v1_10", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] +#[cfg(any(feature = "v1_10", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] #[doc(hidden)] impl FromGlib for VideoTimeCodeFlags { fn from_glib(value: ffi::GstVideoTimeCodeFlags) -> VideoTimeCodeFlags { @@ -496,32 +496,32 @@ impl FromGlib for VideoTimeCodeFlags { } } -#[cfg(any(feature = "v1_18", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] +#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] impl StaticType for VideoTimeCodeFlags { fn static_type() -> Type { unsafe { from_glib(ffi::gst_video_time_code_flags_get_type()) } } } -#[cfg(any(feature = "v1_18", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] +#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] impl<'a> FromValueOptional<'a> for VideoTimeCodeFlags { unsafe fn from_value_optional(value: &Value) -> Option { Some(FromValue::from_value(value)) } } -#[cfg(any(feature = "v1_18", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] +#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] impl<'a> FromValue<'a> for VideoTimeCodeFlags { unsafe fn from_value(value: &Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_flags(value.to_glib_none().0)) } } -#[cfg(any(feature = "v1_18", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] +#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] impl SetValue for VideoTimeCodeFlags { unsafe fn set_value(value: &mut Value, this: &Self) { glib::gobject_ffi::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 1d803e2fc..188f056b4 100644 --- a/gstreamer-video/src/auto/mod.rs +++ b/gstreamer-video/src/auto/mod.rs @@ -25,22 +25,22 @@ pub use self::video_sink::VideoSinkExt; 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")))] +#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), 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")))] +#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), 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")))] +#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), 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")))] +#[cfg(any(feature = "v1_12", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] pub use self::enums::VideoFieldOrder; pub use self::enums::VideoFormat; pub use self::enums::VideoGammaMode; @@ -63,8 +63,8 @@ pub use self::flags::VideoFrameFlags; 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")))] +#[cfg(any(feature = "v1_10", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), 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 e39d52a69..94b4315ac 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 @ 694b4b8) -from gir-files (https://github.com/gtk-rs/gir-files @ 3ac51141) +Generated by gir (https://github.com/gtk-rs/gir @ b16d610) +from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) diff --git a/gstreamer-video/src/auto/video_decoder.rs b/gstreamer-video/src/auto/video_decoder.rs index abd302be1..e0898cab1 100644 --- a/gstreamer-video/src/auto/video_decoder.rs +++ b/gstreamer-video/src/auto/video_decoder.rs @@ -3,28 +3,28 @@ // DO NOT EDIT use crate::VideoCodecFrame; -#[cfg(any(feature = "v1_18", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] +#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), 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")))] +#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), 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")))] +#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), 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")))] +#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] use glib::StaticType; -#[cfg(any(feature = "v1_18", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] +#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] use glib::Value; -#[cfg(any(feature = "v1_18", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] +#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), 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")))] +#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] use std::mem::transmute; glib::glib_wrapper! { @@ -75,23 +75,23 @@ 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] fn connect_property_qos_notify( &self, f: F, @@ -225,8 +225,8 @@ impl> VideoDecoderExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] fn get_property_qos(&self) -> bool { unsafe { let mut value = Value::from_type(::static_type()); @@ -242,8 +242,8 @@ impl> VideoDecoderExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] fn set_property_qos(&self, qos: bool) { unsafe { glib::gobject_ffi::g_object_set_property( @@ -254,8 +254,8 @@ impl> VideoDecoderExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] fn connect_property_max_errors_notify( &self, f: F, @@ -283,8 +283,8 @@ impl> VideoDecoderExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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 db189bed5..7788e887c 100644 --- a/gstreamer-video/src/auto/video_encoder.rs +++ b/gstreamer-video/src/auto/video_encoder.rs @@ -2,8 +2,8 @@ // from gir-files (https://github.com/gtk-rs/gir-files) // DO NOT EDIT -#[cfg(any(feature = "v1_14", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] +#[cfg(any(feature = "v1_14", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] use crate::VideoCodecFrame; use glib::object::Cast; use glib::object::IsA; @@ -31,16 +31,16 @@ pub const NONE_VIDEO_ENCODER: Option<&VideoEncoder> = None; 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")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] fn is_qos_enabled(&self) -> bool; fn merge_tags(&self, tags: Option<&gst::TagList>, mode: gst::TagMergeMode); @@ -49,22 +49,22 @@ 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] fn set_qos_enabled(&self, enabled: bool); fn get_property_qos(&self) -> bool; fn set_property_qos(&self, qos: bool); - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] fn connect_property_min_force_key_unit_interval_notify( &self, f: F, @@ -87,8 +87,8 @@ impl> VideoEncoderExt for O { } } - #[cfg(any(feature = "v1_14", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] fn get_max_encode_time(&self, frame: &VideoCodecFrame) -> gst::ClockTimeDiff { unsafe { ffi::gst_video_encoder_get_max_encode_time( @@ -98,8 +98,8 @@ impl> VideoEncoderExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] fn get_min_force_key_unit_interval(&self) -> gst::ClockTime { unsafe { from_glib(ffi::gst_video_encoder_get_min_force_key_unit_interval( @@ -108,8 +108,8 @@ impl> VideoEncoderExt for O { } } - #[cfg(any(feature = "v1_14", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] fn is_qos_enabled(&self) -> bool { unsafe { from_glib(ffi::gst_video_encoder_is_qos_enabled( @@ -147,8 +147,8 @@ impl> VideoEncoderExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] fn set_min_force_key_unit_interval(&self, interval: gst::ClockTime) { unsafe { ffi::gst_video_encoder_set_min_force_key_unit_interval( @@ -164,8 +164,8 @@ impl> VideoEncoderExt for O { } } - #[cfg(any(feature = "v1_14", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] fn set_qos_enabled(&self, enabled: bool) { unsafe { ffi::gst_video_encoder_set_qos_enabled( @@ -200,8 +200,8 @@ impl> VideoEncoderExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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 e3e263f82..6041b67e3 100644 --- a/gstreamer-video/src/auto/video_overlay.rs +++ b/gstreamer-video/src/auto/video_overlay.rs @@ -14,14 +14,14 @@ glib::glib_wrapper! { } impl VideoOverlay { - //#[cfg(any(feature = "v1_14", feature = "dox"))] - //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] + //#[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + //#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] //pub fn install_properties(oclass: /*Ignored*/&mut glib::ObjectClass, last_prop_id: i32) { // unsafe { TODO: call ffi:gst_video_overlay_install_properties() } //} - //#[cfg(any(feature = "v1_14", feature = "dox"))] - //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] + //#[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + //#[cfg_attr(all(not(doctest), doc), 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 ffi:gst_video_overlay_set_property() } //} diff --git a/gstreamer-video/sys/Cargo.toml b/gstreamer-video/sys/Cargo.toml index 91ec4ca14..3ee6d54c9 100644 --- a/gstreamer-video/sys/Cargo.toml +++ b/gstreamer-video/sys/Cargo.toml @@ -52,7 +52,7 @@ repository = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs" version = "0.17.0" edition = "2018" [package.metadata.docs.rs] -features = ["dox"] +features = [] [package.metadata.system-deps.gstreamer_video_1_0] name = "gstreamer-video-1.0" version = "1.8" diff --git a/gstreamer-video/sys/build.rs b/gstreamer-video/sys/build.rs index c69299ced..f3f73eb6b 100644 --- a/gstreamer-video/sys/build.rs +++ b/gstreamer-video/sys/build.rs @@ -1,14 +1,14 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 694b4b8) -// from gir-files (https://github.com/gtk-rs/gir-files @ 58bda97d) +// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) +// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) // DO NOT EDIT -#[cfg(not(feature = "dox"))] +#[cfg(any(not(doc), doctest))] use std::process; -#[cfg(feature = "dox")] +#[cfg(all(not(doctest), doc))] fn main() {} // prevent linking libraries to avoid documentation failure -#[cfg(not(feature = "dox"))] +#[cfg(any(not(doc), doctest))] fn main() { if let Err(s) = system_deps::Config::new().probe() { let _ = eprintln!("{}", s); diff --git a/gstreamer-video/sys/src/lib.rs b/gstreamer-video/sys/src/lib.rs index a47a1462d..46d372702 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 @ 694b4b8) -// from gir-files (https://github.com/gtk-rs/gir-files @ 58bda97d) +// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) +// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) // DO NOT EDIT #![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)] @@ -8,7 +8,7 @@ clippy::type_complexity, clippy::unreadable_literal )] -#![cfg_attr(feature = "dox", feature(doc_cfg))] +#![cfg_attr(all(not(doctest), doc), feature(doc_cfg))] use glib_sys as glib; use gobject_sys as gobject; @@ -2273,15 +2273,15 @@ extern "C" { //========================================================================= // GstVideoAFDSpec //========================================================================= - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] pub fn gst_video_afd_value_get_type() -> GType; //========================================================================= @@ -2292,28 +2292,28 @@ extern "C" { //========================================================================= // GstVideoAncillaryDID //========================================================================= - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] pub fn gst_video_caption_type_to_caps(type_: GstVideoCaptionType) -> *mut gst::GstCaps; //========================================================================= @@ -2330,30 +2330,30 @@ extern "C" { // GstVideoColorMatrix //========================================================================= 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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, Kr: *mut c_double, Kb: *mut c_double, ) -> gboolean; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] pub fn gst_video_color_matrix_to_iso(matrix: GstVideoColorMatrix) -> c_uint; //========================================================================= // GstVideoColorPrimaries //========================================================================= 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] pub fn gst_video_color_primaries_to_iso(primaries: GstVideoColorPrimaries) -> c_uint; //========================================================================= @@ -2375,14 +2375,14 @@ extern "C" { //========================================================================= // GstVideoFieldOrder //========================================================================= - #[cfg(any(feature = "v1_12", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] pub fn gst_video_field_order_to_string(order: GstVideoFieldOrder) -> *const c_char; //========================================================================= @@ -2442,8 +2442,8 @@ extern "C" { //========================================================================= // GstVideoOrientationMethod //========================================================================= - #[cfg(any(feature = "v1_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] pub fn gst_video_orientation_method_get_type() -> GType; //========================================================================= @@ -2470,26 +2470,26 @@ extern "C" { // GstVideoTransferFunction //========================================================================= 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] pub fn gst_video_transfer_function_is_equivalent( from_func: GstVideoTransferFunction, from_bpp: c_uint, to_func: GstVideoTransferFunction, to_bpp: c_uint, ) -> gboolean; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] pub fn gst_video_vbi_parser_result_get_type() -> GType; //========================================================================= @@ -2540,8 +2540,8 @@ extern "C" { //========================================================================= // GstVideoOverlayFormatFlags //========================================================================= - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] pub fn gst_video_overlay_format_flags_get_type() -> GType; //========================================================================= @@ -2562,15 +2562,15 @@ extern "C" { //========================================================================= // GstVideoTimeCodeFlags //========================================================================= - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] pub fn gst_video_afd_meta_get_info() -> *const gst::GstMetaInfo; //========================================================================= @@ -2590,15 +2590,15 @@ extern "C" { //========================================================================= // GstVideoBarMeta //========================================================================= - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] pub fn gst_video_caption_meta_get_info() -> *const gst::GstMetaInfo; //========================================================================= @@ -2659,29 +2659,29 @@ extern "C" { //========================================================================= // GstVideoContentLightLevel //========================================================================= - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] pub fn gst_video_content_light_level_to_string( linfo: *const GstVideoContentLightLevel, ) -> *mut c_char; @@ -2735,8 +2735,8 @@ extern "C" { //========================================================================= // GstVideoFormatInfo //========================================================================= - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] pub fn gst_video_format_info_component( info: *const GstVideoFormatInfo, plane: c_uint, @@ -2783,8 +2783,8 @@ extern "C" { pub fn gst_video_info_new() -> *mut GstVideoInfo; 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] pub fn gst_video_info_align_full( info: *mut GstVideoInfo, align: *mut GstVideoAlignment, @@ -2812,8 +2812,8 @@ extern "C" { width: c_uint, height: c_uint, ) -> gboolean; - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] pub fn gst_video_info_set_interlaced_format( info: *mut GstVideoInfo, format: GstVideoFormat, @@ -2826,34 +2826,34 @@ extern "C" { //========================================================================= // GstVideoMasteringDisplayInfo //========================================================================= - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] pub fn gst_video_mastering_display_info_from_string( minfo: *mut GstVideoMasteringDisplayInfo, mastering: *const c_char, @@ -2862,14 +2862,14 @@ extern "C" { //========================================================================= // GstVideoMeta //========================================================================= - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] pub fn gst_video_meta_get_plane_size( meta: *mut GstVideoMeta, plane_size: *mut size_t, @@ -2882,8 +2882,8 @@ extern "C" { stride: *mut c_int, flags: gst::GstMapFlags, ) -> gboolean; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] pub fn gst_video_meta_set_alignment( meta: *mut GstVideoMeta, alignment: GstVideoAlignment, @@ -3007,14 +3007,14 @@ extern "C" { //========================================================================= // GstVideoRegionOfInterestMeta //========================================================================= - #[cfg(any(feature = "v1_14", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] pub fn gst_video_region_of_interest_meta_get_param( meta: *mut GstVideoRegionOfInterestMeta, name: *const c_char, @@ -3095,11 +3095,11 @@ extern "C" { //========================================================================= // GstVideoTimeCode //========================================================================= - #[cfg(any(feature = "v1_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] pub fn gst_video_time_code_new( fps_n: c_uint, fps_d: c_uint, @@ -3111,11 +3111,11 @@ extern "C" { frames: c_uint, field_count: c_uint, ) -> *mut GstVideoTimeCode; - #[cfg(any(feature = "v1_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] pub fn gst_video_time_code_new_from_date_time( fps_n: c_uint, fps_d: c_uint, @@ -3123,8 +3123,8 @@ extern "C" { flags: GstVideoTimeCodeFlags, field_count: c_uint, ) -> *mut GstVideoTimeCode; - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] pub fn gst_video_time_code_new_from_date_time_full( fps_n: c_uint, fps_d: c_uint, @@ -3132,41 +3132,41 @@ extern "C" { flags: GstVideoTimeCodeFlags, field_count: c_uint, ) -> *mut GstVideoTimeCode; - #[cfg(any(feature = "v1_12", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] pub fn gst_video_time_code_init( tc: *mut GstVideoTimeCode, fps_n: c_uint, @@ -3179,8 +3179,8 @@ extern "C" { frames: c_uint, field_count: c_uint, ); - #[cfg(any(feature = "v1_12", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] pub fn gst_video_time_code_init_from_date_time( tc: *mut GstVideoTimeCode, fps_n: c_uint, @@ -3189,8 +3189,8 @@ extern "C" { flags: GstVideoTimeCodeFlags, field_count: c_uint, ); - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] pub fn gst_video_time_code_init_from_date_time_full( tc: *mut GstVideoTimeCode, fps_n: c_uint, @@ -3199,51 +3199,51 @@ extern "C" { flags: GstVideoTimeCodeFlags, field_count: c_uint, ) -> gboolean; - #[cfg(any(feature = "v1_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] pub fn gst_video_time_code_interval_new( hours: c_uint, minutes: c_uint, seconds: c_uint, frames: c_uint, ) -> *mut GstVideoTimeCodeInterval; - #[cfg(any(feature = "v1_12", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] pub fn gst_video_time_code_interval_init( tc: *mut GstVideoTimeCodeInterval, hours: c_uint, @@ -3255,24 +3255,24 @@ extern "C" { //========================================================================= // GstVideoTimeCodeMeta //========================================================================= - #[cfg(any(feature = "v1_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] pub fn gst_video_vbi_encoder_add_ancillary( encoder: *mut GstVideoVBIEncoder, composite: gboolean, @@ -3281,41 +3281,41 @@ extern "C" { data: *const u8, data_count: c_uint, ) -> gboolean; - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] pub fn gst_video_vbi_parser_get_ancillary( parser: *mut GstVideoVBIParser, anc: *mut GstVideoAncillary, @@ -3329,18 +3329,18 @@ extern "C" { //========================================================================= // GstVideoAggregator //========================================================================= - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] pub fn gst_video_aggregator_convert_pad_update_conversion_info( pad: *mut GstVideoAggregatorConvertPad, ); @@ -3348,25 +3348,25 @@ extern "C" { //========================================================================= // GstVideoAggregatorPad //========================================================================= - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] pub fn gst_video_aggregator_pad_set_needs_alpha( pad: *mut GstVideoAggregatorPad, needs_alpha: gboolean, @@ -3390,8 +3390,8 @@ extern "C" { decoder: *mut GstVideoDecoder, frame: *mut GstVideoCodecFrame, ) -> gst::GstFlowReturn; - #[cfg(any(feature = "v1_12", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] pub fn gst_video_decoder_allocate_output_frame_with_params( decoder: *mut GstVideoDecoder, frame: *mut GstVideoCodecFrame, @@ -3456,8 +3456,8 @@ extern "C" { frame: *mut GstVideoCodecFrame, ); 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] pub fn gst_video_decoder_set_interlaced_output_state( decoder: *mut GstVideoDecoder, fmt: GstVideoFormat, @@ -3503,8 +3503,8 @@ extern "C" { encoder: *mut GstVideoEncoder, frame: *mut GstVideoCodecFrame, ) -> gst::GstFlowReturn; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] pub fn gst_video_encoder_finish_subframe( encoder: *mut GstVideoEncoder, frame: *mut GstVideoCodecFrame, @@ -3524,14 +3524,14 @@ extern "C" { min_latency: *mut gst::GstClockTime, max_latency: *mut gst::GstClockTime, ); - #[cfg(any(feature = "v1_14", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] pub fn gst_video_encoder_get_min_force_key_unit_interval( encoder: *mut GstVideoEncoder, ) -> gst::GstClockTime; @@ -3541,8 +3541,8 @@ extern "C" { pub fn gst_video_encoder_get_output_state( encoder: *mut GstVideoEncoder, ) -> *mut GstVideoCodecState; - #[cfg(any(feature = "v1_14", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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, @@ -3561,8 +3561,8 @@ extern "C" { min_latency: gst::GstClockTime, max_latency: gst::GstClockTime, ); - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] pub fn gst_video_encoder_set_min_force_key_unit_interval( encoder: *mut GstVideoEncoder, interval: gst::GstClockTime, @@ -3573,8 +3573,8 @@ extern "C" { caps: *mut gst::GstCaps, reference: *mut GstVideoCodecState, ) -> *mut GstVideoCodecState; - #[cfg(any(feature = "v1_14", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] pub fn gst_video_encoder_set_qos_enabled(encoder: *mut GstVideoEncoder, enabled: gboolean); //========================================================================= @@ -3644,8 +3644,8 @@ extern "C" { x: *mut c_double, y: *mut c_double, ) -> gboolean; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] pub fn gst_navigation_event_parse_mouse_scroll_event( event: *mut gst::GstEvent, x: *mut c_double, @@ -3733,8 +3733,8 @@ extern "C" { x: c_double, y: c_double, ); - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] pub fn gst_navigation_send_mouse_scroll_event( navigation: *mut GstNavigation, x: c_double, @@ -3746,8 +3746,8 @@ extern "C" { //========================================================================= // GstVideoDirection //========================================================================= - #[cfg(any(feature = "v1_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] pub fn gst_video_direction_get_type() -> GType; //========================================================================= @@ -3791,14 +3791,14 @@ extern "C" { // GstVideoOverlay //========================================================================= pub fn gst_video_overlay_get_type() -> GType; - #[cfg(any(feature = "v1_14", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] pub fn gst_video_overlay_set_property( object: *mut gobject::GObject, last_prop_id: c_int, @@ -3821,8 +3821,8 @@ extern "C" { //========================================================================= // Other functions //========================================================================= - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] pub fn gst_buffer_add_video_afd_meta( buffer: *mut gst::GstBuffer, field: u8, @@ -3832,8 +3832,8 @@ extern "C" { pub fn gst_buffer_add_video_affine_transformation_meta( buffer: *mut gst::GstBuffer, ) -> *mut GstVideoAffineTransformationMeta; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] pub fn gst_buffer_add_video_bar_meta( buffer: *mut gst::GstBuffer, field: u8, @@ -3841,8 +3841,8 @@ extern "C" { bar_data1: c_uint, bar_data2: c_uint, ) -> *mut GstVideoBarMeta; - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] pub fn gst_buffer_add_video_caption_meta( buffer: *mut gst::GstBuffer, caption_type: GstVideoCaptionType, @@ -3896,14 +3896,14 @@ extern "C" { w: c_uint, h: c_uint, ) -> *mut GstVideoRegionOfInterestMeta; - #[cfg(any(feature = "v1_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] pub fn gst_buffer_add_video_time_code_meta_full( buffer: *mut gst::GstBuffer, fps_n: c_uint, @@ -3936,12 +3936,12 @@ extern "C" { pub fn gst_is_video_overlay_prepare_window_handle_message( msg: *mut gst::GstMessage, ) -> gboolean; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] pub fn gst_video_bar_meta_api_get_type() -> GType; pub fn gst_video_blend( dest: *mut GstVideoFrame, @@ -3968,8 +3968,8 @@ extern "C" { display_par_n: c_uint, display_par_d: c_uint, ) -> gboolean; - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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( @@ -4033,8 +4033,8 @@ extern "C" { all_headers: *mut gboolean, count: *mut c_uint, ) -> gboolean; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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( @@ -4042,14 +4042,14 @@ extern "C" { dest_n: *mut c_int, dest_d: *mut c_int, ) -> gboolean; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] pub fn gst_video_make_raw_caps_with_features( formats: *const GstVideoFormat, len: c_uint, @@ -4082,8 +4082,8 @@ extern "C" { x_tiles: c_int, y_tiles: c_int, ) -> c_uint; - #[cfg(any(feature = "v1_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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 b16cf75f0..b571fbe5a 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 @ 694b4b8) -// from gir-files (https://github.com/gtk-rs/gir-files @ 58bda97d) +// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) +// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) // DO NOT EDIT use gstreamer_video_sys::*; diff --git a/gstreamer-video/sys/tests/constant.c b/gstreamer-video/sys/tests/constant.c index 63be6f6a4..819aa4a30 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 @ 694b4b8) -// from gir-files (https://github.com/gtk-rs/gir-files @ 58bda97d) +// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) +// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-video/sys/tests/layout.c b/gstreamer-video/sys/tests/layout.c index 73f80e89d..ad8a5a3ff 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 @ 694b4b8) -// from gir-files (https://github.com/gtk-rs/gir-files @ 58bda97d) +// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) +// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-webrtc/src/auto/enums.rs b/gstreamer-webrtc/src/auto/enums.rs index 190e8597c..59533ad29 100644 --- a/gstreamer-webrtc/src/auto/enums.rs +++ b/gstreamer-webrtc/src/auto/enums.rs @@ -10,8 +10,8 @@ use glib::value::Value; use glib::StaticType; use glib::Type; -#[cfg(any(feature = "v1_16", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] +#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] pub enum WebRTCBundlePolicy { @@ -23,8 +23,8 @@ pub enum WebRTCBundlePolicy { __Unknown(i32), } -#[cfg(any(feature = "v1_16", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] +#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] #[doc(hidden)] impl ToGlib for WebRTCBundlePolicy { type GlibType = ffi::GstWebRTCBundlePolicy; @@ -40,8 +40,8 @@ impl ToGlib for WebRTCBundlePolicy { } } -#[cfg(any(feature = "v1_16", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] +#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] #[doc(hidden)] impl FromGlib for WebRTCBundlePolicy { fn from_glib(value: ffi::GstWebRTCBundlePolicy) -> Self { @@ -56,32 +56,32 @@ impl FromGlib for WebRTCBundlePolicy { } } -#[cfg(any(feature = "v1_16", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] +#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] impl StaticType for WebRTCBundlePolicy { fn static_type() -> Type { unsafe { from_glib(ffi::gst_webrtc_bundle_policy_get_type()) } } } -#[cfg(any(feature = "v1_16", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] +#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] impl<'a> FromValueOptional<'a> for WebRTCBundlePolicy { unsafe fn from_value_optional(value: &Value) -> Option { Some(FromValue::from_value(value)) } } -#[cfg(any(feature = "v1_16", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] +#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] impl<'a> FromValue<'a> for WebRTCBundlePolicy { unsafe fn from_value(value: &Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0)) } } -#[cfg(any(feature = "v1_16", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] +#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] impl SetValue for WebRTCBundlePolicy { unsafe fn set_value(value: &mut Value, this: &Self) { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib()) @@ -219,8 +219,8 @@ impl SetValue for WebRTCDTLSTransportState { } } -#[cfg(any(feature = "v1_16", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] +#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] pub enum WebRTCDataChannelState { @@ -233,8 +233,8 @@ pub enum WebRTCDataChannelState { __Unknown(i32), } -#[cfg(any(feature = "v1_16", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] +#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] #[doc(hidden)] impl ToGlib for WebRTCDataChannelState { type GlibType = ffi::GstWebRTCDataChannelState; @@ -251,8 +251,8 @@ impl ToGlib for WebRTCDataChannelState { } } -#[cfg(any(feature = "v1_16", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] +#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] #[doc(hidden)] impl FromGlib for WebRTCDataChannelState { fn from_glib(value: ffi::GstWebRTCDataChannelState) -> Self { @@ -268,40 +268,40 @@ impl FromGlib for WebRTCDataChannelState { } } -#[cfg(any(feature = "v1_16", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] +#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] impl StaticType for WebRTCDataChannelState { fn static_type() -> Type { unsafe { from_glib(ffi::gst_webrtc_data_channel_state_get_type()) } } } -#[cfg(any(feature = "v1_16", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] +#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] impl<'a> FromValueOptional<'a> for WebRTCDataChannelState { unsafe fn from_value_optional(value: &Value) -> Option { Some(FromValue::from_value(value)) } } -#[cfg(any(feature = "v1_16", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] +#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] impl<'a> FromValue<'a> for WebRTCDataChannelState { unsafe fn from_value(value: &Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0)) } } -#[cfg(any(feature = "v1_16", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] +#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] impl SetValue for WebRTCDataChannelState { unsafe fn set_value(value: &mut Value, this: &Self) { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib()) } } -#[cfg(any(feature = "v1_14_1", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14_1")))] +#[cfg(any(feature = "v1_14_1", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14_1")))] #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] pub enum WebRTCFECType { @@ -311,8 +311,8 @@ pub enum WebRTCFECType { __Unknown(i32), } -#[cfg(any(feature = "v1_14_1", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14_1")))] +#[cfg(any(feature = "v1_14_1", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14_1")))] #[doc(hidden)] impl ToGlib for WebRTCFECType { type GlibType = ffi::GstWebRTCFECType; @@ -326,8 +326,8 @@ impl ToGlib for WebRTCFECType { } } -#[cfg(any(feature = "v1_14_1", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14_1")))] +#[cfg(any(feature = "v1_14_1", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14_1")))] #[doc(hidden)] impl FromGlib for WebRTCFECType { fn from_glib(value: ffi::GstWebRTCFECType) -> Self { @@ -340,32 +340,32 @@ impl FromGlib for WebRTCFECType { } } -#[cfg(any(feature = "v1_14_1", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14_1")))] +#[cfg(any(feature = "v1_14_1", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14_1")))] impl StaticType for WebRTCFECType { fn static_type() -> Type { unsafe { from_glib(ffi::gst_webrtc_fec_type_get_type()) } } } -#[cfg(any(feature = "v1_14_1", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14_1")))] +#[cfg(any(feature = "v1_14_1", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), 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)) } } -#[cfg(any(feature = "v1_14_1", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14_1")))] +#[cfg(any(feature = "v1_14_1", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14_1")))] impl<'a> FromValue<'a> for WebRTCFECType { unsafe fn from_value(value: &Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0)) } } -#[cfg(any(feature = "v1_14_1", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14_1")))] +#[cfg(any(feature = "v1_14_1", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14_1")))] impl SetValue for WebRTCFECType { unsafe fn set_value(value: &mut Value, this: &Self) { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib()) @@ -624,8 +624,8 @@ impl SetValue for WebRTCICERole { } } -#[cfg(any(feature = "v1_16", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] +#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] pub enum WebRTCICETransportPolicy { @@ -635,8 +635,8 @@ pub enum WebRTCICETransportPolicy { __Unknown(i32), } -#[cfg(any(feature = "v1_16", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] +#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] #[doc(hidden)] impl ToGlib for WebRTCICETransportPolicy { type GlibType = ffi::GstWebRTCICETransportPolicy; @@ -650,8 +650,8 @@ impl ToGlib for WebRTCICETransportPolicy { } } -#[cfg(any(feature = "v1_16", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] +#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] #[doc(hidden)] impl FromGlib for WebRTCICETransportPolicy { fn from_glib(value: ffi::GstWebRTCICETransportPolicy) -> Self { @@ -664,32 +664,32 @@ impl FromGlib for WebRTCICETransportPolicy { } } -#[cfg(any(feature = "v1_16", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] +#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] impl StaticType for WebRTCICETransportPolicy { fn static_type() -> Type { unsafe { from_glib(ffi::gst_webrtc_ice_transport_policy_get_type()) } } } -#[cfg(any(feature = "v1_16", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] +#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] impl<'a> FromValueOptional<'a> for WebRTCICETransportPolicy { unsafe fn from_value_optional(value: &Value) -> Option { Some(FromValue::from_value(value)) } } -#[cfg(any(feature = "v1_16", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] +#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] impl<'a> FromValue<'a> for WebRTCICETransportPolicy { unsafe fn from_value(value: &Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0)) } } -#[cfg(any(feature = "v1_16", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] +#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] impl SetValue for WebRTCICETransportPolicy { unsafe fn set_value(value: &mut Value, this: &Self) { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib()) @@ -770,8 +770,8 @@ impl SetValue for WebRTCPeerConnectionState { } } -#[cfg(any(feature = "v1_16", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] +#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] pub enum WebRTCPriorityType { @@ -783,8 +783,8 @@ pub enum WebRTCPriorityType { __Unknown(i32), } -#[cfg(any(feature = "v1_16", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] +#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] #[doc(hidden)] impl ToGlib for WebRTCPriorityType { type GlibType = ffi::GstWebRTCPriorityType; @@ -800,8 +800,8 @@ impl ToGlib for WebRTCPriorityType { } } -#[cfg(any(feature = "v1_16", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] +#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] #[doc(hidden)] impl FromGlib for WebRTCPriorityType { fn from_glib(value: ffi::GstWebRTCPriorityType) -> Self { @@ -816,32 +816,32 @@ impl FromGlib for WebRTCPriorityType { } } -#[cfg(any(feature = "v1_16", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] +#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] impl StaticType for WebRTCPriorityType { fn static_type() -> Type { unsafe { from_glib(ffi::gst_webrtc_priority_type_get_type()) } } } -#[cfg(any(feature = "v1_16", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] +#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] impl<'a> FromValueOptional<'a> for WebRTCPriorityType { unsafe fn from_value_optional(value: &Value) -> Option { Some(FromValue::from_value(value)) } } -#[cfg(any(feature = "v1_16", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] +#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] impl<'a> FromValue<'a> for WebRTCPriorityType { unsafe fn from_value(value: &Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0)) } } -#[cfg(any(feature = "v1_16", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] +#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] impl SetValue for WebRTCPriorityType { unsafe fn set_value(value: &mut Value, this: &Self) { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib()) @@ -923,8 +923,8 @@ impl SetValue for WebRTCRTPTransceiverDirection { } } -#[cfg(any(feature = "v1_16", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] +#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] pub enum WebRTCSCTPTransportState { @@ -936,8 +936,8 @@ pub enum WebRTCSCTPTransportState { __Unknown(i32), } -#[cfg(any(feature = "v1_16", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] +#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] #[doc(hidden)] impl ToGlib for WebRTCSCTPTransportState { type GlibType = ffi::GstWebRTCSCTPTransportState; @@ -953,8 +953,8 @@ impl ToGlib for WebRTCSCTPTransportState { } } -#[cfg(any(feature = "v1_16", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] +#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] #[doc(hidden)] impl FromGlib for WebRTCSCTPTransportState { fn from_glib(value: ffi::GstWebRTCSCTPTransportState) -> Self { @@ -969,32 +969,32 @@ impl FromGlib for WebRTCSCTPTransportState { } } -#[cfg(any(feature = "v1_16", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] +#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] impl StaticType for WebRTCSCTPTransportState { fn static_type() -> Type { unsafe { from_glib(ffi::gst_webrtc_sctp_transport_state_get_type()) } } } -#[cfg(any(feature = "v1_16", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] +#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] impl<'a> FromValueOptional<'a> for WebRTCSCTPTransportState { unsafe fn from_value_optional(value: &Value) -> Option { Some(FromValue::from_value(value)) } } -#[cfg(any(feature = "v1_16", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] +#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] impl<'a> FromValue<'a> for WebRTCSCTPTransportState { unsafe fn from_value(value: &Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0)) } } -#[cfg(any(feature = "v1_16", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] +#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] impl SetValue for WebRTCSCTPTransportState { unsafe fn set_value(value: &mut Value, this: &Self) { glib::gobject_ffi::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 bf1eac3f0..5ed117f1c 100644 --- a/gstreamer-webrtc/src/auto/mod.rs +++ b/gstreamer-webrtc/src/auto/mod.rs @@ -5,11 +5,11 @@ 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")))] +#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), 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")))] +#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] pub use self::web_rtc_data_channel::WebRTCDataChannel; mod web_rtcice_transport; @@ -28,31 +28,31 @@ mod web_rtc_session_description; 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")))] +#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), 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")))] +#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), 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")))] +#[cfg(any(feature = "v1_14_1", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), 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")))] +#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), 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")))] +#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), 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")))] +#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), 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 4f8ae4734..94b4315ac 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 @ 694b4b8) -from gir-files (https://github.com/gtk-rs/gir-files @ 9f59d878) +Generated by gir (https://github.com/gtk-rs/gir @ b16d610) +from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) diff --git a/gstreamer-webrtc/src/auto/web_rtc_data_channel.rs b/gstreamer-webrtc/src/auto/web_rtc_data_channel.rs index 5f5e3cbb6..e295adc7c 100644 --- a/gstreamer-webrtc/src/auto/web_rtc_data_channel.rs +++ b/gstreamer-webrtc/src/auto/web_rtc_data_channel.rs @@ -23,32 +23,32 @@ glib::glib_wrapper! { } impl WebRTCDataChannel { - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] pub fn close(&self) { unsafe { ffi::gst_webrtc_data_channel_close(self.to_glib_none().0); } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] pub fn on_buffered_amount_low(&self) { unsafe { ffi::gst_webrtc_data_channel_on_buffered_amount_low(self.to_glib_none().0); } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] pub fn on_close(&self) { unsafe { ffi::gst_webrtc_data_channel_on_close(self.to_glib_none().0); } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] pub fn on_message_data(&self, data: Option<&glib::Bytes>) { unsafe { ffi::gst_webrtc_data_channel_on_message_data( @@ -58,8 +58,8 @@ impl WebRTCDataChannel { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] pub fn on_message_string(&self, str: Option<&str>) { unsafe { ffi::gst_webrtc_data_channel_on_message_string( @@ -69,24 +69,24 @@ impl WebRTCDataChannel { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] pub fn on_open(&self) { unsafe { ffi::gst_webrtc_data_channel_on_open(self.to_glib_none().0); } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] pub fn send_data(&self, data: Option<&glib::Bytes>) { unsafe { ffi::gst_webrtc_data_channel_send_data(self.to_glib_none().0, data.to_glib_none().0); } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] pub fn send_string(&self, str: Option<&str>) { unsafe { ffi::gst_webrtc_data_channel_send_string(self.to_glib_none().0, str.to_glib_none().0); diff --git a/gstreamer-webrtc/src/auto/web_rtcrtp_transceiver.rs b/gstreamer-webrtc/src/auto/web_rtcrtp_transceiver.rs index afc69ee49..efa715571 100644 --- a/gstreamer-webrtc/src/auto/web_rtcrtp_transceiver.rs +++ b/gstreamer-webrtc/src/auto/web_rtcrtp_transceiver.rs @@ -4,24 +4,24 @@ use crate::WebRTCRTPReceiver; use crate::WebRTCRTPSender; -#[cfg(any(feature = "v1_18", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] +#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] use crate::WebRTCRTPTransceiverDirection; use glib::object::ObjectType as ObjectType_; -#[cfg(any(feature = "v1_18", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] +#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), 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")))] +#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), 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")))] +#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), 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")))] +#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] use std::mem::transmute; glib::glib_wrapper! { @@ -33,8 +33,8 @@ glib::glib_wrapper! { } impl WebRTCRTPTransceiver { - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] pub fn get_property_direction(&self) -> WebRTCRTPTransceiverDirection { unsafe { let mut value = @@ -51,8 +51,8 @@ impl WebRTCRTPTransceiver { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] pub fn set_property_direction(&self, direction: WebRTCRTPTransceiverDirection) { unsafe { glib::gobject_ffi::g_object_set_property( @@ -106,8 +106,8 @@ impl WebRTCRTPTransceiver { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] pub fn connect_property_direction_notify< F: Fn(&WebRTCRTPTransceiver) + Send + Sync + 'static, >( diff --git a/gstreamer-webrtc/sys/Cargo.toml b/gstreamer-webrtc/sys/Cargo.toml index 93c1b9b29..443779bd8 100644 --- a/gstreamer-webrtc/sys/Cargo.toml +++ b/gstreamer-webrtc/sys/Cargo.toml @@ -46,7 +46,7 @@ repository = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs" version = "0.17.0" edition = "2018" [package.metadata.docs.rs] -features = ["dox"] +features = [] [package.metadata.system-deps.gstreamer_webrtc_1_0] name = "gstreamer-webrtc-1.0" version = "1.14" diff --git a/gstreamer-webrtc/sys/build.rs b/gstreamer-webrtc/sys/build.rs index c69299ced..f3f73eb6b 100644 --- a/gstreamer-webrtc/sys/build.rs +++ b/gstreamer-webrtc/sys/build.rs @@ -1,14 +1,14 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 694b4b8) -// from gir-files (https://github.com/gtk-rs/gir-files @ 58bda97d) +// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) +// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) // DO NOT EDIT -#[cfg(not(feature = "dox"))] +#[cfg(any(not(doc), doctest))] use std::process; -#[cfg(feature = "dox")] +#[cfg(all(not(doctest), doc))] fn main() {} // prevent linking libraries to avoid documentation failure -#[cfg(not(feature = "dox"))] +#[cfg(any(not(doc), doctest))] fn main() { if let Err(s) = system_deps::Config::new().probe() { let _ = eprintln!("{}", s); diff --git a/gstreamer-webrtc/sys/src/lib.rs b/gstreamer-webrtc/sys/src/lib.rs index 36e9eaa14..e0f1dbfee 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 @ 694b4b8) -// from gir-files (https://github.com/gtk-rs/gir-files @ 58bda97d) +// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) +// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) // DO NOT EDIT #![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)] @@ -8,7 +8,7 @@ clippy::type_complexity, clippy::unreadable_literal )] -#![cfg_attr(feature = "dox", feature(doc_cfg))] +#![cfg_attr(all(not(doctest), doc), feature(doc_cfg))] use glib_sys as glib; use gobject_sys as gobject; @@ -459,8 +459,8 @@ extern "C" { //========================================================================= // GstWebRTCBundlePolicy //========================================================================= - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] pub fn gst_webrtc_bundle_policy_get_type() -> GType; //========================================================================= @@ -476,15 +476,15 @@ extern "C" { //========================================================================= // GstWebRTCDataChannelState //========================================================================= - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_14_1", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14_1")))] pub fn gst_webrtc_fec_type_get_type() -> GType; //========================================================================= @@ -510,8 +510,8 @@ extern "C" { //========================================================================= // GstWebRTCICETransportPolicy //========================================================================= - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] pub fn gst_webrtc_ice_transport_policy_get_type() -> GType; //========================================================================= @@ -522,8 +522,8 @@ extern "C" { //========================================================================= // GstWebRTCPriorityType //========================================================================= - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] pub fn gst_webrtc_priority_type_get_type() -> GType; //========================================================================= @@ -534,8 +534,8 @@ extern "C" { //========================================================================= // GstWebRTCSCTPTransportState //========================================================================= - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] pub fn gst_webrtc_sctp_transport_state_get_type() -> GType; //========================================================================= @@ -583,47 +583,47 @@ extern "C" { //========================================================================= // GstWebRTCDataChannel //========================================================================= - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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 ebc44bc5c..24f4b0ba2 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 @ 694b4b8) -// from gir-files (https://github.com/gtk-rs/gir-files @ 58bda97d) +// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) +// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) // DO NOT EDIT use gstreamer_webrtc_sys::*; diff --git a/gstreamer-webrtc/sys/tests/constant.c b/gstreamer-webrtc/sys/tests/constant.c index 63be6f6a4..819aa4a30 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 @ 694b4b8) -// from gir-files (https://github.com/gtk-rs/gir-files @ 58bda97d) +// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) +// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-webrtc/sys/tests/layout.c b/gstreamer-webrtc/sys/tests/layout.c index 73f80e89d..ad8a5a3ff 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 @ 694b4b8) -// from gir-files (https://github.com/gtk-rs/gir-files @ 58bda97d) +// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) +// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer/src/auto/bin.rs b/gstreamer/src/auto/bin.rs index d8ab8b0d3..948396b22 100644 --- a/gstreamer/src/auto/bin.rs +++ b/gstreamer/src/auto/bin.rs @@ -4,8 +4,8 @@ use crate::ChildProxy; use crate::Element; -#[cfg(any(feature = "v1_10", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] +#[cfg(any(feature = "v1_10", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] use crate::ElementFlags; use crate::Object; use crate::Pad; @@ -53,12 +53,12 @@ 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")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + //#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + //#[cfg_attr(all(not(doctest), doc), 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; @@ -79,8 +79,8 @@ 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")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] fn set_suppressed_flags(&self, flags: ElementFlags); fn sync_children_states(&self) -> Result<(), glib::error::BoolError>; @@ -93,15 +93,15 @@ 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")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] fn connect_deep_element_removed( &self, f: F, @@ -181,8 +181,8 @@ impl> GstBinExt for O { } } - #[cfg(any(feature = "v1_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] fn get_suppressed_flags(&self) -> ElementFlags { unsafe { from_glib(ffi::gst_bin_get_suppressed_flags( @@ -191,8 +191,8 @@ impl> GstBinExt for O { } } - //#[cfg(any(feature = "v1_18", feature = "dox"))] - //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + //#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + //#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] //fn iterate_all_by_element_factory_name(&self, factory_name: &str) -> /*Ignored*/Option { // unsafe { TODO: call ffi:gst_bin_iterate_all_by_element_factory_name() } //} @@ -246,8 +246,8 @@ impl> GstBinExt for O { // unsafe { TODO: call ffi:gst_bin_remove_many() } //} - #[cfg(any(feature = "v1_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] fn set_suppressed_flags(&self, flags: ElementFlags) { unsafe { ffi::gst_bin_set_suppressed_flags(self.as_ref().to_glib_none().0, flags.to_glib()); @@ -313,8 +313,8 @@ impl> GstBinExt for O { } } - #[cfg(any(feature = "v1_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] fn connect_deep_element_added( &self, f: F, @@ -350,8 +350,8 @@ impl> GstBinExt for O { } } - #[cfg(any(feature = "v1_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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 255604ec0..90411c9d2 100644 --- a/gstreamer/src/auto/bus.rs +++ b/gstreamer/src/auto/bus.rs @@ -48,8 +48,8 @@ impl Bus { } } - //#[cfg(any(feature = "v1_14", feature = "dox"))] - //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] + //#[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + //#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] //pub fn get_pollfd(&self, fd: /*Ignored*/glib::PollFD) { // unsafe { TODO: call ffi:gst_bus_get_pollfd() } //} diff --git a/gstreamer/src/auto/clock.rs b/gstreamer/src/auto/clock.rs index e9409a8eb..80f04b525 100644 --- a/gstreamer/src/auto/clock.rs +++ b/gstreamer/src/auto/clock.rs @@ -28,8 +28,8 @@ impl Clock { // unsafe { TODO: call ffi:gst_clock_id_compare_func() } //} - //#[cfg(any(feature = "v1_16", feature = "dox"))] - //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + //#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + //#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] //pub fn id_get_clock(id: /*Unimplemented*/ClockID) -> Option { // unsafe { TODO: call ffi:gst_clock_id_get_clock() } //} @@ -50,8 +50,8 @@ impl Clock { // unsafe { TODO: call ffi:gst_clock_id_unschedule() } //} - //#[cfg(any(feature = "v1_16", feature = "dox"))] - //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + //#[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + //#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] //pub fn id_uses_clock>(id: /*Unimplemented*/ClockID, clock: &P) -> bool { // unsafe { TODO: call ffi:gst_clock_id_uses_clock() } //} diff --git a/gstreamer/src/auto/date_time.rs b/gstreamer/src/auto/date_time.rs index 4875b7d30..947f6d863 100644 --- a/gstreamer/src/auto/date_time.rs +++ b/gstreamer/src/auto/date_time.rs @@ -57,8 +57,8 @@ impl DateTime { unsafe { from_glib_full(ffi::gst_date_time_new_from_unix_epoch_local_time(secs)) } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] pub fn from_unix_epoch_local_time_usecs(usecs: i64) -> DateTime { assert_initialized_main_thread!(); unsafe { @@ -73,8 +73,8 @@ impl DateTime { unsafe { from_glib_full(ffi::gst_date_time_new_from_unix_epoch_utc(secs)) } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] pub fn from_unix_epoch_utc_usecs(usecs: i64) -> DateTime { assert_initialized_main_thread!(); unsafe { from_glib_full(ffi::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 426638538..4910969b8 100644 --- a/gstreamer/src/auto/device_provider.rs +++ b/gstreamer/src/auto/device_provider.rs @@ -32,8 +32,8 @@ 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] fn device_changed, Q: IsA>(&self, device: &P, changed_device: &Q); fn device_remove>(&self, device: &P); @@ -83,8 +83,8 @@ impl> DeviceProviderExt for O { } } - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] fn device_changed, Q: IsA>(&self, device: &P, changed_device: &Q) { unsafe { ffi::gst_device_provider_device_changed( diff --git a/gstreamer/src/auto/element.rs b/gstreamer/src/auto/element.rs index 9b8b4794d..2c1909266 100644 --- a/gstreamer/src/auto/element.rs +++ b/gstreamer/src/auto/element.rs @@ -66,16 +66,16 @@ 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")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] fn foreach_src_pad bool>(&self, func: P) -> bool; fn get_base_time(&self) -> ClockTime; @@ -145,8 +145,8 @@ 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")))] + //#[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + //#[cfg_attr(all(not(doctest), doc), 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,8 +222,8 @@ impl> ElementExt for O { } } - #[cfg(any(feature = "v1_14", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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>( @@ -248,8 +248,8 @@ impl> ElementExt for O { } } - #[cfg(any(feature = "v1_14", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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>( @@ -274,8 +274,8 @@ impl> ElementExt for O { } } - #[cfg(any(feature = "v1_14", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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>( @@ -506,8 +506,8 @@ impl> ElementExt for O { // unsafe { TODO: call ffi:gst_element_message_full() } //} - //#[cfg(any(feature = "v1_10", feature = "dox"))] - //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] + //#[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + //#[cfg_attr(all(not(doctest), doc), 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 ffi:gst_element_message_full_with_details() } //} diff --git a/gstreamer/src/auto/enums.rs b/gstreamer/src/auto/enums.rs index 04b0bf82f..bc16b74c8 100644 --- a/gstreamer/src/auto/enums.rs +++ b/gstreamer/src/auto/enums.rs @@ -336,8 +336,8 @@ pub enum ClockType { Realtime, Monotonic, Other, - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] Tai, #[doc(hidden)] __Unknown(i32), @@ -352,7 +352,7 @@ impl ToGlib for ClockType { ClockType::Realtime => ffi::GST_CLOCK_TYPE_REALTIME, ClockType::Monotonic => ffi::GST_CLOCK_TYPE_MONOTONIC, ClockType::Other => ffi::GST_CLOCK_TYPE_OTHER, - #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] ClockType::Tai => ffi::GST_CLOCK_TYPE_TAI, ClockType::__Unknown(value) => value, } @@ -367,7 +367,7 @@ impl FromGlib for ClockType { 0 => ClockType::Realtime, 1 => ClockType::Monotonic, 2 => ClockType::Other, - #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] 3 => ClockType::Tai, value => ClockType::__Unknown(value), } @@ -624,16 +624,16 @@ pub enum EventType { Tag, Buffersize, SinkMessage, - #[cfg(any(feature = "v1_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] StreamGroupDone, Eos, Toc, Protection, SegmentDone, Gap, - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] InstantRateChange, Qos, Seek, @@ -642,11 +642,11 @@ pub enum EventType { Step, Reconfigure, TocSelect, - #[cfg(any(feature = "v1_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] SelectStreams, - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] InstantRateSyncTime, CustomUpstream, CustomDownstream, @@ -674,14 +674,14 @@ impl ToGlib for EventType { EventType::Tag => ffi::GST_EVENT_TAG, EventType::Buffersize => ffi::GST_EVENT_BUFFERSIZE, EventType::SinkMessage => ffi::GST_EVENT_SINK_MESSAGE, - #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] EventType::StreamGroupDone => ffi::GST_EVENT_STREAM_GROUP_DONE, EventType::Eos => ffi::GST_EVENT_EOS, EventType::Toc => ffi::GST_EVENT_TOC, EventType::Protection => ffi::GST_EVENT_PROTECTION, EventType::SegmentDone => ffi::GST_EVENT_SEGMENT_DONE, EventType::Gap => ffi::GST_EVENT_GAP, - #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] EventType::InstantRateChange => ffi::GST_EVENT_INSTANT_RATE_CHANGE, EventType::Qos => ffi::GST_EVENT_QOS, EventType::Seek => ffi::GST_EVENT_SEEK, @@ -690,9 +690,9 @@ impl ToGlib for EventType { EventType::Step => ffi::GST_EVENT_STEP, EventType::Reconfigure => ffi::GST_EVENT_RECONFIGURE, EventType::TocSelect => ffi::GST_EVENT_TOC_SELECT, - #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] EventType::SelectStreams => ffi::GST_EVENT_SELECT_STREAMS, - #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] EventType::InstantRateSyncTime => ffi::GST_EVENT_INSTANT_RATE_SYNC_TIME, EventType::CustomUpstream => ffi::GST_EVENT_CUSTOM_UPSTREAM, EventType::CustomDownstream => ffi::GST_EVENT_CUSTOM_DOWNSTREAM, @@ -720,14 +720,14 @@ impl FromGlib for EventType { 20510 => EventType::Tag, 23054 => EventType::Buffersize, 25630 => EventType::SinkMessage, - #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] 26894 => EventType::StreamGroupDone, 28174 => EventType::Eos, 30750 => EventType::Toc, 33310 => EventType::Protection, 38406 => EventType::SegmentDone, 40966 => EventType::Gap, - #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] 46090 => EventType::InstantRateChange, 48641 => EventType::Qos, 51201 => EventType::Seek, @@ -736,9 +736,9 @@ impl FromGlib for EventType { 58881 => EventType::Step, 61441 => EventType::Reconfigure, 64001 => EventType::TocSelect, - #[cfg(any(feature = "v1_10", feature = "dox"))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] 66561 => EventType::SelectStreams, - #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] 66817 => EventType::InstantRateSyncTime, 69121 => EventType::CustomUpstream, 71686 => EventType::CustomDownstream, @@ -1614,8 +1614,8 @@ impl SetValue for ProgressType { } } -#[cfg(any(feature = "v1_14", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] +#[cfg(any(feature = "v1_14", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] pub enum PromiseResult { @@ -1627,8 +1627,8 @@ pub enum PromiseResult { __Unknown(i32), } -#[cfg(any(feature = "v1_14", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] +#[cfg(any(feature = "v1_14", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] #[doc(hidden)] impl ToGlib for PromiseResult { type GlibType = ffi::GstPromiseResult; @@ -1644,8 +1644,8 @@ impl ToGlib for PromiseResult { } } -#[cfg(any(feature = "v1_14", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] +#[cfg(any(feature = "v1_14", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] #[doc(hidden)] impl FromGlib for PromiseResult { fn from_glib(value: ffi::GstPromiseResult) -> Self { @@ -1660,32 +1660,32 @@ impl FromGlib for PromiseResult { } } -#[cfg(any(feature = "v1_14", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] +#[cfg(any(feature = "v1_14", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] impl StaticType for PromiseResult { fn static_type() -> Type { unsafe { from_glib(ffi::gst_promise_result_get_type()) } } } -#[cfg(any(feature = "v1_14", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] +#[cfg(any(feature = "v1_14", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] impl<'a> FromValueOptional<'a> for PromiseResult { unsafe fn from_value_optional(value: &Value) -> Option { Some(FromValue::from_value(value)) } } -#[cfg(any(feature = "v1_14", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] +#[cfg(any(feature = "v1_14", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] impl<'a> FromValue<'a> for PromiseResult { unsafe fn from_value(value: &Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0)) } } -#[cfg(any(feature = "v1_14", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] +#[cfg(any(feature = "v1_14", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] impl SetValue for PromiseResult { unsafe fn set_value(value: &mut Value, this: &Self) { glib::gobject_ffi::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 12447a198..7cd996b71 100644 --- a/gstreamer/src/auto/flags.rs +++ b/gstreamer/src/auto/flags.rs @@ -14,8 +14,8 @@ use glib::Type; 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")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] const STREAMS_AWARE = 32768; } } @@ -128,8 +128,8 @@ bitflags! { const DELTA_UNIT = 8192; const TAG_MEMORY = 16384; const SYNC_AFTER = 32768; - #[cfg(any(feature = "v1_14", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] const NON_DROPPABLE = 65536; } } @@ -500,8 +500,8 @@ 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")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] const MAY_BE_LEAKED = 1; } } @@ -728,8 +728,8 @@ bitflags! { pub struct ParseFlags: u32 { 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")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] const PLACE_IN_BIN = 4; } } @@ -822,16 +822,16 @@ impl SetValue for PipelineFlags { } } -#[cfg(any(feature = "v1_18", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] +#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] bitflags! { pub struct PluginAPIFlags: u32 { const MEMBERS = 1; } } -#[cfg(any(feature = "v1_18", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] +#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] #[doc(hidden)] impl ToGlib for PluginAPIFlags { type GlibType = ffi::GstPluginAPIFlags; @@ -841,8 +841,8 @@ impl ToGlib for PluginAPIFlags { } } -#[cfg(any(feature = "v1_18", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] +#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] #[doc(hidden)] impl FromGlib for PluginAPIFlags { fn from_glib(value: ffi::GstPluginAPIFlags) -> PluginAPIFlags { @@ -851,32 +851,32 @@ impl FromGlib for PluginAPIFlags { } } -#[cfg(any(feature = "v1_18", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] +#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] impl StaticType for PluginAPIFlags { fn static_type() -> Type { unsafe { from_glib(ffi::gst_plugin_api_flags_get_type()) } } } -#[cfg(any(feature = "v1_18", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] +#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] impl<'a> FromValueOptional<'a> for PluginAPIFlags { unsafe fn from_value_optional(value: &Value) -> Option { Some(FromValue::from_value(value)) } } -#[cfg(any(feature = "v1_18", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] +#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] impl<'a> FromValue<'a> for PluginAPIFlags { unsafe fn from_value(value: &Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_flags(value.to_glib_none().0)) } } -#[cfg(any(feature = "v1_18", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] +#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] impl SetValue for PluginAPIFlags { unsafe fn set_value(value: &mut Value, this: &Self) { glib::gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, this.to_glib()) @@ -1044,11 +1044,11 @@ bitflags! { const SNAP_NEAREST = 96; 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] const INSTANT_RATE_CHANGE = 1024; } } @@ -1102,8 +1102,8 @@ bitflags! { const SKIP = 16; const SEGMENT = 8; const TRICKMODE_KEY_UNITS = 128; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] const TRICKMODE_FORWARD_PREDICTED = 512; const TRICKMODE_NO_AUDIO = 256; } @@ -1150,16 +1150,16 @@ impl SetValue for SegmentFlags { } } -#[cfg(any(feature = "v1_12", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] +#[cfg(any(feature = "v1_12", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] bitflags! { pub struct StackTraceFlags: u32 { const FULL = 1; } } -#[cfg(any(feature = "v1_12", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] +#[cfg(any(feature = "v1_12", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] #[doc(hidden)] impl ToGlib for StackTraceFlags { type GlibType = ffi::GstStackTraceFlags; @@ -1169,8 +1169,8 @@ impl ToGlib for StackTraceFlags { } } -#[cfg(any(feature = "v1_12", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] +#[cfg(any(feature = "v1_12", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] #[doc(hidden)] impl FromGlib for StackTraceFlags { fn from_glib(value: ffi::GstStackTraceFlags) -> StackTraceFlags { @@ -1179,32 +1179,32 @@ impl FromGlib for StackTraceFlags { } } -#[cfg(any(feature = "v1_12", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] +#[cfg(any(feature = "v1_12", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] impl StaticType for StackTraceFlags { fn static_type() -> Type { unsafe { from_glib(ffi::gst_stack_trace_flags_get_type()) } } } -#[cfg(any(feature = "v1_12", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] +#[cfg(any(feature = "v1_12", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] impl<'a> FromValueOptional<'a> for StackTraceFlags { unsafe fn from_value_optional(value: &Value) -> Option { Some(FromValue::from_value(value)) } } -#[cfg(any(feature = "v1_12", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] +#[cfg(any(feature = "v1_12", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] impl<'a> FromValue<'a> for StackTraceFlags { unsafe fn from_value(value: &Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_flags(value.to_glib_none().0)) } } -#[cfg(any(feature = "v1_12", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] +#[cfg(any(feature = "v1_12", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] impl SetValue for StackTraceFlags { unsafe fn set_value(value: &mut Value, this: &Self) { glib::gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, this.to_glib()) @@ -1260,8 +1260,8 @@ impl SetValue for StreamFlags { } } -#[cfg(any(feature = "v1_10", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] +#[cfg(any(feature = "v1_10", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] bitflags! { pub struct StreamType: u32 { const UNKNOWN = 1; @@ -1272,8 +1272,8 @@ bitflags! { } } -#[cfg(any(feature = "v1_10", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] +#[cfg(any(feature = "v1_10", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] #[doc(hidden)] impl ToGlib for StreamType { type GlibType = ffi::GstStreamType; @@ -1283,8 +1283,8 @@ impl ToGlib for StreamType { } } -#[cfg(any(feature = "v1_10", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] +#[cfg(any(feature = "v1_10", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] #[doc(hidden)] impl FromGlib for StreamType { fn from_glib(value: ffi::GstStreamType) -> StreamType { @@ -1293,32 +1293,32 @@ impl FromGlib for StreamType { } } -#[cfg(any(feature = "v1_10", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] +#[cfg(any(feature = "v1_10", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] impl StaticType for StreamType { fn static_type() -> Type { unsafe { from_glib(ffi::gst_stream_type_get_type()) } } } -#[cfg(any(feature = "v1_10", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] +#[cfg(any(feature = "v1_10", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] impl<'a> FromValueOptional<'a> for StreamType { unsafe fn from_value_optional(value: &Value) -> Option { Some(FromValue::from_value(value)) } } -#[cfg(any(feature = "v1_10", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] +#[cfg(any(feature = "v1_10", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] impl<'a> FromValue<'a> for StreamType { unsafe fn from_value(value: &Value) -> Self { from_glib(glib::gobject_ffi::g_value_get_flags(value.to_glib_none().0)) } } -#[cfg(any(feature = "v1_10", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] +#[cfg(any(feature = "v1_10", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] impl SetValue for StreamType { unsafe fn set_value(value: &mut Value, this: &Self) { glib::gobject_ffi::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 409b6a878..9b0f4815a 100644 --- a/gstreamer/src/auto/functions.rs +++ b/gstreamer/src/auto/functions.rs @@ -7,19 +7,19 @@ use crate::ClockTime; use crate::DebugGraphDetails; use crate::DebugLevel; use crate::Element; -#[cfg(any(feature = "v1_18", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] +#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] use crate::PluginAPIFlags; -#[cfg(any(feature = "v1_12", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] +#[cfg(any(feature = "v1_12", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] use crate::StackTraceFlags; use glib::object::IsA; use glib::translate::*; use std::mem; use std::ptr; -#[cfg(any(feature = "v1_14", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] +#[cfg(any(feature = "v1_14", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] pub fn debug_add_ring_buffer_logger(max_size_per_thread: u32, thread_timeout: u32) { skip_assert_initialized!(); unsafe { @@ -72,8 +72,8 @@ pub fn debug_get_default_threshold() -> DebugLevel { unsafe { from_glib(ffi::gst_debug_get_default_threshold()) } } -#[cfg(any(feature = "v1_12", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] +#[cfg(any(feature = "v1_12", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] pub fn debug_get_stack_trace(flags: StackTraceFlags) -> Result { skip_assert_initialized!(); unsafe { @@ -99,8 +99,8 @@ pub fn debug_print_stack_trace() { } } -#[cfg(any(feature = "v1_14", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] +#[cfg(any(feature = "v1_14", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] pub fn debug_remove_ring_buffer_logger() { skip_assert_initialized!(); unsafe { @@ -108,8 +108,8 @@ pub fn debug_remove_ring_buffer_logger() { } } -#[cfg(any(feature = "v1_14", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] +#[cfg(any(feature = "v1_14", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] pub fn debug_ring_buffer_logger_get_logs() -> Vec { skip_assert_initialized!(); unsafe { FromGlibPtrContainer::from_glib_full(ffi::gst_debug_ring_buffer_logger_get_logs()) } @@ -157,8 +157,8 @@ 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")))] +#[cfg(any(feature = "v1_14", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] pub fn get_main_executable_path() -> Result { assert_initialized_main_thread!(); unsafe { @@ -213,8 +213,8 @@ pub fn parse_launchv(argv: &[&str]) -> Result { } } -//#[cfg(any(feature = "v1_18", feature = "dox"))] -//#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] +//#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] +//#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] //pub fn tracing_get_active_tracers() -> /*Ignored*/Vec { // unsafe { TODO: call ffi:gst_tracing_get_active_tracers() } //} @@ -223,8 +223,8 @@ pub fn parse_launchv(argv: &[&str]) -> Result { // unsafe { TODO: call ffi:gst_tracing_register_hook() } //} -#[cfg(any(feature = "v1_18", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] +#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), 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 902b0d8dc..1982ba36b 100644 --- a/gstreamer/src/auto/mod.rs +++ b/gstreamer/src/auto/mod.rs @@ -92,18 +92,18 @@ pub use self::proxy_pad::{ProxyPad, NONE_PROXY_PAD}; mod registry; pub use self::registry::Registry; -#[cfg(any(feature = "v1_10", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] +#[cfg(any(feature = "v1_10", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] mod stream; -#[cfg(any(feature = "v1_10", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] +#[cfg(any(feature = "v1_10", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), 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")))] +#[cfg(any(feature = "v1_10", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] mod stream_collection; -#[cfg(any(feature = "v1_10", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] +#[cfg(any(feature = "v1_10", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] pub use self::stream_collection::StreamCollection; mod system_clock; @@ -149,8 +149,8 @@ pub use self::enums::PadProbeReturn; 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")))] +#[cfg(any(feature = "v1_14", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] pub use self::enums::PromiseResult; pub use self::enums::QOSType; pub use self::enums::Rank; @@ -189,20 +189,20 @@ pub use self::flags::PadLinkCheck; 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")))] +#[cfg(any(feature = "v1_18", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] pub use self::flags::PluginAPIFlags; pub use self::flags::PluginDependencyFlags; pub use self::flags::PluginFlags; 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")))] +#[cfg(any(feature = "v1_12", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), 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")))] +#[cfg(any(feature = "v1_10", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), 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 57bce7f2c..38847b08b 100644 --- a/gstreamer/src/auto/pad.rs +++ b/gstreamer/src/auto/pad.rs @@ -8,16 +8,16 @@ use crate::Event; use crate::EventType; use crate::Object; use crate::PadDirection; -#[cfg(any(feature = "v1_10", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] +#[cfg(any(feature = "v1_10", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] use crate::PadLinkCheck; use crate::PadMode; use crate::PadTemplate; -#[cfg(any(feature = "v1_10", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] +#[cfg(any(feature = "v1_10", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] use crate::Stream; -#[cfg(any(feature = "v1_12", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] +#[cfg(any(feature = "v1_12", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] use crate::TaskState; use glib::object::Cast; use glib::object::IsA; @@ -79,20 +79,20 @@ 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] fn get_task_state(&self) -> TaskState; fn has_current_caps(&self) -> bool; @@ -109,12 +109,12 @@ 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")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] fn link_maybe_ghosting_full>( &self, sink: &P, @@ -296,8 +296,8 @@ impl> PadExt for O { unsafe { from_glib_full(ffi::gst_pad_get_peer(self.as_ref().to_glib_none().0)) } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] fn get_single_internal_link(&self) -> Option { unsafe { from_glib_full(ffi::gst_pad_get_single_internal_link( @@ -316,8 +316,8 @@ impl> PadExt for O { } } - #[cfg(any(feature = "v1_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] fn get_stream(&self) -> Option { unsafe { from_glib_full(ffi::gst_pad_get_stream(self.as_ref().to_glib_none().0)) } } @@ -326,8 +326,8 @@ impl> PadExt for O { unsafe { from_glib_full(ffi::gst_pad_get_stream_id(self.as_ref().to_glib_none().0)) } } - #[cfg(any(feature = "v1_12", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] fn get_task_state(&self) -> TaskState { unsafe { from_glib(ffi::gst_pad_get_task_state(self.as_ref().to_glib_none().0)) } } @@ -364,8 +364,8 @@ impl> PadExt for O { // unsafe { TODO: call ffi:gst_pad_iterate_internal_links_default() } //} - #[cfg(any(feature = "v1_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] fn link_maybe_ghosting>(&self, sink: &P) -> Result<(), glib::error::BoolError> { unsafe { glib::glib_result_from_gboolean!( @@ -378,8 +378,8 @@ impl> PadExt for O { } } - #[cfg(any(feature = "v1_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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 0bf62f813..3853c4bff 100644 --- a/gstreamer/src/auto/pad_template.rs +++ b/gstreamer/src/auto/pad_template.rs @@ -44,8 +44,8 @@ impl PadTemplate { } } - #[cfg(any(feature = "v1_14", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] pub fn with_gtype( name_template: &str, direction: PadDirection, @@ -70,8 +70,8 @@ impl PadTemplate { unsafe { from_glib_full(ffi::gst_pad_template_get_caps(self.to_glib_none().0)) } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] pub fn get_documentation_caps(&self) -> Option { unsafe { from_glib_full(ffi::gst_pad_template_get_documentation_caps( @@ -86,8 +86,8 @@ impl PadTemplate { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] pub fn set_documentation_caps(&self, caps: &Caps) { unsafe { ffi::gst_pad_template_set_documentation_caps( @@ -112,8 +112,8 @@ impl PadTemplate { } } - #[cfg(any(feature = "v1_14", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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 1f9cfb4dc..5342d36e4 100644 --- a/gstreamer/src/auto/stream.rs +++ b/gstreamer/src/auto/stream.rs @@ -2,34 +2,34 @@ // from gir-files (https://github.com/gtk-rs/gir-files) // DO NOT EDIT -#[cfg(any(feature = "v1_10", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] +#[cfg(any(feature = "v1_10", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] use crate::Caps; use crate::Object; -#[cfg(any(feature = "v1_10", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] +#[cfg(any(feature = "v1_10", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] use crate::StreamFlags; -#[cfg(any(feature = "v1_10", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] +#[cfg(any(feature = "v1_10", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] use crate::StreamType; -#[cfg(any(feature = "v1_10", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] +#[cfg(any(feature = "v1_10", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] use crate::TagList; -#[cfg(any(feature = "v1_10", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] +#[cfg(any(feature = "v1_10", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), 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")))] +#[cfg(any(feature = "v1_10", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), 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")))] +#[cfg(any(feature = "v1_10", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), 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")))] +#[cfg(any(feature = "v1_10", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), 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")))] +#[cfg(any(feature = "v1_10", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] use std::mem::transmute; glib::glib_wrapper! { @@ -41,70 +41,70 @@ glib::glib_wrapper! { } impl Stream { - #[cfg(any(feature = "v1_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] pub fn get_caps(&self) -> Option { unsafe { from_glib_full(ffi::gst_stream_get_caps(self.to_glib_none().0)) } } - #[cfg(any(feature = "v1_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] pub fn get_stream_flags(&self) -> StreamFlags { unsafe { from_glib(ffi::gst_stream_get_stream_flags(self.to_glib_none().0)) } } - #[cfg(any(feature = "v1_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] pub fn get_stream_id(&self) -> Option { unsafe { from_glib_none(ffi::gst_stream_get_stream_id(self.to_glib_none().0)) } } - #[cfg(any(feature = "v1_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] pub fn get_stream_type(&self) -> StreamType { unsafe { from_glib(ffi::gst_stream_get_stream_type(self.to_glib_none().0)) } } - #[cfg(any(feature = "v1_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] pub fn get_tags(&self) -> Option { unsafe { from_glib_full(ffi::gst_stream_get_tags(self.to_glib_none().0)) } } - #[cfg(any(feature = "v1_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] pub fn set_caps(&self, caps: Option<&Caps>) { unsafe { ffi::gst_stream_set_caps(self.to_glib_none().0, caps.to_glib_none().0); } } - #[cfg(any(feature = "v1_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] pub fn set_stream_flags(&self, flags: StreamFlags) { unsafe { ffi::gst_stream_set_stream_flags(self.to_glib_none().0, flags.to_glib()); } } - #[cfg(any(feature = "v1_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] pub fn set_stream_type(&self, stream_type: StreamType) { unsafe { ffi::gst_stream_set_stream_type(self.to_glib_none().0, stream_type.to_glib()); } } - #[cfg(any(feature = "v1_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] pub fn set_tags(&self, tags: Option<&TagList>) { unsafe { ffi::gst_stream_set_tags(self.to_glib_none().0, tags.to_glib_none().0); } } - #[cfg(any(feature = "v1_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] pub fn connect_property_caps_notify( &self, f: F, @@ -130,8 +130,8 @@ impl Stream { } } - #[cfg(any(feature = "v1_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] pub fn connect_property_stream_flags_notify( &self, f: F, @@ -159,8 +159,8 @@ impl Stream { } } - #[cfg(any(feature = "v1_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] pub fn connect_property_stream_type_notify( &self, f: F, @@ -188,8 +188,8 @@ impl Stream { } } - #[cfg(any(feature = "v1_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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 7c6b2bbf3..02f4c27ef 100644 --- a/gstreamer/src/auto/stream_collection.rs +++ b/gstreamer/src/auto/stream_collection.rs @@ -3,8 +3,8 @@ // DO NOT EDIT use crate::Object; -#[cfg(any(feature = "v1_10", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] +#[cfg(any(feature = "v1_10", all(not(doctest), doc)))] +#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] use crate::Stream; use glib::translate::*; @@ -17,14 +17,14 @@ glib::glib_wrapper! { } impl StreamCollection { - #[cfg(any(feature = "v1_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] pub fn get_size(&self) -> u32 { unsafe { ffi::gst_stream_collection_get_size(self.to_glib_none().0) } } - #[cfg(any(feature = "v1_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] pub fn get_stream(&self, index: u32) -> Option { unsafe { from_glib_none(ffi::gst_stream_collection_get_stream( @@ -34,8 +34,8 @@ impl StreamCollection { } } - #[cfg(any(feature = "v1_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] pub fn get_upstream_id(&self) -> Option { unsafe { from_glib_none(ffi::gst_stream_collection_get_upstream_id( diff --git a/gstreamer/src/auto/versions.txt b/gstreamer/src/auto/versions.txt index f7a42b211..94b4315ac 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 @ 694b4b8) -from gir-files (https://github.com/gtk-rs/gir-files @ 58bda97d) +Generated by gir (https://github.com/gtk-rs/gir @ b16d610) +from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) diff --git a/gstreamer/sys/Cargo.toml b/gstreamer/sys/Cargo.toml index 71427b5b3..8af4a9768 100644 --- a/gstreamer/sys/Cargo.toml +++ b/gstreamer/sys/Cargo.toml @@ -47,7 +47,7 @@ repository = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs" version = "0.17.0" edition = "2018" [package.metadata.docs.rs] -features = ["dox"] +features = [] [package.metadata.system-deps.gstreamer_1_0] name = "gstreamer-1.0" version = "1.8" diff --git a/gstreamer/sys/build.rs b/gstreamer/sys/build.rs index c69299ced..f3f73eb6b 100644 --- a/gstreamer/sys/build.rs +++ b/gstreamer/sys/build.rs @@ -1,14 +1,14 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 694b4b8) -// from gir-files (https://github.com/gtk-rs/gir-files @ 58bda97d) +// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) +// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) // DO NOT EDIT -#[cfg(not(feature = "dox"))] +#[cfg(any(not(doc), doctest))] use std::process; -#[cfg(feature = "dox")] +#[cfg(all(not(doctest), doc))] fn main() {} // prevent linking libraries to avoid documentation failure -#[cfg(not(feature = "dox"))] +#[cfg(any(not(doc), doctest))] fn main() { if let Err(s) = system_deps::Config::new().probe() { let _ = eprintln!("{}", s); diff --git a/gstreamer/sys/src/lib.rs b/gstreamer/sys/src/lib.rs index eabd98b5d..736afb5c6 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 @ 694b4b8) -// from gir-files (https://github.com/gtk-rs/gir-files @ 58bda97d) +// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) +// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) // DO NOT EDIT #![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)] @@ -8,7 +8,7 @@ clippy::type_complexity, clippy::unreadable_literal )] -#![cfg_attr(feature = "dox", feature(doc_cfg))] +#![cfg_attr(all(not(doctest), doc), feature(doc_cfg))] use glib_sys as glib; use gobject_sys as gobject; @@ -3865,8 +3865,8 @@ extern "C" { //========================================================================= // GstPromiseResult //========================================================================= - #[cfg(any(feature = "v1_14", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] pub fn gst_promise_result_get_type() -> GType; //========================================================================= @@ -3912,8 +3912,8 @@ extern "C" { // GstStateChange //========================================================================= pub fn gst_state_change_get_type() -> GType; - #[cfg(any(feature = "v1_14", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] pub fn gst_state_change_get_name(transition: GstStateChange) -> *const c_char; //========================================================================= @@ -4124,8 +4124,8 @@ extern "C" { //========================================================================= // GstPluginAPIFlags //========================================================================= - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] pub fn gst_plugin_api_flags_get_type() -> GType; //========================================================================= @@ -4161,8 +4161,8 @@ extern "C" { //========================================================================= // GstStackTraceFlags //========================================================================= - #[cfg(any(feature = "v1_12", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] pub fn gst_stack_trace_flags_get_type() -> GType; //========================================================================= @@ -4173,11 +4173,11 @@ extern "C" { //========================================================================= // GstStreamType //========================================================================= - #[cfg(any(feature = "v1_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] pub fn gst_stream_type_get_name(stype: GstStreamType) -> *const c_char; //========================================================================= @@ -4218,8 +4218,8 @@ extern "C" { params: *mut GstAllocationParams, ) -> *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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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, @@ -4243,8 +4243,8 @@ extern "C" { buffer: *mut GstBuffer, info: *mut GstStructure, ) -> *mut GstProtectionMeta; - #[cfg(any(feature = "v1_14", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] pub fn gst_buffer_add_reference_timestamp_meta( buffer: *mut GstBuffer, reference: *mut GstCaps, @@ -4259,8 +4259,8 @@ extern "C" { offset: ssize_t, size: ssize_t, ) -> *mut GstBuffer; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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( @@ -4309,8 +4309,8 @@ extern "C" { user_data: gpointer, ) -> 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")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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( @@ -4319,11 +4319,11 @@ extern "C" { length: c_int, ) -> *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")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] pub fn gst_buffer_get_reference_timestamp_meta( buffer: *mut GstBuffer, reference: *mut GstCaps, @@ -4341,8 +4341,8 @@ extern "C" { offset: *mut size_t, maxsize: *mut size_t, ) -> size_t; - #[cfg(any(feature = "v1_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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; @@ -4352,8 +4352,8 @@ extern "C" { length: c_int, ) -> 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")))] + #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] pub fn gst_buffer_iterate_meta_filtered( buffer: *mut GstBuffer, state: *mut gpointer, @@ -4386,8 +4386,8 @@ extern "C" { pub fn gst_buffer_n_memory(buffer: *mut GstBuffer) -> c_uint; 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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); @@ -4409,20 +4409,20 @@ extern "C" { offset: ssize_t, size: ssize_t, ) -> gboolean; - #[cfg(any(feature = "v1_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] pub fn gst_buffer_replace(obuf: *mut *mut GstBuffer, nbuf: *mut GstBuffer) -> gboolean; //========================================================================= @@ -4431,11 +4431,11 @@ extern "C" { pub fn gst_buffer_list_get_type() -> GType; 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")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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( @@ -4444,17 +4444,17 @@ extern "C" { user_data: gpointer, ) -> 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")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] pub fn gst_buffer_list_unref(list: *mut GstBufferList); //========================================================================= @@ -4479,11 +4479,11 @@ extern "C" { features: *mut GstCapsFeatures, ); 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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, @@ -4538,13 +4538,13 @@ extern "C" { features: *mut GstCapsFeatures, ) -> *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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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); @@ -4558,15 +4558,15 @@ extern "C" { pub fn gst_caps_subtract(minuend: *mut GstCaps, subtrahend: *mut GstCaps) -> *mut GstCaps; 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] pub fn gst_caps_take(old_caps: *mut *mut GstCaps, new_caps: *mut GstCaps) -> gboolean; //========================================================================= @@ -4641,12 +4641,12 @@ extern "C" { pub fn gst_date_time_new_from_g_date_time(dt: *mut glib::GDateTime) -> *mut GstDateTime; 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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, @@ -4748,8 +4748,8 @@ extern "C" { klass: *mut GstElementClass, static_templ: *mut GstStaticPadTemplate, ); - #[cfg(any(feature = "v1_14", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] pub fn gst_element_class_add_static_pad_template_with_gtype( klass: *mut GstElementClass, static_templ: *mut GstStaticPadTemplate, @@ -4798,14 +4798,14 @@ extern "C" { pub fn gst_event_new_flush_start() -> *mut GstEvent; 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] pub fn gst_event_new_instant_rate_sync_time( rate_multiplier: c_double, running_time: GstClockTime, @@ -4836,8 +4836,8 @@ extern "C" { ) -> *mut GstEvent; 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")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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( @@ -4847,26 +4847,26 @@ extern "C" { flush: gboolean, intermediate: gboolean, ) -> *mut GstEvent; - #[cfg(any(feature = "v1_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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; pub fn gst_event_get_seqnum(event: *mut GstEvent) -> u32; 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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, @@ -4883,15 +4883,15 @@ extern "C" { duration: *mut GstClockTime, ); 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] pub fn gst_event_parse_instant_rate_sync_time( event: *mut GstEvent, rate_multiplier: *mut c_double, @@ -4922,8 +4922,8 @@ extern "C" { stop_type: *mut GstSeekType, stop: *mut i64, ); - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] pub fn gst_event_parse_seek_trickmode_interval( event: *mut GstEvent, interval: *mut GstClockTime, @@ -4934,8 +4934,8 @@ extern "C" { format: *mut GstFormat, position: *mut i64, ); - #[cfg(any(feature = "v1_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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( @@ -4946,48 +4946,48 @@ extern "C" { flush: *mut gboolean, intermediate: *mut gboolean, ); - #[cfg(any(feature = "v1_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] pub fn gst_event_take(old_event: *mut *mut GstEvent, new_event: *mut GstEvent) -> gboolean; //========================================================================= @@ -5091,14 +5091,14 @@ extern "C" { info: *mut GstMapInfo, flags: GstMapFlags, ) -> gboolean; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] pub fn gst_memory_unref(memory: *mut GstMemory); //========================================================================= @@ -5131,8 +5131,8 @@ extern "C" { src: *mut GstObject, device: *mut GstDevice, ) -> *mut GstMessage; - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] pub fn gst_message_new_device_changed( src: *mut GstObject, device: *mut GstDevice, @@ -5153,8 +5153,8 @@ extern "C" { error: *mut glib::GError, debug: *const c_char, ) -> *mut GstMessage; - #[cfg(any(feature = "v1_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] pub fn gst_message_new_error_with_details( src: *mut GstObject, error: *mut glib::GError, @@ -5170,16 +5170,16 @@ extern "C" { error: *mut glib::GError, debug: *const c_char, ) -> *mut GstMessage; - #[cfg(any(feature = "v1_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] pub fn gst_message_new_info_with_details( src: *mut GstObject, error: *mut glib::GError, debug: *const c_char, details: *mut GstStructure, ) -> *mut GstMessage; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] pub fn gst_message_new_instant_rate_request( src: *mut GstObject, rate_multiplier: c_double, @@ -5196,8 +5196,8 @@ extern "C" { code: *const c_char, text: *const c_char, ) -> *mut GstMessage; - #[cfg(any(feature = "v1_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] pub fn gst_message_new_property_notify( src: *mut GstObject, property_name: *const c_char, @@ -5211,8 +5211,8 @@ extern "C" { timestamp: u64, duration: u64, ) -> *mut GstMessage; - #[cfg(any(feature = "v1_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] pub fn gst_message_new_redirect( src: *mut GstObject, location: *const c_char, @@ -5260,8 +5260,8 @@ extern "C" { flush: gboolean, intermediate: gboolean, ) -> *mut GstMessage; - #[cfg(any(feature = "v1_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] pub fn gst_message_new_stream_collection( src: *mut GstObject, collection: *mut GstStreamCollection, @@ -5272,8 +5272,8 @@ extern "C" { type_: GstStreamStatusType, owner: *mut GstElement, ) -> *mut GstMessage; - #[cfg(any(feature = "v1_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] pub fn gst_message_new_streams_selected( src: *mut GstObject, collection: *mut GstStreamCollection, @@ -5295,27 +5295,27 @@ extern "C" { error: *mut glib::GError, debug: *const c_char, ) -> *mut GstMessage; - #[cfg(any(feature = "v1_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] pub fn gst_message_new_warning_with_details( src: *mut GstObject, error: *mut glib::GError, debug: *const c_char, details: *mut GstStructure, ) -> *mut GstMessage; - #[cfg(any(feature = "v1_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] pub fn gst_message_add_redirect_entry( message: *mut GstMessage, location: *const c_char, tag_list: *mut GstTagList, entry_struct: *const GstStructure, ); - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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) @@ -5342,8 +5342,8 @@ extern "C" { context_type: *mut *const c_char, ) -> 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] pub fn gst_message_parse_device_changed( message: *mut GstMessage, device: *mut *mut GstDevice, @@ -5355,8 +5355,8 @@ extern "C" { gerror: *mut *mut glib::GError, debug: *mut *mut c_char, ); - #[cfg(any(feature = "v1_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] pub fn gst_message_parse_error_details( message: *mut GstMessage, structure: *mut *const GstStructure, @@ -5368,14 +5368,14 @@ extern "C" { gerror: *mut *mut glib::GError, debug: *mut *mut c_char, ); - #[cfg(any(feature = "v1_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] pub fn gst_message_parse_instant_rate_request( message: *mut GstMessage, rate_multiplier: *mut c_double, @@ -5387,8 +5387,8 @@ extern "C" { code: *mut *mut c_char, text: *mut *mut c_char, ); - #[cfg(any(feature = "v1_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] pub fn gst_message_parse_property_notify( message: *mut GstMessage, object: *mut *mut GstObject, @@ -5415,8 +5415,8 @@ extern "C" { proportion: *mut c_double, quality: *mut c_int, ); - #[cfg(any(feature = "v1_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] pub fn gst_message_parse_redirect_entry( message: *mut GstMessage, entry_index: size_t, @@ -5461,8 +5461,8 @@ extern "C" { flush: *mut gboolean, intermediate: *mut gboolean, ); - #[cfg(any(feature = "v1_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] pub fn gst_message_parse_stream_collection( message: *mut GstMessage, collection: *mut *mut GstStreamCollection, @@ -5472,8 +5472,8 @@ extern "C" { type_: *mut GstStreamStatusType, owner: *mut *mut GstElement, ); - #[cfg(any(feature = "v1_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] pub fn gst_message_parse_streams_selected( message: *mut GstMessage, collection: *mut *mut GstStreamCollection, @@ -5495,14 +5495,14 @@ extern "C" { gerror: *mut *mut glib::GError, debug: *mut *mut c_char, ); - #[cfg(any(feature = "v1_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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, @@ -5529,26 +5529,26 @@ extern "C" { message: *mut GstMessage, object: *const gobject::GValue, ); - #[cfg(any(feature = "v1_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] pub fn gst_message_replace( old_message: *mut *mut GstMessage, new_message: *mut GstMessage, @@ -5557,11 +5557,11 @@ extern "C" { //========================================================================= // GstMeta //========================================================================= - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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; @@ -5579,8 +5579,8 @@ extern "C" { //========================================================================= // GstMiniObject //========================================================================= - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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; @@ -5596,8 +5596,8 @@ extern "C" { pub fn gst_mini_object_lock(object: *mut GstMiniObject, flags: GstLockFlags) -> gboolean; 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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, @@ -5647,8 +5647,8 @@ 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")))] + #[cfg(any(feature = "v1_12_1", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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( @@ -5661,8 +5661,8 @@ extern "C" { pub fn gst_poll_add_fd(set: *mut GstPoll, fd: *mut GstPollFD) -> gboolean; 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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( @@ -5677,8 +5677,8 @@ extern "C" { ) -> gboolean; 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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); @@ -5701,33 +5701,33 @@ extern "C" { //========================================================================= // GstPromise //========================================================================= - #[cfg(any(feature = "v1_14", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] pub fn gst_promise_wait(promise: *mut GstPromise) -> GstPromiseResult; //========================================================================= @@ -5741,8 +5741,8 @@ extern "C" { pub fn gst_query_get_type() -> GType; 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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; @@ -5782,8 +5782,8 @@ 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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, @@ -5809,8 +5809,8 @@ extern "C" { caps: *mut *mut GstCaps, need_pool: *mut gboolean, ); - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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, @@ -5916,8 +5916,8 @@ extern "C" { pub fn gst_query_remove_nth_allocation_param(query: *mut GstQuery, index: c_uint); 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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( @@ -5995,19 +5995,19 @@ extern "C" { pub fn gst_query_set_uri(query: *mut GstQuery, uri: *const c_char); 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] pub fn gst_reference_timestamp_meta_get_info() -> *const GstMetaInfo; //========================================================================= @@ -6020,32 +6020,32 @@ extern "C" { segment: *const GstSegment, info: *mut GstStructure, ) -> *mut GstSample; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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; pub fn gst_sample_get_caps(sample: *mut GstSample) -> *mut GstCaps; 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] pub fn gst_sample_unref(sample: *mut GstSample); //========================================================================= @@ -6225,8 +6225,8 @@ extern "C" { first_fieldname: *const c_char, ... ) -> gboolean; - #[cfg(any(feature = "v1_12", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] pub fn gst_structure_get_array( structure: *mut GstStructure, fieldname: *const c_char, @@ -6289,8 +6289,8 @@ extern "C" { fieldname: *const c_char, value: *mut i64, ) -> gboolean; - #[cfg(any(feature = "v1_12", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] pub fn gst_structure_get_list( structure: *mut GstStructure, fieldname: *const c_char, @@ -6385,15 +6385,15 @@ extern "C" { pub fn gst_structure_remove_fields(structure: *mut GstStructure, fieldname: *const c_char, ...); //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")))] + #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] pub fn gst_structure_set_list( structure: *mut GstStructure, fieldname: *const c_char, @@ -6416,8 +6416,8 @@ extern "C" { value: *mut gobject::GValue, ); 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] pub fn gst_structure_take( oldstr_ptr: *mut *mut GstStructure, newstr: *mut GstStructure, @@ -6446,8 +6446,8 @@ extern "C" { tag: *const c_char, ... ); - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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, @@ -6613,14 +6613,14 @@ extern "C" { index: c_uint, value: *mut *const c_char, ) -> gboolean; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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, @@ -6722,8 +6722,8 @@ extern "C" { pub fn gst_uri_from_string_with_base(base: *mut GstUri, uri: *const c_char) -> *mut GstUri; 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")))] + #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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; @@ -6774,8 +6774,8 @@ extern "C" { pub fn gst_uri_to_string(uri: *const GstUri) -> *mut c_char; 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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; @@ -6811,11 +6811,11 @@ extern "C" { pub fn gst_bin_get_by_name(bin: *mut GstBin, name: *const c_char) -> *mut GstElement; 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")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] pub fn gst_bin_iterate_all_by_element_factory_name( bin: *mut GstBin, factory_name: *const c_char, @@ -6829,8 +6829,8 @@ extern "C" { pub fn gst_bin_recalculate_latency(bin: *mut GstBin) -> gboolean; 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")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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; @@ -6925,8 +6925,8 @@ extern "C" { pub fn gst_bus_create_watch(bus: *mut GstBus) -> *mut glib::GSource; 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")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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; @@ -6964,15 +6964,15 @@ 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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( @@ -7166,8 +7166,8 @@ extern "C" { ) -> gboolean; 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] pub fn gst_device_provider_device_changed( provider: *mut GstDeviceProvider, device: *mut GstDevice, @@ -7185,8 +7185,8 @@ extern "C" { pub fn gst_device_provider_get_hidden_providers( provider: *mut GstDeviceProvider, ) -> *mut *mut c_char; - #[cfg(any(feature = "v1_14", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] pub fn gst_device_provider_get_metadata( provider: *mut GstDeviceProvider, key: *const c_char, @@ -7240,11 +7240,11 @@ extern "C" { //========================================================================= // GstDynamicTypeFactory //========================================================================= - #[cfg(any(feature = "v1_12", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] pub fn gst_dynamic_type_factory_load(factoryname: *const c_char) -> GType; //========================================================================= @@ -7269,22 +7269,22 @@ extern "C" { pub fn gst_element_state_get_name(state: GstState) -> *const c_char; 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")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] pub fn gst_element_call_async( element: *mut GstElement, func: GstElementCallAsyncFunc, @@ -7300,22 +7300,22 @@ extern "C" { ret: GstStateChangeReturn, ) -> 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")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] pub fn gst_element_foreach_src_pad( element: *mut GstElement, func: GstElementForeachPadFunc, @@ -7342,24 +7342,24 @@ extern "C" { context_type: *const c_char, ) -> *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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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, @@ -7421,8 +7421,8 @@ extern "C" { function: *const c_char, line: c_int, ); - #[cfg(any(feature = "v1_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] pub fn gst_element_message_full_with_details( element: *mut GstElement, type_: GstMessageType, @@ -7459,8 +7459,8 @@ extern "C" { ) -> gboolean; 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")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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, @@ -7766,20 +7766,20 @@ extern "C" { size: c_uint, buffer: *mut *mut GstBuffer, ) -> GstFlowReturn; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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, event_type: GstEventType, idx: c_uint, ) -> *mut GstEvent; - #[cfg(any(feature = "v1_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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; @@ -7797,11 +7797,11 @@ extern "C" { sinkpad: *mut GstPad, flags: GstPadLinkCheck, ) -> GstPadLinkReturn; - #[cfg(any(feature = "v1_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] pub fn gst_pad_link_maybe_ghosting_full( src: *mut GstPad, sink: *mut GstPad, @@ -7959,14 +7959,14 @@ extern "C" { presence: GstPadPresence, caps: *mut GstCaps, ) -> *mut GstPadTemplate; - #[cfg(any(feature = "v1_14", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] pub fn gst_pad_template_new_with_gtype( name_template: *const c_char, direction: GstPadDirection, @@ -7975,19 +7975,19 @@ extern "C" { pad_type: GType, ) -> *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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] pub fn gst_param_spec_array_get_type() -> GType; //========================================================================= @@ -8188,71 +8188,71 @@ extern "C" { //========================================================================= // GstStream //========================================================================= - #[cfg(any(feature = "v1_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] pub fn gst_stream_new( stream_id: *const c_char, caps: *mut GstCaps, type_: GstStreamType, flags: GstStreamFlags, ) -> *mut GstStream; - #[cfg(any(feature = "v1_10", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))] pub fn gst_stream_collection_get_upstream_id( collection: *mut GstStreamCollection, ) -> *const c_char; @@ -8278,8 +8278,8 @@ extern "C" { pub fn gst_task_get_state(task: *mut GstTask) -> GstTaskState; 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] pub fn gst_task_resume(task: *mut GstTask) -> gboolean; pub fn gst_task_set_enter_callback( task: *mut GstTask, @@ -8318,8 +8318,8 @@ extern "C" { // GstTracer //========================================================================= pub fn gst_tracer_get_type() -> GType; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] pub fn gst_tracer_register( plugin: *mut GstPlugin, name: *const c_char, @@ -8331,8 +8331,8 @@ 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")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] pub fn gst_tracer_factory_get_tracer_type(factory: *mut GstTracerFactory) -> GType; //========================================================================= @@ -8378,8 +8378,8 @@ extern "C" { value: *const gobject::GValue, index: c_uint, ) -> *const gobject::GValue; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] pub fn gst_value_array_init( value: *mut gobject::GValue, prealloc: c_uint, @@ -8411,8 +8411,8 @@ extern "C" { value: *const gobject::GValue, index: c_uint, ) -> *const gobject::GValue; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] pub fn gst_value_list_init( value: *mut gobject::GValue, prealloc: c_uint, @@ -8559,8 +8559,8 @@ extern "C" { //========================================================================= // Other functions //========================================================================= - #[cfg(any(feature = "v1_12", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] pub fn gst_calculate_linear_regression( xy: *const GstClockTime, temp: *mut GstClockTime, @@ -8571,22 +8571,22 @@ extern "C" { xbase: *mut GstClockTime, r_squared: *mut c_double, ) -> gboolean; - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_16", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))] pub fn gst_clear_structure(structure_ptr: *mut *mut GstStructure); pub fn gst_debug_add_log_function( func: GstLogFunction, user_data: gpointer, notify: glib::GDestroyNotify, ); - #[cfg(any(feature = "v1_14", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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, @@ -8607,8 +8607,8 @@ extern "C" { pub fn gst_debug_get_all_categories() -> *mut glib::GSList; 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")))] + #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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; @@ -8632,8 +8632,8 @@ extern "C" { message: *mut GstDebugMessage, user_data: gpointer, ); - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] pub fn gst_debug_log_get_line( category: *mut GstDebugCategory, level: GstDebugLevel, @@ -8647,11 +8647,11 @@ extern "C" { pub fn gst_debug_print_stack_trace(); 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")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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); @@ -8662,8 +8662,8 @@ extern "C" { pub fn gst_debug_set_threshold_from_string(list: *const c_char, reset: gboolean); 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")))] + #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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( @@ -8673,8 +8673,8 @@ extern "C" { pub fn gst_flow_get_name(ret: GstFlowReturn) -> *const c_char; 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")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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; @@ -8688,11 +8688,11 @@ extern "C" { pub fn gst_init_get_option_group() -> *mut glib::GOptionGroup; 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")))] + #[cfg(any(feature = "v1_10", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))] pub fn gst_param_spec_array( name: *const c_char, nick: *const c_char, @@ -8745,27 +8745,27 @@ extern "C" { flags: GstParseFlags, error: *mut *mut glib::GError, ) -> *mut GstElement; - #[cfg(any(feature = "v1_12", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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); @@ -8798,8 +8798,8 @@ extern "C" { blurb: *const c_char, func: GstTagMergeFunc, ); - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))] pub fn gst_tracing_get_active_tracers() -> *mut glib::GList; pub fn gst_tracing_register_hook( tracer: *mut GstTracer, @@ -8807,11 +8807,11 @@ extern "C" { func: gobject::GCallback, ); pub fn gst_type_find_get_type() -> GType; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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")))] + #[cfg(any(feature = "v1_18", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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( @@ -8824,8 +8824,8 @@ extern "C" { user_data: gpointer, ) -> 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")))] + #[cfg(any(feature = "v1_14", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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( @@ -8847,8 +8847,8 @@ extern "C" { ) -> gboolean; 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")))] + #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))] pub fn gst_util_get_object_array( object: *mut gobject::GObject, name: *const c_char, @@ -8866,8 +8866,8 @@ extern "C" { name: *const c_char, value: *const c_char, ); - #[cfg(any(feature = "v1_12", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] + #[cfg(any(feature = "v1_12", all(not(doctest), doc)))] + #[cfg_attr(all(not(doctest), doc), 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 0567465ce..778d92f71 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 @ 694b4b8) -// from gir-files (https://github.com/gtk-rs/gir-files @ 58bda97d) +// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) +// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) // DO NOT EDIT use gstreamer_sys::*; diff --git a/gstreamer/sys/tests/constant.c b/gstreamer/sys/tests/constant.c index 63be6f6a4..819aa4a30 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 @ 694b4b8) -// from gir-files (https://github.com/gtk-rs/gir-files @ 58bda97d) +// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) +// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer/sys/tests/layout.c b/gstreamer/sys/tests/layout.c index 73f80e89d..ad8a5a3ff 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 @ 694b4b8) -// from gir-files (https://github.com/gtk-rs/gir-files @ 58bda97d) +// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610) +// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2) // DO NOT EDIT #include "manual.h"