From 40578ae7e9d4e51a1fce8c503b7755869bb4f55d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Thu, 4 May 2023 08:51:18 +0300 Subject: [PATCH] Regenerate with latest gir Part-of: --- .../src/auto/drm_dumb_allocator.rs | 8 +- gstreamer-allocators/src/auto/mod.rs | 24 +- gstreamer-allocators/src/auto/versions.txt | 2 +- gstreamer-allocators/sys/Cargo.toml | 2 +- gstreamer-allocators/sys/build.rs | 6 +- .../sys/src/auto/versions.txt | 2 +- gstreamer-allocators/sys/src/lib.rs | 38 +- gstreamer-app/src/auto/app_sink.rs | 8 +- gstreamer-app/src/auto/app_src.rs | 68 +- gstreamer-app/src/auto/enums.rs | 36 +- gstreamer-app/src/auto/mod.rs | 4 +- gstreamer-app/src/auto/versions.txt | 2 +- gstreamer-app/sys/Cargo.toml | 2 +- gstreamer-app/sys/build.rs | 6 +- gstreamer-app/sys/src/auto/versions.txt | 2 +- gstreamer-app/sys/src/lib.rs | 46 +- .../src/auto/audio_aggregator_pad.rs | 32 +- gstreamer-audio/src/auto/audio_decoder.rs | 16 +- gstreamer-audio/src/auto/versions.txt | 2 +- gstreamer-audio/sys/Cargo.toml | 2 +- gstreamer-audio/sys/build.rs | 6 +- gstreamer-audio/sys/src/auto/versions.txt | 2 +- gstreamer-audio/sys/src/lib.rs | 70 +- gstreamer-base/src/auto/aggregator.rs | 116 +-- gstreamer-base/src/auto/aggregator_pad.rs | 40 +- gstreamer-base/src/auto/base_sink.rs | 40 +- gstreamer-base/src/auto/base_src.rs | 24 +- gstreamer-base/src/auto/base_transform.rs | 8 +- gstreamer-base/src/auto/enums.rs | 40 +- gstreamer-base/src/auto/functions.rs | 4 +- gstreamer-base/src/auto/mod.rs | 4 +- gstreamer-base/src/auto/versions.txt | 2 +- gstreamer-base/sys/Cargo.toml | 2 +- gstreamer-base/sys/build.rs | 6 +- gstreamer-base/sys/src/auto/versions.txt | 2 +- gstreamer-base/sys/src/lib.rs | 230 +++--- gstreamer-check/src/auto/versions.txt | 2 +- gstreamer-check/sys/Cargo.toml | 2 +- gstreamer-check/sys/build.rs | 6 +- gstreamer-check/sys/src/auto/versions.txt | 2 +- gstreamer-check/sys/src/lib.rs | 22 +- gstreamer-controller/src/auto/versions.txt | 2 +- gstreamer-controller/sys/Cargo.toml | 2 +- gstreamer-controller/sys/build.rs | 6 +- .../sys/src/auto/versions.txt | 2 +- gstreamer-controller/sys/src/lib.rs | 2 +- .../src/auto/base_effect.rs | 20 +- gstreamer-editing-services/src/auto/clip.rs | 96 +-- .../src/auto/clip_asset.rs | 24 +- gstreamer-editing-services/src/auto/enums.rs | 32 +- gstreamer-editing-services/src/auto/flags.rs | 36 +- gstreamer-editing-services/src/auto/layer.rs | 48 +- gstreamer-editing-services/src/auto/marker.rs | 8 +- .../src/auto/marker_list.rs | 32 +- .../src/auto/meta_container.rs | 28 +- gstreamer-editing-services/src/auto/mod.rs | 28 +- .../src/auto/project.rs | 28 +- .../src/auto/source_clip.rs | 8 +- .../src/auto/timeline.rs | 68 +- .../src/auto/timeline_element.rs | 60 +- gstreamer-editing-services/src/auto/track.rs | 52 +- .../src/auto/track_element.rs | 64 +- .../src/auto/track_element_asset.rs | 12 +- .../src/auto/uri_clip_asset.rs | 46 +- .../src/auto/uri_source_asset.rs | 8 +- .../src/auto/versions.txt | 2 +- .../src/auto/video_source.rs | 16 +- gstreamer-editing-services/sys/Cargo.toml | 2 +- gstreamer-editing-services/sys/build.rs | 6 +- .../sys/src/auto/versions.txt | 2 +- gstreamer-editing-services/sys/src/lib.rs | 266 +++---- gstreamer-gl/egl/src/auto/versions.txt | 2 +- gstreamer-gl/egl/sys/Cargo.toml | 2 +- gstreamer-gl/egl/sys/build.rs | 6 +- gstreamer-gl/egl/sys/src/auto/versions.txt | 2 +- gstreamer-gl/egl/sys/src/lib.rs | 2 +- gstreamer-gl/src/auto/constants.rs | 4 +- gstreamer-gl/src/auto/enums.rs | 48 +- gstreamer-gl/src/auto/flags.rs | 56 +- gstreamer-gl/src/auto/gl_base_filter.rs | 16 +- gstreamer-gl/src/auto/gl_buffer_pool.rs | 12 +- gstreamer-gl/src/auto/gl_context.rs | 32 +- gstreamer-gl/src/auto/gl_display.rs | 12 +- .../src/auto/gl_overlay_compositor.rs | 20 +- gstreamer-gl/src/auto/gl_shader.rs | 16 +- gstreamer-gl/src/auto/gl_window.rs | 40 +- gstreamer-gl/src/auto/mod.rs | 24 +- gstreamer-gl/src/auto/versions.txt | 2 +- gstreamer-gl/sys/Cargo.toml | 2 +- gstreamer-gl/sys/build.rs | 6 +- gstreamer-gl/sys/src/auto/versions.txt | 2 +- gstreamer-gl/sys/src/lib.rs | 142 ++-- gstreamer-gl/wayland/src/auto/versions.txt | 2 +- gstreamer-gl/wayland/sys/Cargo.toml | 2 +- gstreamer-gl/wayland/sys/build.rs | 6 +- .../wayland/sys/src/auto/versions.txt | 2 +- gstreamer-gl/wayland/sys/src/lib.rs | 2 +- gstreamer-gl/x11/src/auto/versions.txt | 2 +- gstreamer-gl/x11/sys/Cargo.toml | 2 +- gstreamer-gl/x11/sys/build.rs | 6 +- gstreamer-gl/x11/sys/src/auto/versions.txt | 2 +- gstreamer-gl/x11/sys/src/lib.rs | 2 +- gstreamer-mpegts/src/auto/mod.rs | 8 +- gstreamer-mpegts/src/auto/versions.txt | 2 +- gstreamer-mpegts/sys/Cargo.toml | 2 +- gstreamer-mpegts/sys/build.rs | 6 +- gstreamer-mpegts/sys/src/auto/versions.txt | 2 +- gstreamer-mpegts/sys/src/lib.rs | 206 +++--- gstreamer-net/src/auto/versions.txt | 2 +- gstreamer-net/sys/Cargo.toml | 2 +- gstreamer-net/sys/build.rs | 6 +- gstreamer-net/sys/src/auto/versions.txt | 2 +- gstreamer-net/sys/src/lib.rs | 6 +- gstreamer-pbutils/src/auto/discoverer.rs | 12 +- .../src/auto/discoverer_container_info.rs | 4 +- .../src/auto/discoverer_stream_info.rs | 8 +- .../src/auto/encoding_profile.rs | 24 +- gstreamer-pbutils/src/auto/encoding_target.rs | 4 +- gstreamer-pbutils/src/auto/flags.rs | 40 +- gstreamer-pbutils/src/auto/functions.rs | 4 +- gstreamer-pbutils/src/auto/mod.rs | 4 +- gstreamer-pbutils/src/auto/versions.txt | 2 +- gstreamer-pbutils/sys/Cargo.toml | 2 +- gstreamer-pbutils/sys/build.rs | 6 +- gstreamer-pbutils/sys/src/auto/versions.txt | 2 +- gstreamer-pbutils/sys/src/lib.rs | 58 +- gstreamer-play/src/auto/versions.txt | 2 +- gstreamer-play/sys/Cargo.toml | 2 +- gstreamer-play/sys/build.rs | 6 +- gstreamer-play/sys/src/auto/versions.txt | 2 +- gstreamer-play/sys/src/lib.rs | 2 +- gstreamer-player/src/auto/player.rs | 12 +- gstreamer-player/src/auto/versions.txt | 2 +- gstreamer-player/sys/Cargo.toml | 2 +- gstreamer-player/sys/build.rs | 6 +- gstreamer-player/sys/src/auto/versions.txt | 2 +- gstreamer-player/sys/src/lib.rs | 10 +- gstreamer-rtp/src/auto/constants.rs | 8 +- gstreamer-rtp/src/auto/enums.rs | 92 +-- gstreamer-rtp/src/auto/flags.rs | 72 +- gstreamer-rtp/src/auto/functions.rs | 12 +- gstreamer-rtp/src/auto/mod.rs | 32 +- gstreamer-rtp/src/auto/rtp_base_depayload.rs | 132 ++-- gstreamer-rtp/src/auto/rtp_base_payload.rs | 172 ++--- gstreamer-rtp/src/auto/versions.txt | 2 +- gstreamer-rtp/sys/Cargo.toml | 2 +- gstreamer-rtp/sys/build.rs | 6 +- gstreamer-rtp/sys/src/auto/versions.txt | 2 +- gstreamer-rtp/sys/src/lib.rs | 282 ++++---- gstreamer-rtsp-server/src/auto/rtsp_auth.rs | 24 +- gstreamer-rtsp-server/src/auto/rtsp_client.rs | 36 +- gstreamer-rtsp-server/src/auto/rtsp_media.rs | 148 ++-- .../src/auto/rtsp_media_factory.rs | 88 +-- .../src/auto/rtsp_onvif_client.rs | 12 +- .../src/auto/rtsp_onvif_media_factory.rs | 16 +- gstreamer-rtsp-server/src/auto/rtsp_server.rs | 16 +- gstreamer-rtsp-server/src/auto/rtsp_stream.rs | 152 ++-- .../src/auto/rtsp_stream_transport.rs | 40 +- gstreamer-rtsp-server/src/auto/versions.txt | 2 +- gstreamer-rtsp-server/sys/Cargo.toml | 2 +- gstreamer-rtsp-server/sys/build.rs | 6 +- .../sys/src/auto/versions.txt | 2 +- gstreamer-rtsp-server/sys/src/lib.rs | 262 +++---- gstreamer-rtsp/src/auto/rtsp_url.rs | 4 +- gstreamer-rtsp/src/auto/versions.txt | 2 +- gstreamer-rtsp/sys/Cargo.toml | 2 +- gstreamer-rtsp/sys/build.rs | 6 +- gstreamer-rtsp/sys/src/auto/versions.txt | 2 +- gstreamer-rtsp/sys/src/lib.rs | 90 +-- gstreamer-sdp/src/auto/versions.txt | 2 +- gstreamer-sdp/sys/Cargo.toml | 2 +- gstreamer-sdp/sys/build.rs | 6 +- gstreamer-sdp/sys/src/auto/versions.txt | 2 +- gstreamer-sdp/sys/src/lib.rs | 6 +- gstreamer-tag/sys/Cargo.toml | 2 +- gstreamer-tag/sys/build.rs | 6 +- gstreamer-tag/sys/src/auto/versions.txt | 2 +- gstreamer-tag/sys/src/lib.rs | 2 +- gstreamer-validate/src/auto/versions.txt | 2 +- gstreamer-validate/sys/Cargo.toml | 2 +- gstreamer-validate/sys/build.rs | 6 +- gstreamer-validate/sys/src/auto/versions.txt | 2 +- gstreamer-validate/sys/src/lib.rs | 2 +- gstreamer-video/src/auto/enums.rs | 536 +++++++------- gstreamer-video/src/auto/flags.rs | 176 ++--- gstreamer-video/src/auto/mod.rs | 64 +- gstreamer-video/src/auto/navigation.rs | 16 +- gstreamer-video/src/auto/versions.txt | 2 +- gstreamer-video/src/auto/video_aggregator.rs | 8 +- gstreamer-video/src/auto/video_decoder.rs | 204 +++--- gstreamer-video/src/auto/video_encoder.rs | 24 +- gstreamer-video/sys/Cargo.toml | 2 +- gstreamer-video/sys/build.rs | 6 +- gstreamer-video/sys/src/auto/versions.txt | 2 +- gstreamer-video/sys/src/lib.rs | 682 +++++++++--------- gstreamer-webrtc/src/auto/enums.rs | 312 ++++---- gstreamer-webrtc/src/auto/mod.rs | 80 +- gstreamer-webrtc/src/auto/versions.txt | 2 +- .../src/auto/web_rtc_data_channel.rs | 12 +- gstreamer-webrtc/src/auto/web_rtcice.rs | 48 +- .../src/auto/web_rtcrtp_receiver.rs | 20 +- .../src/auto/web_rtcrtp_sender.rs | 32 +- .../src/auto/web_rtcrtp_transceiver.rs | 64 +- gstreamer-webrtc/sys/Cargo.toml | 2 +- gstreamer-webrtc/sys/build.rs | 6 +- gstreamer-webrtc/sys/src/auto/versions.txt | 2 +- gstreamer-webrtc/sys/src/lib.rs | 190 ++--- gstreamer/src/auto/child_proxy.rs | 8 +- gstreamer/src/auto/clock.rs | 8 +- gstreamer/src/auto/date_time.rs | 8 +- gstreamer/src/auto/device_provider.rs | 16 +- gstreamer/src/auto/element.rs | 8 +- gstreamer/src/auto/element_factory.rs | 4 +- gstreamer/src/auto/enums.rs | 24 +- gstreamer/src/auto/flags.rs | 120 +-- gstreamer/src/auto/mod.rs | 12 +- gstreamer/src/auto/pad.rs | 8 +- gstreamer/src/auto/task.rs | 8 +- gstreamer/src/auto/versions.txt | 2 +- gstreamer/sys/Cargo.toml | 2 +- gstreamer/sys/build.rs | 6 +- gstreamer/sys/src/auto/versions.txt | 2 +- gstreamer/sys/src/lib.rs | 634 ++++++++-------- 223 files changed, 4007 insertions(+), 4007 deletions(-) diff --git a/gstreamer-allocators/src/auto/drm_dumb_allocator.rs b/gstreamer-allocators/src/auto/drm_dumb_allocator.rs index f5b47c747..737be9101 100644 --- a/gstreamer-allocators/src/auto/drm_dumb_allocator.rs +++ b/gstreamer-allocators/src/auto/drm_dumb_allocator.rs @@ -41,15 +41,15 @@ impl DRMDumbAllocator { } } - #[cfg(any(feature = "v1_24", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_24")))] + #[cfg(feature = "v1_24")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))] #[doc(alias = "drm-device-path")] pub fn drm_device_path(&self) -> Option { glib::ObjectExt::property(self, "drm-device-path") } - #[cfg(any(feature = "v1_24", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_24")))] + #[cfg(feature = "v1_24")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))] #[doc(alias = "drm-fd")] pub fn drm_fd(&self) -> i32 { glib::ObjectExt::property(self, "drm-fd") diff --git a/gstreamer-allocators/src/auto/mod.rs b/gstreamer-allocators/src/auto/mod.rs index 6706dc8f6..2c4ef17b4 100644 --- a/gstreamer-allocators/src/auto/mod.rs +++ b/gstreamer-allocators/src/auto/mod.rs @@ -3,22 +3,22 @@ // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git) // DO NOT EDIT -#[cfg(any(target_os = "linux", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(target_os = "linux")))] -#[cfg(any(feature = "v1_24", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_24")))] +#[cfg(target_os = "linux")] +#[cfg_attr(docsrs, doc(cfg(target_os = "linux")))] +#[cfg(feature = "v1_24")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))] mod drm_dumb_allocator; -#[cfg(any(target_os = "linux", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(target_os = "linux")))] -#[cfg(any(feature = "v1_24", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_24")))] +#[cfg(target_os = "linux")] +#[cfg_attr(docsrs, doc(cfg(target_os = "linux")))] +#[cfg(feature = "v1_24")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))] pub use self::drm_dumb_allocator::DRMDumbAllocator; -#[cfg(any(target_os = "linux", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(target_os = "linux")))] +#[cfg(target_os = "linux")] +#[cfg_attr(docsrs, doc(cfg(target_os = "linux")))] mod dma_buf_allocator; -#[cfg(any(target_os = "linux", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(target_os = "linux")))] +#[cfg(target_os = "linux")] +#[cfg_attr(docsrs, doc(cfg(target_os = "linux")))] pub use self::dma_buf_allocator::DmaBufAllocator; mod fd_allocator; diff --git a/gstreamer-allocators/src/auto/versions.txt b/gstreamer-allocators/src/auto/versions.txt index 94b843e6a..f606c95a2 100644 --- a/gstreamer-allocators/src/auto/versions.txt +++ b/gstreamer-allocators/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2) +Generated by gir (https://github.com/gtk-rs/gir @ 719372782330) from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836) diff --git a/gstreamer-allocators/sys/Cargo.toml b/gstreamer-allocators/sys/Cargo.toml index 370792f95..8c7326c15 100644 --- a/gstreamer-allocators/sys/Cargo.toml +++ b/gstreamer-allocators/sys/Cargo.toml @@ -47,7 +47,7 @@ rust-version = "1.66" version = "0.21.0" [package.metadata.docs.rs] -features = ["dox"] +features = [] [package.metadata.system-deps.gstreamer_allocators_1_0] name = "gstreamer-allocators-1.0" diff --git a/gstreamer-allocators/sys/build.rs b/gstreamer-allocators/sys/build.rs index 40e2cc398..29420c9ee 100644 --- a/gstreamer-allocators/sys/build.rs +++ b/gstreamer-allocators/sys/build.rs @@ -3,13 +3,13 @@ // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git) // DO NOT EDIT -#[cfg(not(feature = "dox"))] +#[cfg(not(docsrs))] use std::process; -#[cfg(feature = "dox")] +#[cfg(docsrs)] fn main() {} // prevent linking libraries to avoid documentation failure -#[cfg(not(feature = "dox"))] +#[cfg(not(docsrs))] fn main() { if let Err(s) = system_deps::Config::new().probe() { println!("cargo:warning={s}"); diff --git a/gstreamer-allocators/sys/src/auto/versions.txt b/gstreamer-allocators/sys/src/auto/versions.txt index 94b843e6a..f606c95a2 100644 --- a/gstreamer-allocators/sys/src/auto/versions.txt +++ b/gstreamer-allocators/sys/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2) +Generated by gir (https://github.com/gtk-rs/gir @ 719372782330) from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836) diff --git a/gstreamer-allocators/sys/src/lib.rs b/gstreamer-allocators/sys/src/lib.rs index 3019bdafc..8dc19cea9 100644 --- a/gstreamer-allocators/sys/src/lib.rs +++ b/gstreamer-allocators/sys/src/lib.rs @@ -10,7 +10,7 @@ clippy::unreadable_literal, clippy::upper_case_acronyms )] -#![cfg_attr(feature = "dox", feature(doc_cfg))] +#![cfg_attr(docsrs, feature(doc_cfg))] #[allow(unused_imports)] use libc::{ @@ -155,19 +155,19 @@ extern "C" { //========================================================================= // GstDRMDumbAllocator //========================================================================= - #[cfg(any(feature = "v1_24", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_24")))] + #[cfg(feature = "v1_24")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))] pub fn gst_drm_dumb_allocator_get_type() -> GType; - #[cfg(any(feature = "v1_24", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_24")))] + #[cfg(feature = "v1_24")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))] pub fn gst_drm_dumb_allocator_new_with_device_path( drm_device_path: *const c_char, ) -> *mut gst::GstAllocator; - #[cfg(any(feature = "v1_24", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_24")))] + #[cfg(feature = "v1_24")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))] pub fn gst_drm_dumb_allocator_new_with_fd(drm_fd: c_int) -> *mut gst::GstAllocator; - #[cfg(any(feature = "v1_24", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_24")))] + #[cfg(feature = "v1_24")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))] pub fn gst_drm_dumb_allocator_alloc( allocator: *mut GstDRMDumbAllocator, drm_fourcc: u32, @@ -175,8 +175,8 @@ extern "C" { height: u32, out_pitch: *mut u32, ) -> *mut gst::GstMemory; - #[cfg(any(feature = "v1_24", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_24")))] + #[cfg(feature = "v1_24")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))] pub fn gst_drm_dumb_allocator_has_prime_export(allocator: *mut GstDRMDumbAllocator) -> gboolean; @@ -190,8 +190,8 @@ extern "C" { fd: c_int, size: size_t, ) -> *mut gst::GstMemory; - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] pub fn gst_dmabuf_allocator_alloc_with_flags( allocator: *mut gst::GstAllocator, fd: c_int, @@ -220,16 +220,16 @@ extern "C" { // Other functions //========================================================================= pub fn gst_dmabuf_memory_get_fd(mem: *mut gst::GstMemory) -> c_int; - #[cfg(any(feature = "v1_24", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_24")))] + #[cfg(feature = "v1_24")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))] pub fn gst_drm_dumb_memory_export_dmabuf(mem: *mut gst::GstMemory) -> *mut gst::GstMemory; - #[cfg(any(feature = "v1_24", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_24")))] + #[cfg(feature = "v1_24")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))] pub fn gst_drm_dumb_memory_get_handle(mem: *mut gst::GstMemory) -> u32; pub fn gst_fd_memory_get_fd(mem: *mut gst::GstMemory) -> c_int; pub fn gst_is_dmabuf_memory(mem: *mut gst::GstMemory) -> gboolean; - #[cfg(any(feature = "v1_24", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_24")))] + #[cfg(feature = "v1_24")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))] pub fn gst_is_drm_dumb_memory(mem: *mut gst::GstMemory) -> gboolean; pub fn gst_is_fd_memory(mem: *mut gst::GstMemory) -> gboolean; pub fn gst_is_phys_memory(mem: *mut gst::GstMemory) -> gboolean; diff --git a/gstreamer-app/src/auto/app_sink.rs b/gstreamer-app/src/auto/app_sink.rs index ba5d77a51..2b67a4bc7 100644 --- a/gstreamer-app/src/auto/app_sink.rs +++ b/gstreamer-app/src/auto/app_sink.rs @@ -59,8 +59,8 @@ impl AppSink { unsafe { from_glib(ffi::gst_app_sink_is_eos(self.to_glib_none().0)) } } - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(alias = "gst_app_sink_pull_object")] pub fn pull_object(&self) -> Result { unsafe { @@ -128,8 +128,8 @@ impl AppSink { } } - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(alias = "gst_app_sink_try_pull_object")] pub fn try_pull_object( &self, diff --git a/gstreamer-app/src/auto/app_src.rs b/gstreamer-app/src/auto/app_src.rs index ff8aa28c5..33e4dd54d 100644 --- a/gstreamer-app/src/auto/app_src.rs +++ b/gstreamer-app/src/auto/app_src.rs @@ -3,8 +3,8 @@ // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git) // DO NOT EDIT -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] use crate::AppLeakyType; use crate::AppStreamType; use glib::{ @@ -35,8 +35,8 @@ impl AppSrc { unsafe { from_glib_full(ffi::gst_app_src_get_caps(self.to_glib_none().0)) } } - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(alias = "gst_app_src_get_current_level_buffers")] #[doc(alias = "get_current_level_buffers")] pub fn current_level_buffers(&self) -> u64 { @@ -49,8 +49,8 @@ impl AppSrc { unsafe { ffi::gst_app_src_get_current_level_bytes(self.to_glib_none().0) } } - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(alias = "gst_app_src_get_current_level_time")] #[doc(alias = "get_current_level_time")] pub fn current_level_time(&self) -> Option { @@ -67,16 +67,16 @@ impl AppSrc { unsafe { from_glib(ffi::gst_app_src_get_duration(self.to_glib_none().0)) } } - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(alias = "gst_app_src_get_leaky_type")] #[doc(alias = "get_leaky_type")] pub fn leaky_type(&self) -> AppLeakyType { unsafe { from_glib(ffi::gst_app_src_get_leaky_type(self.to_glib_none().0)) } } - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(alias = "gst_app_src_get_max_buffers")] #[doc(alias = "get_max_buffers")] pub fn max_buffers(&self) -> u64 { @@ -89,8 +89,8 @@ impl AppSrc { unsafe { ffi::gst_app_src_get_max_bytes(self.to_glib_none().0) } } - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(alias = "gst_app_src_get_max_time")] #[doc(alias = "get_max_time")] pub fn max_time(&self) -> Option { @@ -161,8 +161,8 @@ impl AppSrc { } } - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(alias = "gst_app_src_set_leaky_type")] pub fn set_leaky_type(&self, leaky: AppLeakyType) { unsafe { @@ -170,8 +170,8 @@ impl AppSrc { } } - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(alias = "gst_app_src_set_max_buffers")] pub fn set_max_buffers(&self, max: u64) { unsafe { @@ -186,8 +186,8 @@ impl AppSrc { } } - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(alias = "gst_app_src_set_max_time")] pub fn set_max_time(&self, max: impl Into>) { unsafe { @@ -225,15 +225,15 @@ impl AppSrc { glib::ObjectExt::set_property(self, "format", format) } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "handle-segment-change")] pub fn is_handle_segment_change(&self) -> bool { glib::ObjectExt::property(self, "handle-segment-change") } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "handle-segment-change")] pub fn set_handle_segment_change(&self, handle_segment_change: bool) { glib::ObjectExt::set_property(self, "handle-segment-change", handle_segment_change) @@ -331,8 +331,8 @@ impl AppSrc { } } - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(alias = "current-level-buffers")] pub fn connect_current_level_buffers_notify( &self, @@ -389,8 +389,8 @@ impl AppSrc { } } - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(alias = "current-level-time")] pub fn connect_current_level_time_notify( &self, @@ -471,8 +471,8 @@ impl AppSrc { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "handle-segment-change")] pub fn connect_handle_segment_change_notify( &self, @@ -527,8 +527,8 @@ impl AppSrc { } } - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(alias = "leaky-type")] pub fn connect_leaky_type_notify( &self, @@ -557,8 +557,8 @@ impl AppSrc { } } - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(alias = "max-buffers")] pub fn connect_max_buffers_notify( &self, @@ -641,8 +641,8 @@ impl AppSrc { } } - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(alias = "max-time")] pub fn connect_max_time_notify( &self, diff --git a/gstreamer-app/src/auto/enums.rs b/gstreamer-app/src/auto/enums.rs index 1fa36680e..6af78c8fe 100644 --- a/gstreamer-app/src/auto/enums.rs +++ b/gstreamer-app/src/auto/enums.rs @@ -5,8 +5,8 @@ use glib::{translate::*, value::FromValue, value::ToValue, StaticType, Type}; -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] #[doc(alias = "GstAppLeakyType")] @@ -21,8 +21,8 @@ pub enum AppLeakyType { __Unknown(i32), } -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(hidden)] impl IntoGlib for AppLeakyType { type GlibType = ffi::GstAppLeakyType; @@ -38,8 +38,8 @@ impl IntoGlib for AppLeakyType { } } -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(hidden)] impl FromGlib for AppLeakyType { #[inline] @@ -55,8 +55,8 @@ impl FromGlib for AppLeakyType { } } -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] impl StaticType for AppLeakyType { #[inline] fn static_type() -> Type { @@ -64,8 +64,8 @@ impl StaticType for AppLeakyType { } } -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] impl glib::HasParamSpec for AppLeakyType { type ParamSpec = glib::ParamSpecEnum; type SetValue = Self; @@ -76,14 +76,14 @@ impl glib::HasParamSpec for AppLeakyType { } } -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] impl glib::value::ValueType for AppLeakyType { type Type = Self; } -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] unsafe impl<'a> FromValue<'a> for AppLeakyType { type Checker = glib::value::GenericValueTypeChecker; @@ -94,8 +94,8 @@ unsafe impl<'a> FromValue<'a> for AppLeakyType { } } -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] impl ToValue for AppLeakyType { #[inline] fn to_value(&self) -> glib::Value { @@ -112,8 +112,8 @@ impl ToValue for AppLeakyType { } } -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] impl From for glib::Value { #[inline] fn from(v: AppLeakyType) -> Self { diff --git a/gstreamer-app/src/auto/mod.rs b/gstreamer-app/src/auto/mod.rs index eb374173f..13f811d2d 100644 --- a/gstreamer-app/src/auto/mod.rs +++ b/gstreamer-app/src/auto/mod.rs @@ -10,7 +10,7 @@ mod app_src; pub use self::app_src::AppSrc; mod enums; -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub use self::enums::AppLeakyType; pub use self::enums::AppStreamType; diff --git a/gstreamer-app/src/auto/versions.txt b/gstreamer-app/src/auto/versions.txt index 94b843e6a..f606c95a2 100644 --- a/gstreamer-app/src/auto/versions.txt +++ b/gstreamer-app/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2) +Generated by gir (https://github.com/gtk-rs/gir @ 719372782330) from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836) diff --git a/gstreamer-app/sys/Cargo.toml b/gstreamer-app/sys/Cargo.toml index b1dcbf300..93eef92cf 100644 --- a/gstreamer-app/sys/Cargo.toml +++ b/gstreamer-app/sys/Cargo.toml @@ -47,7 +47,7 @@ edition = "2021" rust-version = "1.66" [package.metadata.docs.rs] -features = ["dox"] +features = [] [package.metadata.system-deps.gstreamer_app_1_0] name = "gstreamer-app-1.0" diff --git a/gstreamer-app/sys/build.rs b/gstreamer-app/sys/build.rs index 40e2cc398..29420c9ee 100644 --- a/gstreamer-app/sys/build.rs +++ b/gstreamer-app/sys/build.rs @@ -3,13 +3,13 @@ // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git) // DO NOT EDIT -#[cfg(not(feature = "dox"))] +#[cfg(not(docsrs))] use std::process; -#[cfg(feature = "dox")] +#[cfg(docsrs)] fn main() {} // prevent linking libraries to avoid documentation failure -#[cfg(not(feature = "dox"))] +#[cfg(not(docsrs))] fn main() { if let Err(s) = system_deps::Config::new().probe() { println!("cargo:warning={s}"); diff --git a/gstreamer-app/sys/src/auto/versions.txt b/gstreamer-app/sys/src/auto/versions.txt index 94b843e6a..f606c95a2 100644 --- a/gstreamer-app/sys/src/auto/versions.txt +++ b/gstreamer-app/sys/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2) +Generated by gir (https://github.com/gtk-rs/gir @ 719372782330) from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836) diff --git a/gstreamer-app/sys/src/lib.rs b/gstreamer-app/sys/src/lib.rs index 1097209f6..d54295980 100644 --- a/gstreamer-app/sys/src/lib.rs +++ b/gstreamer-app/sys/src/lib.rs @@ -10,7 +10,7 @@ clippy::unreadable_literal, clippy::upper_case_acronyms )] -#![cfg_attr(feature = "dox", feature(doc_cfg))] +#![cfg_attr(docsrs, feature(doc_cfg))] #[allow(unused_imports)] use libc::{ @@ -197,8 +197,8 @@ extern "C" { //========================================================================= // GstAppLeakyType //========================================================================= - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_app_leaky_type_get_type() -> GType; //========================================================================= @@ -217,8 +217,8 @@ extern "C" { pub fn gst_app_sink_get_max_buffers(appsink: *mut GstAppSink) -> c_uint; pub fn gst_app_sink_get_wait_on_eos(appsink: *mut GstAppSink) -> gboolean; pub fn gst_app_sink_is_eos(appsink: *mut GstAppSink) -> gboolean; - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_app_sink_pull_object(appsink: *mut GstAppSink) -> *mut gst::GstMiniObject; 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; @@ -234,8 +234,8 @@ 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_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_app_sink_try_pull_object( appsink: *mut GstAppSink, timeout: gst::GstClockTime, @@ -255,25 +255,25 @@ extern "C" { pub fn gst_app_src_get_type() -> GType; 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; - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_app_src_get_current_level_buffers(appsrc: *mut GstAppSrc) -> u64; pub fn gst_app_src_get_current_level_bytes(appsrc: *mut GstAppSrc) -> u64; - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_app_src_get_current_level_time(appsrc: *mut GstAppSrc) -> gst::GstClockTime; 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); - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_app_src_get_leaky_type(appsrc: *mut GstAppSrc) -> GstAppLeakyType; - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_app_src_get_max_buffers(appsrc: *mut GstAppSrc) -> u64; pub fn gst_app_src_get_max_bytes(appsrc: *mut GstAppSrc) -> u64; - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_app_src_get_max_time(appsrc: *mut GstAppSrc) -> gst::GstClockTime; pub fn gst_app_src_get_size(appsrc: *mut GstAppSrc) -> i64; pub fn gst_app_src_get_stream_type(appsrc: *mut GstAppSrc) -> GstAppStreamType; @@ -299,15 +299,15 @@ extern "C" { 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); - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_app_src_set_leaky_type(appsrc: *mut GstAppSrc, leaky: GstAppLeakyType); - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_app_src_set_max_buffers(appsrc: *mut GstAppSrc, max: u64); pub fn gst_app_src_set_max_bytes(appsrc: *mut GstAppSrc, max: u64); - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_app_src_set_max_time(appsrc: *mut GstAppSrc, max: gst::GstClockTime); pub fn gst_app_src_set_size(appsrc: *mut GstAppSrc, size: i64); pub fn gst_app_src_set_stream_type(appsrc: *mut GstAppSrc, type_: GstAppStreamType); diff --git a/gstreamer-audio/src/auto/audio_aggregator_pad.rs b/gstreamer-audio/src/auto/audio_aggregator_pad.rs index 7b5f6b3fa..f7d338748 100644 --- a/gstreamer-audio/src/auto/audio_aggregator_pad.rs +++ b/gstreamer-audio/src/auto/audio_aggregator_pad.rs @@ -4,14 +4,14 @@ // DO NOT EDIT use glib::prelude::*; -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] use glib::{ signal::{connect_raw, SignalHandlerId}, translate::*, }; -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] use std::{boxed::Box as Box_, mem::transmute}; glib::wrapper! { @@ -31,18 +31,18 @@ unsafe impl Send for AudioAggregatorPad {} unsafe impl Sync for AudioAggregatorPad {} pub trait AudioAggregatorPadExt: 'static { - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(alias = "qos-messages")] fn is_qos_messages(&self) -> bool; - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(alias = "qos-messages")] fn set_qos_messages(&self, qos_messages: bool); - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(alias = "qos-messages")] fn connect_qos_messages_notify( &self, @@ -51,20 +51,20 @@ pub trait AudioAggregatorPadExt: 'static { } impl> AudioAggregatorPadExt for O { - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] fn is_qos_messages(&self) -> bool { glib::ObjectExt::property(self.as_ref(), "qos-messages") } - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] fn set_qos_messages(&self, qos_messages: bool) { glib::ObjectExt::set_property(self.as_ref(), "qos-messages", qos_messages) } - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] fn connect_qos_messages_notify( &self, f: F, diff --git a/gstreamer-audio/src/auto/audio_decoder.rs b/gstreamer-audio/src/auto/audio_decoder.rs index 8d5ff4a9e..5488ff9bd 100644 --- a/gstreamer-audio/src/auto/audio_decoder.rs +++ b/gstreamer-audio/src/auto/audio_decoder.rs @@ -38,8 +38,8 @@ pub trait AudioDecoderExt: 'static { frames: i32, ) -> Result; - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] #[doc(alias = "gst_audio_decoder_finish_subframe")] fn finish_subframe(&self, buf: Option) -> Result; @@ -131,8 +131,8 @@ pub trait AudioDecoderExt: 'static { #[doc(alias = "gst_audio_decoder_set_use_default_pad_acceptcaps")] fn set_use_default_pad_acceptcaps(&self, use_: bool); - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "max-errors")] fn connect_max_errors_notify( &self, @@ -179,8 +179,8 @@ impl> AudioDecoderExt for O { } } - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] fn finish_subframe( &self, buf: Option, @@ -396,8 +396,8 @@ impl> AudioDecoderExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] fn connect_max_errors_notify( &self, f: F, diff --git a/gstreamer-audio/src/auto/versions.txt b/gstreamer-audio/src/auto/versions.txt index 94b843e6a..f606c95a2 100644 --- a/gstreamer-audio/src/auto/versions.txt +++ b/gstreamer-audio/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2) +Generated by gir (https://github.com/gtk-rs/gir @ 719372782330) from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836) diff --git a/gstreamer-audio/sys/Cargo.toml b/gstreamer-audio/sys/Cargo.toml index ea0b3b1fc..18e5b917a 100644 --- a/gstreamer-audio/sys/Cargo.toml +++ b/gstreamer-audio/sys/Cargo.toml @@ -51,7 +51,7 @@ edition = "2021" rust-version = "1.66" [package.metadata.docs.rs] -features = ["dox"] +features = [] [package.metadata.system-deps.gstreamer_audio_1_0] name = "gstreamer-audio-1.0" diff --git a/gstreamer-audio/sys/build.rs b/gstreamer-audio/sys/build.rs index 40e2cc398..29420c9ee 100644 --- a/gstreamer-audio/sys/build.rs +++ b/gstreamer-audio/sys/build.rs @@ -3,13 +3,13 @@ // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git) // DO NOT EDIT -#[cfg(not(feature = "dox"))] +#[cfg(not(docsrs))] use std::process; -#[cfg(feature = "dox")] +#[cfg(docsrs)] fn main() {} // prevent linking libraries to avoid documentation failure -#[cfg(not(feature = "dox"))] +#[cfg(not(docsrs))] fn main() { if let Err(s) = system_deps::Config::new().probe() { println!("cargo:warning={s}"); diff --git a/gstreamer-audio/sys/src/auto/versions.txt b/gstreamer-audio/sys/src/auto/versions.txt index 94b843e6a..f606c95a2 100644 --- a/gstreamer-audio/sys/src/auto/versions.txt +++ b/gstreamer-audio/sys/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2) +Generated by gir (https://github.com/gtk-rs/gir @ 719372782330) from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836) diff --git a/gstreamer-audio/sys/src/lib.rs b/gstreamer-audio/sys/src/lib.rs index 445743701..147c471b2 100644 --- a/gstreamer-audio/sys/src/lib.rs +++ b/gstreamer-audio/sys/src/lib.rs @@ -10,7 +10,7 @@ clippy::unreadable_literal, clippy::upper_case_acronyms )] -#![cfg_attr(feature = "dox", feature(doc_cfg))] +#![cfg_attr(docsrs, feature(doc_cfg))] #[allow(unused_imports)] use libc::{ @@ -1532,8 +1532,8 @@ extern "C" { //========================================================================= // GstAudioBuffer //========================================================================= - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] pub fn gst_audio_buffer_unmap(buffer: *mut GstAudioBuffer); pub fn gst_audio_buffer_clip( buffer: *mut gst::GstBuffer, @@ -1541,8 +1541,8 @@ extern "C" { rate: c_int, bpf: c_int, ) -> *mut gst::GstBuffer; - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] pub fn gst_audio_buffer_map( buffer: *mut GstAudioBuffer, info: *const GstAudioInfo, @@ -1556,8 +1556,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(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] pub fn gst_audio_buffer_truncate( buffer: *mut gst::GstBuffer, bpf: c_int, @@ -1630,8 +1630,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(feature = "v1_16")] + #[cfg_attr(docsrs, 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( @@ -1666,8 +1666,8 @@ extern "C" { //========================================================================= // GstAudioFormatInfo //========================================================================= - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_audio_format_info_fill_silence( info: *const GstAudioFormatInfo, dest: gpointer, @@ -1679,8 +1679,8 @@ extern "C" { //========================================================================= pub fn gst_audio_info_get_type() -> GType; pub fn gst_audio_info_new() -> *mut GstAudioInfo; - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_audio_info_new_from_caps(caps: *const gst::GstCaps) -> *mut GstAudioInfo; pub fn gst_audio_info_convert( info: *const GstAudioInfo, @@ -1710,15 +1710,15 @@ extern "C" { //========================================================================= // GstAudioLevelMeta //========================================================================= - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_audio_level_meta_get_info() -> *const gst::GstMetaInfo; //========================================================================= // GstAudioMeta //========================================================================= - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] pub fn gst_audio_meta_get_info() -> *const gst::GstMetaInfo; //========================================================================= @@ -1949,8 +1949,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(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] pub fn gst_audio_decoder_finish_subframe( dec: *mut GstAudioDecoder, buf: *mut gst::GstBuffer, @@ -2005,8 +2005,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(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] pub fn gst_audio_decoder_set_output_caps( dec: *mut GstAudioDecoder, caps: *mut gst::GstCaps, @@ -2245,8 +2245,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(feature = "v1_18")] + #[cfg_attr(docsrs, 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, @@ -2263,18 +2263,18 @@ extern "C" { spec: *const GstAudioRingBufferSpec, endianness: c_int, ) -> gboolean; - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_audio_level_meta_api_get_type() -> GType; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, 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(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] pub fn gst_audio_meta_api_get_type() -> GType; pub fn gst_audio_reorder_channels( data: gpointer, @@ -2298,15 +2298,15 @@ extern "C" { to_channels: c_int, matrix: *mut *const c_float, ) -> *mut GstAudioDownmixMeta; - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_buffer_add_audio_level_meta( buffer: *mut gst::GstBuffer, level: u8, voice_activity: gboolean, ) -> *mut GstAudioLevelMeta; - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] pub fn gst_buffer_add_audio_meta( buffer: *mut gst::GstBuffer, info: *const GstAudioInfo, @@ -2318,8 +2318,8 @@ extern "C" { to_position: *const GstAudioChannelPosition, to_channels: c_int, ) -> *mut GstAudioDownmixMeta; - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_buffer_get_audio_level_meta(buffer: *mut gst::GstBuffer) -> *mut GstAudioLevelMeta; } diff --git a/gstreamer-base/src/auto/aggregator.rs b/gstreamer-base/src/auto/aggregator.rs index 6de8be299..738593922 100644 --- a/gstreamer-base/src/auto/aggregator.rs +++ b/gstreamer-base/src/auto/aggregator.rs @@ -3,8 +3,8 @@ // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git) // DO NOT EDIT -#[cfg(any(feature = "v1_18", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] +#[cfg(feature = "v1_18")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] use crate::{AggregatorPad, AggregatorStartTimeSelection}; use glib::{ prelude::*, @@ -33,8 +33,8 @@ pub trait AggregatorExt: 'static { #[doc(alias = "gst_aggregator_finish_buffer")] fn finish_buffer(&self, buffer: gst::Buffer) -> Result; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "gst_aggregator_finish_buffer_list")] fn finish_buffer_list( &self, @@ -45,14 +45,14 @@ pub trait AggregatorExt: 'static { #[doc(alias = "get_buffer_pool")] fn buffer_pool(&self) -> Option; - #[cfg(any(feature = "v1_22", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] + #[cfg(feature = "v1_22")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] #[doc(alias = "gst_aggregator_get_force_live")] #[doc(alias = "get_force_live")] fn is_force_live(&self) -> bool; - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(alias = "gst_aggregator_get_ignore_inactive_pads")] #[doc(alias = "get_ignore_inactive_pads")] fn ignores_inactive_pads(&self) -> bool; @@ -61,23 +61,23 @@ pub trait AggregatorExt: 'static { #[doc(alias = "get_latency")] fn latency(&self) -> Option; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "gst_aggregator_negotiate")] fn negotiate(&self) -> bool; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "gst_aggregator_peek_next_sample")] fn peek_next_sample(&self, pad: &impl IsA) -> Option; - #[cfg(any(feature = "v1_22", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] + #[cfg(feature = "v1_22")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] #[doc(alias = "gst_aggregator_set_force_live")] fn set_force_live(&self, force_live: bool); - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(alias = "gst_aggregator_set_ignore_inactive_pads")] fn set_ignore_inactive_pads(&self, ignore: bool); @@ -91,18 +91,18 @@ pub trait AggregatorExt: 'static { #[doc(alias = "gst_aggregator_set_src_caps")] fn set_src_caps(&self, caps: &gst::Caps); - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] #[doc(alias = "gst_aggregator_simple_get_next_time")] fn simple_get_next_time(&self) -> Option; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "emit-signals")] fn emits_signals(&self) -> bool; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "emit-signals")] fn set_emit_signals(&self, emit_signals: bool); @@ -112,18 +112,18 @@ pub trait AggregatorExt: 'static { #[doc(alias = "start-time")] fn set_start_time(&self, start_time: u64); - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "start-time-selection")] fn start_time_selection(&self) -> AggregatorStartTimeSelection; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "start-time-selection")] fn set_start_time_selection(&self, start_time_selection: AggregatorStartTimeSelection); - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "emit-signals")] fn connect_emit_signals_notify( &self, @@ -140,8 +140,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(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "start-time-selection")] fn connect_start_time_selection_notify( &self, @@ -159,8 +159,8 @@ impl> AggregatorExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] fn finish_buffer_list( &self, bufferlist: gst::BufferList, @@ -181,8 +181,8 @@ impl> AggregatorExt for O { } } - #[cfg(any(feature = "v1_22", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] + #[cfg(feature = "v1_22")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] fn is_force_live(&self) -> bool { unsafe { from_glib(ffi::gst_aggregator_get_force_live( @@ -191,8 +191,8 @@ impl> AggregatorExt for O { } } - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] fn ignores_inactive_pads(&self) -> bool { unsafe { from_glib(ffi::gst_aggregator_get_ignore_inactive_pads( @@ -209,8 +209,8 @@ impl> AggregatorExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] fn negotiate(&self) -> bool { unsafe { from_glib(ffi::gst_aggregator_negotiate( @@ -219,8 +219,8 @@ impl> AggregatorExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] fn peek_next_sample(&self, pad: &impl IsA) -> Option { unsafe { from_glib_full(ffi::gst_aggregator_peek_next_sample( @@ -230,8 +230,8 @@ impl> AggregatorExt for O { } } - #[cfg(any(feature = "v1_22", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] + #[cfg(feature = "v1_22")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] fn set_force_live(&self, force_live: bool) { unsafe { ffi::gst_aggregator_set_force_live( @@ -241,8 +241,8 @@ impl> AggregatorExt for O { } } - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] fn set_ignore_inactive_pads(&self, ignore: bool) { unsafe { ffi::gst_aggregator_set_ignore_inactive_pads( @@ -272,8 +272,8 @@ impl> AggregatorExt for O { } } - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] fn simple_get_next_time(&self) -> Option { unsafe { from_glib(ffi::gst_aggregator_simple_get_next_time( @@ -282,14 +282,14 @@ impl> AggregatorExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] fn emits_signals(&self) -> bool { glib::ObjectExt::property(self.as_ref(), "emit-signals") } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] fn set_emit_signals(&self, emit_signals: bool) { glib::ObjectExt::set_property(self.as_ref(), "emit-signals", emit_signals) } @@ -302,20 +302,20 @@ impl> AggregatorExt for O { glib::ObjectExt::set_property(self.as_ref(), "start-time", start_time) } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] fn start_time_selection(&self) -> AggregatorStartTimeSelection { glib::ObjectExt::property(self.as_ref(), "start-time-selection") } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] fn set_start_time_selection(&self, start_time_selection: AggregatorStartTimeSelection) { glib::ObjectExt::set_property(self.as_ref(), "start-time-selection", start_time_selection) } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] fn connect_emit_signals_notify( &self, f: F, @@ -400,8 +400,8 @@ impl> AggregatorExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] fn connect_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 e33b78a73..68fc4938c 100644 --- a/gstreamer-base/src/auto/aggregator_pad.rs +++ b/gstreamer-base/src/auto/aggregator_pad.rs @@ -30,16 +30,16 @@ pub trait AggregatorPadExt: 'static { #[doc(alias = "gst_aggregator_pad_drop_buffer")] fn drop_buffer(&self) -> bool; - #[cfg(any(feature = "v1_14_1", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14_1")))] + #[cfg(feature = "v1_14_1")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_14_1")))] #[doc(alias = "gst_aggregator_pad_has_buffer")] fn has_buffer(&self) -> bool; #[doc(alias = "gst_aggregator_pad_is_eos")] fn is_eos(&self) -> bool; - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(alias = "gst_aggregator_pad_is_inactive")] fn is_inactive(&self) -> bool; @@ -49,13 +49,13 @@ pub trait AggregatorPadExt: 'static { #[doc(alias = "gst_aggregator_pad_pop_buffer")] fn pop_buffer(&self) -> Option; - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] #[doc(alias = "emit-signals")] fn emits_signals(&self) -> bool; - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] #[doc(alias = "emit-signals")] fn set_emit_signals(&self, emit_signals: bool); @@ -65,8 +65,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(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] #[doc(alias = "emit-signals")] fn connect_emit_signals_notify( &self, @@ -83,8 +83,8 @@ impl> AggregatorPadExt for O { } } - #[cfg(any(feature = "v1_14_1", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14_1")))] + #[cfg(feature = "v1_14_1")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_14_1")))] fn has_buffer(&self) -> bool { unsafe { from_glib(ffi::gst_aggregator_pad_has_buffer( @@ -101,8 +101,8 @@ impl> AggregatorPadExt for O { } } - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] fn is_inactive(&self) -> bool { unsafe { from_glib(ffi::gst_aggregator_pad_is_inactive( @@ -127,14 +127,14 @@ impl> AggregatorPadExt for O { } } - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] fn emits_signals(&self) -> bool { glib::ObjectExt::property(self.as_ref(), "emit-signals") } - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] fn set_emit_signals(&self, emit_signals: bool) { glib::ObjectExt::set_property(self.as_ref(), "emit-signals", emit_signals) } @@ -170,8 +170,8 @@ impl> AggregatorPadExt for O { } } - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] fn connect_emit_signals_notify( &self, f: F, diff --git a/gstreamer-base/src/auto/base_sink.rs b/gstreamer-base/src/auto/base_sink.rs index 6a9230855..4e86ab5e8 100644 --- a/gstreamer-base/src/auto/base_sink.rs +++ b/gstreamer-base/src/auto/base_sink.rs @@ -54,8 +54,8 @@ pub trait BaseSinkExt: 'static { #[doc(alias = "get_max_lateness")] fn max_lateness(&self) -> i64; - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] #[doc(alias = "gst_base_sink_get_processing_deadline")] #[doc(alias = "get_processing_deadline")] fn processing_deadline(&self) -> gst::ClockTime; @@ -64,8 +64,8 @@ pub trait BaseSinkExt: 'static { #[doc(alias = "get_render_delay")] fn render_delay(&self) -> gst::ClockTime; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "gst_base_sink_get_stats")] #[doc(alias = "get_stats")] fn stats(&self) -> gst::Structure; @@ -94,8 +94,8 @@ pub trait BaseSinkExt: 'static { #[doc(alias = "gst_base_sink_set_max_lateness")] fn set_max_lateness(&self, max_lateness: i64); - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] #[doc(alias = "gst_base_sink_set_processing_deadline")] fn set_processing_deadline(&self, processing_deadline: gst::ClockTime); @@ -178,8 +178,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(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] #[doc(alias = "processing-deadline")] fn connect_processing_deadline_notify( &self, @@ -195,8 +195,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(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "stats")] fn connect_stats_notify(&self, f: F) -> SignalHandlerId; @@ -258,8 +258,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(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] fn processing_deadline(&self) -> gst::ClockTime { unsafe { try_from_glib(ffi::gst_base_sink_get_processing_deadline( @@ -278,8 +278,8 @@ impl> BaseSinkExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] fn stats(&self) -> gst::Structure { unsafe { from_glib_full(ffi::gst_base_sink_get_stats(self.as_ref().to_glib_none().0)) } } @@ -323,8 +323,8 @@ impl> BaseSinkExt for O { } } - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] fn set_processing_deadline(&self, processing_deadline: gst::ClockTime) { unsafe { ffi::gst_base_sink_set_processing_deadline( @@ -588,8 +588,8 @@ impl> BaseSinkExt for O { } } - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] fn connect_processing_deadline_notify( &self, f: F, @@ -671,8 +671,8 @@ impl> BaseSinkExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] fn connect_stats_notify(&self, f: F) -> SignalHandlerId { unsafe extern "C" fn notify_stats_trampoline< P: IsA, diff --git a/gstreamer-base/src/auto/base_src.rs b/gstreamer-base/src/auto/base_src.rs index 33821ec12..68f58d4bd 100644 --- a/gstreamer-base/src/auto/base_src.rs +++ b/gstreamer-base/src/auto/base_src.rs @@ -46,8 +46,8 @@ pub trait BaseSrcExt: 'static { #[doc(alias = "gst_base_src_is_live")] fn is_live(&self) -> bool; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "gst_base_src_negotiate")] fn negotiate(&self) -> bool; @@ -56,13 +56,13 @@ pub trait BaseSrcExt: 'static { #[doc(alias = "gst_base_src_new_seamless_segment")] fn new_seamless_segment(&self, start: i64, stop: i64, time: i64) -> bool; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "gst_base_src_new_segment")] fn new_segment(&self, segment: &gst::Segment) -> Result<(), glib::error::BoolError>; - #[cfg(any(feature = "v1_24", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_24")))] + #[cfg(feature = "v1_24")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))] #[doc(alias = "gst_base_src_push_segment")] fn push_segment(&self, segment: &gst::Segment) -> bool; @@ -163,8 +163,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(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] fn negotiate(&self) -> bool { unsafe { from_glib(ffi::gst_base_src_negotiate(self.as_ref().to_glib_none().0)) } } @@ -181,8 +181,8 @@ impl> BaseSrcExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] fn new_segment(&self, segment: &gst::Segment) -> Result<(), glib::error::BoolError> { unsafe { glib::result_from_gboolean!( @@ -195,8 +195,8 @@ impl> BaseSrcExt for O { } } - #[cfg(any(feature = "v1_24", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_24")))] + #[cfg(feature = "v1_24")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))] fn push_segment(&self, segment: &gst::Segment) -> bool { unsafe { from_glib(ffi::gst_base_src_push_segment( diff --git a/gstreamer-base/src/auto/base_transform.rs b/gstreamer-base/src/auto/base_transform.rs index 3c5e49832..4c28b8a65 100644 --- a/gstreamer-base/src/auto/base_transform.rs +++ b/gstreamer-base/src/auto/base_transform.rs @@ -37,8 +37,8 @@ pub trait BaseTransformExt: 'static { #[doc(alias = "gst_base_transform_is_passthrough")] fn is_passthrough(&self) -> bool; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "gst_base_transform_reconfigure")] fn reconfigure(&self) -> bool; @@ -99,8 +99,8 @@ impl> BaseTransformExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, 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 8aa080aa9..8030f45dc 100644 --- a/gstreamer-base/src/auto/enums.rs +++ b/gstreamer-base/src/auto/enums.rs @@ -3,12 +3,12 @@ // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git) // DO NOT EDIT -#[cfg(any(feature = "v1_18", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] +#[cfg(feature = "v1_18")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] use glib::{translate::*, value::FromValue, value::ToValue, StaticType, Type}; -#[cfg(any(feature = "v1_18", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] +#[cfg(feature = "v1_18")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] #[doc(alias = "GstAggregatorStartTimeSelection")] @@ -23,8 +23,8 @@ pub enum AggregatorStartTimeSelection { __Unknown(i32), } -#[cfg(any(feature = "v1_18", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] +#[cfg(feature = "v1_18")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(hidden)] impl IntoGlib for AggregatorStartTimeSelection { type GlibType = ffi::GstAggregatorStartTimeSelection; @@ -40,8 +40,8 @@ impl IntoGlib for AggregatorStartTimeSelection { } } -#[cfg(any(feature = "v1_18", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] +#[cfg(feature = "v1_18")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(hidden)] impl FromGlib for AggregatorStartTimeSelection { #[inline] @@ -57,8 +57,8 @@ impl FromGlib for AggregatorStartTimeSelec } } -#[cfg(any(feature = "v1_18", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] +#[cfg(feature = "v1_18")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] impl StaticType for AggregatorStartTimeSelection { #[inline] fn static_type() -> Type { @@ -66,8 +66,8 @@ impl StaticType for AggregatorStartTimeSelection { } } -#[cfg(any(feature = "v1_18", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] +#[cfg(feature = "v1_18")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] impl glib::HasParamSpec for AggregatorStartTimeSelection { type ParamSpec = glib::ParamSpecEnum; type SetValue = Self; @@ -78,14 +78,14 @@ impl glib::HasParamSpec for AggregatorStartTimeSelection { } } -#[cfg(any(feature = "v1_18", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] +#[cfg(feature = "v1_18")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] impl glib::value::ValueType for AggregatorStartTimeSelection { type Type = Self; } -#[cfg(any(feature = "v1_18", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] +#[cfg(feature = "v1_18")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] unsafe impl<'a> FromValue<'a> for AggregatorStartTimeSelection { type Checker = glib::value::GenericValueTypeChecker; @@ -96,8 +96,8 @@ unsafe impl<'a> FromValue<'a> for AggregatorStartTimeSelection { } } -#[cfg(any(feature = "v1_18", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] +#[cfg(feature = "v1_18")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] impl ToValue for AggregatorStartTimeSelection { #[inline] fn to_value(&self) -> glib::Value { @@ -114,8 +114,8 @@ impl ToValue for AggregatorStartTimeSelection { } } -#[cfg(any(feature = "v1_18", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] +#[cfg(feature = "v1_18")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] impl From for glib::Value { #[inline] fn from(v: AggregatorStartTimeSelection) -> Self { diff --git a/gstreamer-base/src/auto/functions.rs b/gstreamer-base/src/auto/functions.rs index e73162217..7e05b4dc9 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(feature = "v1_14_3")] +//#[cfg_attr(docsrs, doc(cfg(feature = "v1_14_3")))] //#[doc(alias = "gst_type_find_helper_get_range_full")] //pub fn type_find_helper_get_range_full, u64, u32) -> Result>(obj: &impl IsA, parent: Option<&impl IsA>, func: P, size: u64, extension: Option<&str>) -> (Result, 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 d95fcaa9c..4cac01c3b 100644 --- a/gstreamer-base/src/auto/mod.rs +++ b/gstreamer-base/src/auto/mod.rs @@ -28,8 +28,8 @@ mod push_src; pub use self::push_src::PushSrc; mod enums; -#[cfg(any(feature = "v1_18", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] +#[cfg(feature = "v1_18")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub use self::enums::AggregatorStartTimeSelection; mod flags; diff --git a/gstreamer-base/src/auto/versions.txt b/gstreamer-base/src/auto/versions.txt index 94b843e6a..f606c95a2 100644 --- a/gstreamer-base/src/auto/versions.txt +++ b/gstreamer-base/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2) +Generated by gir (https://github.com/gtk-rs/gir @ 719372782330) from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836) diff --git a/gstreamer-base/sys/Cargo.toml b/gstreamer-base/sys/Cargo.toml index 8eff83947..7b30c55f2 100644 --- a/gstreamer-base/sys/Cargo.toml +++ b/gstreamer-base/sys/Cargo.toml @@ -49,7 +49,7 @@ edition = "2021" rust-version = "1.66" [package.metadata.docs.rs] -features = ["dox"] +features = [] [package.metadata.system-deps.gstreamer_base_1_0] name = "gstreamer-base-1.0" diff --git a/gstreamer-base/sys/build.rs b/gstreamer-base/sys/build.rs index 40e2cc398..29420c9ee 100644 --- a/gstreamer-base/sys/build.rs +++ b/gstreamer-base/sys/build.rs @@ -3,13 +3,13 @@ // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git) // DO NOT EDIT -#[cfg(not(feature = "dox"))] +#[cfg(not(docsrs))] use std::process; -#[cfg(feature = "dox")] +#[cfg(docsrs)] fn main() {} // prevent linking libraries to avoid documentation failure -#[cfg(not(feature = "dox"))] +#[cfg(not(docsrs))] fn main() { if let Err(s) = system_deps::Config::new().probe() { println!("cargo:warning={s}"); diff --git a/gstreamer-base/sys/src/auto/versions.txt b/gstreamer-base/sys/src/auto/versions.txt index 94b843e6a..f606c95a2 100644 --- a/gstreamer-base/sys/src/auto/versions.txt +++ b/gstreamer-base/sys/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2) +Generated by gir (https://github.com/gtk-rs/gir @ 719372782330) from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836) diff --git a/gstreamer-base/sys/src/lib.rs b/gstreamer-base/sys/src/lib.rs index 962ea6f1e..ea4ef1053 100644 --- a/gstreamer-base/sys/src/lib.rs +++ b/gstreamer-base/sys/src/lib.rs @@ -10,7 +10,7 @@ clippy::unreadable_literal, clippy::upper_case_acronyms )] -#![cfg_attr(feature = "dox", feature(doc_cfg))] +#![cfg_attr(docsrs, feature(doc_cfg))] #[allow(unused_imports)] use libc::{ @@ -1260,8 +1260,8 @@ extern "C" { //========================================================================= // GstAggregatorStartTimeSelection //========================================================================= - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub fn gst_aggregator_start_time_selection_get_type() -> GType; //========================================================================= @@ -1333,101 +1333,101 @@ extern "C" { //========================================================================= // GstBitWriter //========================================================================= - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, 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(feature = "v1_16")] + #[cfg_attr(docsrs, 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(feature = "v1_16")] + #[cfg_attr(docsrs, 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(feature = "v1_16")] + #[cfg_attr(docsrs, 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(feature = "v1_16")] + #[cfg_attr(docsrs, 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(feature = "v1_16")] + #[cfg_attr(docsrs, 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(feature = "v1_16")] + #[cfg_attr(docsrs, 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(feature = "v1_16")] + #[cfg_attr(docsrs, 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(feature = "v1_16")] + #[cfg_attr(docsrs, 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(feature = "v1_16")] + #[cfg_attr(docsrs, 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(feature = "v1_16")] + #[cfg_attr(docsrs, 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(feature = "v1_16")] + #[cfg_attr(docsrs, 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(feature = "v1_16")] + #[cfg_attr(docsrs, 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(feature = "v1_16")] + #[cfg_attr(docsrs, 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(feature = "v1_16")] + #[cfg_attr(docsrs, 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(feature = "v1_16")] + #[cfg_attr(docsrs, 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(feature = "v1_16")] + #[cfg_attr(docsrs, 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(feature = "v1_16")] + #[cfg_attr(docsrs, 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(feature = "v1_16")] + #[cfg_attr(docsrs, 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(feature = "v1_16")] + #[cfg_attr(docsrs, 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(feature = "v1_16")] + #[cfg_attr(docsrs, 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(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] pub fn gst_bit_writer_new_with_size(size: u32, fixed: gboolean) -> *mut GstBitWriter; //========================================================================= @@ -1675,8 +1675,8 @@ extern "C" { //========================================================================= // GstQueueArray //========================================================================= - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, 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( @@ -1694,11 +1694,11 @@ 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(feature = "v1_16")] + #[cfg_attr(docsrs, 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(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] pub fn gst_queue_array_peek_nth_struct(array: *mut GstQueueArray, idx: c_uint) -> gpointer; pub fn gst_queue_array_peek_tail(array: *mut GstQueueArray) -> gpointer; pub fn gst_queue_array_peek_tail_struct(array: *mut GstQueueArray) -> gpointer; @@ -1708,8 +1708,8 @@ extern "C" { 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(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] pub fn gst_queue_array_set_clear_func( array: *mut GstQueueArray, clear_func: glib::GDestroyNotify, @@ -1723,22 +1723,22 @@ extern "C" { //========================================================================= // GstTypeFindData //========================================================================= - #[cfg(any(feature = "v1_22", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] + #[cfg(feature = "v1_22")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] pub fn gst_type_find_data_free(data: *mut GstTypeFindData); - #[cfg(any(feature = "v1_22", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] + #[cfg(feature = "v1_22")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] pub fn gst_type_find_data_get_caps(data: *mut GstTypeFindData) -> *mut gst::GstCaps; - #[cfg(any(feature = "v1_22", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] + #[cfg(feature = "v1_22")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] pub fn gst_type_find_data_get_probability( data: *mut GstTypeFindData, ) -> gst::GstTypeFindProbability; - #[cfg(any(feature = "v1_22", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] + #[cfg(feature = "v1_22")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] pub fn gst_type_find_data_get_typefind(data: *mut GstTypeFindData) -> *mut gst::GstTypeFind; - #[cfg(any(feature = "v1_22", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] + #[cfg(feature = "v1_22")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] pub fn gst_type_find_data_new( obj: *mut gst::GstObject, data: *const u8, @@ -1826,8 +1826,8 @@ extern "C" { 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(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub fn gst_aggregator_finish_buffer_list( aggregator: *mut GstAggregator, bufferlist: *mut gst::GstBufferList, @@ -1838,24 +1838,24 @@ extern "C" { params: *mut gst::GstAllocationParams, ); pub fn gst_aggregator_get_buffer_pool(self_: *mut GstAggregator) -> *mut gst::GstBufferPool; - #[cfg(any(feature = "v1_22", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] + #[cfg(feature = "v1_22")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] pub fn gst_aggregator_get_force_live(self_: *mut GstAggregator) -> gboolean; - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_aggregator_get_ignore_inactive_pads(self_: *mut GstAggregator) -> gboolean; 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(feature = "v1_18")] + #[cfg_attr(docsrs, 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(feature = "v1_18")] + #[cfg_attr(docsrs, 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(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub fn gst_aggregator_selected_samples( self_: *mut GstAggregator, pts: gst::GstClockTime, @@ -1863,11 +1863,11 @@ extern "C" { duration: gst::GstClockTime, info: *mut gst::GstStructure, ); - #[cfg(any(feature = "v1_22", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] + #[cfg(feature = "v1_22")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] pub fn gst_aggregator_set_force_live(self_: *mut GstAggregator, force_live: gboolean); - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_aggregator_set_ignore_inactive_pads(self_: *mut GstAggregator, ignore: gboolean); pub fn gst_aggregator_set_latency( self_: *mut GstAggregator, @@ -1875,11 +1875,11 @@ extern "C" { max_latency: gst::GstClockTime, ); 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(feature = "v1_16")] + #[cfg_attr(docsrs, 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(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub fn gst_aggregator_update_segment( self_: *mut GstAggregator, segment: *const gst::GstSegment, @@ -1890,12 +1890,12 @@ extern "C" { //========================================================================= pub fn gst_aggregator_pad_get_type() -> GType; 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(feature = "v1_14_1")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_14_1")))] pub fn gst_aggregator_pad_has_buffer(pad: *mut GstAggregatorPad) -> gboolean; pub fn gst_aggregator_pad_is_eos(pad: *mut GstAggregatorPad) -> gboolean; - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_aggregator_pad_is_inactive(pad: *mut GstAggregatorPad) -> gboolean; pub fn gst_aggregator_pad_peek_buffer(pad: *mut GstAggregatorPad) -> *mut gst::GstBuffer; pub fn gst_aggregator_pad_pop_buffer(pad: *mut GstAggregatorPad) -> *mut gst::GstBuffer; @@ -1977,12 +1977,12 @@ extern "C" { 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(feature = "v1_16")] + #[cfg_attr(docsrs, 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(feature = "v1_18")] + #[cfg_attr(docsrs, 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; @@ -2006,8 +2006,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(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] pub fn gst_base_sink_set_processing_deadline( sink: *mut GstBaseSink, processing_deadline: gst::GstClockTime, @@ -2043,8 +2043,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(feature = "v1_18")] + #[cfg_attr(docsrs, 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, @@ -2052,14 +2052,14 @@ extern "C" { stop: i64, time: i64, ) -> gboolean; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub fn gst_base_src_new_segment( src: *mut GstBaseSrc, segment: *const gst::GstSegment, ) -> gboolean; - #[cfg(any(feature = "v1_24", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_24")))] + #[cfg(feature = "v1_24")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))] pub fn gst_base_src_push_segment( src: *mut GstBaseSrc, segment: *const gst::GstSegment, @@ -2101,8 +2101,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(feature = "v1_18")] + #[cfg_attr(docsrs, 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); @@ -2278,16 +2278,16 @@ extern "C" { buf: *mut gst::GstBuffer, prob: *mut gst::GstTypeFindProbability, ) -> *mut gst::GstCaps; - #[cfg(any(feature = "v1_22", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] + #[cfg(feature = "v1_22")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] pub fn gst_type_find_helper_for_buffer_with_caps( obj: *mut gst::GstObject, buf: *mut gst::GstBuffer, caps: *mut gst::GstCaps, prob: *mut gst::GstTypeFindProbability, ) -> *mut gst::GstCaps; - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] pub fn gst_type_find_helper_for_buffer_with_extension( obj: *mut gst::GstObject, buf: *mut gst::GstBuffer, @@ -2300,8 +2300,8 @@ extern "C" { size: size_t, prob: *mut gst::GstTypeFindProbability, ) -> *mut gst::GstCaps; - #[cfg(any(feature = "v1_22", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] + #[cfg(feature = "v1_22")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] pub fn gst_type_find_helper_for_data_with_caps( obj: *mut gst::GstObject, data: *const u8, @@ -2309,8 +2309,8 @@ extern "C" { caps: *mut gst::GstCaps, prob: *mut gst::GstTypeFindProbability, ) -> *mut gst::GstCaps; - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] pub fn gst_type_find_helper_for_data_with_extension( obj: *mut gst::GstObject, data: *const u8, @@ -2330,8 +2330,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(feature = "v1_14_3")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_14_3")))] pub fn gst_type_find_helper_get_range_full( obj: *mut gst::GstObject, parent: *mut gst::GstObject, @@ -2341,8 +2341,8 @@ extern "C" { caps: *mut *mut gst::GstCaps, prob: *mut gst::GstTypeFindProbability, ) -> gst::GstFlowReturn; - #[cfg(any(feature = "v1_22", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] + #[cfg(feature = "v1_22")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] pub fn gst_type_find_list_factories_for_caps( obj: *mut gst::GstObject, caps: *mut gst::GstCaps, diff --git a/gstreamer-check/src/auto/versions.txt b/gstreamer-check/src/auto/versions.txt index 94b843e6a..f606c95a2 100644 --- a/gstreamer-check/src/auto/versions.txt +++ b/gstreamer-check/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2) +Generated by gir (https://github.com/gtk-rs/gir @ 719372782330) from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836) diff --git a/gstreamer-check/sys/Cargo.toml b/gstreamer-check/sys/Cargo.toml index 166c6f64b..a6f45f765 100644 --- a/gstreamer-check/sys/Cargo.toml +++ b/gstreamer-check/sys/Cargo.toml @@ -47,7 +47,7 @@ edition = "2021" rust-version = "1.66" [package.metadata.docs.rs] -features = ["dox"] +features = [] [package.metadata.system-deps.gstreamer_check_1_0] name = "gstreamer-check-1.0" diff --git a/gstreamer-check/sys/build.rs b/gstreamer-check/sys/build.rs index 40e2cc398..29420c9ee 100644 --- a/gstreamer-check/sys/build.rs +++ b/gstreamer-check/sys/build.rs @@ -3,13 +3,13 @@ // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git) // DO NOT EDIT -#[cfg(not(feature = "dox"))] +#[cfg(not(docsrs))] use std::process; -#[cfg(feature = "dox")] +#[cfg(docsrs)] fn main() {} // prevent linking libraries to avoid documentation failure -#[cfg(not(feature = "dox"))] +#[cfg(not(docsrs))] fn main() { if let Err(s) = system_deps::Config::new().probe() { println!("cargo:warning={s}"); diff --git a/gstreamer-check/sys/src/auto/versions.txt b/gstreamer-check/sys/src/auto/versions.txt index 94b843e6a..f606c95a2 100644 --- a/gstreamer-check/sys/src/auto/versions.txt +++ b/gstreamer-check/sys/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2) +Generated by gir (https://github.com/gtk-rs/gir @ 719372782330) from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836) diff --git a/gstreamer-check/sys/src/lib.rs b/gstreamer-check/sys/src/lib.rs index 746df05de..c8e91eb20 100644 --- a/gstreamer-check/sys/src/lib.rs +++ b/gstreamer-check/sys/src/lib.rs @@ -10,7 +10,7 @@ clippy::unreadable_literal, clippy::upper_case_acronyms )] -#![cfg_attr(feature = "dox", feature(doc_cfg))] +#![cfg_attr(docsrs, feature(doc_cfg))] #[allow(unused_imports)] use libc::{ @@ -139,8 +139,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(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] pub fn gst_harness_add_propose_allocation_meta( h: *mut GstHarness, api: GType, @@ -192,8 +192,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(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub fn gst_harness_pull_until_eos( h: *mut GstHarness, buf: *mut *mut gst::GstBuffer, @@ -223,8 +223,8 @@ extern "C" { pub fn gst_harness_set_caps_str(h: *mut GstHarness, in_: *const c_char, out: *const c_char); pub fn gst_harness_set_drop_buffers(h: *mut GstHarness, drop_buffers: gboolean); pub fn gst_harness_set_forwarding(h: *mut GstHarness, forwarding: gboolean); - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_harness_set_live(h: *mut GstHarness, is_live: gboolean); pub fn gst_harness_set_propose_allocator( h: *mut GstHarness, @@ -370,8 +370,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(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub fn gst_test_clock_process_id( test_clock: *mut GstTestClock, pending_id: gst::GstClockID, @@ -382,8 +382,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(feature = "v1_16")] + #[cfg_attr(docsrs, 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-controller/src/auto/versions.txt b/gstreamer-controller/src/auto/versions.txt index 94b843e6a..f606c95a2 100644 --- a/gstreamer-controller/src/auto/versions.txt +++ b/gstreamer-controller/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2) +Generated by gir (https://github.com/gtk-rs/gir @ 719372782330) from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836) diff --git a/gstreamer-controller/sys/Cargo.toml b/gstreamer-controller/sys/Cargo.toml index 4fb8e4999..d37124b7a 100644 --- a/gstreamer-controller/sys/Cargo.toml +++ b/gstreamer-controller/sys/Cargo.toml @@ -48,7 +48,7 @@ edition = "2021" rust-version = "1.66" [package.metadata.docs.rs] -features = ["dox"] +features = [] [package.metadata.system-deps.gstreamer_controller_1_0] name = "gstreamer-controller-1.0" diff --git a/gstreamer-controller/sys/build.rs b/gstreamer-controller/sys/build.rs index 40e2cc398..29420c9ee 100644 --- a/gstreamer-controller/sys/build.rs +++ b/gstreamer-controller/sys/build.rs @@ -3,13 +3,13 @@ // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git) // DO NOT EDIT -#[cfg(not(feature = "dox"))] +#[cfg(not(docsrs))] use std::process; -#[cfg(feature = "dox")] +#[cfg(docsrs)] fn main() {} // prevent linking libraries to avoid documentation failure -#[cfg(not(feature = "dox"))] +#[cfg(not(docsrs))] fn main() { if let Err(s) = system_deps::Config::new().probe() { println!("cargo:warning={s}"); diff --git a/gstreamer-controller/sys/src/auto/versions.txt b/gstreamer-controller/sys/src/auto/versions.txt index 94b843e6a..f606c95a2 100644 --- a/gstreamer-controller/sys/src/auto/versions.txt +++ b/gstreamer-controller/sys/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2) +Generated by gir (https://github.com/gtk-rs/gir @ 719372782330) from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836) diff --git a/gstreamer-controller/sys/src/lib.rs b/gstreamer-controller/sys/src/lib.rs index c4c3ed7c2..3ad1615a1 100644 --- a/gstreamer-controller/sys/src/lib.rs +++ b/gstreamer-controller/sys/src/lib.rs @@ -10,7 +10,7 @@ clippy::unreadable_literal, clippy::upper_case_acronyms )] -#![cfg_attr(feature = "dox", feature(doc_cfg))] +#![cfg_attr(docsrs, feature(doc_cfg))] #[allow(unused_imports)] use libc::{ diff --git a/gstreamer-editing-services/src/auto/base_effect.rs b/gstreamer-editing-services/src/auto/base_effect.rs index 7f7000f31..c05bff1f7 100644 --- a/gstreamer-editing-services/src/auto/base_effect.rs +++ b/gstreamer-editing-services/src/auto/base_effect.rs @@ -5,8 +5,8 @@ use crate::{Extractable, MetaContainer, Operation, TimelineElement, TrackElement}; use glib::prelude::*; -#[cfg(any(feature = "v1_18", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] +#[cfg(feature = "v1_18")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] use glib::translate::*; glib::wrapper! { @@ -23,20 +23,20 @@ impl BaseEffect { } pub trait BaseEffectExt: 'static { - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "ges_base_effect_is_time_effect")] fn is_time_effect(&self) -> bool; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "ges_base_effect_register_time_property")] fn register_time_property(&self, child_property_name: &str) -> bool; } impl> BaseEffectExt for O { - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] fn is_time_effect(&self) -> bool { unsafe { from_glib(ffi::ges_base_effect_is_time_effect( @@ -45,8 +45,8 @@ impl> BaseEffectExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, 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( diff --git a/gstreamer-editing-services/src/auto/clip.rs b/gstreamer-editing-services/src/auto/clip.rs index 5bc519871..addcd1355 100644 --- a/gstreamer-editing-services/src/auto/clip.rs +++ b/gstreamer-editing-services/src/auto/clip.rs @@ -3,8 +3,8 @@ // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git) // DO NOT EDIT -#[cfg(any(feature = "v1_18", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] +#[cfg(feature = "v1_18")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] use crate::FrameNumber; use crate::{ Asset, BaseEffect, Container, Extractable, Layer, MetaContainer, TimelineElement, Track, @@ -15,8 +15,8 @@ use glib::{ signal::{connect_raw, SignalHandlerId}, translate::*, }; -#[cfg(any(feature = "v1_18", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] +#[cfg(feature = "v1_18")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] use std::ptr; use std::{boxed::Box as Box_, mem::transmute}; @@ -37,8 +37,8 @@ pub trait ClipExt: 'static { #[doc(alias = "ges_clip_add_asset")] fn add_asset(&self, asset: &impl IsA) -> Result; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "ges_clip_add_child_to_track")] fn add_child_to_track( &self, @@ -46,8 +46,8 @@ pub trait ClipExt: 'static { track: &impl IsA, ) -> Result; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "ges_clip_add_top_effect")] fn add_top_effect(&self, effect: &impl IsA, index: i32) -> Result<(), glib::Error>; @@ -66,14 +66,14 @@ 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(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "ges_clip_get_duration_limit")] #[doc(alias = "get_duration_limit")] fn duration_limit(&self) -> gst::ClockTime; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "ges_clip_get_internal_time_from_timeline_time")] #[doc(alias = "get_internal_time_from_timeline_time")] fn internal_time_from_timeline_time( @@ -90,8 +90,8 @@ pub trait ClipExt: 'static { #[doc(alias = "get_supported_formats")] fn supported_formats(&self) -> TrackType; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "ges_clip_get_timeline_time_from_internal_time")] #[doc(alias = "get_timeline_time_from_internal_time")] fn timeline_time_from_internal_time( @@ -100,8 +100,8 @@ pub trait ClipExt: 'static { internal_time: impl Into>, ) -> Result, glib::Error>; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "ges_clip_get_timeline_time_from_source_frame")] #[doc(alias = "get_timeline_time_from_source_frame")] fn timeline_time_from_source_frame( @@ -124,13 +124,13 @@ pub trait ClipExt: 'static { #[doc(alias = "ges_clip_move_to_layer")] fn move_to_layer(&self, layer: &impl IsA) -> Result<(), glib::error::BoolError>; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "ges_clip_move_to_layer_full")] fn move_to_layer_full(&self, layer: &impl IsA) -> Result<(), glib::Error>; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "ges_clip_remove_top_effect")] fn remove_top_effect(&self, effect: &impl IsA) -> Result<(), glib::Error>; @@ -144,8 +144,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(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "ges_clip_set_top_effect_index_full")] fn set_top_effect_index_full( &self, @@ -163,13 +163,13 @@ pub trait ClipExt: 'static { #[doc(alias = "ges_clip_split")] fn split(&self, position: u64) -> Result; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "ges_clip_split_full")] fn split_full(&self, position: u64) -> Result, glib::Error>; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "duration-limit")] fn connect_duration_limit_notify(&self, f: F) -> SignalHandlerId; @@ -191,8 +191,8 @@ impl> ClipExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] fn add_child_to_track( &self, child: &impl IsA, @@ -214,8 +214,8 @@ impl> ClipExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] fn add_top_effect(&self, effect: &impl IsA, index: i32) -> Result<(), glib::Error> { unsafe { let mut error = ptr::null_mut(); @@ -264,8 +264,8 @@ impl> ClipExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] fn duration_limit(&self) -> gst::ClockTime { unsafe { try_from_glib(ffi::ges_clip_get_duration_limit( @@ -275,8 +275,8 @@ impl> ClipExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] fn internal_time_from_timeline_time( &self, child: &impl IsA, @@ -310,8 +310,8 @@ impl> ClipExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] fn timeline_time_from_internal_time( &self, child: &impl IsA, @@ -333,8 +333,8 @@ impl> ClipExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] fn timeline_time_from_source_frame( &self, frame_number: FrameNumber, @@ -392,8 +392,8 @@ impl> ClipExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] fn move_to_layer_full(&self, layer: &impl IsA) -> Result<(), glib::Error> { unsafe { let mut error = ptr::null_mut(); @@ -411,8 +411,8 @@ impl> ClipExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] fn remove_top_effect(&self, effect: &impl IsA) -> Result<(), glib::Error> { unsafe { let mut error = ptr::null_mut(); @@ -456,8 +456,8 @@ impl> ClipExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] fn set_top_effect_index_full( &self, effect: &impl IsA, @@ -507,8 +507,8 @@ impl> ClipExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] fn split_full(&self, position: u64) -> Result, glib::Error> { unsafe { let mut error = ptr::null_mut(); @@ -522,8 +522,8 @@ impl> ClipExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] fn connect_duration_limit_notify(&self, f: F) -> SignalHandlerId { unsafe extern "C" fn notify_duration_limit_trampoline, F: Fn(&P) + 'static>( this: *mut ffi::GESClip, diff --git a/gstreamer-editing-services/src/auto/clip_asset.rs b/gstreamer-editing-services/src/auto/clip_asset.rs index 2f741ce6a..2ca53161e 100644 --- a/gstreamer-editing-services/src/auto/clip_asset.rs +++ b/gstreamer-editing-services/src/auto/clip_asset.rs @@ -3,8 +3,8 @@ // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git) // DO NOT EDIT -#[cfg(any(feature = "v1_18", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] +#[cfg(feature = "v1_18")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] use crate::FrameNumber; use crate::{Asset, MetaContainer, TrackType}; use glib::{ @@ -12,8 +12,8 @@ use glib::{ signal::{connect_raw, SignalHandlerId}, translate::*, }; -#[cfg(any(feature = "v1_18", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] +#[cfg(feature = "v1_18")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] use std::mem; use std::{boxed::Box as Box_, mem::transmute}; @@ -31,14 +31,14 @@ impl ClipAsset { } pub trait ClipAssetExt: 'static { - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "ges_clip_asset_get_frame_time")] #[doc(alias = "get_frame_time")] fn frame_time(&self, frame_number: FrameNumber) -> Option; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "ges_clip_asset_get_natural_framerate")] #[doc(alias = "get_natural_framerate")] fn natural_framerate(&self) -> Option<(i32, i32)>; @@ -55,8 +55,8 @@ pub trait ClipAssetExt: 'static { } impl> ClipAssetExt for O { - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] fn frame_time(&self, frame_number: FrameNumber) -> Option { unsafe { from_glib(ffi::ges_clip_asset_get_frame_time( @@ -66,8 +66,8 @@ impl> ClipAssetExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] fn natural_framerate(&self) -> Option<(i32, i32)> { unsafe { let mut framerate_n = mem::MaybeUninit::uninit(); diff --git a/gstreamer-editing-services/src/auto/enums.rs b/gstreamer-editing-services/src/auto/enums.rs index 9e98c163e..9c44cbc91 100644 --- a/gstreamer-editing-services/src/auto/enums.rs +++ b/gstreamer-editing-services/src/auto/enums.rs @@ -3,12 +3,12 @@ // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git) // DO NOT EDIT -#[cfg(any(feature = "v1_16", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] +#[cfg(feature = "v1_16")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] use glib::GStr; use glib::{translate::*, value::FromValue, value::ToValue, StaticType, Type}; -#[cfg(any(feature = "v1_16", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] +#[cfg(feature = "v1_16")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] use std::fmt; #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] @@ -122,8 +122,8 @@ pub enum Edge { } impl Edge { - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] pub fn name<'a>(self) -> &'a GStr { unsafe { GStr::from_ptr( @@ -135,8 +135,8 @@ impl Edge { } } -#[cfg(any(feature = "v1_16", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] +#[cfg(feature = "v1_16")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] impl fmt::Display for Edge { #[inline] fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { @@ -248,8 +248,8 @@ pub enum EditMode { } impl EditMode { - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub fn name<'a>(self) -> &'a GStr { unsafe { GStr::from_ptr( @@ -261,8 +261,8 @@ impl EditMode { } } -#[cfg(any(feature = "v1_18", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] +#[cfg(feature = "v1_18")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] impl fmt::Display for EditMode { #[inline] fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { @@ -793,8 +793,8 @@ pub enum VideoStandardTransitionType { WindshieldH, #[doc(alias = "GES_VIDEO_STANDARD_TRANSITION_TYPE_CROSSFADE")] Crossfade, - #[cfg(any(feature = "v1_22", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] + #[cfg(feature = "v1_22")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] #[doc(alias = "GES_VIDEO_STANDARD_TRANSITION_TYPE_FADE_IN")] FadeIn, #[doc(hidden)] @@ -879,7 +879,7 @@ impl IntoGlib for VideoStandardTransitionType { Self::WindshieldV => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_WINDSHIELD_V, Self::WindshieldH => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_WINDSHIELD_H, Self::Crossfade => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_CROSSFADE, - #[cfg(any(feature = "v1_22", feature = "dox"))] + #[cfg(feature = "v1_22")] Self::FadeIn => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_FADE_IN, Self::__Unknown(value) => value, } @@ -964,7 +964,7 @@ impl FromGlib for VideoStandardTransitionTy ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_WINDSHIELD_V => Self::WindshieldV, ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_WINDSHIELD_H => Self::WindshieldH, ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_CROSSFADE => Self::Crossfade, - #[cfg(any(feature = "v1_22", feature = "dox"))] + #[cfg(feature = "v1_22")] ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_FADE_IN => Self::FadeIn, value => Self::__Unknown(value), } diff --git a/gstreamer-editing-services/src/auto/flags.rs b/gstreamer-editing-services/src/auto/flags.rs index aa7d797b8..4db32b974 100644 --- a/gstreamer-editing-services/src/auto/flags.rs +++ b/gstreamer-editing-services/src/auto/flags.rs @@ -7,9 +7,9 @@ use bitflags::bitflags; use glib::{translate::*, value::FromValue, value::ToValue, GStr, StaticType, Type}; use std::fmt; -#[cfg(any(feature = "v1_20", feature = "dox"))] +#[cfg(feature = "v1_20")] bitflags! { - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(alias = "GESMarkerFlags")] pub struct MarkerFlags: u32 { #[doc(alias = "GES_MARKER_FLAG_NONE")] @@ -19,8 +19,8 @@ bitflags! { } } -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(hidden)] impl IntoGlib for MarkerFlags { type GlibType = ffi::GESMarkerFlags; @@ -31,8 +31,8 @@ impl IntoGlib for MarkerFlags { } } -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(hidden)] impl FromGlib for MarkerFlags { #[inline] @@ -42,8 +42,8 @@ impl FromGlib for MarkerFlags { } } -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] impl StaticType for MarkerFlags { #[inline] fn static_type() -> Type { @@ -51,8 +51,8 @@ impl StaticType for MarkerFlags { } } -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] impl glib::HasParamSpec for MarkerFlags { type ParamSpec = glib::ParamSpecFlags; type SetValue = Self; @@ -63,14 +63,14 @@ impl glib::HasParamSpec for MarkerFlags { } } -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] impl glib::value::ValueType for MarkerFlags { type Type = Self; } -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] unsafe impl<'a> FromValue<'a> for MarkerFlags { type Checker = glib::value::GenericValueTypeChecker; @@ -81,8 +81,8 @@ unsafe impl<'a> FromValue<'a> for MarkerFlags { } } -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] impl ToValue for MarkerFlags { #[inline] fn to_value(&self) -> glib::Value { @@ -99,8 +99,8 @@ impl ToValue for MarkerFlags { } } -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] impl From for glib::Value { #[inline] fn from(v: MarkerFlags) -> Self { diff --git a/gstreamer-editing-services/src/auto/layer.rs b/gstreamer-editing-services/src/auto/layer.rs index cbb7c053c..277e028ca 100644 --- a/gstreamer-editing-services/src/auto/layer.rs +++ b/gstreamer-editing-services/src/auto/layer.rs @@ -4,8 +4,8 @@ // DO NOT EDIT #![allow(deprecated)] -#[cfg(any(feature = "v1_18", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] +#[cfg(feature = "v1_18")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] use crate::Track; use crate::{Asset, Clip, Extractable, MetaContainer, Timeline, TrackType}; use glib::{ @@ -13,8 +13,8 @@ use glib::{ signal::{connect_raw, SignalHandlerId}, translate::*, }; -#[cfg(any(feature = "v1_18", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] +#[cfg(feature = "v1_18")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] use std::ptr; use std::{boxed::Box as Box_, mem::transmute}; @@ -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(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "ges_layer_add_asset_full")] fn add_asset_full( &self, @@ -69,13 +69,13 @@ pub trait LayerExt: 'static { #[doc(alias = "ges_layer_add_clip")] fn add_clip(&self, clip: &impl IsA) -> Result<(), glib::error::BoolError>; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "ges_layer_add_clip_full")] fn add_clip_full(&self, clip: &impl IsA) -> Result<(), glib::Error>; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "ges_layer_get_active_for_track")] #[doc(alias = "get_active_for_track")] fn is_active_for_track(&self, track: &impl IsA) -> bool; @@ -114,8 +114,8 @@ pub trait LayerExt: 'static { #[doc(alias = "ges_layer_remove_clip")] fn remove_clip(&self, clip: &impl IsA) -> Result<(), glib::error::BoolError>; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "ges_layer_set_active_for_tracks")] fn set_active_for_tracks(&self, active: bool, tracks: &[Track]) -> bool; @@ -130,8 +130,8 @@ pub trait LayerExt: 'static { #[doc(alias = "ges_layer_set_timeline")] fn set_timeline(&self, timeline: &impl IsA); - //#[cfg(any(feature = "v1_18", feature = "dox"))] - //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + //#[cfg(feature = "v1_18")] + //#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] //#[doc(alias = "active-changed")] //fn connect_active_changed(&self, f: F) -> SignalHandlerId; @@ -171,8 +171,8 @@ impl> LayerExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] fn add_asset_full( &self, asset: &impl IsA, @@ -212,8 +212,8 @@ impl> LayerExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] fn add_clip_full(&self, clip: &impl IsA) -> Result<(), glib::Error> { unsafe { let mut error = ptr::null_mut(); @@ -231,8 +231,8 @@ impl> LayerExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] fn is_active_for_track(&self, track: &impl IsA) -> bool { unsafe { from_glib(ffi::ges_layer_get_active_for_track( @@ -303,8 +303,8 @@ impl> LayerExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, 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( @@ -340,8 +340,8 @@ impl> LayerExt for O { } } - //#[cfg(any(feature = "v1_18", feature = "dox"))] - //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + //#[cfg(feature = "v1_18")] + //#[cfg_attr(docsrs, 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/marker.rs b/gstreamer-editing-services/src/auto/marker.rs index 817cd44f8..63a4cd748 100644 --- a/gstreamer-editing-services/src/auto/marker.rs +++ b/gstreamer-editing-services/src/auto/marker.rs @@ -21,14 +21,14 @@ glib::wrapper! { } impl Marker { - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub fn position(&self) -> u64 { glib::ObjectExt::property(self, "position") } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "position")] pub fn connect_position_notify(&self, f: F) -> SignalHandlerId { unsafe extern "C" fn notify_position_trampoline( diff --git a/gstreamer-editing-services/src/auto/marker_list.rs b/gstreamer-editing-services/src/auto/marker_list.rs index 02597d47c..372dde28a 100644 --- a/gstreamer-editing-services/src/auto/marker_list.rs +++ b/gstreamer-editing-services/src/auto/marker_list.rs @@ -4,8 +4,8 @@ // DO NOT EDIT use crate::Marker; -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] use crate::MarkerFlags; use glib::{ prelude::*, @@ -77,20 +77,20 @@ impl MarkerList { unsafe { ffi::ges_marker_list_size(self.to_glib_none().0) } } - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn flags(&self) -> MarkerFlags { glib::ObjectExt::property(self, "flags") } - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn set_flags(&self, flags: MarkerFlags) { glib::ObjectExt::set_property(self, "flags", flags) } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "marker-added")] pub fn connect_marker_added( &self, @@ -118,8 +118,8 @@ impl MarkerList { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "marker-moved")] pub fn connect_marker_moved( &self, @@ -155,8 +155,8 @@ impl MarkerList { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "marker-removed")] pub fn connect_marker_removed(&self, f: F) -> SignalHandlerId { unsafe extern "C" fn marker_removed_trampoline( @@ -180,8 +180,8 @@ impl MarkerList { } } - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(alias = "flags")] pub fn connect_flags_notify(&self, f: F) -> SignalHandlerId { unsafe extern "C" fn notify_flags_trampoline( @@ -206,8 +206,8 @@ impl MarkerList { } } -#[cfg(any(feature = "v1_18", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] +#[cfg(feature = "v1_18")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] impl Default for MarkerList { fn default() -> Self { Self::new() diff --git a/gstreamer-editing-services/src/auto/meta_container.rs b/gstreamer-editing-services/src/auto/meta_container.rs index e2b7529ed..b1b14b39a 100644 --- a/gstreamer-editing-services/src/auto/meta_container.rs +++ b/gstreamer-editing-services/src/auto/meta_container.rs @@ -3,8 +3,8 @@ // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git) // DO NOT EDIT -#[cfg(any(feature = "v1_18", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] +#[cfg(feature = "v1_18")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] use crate::MarkerList; use crate::MetaFlag; use glib::{ @@ -65,8 +65,8 @@ pub trait MetaContainerExt: 'static { #[doc(alias = "get_int64")] fn int64(&self, meta_item: &str) -> Option; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "ges_meta_container_get_marker_list")] #[doc(alias = "get_marker_list")] fn marker_list(&self, key: &str) -> Option; @@ -128,8 +128,8 @@ pub trait MetaContainerExt: 'static { #[doc(alias = "ges_meta_container_register_meta_uint64")] fn register_meta_uint64(&self, flags: MetaFlag, meta_item: &str, value: u64) -> bool; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "ges_meta_container_register_static_meta")] fn register_static_meta( &self, @@ -159,8 +159,8 @@ pub trait MetaContainerExt: 'static { #[doc(alias = "ges_meta_container_set_int64")] fn set_int64(&self, meta_item: &str, value: i64) -> bool; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "ges_meta_container_set_marker_list")] fn set_marker_list(&self, meta_item: &str, list: &MarkerList) -> bool; @@ -352,8 +352,8 @@ impl> MetaContainerExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] fn marker_list(&self, key: &str) -> Option { unsafe { from_glib_full(ffi::ges_meta_container_get_marker_list( @@ -547,8 +547,8 @@ impl> MetaContainerExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] fn register_static_meta( &self, flags: MetaFlag, @@ -635,8 +635,8 @@ impl> MetaContainerExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] fn set_marker_list(&self, meta_item: &str, list: &MarkerList) -> bool { unsafe { from_glib(ffi::ges_meta_container_set_marker_list( diff --git a/gstreamer-editing-services/src/auto/mod.rs b/gstreamer-editing-services/src/auto/mod.rs index e0753151a..1576f08ac 100644 --- a/gstreamer-editing-services/src/auto/mod.rs +++ b/gstreamer-editing-services/src/auto/mod.rs @@ -71,18 +71,18 @@ pub use self::image_source::ImageSource; mod layer; pub use self::layer::Layer; -#[cfg(any(feature = "v1_18", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] +#[cfg(feature = "v1_18")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] mod marker; -#[cfg(any(feature = "v1_18", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] +#[cfg(feature = "v1_18")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub use self::marker::Marker; -#[cfg(any(feature = "v1_18", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] +#[cfg(feature = "v1_18")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] mod marker_list; -#[cfg(any(feature = "v1_18", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] +#[cfg(feature = "v1_18")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub use self::marker_list::MarkerList; mod meta_container; @@ -114,11 +114,11 @@ pub use self::source::Source; mod source_clip; pub use self::source_clip::SourceClip; -#[cfg(any(feature = "v1_18", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] +#[cfg(feature = "v1_18")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] mod source_clip_asset; -#[cfg(any(feature = "v1_18", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] +#[cfg(feature = "v1_18")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub use self::source_clip_asset::SourceClipAsset; mod test_clip; @@ -196,8 +196,8 @@ pub use self::enums::VideoStandardTransitionType; pub use self::enums::VideoTestPattern; mod flags; -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub use self::flags::MarkerFlags; pub use self::flags::MetaFlag; pub use self::flags::PipelineFlags; diff --git a/gstreamer-editing-services/src/auto/project.rs b/gstreamer-editing-services/src/auto/project.rs index 23ba96e57..97bf4bff4 100644 --- a/gstreamer-editing-services/src/auto/project.rs +++ b/gstreamer-editing-services/src/auto/project.rs @@ -3,8 +3,8 @@ // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git) // DO NOT EDIT -#[cfg(any(feature = "v1_18", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] +#[cfg(feature = "v1_18")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] use crate::Formatter; use crate::{Asset, MetaContainer, Timeline}; use glib::{ @@ -43,8 +43,8 @@ pub trait ProjectExt: 'static { profile: &impl IsA, ) -> Result<(), glib::error::BoolError>; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "ges_project_add_formatter")] fn add_formatter(&self, formatter: &impl IsA); @@ -100,8 +100,8 @@ pub trait ProjectExt: 'static { #[doc(alias = "asset-removed")] 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(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "error-loading")] fn connect_error_loading( &self, @@ -117,8 +117,8 @@ pub trait ProjectExt: 'static { #[doc(alias = "loaded")] fn connect_loaded(&self, f: F) -> SignalHandlerId; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "loading")] fn connect_loading(&self, f: F) -> SignalHandlerId; @@ -154,8 +154,8 @@ impl> ProjectExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] fn add_formatter(&self, formatter: &impl IsA) { unsafe { ffi::ges_project_add_formatter( @@ -374,8 +374,8 @@ impl> ProjectExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] fn connect_error_loading( &self, f: F, @@ -471,8 +471,8 @@ impl> ProjectExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] fn connect_loading(&self, f: F) -> SignalHandlerId { unsafe extern "C" fn loading_trampoline, F: Fn(&P, &Timeline) + 'static>( this: *mut ffi::GESProject, diff --git a/gstreamer-editing-services/src/auto/source_clip.rs b/gstreamer-editing-services/src/auto/source_clip.rs index c5fed3f26..f6e18b5ff 100644 --- a/gstreamer-editing-services/src/auto/source_clip.rs +++ b/gstreamer-editing-services/src/auto/source_clip.rs @@ -4,8 +4,8 @@ // DO NOT EDIT use crate::{Clip, Container, Extractable, MetaContainer, TimelineElement}; -#[cfg(any(feature = "v1_18", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] +#[cfg(feature = "v1_18")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] use glib::translate::*; glib::wrapper! { @@ -20,8 +20,8 @@ glib::wrapper! { impl SourceClip { pub const NONE: Option<&'static SourceClip> = None; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "ges_source_clip_new_time_overlay")] pub fn new_time_overlay() -> Option { assert_initialized_main_thread!(); diff --git a/gstreamer-editing-services/src/auto/timeline.rs b/gstreamer-editing-services/src/auto/timeline.rs index a2da5ab4d..43f0e13c3 100644 --- a/gstreamer-editing-services/src/auto/timeline.rs +++ b/gstreamer-editing-services/src/auto/timeline.rs @@ -7,8 +7,8 @@ use crate::{ Asset, Extractable, Group, Layer, MetaContainer, TimelineElement, Track, TrackElement, }; -#[cfg(any(feature = "v1_18", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] +#[cfg(feature = "v1_18")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] use crate::{Clip, FrameNumber}; use glib::{ prelude::*, @@ -81,13 +81,13 @@ pub trait TimelineExt: 'static { #[doc(alias = "ges_timeline_commit_sync")] fn commit_sync(&self) -> bool; - #[cfg(any(feature = "v1_22", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] + #[cfg(feature = "v1_22")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] #[doc(alias = "ges_timeline_disable_edit_apis")] fn disable_edit_apis(&self, disable_edit_apis: bool); - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(alias = "ges_timeline_freeze_commit")] fn freeze_commit(&self); @@ -99,8 +99,8 @@ pub trait TimelineExt: 'static { #[doc(alias = "get_duration")] fn duration(&self) -> gst::ClockTime; - #[cfg(any(feature = "v1_22", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] + #[cfg(feature = "v1_22")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] #[doc(alias = "ges_timeline_get_edit_apis_disabled")] #[doc(alias = "get_edit_apis_disabled")] fn is_edit_apis_disabled(&self) -> bool; @@ -109,14 +109,14 @@ pub trait TimelineExt: 'static { #[doc(alias = "get_element")] fn element(&self, name: &str) -> Option; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "ges_timeline_get_frame_at")] #[doc(alias = "get_frame_at")] fn frame_at(&self, timestamp: gst::ClockTime) -> FrameNumber; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "ges_timeline_get_frame_time")] #[doc(alias = "get_frame_time")] fn frame_time(&self, frame_number: FrameNumber) -> Option; @@ -155,8 +155,8 @@ pub trait TimelineExt: 'static { #[doc(alias = "ges_timeline_load_from_uri")] fn load_from_uri(&self, uri: &str) -> Result<(), glib::Error>; - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] #[doc(alias = "ges_timeline_move_layer")] fn move_layer( &self, @@ -192,8 +192,8 @@ pub trait TimelineExt: 'static { #[doc(alias = "ges_timeline_set_snapping_distance")] fn set_snapping_distance(&self, snapping_distance: gst::ClockTime); - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(alias = "ges_timeline_thaw_commit")] fn thaw_commit(&self); @@ -212,8 +212,8 @@ pub trait TimelineExt: 'static { #[doc(alias = "layer-removed")] 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(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "select-element-track")] fn connect_select_element_track Option + 'static>( &self, @@ -297,8 +297,8 @@ impl> TimelineExt for O { } } - #[cfg(any(feature = "v1_22", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] + #[cfg(feature = "v1_22")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] fn disable_edit_apis(&self, disable_edit_apis: bool) { unsafe { ffi::ges_timeline_disable_edit_apis( @@ -308,8 +308,8 @@ impl> TimelineExt for O { } } - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] fn freeze_commit(&self) { unsafe { ffi::ges_timeline_freeze_commit(self.as_ref().to_glib_none().0); @@ -333,8 +333,8 @@ impl> TimelineExt for O { } } - #[cfg(any(feature = "v1_22", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] + #[cfg(feature = "v1_22")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] fn is_edit_apis_disabled(&self) -> bool { unsafe { from_glib(ffi::ges_timeline_get_edit_apis_disabled( @@ -352,16 +352,16 @@ impl> TimelineExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] fn frame_at(&self, timestamp: gst::ClockTime) -> FrameNumber { unsafe { ffi::ges_timeline_get_frame_at(self.as_ref().to_glib_none().0, timestamp.into_glib()) } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] fn frame_time(&self, frame_number: FrameNumber) -> Option { unsafe { from_glib(ffi::ges_timeline_get_frame_time( @@ -451,8 +451,8 @@ impl> TimelineExt for O { } } - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] fn move_layer( &self, layer: &impl IsA, @@ -552,8 +552,8 @@ impl> TimelineExt for O { } } - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] fn thaw_commit(&self) { unsafe { ffi::ges_timeline_thaw_commit(self.as_ref().to_glib_none().0); @@ -669,8 +669,8 @@ impl> TimelineExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] fn connect_select_element_track< F: Fn(&Self, &Clip, &TrackElement) -> Option + 'static, >( diff --git a/gstreamer-editing-services/src/auto/timeline_element.rs b/gstreamer-editing-services/src/auto/timeline_element.rs index 47b003deb..dc836b134 100644 --- a/gstreamer-editing-services/src/auto/timeline_element.rs +++ b/gstreamer-editing-services/src/auto/timeline_element.rs @@ -4,8 +4,8 @@ // DO NOT EDIT #![allow(deprecated)] -#[cfg(any(feature = "v1_18", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] +#[cfg(feature = "v1_18")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] use crate::{Edge, EditMode, Layer}; use crate::{Extractable, MetaContainer, Timeline, TrackType}; use glib::{ @@ -40,8 +40,8 @@ pub trait TimelineElementExt: 'static { #[must_use] fn copy(&self, deep: bool) -> TimelineElement; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "ges_timeline_element_edit")] fn edit( &self, @@ -52,8 +52,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(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "ges_timeline_element_edit_full")] fn edit_full( &self, @@ -87,8 +87,8 @@ pub trait TimelineElementExt: 'static { #[doc(alias = "get_inpoint")] fn inpoint(&self) -> gst::ClockTime; - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] #[doc(alias = "ges_timeline_element_get_layer_priority")] #[doc(alias = "get_layer_priority")] fn layer_priority(&self) -> u32; @@ -101,8 +101,8 @@ pub trait TimelineElementExt: 'static { #[doc(alias = "get_name")] fn name(&self) -> Option; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "ges_timeline_element_get_natural_framerate")] #[doc(alias = "get_natural_framerate")] fn natural_framerate(&self) -> Option<(i32, i32)>; @@ -173,8 +173,8 @@ pub trait TimelineElementExt: 'static { #[doc(alias = "ges_timeline_element_set_child_property_by_pspec")] fn set_child_property_by_pspec(&self, pspec: impl AsRef, value: &glib::Value); - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "ges_timeline_element_set_child_property_full")] fn set_child_property_full( &self, @@ -224,16 +224,16 @@ pub trait TimelineElementExt: 'static { fn set_serialize(&self, serialize: bool); - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "child-property-added")] 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(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "child-property-removed")] fn connect_child_property_removed( &self, @@ -303,8 +303,8 @@ impl> TimelineElementExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] fn edit( &self, layers: &[Layer], @@ -325,8 +325,8 @@ impl> TimelineElementExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] fn edit_full( &self, new_layer_priority: i64, @@ -407,8 +407,8 @@ impl> TimelineElementExt for O { } } - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] fn layer_priority(&self) -> u32 { unsafe { ffi::ges_timeline_element_get_layer_priority(self.as_ref().to_glib_none().0) } } @@ -429,8 +429,8 @@ impl> TimelineElementExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] fn natural_framerate(&self) -> Option<(i32, i32)> { unsafe { let mut framerate_n = mem::MaybeUninit::uninit(); @@ -623,8 +623,8 @@ impl> TimelineElementExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] fn set_child_property_full( &self, property_name: &str, @@ -758,8 +758,8 @@ impl> TimelineElementExt for O { glib::ObjectExt::set_property(self.as_ref(), "serialize", serialize) } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] fn connect_child_property_added( &self, f: F, @@ -793,8 +793,8 @@ impl> TimelineElementExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] fn connect_child_property_removed( &self, f: F, diff --git a/gstreamer-editing-services/src/auto/track.rs b/gstreamer-editing-services/src/auto/track.rs index 856ea69d7..ccc375d36 100644 --- a/gstreamer-editing-services/src/auto/track.rs +++ b/gstreamer-editing-services/src/auto/track.rs @@ -9,8 +9,8 @@ use glib::{ signal::{connect_raw, SignalHandlerId}, translate::*, }; -#[cfg(any(feature = "v1_18", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] +#[cfg(feature = "v1_18")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] use std::ptr; use std::{boxed::Box as Box_, mem::transmute}; @@ -37,8 +37,8 @@ pub trait GESTrackExt: 'static { #[doc(alias = "ges_track_add_element")] fn add_element(&self, object: &impl IsA) -> Result<(), glib::error::BoolError>; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "ges_track_add_element_full")] fn add_element_full(&self, object: &impl IsA) -> Result<(), glib::Error>; @@ -57,8 +57,8 @@ pub trait GESTrackExt: 'static { #[doc(alias = "get_mixing")] fn is_mixing(&self) -> bool; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "ges_track_get_restriction_caps")] #[doc(alias = "get_restriction_caps")] fn restriction_caps(&self) -> Option; @@ -71,8 +71,8 @@ pub trait GESTrackExt: 'static { fn remove_element(&self, object: &impl IsA) -> Result<(), glib::error::BoolError>; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "ges_track_remove_element_full")] fn remove_element_full(&self, object: &impl IsA) -> Result<(), glib::Error>; @@ -93,12 +93,12 @@ pub trait GESTrackExt: 'static { fn duration(&self) -> u64; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] fn id(&self) -> Option; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] fn set_id(&self, id: Option<&str>); #[doc(alias = "restriction-caps")] @@ -125,8 +125,8 @@ pub trait GESTrackExt: 'static { #[doc(alias = "duration")] fn connect_duration_notify(&self, f: F) -> SignalHandlerId; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "id")] fn connect_id_notify(&self, f: F) -> SignalHandlerId; @@ -150,8 +150,8 @@ impl> GESTrackExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] fn add_element_full(&self, object: &impl IsA) -> Result<(), glib::Error> { unsafe { let mut error = ptr::null_mut(); @@ -189,8 +189,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(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] fn restriction_caps(&self) -> Option { unsafe { from_glib_full(ffi::ges_track_get_restriction_caps( @@ -218,8 +218,8 @@ impl> GESTrackExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] fn remove_element_full(&self, object: &impl IsA) -> Result<(), glib::Error> { unsafe { let mut error = ptr::null_mut(); @@ -278,14 +278,14 @@ impl> GESTrackExt for O { glib::ObjectExt::property(self.as_ref(), "duration") } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] fn id(&self) -> Option { glib::ObjectExt::property(self.as_ref(), "id") } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] fn set_id(&self, id: Option<&str>) { glib::ObjectExt::set_property(self.as_ref(), "id", id) } @@ -403,8 +403,8 @@ impl> GESTrackExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] fn connect_id_notify(&self, f: F) -> SignalHandlerId { unsafe extern "C" fn notify_id_trampoline, F: Fn(&P) + 'static>( 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 daa24b2e2..478f051eb 100644 --- a/gstreamer-editing-services/src/auto/track_element.rs +++ b/gstreamer-editing-services/src/auto/track_element.rs @@ -35,8 +35,8 @@ pub trait TrackElementExt: 'static { whitelist: &[&str], ); - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "ges_track_element_clamp_control_source")] fn clamp_control_source(&self, property_name: &str); @@ -55,8 +55,8 @@ pub trait TrackElementExt: 'static { //#[doc(alias = "get_all_control_bindings")] //fn all_control_bindings(&self) -> /*Unknown conversion*//*Unimplemented*/HashTable TypeId { ns_id: 0, id: 28 }/TypeId { ns_id: 6, id: 87 }; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "ges_track_element_get_auto_clamp_control_sources")] #[doc(alias = "get_auto_clamp_control_sources")] fn is_auto_clamp_control_sources(&self) -> bool; @@ -101,16 +101,16 @@ pub trait TrackElementExt: 'static { #[doc(alias = "get_track_type")] fn track_type(&self) -> TrackType; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "ges_track_element_has_internal_source")] fn has_internal_source(&self) -> bool; #[doc(alias = "ges_track_element_is_active")] fn is_active(&self) -> bool; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "ges_track_element_is_core")] fn is_core(&self) -> bool; @@ -126,8 +126,8 @@ pub trait TrackElementExt: 'static { #[doc(alias = "ges_track_element_set_active")] fn set_active(&self, active: bool) -> bool; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "ges_track_element_set_auto_clamp_control_sources")] fn set_auto_clamp_control_sources(&self, auto_clamp: bool); @@ -155,8 +155,8 @@ pub trait TrackElementExt: 'static { binding_type: &str, ) -> bool; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "ges_track_element_set_has_internal_source")] fn set_has_internal_source(&self, has_internal_source: bool) -> bool; @@ -178,16 +178,16 @@ pub trait TrackElementExt: 'static { #[doc(alias = "active")] fn connect_active_notify(&self, f: F) -> SignalHandlerId; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "auto-clamp-control-sources")] fn connect_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(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "has-internal-source")] fn connect_has_internal_source_notify(&self, f: F) -> SignalHandlerId; @@ -217,8 +217,8 @@ impl> TrackElementExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] fn clamp_control_source(&self, property_name: &str) { unsafe { ffi::ges_track_element_clamp_control_source( @@ -254,8 +254,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(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] fn is_auto_clamp_control_sources(&self) -> bool { unsafe { from_glib(ffi::ges_track_element_get_auto_clamp_control_sources( @@ -349,8 +349,8 @@ impl> TrackElementExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] fn has_internal_source(&self) -> bool { unsafe { from_glib(ffi::ges_track_element_has_internal_source( @@ -367,8 +367,8 @@ impl> TrackElementExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] fn is_core(&self) -> bool { unsafe { from_glib(ffi::ges_track_element_is_core( @@ -430,8 +430,8 @@ impl> TrackElementExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, 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( @@ -492,8 +492,8 @@ impl> TrackElementExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, 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( @@ -596,8 +596,8 @@ impl> TrackElementExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] fn connect_auto_clamp_control_sources_notify( &self, f: F, @@ -626,8 +626,8 @@ impl> TrackElementExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] fn connect_has_internal_source_notify(&self, f: F) -> SignalHandlerId { unsafe extern "C" fn notify_has_internal_source_trampoline< P: IsA, diff --git a/gstreamer-editing-services/src/auto/track_element_asset.rs b/gstreamer-editing-services/src/auto/track_element_asset.rs index c5d1b5894..e7b8403d8 100644 --- a/gstreamer-editing-services/src/auto/track_element_asset.rs +++ b/gstreamer-editing-services/src/auto/track_element_asset.rs @@ -9,8 +9,8 @@ use glib::{ signal::{connect_raw, SignalHandlerId}, translate::*, }; -#[cfg(any(feature = "v1_18", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] +#[cfg(feature = "v1_18")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] use std::mem; use std::{boxed::Box as Box_, mem::transmute}; @@ -28,8 +28,8 @@ impl TrackElementAsset { } pub trait TrackElementAssetExt: 'static { - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "ges_track_element_asset_get_natural_framerate")] #[doc(alias = "get_natural_framerate")] fn natural_framerate(&self) -> Option<(i32, i32)>; @@ -46,8 +46,8 @@ pub trait TrackElementAssetExt: 'static { } impl> TrackElementAssetExt for O { - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] fn natural_framerate(&self) -> Option<(i32, i32)> { unsafe { let mut framerate_n = mem::MaybeUninit::uninit(); diff --git a/gstreamer-editing-services/src/auto/uri_clip_asset.rs b/gstreamer-editing-services/src/auto/uri_clip_asset.rs index e3d49dffb..f29bcc54e 100644 --- a/gstreamer-editing-services/src/auto/uri_clip_asset.rs +++ b/gstreamer-editing-services/src/auto/uri_clip_asset.rs @@ -3,8 +3,8 @@ // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git) // DO NOT EDIT -#[cfg(any(feature = "v1_18", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] +#[cfg(feature = "v1_18")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] use crate::SourceClipAsset; use crate::{Asset, ClipAsset, MetaContainer, UriSourceAsset}; use glib::{ @@ -14,8 +14,8 @@ use glib::{ }; use std::{boxed::Box as Box_, mem::transmute, ptr}; -#[cfg(any(feature = "v1_18", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] +#[cfg(feature = "v1_18")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] glib::wrapper! { #[doc(alias = "GESUriClipAsset")] pub struct UriClipAsset(Object) @extends SourceClipAsset, ClipAsset, Asset, @implements MetaContainer; @@ -25,7 +25,7 @@ glib::wrapper! { } } -#[cfg(not(any(feature = "v1_18", feature = "dox")))] +#[cfg(not(any(feature = "v1_18")))] glib::wrapper! { #[doc(alias = "GESUriClipAsset")] pub struct UriClipAsset(Object) @extends ClipAsset, Asset, @implements MetaContainer; @@ -38,8 +38,8 @@ glib::wrapper! { impl UriClipAsset { pub const NONE: Option<&'static UriClipAsset> = None; - //#[cfg(any(feature = "v1_16", feature = "dox"))] - //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + //#[cfg(feature = "v1_16")] + //#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] //#[doc(alias = "ges_uri_clip_asset_finish")] //pub fn finish(res: /*Ignored*/&gio::AsyncResult) -> Result { // unsafe { TODO: call ffi:ges_uri_clip_asset_finish() } @@ -74,8 +74,8 @@ pub trait UriClipAssetExt: 'static { #[doc(alias = "get_info")] fn info(&self) -> gst_pbutils::DiscovererInfo; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "ges_uri_clip_asset_get_max_duration")] #[doc(alias = "get_max_duration")] fn max_duration(&self) -> Option; @@ -84,23 +84,23 @@ pub trait UriClipAssetExt: 'static { #[doc(alias = "get_stream_assets")] fn stream_assets(&self) -> Vec; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "ges_uri_clip_asset_is_image")] fn is_image(&self) -> bool; fn set_duration(&self, duration: u64); - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "is-nested-timeline")] fn is_nested_timeline(&self) -> bool; #[doc(alias = "duration")] fn connect_duration_notify(&self, f: F) -> SignalHandlerId; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "is-nested-timeline")] fn connect_is_nested_timeline_notify(&self, f: F) -> SignalHandlerId; } @@ -122,8 +122,8 @@ impl> UriClipAssetExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] fn max_duration(&self) -> Option { unsafe { from_glib(ffi::ges_uri_clip_asset_get_max_duration( @@ -140,8 +140,8 @@ impl> UriClipAssetExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] fn is_image(&self) -> bool { unsafe { from_glib(ffi::ges_uri_clip_asset_is_image( @@ -154,8 +154,8 @@ impl> UriClipAssetExt for O { glib::ObjectExt::set_property(self.as_ref(), "duration", duration) } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] fn is_nested_timeline(&self) -> bool { glib::ObjectExt::property(self.as_ref(), "is-nested-timeline") } @@ -185,8 +185,8 @@ impl> UriClipAssetExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] fn connect_is_nested_timeline_notify(&self, f: F) -> SignalHandlerId { unsafe extern "C" fn notify_is_nested_timeline_trampoline< P: IsA, diff --git a/gstreamer-editing-services/src/auto/uri_source_asset.rs b/gstreamer-editing-services/src/auto/uri_source_asset.rs index 80c336c82..8f8ad0f16 100644 --- a/gstreamer-editing-services/src/auto/uri_source_asset.rs +++ b/gstreamer-editing-services/src/auto/uri_source_asset.rs @@ -32,8 +32,8 @@ pub trait UriSourceAssetExt: 'static { #[doc(alias = "get_stream_uri")] fn stream_uri(&self) -> glib::GString; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "ges_uri_source_asset_is_image")] fn is_image(&self) -> bool; } @@ -63,8 +63,8 @@ impl> UriSourceAssetExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, 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 94b843e6a..f606c95a2 100644 --- a/gstreamer-editing-services/src/auto/versions.txt +++ b/gstreamer-editing-services/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2) +Generated by gir (https://github.com/gtk-rs/gir @ 719372782330) from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836) diff --git a/gstreamer-editing-services/src/auto/video_source.rs b/gstreamer-editing-services/src/auto/video_source.rs index e34ed21ab..fb8d96b75 100644 --- a/gstreamer-editing-services/src/auto/video_source.rs +++ b/gstreamer-editing-services/src/auto/video_source.rs @@ -5,11 +5,11 @@ use crate::{Extractable, MetaContainer, Source, TimelineElement, TrackElement}; use glib::prelude::*; -#[cfg(any(feature = "v1_18", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] +#[cfg(feature = "v1_18")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] use glib::translate::*; -#[cfg(any(feature = "v1_18", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] +#[cfg(feature = "v1_18")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] use std::mem; glib::wrapper! { @@ -26,16 +26,16 @@ impl VideoSource { } pub trait VideoSourceExt: 'static { - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "ges_video_source_get_natural_size")] #[doc(alias = "get_natural_size")] fn natural_size(&self) -> Option<(i32, i32)>; } impl> VideoSourceExt for O { - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] fn natural_size(&self) -> Option<(i32, i32)> { unsafe { let mut width = mem::MaybeUninit::uninit(); diff --git a/gstreamer-editing-services/sys/Cargo.toml b/gstreamer-editing-services/sys/Cargo.toml index 101409fdb..4051b3539 100644 --- a/gstreamer-editing-services/sys/Cargo.toml +++ b/gstreamer-editing-services/sys/Cargo.toml @@ -55,7 +55,7 @@ edition = "2021" rust-version = "1.66" [package.metadata.docs.rs] -features = ["dox"] +features = [] [package.metadata.system-deps.gst_editing_services_1_0] name = "gst-editing-services-1.0" diff --git a/gstreamer-editing-services/sys/build.rs b/gstreamer-editing-services/sys/build.rs index 40e2cc398..29420c9ee 100644 --- a/gstreamer-editing-services/sys/build.rs +++ b/gstreamer-editing-services/sys/build.rs @@ -3,13 +3,13 @@ // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git) // DO NOT EDIT -#[cfg(not(feature = "dox"))] +#[cfg(not(docsrs))] use std::process; -#[cfg(feature = "dox")] +#[cfg(docsrs)] fn main() {} // prevent linking libraries to avoid documentation failure -#[cfg(not(feature = "dox"))] +#[cfg(not(docsrs))] fn main() { if let Err(s) = system_deps::Config::new().probe() { println!("cargo:warning={s}"); diff --git a/gstreamer-editing-services/sys/src/auto/versions.txt b/gstreamer-editing-services/sys/src/auto/versions.txt index 94b843e6a..f606c95a2 100644 --- a/gstreamer-editing-services/sys/src/auto/versions.txt +++ b/gstreamer-editing-services/sys/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2) +Generated by gir (https://github.com/gtk-rs/gir @ 719372782330) from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836) diff --git a/gstreamer-editing-services/sys/src/lib.rs b/gstreamer-editing-services/sys/src/lib.rs index b4c15364f..e24c7ec82 100644 --- a/gstreamer-editing-services/sys/src/lib.rs +++ b/gstreamer-editing-services/sys/src/lib.rs @@ -10,7 +10,7 @@ clippy::unreadable_literal, clippy::upper_case_acronyms )] -#![cfg_attr(feature = "dox", feature(doc_cfg))] +#![cfg_attr(docsrs, feature(doc_cfg))] #[allow(unused_imports)] use libc::{ @@ -148,8 +148,8 @@ pub const GES_VIDEO_STANDARD_TRANSITION_TYPE_WINDSHIELD_U: GESVideoStandardTrans pub const GES_VIDEO_STANDARD_TRANSITION_TYPE_WINDSHIELD_V: GESVideoStandardTransitionType = 263; pub const GES_VIDEO_STANDARD_TRANSITION_TYPE_WINDSHIELD_H: GESVideoStandardTransitionType = 264; pub const GES_VIDEO_STANDARD_TRANSITION_TYPE_CROSSFADE: GESVideoStandardTransitionType = 512; -#[cfg(any(feature = "v1_22", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] +#[cfg(feature = "v1_22")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] pub const GES_VIDEO_STANDARD_TRANSITION_TYPE_FADE_IN: GESVideoStandardTransitionType = 513; pub type GESVideoTestPattern = c_int; @@ -2790,16 +2790,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(feature = "v1_16")] + #[cfg_attr(docsrs, 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(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub fn ges_edit_mode_name(mode: GESEditMode) -> *const c_char; //========================================================================= @@ -2825,8 +2825,8 @@ extern "C" { //========================================================================= // GESMarkerFlags //========================================================================= - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn ges_marker_flags_get_type() -> GType; //========================================================================= @@ -2944,17 +2944,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(feature = "v1_18")] + #[cfg_attr(docsrs, 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(feature = "v1_18")] + #[cfg_attr(docsrs, 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(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub fn ges_base_effect_set_time_translation_funcs( effect: *mut GESBaseEffect, source_to_sink_func: GESBaseEffectTimeTranslationFunc, @@ -2983,16 +2983,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(feature = "v1_18")] + #[cfg_attr(docsrs, 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(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub fn ges_clip_add_top_effect( clip: *mut GESClip, effect: *mut GESBaseEffect, @@ -3010,11 +3010,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(feature = "v1_18")] + #[cfg_attr(docsrs, 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(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub fn ges_clip_get_internal_time_from_timeline_time( clip: *mut GESClip, child: *mut GESTrackElement, @@ -3023,16 +3023,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(feature = "v1_18")] + #[cfg_attr(docsrs, 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(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub fn ges_clip_get_timeline_time_from_source_frame( clip: *mut GESClip, frame_number: GESFrameNumber, @@ -3045,15 +3045,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(feature = "v1_18")] + #[cfg_attr(docsrs, 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(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub fn ges_clip_remove_top_effect( clip: *mut GESClip, effect: *mut GESBaseEffect, @@ -3065,8 +3065,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(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub fn ges_clip_set_top_effect_index_full( clip: *mut GESClip, effect: *mut GESBaseEffect, @@ -3079,8 +3079,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(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub fn ges_clip_split_full( clip: *mut GESClip, position: u64, @@ -3091,14 +3091,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(feature = "v1_18")] + #[cfg_attr(docsrs, 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(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub fn ges_clip_asset_get_natural_framerate( self_: *mut GESClipAsset, framerate_n: *mut c_int, @@ -3221,8 +3221,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(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub fn ges_layer_add_asset_full( layer: *mut GESLayer, asset: *mut GESAsset, @@ -3233,15 +3233,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(feature = "v1_18")] + #[cfg_attr(docsrs, 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(feature = "v1_18")] + #[cfg_attr(docsrs, 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; @@ -3255,8 +3255,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(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub fn ges_layer_set_active_for_tracks( layer: *mut GESLayer, active: gboolean, @@ -3269,40 +3269,40 @@ extern "C" { //========================================================================= // GESMarker //========================================================================= - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, 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(feature = "v1_18")] + #[cfg_attr(docsrs, 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(feature = "v1_18")] + #[cfg_attr(docsrs, 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(feature = "v1_18")] + #[cfg_attr(docsrs, 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(feature = "v1_18")] + #[cfg_attr(docsrs, 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(feature = "v1_18")] + #[cfg_attr(docsrs, 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(feature = "v1_18")] + #[cfg_attr(docsrs, 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(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub fn ges_marker_list_size(list: *mut GESMarkerList) -> c_uint; //========================================================================= @@ -3380,8 +3380,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(feature = "v1_18")] + #[cfg_attr(docsrs, 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, @@ -3427,15 +3427,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(feature = "v1_18")] + #[cfg_attr(docsrs, 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(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub fn ges_source_clip_asset_get_type() -> GType; //========================================================================= @@ -3511,29 +3511,29 @@ extern "C" { pub fn ges_timeline_append_layer(timeline: *mut GESTimeline) -> *mut GESLayer; pub fn ges_timeline_commit(timeline: *mut GESTimeline) -> gboolean; pub fn ges_timeline_commit_sync(timeline: *mut GESTimeline) -> gboolean; - #[cfg(any(feature = "v1_22", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] + #[cfg(feature = "v1_22")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] pub fn ges_timeline_disable_edit_apis(self_: *mut GESTimeline, disable_edit_apis: gboolean); - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn ges_timeline_freeze_commit(timeline: *mut GESTimeline); pub fn ges_timeline_get_auto_transition(timeline: *mut GESTimeline) -> gboolean; pub fn ges_timeline_get_duration(timeline: *mut GESTimeline) -> gst::GstClockTime; - #[cfg(any(feature = "v1_22", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] + #[cfg(feature = "v1_22")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] pub fn ges_timeline_get_edit_apis_disabled(self_: *mut GESTimeline) -> gboolean; pub fn ges_timeline_get_element( 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(feature = "v1_18")] + #[cfg_attr(docsrs, 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(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub fn ges_timeline_get_frame_time( self_: *mut GESTimeline, frame_number: GESFrameNumber, @@ -3557,8 +3557,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(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] pub fn ges_timeline_move_layer( timeline: *mut GESTimeline, layer: *mut GESLayer, @@ -3584,8 +3584,8 @@ extern "C" { timeline: *mut GESTimeline, snapping_distance: gst::GstClockTime, ); - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn ges_timeline_thaw_commit(timeline: *mut GESTimeline); //========================================================================= @@ -3601,8 +3601,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(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub fn ges_timeline_element_edit( self_: *mut GESTimelineElement, layers: *mut glib::GList, @@ -3611,8 +3611,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(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub fn ges_timeline_element_edit_full( self_: *mut GESTimelineElement, new_layer_priority: i64, @@ -3639,15 +3639,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(feature = "v1_16")] + #[cfg_attr(docsrs, 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(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub fn ges_timeline_element_get_natural_framerate( self_: *mut GESTimelineElement, framerate_n: *mut c_int, @@ -3712,8 +3712,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(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub fn ges_timeline_element_set_child_property_full( self_: *mut GESTimelineElement, property_name: *const c_char, @@ -3807,8 +3807,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(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub fn ges_track_add_element_full( track: *mut GESTrack, object: *mut GESTrackElement, @@ -3818,14 +3818,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(feature = "v1_18")] + #[cfg_attr(docsrs, 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(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub fn ges_track_remove_element_full( track: *mut GESTrack, object: *mut GESTrackElement, @@ -3851,8 +3851,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(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub fn ges_track_element_clamp_control_source( object: *mut GESTrackElement, property_name: *const c_char, @@ -3867,8 +3867,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(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub fn ges_track_element_get_auto_clamp_control_sources( object: *mut GESTrackElement, ) -> gboolean; @@ -3897,12 +3897,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(feature = "v1_18")] + #[cfg_attr(docsrs, 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(feature = "v1_18")] + #[cfg_attr(docsrs, 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, @@ -3920,8 +3920,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(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub fn ges_track_element_set_auto_clamp_control_sources( object: *mut GESTrackElement, auto_clamp: gboolean, @@ -3948,8 +3948,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(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub fn ges_track_element_set_has_internal_source( object: *mut GESTrackElement, has_internal_source: gboolean, @@ -3960,8 +3960,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(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub fn ges_track_element_asset_get_natural_framerate( self_: *mut GESTrackElementAsset, framerate_n: *mut c_int, @@ -4002,8 +4002,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(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] pub fn ges_uri_clip_asset_finish( res: *mut gio::GAsyncResult, error: *mut *mut glib::GError, @@ -4022,12 +4022,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(feature = "v1_18")] + #[cfg_attr(docsrs, 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(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub fn ges_uri_clip_asset_is_image(self_: *mut GESUriClipAsset) -> gboolean; //========================================================================= @@ -4041,16 +4041,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(feature = "v1_18")] + #[cfg_attr(docsrs, 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(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub fn ges_video_source_get_natural_size( self_: *mut GESVideoSource, width: *mut c_int, @@ -4164,8 +4164,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(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub fn ges_meta_container_get_marker_list( container: *mut GESMetaContainer, key: *const c_char, @@ -4255,8 +4255,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(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub fn ges_meta_container_register_static_meta( container: *mut GESMetaContainer, flags: GESMetaFlag, @@ -4298,8 +4298,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(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub fn ges_meta_container_set_marker_list( container: *mut GESMetaContainer, meta_item: *const c_char, @@ -4331,8 +4331,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(feature = "v1_18")] + #[cfg_attr(docsrs, 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( @@ -4341,8 +4341,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(feature = "v1_16")] + #[cfg_attr(docsrs, 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-gl/egl/src/auto/versions.txt b/gstreamer-gl/egl/src/auto/versions.txt index 94b843e6a..f606c95a2 100644 --- a/gstreamer-gl/egl/src/auto/versions.txt +++ b/gstreamer-gl/egl/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2) +Generated by gir (https://github.com/gtk-rs/gir @ 719372782330) from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836) diff --git a/gstreamer-gl/egl/sys/Cargo.toml b/gstreamer-gl/egl/sys/Cargo.toml index e5141268a..c0f19efe8 100644 --- a/gstreamer-gl/egl/sys/Cargo.toml +++ b/gstreamer-gl/egl/sys/Cargo.toml @@ -34,7 +34,7 @@ version = "1.22" version = "1.23" [package.metadata.docs.rs] -features = ["dox"] +features = [] [lib] name = "gstreamer_gl_egl_sys" diff --git a/gstreamer-gl/egl/sys/build.rs b/gstreamer-gl/egl/sys/build.rs index 40e2cc398..29420c9ee 100644 --- a/gstreamer-gl/egl/sys/build.rs +++ b/gstreamer-gl/egl/sys/build.rs @@ -3,13 +3,13 @@ // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git) // DO NOT EDIT -#[cfg(not(feature = "dox"))] +#[cfg(not(docsrs))] use std::process; -#[cfg(feature = "dox")] +#[cfg(docsrs)] fn main() {} // prevent linking libraries to avoid documentation failure -#[cfg(not(feature = "dox"))] +#[cfg(not(docsrs))] fn main() { if let Err(s) = system_deps::Config::new().probe() { println!("cargo:warning={s}"); diff --git a/gstreamer-gl/egl/sys/src/auto/versions.txt b/gstreamer-gl/egl/sys/src/auto/versions.txt index 94b843e6a..f606c95a2 100644 --- a/gstreamer-gl/egl/sys/src/auto/versions.txt +++ b/gstreamer-gl/egl/sys/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2) +Generated by gir (https://github.com/gtk-rs/gir @ 719372782330) from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836) diff --git a/gstreamer-gl/egl/sys/src/lib.rs b/gstreamer-gl/egl/sys/src/lib.rs index c169d697f..7278229b6 100644 --- a/gstreamer-gl/egl/sys/src/lib.rs +++ b/gstreamer-gl/egl/sys/src/lib.rs @@ -10,7 +10,7 @@ clippy::unreadable_literal, clippy::upper_case_acronyms )] -#![cfg_attr(feature = "dox", feature(doc_cfg))] +#![cfg_attr(docsrs, feature(doc_cfg))] #[allow(unused_imports)] use libc::{ diff --git a/gstreamer-gl/src/auto/constants.rs b/gstreamer-gl/src/auto/constants.rs index 6498731dc..52a3a24fb 100644 --- a/gstreamer-gl/src/auto/constants.rs +++ b/gstreamer-gl/src/auto/constants.rs @@ -49,8 +49,8 @@ pub static GL_COLOR_CONVERT_EXT_FORMATS: &GStr = #[doc(alias = "GST_GL_COLOR_CONVERT_VIDEO_CAPS")] pub static GL_COLOR_CONVERT_VIDEO_CAPS: &GStr = unsafe { GStr::from_utf8_with_nul_unchecked(ffi::GST_GL_COLOR_CONVERT_VIDEO_CAPS) }; -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(alias = "GST_GL_CONFIG_STRUCTURE_NAME")] pub static GL_CONFIG_STRUCTURE_NAME: &GStr = unsafe { GStr::from_utf8_with_nul_unchecked(ffi::GST_GL_CONFIG_STRUCTURE_NAME) }; diff --git a/gstreamer-gl/src/auto/enums.rs b/gstreamer-gl/src/auto/enums.rs index 606b5fc68..c4836e7fd 100644 --- a/gstreamer-gl/src/auto/enums.rs +++ b/gstreamer-gl/src/auto/enums.rs @@ -10,8 +10,8 @@ use glib::{ }; use std::mem; -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] #[doc(alias = "GstGLConfigCaveat")] @@ -26,8 +26,8 @@ pub enum GLConfigCaveat { __Unknown(i32), } -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] impl GLConfigCaveat { #[doc(alias = "gst_gl_config_caveat_to_string")] #[doc(alias = "to_string")] @@ -37,8 +37,8 @@ impl GLConfigCaveat { } } -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(hidden)] impl IntoGlib for GLConfigCaveat { type GlibType = ffi::GstGLConfigCaveat; @@ -54,8 +54,8 @@ impl IntoGlib for GLConfigCaveat { } } -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(hidden)] impl FromGlib for GLConfigCaveat { #[inline] @@ -71,8 +71,8 @@ impl FromGlib for GLConfigCaveat { } } -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] impl StaticType for GLConfigCaveat { #[inline] fn static_type() -> Type { @@ -80,8 +80,8 @@ impl StaticType for GLConfigCaveat { } } -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] impl glib::HasParamSpec for GLConfigCaveat { type ParamSpec = glib::ParamSpecEnum; type SetValue = Self; @@ -92,14 +92,14 @@ impl glib::HasParamSpec for GLConfigCaveat { } } -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] impl glib::value::ValueType for GLConfigCaveat { type Type = Self; } -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] unsafe impl<'a> FromValue<'a> for GLConfigCaveat { type Checker = glib::value::GenericValueTypeChecker; @@ -110,8 +110,8 @@ unsafe impl<'a> FromValue<'a> for GLConfigCaveat { } } -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] impl ToValue for GLConfigCaveat { #[inline] fn to_value(&self) -> glib::Value { @@ -128,8 +128,8 @@ impl ToValue for GLConfigCaveat { } } -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] impl From for glib::Value { #[inline] fn from(v: GLConfigCaveat) -> Self { @@ -336,8 +336,8 @@ impl GLFormat { } } - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] #[doc(alias = "gst_gl_format_is_supported")] pub fn is_supported(context: &impl IsA, format: GLFormat) -> bool { skip_assert_initialized!(); @@ -349,8 +349,8 @@ impl GLFormat { } } - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] #[doc(alias = "gst_gl_format_type_from_sized_gl_format")] pub fn type_from_sized_gl_format(self) -> (GLFormat, u32) { assert_initialized_main_thread!(); diff --git a/gstreamer-gl/src/auto/flags.rs b/gstreamer-gl/src/auto/flags.rs index 08bac6c24..622b804c4 100644 --- a/gstreamer-gl/src/auto/flags.rs +++ b/gstreamer-gl/src/auto/flags.rs @@ -117,9 +117,9 @@ impl From for glib::Value { } } -#[cfg(any(feature = "v1_20", feature = "dox"))] +#[cfg(feature = "v1_20")] bitflags! { - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(alias = "GstGLConfigSurfaceType")] pub struct GLConfigSurfaceType: u32 { #[doc(alias = "GST_GL_CONFIG_SURFACE_TYPE_NONE")] @@ -133,8 +133,8 @@ bitflags! { } } -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] impl GLConfigSurfaceType { #[doc(alias = "gst_gl_config_surface_type_to_string")] #[doc(alias = "to_string")] @@ -144,8 +144,8 @@ impl GLConfigSurfaceType { } } -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(hidden)] impl IntoGlib for GLConfigSurfaceType { type GlibType = ffi::GstGLConfigSurfaceType; @@ -156,8 +156,8 @@ impl IntoGlib for GLConfigSurfaceType { } } -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(hidden)] impl FromGlib for GLConfigSurfaceType { #[inline] @@ -167,8 +167,8 @@ impl FromGlib for GLConfigSurfaceType { } } -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] impl StaticType for GLConfigSurfaceType { #[inline] fn static_type() -> Type { @@ -176,8 +176,8 @@ impl StaticType for GLConfigSurfaceType { } } -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] impl glib::HasParamSpec for GLConfigSurfaceType { type ParamSpec = glib::ParamSpecFlags; type SetValue = Self; @@ -188,14 +188,14 @@ impl glib::HasParamSpec for GLConfigSurfaceType { } } -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] impl glib::value::ValueType for GLConfigSurfaceType { type Type = Self; } -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] unsafe impl<'a> FromValue<'a> for GLConfigSurfaceType { type Checker = glib::value::GenericValueTypeChecker; @@ -206,8 +206,8 @@ unsafe impl<'a> FromValue<'a> for GLConfigSurfaceType { } } -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] impl ToValue for GLConfigSurfaceType { #[inline] fn to_value(&self) -> glib::Value { @@ -224,8 +224,8 @@ impl ToValue for GLConfigSurfaceType { } } -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] impl From for glib::Value { #[inline] fn from(v: GLConfigSurfaceType) -> Self { @@ -253,20 +253,20 @@ bitflags! { const VIV_FB = ffi::GST_GL_DISPLAY_TYPE_VIV_FB as _; #[doc(alias = "GST_GL_DISPLAY_TYPE_GBM")] const GBM = ffi::GST_GL_DISPLAY_TYPE_GBM as _; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "GST_GL_DISPLAY_TYPE_EGL_DEVICE")] const EGL_DEVICE = ffi::GST_GL_DISPLAY_TYPE_EGL_DEVICE as _; - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(alias = "GST_GL_DISPLAY_TYPE_EAGL")] const EAGL = ffi::GST_GL_DISPLAY_TYPE_EAGL as _; - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(alias = "GST_GL_DISPLAY_TYPE_WINRT")] const WINRT = ffi::GST_GL_DISPLAY_TYPE_WINRT as _; - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(alias = "GST_GL_DISPLAY_TYPE_ANDROID")] const ANDROID = ffi::GST_GL_DISPLAY_TYPE_ANDROID as _; } diff --git a/gstreamer-gl/src/auto/gl_base_filter.rs b/gstreamer-gl/src/auto/gl_base_filter.rs index d4d113875..9767c11ce 100644 --- a/gstreamer-gl/src/auto/gl_base_filter.rs +++ b/gstreamer-gl/src/auto/gl_base_filter.rs @@ -28,13 +28,13 @@ unsafe impl Send for GLBaseFilter {} unsafe impl Sync for GLBaseFilter {} pub trait GLBaseFilterExt: 'static { - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] #[doc(alias = "gst_gl_base_filter_find_gl_context")] fn find_gl_context(&self) -> bool; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "gst_gl_base_filter_get_gl_context")] #[doc(alias = "get_gl_context")] fn gl_context(&self) -> Option; @@ -47,8 +47,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(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] fn find_gl_context(&self) -> bool { unsafe { from_glib(ffi::gst_gl_base_filter_find_gl_context( @@ -57,8 +57,8 @@ impl> GLBaseFilterExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] fn gl_context(&self) -> Option { unsafe { from_glib_full(ffi::gst_gl_base_filter_get_gl_context( diff --git a/gstreamer-gl/src/auto/gl_buffer_pool.rs b/gstreamer-gl/src/auto/gl_buffer_pool.rs index e173c7466..1482a78bc 100644 --- a/gstreamer-gl/src/auto/gl_buffer_pool.rs +++ b/gstreamer-gl/src/auto/gl_buffer_pool.rs @@ -3,8 +3,8 @@ // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git) // DO NOT EDIT -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] use crate::GLAllocationParams; use crate::GLContext; use glib::{prelude::*, translate::*}; @@ -37,16 +37,16 @@ unsafe impl Send for GLBufferPool {} unsafe impl Sync for GLBufferPool {} pub trait GLBufferPoolExt: 'static { - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(alias = "gst_gl_buffer_pool_get_gl_allocation_params")] #[doc(alias = "get_gl_allocation_params")] fn gl_allocation_params(&self) -> Option; } impl> GLBufferPoolExt for O { - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] fn gl_allocation_params(&self) -> Option { unsafe { from_glib_full(ffi::gst_gl_buffer_pool_get_gl_allocation_params( diff --git a/gstreamer-gl/src/auto/gl_context.rs b/gstreamer-gl/src/auto/gl_context.rs index d3e793840..19d6ae51b 100644 --- a/gstreamer-gl/src/auto/gl_context.rs +++ b/gstreamer-gl/src/auto/gl_context.rs @@ -83,8 +83,8 @@ pub trait GLContextExt: 'static { #[doc(alias = "gst_gl_context_fill_info")] fn fill_info(&self) -> Result<(), glib::Error>; - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(alias = "gst_gl_context_get_config")] #[doc(alias = "get_config")] fn config(&self) -> Option; @@ -116,8 +116,8 @@ pub trait GLContextExt: 'static { #[doc(alias = "gst_gl_context_is_shared")] fn is_shared(&self) -> bool; - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(alias = "gst_gl_context_request_config")] fn request_config(&self, gl_config: Option) -> bool; @@ -130,13 +130,13 @@ pub trait GLContextExt: 'static { #[doc(alias = "gst_gl_context_supports_glsl_profile_version")] fn supports_glsl_profile_version(&self, version: GLSLVersion, profile: GLSLProfile) -> bool; - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] #[doc(alias = "gst_gl_context_supports_precision")] fn supports_precision(&self, version: GLSLVersion, profile: GLSLProfile) -> bool; - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] #[doc(alias = "gst_gl_context_supports_precision_highp")] fn supports_precision_highp(&self, version: GLSLVersion, profile: GLSLProfile) -> bool; @@ -240,8 +240,8 @@ impl> GLContextExt for O { } } - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] fn config(&self) -> Option { unsafe { from_glib_full(ffi::gst_gl_context_get_config( @@ -316,8 +316,8 @@ impl> GLContextExt for O { } } - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] fn request_config(&self, gl_config: Option) -> bool { unsafe { from_glib(ffi::gst_gl_context_request_config( @@ -358,8 +358,8 @@ impl> GLContextExt for O { } } - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] fn supports_precision(&self, version: GLSLVersion, profile: GLSLProfile) -> bool { unsafe { from_glib(ffi::gst_gl_context_supports_precision( @@ -370,8 +370,8 @@ impl> GLContextExt for O { } } - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, 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 0e2c67dfe..d7fa9dbe2 100644 --- a/gstreamer-gl/src/auto/gl_display.rs +++ b/gstreamer-gl/src/auto/gl_display.rs @@ -29,8 +29,8 @@ impl GLDisplay { unsafe { from_glib_full(ffi::gst_gl_display_new()) } } - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(alias = "gst_gl_display_new_with_type")] #[doc(alias = "new_with_type")] pub fn with_type(type_: GLDisplayType) -> Option { @@ -70,8 +70,8 @@ pub trait GLDisplayExt: 'static { #[doc(alias = "gst_gl_display_remove_window")] fn remove_window(&self, window: &impl IsA) -> Result<(), glib::error::BoolError>; - //#[cfg(any(feature = "v1_18", feature = "dox"))] - //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + //#[cfg(feature = "v1_18")] + //#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] //#[doc(alias = "gst_gl_display_retrieve_window")] //fn retrieve_window(&self, data: /*Unimplemented*/Option, compare_func: /*Unimplemented*/FnMut(/*Unimplemented*/Option) -> i32) -> Option; @@ -136,8 +136,8 @@ impl> GLDisplayExt for O { } } - //#[cfg(any(feature = "v1_18", feature = "dox"))] - //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + //#[cfg(feature = "v1_18")] + //#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] //fn retrieve_window(&self, data: /*Unimplemented*/Option, compare_func: /*Unimplemented*/FnMut(/*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 c96a29ded..a17baa1a5 100644 --- a/gstreamer-gl/src/auto/gl_overlay_compositor.rs +++ b/gstreamer-gl/src/auto/gl_overlay_compositor.rs @@ -4,12 +4,12 @@ // DO NOT EDIT use crate::GLContext; -#[cfg(any(feature = "v1_16", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] +#[cfg(feature = "v1_16")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] use glib::signal::{connect_raw, SignalHandlerId}; use glib::{prelude::*, translate::*}; -#[cfg(any(feature = "v1_16", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] +#[cfg(feature = "v1_16")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] use std::{boxed::Box as Box_, mem::transmute}; glib::wrapper! { @@ -46,14 +46,14 @@ impl GLOverlayCompositor { } } - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] pub fn is_yinvert(&self) -> bool { glib::ObjectExt::property(self, "yinvert") } - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] pub fn set_yinvert(&self, yinvert: bool) { glib::ObjectExt::set_property(self, "yinvert", yinvert) } @@ -68,8 +68,8 @@ impl GLOverlayCompositor { } } - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] #[doc(alias = "yinvert")] pub fn connect_yinvert_notify( &self, diff --git a/gstreamer-gl/src/auto/gl_shader.rs b/gstreamer-gl/src/auto/gl_shader.rs index c07754751..300e95662 100644 --- a/gstreamer-gl/src/auto/gl_shader.rs +++ b/gstreamer-gl/src/auto/gl_shader.rs @@ -4,8 +4,8 @@ // DO NOT EDIT use crate::{GLContext, GLSLStage}; -#[cfg(any(feature = "v1_16", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] +#[cfg(feature = "v1_16")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] use crate::{GLSLProfile, GLSLVersion}; use glib::{ prelude::*, @@ -370,8 +370,8 @@ impl GLShader { } } - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] #[doc(alias = "gst_gl_shader_string_fragment_external_oes_get_default")] pub fn string_fragment_external_oes_get_default( context: &impl IsA, @@ -388,8 +388,8 @@ impl GLShader { } } - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] #[doc(alias = "gst_gl_shader_string_fragment_get_default")] pub fn string_fragment_get_default( context: &impl IsA, @@ -406,8 +406,8 @@ impl GLShader { } } - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] #[doc(alias = "gst_gl_shader_string_get_highest_precision")] pub fn string_get_highest_precision( context: &impl IsA, diff --git a/gstreamer-gl/src/auto/gl_window.rs b/gstreamer-gl/src/auto/gl_window.rs index ca9c4621e..2017a6936 100644 --- a/gstreamer-gl/src/auto/gl_window.rs +++ b/gstreamer-gl/src/auto/gl_window.rs @@ -34,8 +34,8 @@ unsafe impl Send for GLWindow {} unsafe impl Sync for GLWindow {} pub trait GLWindowExt: 'static { - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] #[doc(alias = "gst_gl_window_controls_viewport")] fn controls_viewport(&self) -> bool; @@ -53,8 +53,8 @@ pub trait GLWindowExt: 'static { #[doc(alias = "gst_gl_window_handle_events")] fn handle_events(&self, handle_events: bool); - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "gst_gl_window_has_output_surface")] fn has_output_surface(&self) -> bool; @@ -76,8 +76,8 @@ pub trait GLWindowExt: 'static { #[doc(alias = "gst_gl_window_send_mouse_event")] fn send_mouse_event(&self, event_type: &str, button: i32, posx: f64, posy: f64); - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "gst_gl_window_send_scroll_event")] fn send_scroll_event(&self, posx: f64, posy: f64, delta_x: f64, delta_y: f64); @@ -108,16 +108,16 @@ pub trait GLWindowExt: 'static { f: F, ) -> SignalHandlerId; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "scroll-event")] fn connect_scroll_event( &self, f: F, ) -> SignalHandlerId; - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(alias = "window-handle-changed")] fn connect_window_handle_changed( &self, @@ -126,8 +126,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(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] fn controls_viewport(&self) -> bool { unsafe { from_glib(ffi::gst_gl_window_controls_viewport( @@ -172,8 +172,8 @@ impl> GLWindowExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] fn has_output_surface(&self) -> bool { unsafe { from_glib(ffi::gst_gl_window_has_output_surface( @@ -228,8 +228,8 @@ impl> GLWindowExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, 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( @@ -345,8 +345,8 @@ impl> GLWindowExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] fn connect_scroll_event( &self, f: F, @@ -384,8 +384,8 @@ impl> GLWindowExt for O { } } - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] fn connect_window_handle_changed( &self, f: F, diff --git a/gstreamer-gl/src/auto/mod.rs b/gstreamer-gl/src/auto/mod.rs index 12c8cb50e..9f0fcbdde 100644 --- a/gstreamer-gl/src/auto/mod.rs +++ b/gstreamer-gl/src/auto/mod.rs @@ -9,11 +9,11 @@ pub use self::gl_base_filter::GLBaseFilter; mod gl_base_memory_allocator; pub use self::gl_base_memory_allocator::GLBaseMemoryAllocator; -#[cfg(any(feature = "v1_18", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] +#[cfg(feature = "v1_18")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] mod gl_base_src; -#[cfg(any(feature = "v1_18", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] +#[cfg(feature = "v1_18")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub use self::gl_base_src::GLBaseSrc; mod gl_buffer_pool; @@ -62,8 +62,8 @@ mod gl_video_allocation_params; pub use self::gl_video_allocation_params::GLVideoAllocationParams; mod enums; -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub use self::enums::GLConfigCaveat; pub use self::enums::GLContextError; pub use self::enums::GLFormat; @@ -76,8 +76,8 @@ pub use self::enums::GLUploadReturn; pub use self::enums::GLWindowError; mod flags; -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub use self::flags::GLConfigSurfaceType; pub use self::flags::GLDisplayType; pub use self::flags::GLPlatform; @@ -101,8 +101,8 @@ pub use self::constants::GL_BASE_MEMORY_ALLOCATOR_NAME; pub use self::constants::GL_BUFFER_ALLOCATOR_NAME; pub use self::constants::GL_COLOR_CONVERT_EXT_FORMATS; pub use self::constants::GL_COLOR_CONVERT_VIDEO_CAPS; -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub use self::constants::GL_CONFIG_STRUCTURE_NAME; pub use self::constants::GL_CONTEXT_TYPE_CGL; pub use self::constants::GL_CONTEXT_TYPE_EAGL; @@ -121,8 +121,8 @@ pub use self::constants::GL_TEXTURE_TARGET_RECTANGLE_STR; #[doc(hidden)] pub mod traits { pub use super::gl_base_filter::GLBaseFilterExt; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub use super::gl_base_src::GLBaseSrcExt; pub use super::gl_buffer_pool::GLBufferPoolExt; pub use super::gl_context::GLContextExt; diff --git a/gstreamer-gl/src/auto/versions.txt b/gstreamer-gl/src/auto/versions.txt index 94b843e6a..f606c95a2 100644 --- a/gstreamer-gl/src/auto/versions.txt +++ b/gstreamer-gl/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2) +Generated by gir (https://github.com/gtk-rs/gir @ 719372782330) from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836) diff --git a/gstreamer-gl/sys/Cargo.toml b/gstreamer-gl/sys/Cargo.toml index c9231d838..7eb509c5a 100644 --- a/gstreamer-gl/sys/Cargo.toml +++ b/gstreamer-gl/sys/Cargo.toml @@ -55,7 +55,7 @@ edition = "2021" rust-version = "1.66" [package.metadata.docs.rs] -features = ["dox"] +features = [] [package.metadata.system-deps.gstreamer_gl_1_0] name = "gstreamer-gl-1.0" diff --git a/gstreamer-gl/sys/build.rs b/gstreamer-gl/sys/build.rs index 40e2cc398..29420c9ee 100644 --- a/gstreamer-gl/sys/build.rs +++ b/gstreamer-gl/sys/build.rs @@ -3,13 +3,13 @@ // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git) // DO NOT EDIT -#[cfg(not(feature = "dox"))] +#[cfg(not(docsrs))] use std::process; -#[cfg(feature = "dox")] +#[cfg(docsrs)] fn main() {} // prevent linking libraries to avoid documentation failure -#[cfg(not(feature = "dox"))] +#[cfg(not(docsrs))] fn main() { if let Err(s) = system_deps::Config::new().probe() { println!("cargo:warning={s}"); diff --git a/gstreamer-gl/sys/src/auto/versions.txt b/gstreamer-gl/sys/src/auto/versions.txt index 94b843e6a..f606c95a2 100644 --- a/gstreamer-gl/sys/src/auto/versions.txt +++ b/gstreamer-gl/sys/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2) +Generated by gir (https://github.com/gtk-rs/gir @ 719372782330) from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836) diff --git a/gstreamer-gl/sys/src/lib.rs b/gstreamer-gl/sys/src/lib.rs index 1db845c67..349343bf3 100644 --- a/gstreamer-gl/sys/src/lib.rs +++ b/gstreamer-gl/sys/src/lib.rs @@ -10,7 +10,7 @@ clippy::unreadable_literal, clippy::upper_case_acronyms )] -#![cfg_attr(feature = "dox", feature(doc_cfg))] +#![cfg_attr(docsrs, feature(doc_cfg))] mod manual; @@ -187,17 +187,17 @@ pub const GST_GL_DISPLAY_TYPE_DISPMANX: GstGLDisplayType = 16; pub const GST_GL_DISPLAY_TYPE_EGL: GstGLDisplayType = 32; pub const GST_GL_DISPLAY_TYPE_VIV_FB: GstGLDisplayType = 64; pub const GST_GL_DISPLAY_TYPE_GBM: GstGLDisplayType = 128; -#[cfg(any(feature = "v1_18", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] +#[cfg(feature = "v1_18")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub const GST_GL_DISPLAY_TYPE_EGL_DEVICE: GstGLDisplayType = 256; -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub const GST_GL_DISPLAY_TYPE_EAGL: GstGLDisplayType = 512; -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub const GST_GL_DISPLAY_TYPE_WINRT: GstGLDisplayType = 1024; -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub const GST_GL_DISPLAY_TYPE_ANDROID: GstGLDisplayType = 2048; pub const GST_GL_DISPLAY_TYPE_ANY: GstGLDisplayType = 4294967295; @@ -1504,11 +1504,11 @@ extern "C" { //========================================================================= // GstGLConfigCaveat //========================================================================= - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_gl_config_caveat_get_type() -> GType; - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_gl_config_caveat_to_string(caveat: GstGLConfigCaveat) -> *const c_char; //========================================================================= @@ -1526,11 +1526,11 @@ extern "C" { vinfo: *const gst_video::GstVideoInfo, plane: c_uint, ) -> GstGLFormat; - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, 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(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] pub fn gst_gl_format_type_from_sized_gl_format( format: GstGLFormat, unsized_format: *mut GstGLFormat, @@ -1607,11 +1607,11 @@ extern "C" { //========================================================================= // GstGLConfigSurfaceType //========================================================================= - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_gl_config_surface_type_get_type() -> GType; - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_gl_config_surface_type_to_string( surface_type: GstGLConfigSurfaceType, ) -> *const c_char; @@ -1716,8 +1716,8 @@ extern "C" { //========================================================================= // GstGLBuffer //========================================================================= - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_gl_buffer_get_type() -> GType; pub fn gst_gl_buffer_init_once(); @@ -1736,8 +1736,8 @@ extern "C" { //========================================================================= // GstGLMemory //========================================================================= - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_gl_memory_get_type() -> GType; pub fn gst_gl_memory_copy_into( gl_mem: *mut GstGLMemory, @@ -1790,8 +1790,8 @@ extern "C" { //========================================================================= // GstGLMemoryPBO //========================================================================= - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_gl_memory_pbo_get_type() -> GType; pub fn gst_gl_memory_pbo_copy_into_texture( gl_mem: *mut GstGLMemoryPBO, @@ -1834,8 +1834,8 @@ extern "C" { //========================================================================= // GstGLRenderbuffer //========================================================================= - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_gl_renderbuffer_get_type() -> GType; pub fn gst_gl_renderbuffer_get_format(gl_mem: *mut GstGLRenderbuffer) -> GstGLFormat; pub fn gst_gl_renderbuffer_get_height(gl_mem: *mut GstGLRenderbuffer) -> c_int; @@ -1953,11 +1953,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(feature = "v1_16")] + #[cfg_attr(docsrs, 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(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub fn gst_gl_base_filter_get_gl_context(filter: *mut GstGLBaseFilter) -> *mut GstGLContext; //========================================================================= @@ -1968,8 +1968,8 @@ extern "C" { //========================================================================= // GstGLBaseSrc //========================================================================= - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub fn gst_gl_base_src_get_type() -> GType; //========================================================================= @@ -1982,8 +1982,8 @@ extern "C" { //========================================================================= pub fn gst_gl_buffer_pool_get_type() -> GType; pub fn gst_gl_buffer_pool_new(context: *mut GstGLContext) -> *mut gst::GstBufferPool; - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_gl_buffer_pool_get_gl_allocation_params( pool: *mut GstGLBufferPool, ) -> *mut GstGLAllocationParams; @@ -2077,8 +2077,8 @@ extern "C" { context: *mut GstGLContext, error: *mut *mut glib::GError, ) -> gboolean; - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_gl_context_get_config(context: *mut GstGLContext) -> *mut gst::GstStructure; pub fn gst_gl_context_get_display(context: *mut GstGLContext) -> *mut GstGLDisplay; pub fn gst_gl_context_get_gl_api(context: *mut GstGLContext) -> GstGLAPI; @@ -2101,8 +2101,8 @@ extern "C" { pub fn gst_gl_context_get_thread(context: *mut GstGLContext) -> *mut glib::GThread; pub fn gst_gl_context_get_window(context: *mut GstGLContext) -> *mut GstGLWindow; pub fn gst_gl_context_is_shared(context: *mut GstGLContext) -> gboolean; - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_gl_context_request_config( context: *mut GstGLContext, gl_config: *mut gst::GstStructure, @@ -2117,15 +2117,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(feature = "v1_16")] + #[cfg_attr(docsrs, 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(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] pub fn gst_gl_context_supports_precision_highp( context: *mut GstGLContext, version: GstGLSLVersion, @@ -2143,8 +2143,8 @@ extern "C" { //========================================================================= pub fn gst_gl_display_get_type() -> GType; pub fn gst_gl_display_new() -> *mut GstGLDisplay; - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_gl_display_new_with_type(type_: GstGLDisplayType) -> *mut GstGLDisplay; pub fn gst_gl_display_add_context( display: *mut GstGLDisplay, @@ -2157,8 +2157,8 @@ extern "C" { error: *mut *mut glib::GError, ) -> gboolean; pub fn gst_gl_display_create_window(display: *mut GstGLDisplay) -> *mut GstGLWindow; - #[cfg(any(feature = "v1_24", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_24")))] + #[cfg(feature = "v1_24")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))] pub fn gst_gl_display_ensure_context( display: *mut GstGLDisplay, other_context: *mut GstGLContext, @@ -2179,15 +2179,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(feature = "v1_18")] + #[cfg_attr(docsrs, 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(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub fn gst_gl_display_retrieve_window( display: *mut GstGLDisplay, data: gpointer, @@ -2337,22 +2337,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(feature = "v1_16")] + #[cfg_attr(docsrs, 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(feature = "v1_16")] + #[cfg_attr(docsrs, 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(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] pub fn gst_gl_shader_string_get_highest_precision( context: *mut GstGLContext, version: GstGLSLVersion, @@ -2635,8 +2635,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(feature = "v1_16")] + #[cfg_attr(docsrs, 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; @@ -2648,8 +2648,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(feature = "v1_18")] + #[cfg_attr(docsrs, 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); @@ -2678,8 +2678,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(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub fn gst_gl_window_send_scroll_event( window: *mut GstGLWindow, posx: c_double, @@ -2750,8 +2750,8 @@ extern "C" { display_ptr: *mut *mut GstGLDisplay, other_context_ptr: *mut *mut GstGLContext, ) -> gboolean; - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_gl_get_affine_transformation_meta_as_ndc( meta: *mut gst_video::GstVideoAffineTransformationMeta, matrix: *mut [c_float; 16], @@ -2780,15 +2780,15 @@ extern "C" { other_context: *mut *mut GstGLContext, ) -> gboolean; pub fn gst_gl_insert_debug_marker(context: *mut GstGLContext, format: *const c_char, ...); - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_gl_multiply_matrix4( a: *const [c_float; 16], b: *const [c_float; 16], result: *mut [c_float; 16], ); - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_gl_set_affine_transformation_meta_from_ndc( meta: *mut gst_video::GstVideoAffineTransformationMeta, matrix: *const [c_float; 16], diff --git a/gstreamer-gl/wayland/src/auto/versions.txt b/gstreamer-gl/wayland/src/auto/versions.txt index 94b843e6a..f606c95a2 100644 --- a/gstreamer-gl/wayland/src/auto/versions.txt +++ b/gstreamer-gl/wayland/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2) +Generated by gir (https://github.com/gtk-rs/gir @ 719372782330) from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836) diff --git a/gstreamer-gl/wayland/sys/Cargo.toml b/gstreamer-gl/wayland/sys/Cargo.toml index 32a958f5d..62f1485be 100644 --- a/gstreamer-gl/wayland/sys/Cargo.toml +++ b/gstreamer-gl/wayland/sys/Cargo.toml @@ -34,7 +34,7 @@ version = "1.22" version = "1.23" [package.metadata.docs.rs] -features = ["dox"] +features = [] [lib] name = "gstreamer_gl_wayland_sys" diff --git a/gstreamer-gl/wayland/sys/build.rs b/gstreamer-gl/wayland/sys/build.rs index 40e2cc398..29420c9ee 100644 --- a/gstreamer-gl/wayland/sys/build.rs +++ b/gstreamer-gl/wayland/sys/build.rs @@ -3,13 +3,13 @@ // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git) // DO NOT EDIT -#[cfg(not(feature = "dox"))] +#[cfg(not(docsrs))] use std::process; -#[cfg(feature = "dox")] +#[cfg(docsrs)] fn main() {} // prevent linking libraries to avoid documentation failure -#[cfg(not(feature = "dox"))] +#[cfg(not(docsrs))] fn main() { if let Err(s) = system_deps::Config::new().probe() { println!("cargo:warning={s}"); diff --git a/gstreamer-gl/wayland/sys/src/auto/versions.txt b/gstreamer-gl/wayland/sys/src/auto/versions.txt index 94b843e6a..f606c95a2 100644 --- a/gstreamer-gl/wayland/sys/src/auto/versions.txt +++ b/gstreamer-gl/wayland/sys/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2) +Generated by gir (https://github.com/gtk-rs/gir @ 719372782330) from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836) diff --git a/gstreamer-gl/wayland/sys/src/lib.rs b/gstreamer-gl/wayland/sys/src/lib.rs index 873e38fc6..295ddfce5 100644 --- a/gstreamer-gl/wayland/sys/src/lib.rs +++ b/gstreamer-gl/wayland/sys/src/lib.rs @@ -10,7 +10,7 @@ clippy::unreadable_literal, clippy::upper_case_acronyms )] -#![cfg_attr(feature = "dox", feature(doc_cfg))] +#![cfg_attr(docsrs, feature(doc_cfg))] #[allow(unused_imports)] use libc::{ diff --git a/gstreamer-gl/x11/src/auto/versions.txt b/gstreamer-gl/x11/src/auto/versions.txt index 94b843e6a..f606c95a2 100644 --- a/gstreamer-gl/x11/src/auto/versions.txt +++ b/gstreamer-gl/x11/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2) +Generated by gir (https://github.com/gtk-rs/gir @ 719372782330) from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836) diff --git a/gstreamer-gl/x11/sys/Cargo.toml b/gstreamer-gl/x11/sys/Cargo.toml index b48faef61..c5ffdcee3 100644 --- a/gstreamer-gl/x11/sys/Cargo.toml +++ b/gstreamer-gl/x11/sys/Cargo.toml @@ -34,7 +34,7 @@ version = "1.22" version = "1.23" [package.metadata.docs.rs] -features = ["dox"] +features = [] [lib] name = "gstreamer_gl_x11_sys" diff --git a/gstreamer-gl/x11/sys/build.rs b/gstreamer-gl/x11/sys/build.rs index 40e2cc398..29420c9ee 100644 --- a/gstreamer-gl/x11/sys/build.rs +++ b/gstreamer-gl/x11/sys/build.rs @@ -3,13 +3,13 @@ // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git) // DO NOT EDIT -#[cfg(not(feature = "dox"))] +#[cfg(not(docsrs))] use std::process; -#[cfg(feature = "dox")] +#[cfg(docsrs)] fn main() {} // prevent linking libraries to avoid documentation failure -#[cfg(not(feature = "dox"))] +#[cfg(not(docsrs))] fn main() { if let Err(s) = system_deps::Config::new().probe() { println!("cargo:warning={s}"); diff --git a/gstreamer-gl/x11/sys/src/auto/versions.txt b/gstreamer-gl/x11/sys/src/auto/versions.txt index 94b843e6a..f606c95a2 100644 --- a/gstreamer-gl/x11/sys/src/auto/versions.txt +++ b/gstreamer-gl/x11/sys/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2) +Generated by gir (https://github.com/gtk-rs/gir @ 719372782330) from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836) diff --git a/gstreamer-gl/x11/sys/src/lib.rs b/gstreamer-gl/x11/sys/src/lib.rs index 8f9962b6a..43ab50587 100644 --- a/gstreamer-gl/x11/sys/src/lib.rs +++ b/gstreamer-gl/x11/sys/src/lib.rs @@ -10,7 +10,7 @@ clippy::unreadable_literal, clippy::upper_case_acronyms )] -#![cfg_attr(feature = "dox", feature(doc_cfg))] +#![cfg_attr(docsrs, feature(doc_cfg))] #[allow(unused_imports)] use libc::{ diff --git a/gstreamer-mpegts/src/auto/mod.rs b/gstreamer-mpegts/src/auto/mod.rs index dfcf3be8a..0d02050b0 100644 --- a/gstreamer-mpegts/src/auto/mod.rs +++ b/gstreamer-mpegts/src/auto/mod.rs @@ -3,9 +3,9 @@ // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git) // DO NOT EDIT -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] mod section; -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub use self::section::Section; diff --git a/gstreamer-mpegts/src/auto/versions.txt b/gstreamer-mpegts/src/auto/versions.txt index 94b843e6a..f606c95a2 100644 --- a/gstreamer-mpegts/src/auto/versions.txt +++ b/gstreamer-mpegts/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2) +Generated by gir (https://github.com/gtk-rs/gir @ 719372782330) from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836) diff --git a/gstreamer-mpegts/sys/Cargo.toml b/gstreamer-mpegts/sys/Cargo.toml index 0f86bf887..ee60c669a 100644 --- a/gstreamer-mpegts/sys/Cargo.toml +++ b/gstreamer-mpegts/sys/Cargo.toml @@ -14,7 +14,7 @@ edition = "2021" rust-version = "1.66" [package.metadata.docs.rs] -features = ["dox"] +features = [] [package.metadata.system-deps.gstreamer_mpegts_1_0] name = "gstreamer-mpegts-1.0" diff --git a/gstreamer-mpegts/sys/build.rs b/gstreamer-mpegts/sys/build.rs index 40e2cc398..29420c9ee 100644 --- a/gstreamer-mpegts/sys/build.rs +++ b/gstreamer-mpegts/sys/build.rs @@ -3,13 +3,13 @@ // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git) // DO NOT EDIT -#[cfg(not(feature = "dox"))] +#[cfg(not(docsrs))] use std::process; -#[cfg(feature = "dox")] +#[cfg(docsrs)] fn main() {} // prevent linking libraries to avoid documentation failure -#[cfg(not(feature = "dox"))] +#[cfg(not(docsrs))] fn main() { if let Err(s) = system_deps::Config::new().probe() { println!("cargo:warning={s}"); diff --git a/gstreamer-mpegts/sys/src/auto/versions.txt b/gstreamer-mpegts/sys/src/auto/versions.txt index 94b843e6a..f606c95a2 100644 --- a/gstreamer-mpegts/sys/src/auto/versions.txt +++ b/gstreamer-mpegts/sys/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2) +Generated by gir (https://github.com/gtk-rs/gir @ 719372782330) from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836) diff --git a/gstreamer-mpegts/sys/src/lib.rs b/gstreamer-mpegts/sys/src/lib.rs index 0cd39f25e..35f6693e2 100644 --- a/gstreamer-mpegts/sys/src/lib.rs +++ b/gstreamer-mpegts/sys/src/lib.rs @@ -10,7 +10,7 @@ clippy::unreadable_literal, clippy::upper_case_acronyms )] -#![cfg_attr(feature = "dox", feature(doc_cfg))] +#![cfg_attr(docsrs, feature(doc_cfg))] #[allow(unused_imports)] use libc::{ @@ -191,8 +191,8 @@ pub const GST_MTS_DESC_EXT_DVB_VIDEO_DEPTH_RANGE: GstMpegtsDVBExtendedDescriptor pub const GST_MTS_DESC_EXT_DVB_T2MI: GstMpegtsDVBExtendedDescriptorType = 17; pub const GST_MTS_DESC_EXT_DVB_URI_LINKAGE: GstMpegtsDVBExtendedDescriptorType = 19; pub const GST_MTS_DESC_EXT_DVB_AC4: GstMpegtsDVBExtendedDescriptorType = 21; -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub const GST_MTS_DESC_EXT_DVB_AUDIO_PRESELECTION: GstMpegtsDVBExtendedDescriptorType = 25; pub type GstMpegtsDVBLinkageHandOverType = c_int; @@ -378,17 +378,17 @@ pub const GST_MPEGTS_AUDIO_TYPE_HEARING_IMPAIRED: GstMpegtsIso639AudioType = 2; pub const GST_MPEGTS_AUDIO_TYPE_VISUAL_IMPAIRED_COMMENTARY: GstMpegtsIso639AudioType = 3; pub type GstMpegtsMetadataFormat = c_int; -#[cfg(any(feature = "v1_24", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_24")))] +#[cfg(feature = "v1_24")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))] pub const GST_MPEGTS_METADATA_FORMAT_TEM: GstMpegtsMetadataFormat = 16; -#[cfg(any(feature = "v1_24", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_24")))] +#[cfg(feature = "v1_24")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))] pub const GST_MPEGTS_METADATA_FORMAT_BIM: GstMpegtsMetadataFormat = 17; -#[cfg(any(feature = "v1_24", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_24")))] +#[cfg(feature = "v1_24")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))] pub const GST_MPEGTS_METADATA_FORMAT_APPLICATION_FORMAT: GstMpegtsMetadataFormat = 63; -#[cfg(any(feature = "v1_24", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_24")))] +#[cfg(feature = "v1_24")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))] pub const GST_MPEGTS_METADATA_FORMAT_IDENTIFIER_FIELD: GstMpegtsMetadataFormat = 255; pub type GstMpegtsMiscDescriptorType = c_int; @@ -477,8 +477,8 @@ pub const GST_MTS_TABLE_ID_ATSC_CHANNEL_OR_EVENT_EXTENDED_TEXT: GstMpegtsSection pub const GST_MTS_TABLE_ID_ATSC_SYSTEM_TIME: GstMpegtsSectionATSCTableID = 205; pub const GST_MTS_TABLE_ID_ATSC_DATA_EVENT: GstMpegtsSectionATSCTableID = 206; pub const GST_MTS_TABLE_ID_ATSC_DATA_SERVICE: GstMpegtsSectionATSCTableID = 207; -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub const GST_MTS_TABLE_ID_ATSC_PROGRAM_IDENTIFIER: GstMpegtsSectionATSCTableID = 208; pub const GST_MTS_TABLE_ID_ATSC_NETWORK_RESOURCE: GstMpegtsSectionATSCTableID = 209; pub const GST_MTS_TABLE_ID_ATSC_LONG_TERM_SERVICE: GstMpegtsSectionATSCTableID = 210; @@ -496,11 +496,11 @@ pub const GST_MTS_TABLE_ID_NETWORK_INFORMATION_OTHER_NETWORK: GstMpegtsSectionDV pub const GST_MTS_TABLE_ID_SERVICE_DESCRIPTION_ACTUAL_TS: GstMpegtsSectionDVBTableID = 66; pub const GST_MTS_TABLE_ID_SERVICE_DESCRIPTION_OTHER_TS: GstMpegtsSectionDVBTableID = 70; pub const GST_MTS_TABLE_ID_BOUQUET_ASSOCIATION: GstMpegtsSectionDVBTableID = 74; -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub const GST_MTS_TABLE_ID_UPDATE_NOTIFICATION: GstMpegtsSectionDVBTableID = 75; -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub const GST_MTS_TABLE_ID_DOWNLOADABLE_FONT_INFO: GstMpegtsSectionDVBTableID = 76; pub const GST_MTS_TABLE_ID_EVENT_INFORMATION_ACTUAL_TS_PRESENT: GstMpegtsSectionDVBTableID = 78; pub const GST_MTS_TABLE_ID_EVENT_INFORMATION_OTHER_TS_PRESENT: GstMpegtsSectionDVBTableID = 79; @@ -519,8 +519,8 @@ pub const GST_MTS_TABLE_ID_CONTENT_IDENTIFIER: GstMpegtsSectionDVBTableID = 119; pub const GST_MTS_TABLE_ID_MPE_FEC: GstMpegtsSectionDVBTableID = 120; pub const GST_MTS_TABLE_ID_RESOLUTION_NOTIFICATION: GstMpegtsSectionDVBTableID = 121; pub const GST_MTS_TABLE_ID_MPE_IFEC: GstMpegtsSectionDVBTableID = 122; -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub const GST_MTS_TABLE_ID_PROTECTION_MESSAGE: GstMpegtsSectionDVBTableID = 123; pub const GST_MTS_TABLE_ID_DISCONTINUITY_INFORMATION: GstMpegtsSectionDVBTableID = 126; pub const GST_MTS_TABLE_ID_SELECTION_INFORMATION: GstMpegtsSectionDVBTableID = 127; @@ -557,14 +557,14 @@ pub const GST_MTS_TABLE_ID_14496_SCENE_DESCRIPTION: GstMpegtsSectionTableID = 4; pub const GST_MTS_TABLE_ID_14496_OBJET_DESCRIPTOR: GstMpegtsSectionTableID = 5; pub const GST_MTS_TABLE_ID_METADATA: GstMpegtsSectionTableID = 6; pub const GST_MTS_TABLE_ID_IPMP_CONTROL_INFORMATION: GstMpegtsSectionTableID = 7; -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub const GST_MTS_TABLE_ID_14496_SECTION: GstMpegtsSectionTableID = 8; -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub const GST_MTS_TABLE_ID_23001_11_SECTION: GstMpegtsSectionTableID = 9; -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub const GST_MTS_TABLE_ID_23001_10_SECTION: GstMpegtsSectionTableID = 10; pub const GST_MTS_TABLE_ID_DSM_CC_MULTIPROTO_ENCAPSULATED_DATA: GstMpegtsSectionTableID = 58; pub const GST_MTS_TABLE_ID_DSM_CC_U_N_MESSAGES: GstMpegtsSectionTableID = 59; @@ -586,8 +586,8 @@ pub const GST_MPEGTS_SECTION_BAT: GstMpegtsSectionType = 7; pub const GST_MPEGTS_SECTION_SDT: GstMpegtsSectionType = 8; pub const GST_MPEGTS_SECTION_TDT: GstMpegtsSectionType = 9; pub const GST_MPEGTS_SECTION_TOT: GstMpegtsSectionType = 10; -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub const GST_MPEGTS_SECTION_SIT: GstMpegtsSectionType = 11; pub const GST_MPEGTS_SECTION_ATSC_TVCT: GstMpegtsSectionType = 12; pub const GST_MPEGTS_SECTION_ATSC_CVCT: GstMpegtsSectionType = 13; @@ -637,8 +637,8 @@ pub const GST_MPEGTS_STREAM_TYPE_VIDEO_MPEG2_STEREO_ADDITIONAL_VIEW: GstMpegtsSt pub const GST_MPEGTS_STREAM_TYPE_VIDEO_H264_STEREO_ADDITIONAL_VIEW: GstMpegtsStreamType = 35; pub const GST_MPEGTS_STREAM_TYPE_VIDEO_HEVC: GstMpegtsStreamType = 36; pub const GST_MPEGTS_STREAM_TYPE_IPMP_STREAM: GstMpegtsStreamType = 127; -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub const GST_MPEGTS_STREAM_TYPE_USER_PRIVATE_EA: GstMpegtsStreamType = 234; pub type GstMpegtsTerrestrialGuardInterval = c_int; @@ -2081,31 +2081,31 @@ extern "C" { //========================================================================= // GstMpegtsAtscRRT //========================================================================= - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, 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(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub fn gst_mpegts_atsc_rrt_new() -> *mut GstMpegtsAtscRRT; //========================================================================= // GstMpegtsAtscRRTDimension //========================================================================= - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub fn gst_mpegts_atsc_rrt_dimension_get_type() -> GType; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub fn gst_mpegts_atsc_rrt_dimension_new() -> *mut GstMpegtsAtscRRTDimension; //========================================================================= // GstMpegtsAtscRRTDimensionValue //========================================================================= - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, 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(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub fn gst_mpegts_atsc_rrt_dimension_value_new() -> *mut GstMpegtsAtscRRTDimensionValue; //========================================================================= @@ -2222,8 +2222,8 @@ extern "C" { //========================================================================= pub fn gst_mpegts_descriptor_get_type() -> GType; pub fn gst_mpegts_descriptor_free(desc: *mut GstMpegtsDescriptor); - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_mpegts_descriptor_parse_audio_preselection_list( descriptor: *const GstMpegtsDescriptor, list: *mut *mut glib::GPtrArray, @@ -2380,22 +2380,22 @@ extern "C" { descriptor: *const GstMpegtsDescriptor, res: *mut GstMpegtsLogicalChannelDescriptor, ) -> gboolean; - #[cfg(any(feature = "v1_24", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_24")))] + #[cfg(feature = "v1_24")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))] pub fn gst_mpegts_descriptor_parse_metadata( descriptor: *const GstMpegtsDescriptor, res: *mut *mut GstMpegtsMetadataDescriptor, ) -> gboolean; - #[cfg(any(feature = "v1_24", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_24")))] + #[cfg(feature = "v1_24")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))] pub fn gst_mpegts_descriptor_parse_metadata_std( descriptor: *const GstMpegtsDescriptor, metadata_input_leak_rate: *mut u32, metadata_buffer_size: *mut u32, metadata_output_leak_rate: *mut u32, ) -> gboolean; - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_mpegts_descriptor_parse_registration( descriptor: *mut GstMpegtsDescriptor, registration_id: *mut u32, @@ -2415,8 +2415,8 @@ extern "C" { data: *const u8, length: size_t, ) -> *mut GstMpegtsDescriptor; - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_mpegts_descriptor_from_custom_with_extension( tag: u8, tag_extension: u8, @@ -2445,13 +2445,13 @@ extern "C" { additional_info: *mut u8, additional_info_length: size_t, ) -> *mut GstMpegtsDescriptor; - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_mpegts_descriptor_parse_audio_preselection_dump( source: *mut GstMpegtsAudioPreselectionDescriptor, ); - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_mpegts_descriptor_parse_audio_preselection_free( source: *mut GstMpegtsAudioPreselectionDescriptor, ); @@ -2518,8 +2518,8 @@ extern "C" { //========================================================================= // GstMpegtsMetadataDescriptor //========================================================================= - #[cfg(any(feature = "v1_24", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_24")))] + #[cfg(feature = "v1_24")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))] pub fn gst_mpegts_metadata_descriptor_get_type() -> GType; //========================================================================= @@ -2537,8 +2537,8 @@ extern "C" { //========================================================================= // GstMpegtsPESMetadataMeta //========================================================================= - #[cfg(any(feature = "v1_24", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_24")))] + #[cfg(feature = "v1_24")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))] pub fn gst_mpegts_pes_metadata_meta_get_info() -> *const gst::GstMetaInfo; //========================================================================= @@ -2562,31 +2562,31 @@ extern "C" { //========================================================================= // GstMpegtsSCTESIT //========================================================================= - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_mpegts_scte_sit_get_type() -> GType; - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_mpegts_scte_sit_new() -> *mut GstMpegtsSCTESIT; //========================================================================= // GstMpegtsSCTESpliceComponent //========================================================================= - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_mpegts_scte_splice_component_get_type() -> GType; - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_mpegts_scte_splice_component_new(tag: u8) -> *mut GstMpegtsSCTESpliceComponent; //========================================================================= // GstMpegtsSCTESpliceEvent //========================================================================= - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_mpegts_scte_splice_event_get_type() -> GType; - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_mpegts_scte_splice_event_new() -> *mut GstMpegtsSCTESpliceEvent; //========================================================================= @@ -2604,15 +2604,15 @@ extern "C" { //========================================================================= // GstMpegtsSIT //========================================================================= - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_mpegts_sit_get_type() -> GType; //========================================================================= // GstMpegtsSITService //========================================================================= - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_mpegts_sit_service_get_type() -> GType; //========================================================================= @@ -2641,8 +2641,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(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub fn gst_mpegts_section_get_atsc_rrt( section: *mut GstMpegtsSection, ) -> *const GstMpegtsAtscRRT; @@ -2659,14 +2659,14 @@ extern "C" { pub fn gst_mpegts_section_get_nit(section: *mut GstMpegtsSection) -> *const GstMpegtsNIT; pub fn gst_mpegts_section_get_pat(section: *mut GstMpegtsSection) -> *mut glib::GPtrArray; pub fn gst_mpegts_section_get_pmt(section: *mut GstMpegtsSection) -> *const GstMpegtsPMT; - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_mpegts_section_get_scte_sit( section: *mut GstMpegtsSection, ) -> *const GstMpegtsSCTESIT; pub fn gst_mpegts_section_get_sdt(section: *mut GstMpegtsSection) -> *const GstMpegtsSDT; - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_mpegts_section_get_sit(section: *mut GstMpegtsSection) -> *const GstMpegtsSIT; pub fn gst_mpegts_section_get_tdt(section: *mut GstMpegtsSection) -> *mut gst::GstDateTime; pub fn gst_mpegts_section_get_tot(section: *mut GstMpegtsSection) -> *const GstMpegtsTOT; @@ -2679,11 +2679,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(feature = "v1_18")] + #[cfg_attr(docsrs, 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(feature = "v1_18")] + #[cfg_attr(docsrs, 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; @@ -2692,8 +2692,8 @@ extern "C" { ts_id: u16, ) -> *mut GstMpegtsSection; pub fn gst_mpegts_section_from_pmt(pmt: *mut GstMpegtsPMT, pid: u16) -> *mut GstMpegtsSection; - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_mpegts_section_from_scte_sit( sit: *mut GstMpegtsSCTESIT, pid: u16, @@ -2731,22 +2731,22 @@ extern "C" { //========================================================================= // Other functions //========================================================================= - #[cfg(any(feature = "v1_24", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_24")))] + #[cfg(feature = "v1_24")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))] pub fn gst_buffer_add_mpegts_pes_metadata_meta( buffer: *mut gst::GstBuffer, ) -> *mut GstMpegtsPESMetadataMeta; pub fn gst_mpegts_dvb_component_descriptor_free(source: *mut GstMpegtsComponentDescriptor); - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_event_new_mpegts_section(section: *mut GstMpegtsSection) -> *mut gst::GstEvent; pub fn gst_event_parse_mpegts_section(event: *mut gst::GstEvent) -> *mut GstMpegtsSection; pub fn gst_mpegts_find_descriptor( descriptors: *mut glib::GPtrArray, tag: u8, ) -> *const GstMpegtsDescriptor; - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_mpegts_find_descriptor_with_extension( descriptors: *mut glib::GPtrArray, tag: u8, @@ -2761,23 +2761,23 @@ extern "C" { -> *mut GstMpegtsSection; pub fn gst_mpegts_parse_descriptors(buffer: *mut u8, buf_len: size_t) -> *mut glib::GPtrArray; pub fn gst_mpegts_pat_new() -> *mut glib::GPtrArray; - #[cfg(any(feature = "v1_24", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_24")))] + #[cfg(feature = "v1_24")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))] pub fn gst_mpegts_pes_metadata_meta_api_get_type() -> GType; - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_mpegts_scte_cancel_new(event_id: u32) -> *mut GstMpegtsSCTESIT; - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_mpegts_scte_null_new() -> *mut GstMpegtsSCTESIT; - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_mpegts_scte_splice_in_new( event_id: u32, splice_time: gst::GstClockTime, ) -> *mut GstMpegtsSCTESIT; - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_mpegts_scte_splice_out_new( event_id: u32, splice_time: gst::GstClockTime, diff --git a/gstreamer-net/src/auto/versions.txt b/gstreamer-net/src/auto/versions.txt index 94b843e6a..f606c95a2 100644 --- a/gstreamer-net/src/auto/versions.txt +++ b/gstreamer-net/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2) +Generated by gir (https://github.com/gtk-rs/gir @ 719372782330) from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836) diff --git a/gstreamer-net/sys/Cargo.toml b/gstreamer-net/sys/Cargo.toml index efc73db99..7dda73243 100644 --- a/gstreamer-net/sys/Cargo.toml +++ b/gstreamer-net/sys/Cargo.toml @@ -47,7 +47,7 @@ edition = "2021" rust-version = "1.66" [package.metadata.docs.rs] -features = ["dox"] +features = [] [package.metadata.system-deps.gstreamer_net_1_0] name = "gstreamer-net-1.0" diff --git a/gstreamer-net/sys/build.rs b/gstreamer-net/sys/build.rs index 40e2cc398..29420c9ee 100644 --- a/gstreamer-net/sys/build.rs +++ b/gstreamer-net/sys/build.rs @@ -3,13 +3,13 @@ // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git) // DO NOT EDIT -#[cfg(not(feature = "dox"))] +#[cfg(not(docsrs))] use std::process; -#[cfg(feature = "dox")] +#[cfg(docsrs)] fn main() {} // prevent linking libraries to avoid documentation failure -#[cfg(not(feature = "dox"))] +#[cfg(not(docsrs))] fn main() { if let Err(s) = system_deps::Config::new().probe() { println!("cargo:warning={s}"); diff --git a/gstreamer-net/sys/src/auto/versions.txt b/gstreamer-net/sys/src/auto/versions.txt index 94b843e6a..f606c95a2 100644 --- a/gstreamer-net/sys/src/auto/versions.txt +++ b/gstreamer-net/sys/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2) +Generated by gir (https://github.com/gtk-rs/gir @ 719372782330) from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836) diff --git a/gstreamer-net/sys/src/lib.rs b/gstreamer-net/sys/src/lib.rs index af6b9ac54..0f1ec8437 100644 --- a/gstreamer-net/sys/src/lib.rs +++ b/gstreamer-net/sys/src/lib.rs @@ -10,7 +10,7 @@ clippy::unreadable_literal, clippy::upper_case_acronyms )] -#![cfg_attr(feature = "dox", feature(doc_cfg))] +#![cfg_attr(docsrs, feature(doc_cfg))] #[allow(unused_imports)] use libc::{ @@ -318,8 +318,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(feature = "v1_18")] + #[cfg_attr(docsrs, 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-pbutils/src/auto/discoverer.rs b/gstreamer-pbutils/src/auto/discoverer.rs index 51945c856..0f310dfae 100644 --- a/gstreamer-pbutils/src/auto/discoverer.rs +++ b/gstreamer-pbutils/src/auto/discoverer.rs @@ -76,15 +76,15 @@ impl Discoverer { } } - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] #[doc(alias = "use-cache")] pub fn uses_cache(&self) -> bool { glib::ObjectExt::property(self, "use-cache") } - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] #[doc(alias = "use-cache")] pub fn set_use_cache(&self, use_cache: bool) { glib::ObjectExt::set_property(self, "use-cache", use_cache) @@ -199,8 +199,8 @@ impl Discoverer { } } - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] #[doc(alias = "use-cache")] pub fn connect_use_cache_notify( &self, diff --git a/gstreamer-pbutils/src/auto/discoverer_container_info.rs b/gstreamer-pbutils/src/auto/discoverer_container_info.rs index ea9f2ab6d..8dc6134fc 100644 --- a/gstreamer-pbutils/src/auto/discoverer_container_info.rs +++ b/gstreamer-pbutils/src/auto/discoverer_container_info.rs @@ -26,8 +26,8 @@ impl DiscovererContainerInfo { } } - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(alias = "gst_discoverer_container_info_get_tags")] #[doc(alias = "get_tags")] pub fn tags(&self) -> Option { diff --git a/gstreamer-pbutils/src/auto/discoverer_stream_info.rs b/gstreamer-pbutils/src/auto/discoverer_stream_info.rs index 2c26aa57c..4c9c048cc 100644 --- a/gstreamer-pbutils/src/auto/discoverer_stream_info.rs +++ b/gstreamer-pbutils/src/auto/discoverer_stream_info.rs @@ -44,8 +44,8 @@ pub trait DiscovererStreamInfoExt: 'static { #[doc(alias = "get_stream_id")] fn stream_id(&self) -> glib::GString; - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(alias = "gst_discoverer_stream_info_get_stream_number")] #[doc(alias = "get_stream_number")] fn stream_number(&self) -> i32; @@ -104,8 +104,8 @@ impl> DiscovererStreamInfoExt for O { } } - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] fn stream_number(&self) -> i32 { unsafe { ffi::gst_discoverer_stream_info_get_stream_number(self.as_ref().to_glib_none().0) } } diff --git a/gstreamer-pbutils/src/auto/encoding_profile.rs b/gstreamer-pbutils/src/auto/encoding_profile.rs index fda96da9b..7e646d505 100644 --- a/gstreamer-pbutils/src/auto/encoding_profile.rs +++ b/gstreamer-pbutils/src/auto/encoding_profile.rs @@ -4,12 +4,12 @@ // DO NOT EDIT use crate::DiscovererInfo; -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] use glib::signal::{connect_raw, SignalHandlerId}; use glib::{prelude::*, translate::*}; -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] use std::{boxed::Box as Box_, mem::transmute}; glib::wrapper! { @@ -98,8 +98,8 @@ pub trait EncodingProfileExt: 'static { #[doc(alias = "get_preset_name")] fn preset_name(&self) -> Option; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "gst_encoding_profile_get_single_segment")] #[doc(alias = "get_single_segment")] fn is_single_segment(&self) -> bool; @@ -114,8 +114,8 @@ pub trait EncodingProfileExt: 'static { #[doc(alias = "gst_encoding_profile_is_equal")] fn is_equal(&self, b: &impl IsA) -> bool; - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(alias = "element-properties")] fn connect_element_properties_notify( &self, @@ -200,8 +200,8 @@ impl> EncodingProfileExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] fn is_single_segment(&self) -> bool { unsafe { from_glib(ffi::gst_encoding_profile_get_single_segment( @@ -235,8 +235,8 @@ impl> EncodingProfileExt for O { } } - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] fn connect_element_properties_notify( &self, f: F, diff --git a/gstreamer-pbutils/src/auto/encoding_target.rs b/gstreamer-pbutils/src/auto/encoding_target.rs index 699b7235e..7c20cd667 100644 --- a/gstreamer-pbutils/src/auto/encoding_target.rs +++ b/gstreamer-pbutils/src/auto/encoding_target.rs @@ -58,8 +58,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(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "gst_encoding_target_get_path")] #[doc(alias = "get_path")] pub fn path(&self) -> Option { diff --git a/gstreamer-pbutils/src/auto/flags.rs b/gstreamer-pbutils/src/auto/flags.rs index d7b8b7d74..83786e06a 100644 --- a/gstreamer-pbutils/src/auto/flags.rs +++ b/gstreamer-pbutils/src/auto/flags.rs @@ -92,9 +92,9 @@ impl From for glib::Value { } } -#[cfg(any(feature = "v1_20", feature = "dox"))] +#[cfg(feature = "v1_20")] bitflags! { - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(alias = "GstPbUtilsCapsDescriptionFlags")] pub struct PbUtilsCapsDescriptionFlags: u32 { #[doc(alias = "GST_PBUTILS_CAPS_DESCRIPTION_FLAG_CONTAINER")] @@ -111,15 +111,15 @@ bitflags! { const TAG = ffi::GST_PBUTILS_CAPS_DESCRIPTION_FLAG_TAG as _; #[doc(alias = "GST_PBUTILS_CAPS_DESCRIPTION_FLAG_GENERIC")] const GENERIC = ffi::GST_PBUTILS_CAPS_DESCRIPTION_FLAG_GENERIC as _; - #[cfg(any(feature = "v1_22", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] + #[cfg(feature = "v1_22")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] #[doc(alias = "GST_PBUTILS_CAPS_DESCRIPTION_FLAG_METADATA")] const METADATA = ffi::GST_PBUTILS_CAPS_DESCRIPTION_FLAG_METADATA as _; } } -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(hidden)] impl IntoGlib for PbUtilsCapsDescriptionFlags { type GlibType = ffi::GstPbUtilsCapsDescriptionFlags; @@ -130,8 +130,8 @@ impl IntoGlib for PbUtilsCapsDescriptionFlags { } } -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(hidden)] impl FromGlib for PbUtilsCapsDescriptionFlags { #[inline] @@ -141,8 +141,8 @@ impl FromGlib for PbUtilsCapsDescriptionFla } } -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] impl StaticType for PbUtilsCapsDescriptionFlags { #[inline] fn static_type() -> Type { @@ -150,8 +150,8 @@ impl StaticType for PbUtilsCapsDescriptionFlags { } } -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] impl glib::HasParamSpec for PbUtilsCapsDescriptionFlags { type ParamSpec = glib::ParamSpecFlags; type SetValue = Self; @@ -162,14 +162,14 @@ impl glib::HasParamSpec for PbUtilsCapsDescriptionFlags { } } -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] impl glib::value::ValueType for PbUtilsCapsDescriptionFlags { type Type = Self; } -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] unsafe impl<'a> FromValue<'a> for PbUtilsCapsDescriptionFlags { type Checker = glib::value::GenericValueTypeChecker; @@ -180,8 +180,8 @@ unsafe impl<'a> FromValue<'a> for PbUtilsCapsDescriptionFlags { } } -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] impl ToValue for PbUtilsCapsDescriptionFlags { #[inline] fn to_value(&self) -> glib::Value { @@ -198,8 +198,8 @@ impl ToValue for PbUtilsCapsDescriptionFlags { } } -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] impl From for glib::Value { #[inline] fn from(v: PbUtilsCapsDescriptionFlags) -> Self { diff --git a/gstreamer-pbutils/src/auto/functions.rs b/gstreamer-pbutils/src/auto/functions.rs index a1a5f5465..4653b94c8 100644 --- a/gstreamer-pbutils/src/auto/functions.rs +++ b/gstreamer-pbutils/src/auto/functions.rs @@ -59,8 +59,8 @@ pub fn codec_utils_aac_get_sample_rate_from_index(sr_idx: u32) -> u32 { unsafe { ffi::gst_codec_utils_aac_get_sample_rate_from_index(sr_idx) } } -#[cfg(any(feature = "v1_22", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] +#[cfg(feature = "v1_22")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] #[doc(alias = "gst_codec_utils_caps_from_mime_codec")] pub fn codec_utils_caps_from_mime_codec(codecs_field: &str) -> Option { assert_initialized_main_thread!(); diff --git a/gstreamer-pbutils/src/auto/mod.rs b/gstreamer-pbutils/src/auto/mod.rs index 7b51e46d4..84cb35459 100644 --- a/gstreamer-pbutils/src/auto/mod.rs +++ b/gstreamer-pbutils/src/auto/mod.rs @@ -48,8 +48,8 @@ pub use self::enums::DiscovererResult; mod flags; pub use self::flags::DiscovererSerializeFlags; -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub use self::flags::PbUtilsCapsDescriptionFlags; pub mod functions; diff --git a/gstreamer-pbutils/src/auto/versions.txt b/gstreamer-pbutils/src/auto/versions.txt index 94b843e6a..f606c95a2 100644 --- a/gstreamer-pbutils/src/auto/versions.txt +++ b/gstreamer-pbutils/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2) +Generated by gir (https://github.com/gtk-rs/gir @ 719372782330) from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836) diff --git a/gstreamer-pbutils/sys/Cargo.toml b/gstreamer-pbutils/sys/Cargo.toml index 9b5902611..e50fc5b10 100644 --- a/gstreamer-pbutils/sys/Cargo.toml +++ b/gstreamer-pbutils/sys/Cargo.toml @@ -55,7 +55,7 @@ edition = "2021" rust-version = "1.66" [package.metadata.docs.rs] -features = ["dox"] +features = [] [package.metadata.system-deps.gstreamer_pbutils_1_0] name = "gstreamer-pbutils-1.0" diff --git a/gstreamer-pbutils/sys/build.rs b/gstreamer-pbutils/sys/build.rs index 40e2cc398..29420c9ee 100644 --- a/gstreamer-pbutils/sys/build.rs +++ b/gstreamer-pbutils/sys/build.rs @@ -3,13 +3,13 @@ // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git) // DO NOT EDIT -#[cfg(not(feature = "dox"))] +#[cfg(not(docsrs))] use std::process; -#[cfg(feature = "dox")] +#[cfg(docsrs)] fn main() {} // prevent linking libraries to avoid documentation failure -#[cfg(not(feature = "dox"))] +#[cfg(not(docsrs))] fn main() { if let Err(s) = system_deps::Config::new().probe() { println!("cargo:warning={s}"); diff --git a/gstreamer-pbutils/sys/src/auto/versions.txt b/gstreamer-pbutils/sys/src/auto/versions.txt index 94b843e6a..f606c95a2 100644 --- a/gstreamer-pbutils/sys/src/auto/versions.txt +++ b/gstreamer-pbutils/sys/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2) +Generated by gir (https://github.com/gtk-rs/gir @ 719372782330) from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836) diff --git a/gstreamer-pbutils/sys/src/lib.rs b/gstreamer-pbutils/sys/src/lib.rs index 197c44719..0047430f2 100644 --- a/gstreamer-pbutils/sys/src/lib.rs +++ b/gstreamer-pbutils/sys/src/lib.rs @@ -10,7 +10,7 @@ clippy::unreadable_literal, clippy::upper_case_acronyms )] -#![cfg_attr(feature = "dox", feature(doc_cfg))] +#![cfg_attr(docsrs, feature(doc_cfg))] #[allow(unused_imports)] use libc::{ @@ -87,8 +87,8 @@ pub const GST_PBUTILS_CAPS_DESCRIPTION_FLAG_IMAGE: GstPbUtilsCapsDescriptionFlag pub const GST_PBUTILS_CAPS_DESCRIPTION_FLAG_SUBTITLE: GstPbUtilsCapsDescriptionFlags = 16; pub const GST_PBUTILS_CAPS_DESCRIPTION_FLAG_TAG: GstPbUtilsCapsDescriptionFlags = 32; pub const GST_PBUTILS_CAPS_DESCRIPTION_FLAG_GENERIC: GstPbUtilsCapsDescriptionFlags = 64; -#[cfg(any(feature = "v1_22", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] +#[cfg(feature = "v1_22")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] pub const GST_PBUTILS_CAPS_DESCRIPTION_FLAG_METADATA: GstPbUtilsCapsDescriptionFlags = 128; // Callbacks @@ -424,8 +424,8 @@ extern "C" { //========================================================================= // GstPbUtilsCapsDescriptionFlags //========================================================================= - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_pb_utils_caps_description_flags_get_type() -> GType; //========================================================================= @@ -499,8 +499,8 @@ extern "C" { pub fn gst_discoverer_container_info_get_streams( info: *mut GstDiscovererContainerInfo, ) -> *mut glib::GList; - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_discoverer_container_info_get_tags( info: *const GstDiscovererContainerInfo, ) -> *const gst::GstTagList; @@ -565,8 +565,8 @@ extern "C" { pub fn gst_discoverer_stream_info_get_stream_id( info: *mut GstDiscovererStreamInfo, ) -> *const c_char; - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_discoverer_stream_info_get_stream_number( info: *mut GstDiscovererStreamInfo, ) -> c_int; @@ -660,8 +660,8 @@ extern "C" { profile: *mut GstEncodingProfile, ) -> gboolean; pub fn gst_encoding_profile_get_description(profile: *mut GstEncodingProfile) -> *const c_char; - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_encoding_profile_get_element_properties( self_: *mut GstEncodingProfile, ) -> *mut gst::GstStructure; @@ -679,8 +679,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(feature = "v1_18")] + #[cfg_attr(docsrs, 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; @@ -696,8 +696,8 @@ extern "C" { profile: *mut GstEncodingProfile, description: *const c_char, ); - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_encoding_profile_set_element_properties( self_: *mut GstEncodingProfile, element_properties: *mut gst::GstStructure, @@ -718,8 +718,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(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub fn gst_encoding_profile_set_single_segment( profile: *mut GstEncodingProfile, single_segment: gboolean, @@ -751,8 +751,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(feature = "v1_18")] + #[cfg_attr(docsrs, 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, @@ -803,11 +803,11 @@ extern "C" { pub fn gst_codec_utils_aac_get_profile(audio_config: *const u8, len: c_uint) -> *const c_char; 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; - #[cfg(any(feature = "v1_22", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] + #[cfg(feature = "v1_22")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] pub fn gst_codec_utils_caps_from_mime_codec(codecs_field: *const c_char) -> *mut gst::GstCaps; - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_codec_utils_caps_get_mime_codec(caps: *mut gst::GstCaps) -> *mut c_char; pub fn gst_codec_utils_h264_caps_set_level_and_profile( caps: *mut gst::GstCaps, @@ -817,8 +817,8 @@ extern "C" { pub fn gst_codec_utils_h264_get_level(sps: *const u8, len: c_uint) -> *const c_char; pub fn gst_codec_utils_h264_get_level_idc(level: *const c_char) -> u8; pub fn gst_codec_utils_h264_get_profile(sps: *const u8, len: c_uint) -> *const c_char; - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_codec_utils_h264_get_profile_flags_level( codec_data: *const u8, len: c_uint, @@ -952,8 +952,8 @@ extern "C" { codec_tag: *const c_char, caps: *const gst::GstCaps, ) -> gboolean; - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_pb_utils_get_caps_description_flags( caps: *const gst::GstCaps, ) -> GstPbUtilsCapsDescriptionFlags; @@ -961,8 +961,8 @@ extern "C" { pub fn gst_pb_utils_get_decoder_description(caps: *const gst::GstCaps) -> *mut c_char; pub fn gst_pb_utils_get_element_description(factory_name: *const c_char) -> *mut c_char; pub fn gst_pb_utils_get_encoder_description(caps: *const gst::GstCaps) -> *mut c_char; - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_pb_utils_get_file_extension_from_caps(caps: *const gst::GstCaps) -> *mut c_char; pub fn gst_pb_utils_get_sink_description(protocol: *const c_char) -> *mut c_char; pub fn gst_pb_utils_get_source_description(protocol: *const c_char) -> *mut c_char; diff --git a/gstreamer-play/src/auto/versions.txt b/gstreamer-play/src/auto/versions.txt index 94b843e6a..f606c95a2 100644 --- a/gstreamer-play/src/auto/versions.txt +++ b/gstreamer-play/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2) +Generated by gir (https://github.com/gtk-rs/gir @ 719372782330) from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836) diff --git a/gstreamer-play/sys/Cargo.toml b/gstreamer-play/sys/Cargo.toml index e2e75cc6f..3a772ee8e 100644 --- a/gstreamer-play/sys/Cargo.toml +++ b/gstreamer-play/sys/Cargo.toml @@ -48,7 +48,7 @@ edition = "2021" rust-version = "1.66" [package.metadata.docs.rs] -features = ["dox"] +features = [] [package.metadata.system-deps.gstreamer_play_1_0] name = "gstreamer-play-1.0" diff --git a/gstreamer-play/sys/build.rs b/gstreamer-play/sys/build.rs index 40e2cc398..29420c9ee 100644 --- a/gstreamer-play/sys/build.rs +++ b/gstreamer-play/sys/build.rs @@ -3,13 +3,13 @@ // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git) // DO NOT EDIT -#[cfg(not(feature = "dox"))] +#[cfg(not(docsrs))] use std::process; -#[cfg(feature = "dox")] +#[cfg(docsrs)] fn main() {} // prevent linking libraries to avoid documentation failure -#[cfg(not(feature = "dox"))] +#[cfg(not(docsrs))] fn main() { if let Err(s) = system_deps::Config::new().probe() { println!("cargo:warning={s}"); diff --git a/gstreamer-play/sys/src/auto/versions.txt b/gstreamer-play/sys/src/auto/versions.txt index 94b843e6a..f606c95a2 100644 --- a/gstreamer-play/sys/src/auto/versions.txt +++ b/gstreamer-play/sys/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2) +Generated by gir (https://github.com/gtk-rs/gir @ 719372782330) from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836) diff --git a/gstreamer-play/sys/src/lib.rs b/gstreamer-play/sys/src/lib.rs index 3ac4165b8..17d73c8d5 100644 --- a/gstreamer-play/sys/src/lib.rs +++ b/gstreamer-play/sys/src/lib.rs @@ -10,7 +10,7 @@ clippy::unreadable_literal, clippy::upper_case_acronyms )] -#![cfg_attr(feature = "dox", feature(doc_cfg))] +#![cfg_attr(docsrs, feature(doc_cfg))] #[allow(unused_imports)] use libc::{ diff --git a/gstreamer-player/src/auto/player.rs b/gstreamer-player/src/auto/player.rs index 6c9bca38b..58a875e78 100644 --- a/gstreamer-player/src/auto/player.rs +++ b/gstreamer-player/src/auto/player.rs @@ -144,8 +144,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(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] #[doc(alias = "gst_player_get_subtitle_video_offset")] #[doc(alias = "get_subtitle_video_offset")] pub fn subtitle_video_offset(&self) -> i64 { @@ -273,8 +273,8 @@ impl Player { } } - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] #[doc(alias = "gst_player_set_subtitle_video_offset")] pub fn set_subtitle_video_offset(&self, offset: i64) { unsafe { @@ -934,8 +934,8 @@ impl Player { } } - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] #[doc(alias = "subtitle-video-offset")] pub fn connect_subtitle_video_offset_notify( &self, diff --git a/gstreamer-player/src/auto/versions.txt b/gstreamer-player/src/auto/versions.txt index 94b843e6a..f606c95a2 100644 --- a/gstreamer-player/src/auto/versions.txt +++ b/gstreamer-player/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2) +Generated by gir (https://github.com/gtk-rs/gir @ 719372782330) from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836) diff --git a/gstreamer-player/sys/Cargo.toml b/gstreamer-player/sys/Cargo.toml index 47f13b1a0..86bbfc71a 100644 --- a/gstreamer-player/sys/Cargo.toml +++ b/gstreamer-player/sys/Cargo.toml @@ -51,7 +51,7 @@ edition = "2021" rust-version = "1.66" [package.metadata.docs.rs] -features = ["dox"] +features = [] [package.metadata.system-deps.gstreamer_player_1_0] name = "gstreamer-player-1.0" diff --git a/gstreamer-player/sys/build.rs b/gstreamer-player/sys/build.rs index 40e2cc398..29420c9ee 100644 --- a/gstreamer-player/sys/build.rs +++ b/gstreamer-player/sys/build.rs @@ -3,13 +3,13 @@ // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git) // DO NOT EDIT -#[cfg(not(feature = "dox"))] +#[cfg(not(docsrs))] use std::process; -#[cfg(feature = "dox")] +#[cfg(docsrs)] fn main() {} // prevent linking libraries to avoid documentation failure -#[cfg(not(feature = "dox"))] +#[cfg(not(docsrs))] fn main() { if let Err(s) = system_deps::Config::new().probe() { println!("cargo:warning={s}"); diff --git a/gstreamer-player/sys/src/auto/versions.txt b/gstreamer-player/sys/src/auto/versions.txt index 94b843e6a..f606c95a2 100644 --- a/gstreamer-player/sys/src/auto/versions.txt +++ b/gstreamer-player/sys/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2) +Generated by gir (https://github.com/gtk-rs/gir @ 719372782330) from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836) diff --git a/gstreamer-player/sys/src/lib.rs b/gstreamer-player/sys/src/lib.rs index 9b0408631..8fc467375 100644 --- a/gstreamer-player/sys/src/lib.rs +++ b/gstreamer-player/sys/src/lib.rs @@ -10,7 +10,7 @@ clippy::unreadable_literal, clippy::upper_case_acronyms )] -#![cfg_attr(feature = "dox", feature(doc_cfg))] +#![cfg_attr(docsrs, feature(doc_cfg))] #[allow(unused_imports)] use libc::{ @@ -382,8 +382,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(feature = "v1_16")] + #[cfg_attr(docsrs, 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( @@ -421,8 +421,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(feature = "v1_16")] + #[cfg_attr(docsrs, 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-rtp/src/auto/constants.rs b/gstreamer-rtp/src/auto/constants.rs index c902187e7..5042e81fd 100644 --- a/gstreamer-rtp/src/auto/constants.rs +++ b/gstreamer-rtp/src/auto/constants.rs @@ -8,8 +8,8 @@ use glib::GStr; #[doc(alias = "GST_RTP_HDREXT_BASE")] pub static RTP_HDREXT_BASE: &GStr = unsafe { GStr::from_utf8_with_nul_unchecked(ffi::GST_RTP_HDREXT_BASE) }; -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(alias = "GST_RTP_HDREXT_ELEMENT_CLASS")] pub static RTP_HDREXT_ELEMENT_CLASS: &GStr = unsafe { GStr::from_utf8_with_nul_unchecked(ffi::GST_RTP_HDREXT_ELEMENT_CLASS) }; @@ -19,8 +19,8 @@ pub static RTP_HDREXT_NTP_56: &GStr = #[doc(alias = "GST_RTP_HDREXT_NTP_64")] pub static RTP_HDREXT_NTP_64: &GStr = unsafe { GStr::from_utf8_with_nul_unchecked(ffi::GST_RTP_HDREXT_NTP_64) }; -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(alias = "GST_RTP_HEADER_EXTENSION_URI_METADATA_KEY")] pub static RTP_HEADER_EXTENSION_URI_METADATA_KEY: &GStr = unsafe { GStr::from_utf8_with_nul_unchecked(ffi::GST_RTP_HEADER_EXTENSION_URI_METADATA_KEY) }; diff --git a/gstreamer-rtp/src/auto/enums.rs b/gstreamer-rtp/src/auto/enums.rs index 612b38deb..9c823619b 100644 --- a/gstreamer-rtp/src/auto/enums.rs +++ b/gstreamer-rtp/src/auto/enums.rs @@ -152,32 +152,32 @@ pub enum RTCPSDESType { Note, #[doc(alias = "GST_RTCP_SDES_PRIV")] Priv, - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(alias = "GST_RTCP_SDES_H323_CADDR")] H323Caddr, - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(alias = "GST_RTCP_SDES_APSI")] Apsi, - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(alias = "GST_RTCP_SDES_RGRP")] Rgrp, - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(alias = "GST_RTCP_SDES_RTP_STREAM_ID")] RtpStreamId, - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(alias = "GST_RTCP_SDES_REPAIRED_RTP_STREAM_ID")] RepairedRtpStreamId, - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(alias = "GST_RTCP_SDES_CCID")] Ccid, - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(alias = "GST_RTCP_SDES_MID")] Mid, #[doc(hidden)] @@ -200,19 +200,19 @@ impl IntoGlib for RTCPSDESType { Self::Tool => ffi::GST_RTCP_SDES_TOOL, Self::Note => ffi::GST_RTCP_SDES_NOTE, Self::Priv => ffi::GST_RTCP_SDES_PRIV, - #[cfg(any(feature = "v1_20", feature = "dox"))] + #[cfg(feature = "v1_20")] Self::H323Caddr => ffi::GST_RTCP_SDES_H323_CADDR, - #[cfg(any(feature = "v1_20", feature = "dox"))] + #[cfg(feature = "v1_20")] Self::Apsi => ffi::GST_RTCP_SDES_APSI, - #[cfg(any(feature = "v1_20", feature = "dox"))] + #[cfg(feature = "v1_20")] Self::Rgrp => ffi::GST_RTCP_SDES_RGRP, - #[cfg(any(feature = "v1_20", feature = "dox"))] + #[cfg(feature = "v1_20")] Self::RtpStreamId => ffi::GST_RTCP_SDES_RTP_STREAM_ID, - #[cfg(any(feature = "v1_20", feature = "dox"))] + #[cfg(feature = "v1_20")] Self::RepairedRtpStreamId => ffi::GST_RTCP_SDES_REPAIRED_RTP_STREAM_ID, - #[cfg(any(feature = "v1_20", feature = "dox"))] + #[cfg(feature = "v1_20")] Self::Ccid => ffi::GST_RTCP_SDES_CCID, - #[cfg(any(feature = "v1_20", feature = "dox"))] + #[cfg(feature = "v1_20")] Self::Mid => ffi::GST_RTCP_SDES_MID, Self::__Unknown(value) => value, } @@ -235,19 +235,19 @@ impl FromGlib for RTCPSDESType { ffi::GST_RTCP_SDES_TOOL => Self::Tool, ffi::GST_RTCP_SDES_NOTE => Self::Note, ffi::GST_RTCP_SDES_PRIV => Self::Priv, - #[cfg(any(feature = "v1_20", feature = "dox"))] + #[cfg(feature = "v1_20")] ffi::GST_RTCP_SDES_H323_CADDR => Self::H323Caddr, - #[cfg(any(feature = "v1_20", feature = "dox"))] + #[cfg(feature = "v1_20")] ffi::GST_RTCP_SDES_APSI => Self::Apsi, - #[cfg(any(feature = "v1_20", feature = "dox"))] + #[cfg(feature = "v1_20")] ffi::GST_RTCP_SDES_RGRP => Self::Rgrp, - #[cfg(any(feature = "v1_20", feature = "dox"))] + #[cfg(feature = "v1_20")] ffi::GST_RTCP_SDES_RTP_STREAM_ID => Self::RtpStreamId, - #[cfg(any(feature = "v1_20", feature = "dox"))] + #[cfg(feature = "v1_20")] ffi::GST_RTCP_SDES_REPAIRED_RTP_STREAM_ID => Self::RepairedRtpStreamId, - #[cfg(any(feature = "v1_20", feature = "dox"))] + #[cfg(feature = "v1_20")] ffi::GST_RTCP_SDES_CCID => Self::Ccid, - #[cfg(any(feature = "v1_20", feature = "dox"))] + #[cfg(feature = "v1_20")] ffi::GST_RTCP_SDES_MID => Self::Mid, value => Self::__Unknown(value), } @@ -432,8 +432,8 @@ impl From for glib::Value { } } -#[cfg(any(feature = "v1_16", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] +#[cfg(feature = "v1_16")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] #[doc(alias = "GstRTCPXRType")] @@ -458,8 +458,8 @@ pub enum RTCPXRType { __Unknown(i32), } -#[cfg(any(feature = "v1_16", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] +#[cfg(feature = "v1_16")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] #[doc(hidden)] impl IntoGlib for RTCPXRType { type GlibType = ffi::GstRTCPXRType; @@ -480,8 +480,8 @@ impl IntoGlib for RTCPXRType { } } -#[cfg(any(feature = "v1_16", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] +#[cfg(feature = "v1_16")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] #[doc(hidden)] impl FromGlib for RTCPXRType { #[inline] @@ -502,8 +502,8 @@ impl FromGlib for RTCPXRType { } } -#[cfg(any(feature = "v1_16", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] +#[cfg(feature = "v1_16")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] impl StaticType for RTCPXRType { #[inline] fn static_type() -> Type { @@ -511,8 +511,8 @@ impl StaticType for RTCPXRType { } } -#[cfg(any(feature = "v1_16", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] +#[cfg(feature = "v1_16")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] impl glib::HasParamSpec for RTCPXRType { type ParamSpec = glib::ParamSpecEnum; type SetValue = Self; @@ -523,14 +523,14 @@ impl glib::HasParamSpec for RTCPXRType { } } -#[cfg(any(feature = "v1_16", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] +#[cfg(feature = "v1_16")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] impl glib::value::ValueType for RTCPXRType { type Type = Self; } -#[cfg(any(feature = "v1_16", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] +#[cfg(feature = "v1_16")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] unsafe impl<'a> FromValue<'a> for RTCPXRType { type Checker = glib::value::GenericValueTypeChecker; @@ -541,8 +541,8 @@ unsafe impl<'a> FromValue<'a> for RTCPXRType { } } -#[cfg(any(feature = "v1_16", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] +#[cfg(feature = "v1_16")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] impl ToValue for RTCPXRType { #[inline] fn to_value(&self) -> glib::Value { @@ -559,8 +559,8 @@ impl ToValue for RTCPXRType { } } -#[cfg(any(feature = "v1_16", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] +#[cfg(feature = "v1_16")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] impl From for glib::Value { #[inline] fn from(v: RTCPXRType) -> Self { diff --git a/gstreamer-rtp/src/auto/flags.rs b/gstreamer-rtp/src/auto/flags.rs index 37f7a0513..821c71883 100644 --- a/gstreamer-rtp/src/auto/flags.rs +++ b/gstreamer-rtp/src/auto/flags.rs @@ -172,9 +172,9 @@ impl From for glib::Value { } } -#[cfg(any(feature = "v1_20", feature = "dox"))] +#[cfg(feature = "v1_20")] bitflags! { - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(alias = "GstRTPHeaderExtensionDirection")] pub struct RTPHeaderExtensionDirection: u32 { #[doc(alias = "GST_RTP_HEADER_EXTENSION_DIRECTION_INACTIVE")] @@ -190,8 +190,8 @@ bitflags! { } } -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(hidden)] impl IntoGlib for RTPHeaderExtensionDirection { type GlibType = ffi::GstRTPHeaderExtensionDirection; @@ -202,8 +202,8 @@ impl IntoGlib for RTPHeaderExtensionDirection { } } -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(hidden)] impl FromGlib for RTPHeaderExtensionDirection { #[inline] @@ -213,8 +213,8 @@ impl FromGlib for RTPHeaderExtensionDirecti } } -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] impl StaticType for RTPHeaderExtensionDirection { #[inline] fn static_type() -> Type { @@ -222,8 +222,8 @@ impl StaticType for RTPHeaderExtensionDirection { } } -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] impl glib::HasParamSpec for RTPHeaderExtensionDirection { type ParamSpec = glib::ParamSpecFlags; type SetValue = Self; @@ -234,14 +234,14 @@ impl glib::HasParamSpec for RTPHeaderExtensionDirection { } } -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] impl glib::value::ValueType for RTPHeaderExtensionDirection { type Type = Self; } -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] unsafe impl<'a> FromValue<'a> for RTPHeaderExtensionDirection { type Checker = glib::value::GenericValueTypeChecker; @@ -252,8 +252,8 @@ unsafe impl<'a> FromValue<'a> for RTPHeaderExtensionDirection { } } -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] impl ToValue for RTPHeaderExtensionDirection { #[inline] fn to_value(&self) -> glib::Value { @@ -270,8 +270,8 @@ impl ToValue for RTPHeaderExtensionDirection { } } -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] impl From for glib::Value { #[inline] fn from(v: RTPHeaderExtensionDirection) -> Self { @@ -280,9 +280,9 @@ impl From for glib::Value { } } -#[cfg(any(feature = "v1_20", feature = "dox"))] +#[cfg(feature = "v1_20")] bitflags! { - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(alias = "GstRTPHeaderExtensionFlags")] pub struct RTPHeaderExtensionFlags: u32 { #[doc(alias = "GST_RTP_HEADER_EXTENSION_ONE_BYTE")] @@ -292,8 +292,8 @@ bitflags! { } } -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(hidden)] impl IntoGlib for RTPHeaderExtensionFlags { type GlibType = ffi::GstRTPHeaderExtensionFlags; @@ -304,8 +304,8 @@ impl IntoGlib for RTPHeaderExtensionFlags { } } -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(hidden)] impl FromGlib for RTPHeaderExtensionFlags { #[inline] @@ -315,8 +315,8 @@ impl FromGlib for RTPHeaderExtensionFlags { } } -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] impl StaticType for RTPHeaderExtensionFlags { #[inline] fn static_type() -> Type { @@ -324,8 +324,8 @@ impl StaticType for RTPHeaderExtensionFlags { } } -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] impl glib::HasParamSpec for RTPHeaderExtensionFlags { type ParamSpec = glib::ParamSpecFlags; type SetValue = Self; @@ -336,14 +336,14 @@ impl glib::HasParamSpec for RTPHeaderExtensionFlags { } } -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] impl glib::value::ValueType for RTPHeaderExtensionFlags { type Type = Self; } -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] unsafe impl<'a> FromValue<'a> for RTPHeaderExtensionFlags { type Checker = glib::value::GenericValueTypeChecker; @@ -354,8 +354,8 @@ unsafe impl<'a> FromValue<'a> for RTPHeaderExtensionFlags { } } -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] impl ToValue for RTPHeaderExtensionFlags { #[inline] fn to_value(&self) -> glib::Value { @@ -372,8 +372,8 @@ impl ToValue for RTPHeaderExtensionFlags { } } -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] impl From for glib::Value { #[inline] fn from(v: RTPHeaderExtensionFlags) -> Self { diff --git a/gstreamer-rtp/src/auto/functions.rs b/gstreamer-rtp/src/auto/functions.rs index c1bde0f31..e72184149 100644 --- a/gstreamer-rtp/src/auto/functions.rs +++ b/gstreamer-rtp/src/auto/functions.rs @@ -6,15 +6,15 @@ use crate::RTCPSDESType; use glib::translate::*; -//#[cfg(any(feature = "v1_16", feature = "dox"))] -//#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] +//#[cfg(feature = "v1_16")] +//#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] //#[doc(alias = "gst_buffer_add_rtp_source_meta")] //pub fn buffer_add_rtp_source_meta(buffer: &gst::Buffer, ssrc: u32, csrc: &[u32]) -> /*Ignored*/RTPSourceMeta { // 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(feature = "v1_16")] +//#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] //#[doc(alias = "gst_buffer_get_rtp_source_meta")] //pub fn buffer_get_rtp_source_meta(buffer: &gst::Buffer) -> /*Ignored*/Option { // unsafe { TODO: call ffi:gst_buffer_get_rtp_source_meta() } @@ -44,8 +44,8 @@ pub fn rtcp_unix_to_ntp(unixtime: u64) -> u64 { unsafe { ffi::gst_rtcp_unix_to_ntp(unixtime) } } -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(alias = "gst_rtp_get_header_extension_list")] pub fn rtp_get_header_extension_list() -> Vec { assert_initialized_main_thread!(); diff --git a/gstreamer-rtp/src/auto/mod.rs b/gstreamer-rtp/src/auto/mod.rs index f5f6f6e46..98871590b 100644 --- a/gstreamer-rtp/src/auto/mod.rs +++ b/gstreamer-rtp/src/auto/mod.rs @@ -9,19 +9,19 @@ pub use self::rtp_base_depayload::RTPBaseDepayload; mod rtp_base_payload; pub use self::rtp_base_payload::RTPBasePayload; -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] mod rtp_header_extension; -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub use self::rtp_header_extension::RTPHeaderExtension; 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(feature = "v1_16")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] pub use self::enums::RTCPXRType; pub use self::enums::RTPPayload; pub use self::enums::RTPProfile; @@ -29,24 +29,24 @@ pub use self::enums::RTPProfile; mod flags; pub use self::flags::RTPBufferFlags; pub use self::flags::RTPBufferMapFlags; -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub use self::flags::RTPHeaderExtensionDirection; -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub use self::flags::RTPHeaderExtensionFlags; pub mod functions; mod constants; pub use self::constants::RTP_HDREXT_BASE; -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub use self::constants::RTP_HDREXT_ELEMENT_CLASS; pub use self::constants::RTP_HDREXT_NTP_56; pub use self::constants::RTP_HDREXT_NTP_64; -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub use self::constants::RTP_HEADER_EXTENSION_URI_METADATA_KEY; pub use self::constants::RTP_PAYLOAD_1016_STRING; pub use self::constants::RTP_PAYLOAD_CELLB_STRING; @@ -84,7 +84,7 @@ pub use self::constants::RTP_PAYLOAD_TS48_STRING; pub mod traits { pub use super::rtp_base_depayload::RTPBaseDepayloadExt; pub use super::rtp_base_payload::RTPBasePayloadExt; - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub use super::rtp_header_extension::RTPHeaderExtensionExt; } diff --git a/gstreamer-rtp/src/auto/rtp_base_depayload.rs b/gstreamer-rtp/src/auto/rtp_base_depayload.rs index da58f94ac..7e6e74f7f 100644 --- a/gstreamer-rtp/src/auto/rtp_base_depayload.rs +++ b/gstreamer-rtp/src/auto/rtp_base_depayload.rs @@ -3,8 +3,8 @@ // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git) // DO NOT EDIT -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] use crate::RTPHeaderExtension; use glib::{ prelude::*, @@ -30,8 +30,8 @@ unsafe impl Send for RTPBaseDepayload {} unsafe impl Sync for RTPBaseDepayload {} pub trait RTPBaseDepayloadExt: 'static { - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] #[doc(alias = "gst_rtp_base_depayload_is_source_info_enabled")] fn is_source_info_enabled(&self) -> bool; @@ -41,69 +41,69 @@ pub trait RTPBaseDepayloadExt: 'static { #[doc(alias = "gst_rtp_base_depayload_push_list")] fn push_list(&self, out_list: gst::BufferList) -> Result; - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] #[doc(alias = "gst_rtp_base_depayload_set_source_info_enabled")] fn set_source_info_enabled(&self, enable: bool); - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(alias = "auto-header-extension")] fn is_auto_header_extension(&self) -> bool; - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(alias = "auto-header-extension")] fn set_auto_header_extension(&self, auto_header_extension: bool); - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "max-reorder")] fn max_reorder(&self) -> i32; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "max-reorder")] fn set_max_reorder(&self, max_reorder: i32); - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] #[doc(alias = "source-info")] fn is_source_info(&self) -> bool; - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] #[doc(alias = "source-info")] fn set_source_info(&self, source_info: bool); fn stats(&self) -> Option; - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(alias = "add-extension")] fn connect_add_extension( &self, f: F, ) -> SignalHandlerId; - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] fn emit_add_extension(&self, ext: &RTPHeaderExtension); - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(alias = "clear-extensions")] fn connect_clear_extensions( &self, f: F, ) -> SignalHandlerId; - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] fn emit_clear_extensions(&self); - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(alias = "request-extension")] fn connect_request_extension< F: Fn(&Self, u32, Option<&str>) -> Option + Send + Sync + 'static, @@ -112,24 +112,24 @@ pub trait RTPBaseDepayloadExt: 'static { f: F, ) -> SignalHandlerId; - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(alias = "auto-header-extension")] fn connect_auto_header_extension_notify( &self, f: F, ) -> SignalHandlerId; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "max-reorder")] fn connect_max_reorder_notify( &self, f: F, ) -> SignalHandlerId; - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] #[doc(alias = "source-info")] fn connect_source_info_notify( &self, @@ -141,8 +141,8 @@ pub trait RTPBaseDepayloadExt: 'static { } impl> RTPBaseDepayloadExt for O { - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] fn is_source_info_enabled(&self) -> bool { unsafe { from_glib(ffi::gst_rtp_base_depayload_is_source_info_enabled( @@ -169,8 +169,8 @@ impl> RTPBaseDepayloadExt for O { } } - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] fn set_source_info_enabled(&self, enable: bool) { unsafe { ffi::gst_rtp_base_depayload_set_source_info_enabled( @@ -180,14 +180,14 @@ impl> RTPBaseDepayloadExt for O { } } - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] fn is_auto_header_extension(&self) -> bool { glib::ObjectExt::property(self.as_ref(), "auto-header-extension") } - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] fn set_auto_header_extension(&self, auto_header_extension: bool) { glib::ObjectExt::set_property( self.as_ref(), @@ -196,26 +196,26 @@ impl> RTPBaseDepayloadExt for O { ) } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] fn max_reorder(&self) -> i32 { glib::ObjectExt::property(self.as_ref(), "max-reorder") } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] fn set_max_reorder(&self, max_reorder: i32) { glib::ObjectExt::set_property(self.as_ref(), "max-reorder", max_reorder) } - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] fn is_source_info(&self) -> bool { glib::ObjectExt::property(self.as_ref(), "source-info") } - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] fn set_source_info(&self, source_info: bool) { glib::ObjectExt::set_property(self.as_ref(), "source-info", source_info) } @@ -224,8 +224,8 @@ impl> RTPBaseDepayloadExt for O { glib::ObjectExt::property(self.as_ref(), "stats") } - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] fn connect_add_extension( &self, f: F, @@ -257,14 +257,14 @@ impl> RTPBaseDepayloadExt for O { } } - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] fn emit_add_extension(&self, ext: &RTPHeaderExtension) { self.emit_by_name::<()>("add-extension", &[&ext]); } - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] fn connect_clear_extensions( &self, f: F, @@ -292,14 +292,14 @@ impl> RTPBaseDepayloadExt for O { } } - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] fn emit_clear_extensions(&self) { self.emit_by_name::<()>("clear-extensions", &[]); } - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] fn connect_request_extension< F: Fn(&Self, u32, Option<&str>) -> Option + Send + Sync + 'static, >( @@ -339,8 +339,8 @@ impl> RTPBaseDepayloadExt for O { } } - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] fn connect_auto_header_extension_notify( &self, f: F, @@ -369,8 +369,8 @@ impl> RTPBaseDepayloadExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] fn connect_max_reorder_notify( &self, f: F, @@ -399,8 +399,8 @@ impl> RTPBaseDepayloadExt for O { } } - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] fn connect_source_info_notify( &self, f: F, diff --git a/gstreamer-rtp/src/auto/rtp_base_payload.rs b/gstreamer-rtp/src/auto/rtp_base_payload.rs index e89e4f771..b39025c9f 100644 --- a/gstreamer-rtp/src/auto/rtp_base_payload.rs +++ b/gstreamer-rtp/src/auto/rtp_base_payload.rs @@ -3,8 +3,8 @@ // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git) // DO NOT EDIT -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] use crate::RTPHeaderExtension; use glib::{ prelude::*, @@ -30,13 +30,13 @@ unsafe impl Send for RTPBasePayload {} unsafe impl Sync for RTPBasePayload {} pub trait RTPBasePayloadExt: 'static { - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] #[doc(alias = "gst_rtp_base_payload_allocate_output_buffer")] fn allocate_output_buffer(&self, payload_len: u32, pad_len: u8, csrc_count: u8) -> gst::Buffer; - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] #[doc(alias = "gst_rtp_base_payload_get_source_count")] #[doc(alias = "get_source_count")] fn source_count(&self, buffer: &gst::Buffer) -> u32; @@ -44,8 +44,8 @@ pub trait RTPBasePayloadExt: 'static { #[doc(alias = "gst_rtp_base_payload_is_filled")] fn is_filled(&self, size: u32, duration: impl Into>) -> bool; - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] #[doc(alias = "gst_rtp_base_payload_is_source_info_enabled")] fn is_source_info_enabled(&self) -> bool; @@ -58,18 +58,18 @@ pub trait RTPBasePayloadExt: 'static { #[doc(alias = "gst_rtp_base_payload_set_options")] fn set_options(&self, media: &str, dynamic: bool, encoding_name: &str, clock_rate: u32); - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] #[doc(alias = "gst_rtp_base_payload_set_source_info_enabled")] fn set_source_info_enabled(&self, enable: bool); - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(alias = "auto-header-extension")] fn is_auto_header_extension(&self) -> bool; - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(alias = "auto-header-extension")] fn set_auto_header_extension(&self, auto_header_extension: bool); @@ -89,13 +89,13 @@ pub trait RTPBasePayloadExt: 'static { fn set_mtu(&self, mtu: u32); - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] #[doc(alias = "onvif-no-rate-control")] fn is_onvif_no_rate_control(&self) -> bool; - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] #[doc(alias = "onvif-no-rate-control")] fn set_onvif_no_rate_control(&self, onvif_no_rate_control: bool); @@ -115,13 +115,13 @@ pub trait RTPBasePayloadExt: 'static { #[doc(alias = "ptime-multiple")] fn set_ptime_multiple(&self, ptime_multiple: i64); - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "scale-rtptime")] fn is_scale_rtptime(&self) -> bool; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "scale-rtptime")] fn set_scale_rtptime(&self, scale_rtptime: bool); @@ -133,13 +133,13 @@ pub trait RTPBasePayloadExt: 'static { #[doc(alias = "seqnum-offset")] fn set_seqnum_offset(&self, seqnum_offset: i32); - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] #[doc(alias = "source-info")] fn is_source_info(&self) -> bool; - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] #[doc(alias = "source-info")] fn set_source_info(&self, source_info: bool); @@ -157,32 +157,32 @@ pub trait RTPBasePayloadExt: 'static { #[doc(alias = "timestamp-offset")] fn set_timestamp_offset(&self, timestamp_offset: u32); - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(alias = "add-extension")] fn connect_add_extension( &self, f: F, ) -> SignalHandlerId; - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] fn emit_add_extension(&self, ext: &RTPHeaderExtension); - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(alias = "clear-extensions")] fn connect_clear_extensions( &self, f: F, ) -> SignalHandlerId; - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] fn emit_clear_extensions(&self); - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(alias = "request-extension")] fn connect_request_extension< F: Fn(&Self, u32, &str) -> Option + Send + Sync + 'static, @@ -191,8 +191,8 @@ pub trait RTPBasePayloadExt: 'static { f: F, ) -> SignalHandlerId; - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(alias = "auto-header-extension")] fn connect_auto_header_extension_notify( &self, @@ -214,8 +214,8 @@ pub trait RTPBasePayloadExt: 'static { #[doc(alias = "mtu")] fn connect_mtu_notify(&self, f: F) -> SignalHandlerId; - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] #[doc(alias = "onvif-no-rate-control")] fn connect_onvif_no_rate_control_notify( &self, @@ -237,8 +237,8 @@ pub trait RTPBasePayloadExt: 'static { f: F, ) -> SignalHandlerId; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "scale-rtptime")] fn connect_scale_rtptime_notify( &self, @@ -254,8 +254,8 @@ pub trait RTPBasePayloadExt: 'static { f: F, ) -> SignalHandlerId; - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] #[doc(alias = "source-info")] fn connect_source_info_notify( &self, @@ -282,8 +282,8 @@ pub trait RTPBasePayloadExt: 'static { } impl> RTPBasePayloadExt for O { - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] fn allocate_output_buffer(&self, payload_len: u32, pad_len: u8, csrc_count: u8) -> gst::Buffer { unsafe { from_glib_full(ffi::gst_rtp_base_payload_allocate_output_buffer( @@ -295,8 +295,8 @@ impl> RTPBasePayloadExt for O { } } - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] fn source_count(&self, buffer: &gst::Buffer) -> u32 { unsafe { ffi::gst_rtp_base_payload_get_source_count( @@ -316,8 +316,8 @@ impl> RTPBasePayloadExt for O { } } - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] fn is_source_info_enabled(&self) -> bool { unsafe { from_glib(ffi::gst_rtp_base_payload_is_source_info_enabled( @@ -356,8 +356,8 @@ impl> RTPBasePayloadExt for O { } } - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] fn set_source_info_enabled(&self, enable: bool) { unsafe { ffi::gst_rtp_base_payload_set_source_info_enabled( @@ -367,14 +367,14 @@ impl> RTPBasePayloadExt for O { } } - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] fn is_auto_header_extension(&self) -> bool { glib::ObjectExt::property(self.as_ref(), "auto-header-extension") } - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] fn set_auto_header_extension(&self, auto_header_extension: bool) { glib::ObjectExt::set_property( self.as_ref(), @@ -407,14 +407,14 @@ impl> RTPBasePayloadExt for O { glib::ObjectExt::set_property(self.as_ref(), "mtu", mtu) } - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] fn is_onvif_no_rate_control(&self) -> bool { glib::ObjectExt::property(self.as_ref(), "onvif-no-rate-control") } - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] fn set_onvif_no_rate_control(&self, onvif_no_rate_control: bool) { glib::ObjectExt::set_property( self.as_ref(), @@ -447,14 +447,14 @@ impl> RTPBasePayloadExt for O { glib::ObjectExt::set_property(self.as_ref(), "ptime-multiple", ptime_multiple) } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] fn is_scale_rtptime(&self) -> bool { glib::ObjectExt::property(self.as_ref(), "scale-rtptime") } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] fn set_scale_rtptime(&self, scale_rtptime: bool) { glib::ObjectExt::set_property(self.as_ref(), "scale-rtptime", scale_rtptime) } @@ -471,14 +471,14 @@ impl> RTPBasePayloadExt for O { glib::ObjectExt::set_property(self.as_ref(), "seqnum-offset", seqnum_offset) } - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] fn is_source_info(&self) -> bool { glib::ObjectExt::property(self.as_ref(), "source-info") } - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] fn set_source_info(&self, source_info: bool) { glib::ObjectExt::set_property(self.as_ref(), "source-info", source_info) } @@ -507,8 +507,8 @@ impl> RTPBasePayloadExt for O { glib::ObjectExt::set_property(self.as_ref(), "timestamp-offset", timestamp_offset) } - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] fn connect_add_extension( &self, f: F, @@ -540,14 +540,14 @@ impl> RTPBasePayloadExt for O { } } - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] fn emit_add_extension(&self, ext: &RTPHeaderExtension) { self.emit_by_name::<()>("add-extension", &[&ext]); } - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] fn connect_clear_extensions( &self, f: F, @@ -575,14 +575,14 @@ impl> RTPBasePayloadExt for O { } } - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] fn emit_clear_extensions(&self) { self.emit_by_name::<()>("clear-extensions", &[]); } - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] fn connect_request_extension< F: Fn(&Self, u32, &str) -> Option + Send + Sync + 'static, >( @@ -619,8 +619,8 @@ impl> RTPBasePayloadExt for O { } } - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] fn connect_auto_header_extension_notify( &self, f: F, @@ -730,8 +730,8 @@ impl> RTPBasePayloadExt for O { } } - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] fn connect_onvif_no_rate_control_notify( &self, f: F, @@ -841,8 +841,8 @@ impl> RTPBasePayloadExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] fn connect_scale_rtptime_notify( &self, f: F, @@ -924,8 +924,8 @@ impl> RTPBasePayloadExt for O { } } - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] fn connect_source_info_notify( &self, f: F, diff --git a/gstreamer-rtp/src/auto/versions.txt b/gstreamer-rtp/src/auto/versions.txt index 94b843e6a..f606c95a2 100644 --- a/gstreamer-rtp/src/auto/versions.txt +++ b/gstreamer-rtp/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2) +Generated by gir (https://github.com/gtk-rs/gir @ 719372782330) from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836) diff --git a/gstreamer-rtp/sys/Cargo.toml b/gstreamer-rtp/sys/Cargo.toml index 3fbecd9e1..36e13f783 100644 --- a/gstreamer-rtp/sys/Cargo.toml +++ b/gstreamer-rtp/sys/Cargo.toml @@ -47,7 +47,7 @@ edition = "2021" rust-version = "1.66" [package.metadata.docs.rs] -features = ["dox"] +features = [] [package.metadata.system-deps.gstreamer_rtp_1_0] name = "gstreamer-rtp-1.0" diff --git a/gstreamer-rtp/sys/build.rs b/gstreamer-rtp/sys/build.rs index 40e2cc398..29420c9ee 100644 --- a/gstreamer-rtp/sys/build.rs +++ b/gstreamer-rtp/sys/build.rs @@ -3,13 +3,13 @@ // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git) // DO NOT EDIT -#[cfg(not(feature = "dox"))] +#[cfg(not(docsrs))] use std::process; -#[cfg(feature = "dox")] +#[cfg(docsrs)] fn main() {} // prevent linking libraries to avoid documentation failure -#[cfg(not(feature = "dox"))] +#[cfg(not(docsrs))] fn main() { if let Err(s) = system_deps::Config::new().probe() { println!("cargo:warning={s}"); diff --git a/gstreamer-rtp/sys/src/auto/versions.txt b/gstreamer-rtp/sys/src/auto/versions.txt index 94b843e6a..f606c95a2 100644 --- a/gstreamer-rtp/sys/src/auto/versions.txt +++ b/gstreamer-rtp/sys/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2) +Generated by gir (https://github.com/gtk-rs/gir @ 719372782330) from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836) diff --git a/gstreamer-rtp/sys/src/lib.rs b/gstreamer-rtp/sys/src/lib.rs index f6479aba1..c0665d2b3 100644 --- a/gstreamer-rtp/sys/src/lib.rs +++ b/gstreamer-rtp/sys/src/lib.rs @@ -10,7 +10,7 @@ clippy::unreadable_literal, clippy::upper_case_acronyms )] -#![cfg_attr(feature = "dox", feature(doc_cfg))] +#![cfg_attr(docsrs, feature(doc_cfg))] #[allow(unused_imports)] use libc::{ @@ -49,26 +49,26 @@ pub const GST_RTCP_SDES_LOC: GstRTCPSDESType = 5; pub const GST_RTCP_SDES_TOOL: GstRTCPSDESType = 6; pub const GST_RTCP_SDES_NOTE: GstRTCPSDESType = 7; pub const GST_RTCP_SDES_PRIV: GstRTCPSDESType = 8; -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub const GST_RTCP_SDES_H323_CADDR: GstRTCPSDESType = 9; -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub const GST_RTCP_SDES_APSI: GstRTCPSDESType = 10; -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub const GST_RTCP_SDES_RGRP: GstRTCPSDESType = 11; -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub const GST_RTCP_SDES_RTP_STREAM_ID: GstRTCPSDESType = 12; -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub const GST_RTCP_SDES_REPAIRED_RTP_STREAM_ID: GstRTCPSDESType = 13; -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub const GST_RTCP_SDES_CCID: GstRTCPSDESType = 14; -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub const GST_RTCP_SDES_MID: GstRTCPSDESType = 15; pub type GstRTCPType = c_int; @@ -610,8 +610,8 @@ extern "C" { //========================================================================= // GstRTCPXRType //========================================================================= - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] pub fn gst_rtcpxr_type_get_type() -> GType; //========================================================================= @@ -637,15 +637,15 @@ extern "C" { //========================================================================= // GstRTPHeaderExtensionDirection //========================================================================= - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_rtp_header_extension_direction_get_type() -> GType; //========================================================================= // GstRTPHeaderExtensionFlags //========================================================================= - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_rtp_header_extension_flags_get_type() -> GType; //========================================================================= @@ -811,17 +811,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(feature = "v1_16")] + #[cfg_attr(docsrs, 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(feature = "v1_16")] + #[cfg_attr(docsrs, 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(feature = "v1_16")] + #[cfg_attr(docsrs, 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(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] pub fn gst_rtcp_packet_xr_get_dlrr_block( packet: *mut GstRTCPPacket, nth: c_uint, @@ -829,15 +829,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(feature = "v1_16")] + #[cfg_attr(docsrs, 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(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] pub fn gst_rtcp_packet_xr_get_prt_info( packet: *mut GstRTCPPacket, ssrc: *mut u32, @@ -845,8 +845,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(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] pub fn gst_rtcp_packet_xr_get_rle_info( packet: *mut GstRTCPPacket, ssrc: *mut u32, @@ -855,29 +855,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(feature = "v1_16")] + #[cfg_attr(docsrs, 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(feature = "v1_16")] + #[cfg_attr(docsrs, 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(feature = "v1_16")] + #[cfg_attr(docsrs, 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(feature = "v1_16")] + #[cfg_attr(docsrs, 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(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] pub fn gst_rtcp_packet_xr_get_summary_jitter( packet: *mut GstRTCPPacket, min_jitter: *mut u32, @@ -885,15 +885,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(feature = "v1_16")] + #[cfg_attr(docsrs, 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(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] pub fn gst_rtcp_packet_xr_get_summary_ttl( packet: *mut GstRTCPPacket, is_ipv4: *mut gboolean, @@ -902,8 +902,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(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] pub fn gst_rtcp_packet_xr_get_voip_burst_metrics( packet: *mut GstRTCPPacket, burst_density: *mut u8, @@ -911,43 +911,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(feature = "v1_16")] + #[cfg_attr(docsrs, 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(feature = "v1_16")] + #[cfg_attr(docsrs, 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(feature = "v1_16")] + #[cfg_attr(docsrs, 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(feature = "v1_16")] + #[cfg_attr(docsrs, 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(feature = "v1_16")] + #[cfg_attr(docsrs, 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(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] pub fn gst_rtcp_packet_xr_get_voip_quality_metrics( packet: *mut GstRTCPPacket, r_factor: *mut u8, @@ -955,8 +955,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(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] pub fn gst_rtcp_packet_xr_get_voip_signal_metrics( packet: *mut GstRTCPPacket, signal_level: *mut u8, @@ -964,8 +964,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(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] pub fn gst_rtcp_packet_xr_next_rb(packet: *mut GstRTCPPacket) -> gboolean; //========================================================================= @@ -1031,8 +1031,8 @@ extern "C" { pub fn gst_rtp_buffer_get_timestamp(rtp: *mut GstRTPBuffer) -> u32; pub fn gst_rtp_buffer_get_version(rtp: *mut GstRTPBuffer) -> u8; pub fn gst_rtp_buffer_pad_to(rtp: *mut GstRTPBuffer, len: c_uint); - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_rtp_buffer_remove_extension_data(rtp: *mut GstRTPBuffer); pub fn gst_rtp_buffer_set_csrc(rtp: *mut GstRTPBuffer, idx: u8, csrc: u32); pub fn gst_rtp_buffer_set_extension(rtp: *mut GstRTPBuffer, extension: gboolean); @@ -1070,8 +1070,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(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub fn gst_rtp_buffer_get_extension_onebyte_header_from_bytes( bytes: *mut glib::GBytes, bit_pattern: u16, @@ -1101,8 +1101,8 @@ extern "C" { //========================================================================= // GstRTPHeaderExtensionClass //========================================================================= - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_rtp_header_extension_class_set_uri( klass: *mut GstRTPHeaderExtensionClass, uri: *const c_char, @@ -1120,21 +1120,21 @@ extern "C" { //========================================================================= // GstRTPSourceMeta //========================================================================= - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, 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(feature = "v1_16")] + #[cfg_attr(docsrs, 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(feature = "v1_16")] + #[cfg_attr(docsrs, 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(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] pub fn gst_rtp_source_meta_get_info() -> *const gst::GstMetaInfo; //========================================================================= @@ -1179,8 +1179,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(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] pub fn gst_rtp_base_depayload_is_source_info_enabled( depayload: *mut GstRTPBaseDepayload, ) -> gboolean; @@ -1192,8 +1192,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(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] pub fn gst_rtp_base_depayload_set_source_info_enabled( depayload: *mut GstRTPBaseDepayload, enable: gboolean, @@ -1203,16 +1203,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(feature = "v1_16")] + #[cfg_attr(docsrs, 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(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] pub fn gst_rtp_base_payload_get_source_count( payload: *mut GstRTPBasePayload, buffer: *mut gst::GstBuffer, @@ -1222,8 +1222,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(feature = "v1_16")] + #[cfg_attr(docsrs, 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( @@ -1246,14 +1246,14 @@ extern "C" { fieldname: *const c_char, ... ) -> gboolean; - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_rtp_base_payload_set_outcaps_structure( payload: *mut GstRTPBasePayload, s: *mut gst::GstStructure, ) -> gboolean; - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] pub fn gst_rtp_base_payload_set_source_info_enabled( payload: *mut GstRTPBasePayload, enable: gboolean, @@ -1262,43 +1262,43 @@ extern "C" { //========================================================================= // GstRTPHeaderExtension //========================================================================= - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_rtp_header_extension_get_type() -> GType; - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_rtp_header_extension_create_from_uri( uri: *const c_char, ) -> *mut GstRTPHeaderExtension; - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_rtp_header_extension_get_direction( ext: *mut GstRTPHeaderExtension, ) -> GstRTPHeaderExtensionDirection; - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_rtp_header_extension_get_id(ext: *mut GstRTPHeaderExtension) -> c_uint; - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_rtp_header_extension_get_max_size( ext: *mut GstRTPHeaderExtension, input_meta: *const gst::GstBuffer, ) -> size_t; - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_rtp_header_extension_get_sdp_caps_field_name( ext: *mut GstRTPHeaderExtension, ) -> *mut c_char; - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_rtp_header_extension_get_supported_flags( ext: *mut GstRTPHeaderExtension, ) -> GstRTPHeaderExtensionFlags; - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_rtp_header_extension_get_uri(ext: *mut GstRTPHeaderExtension) -> *const c_char; - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_rtp_header_extension_read( ext: *mut GstRTPHeaderExtension, read_flags: GstRTPHeaderExtensionFlags, @@ -1306,59 +1306,59 @@ extern "C" { size: size_t, buffer: *mut gst::GstBuffer, ) -> gboolean; - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_rtp_header_extension_set_attributes_from_caps( ext: *mut GstRTPHeaderExtension, caps: *const gst::GstCaps, ) -> gboolean; - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_rtp_header_extension_set_caps_from_attributes( ext: *mut GstRTPHeaderExtension, caps: *mut gst::GstCaps, ) -> gboolean; - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_rtp_header_extension_set_caps_from_attributes_helper( ext: *mut GstRTPHeaderExtension, caps: *mut gst::GstCaps, attributes: *const c_char, ) -> gboolean; - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_rtp_header_extension_set_direction( ext: *mut GstRTPHeaderExtension, direction: GstRTPHeaderExtensionDirection, ); - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_rtp_header_extension_set_id(ext: *mut GstRTPHeaderExtension, ext_id: c_uint); - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_rtp_header_extension_set_non_rtp_sink_caps( ext: *mut GstRTPHeaderExtension, caps: *const gst::GstCaps, ) -> gboolean; - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_rtp_header_extension_set_wants_update_non_rtp_src_caps( ext: *mut GstRTPHeaderExtension, state: gboolean, ); - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_rtp_header_extension_update_non_rtp_src_caps( ext: *mut GstRTPHeaderExtension, caps: *mut gst::GstCaps, ) -> gboolean; - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_rtp_header_extension_wants_update_non_rtp_src_caps( ext: *mut GstRTPHeaderExtension, ) -> gboolean; - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_rtp_header_extension_write( ext: *mut GstRTPHeaderExtension, input_meta: *const gst::GstBuffer, @@ -1371,30 +1371,30 @@ extern "C" { //========================================================================= // Other functions //========================================================================= - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, 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(feature = "v1_16")] + #[cfg_attr(docsrs, 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; pub fn gst_rtcp_sdes_type_to_name(type_: GstRTCPSDESType) -> *const c_char; pub fn gst_rtcp_unix_to_ntp(unixtime: u64) -> u64; - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_rtp_get_header_extension_list() -> *mut glib::GList; pub fn gst_rtp_hdrext_get_ntp_56(data: gpointer, size: c_uint, ntptime: *mut u64) -> gboolean; 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(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] pub fn gst_rtp_source_meta_api_get_type() -> GType; } diff --git a/gstreamer-rtsp-server/src/auto/rtsp_auth.rs b/gstreamer-rtsp-server/src/auto/rtsp_auth.rs index b02e34183..51764f30c 100644 --- a/gstreamer-rtsp-server/src/auto/rtsp_auth.rs +++ b/gstreamer-rtsp-server/src/auto/rtsp_auth.rs @@ -72,8 +72,8 @@ pub trait RTSPAuthExt: 'static { #[doc(alias = "get_default_token")] fn default_token(&self) -> Option; - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] #[doc(alias = "gst_rtsp_auth_get_realm")] #[doc(alias = "get_realm")] fn realm(&self) -> Option; @@ -94,8 +94,8 @@ pub trait RTSPAuthExt: 'static { #[doc(alias = "get_tls_database")] fn tls_database(&self) -> Option; - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] #[doc(alias = "gst_rtsp_auth_parse_htdigest")] fn parse_htdigest(&self, path: impl AsRef, token: &RTSPToken) -> bool; @@ -105,8 +105,8 @@ pub trait RTSPAuthExt: 'static { #[doc(alias = "gst_rtsp_auth_remove_digest")] fn remove_digest(&self, user: &str); - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] #[doc(alias = "gst_rtsp_auth_set_realm")] fn set_realm(&self, realm: Option<&str>); @@ -164,8 +164,8 @@ impl> RTSPAuthExt for O { } } - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] fn realm(&self) -> Option { unsafe { from_glib_full(ffi::gst_rtsp_auth_get_realm(self.as_ref().to_glib_none().0)) } } @@ -202,8 +202,8 @@ impl> RTSPAuthExt for O { } } - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] fn parse_htdigest(&self, path: impl AsRef, token: &RTSPToken) -> bool { unsafe { from_glib(ffi::gst_rtsp_auth_parse_htdigest( @@ -226,8 +226,8 @@ impl> RTSPAuthExt for O { } } - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] fn set_realm(&self, realm: Option<&str>) { unsafe { ffi::gst_rtsp_auth_set_realm(self.as_ref().to_glib_none().0, realm.to_glib_none().0); diff --git a/gstreamer-rtsp-server/src/auto/rtsp_client.rs b/gstreamer-rtsp-server/src/auto/rtsp_client.rs index 3969307f3..b274dcba7 100644 --- a/gstreamer-rtsp-server/src/auto/rtsp_client.rs +++ b/gstreamer-rtsp-server/src/auto/rtsp_client.rs @@ -3,8 +3,8 @@ // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git) // DO NOT EDIT -#[cfg(any(feature = "v1_18", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] +#[cfg(feature = "v1_18")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] use crate::RTSPStreamTransport; use crate::{ RTSPAuth, RTSPContext, RTSPFilterResult, RTSPMountPoints, RTSPSession, RTSPSessionPool, @@ -57,8 +57,8 @@ pub trait RTSPClientExt: 'static { //#[doc(alias = "get_connection")] //fn connection(&self) -> /*Ignored*/Option; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "gst_rtsp_client_get_content_length_limit")] #[doc(alias = "get_content_length_limit")] fn content_length_limit(&self) -> u32; @@ -71,8 +71,8 @@ pub trait RTSPClientExt: 'static { #[doc(alias = "get_session_pool")] fn session_pool(&self) -> Option; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "gst_rtsp_client_get_stream_transport")] #[doc(alias = "get_stream_transport")] fn stream_transport(&self, channel: u8) -> Option; @@ -99,16 +99,16 @@ pub trait RTSPClientExt: 'static { //#[doc(alias = "gst_rtsp_client_set_connection")] //fn set_connection(&self, conn: /*Ignored*/gst_rtsp::RTSPConnection) -> bool; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "gst_rtsp_client_set_content_length_limit")] fn set_content_length_limit(&self, limit: u32); #[doc(alias = "gst_rtsp_client_set_mount_points")] fn set_mount_points(&self, mounts: Option<&impl IsA>); - //#[cfg(any(feature = "v1_16", feature = "dox"))] - //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + //#[cfg(feature = "v1_16")] + //#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] //#[doc(alias = "gst_rtsp_client_set_send_messages_func")] //fn set_send_messages_func(&self, func: /*Unimplemented*/Fn(&RTSPClient, /*Ignored*/gst_rtsp::RTSPMessage, u32, bool) -> bool, user_data: /*Unimplemented*/Option); @@ -335,8 +335,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(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] fn content_length_limit(&self) -> u32 { unsafe { ffi::gst_rtsp_client_get_content_length_limit(self.as_ref().to_glib_none().0) } } @@ -357,8 +357,8 @@ impl> RTSPClientExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] fn stream_transport(&self, channel: u8) -> Option { unsafe { from_glib_none(ffi::gst_rtsp_client_get_stream_transport( @@ -438,8 +438,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(feature = "v1_18")] + #[cfg_attr(docsrs, 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); @@ -455,8 +455,8 @@ impl> RTSPClientExt for O { } } - //#[cfg(any(feature = "v1_16", feature = "dox"))] - //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + //#[cfg(feature = "v1_16")] + //#[cfg_attr(docsrs, 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() } //} diff --git a/gstreamer-rtsp-server/src/auto/rtsp_media.rs b/gstreamer-rtsp-server/src/auto/rtsp_media.rs index 7e32b32af..12dc095f3 100644 --- a/gstreamer-rtsp-server/src/auto/rtsp_media.rs +++ b/gstreamer-rtsp-server/src/auto/rtsp_media.rs @@ -12,8 +12,8 @@ use glib::{ signal::{connect_raw, SignalHandlerId}, translate::*, }; -#[cfg(any(feature = "v1_18", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] +#[cfg(feature = "v1_18")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] use std::mem; use std::{boxed::Box as Box_, mem::transmute}; @@ -72,14 +72,14 @@ pub trait RTSPMediaExt: 'static { #[doc(alias = "get_clock")] fn clock(&self) -> Option; - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] #[doc(alias = "gst_rtsp_media_get_do_retransmission")] #[doc(alias = "get_do_retransmission")] fn does_retransmission(&self) -> bool; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "gst_rtsp_media_get_dscp_qos")] #[doc(alias = "get_dscp_qos")] fn dscp_qos(&self) -> i32; @@ -92,8 +92,8 @@ pub trait RTSPMediaExt: 'static { #[doc(alias = "get_latency")] fn latency(&self) -> u32; - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] #[doc(alias = "gst_rtsp_media_get_max_mcast_ttl")] #[doc(alias = "get_max_mcast_ttl")] fn max_mcast_ttl(&self) -> u32; @@ -122,14 +122,14 @@ pub trait RTSPMediaExt: 'static { #[doc(alias = "get_range_string")] fn 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(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "gst_rtsp_media_get_rate_control")] #[doc(alias = "get_rate_control")] fn is_rate_control(&self) -> bool; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "gst_rtsp_media_get_rates")] #[doc(alias = "get_rates")] fn rates(&self) -> Option<(f64, f64)>; @@ -161,21 +161,21 @@ pub trait RTSPMediaExt: 'static { //#[doc(alias = "gst_rtsp_media_handle_sdp")] //fn handle_sdp(&self, sdp: /*Ignored*/&mut gst_sdp::SDPMessage) -> bool; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "gst_rtsp_media_has_completed_sender")] fn has_completed_sender(&self) -> bool; - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] #[doc(alias = "gst_rtsp_media_is_bind_mcast_address")] fn is_bind_mcast_address(&self) -> bool; #[doc(alias = "gst_rtsp_media_is_eos_shutdown")] fn is_eos_shutdown(&self) -> bool; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "gst_rtsp_media_is_receive_only")] fn is_receive_only(&self) -> bool; @@ -191,8 +191,8 @@ pub trait RTSPMediaExt: 'static { #[doc(alias = "gst_rtsp_media_is_time_provider")] fn is_time_provider(&self) -> bool; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "gst_rtsp_media_lock")] fn lock(&self); @@ -205,13 +205,13 @@ pub trait RTSPMediaExt: 'static { //#[doc(alias = "gst_rtsp_media_seek")] //fn seek(&self, range: /*Ignored*/&mut gst_rtsp::RTSPTimeRange) -> bool; - //#[cfg(any(feature = "v1_18", feature = "dox"))] - //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + //#[cfg(feature = "v1_18")] + //#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] //#[doc(alias = "gst_rtsp_media_seek_full")] //fn seek_full(&self, range: /*Ignored*/&mut gst_rtsp::RTSPTimeRange, flags: /*Ignored*/gst::SeekFlags) -> bool; - //#[cfg(any(feature = "v1_18", feature = "dox"))] - //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + //#[cfg(feature = "v1_18")] + //#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] //#[doc(alias = "gst_rtsp_media_seek_trickmode")] //fn seek_trickmode(&self, range: /*Ignored*/&mut gst_rtsp::RTSPTimeRange, flags: /*Ignored*/gst::SeekFlags, rate: f64, trickmode_interval: impl Into>) -> bool; @@ -221,8 +221,8 @@ pub trait RTSPMediaExt: 'static { #[doc(alias = "gst_rtsp_media_set_address_pool")] fn set_address_pool(&self, pool: Option<&impl IsA>); - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] #[doc(alias = "gst_rtsp_media_set_bind_mcast_address")] fn set_bind_mcast_address(&self, bind_mcast_addr: bool); @@ -232,13 +232,13 @@ pub trait RTSPMediaExt: 'static { #[doc(alias = "gst_rtsp_media_set_clock")] fn set_clock(&self, clock: Option<&impl IsA>); - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] #[doc(alias = "gst_rtsp_media_set_do_retransmission")] fn set_do_retransmission(&self, do_retransmission: bool); - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "gst_rtsp_media_set_dscp_qos")] fn set_dscp_qos(&self, dscp_qos: i32); @@ -248,8 +248,8 @@ pub trait RTSPMediaExt: 'static { #[doc(alias = "gst_rtsp_media_set_latency")] fn set_latency(&self, latency: u32); - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] #[doc(alias = "gst_rtsp_media_set_max_mcast_ttl")] fn set_max_mcast_ttl(&self, ttl: u32) -> bool; @@ -271,8 +271,8 @@ pub trait RTSPMediaExt: 'static { #[doc(alias = "gst_rtsp_media_set_publish_clock_mode")] fn set_publish_clock_mode(&self, mode: RTSPPublishClockMode); - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "gst_rtsp_media_set_rate_control")] fn set_rate_control(&self, enabled: bool); @@ -303,8 +303,8 @@ pub trait RTSPMediaExt: 'static { #[doc(alias = "gst_rtsp_media_suspend")] fn suspend(&self) -> Result<(), glib::error::BoolError>; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "gst_rtsp_media_unlock")] fn unlock(&self); @@ -338,8 +338,8 @@ pub trait RTSPMediaExt: 'static { #[doc(alias = "time-provider")] fn set_time_provider(&self, time_provider: bool); - #[cfg(any(feature = "v1_22", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] + #[cfg(feature = "v1_22")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] #[doc(alias = "handle-message")] fn connect_handle_message bool + Send + Sync + 'static>( &self, @@ -520,8 +520,8 @@ impl> RTSPMediaExt for O { } } - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] fn does_retransmission(&self) -> bool { unsafe { from_glib(ffi::gst_rtsp_media_get_do_retransmission( @@ -530,8 +530,8 @@ impl> RTSPMediaExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] fn dscp_qos(&self) -> i32 { unsafe { ffi::gst_rtsp_media_get_dscp_qos(self.as_ref().to_glib_none().0) } } @@ -548,8 +548,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(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] fn max_mcast_ttl(&self) -> u32 { unsafe { ffi::gst_rtsp_media_get_max_mcast_ttl(self.as_ref().to_glib_none().0) } } @@ -600,8 +600,8 @@ impl> RTSPMediaExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] fn is_rate_control(&self) -> bool { unsafe { from_glib(ffi::gst_rtsp_media_get_rate_control( @@ -610,8 +610,8 @@ impl> RTSPMediaExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] fn rates(&self) -> Option<(f64, f64)> { unsafe { let mut rate = mem::MaybeUninit::uninit(); @@ -684,8 +684,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(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] fn has_completed_sender(&self) -> bool { unsafe { from_glib(ffi::gst_rtsp_media_has_completed_sender( @@ -694,8 +694,8 @@ impl> RTSPMediaExt for O { } } - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] fn is_bind_mcast_address(&self) -> bool { unsafe { from_glib(ffi::gst_rtsp_media_is_bind_mcast_address( @@ -712,8 +712,8 @@ impl> RTSPMediaExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] fn is_receive_only(&self) -> bool { unsafe { from_glib(ffi::gst_rtsp_media_is_receive_only( @@ -754,8 +754,8 @@ impl> RTSPMediaExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] fn lock(&self) { unsafe { ffi::gst_rtsp_media_lock(self.as_ref().to_glib_none().0); @@ -779,14 +779,14 @@ 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(feature = "v1_18")] + //#[cfg_attr(docsrs, 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(feature = "v1_18")] + //#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] //fn seek_trickmode(&self, range: /*Ignored*/&mut gst_rtsp::RTSPTimeRange, flags: /*Ignored*/gst::SeekFlags, rate: f64, trickmode_interval: impl Into>) -> bool { // unsafe { TODO: call ffi:gst_rtsp_media_seek_trickmode() } //} @@ -804,8 +804,8 @@ impl> RTSPMediaExt for O { } } - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] fn set_bind_mcast_address(&self, bind_mcast_addr: bool) { unsafe { ffi::gst_rtsp_media_set_bind_mcast_address( @@ -830,8 +830,8 @@ impl> RTSPMediaExt for O { } } - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] fn set_do_retransmission(&self, do_retransmission: bool) { unsafe { ffi::gst_rtsp_media_set_do_retransmission( @@ -841,8 +841,8 @@ impl> RTSPMediaExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, 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); @@ -864,8 +864,8 @@ impl> RTSPMediaExt for O { } } - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, 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( @@ -921,8 +921,8 @@ impl> RTSPMediaExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] fn set_rate_control(&self, enabled: bool) { unsafe { ffi::gst_rtsp_media_set_rate_control( @@ -1000,8 +1000,8 @@ impl> RTSPMediaExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] fn unlock(&self) { unsafe { ffi::gst_rtsp_media_unlock(self.as_ref().to_glib_none().0); @@ -1063,8 +1063,8 @@ impl> RTSPMediaExt for O { glib::ObjectExt::set_property(self.as_ref(), "time-provider", time_provider) } - #[cfg(any(feature = "v1_22", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] + #[cfg(feature = "v1_22")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] fn connect_handle_message bool + Send + Sync + 'static>( &self, detail: Option<&str>, diff --git a/gstreamer-rtsp-server/src/auto/rtsp_media_factory.rs b/gstreamer-rtsp-server/src/auto/rtsp_media_factory.rs index f646fc889..148a72b99 100644 --- a/gstreamer-rtsp-server/src/auto/rtsp_media_factory.rs +++ b/gstreamer-rtsp-server/src/auto/rtsp_media_factory.rs @@ -61,14 +61,14 @@ pub trait RTSPMediaFactoryExt: 'static { #[doc(alias = "get_clock")] fn clock(&self) -> Option; - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] #[doc(alias = "gst_rtsp_media_factory_get_do_retransmission")] #[doc(alias = "get_do_retransmission")] fn does_retransmission(&self) -> bool; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "gst_rtsp_media_factory_get_dscp_qos")] #[doc(alias = "get_dscp_qos")] fn dscp_qos(&self) -> i32; @@ -81,8 +81,8 @@ pub trait RTSPMediaFactoryExt: 'static { #[doc(alias = "get_launch")] fn launch(&self) -> Option; - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] #[doc(alias = "gst_rtsp_media_factory_get_max_mcast_ttl")] #[doc(alias = "get_max_mcast_ttl")] fn max_mcast_ttl(&self) -> u32; @@ -123,13 +123,13 @@ pub trait RTSPMediaFactoryExt: 'static { #[doc(alias = "get_transport_mode")] fn transport_mode(&self) -> RTSPTransportMode; - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] #[doc(alias = "gst_rtsp_media_factory_is_bind_mcast_address")] fn is_bind_mcast_address(&self) -> bool; - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(alias = "gst_rtsp_media_factory_is_enable_rtcp")] fn is_enable_rtcp(&self) -> bool; @@ -145,8 +145,8 @@ pub trait RTSPMediaFactoryExt: 'static { #[doc(alias = "gst_rtsp_media_factory_set_address_pool")] fn set_address_pool(&self, pool: Option<&impl IsA>); - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] #[doc(alias = "gst_rtsp_media_factory_set_bind_mcast_address")] fn set_bind_mcast_address(&self, bind_mcast_addr: bool); @@ -156,18 +156,18 @@ pub trait RTSPMediaFactoryExt: 'static { #[doc(alias = "gst_rtsp_media_factory_set_clock")] fn set_clock(&self, clock: Option<&impl IsA>); - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] #[doc(alias = "gst_rtsp_media_factory_set_do_retransmission")] fn set_do_retransmission(&self, do_retransmission: bool); - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "gst_rtsp_media_factory_set_dscp_qos")] fn set_dscp_qos(&self, dscp_qos: i32); - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(alias = "gst_rtsp_media_factory_set_enable_rtcp")] fn set_enable_rtcp(&self, enable: bool); @@ -180,8 +180,8 @@ pub trait RTSPMediaFactoryExt: 'static { #[doc(alias = "gst_rtsp_media_factory_set_launch")] fn set_launch(&self, launch: &str); - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] #[doc(alias = "gst_rtsp_media_factory_set_max_mcast_ttl")] fn set_max_mcast_ttl(&self, ttl: u32) -> bool; @@ -272,8 +272,8 @@ pub trait RTSPMediaFactoryExt: 'static { f: F, ) -> SignalHandlerId; - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(alias = "enable-rtcp")] fn connect_enable_rtcp_notify( &self, @@ -378,8 +378,8 @@ impl> RTSPMediaFactoryExt for O { } } - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] fn does_retransmission(&self) -> bool { unsafe { from_glib(ffi::gst_rtsp_media_factory_get_do_retransmission( @@ -388,8 +388,8 @@ impl> RTSPMediaFactoryExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] fn dscp_qos(&self) -> i32 { unsafe { ffi::gst_rtsp_media_factory_get_dscp_qos(self.as_ref().to_glib_none().0) } } @@ -406,8 +406,8 @@ impl> RTSPMediaFactoryExt for O { } } - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] fn max_mcast_ttl(&self) -> u32 { unsafe { ffi::gst_rtsp_media_factory_get_max_mcast_ttl(self.as_ref().to_glib_none().0) } } @@ -480,8 +480,8 @@ impl> RTSPMediaFactoryExt for O { } } - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] fn is_bind_mcast_address(&self) -> bool { unsafe { from_glib(ffi::gst_rtsp_media_factory_is_bind_mcast_address( @@ -490,8 +490,8 @@ impl> RTSPMediaFactoryExt for O { } } - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] fn is_enable_rtcp(&self) -> bool { unsafe { from_glib(ffi::gst_rtsp_media_factory_is_enable_rtcp( @@ -533,8 +533,8 @@ impl> RTSPMediaFactoryExt for O { } } - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, 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( @@ -559,8 +559,8 @@ impl> RTSPMediaFactoryExt for O { } } - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] fn set_do_retransmission(&self, do_retransmission: bool) { unsafe { ffi::gst_rtsp_media_factory_set_do_retransmission( @@ -570,16 +570,16 @@ impl> RTSPMediaFactoryExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, 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); } } - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] fn set_enable_rtcp(&self, enable: bool) { unsafe { ffi::gst_rtsp_media_factory_set_enable_rtcp( @@ -613,8 +613,8 @@ impl> RTSPMediaFactoryExt for O { } } - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, 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( @@ -917,8 +917,8 @@ impl> RTSPMediaFactoryExt for O { } } - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] fn connect_enable_rtcp_notify( &self, f: F, diff --git a/gstreamer-rtsp-server/src/auto/rtsp_onvif_client.rs b/gstreamer-rtsp-server/src/auto/rtsp_onvif_client.rs index e35a954d2..c70b41383 100644 --- a/gstreamer-rtsp-server/src/auto/rtsp_onvif_client.rs +++ b/gstreamer-rtsp-server/src/auto/rtsp_onvif_client.rs @@ -4,8 +4,8 @@ // DO NOT EDIT use crate::RTSPClient; -#[cfg(any(feature = "v1_18", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] +#[cfg(feature = "v1_18")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] use glib::{prelude::*, translate::*}; glib::wrapper! { @@ -20,8 +20,8 @@ glib::wrapper! { impl RTSPOnvifClient { pub const NONE: Option<&'static RTSPOnvifClient> = None; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "gst_rtsp_onvif_client_new")] pub fn new() -> RTSPOnvifClient { assert_initialized_main_thread!(); @@ -29,8 +29,8 @@ impl RTSPOnvifClient { } } -#[cfg(any(feature = "v1_18", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] +#[cfg(feature = "v1_18")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] impl Default for RTSPOnvifClient { fn default() -> Self { Self::new() diff --git a/gstreamer-rtsp-server/src/auto/rtsp_onvif_media_factory.rs b/gstreamer-rtsp-server/src/auto/rtsp_onvif_media_factory.rs index d5c74f04a..b263eb175 100644 --- a/gstreamer-rtsp-server/src/auto/rtsp_onvif_media_factory.rs +++ b/gstreamer-rtsp-server/src/auto/rtsp_onvif_media_factory.rs @@ -48,8 +48,8 @@ pub trait RTSPOnvifMediaFactoryExt: 'static { #[doc(alias = "gst_rtsp_onvif_media_factory_has_backchannel_support")] fn has_backchannel_support(&self) -> bool; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "gst_rtsp_onvif_media_factory_has_replay_support")] fn has_replay_support(&self) -> bool; @@ -59,8 +59,8 @@ pub trait RTSPOnvifMediaFactoryExt: 'static { #[doc(alias = "gst_rtsp_onvif_media_factory_set_backchannel_launch")] fn set_backchannel_launch(&self, launch: Option<&str>); - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "gst_rtsp_onvif_media_factory_set_replay_support")] fn set_replay_support(&self, has_replay_support: bool); } @@ -90,8 +90,8 @@ impl> RTSPOnvifMediaFactoryExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] fn has_replay_support(&self) -> bool { unsafe { from_glib(ffi::gst_rtsp_onvif_media_factory_has_replay_support( @@ -118,8 +118,8 @@ impl> RTSPOnvifMediaFactoryExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] fn set_replay_support(&self, has_replay_support: bool) { unsafe { ffi::gst_rtsp_onvif_media_factory_set_replay_support( diff --git a/gstreamer-rtsp-server/src/auto/rtsp_server.rs b/gstreamer-rtsp-server/src/auto/rtsp_server.rs index 525a47a98..cf6b77f4f 100644 --- a/gstreamer-rtsp-server/src/auto/rtsp_server.rs +++ b/gstreamer-rtsp-server/src/auto/rtsp_server.rs @@ -95,8 +95,8 @@ pub trait RTSPServerExt: 'static { #[doc(alias = "get_bound_port")] fn bound_port(&self) -> i32; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "gst_rtsp_server_get_content_length_limit")] #[doc(alias = "get_content_length_limit")] fn content_length_limit(&self) -> u32; @@ -126,8 +126,8 @@ pub trait RTSPServerExt: 'static { #[doc(alias = "gst_rtsp_server_set_backlog")] fn set_backlog(&self, backlog: i32); - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "gst_rtsp_server_set_content_length_limit")] fn set_content_length_limit(&self, limit: u32); @@ -305,8 +305,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(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] fn content_length_limit(&self) -> u32 { unsafe { ffi::gst_rtsp_server_get_content_length_limit(self.as_ref().to_glib_none().0) } } @@ -367,8 +367,8 @@ impl> RTSPServerExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, 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_stream.rs b/gstreamer-rtsp-server/src/auto/rtsp_stream.rs index b8156c68a..0d1260580 100644 --- a/gstreamer-rtsp-server/src/auto/rtsp_stream.rs +++ b/gstreamer-rtsp-server/src/auto/rtsp_stream.rs @@ -46,8 +46,8 @@ unsafe impl Send for RTSPStream {} unsafe impl Sync for RTSPStream {} pub trait RTSPStreamExt: 'static { - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] #[doc(alias = "gst_rtsp_stream_add_multicast_client_address")] fn add_multicast_client_address( &self, @@ -101,8 +101,8 @@ pub trait RTSPStreamExt: 'static { #[doc(alias = "get_joined_bin")] fn joined_bin(&self) -> Option; - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] #[doc(alias = "gst_rtsp_stream_get_max_mcast_ttl")] #[doc(alias = "get_max_mcast_ttl")] fn max_mcast_ttl(&self) -> u32; @@ -115,8 +115,8 @@ pub trait RTSPStreamExt: 'static { #[doc(alias = "get_multicast_address")] fn multicast_address(&self, family: gio::SocketFamily) -> Option; - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] #[doc(alias = "gst_rtsp_stream_get_multicast_client_addresses")] #[doc(alias = "get_multicast_client_addresses")] fn multicast_client_addresses(&self) -> glib::GString; @@ -141,14 +141,14 @@ pub trait RTSPStreamExt: 'static { #[doc(alias = "get_publish_clock_mode")] fn publish_clock_mode(&self) -> RTSPPublishClockMode; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "gst_rtsp_stream_get_rate_control")] #[doc(alias = "get_rate_control")] fn is_rate_control(&self) -> bool; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "gst_rtsp_stream_get_rates")] #[doc(alias = "get_rates")] fn rates(&self) -> Option<(f64, f64)>; @@ -209,28 +209,28 @@ pub trait RTSPStreamExt: 'static { #[doc(alias = "get_ulpfec_enabled")] fn is_ulpfec_enabled(&self) -> bool; - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] #[doc(alias = "gst_rtsp_stream_get_ulpfec_percentage")] #[doc(alias = "get_ulpfec_percentage")] fn ulpfec_percentage(&self) -> u32; - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] #[doc(alias = "gst_rtsp_stream_get_ulpfec_pt")] #[doc(alias = "get_ulpfec_pt")] fn ulpfec_pt(&self) -> u32; - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] #[doc(alias = "gst_rtsp_stream_handle_keymgmt")] fn handle_keymgmt(&self, keymgmt: &str) -> bool; #[doc(alias = "gst_rtsp_stream_has_control")] fn has_control(&self, control: Option<&str>) -> bool; - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] #[doc(alias = "gst_rtsp_stream_is_bind_mcast_address")] fn is_bind_mcast_address(&self) -> bool; @@ -279,16 +279,16 @@ pub trait RTSPStreamExt: 'static { trans: &impl IsA, ) -> Result<(), glib::error::BoolError>; - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] #[doc(alias = "gst_rtsp_stream_request_aux_receiver")] fn request_aux_receiver(&self, sessid: u32) -> Option; #[doc(alias = "gst_rtsp_stream_request_aux_sender")] fn request_aux_sender(&self, sessid: u32) -> Option; - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] #[doc(alias = "gst_rtsp_stream_request_ulpfec_decoder")] fn request_ulpfec_decoder( &self, @@ -296,8 +296,8 @@ pub trait RTSPStreamExt: 'static { sessid: u32, ) -> Option; - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] #[doc(alias = "gst_rtsp_stream_request_ulpfec_encoder")] fn request_ulpfec_encoder(&self, sessid: u32) -> Option; @@ -316,8 +316,8 @@ pub trait RTSPStreamExt: 'static { #[doc(alias = "gst_rtsp_stream_set_address_pool")] fn set_address_pool(&self, pool: Option<&impl IsA>); - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] #[doc(alias = "gst_rtsp_stream_set_bind_mcast_address")] fn set_bind_mcast_address(&self, bind_mcast_addr: bool); @@ -336,8 +336,8 @@ pub trait RTSPStreamExt: 'static { #[doc(alias = "gst_rtsp_stream_set_dscp_qos")] fn set_dscp_qos(&self, dscp_qos: i32); - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] #[doc(alias = "gst_rtsp_stream_set_max_mcast_ttl")] fn set_max_mcast_ttl(&self, ttl: u32) -> bool; @@ -359,8 +359,8 @@ pub trait RTSPStreamExt: 'static { #[doc(alias = "gst_rtsp_stream_set_publish_clock_mode")] fn set_publish_clock_mode(&self, mode: RTSPPublishClockMode); - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "gst_rtsp_stream_set_rate_control")] fn set_rate_control(&self, enabled: bool); @@ -373,13 +373,13 @@ pub trait RTSPStreamExt: 'static { #[doc(alias = "gst_rtsp_stream_set_seqnum_offset")] fn set_seqnum_offset(&self, seqnum: u16); - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] #[doc(alias = "gst_rtsp_stream_set_ulpfec_percentage")] fn set_ulpfec_percentage(&self, percentage: u32); - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] #[doc(alias = "gst_rtsp_stream_set_ulpfec_pt")] fn set_ulpfec_pt(&self, pt: u32); @@ -392,8 +392,8 @@ pub trait RTSPStreamExt: 'static { #[doc(alias = "gst_rtsp_stream_unblock_linked")] fn unblock_linked(&self) -> Result<(), glib::error::BoolError>; - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(alias = "gst_rtsp_stream_unblock_rtcp")] fn unblock_rtcp(&self); @@ -404,8 +404,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(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] #[doc(alias = "gst_rtsp_stream_verify_mcast_ttl")] fn verify_mcast_ttl(&self, ttl: u32) -> bool; @@ -445,8 +445,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(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] fn add_multicast_client_address( &self, destination: &str, @@ -536,8 +536,8 @@ impl> RTSPStreamExt for O { } } - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] fn max_mcast_ttl(&self) -> u32 { unsafe { ffi::gst_rtsp_stream_get_max_mcast_ttl(self.as_ref().to_glib_none().0) } } @@ -555,8 +555,8 @@ impl> RTSPStreamExt for O { } } - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] fn multicast_client_addresses(&self) -> glib::GString { unsafe { from_glib_full(ffi::gst_rtsp_stream_get_multicast_client_addresses( @@ -601,8 +601,8 @@ impl> RTSPStreamExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] fn is_rate_control(&self) -> bool { unsafe { from_glib(ffi::gst_rtsp_stream_get_rate_control( @@ -611,8 +611,8 @@ impl> RTSPStreamExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] fn rates(&self) -> Option<(f64, f64)> { unsafe { let mut rate = mem::MaybeUninit::uninit(); @@ -756,20 +756,20 @@ impl> RTSPStreamExt for O { } } - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] fn 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(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] fn 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(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] fn handle_keymgmt(&self, keymgmt: &str) -> bool { unsafe { from_glib(ffi::gst_rtsp_stream_handle_keymgmt( @@ -788,8 +788,8 @@ impl> RTSPStreamExt for O { } } - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] fn is_bind_mcast_address(&self) -> bool { unsafe { from_glib(ffi::gst_rtsp_stream_is_bind_mcast_address( @@ -911,8 +911,8 @@ impl> RTSPStreamExt for O { } } - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] fn request_aux_receiver(&self, sessid: u32) -> Option { unsafe { from_glib_full(ffi::gst_rtsp_stream_request_aux_receiver( @@ -931,8 +931,8 @@ impl> RTSPStreamExt for O { } } - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] fn request_ulpfec_decoder( &self, rtpbin: &impl IsA, @@ -947,8 +947,8 @@ impl> RTSPStreamExt for O { } } - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] fn request_ulpfec_encoder(&self, sessid: u32) -> Option { unsafe { from_glib_full(ffi::gst_rtsp_stream_request_ulpfec_encoder( @@ -993,8 +993,8 @@ impl> RTSPStreamExt for O { } } - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] fn set_bind_mcast_address(&self, bind_mcast_addr: bool) { unsafe { ffi::gst_rtsp_stream_set_bind_mcast_address( @@ -1046,8 +1046,8 @@ impl> RTSPStreamExt for O { } } - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, 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( @@ -1106,8 +1106,8 @@ impl> RTSPStreamExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] fn set_rate_control(&self, enabled: bool) { unsafe { ffi::gst_rtsp_stream_set_rate_control( @@ -1138,16 +1138,16 @@ impl> RTSPStreamExt for O { } } - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, 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(feature = "v1_16")] + #[cfg_attr(docsrs, 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); @@ -1207,8 +1207,8 @@ impl> RTSPStreamExt for O { } } - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] fn unblock_rtcp(&self) { unsafe { ffi::gst_rtsp_stream_unblock_rtcp(self.as_ref().to_glib_none().0); @@ -1232,8 +1232,8 @@ impl> RTSPStreamExt for O { } } - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, 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 abb64da98..f020ddadb 100644 --- a/gstreamer-rtsp-server/src/auto/rtsp_stream_transport.rs +++ b/gstreamer-rtsp-server/src/auto/rtsp_stream_transport.rs @@ -48,8 +48,8 @@ pub trait RTSPStreamTransportExt: 'static { #[doc(alias = "gst_rtsp_stream_transport_keep_alive")] fn keep_alive(&self); - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] #[doc(alias = "gst_rtsp_stream_transport_message_sent")] fn message_sent(&self); @@ -63,16 +63,16 @@ pub trait RTSPStreamTransportExt: 'static { #[doc(alias = "gst_rtsp_stream_transport_send_rtcp")] fn send_rtcp(&self, buffer: &gst::Buffer) -> Result<(), glib::error::BoolError>; - //#[cfg(any(feature = "v1_16", feature = "dox"))] - //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + //#[cfg(feature = "v1_16")] + //#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] //#[doc(alias = "gst_rtsp_stream_transport_send_rtcp_list")] //fn send_rtcp_list(&self, buffer_list: /*Ignored*/&gst::BufferList) -> bool; #[doc(alias = "gst_rtsp_stream_transport_send_rtp")] fn send_rtp(&self, buffer: &gst::Buffer) -> Result<(), glib::error::BoolError>; - //#[cfg(any(feature = "v1_16", feature = "dox"))] - //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + //#[cfg(feature = "v1_16")] + //#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] //#[doc(alias = "gst_rtsp_stream_transport_send_rtp_list")] //fn send_rtp_list(&self, buffer_list: /*Ignored*/&gst::BufferList) -> bool; @@ -85,16 +85,16 @@ pub trait RTSPStreamTransportExt: 'static { #[doc(alias = "gst_rtsp_stream_transport_set_keepalive")] fn set_keepalive(&self, keep_alive: P); - //#[cfg(any(feature = "v1_16", feature = "dox"))] - //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + //#[cfg(feature = "v1_16")] + //#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] //#[doc(alias = "gst_rtsp_stream_transport_set_list_callbacks")] //fn set_list_callbacks(&self, send_rtp_list: /*Unimplemented*/Fn(/*Ignored*/gst::BufferList, u8) -> bool, send_rtcp_list: /*Unimplemented*/Fn(/*Ignored*/gst::BufferList, u8) -> bool, user_data: /*Unimplemented*/Option); #[doc(alias = "gst_rtsp_stream_transport_set_message_sent")] fn set_message_sent(&self, message_sent: P); - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "gst_rtsp_stream_transport_set_message_sent_full")] fn set_message_sent_full(&self, message_sent: P); @@ -152,8 +152,8 @@ impl> RTSPStreamTransportExt for O { } } - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] fn message_sent(&self) { unsafe { ffi::gst_rtsp_stream_transport_message_sent(self.as_ref().to_glib_none().0); @@ -186,8 +186,8 @@ impl> RTSPStreamTransportExt for O { } } - //#[cfg(any(feature = "v1_16", feature = "dox"))] - //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + //#[cfg(feature = "v1_16")] + //#[cfg_attr(docsrs, 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() } //} @@ -204,8 +204,8 @@ impl> RTSPStreamTransportExt for O { } } - //#[cfg(any(feature = "v1_16", feature = "dox"))] - //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + //#[cfg(feature = "v1_16")] + //#[cfg_attr(docsrs, 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() } //} @@ -248,8 +248,8 @@ impl> RTSPStreamTransportExt for O { } } - //#[cfg(any(feature = "v1_16", feature = "dox"))] - //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + //#[cfg(feature = "v1_16")] + //#[cfg_attr(docsrs, 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() } //} @@ -276,8 +276,8 @@ impl> RTSPStreamTransportExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, 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 94b843e6a..f606c95a2 100644 --- a/gstreamer-rtsp-server/src/auto/versions.txt +++ b/gstreamer-rtsp-server/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2) +Generated by gir (https://github.com/gtk-rs/gir @ 719372782330) from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836) diff --git a/gstreamer-rtsp-server/sys/Cargo.toml b/gstreamer-rtsp-server/sys/Cargo.toml index 734e40cb1..cea9005c7 100644 --- a/gstreamer-rtsp-server/sys/Cargo.toml +++ b/gstreamer-rtsp-server/sys/Cargo.toml @@ -63,7 +63,7 @@ edition = "2021" rust-version = "1.66" [package.metadata.docs.rs] -features = ["dox"] +features = [] [package.metadata.system-deps.gstreamer_rtsp_server_1_0] name = "gstreamer-rtsp-server-1.0" diff --git a/gstreamer-rtsp-server/sys/build.rs b/gstreamer-rtsp-server/sys/build.rs index 40e2cc398..29420c9ee 100644 --- a/gstreamer-rtsp-server/sys/build.rs +++ b/gstreamer-rtsp-server/sys/build.rs @@ -3,13 +3,13 @@ // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git) // DO NOT EDIT -#[cfg(not(feature = "dox"))] +#[cfg(not(docsrs))] use std::process; -#[cfg(feature = "dox")] +#[cfg(docsrs)] fn main() {} // prevent linking libraries to avoid documentation failure -#[cfg(not(feature = "dox"))] +#[cfg(not(docsrs))] fn main() { if let Err(s) = system_deps::Config::new().probe() { println!("cargo:warning={s}"); diff --git a/gstreamer-rtsp-server/sys/src/auto/versions.txt b/gstreamer-rtsp-server/sys/src/auto/versions.txt index 94b843e6a..f606c95a2 100644 --- a/gstreamer-rtsp-server/sys/src/auto/versions.txt +++ b/gstreamer-rtsp-server/sys/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2) +Generated by gir (https://github.com/gtk-rs/gir @ 719372782330) from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836) diff --git a/gstreamer-rtsp-server/sys/src/lib.rs b/gstreamer-rtsp-server/sys/src/lib.rs index dba1c4ed4..97661418b 100644 --- a/gstreamer-rtsp-server/sys/src/lib.rs +++ b/gstreamer-rtsp-server/sys/src/lib.rs @@ -10,7 +10,7 @@ clippy::unreadable_literal, clippy::upper_case_acronyms )] -#![cfg_attr(feature = "dox", feature(doc_cfg))] +#![cfg_attr(docsrs, feature(doc_cfg))] #[allow(unused_imports)] use libc::{ @@ -1322,8 +1322,8 @@ extern "C" { //========================================================================= pub fn gst_rtsp_context_pop_current(ctx: *mut GstRTSPContext); pub fn gst_rtsp_context_push_current(ctx: *mut GstRTSPContext); - #[cfg(any(feature = "v1_22", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] + #[cfg(feature = "v1_22")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] pub fn gst_rtsp_context_set_token(ctx: *mut GstRTSPContext, token: *mut GstRTSPToken); pub fn gst_rtsp_context_get_current() -> *mut GstRTSPContext; @@ -1449,8 +1449,8 @@ 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(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] pub fn gst_rtsp_auth_get_realm(auth: *mut GstRTSPAuth) -> *mut c_char; pub fn gst_rtsp_auth_get_supported_methods( auth: *mut GstRTSPAuth, @@ -1460,8 +1460,8 @@ 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(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] pub fn gst_rtsp_auth_parse_htdigest( auth: *mut GstRTSPAuth, path: *const c_char, @@ -1470,8 +1470,8 @@ extern "C" { pub fn gst_rtsp_auth_remove_basic(auth: *mut GstRTSPAuth, basic: *const c_char); 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(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] pub fn gst_rtsp_auth_set_realm(auth: *mut GstRTSPAuth, realm: *const c_char); pub fn gst_rtsp_auth_set_supported_methods( auth: *mut GstRTSPAuth, @@ -1501,13 +1501,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(feature = "v1_18")] + #[cfg_attr(docsrs, 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(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub fn gst_rtsp_client_get_stream_transport( client: *mut GstRTSPClient, channel: u8, @@ -1532,8 +1532,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(feature = "v1_18")] + #[cfg_attr(docsrs, 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, @@ -1545,8 +1545,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(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] pub fn gst_rtsp_client_set_send_messages_func( client: *mut GstRTSPClient, func: GstRTSPClientSendMessagesFunc, @@ -1585,16 +1585,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(feature = "v1_16")] + #[cfg_attr(docsrs, 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(feature = "v1_18")] + #[cfg_attr(docsrs, 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(feature = "v1_16")] + #[cfg_attr(docsrs, 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; @@ -1608,11 +1608,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(feature = "v1_18")] + #[cfg_attr(docsrs, 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(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub fn gst_rtsp_media_get_rates( media: *mut GstRTSPMedia, rate: *mut c_double, @@ -1632,22 +1632,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(feature = "v1_18")] + #[cfg_attr(docsrs, 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(feature = "v1_16")] + #[cfg_attr(docsrs, 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(feature = "v1_18")] + #[cfg_attr(docsrs, 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(feature = "v1_18")] + #[cfg_attr(docsrs, 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) @@ -1656,15 +1656,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(feature = "v1_18")] + #[cfg_attr(docsrs, 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(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub fn gst_rtsp_media_seek_trickmode( media: *mut GstRTSPMedia, range: *mut gst_rtsp::GstRTSPTimeRange, @@ -1674,27 +1674,27 @@ extern "C" { ) -> gboolean; 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(feature = "v1_16")] + #[cfg_attr(docsrs, 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(feature = "v1_16")] + #[cfg_attr(docsrs, 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(feature = "v1_18")] + #[cfg_attr(docsrs, 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(feature = "v1_16")] + #[cfg_attr(docsrs, 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, @@ -1717,8 +1717,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(feature = "v1_18")] + #[cfg_attr(docsrs, 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, @@ -1744,8 +1744,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(feature = "v1_18")] + #[cfg_attr(docsrs, 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; @@ -1781,18 +1781,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(feature = "v1_16")] + #[cfg_attr(docsrs, 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(feature = "v1_18")] + #[cfg_attr(docsrs, 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(feature = "v1_16")] + #[cfg_attr(docsrs, 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( @@ -1819,13 +1819,13 @@ 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(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] pub fn gst_rtsp_media_factory_is_bind_mcast_address( factory: *mut GstRTSPMediaFactory, ) -> gboolean; - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_rtsp_media_factory_is_enable_rtcp(factory: *mut GstRTSPMediaFactory) -> gboolean; pub fn gst_rtsp_media_factory_is_eos_shutdown(factory: *mut GstRTSPMediaFactory) -> gboolean; pub fn gst_rtsp_media_factory_is_shared(factory: *mut GstRTSPMediaFactory) -> gboolean; @@ -1836,8 +1836,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(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] pub fn gst_rtsp_media_factory_set_bind_mcast_address( factory: *mut GstRTSPMediaFactory, bind_mcast_addr: gboolean, @@ -1847,17 +1847,17 @@ 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(feature = "v1_16")] + #[cfg_attr(docsrs, 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(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub fn gst_rtsp_media_factory_set_dscp_qos(factory: *mut GstRTSPMediaFactory, dscp_qos: c_int); - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_rtsp_media_factory_set_enable_rtcp( factory: *mut GstRTSPMediaFactory, enable: gboolean, @@ -1871,8 +1871,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(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] pub fn gst_rtsp_media_factory_set_max_mcast_ttl( factory: *mut GstRTSPMediaFactory, ttl: c_uint, @@ -1958,8 +1958,8 @@ extern "C" { // GstRTSPOnvifClient //========================================================================= 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(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub fn gst_rtsp_onvif_client_new() -> *mut GstRTSPClient; //========================================================================= @@ -1991,8 +1991,8 @@ extern "C" { 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(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub fn gst_rtsp_onvif_media_factory_has_replay_support( factory: *mut GstRTSPOnvifMediaFactory, ) -> gboolean; @@ -2004,8 +2004,8 @@ extern "C" { factory: *mut GstRTSPOnvifMediaFactory, launch: *const c_char, ); - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub fn gst_rtsp_onvif_media_factory_set_replay_support( factory: *mut GstRTSPOnvifMediaFactory, has_replay_support: gboolean, @@ -2050,8 +2050,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(feature = "v1_18")] + #[cfg_attr(docsrs, 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; @@ -2060,8 +2060,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(feature = "v1_18")] + #[cfg_attr(docsrs, 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, @@ -2090,8 +2090,8 @@ extern "C" { pub fn gst_rtsp_session_get_type() -> GType; pub fn gst_rtsp_session_new(sessionid: *const c_char) -> *mut GstRTSPSession; pub fn gst_rtsp_session_allow_expire(session: *mut GstRTSPSession); - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_rtsp_session_dup_media( sess: *mut GstRTSPSession, path: *const c_char, @@ -2213,8 +2213,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(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] pub fn gst_rtsp_stream_add_multicast_client_address( stream: *mut GstRTSPStream, destination: *const c_char, @@ -2244,16 +2244,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(feature = "v1_16")] + #[cfg_attr(docsrs, 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(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] pub fn gst_rtsp_stream_get_multicast_client_addresses( stream: *mut GstRTSPStream, ) -> *mut c_char; @@ -2265,11 +2265,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(feature = "v1_18")] + #[cfg_attr(docsrs, 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(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub fn gst_rtsp_stream_get_rates( stream: *mut GstRTSPStream, rate: *mut c_double, @@ -2312,14 +2312,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(feature = "v1_16")] + #[cfg_attr(docsrs, 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(feature = "v1_16")] + #[cfg_attr(docsrs, 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(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] pub fn gst_rtsp_stream_handle_keymgmt( stream: *mut GstRTSPStream, keymgmt: *const c_char, @@ -2328,8 +2328,8 @@ 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(feature = "v1_16")] + #[cfg_attr(docsrs, 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; @@ -2368,8 +2368,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(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] pub fn gst_rtsp_stream_request_aux_receiver( stream: *mut GstRTSPStream, sessid: c_uint, @@ -2378,15 +2378,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(feature = "v1_16")] + #[cfg_attr(docsrs, 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(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] pub fn gst_rtsp_stream_request_ulpfec_encoder( stream: *mut GstRTSPStream, sessid: c_uint, @@ -2403,8 +2403,8 @@ extern "C" { stream: *mut GstRTSPStream, pool: *mut GstRTSPAddressPool, ); - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] pub fn gst_rtsp_stream_set_bind_mcast_address( stream: *mut GstRTSPStream, bind_mcast_addr: gboolean, @@ -2414,8 +2414,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(feature = "v1_16")] + #[cfg_attr(docsrs, 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( @@ -2439,8 +2439,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(feature = "v1_18")] + #[cfg_attr(docsrs, 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( @@ -2448,11 +2448,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(feature = "v1_16")] + #[cfg_attr(docsrs, 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(feature = "v1_16")] + #[cfg_attr(docsrs, 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, @@ -2460,16 +2460,16 @@ extern "C" { user_data: gpointer, ) -> *mut glib::GList; pub fn gst_rtsp_stream_unblock_linked(stream: *mut GstRTSPStream) -> gboolean; - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_rtsp_stream_unblock_rtcp(stream: *mut GstRTSPStream); pub fn gst_rtsp_stream_update_crypto( stream: *mut GstRTSPStream, 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(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] pub fn gst_rtsp_stream_verify_mcast_ttl(stream: *mut GstRTSPStream, ttl: c_uint) -> gboolean; //========================================================================= @@ -2495,8 +2495,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(feature = "v1_16")] + #[cfg_attr(docsrs, 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, @@ -2507,8 +2507,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(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] pub fn gst_rtsp_stream_transport_send_rtcp_list( trans: *mut GstRTSPStreamTransport, buffer_list: *mut gst::GstBufferList, @@ -2517,8 +2517,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(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] pub fn gst_rtsp_stream_transport_send_rtp_list( trans: *mut GstRTSPStreamTransport, buffer_list: *mut gst::GstBufferList, @@ -2540,8 +2540,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(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] pub fn gst_rtsp_stream_transport_set_list_callbacks( trans: *mut GstRTSPStreamTransport, send_rtp_list: GstRTSPSendListFunc, @@ -2555,8 +2555,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(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub fn gst_rtsp_stream_transport_set_message_sent_full( trans: *mut GstRTSPStreamTransport, message_sent: GstRTSPMessageSentFuncFull, diff --git a/gstreamer-rtsp/src/auto/rtsp_url.rs b/gstreamer-rtsp/src/auto/rtsp_url.rs index ed2c0ac9e..466bc0e75 100644 --- a/gstreamer-rtsp/src/auto/rtsp_url.rs +++ b/gstreamer-rtsp/src/auto/rtsp_url.rs @@ -34,8 +34,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(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "gst_rtsp_url_get_request_uri_with_control")] #[doc(alias = "get_request_uri_with_control")] pub fn request_uri_with_control(&self, control_path: &str) -> glib::GString { diff --git a/gstreamer-rtsp/src/auto/versions.txt b/gstreamer-rtsp/src/auto/versions.txt index 94b843e6a..f606c95a2 100644 --- a/gstreamer-rtsp/src/auto/versions.txt +++ b/gstreamer-rtsp/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2) +Generated by gir (https://github.com/gtk-rs/gir @ 719372782330) from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836) diff --git a/gstreamer-rtsp/sys/Cargo.toml b/gstreamer-rtsp/sys/Cargo.toml index 1d3c621d8..71561b675 100644 --- a/gstreamer-rtsp/sys/Cargo.toml +++ b/gstreamer-rtsp/sys/Cargo.toml @@ -55,7 +55,7 @@ edition = "2021" rust-version = "1.66" [package.metadata.docs.rs] -features = ["dox"] +features = [] [package.metadata.system-deps.gstreamer_rtsp_1_0] name = "gstreamer-rtsp-1.0" diff --git a/gstreamer-rtsp/sys/build.rs b/gstreamer-rtsp/sys/build.rs index 40e2cc398..29420c9ee 100644 --- a/gstreamer-rtsp/sys/build.rs +++ b/gstreamer-rtsp/sys/build.rs @@ -3,13 +3,13 @@ // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git) // DO NOT EDIT -#[cfg(not(feature = "dox"))] +#[cfg(not(docsrs))] use std::process; -#[cfg(feature = "dox")] +#[cfg(docsrs)] fn main() {} // prevent linking libraries to avoid documentation failure -#[cfg(not(feature = "dox"))] +#[cfg(not(docsrs))] fn main() { if let Err(s) = system_deps::Config::new().probe() { println!("cargo:warning={s}"); diff --git a/gstreamer-rtsp/sys/src/auto/versions.txt b/gstreamer-rtsp/sys/src/auto/versions.txt index 94b843e6a..f606c95a2 100644 --- a/gstreamer-rtsp/sys/src/auto/versions.txt +++ b/gstreamer-rtsp/sys/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2) +Generated by gir (https://github.com/gtk-rs/gir @ 719372782330) from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836) diff --git a/gstreamer-rtsp/sys/src/lib.rs b/gstreamer-rtsp/sys/src/lib.rs index 89c900134..079d9c3af 100644 --- a/gstreamer-rtsp/sys/src/lib.rs +++ b/gstreamer-rtsp/sys/src/lib.rs @@ -10,7 +10,7 @@ clippy::unreadable_literal, clippy::upper_case_acronyms )] -#![cfg_attr(feature = "dox", feature(doc_cfg))] +#![cfg_attr(docsrs, feature(doc_cfg))] #[allow(unused_imports)] use libc::{ @@ -799,8 +799,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(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub fn gst_rtsp_connection_connect_usec( conn: *mut GstRTSPConnection, timeout: i64, @@ -810,8 +810,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(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub fn gst_rtsp_connection_connect_with_response_usec( conn: *mut GstRTSPConnection, timeout: i64, @@ -826,8 +826,8 @@ extern "C" { flush: gboolean, ) -> GstRTSPResult; pub fn gst_rtsp_connection_free(conn: *mut GstRTSPConnection) -> GstRTSPResult; - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_rtsp_connection_get_ignore_x_server_reply( conn: *const GstRTSPConnection, ) -> gboolean; @@ -858,8 +858,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(feature = "v1_18")] + #[cfg_attr(docsrs, 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, @@ -867,8 +867,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(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub fn gst_rtsp_connection_poll_usec( conn: *mut GstRTSPConnection, events: GstRTSPEvent, @@ -881,8 +881,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(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub fn gst_rtsp_connection_read_usec( conn: *mut GstRTSPConnection, data: *mut u8, @@ -894,8 +894,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(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub fn gst_rtsp_connection_receive_usec( conn: *mut GstRTSPConnection, message: *mut GstRTSPMessage, @@ -907,24 +907,24 @@ 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(feature = "v1_16")] + #[cfg_attr(docsrs, 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(feature = "v1_18")] + #[cfg_attr(docsrs, 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(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub fn gst_rtsp_connection_send_usec( conn: *mut GstRTSPConnection, message: *mut GstRTSPMessage, @@ -947,15 +947,15 @@ 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(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub fn gst_rtsp_connection_set_content_length_limit( conn: *mut GstRTSPConnection, limit: c_uint, ); pub fn gst_rtsp_connection_set_http_mode(conn: *mut GstRTSPConnection, enable: gboolean); - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_rtsp_connection_set_ignore_x_server_reply( conn: *mut GstRTSPConnection, ignore: gboolean, @@ -993,8 +993,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(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub fn gst_rtsp_connection_write_usec( conn: *mut GstRTSPConnection, data: *const u8, @@ -1047,8 +1047,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(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] pub fn gst_rtsp_message_get_body_buffer( msg: *const GstRTSPMessage, buffer: *mut *mut gst::GstBuffer, @@ -1066,8 +1066,8 @@ extern "C" { index: c_int, ) -> GstRTSPResult; 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(feature = "v1_16")] + #[cfg_attr(docsrs, 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; @@ -1115,8 +1115,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(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] pub fn gst_rtsp_message_set_body_buffer( msg: *mut GstRTSPMessage, buffer: *mut gst::GstBuffer, @@ -1126,8 +1126,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(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] pub fn gst_rtsp_message_steal_body_buffer( msg: *mut GstRTSPMessage, buffer: *mut *mut gst::GstBuffer, @@ -1137,8 +1137,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(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] pub fn gst_rtsp_message_take_body_buffer( msg: *mut GstRTSPMessage, buffer: *mut gst::GstBuffer, @@ -1208,8 +1208,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(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub fn gst_rtsp_url_get_request_uri_with_control( url: *const GstRTSPUrl, control_path: *const c_char, @@ -1235,8 +1235,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(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] pub fn gst_rtsp_watch_send_messages( watch: *mut GstRTSPWatch, messages: *mut GstRTSPMessage, @@ -1254,8 +1254,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(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub fn gst_rtsp_watch_wait_backlog_usec( watch: *mut GstRTSPWatch, timeout: i64, @@ -1337,8 +1337,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(feature = "v1_16")] + #[cfg_attr(docsrs, 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-sdp/src/auto/versions.txt b/gstreamer-sdp/src/auto/versions.txt index 94b843e6a..f606c95a2 100644 --- a/gstreamer-sdp/src/auto/versions.txt +++ b/gstreamer-sdp/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2) +Generated by gir (https://github.com/gtk-rs/gir @ 719372782330) from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836) diff --git a/gstreamer-sdp/sys/Cargo.toml b/gstreamer-sdp/sys/Cargo.toml index e0979889b..2bf928d97 100644 --- a/gstreamer-sdp/sys/Cargo.toml +++ b/gstreamer-sdp/sys/Cargo.toml @@ -43,7 +43,7 @@ edition = "2021" rust-version = "1.66" [package.metadata.docs.rs] -features = ["dox"] +features = [] [package.metadata.system-deps.gstreamer_sdp_1_0] name = "gstreamer-sdp-1.0" diff --git a/gstreamer-sdp/sys/build.rs b/gstreamer-sdp/sys/build.rs index 40e2cc398..29420c9ee 100644 --- a/gstreamer-sdp/sys/build.rs +++ b/gstreamer-sdp/sys/build.rs @@ -3,13 +3,13 @@ // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git) // DO NOT EDIT -#[cfg(not(feature = "dox"))] +#[cfg(not(docsrs))] use std::process; -#[cfg(feature = "dox")] +#[cfg(docsrs)] fn main() {} // prevent linking libraries to avoid documentation failure -#[cfg(not(feature = "dox"))] +#[cfg(not(docsrs))] fn main() { if let Err(s) = system_deps::Config::new().probe() { println!("cargo:warning={s}"); diff --git a/gstreamer-sdp/sys/src/auto/versions.txt b/gstreamer-sdp/sys/src/auto/versions.txt index 94b843e6a..f606c95a2 100644 --- a/gstreamer-sdp/sys/src/auto/versions.txt +++ b/gstreamer-sdp/sys/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2) +Generated by gir (https://github.com/gtk-rs/gir @ 719372782330) from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836) diff --git a/gstreamer-sdp/sys/src/lib.rs b/gstreamer-sdp/sys/src/lib.rs index 787ac1433..b79cb27f6 100644 --- a/gstreamer-sdp/sys/src/lib.rs +++ b/gstreamer-sdp/sys/src/lib.rs @@ -10,7 +10,7 @@ clippy::unreadable_literal, clippy::upper_case_acronyms )] -#![cfg_attr(feature = "dox", feature(doc_cfg))] +#![cfg_attr(docsrs, feature(doc_cfg))] #[allow(unused_imports)] use libc::{ @@ -1092,8 +1092,8 @@ extern "C" { pub fn gst_sdp_message_as_uri(scheme: *const c_char, msg: *const GstSDPMessage) -> *mut c_char; pub fn gst_sdp_message_init(msg: *mut GstSDPMessage) -> GstSDPResult; 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(feature = "v1_16")] + #[cfg_attr(docsrs, 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-tag/sys/Cargo.toml b/gstreamer-tag/sys/Cargo.toml index 33ebd73e7..23e1256a6 100644 --- a/gstreamer-tag/sys/Cargo.toml +++ b/gstreamer-tag/sys/Cargo.toml @@ -47,7 +47,7 @@ edition = "2021" rust-version = "1.66" [package.metadata.docs.rs] -features = ["dox"] +features = [] [package.metadata.system-deps.gstreamer_tag_1_0] name = "gstreamer-tag-1.0" diff --git a/gstreamer-tag/sys/build.rs b/gstreamer-tag/sys/build.rs index 40e2cc398..29420c9ee 100644 --- a/gstreamer-tag/sys/build.rs +++ b/gstreamer-tag/sys/build.rs @@ -3,13 +3,13 @@ // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git) // DO NOT EDIT -#[cfg(not(feature = "dox"))] +#[cfg(not(docsrs))] use std::process; -#[cfg(feature = "dox")] +#[cfg(docsrs)] fn main() {} // prevent linking libraries to avoid documentation failure -#[cfg(not(feature = "dox"))] +#[cfg(not(docsrs))] fn main() { if let Err(s) = system_deps::Config::new().probe() { println!("cargo:warning={s}"); diff --git a/gstreamer-tag/sys/src/auto/versions.txt b/gstreamer-tag/sys/src/auto/versions.txt index 94b843e6a..f606c95a2 100644 --- a/gstreamer-tag/sys/src/auto/versions.txt +++ b/gstreamer-tag/sys/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2) +Generated by gir (https://github.com/gtk-rs/gir @ 719372782330) from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836) diff --git a/gstreamer-tag/sys/src/lib.rs b/gstreamer-tag/sys/src/lib.rs index 7d9de4498..fe6c636a0 100644 --- a/gstreamer-tag/sys/src/lib.rs +++ b/gstreamer-tag/sys/src/lib.rs @@ -10,7 +10,7 @@ clippy::unreadable_literal, clippy::upper_case_acronyms )] -#![cfg_attr(feature = "dox", feature(doc_cfg))] +#![cfg_attr(docsrs, feature(doc_cfg))] #[allow(unused_imports)] use libc::{ diff --git a/gstreamer-validate/src/auto/versions.txt b/gstreamer-validate/src/auto/versions.txt index 94b843e6a..f606c95a2 100644 --- a/gstreamer-validate/src/auto/versions.txt +++ b/gstreamer-validate/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2) +Generated by gir (https://github.com/gtk-rs/gir @ 719372782330) from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836) diff --git a/gstreamer-validate/sys/Cargo.toml b/gstreamer-validate/sys/Cargo.toml index f9e0b4a09..bd1e3424b 100644 --- a/gstreamer-validate/sys/Cargo.toml +++ b/gstreamer-validate/sys/Cargo.toml @@ -14,7 +14,7 @@ edition = "2021" rust-version = "1.57" [package.metadata.docs.rs] -features = ["dox"] +features = [] [package.metadata.system-deps.gstreamer_validate_1_0] name = "gstreamer-validate-1.0" diff --git a/gstreamer-validate/sys/build.rs b/gstreamer-validate/sys/build.rs index 40e2cc398..29420c9ee 100644 --- a/gstreamer-validate/sys/build.rs +++ b/gstreamer-validate/sys/build.rs @@ -3,13 +3,13 @@ // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git) // DO NOT EDIT -#[cfg(not(feature = "dox"))] +#[cfg(not(docsrs))] use std::process; -#[cfg(feature = "dox")] +#[cfg(docsrs)] fn main() {} // prevent linking libraries to avoid documentation failure -#[cfg(not(feature = "dox"))] +#[cfg(not(docsrs))] fn main() { if let Err(s) = system_deps::Config::new().probe() { println!("cargo:warning={s}"); diff --git a/gstreamer-validate/sys/src/auto/versions.txt b/gstreamer-validate/sys/src/auto/versions.txt index 94b843e6a..f606c95a2 100644 --- a/gstreamer-validate/sys/src/auto/versions.txt +++ b/gstreamer-validate/sys/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2) +Generated by gir (https://github.com/gtk-rs/gir @ 719372782330) from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836) diff --git a/gstreamer-validate/sys/src/lib.rs b/gstreamer-validate/sys/src/lib.rs index fb579a922..395f0a121 100644 --- a/gstreamer-validate/sys/src/lib.rs +++ b/gstreamer-validate/sys/src/lib.rs @@ -10,7 +10,7 @@ clippy::unreadable_literal, clippy::upper_case_acronyms )] -#![cfg_attr(feature = "dox", feature(doc_cfg))] +#![cfg_attr(docsrs, feature(doc_cfg))] #[allow(unused_imports)] use libc::{ diff --git a/gstreamer-video/src/auto/enums.rs b/gstreamer-video/src/auto/enums.rs index c378657b1..3e88c67e0 100644 --- a/gstreamer-video/src/auto/enums.rs +++ b/gstreamer-video/src/auto/enums.rs @@ -265,28 +265,28 @@ pub enum NavigationEventType { MouseMove, #[doc(alias = "GST_NAVIGATION_EVENT_COMMAND")] Command, - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "GST_NAVIGATION_EVENT_MOUSE_SCROLL")] MouseScroll, - #[cfg(any(feature = "v1_22", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] + #[cfg(feature = "v1_22")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] #[doc(alias = "GST_NAVIGATION_EVENT_TOUCH_DOWN")] TouchDown, - #[cfg(any(feature = "v1_22", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] + #[cfg(feature = "v1_22")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] #[doc(alias = "GST_NAVIGATION_EVENT_TOUCH_MOTION")] TouchMotion, - #[cfg(any(feature = "v1_22", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] + #[cfg(feature = "v1_22")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] #[doc(alias = "GST_NAVIGATION_EVENT_TOUCH_UP")] TouchUp, - #[cfg(any(feature = "v1_22", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] + #[cfg(feature = "v1_22")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] #[doc(alias = "GST_NAVIGATION_EVENT_TOUCH_FRAME")] TouchFrame, - #[cfg(any(feature = "v1_22", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] + #[cfg(feature = "v1_22")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] #[doc(alias = "GST_NAVIGATION_EVENT_TOUCH_CANCEL")] TouchCancel, #[doc(hidden)] @@ -306,17 +306,17 @@ impl IntoGlib for NavigationEventType { Self::MouseButtonRelease => ffi::GST_NAVIGATION_EVENT_MOUSE_BUTTON_RELEASE, Self::MouseMove => ffi::GST_NAVIGATION_EVENT_MOUSE_MOVE, Self::Command => ffi::GST_NAVIGATION_EVENT_COMMAND, - #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg(feature = "v1_18")] Self::MouseScroll => ffi::GST_NAVIGATION_EVENT_MOUSE_SCROLL, - #[cfg(any(feature = "v1_22", feature = "dox"))] + #[cfg(feature = "v1_22")] Self::TouchDown => ffi::GST_NAVIGATION_EVENT_TOUCH_DOWN, - #[cfg(any(feature = "v1_22", feature = "dox"))] + #[cfg(feature = "v1_22")] Self::TouchMotion => ffi::GST_NAVIGATION_EVENT_TOUCH_MOTION, - #[cfg(any(feature = "v1_22", feature = "dox"))] + #[cfg(feature = "v1_22")] Self::TouchUp => ffi::GST_NAVIGATION_EVENT_TOUCH_UP, - #[cfg(any(feature = "v1_22", feature = "dox"))] + #[cfg(feature = "v1_22")] Self::TouchFrame => ffi::GST_NAVIGATION_EVENT_TOUCH_FRAME, - #[cfg(any(feature = "v1_22", feature = "dox"))] + #[cfg(feature = "v1_22")] Self::TouchCancel => ffi::GST_NAVIGATION_EVENT_TOUCH_CANCEL, Self::__Unknown(value) => value, } @@ -336,17 +336,17 @@ impl FromGlib for NavigationEventType { ffi::GST_NAVIGATION_EVENT_MOUSE_BUTTON_RELEASE => Self::MouseButtonRelease, ffi::GST_NAVIGATION_EVENT_MOUSE_MOVE => Self::MouseMove, ffi::GST_NAVIGATION_EVENT_COMMAND => Self::Command, - #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg(feature = "v1_18")] ffi::GST_NAVIGATION_EVENT_MOUSE_SCROLL => Self::MouseScroll, - #[cfg(any(feature = "v1_22", feature = "dox"))] + #[cfg(feature = "v1_22")] ffi::GST_NAVIGATION_EVENT_TOUCH_DOWN => Self::TouchDown, - #[cfg(any(feature = "v1_22", feature = "dox"))] + #[cfg(feature = "v1_22")] ffi::GST_NAVIGATION_EVENT_TOUCH_MOTION => Self::TouchMotion, - #[cfg(any(feature = "v1_22", feature = "dox"))] + #[cfg(feature = "v1_22")] ffi::GST_NAVIGATION_EVENT_TOUCH_UP => Self::TouchUp, - #[cfg(any(feature = "v1_22", feature = "dox"))] + #[cfg(feature = "v1_22")] ffi::GST_NAVIGATION_EVENT_TOUCH_FRAME => Self::TouchFrame, - #[cfg(any(feature = "v1_22", feature = "dox"))] + #[cfg(feature = "v1_22")] ffi::GST_NAVIGATION_EVENT_TOUCH_CANCEL => Self::TouchCancel, value => Self::__Unknown(value), } @@ -614,8 +614,8 @@ impl From for glib::Value { } } -#[cfg(any(feature = "v1_18", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] +#[cfg(feature = "v1_18")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] #[doc(alias = "GstVideoAFDSpec")] @@ -630,8 +630,8 @@ pub enum VideoAFDSpec { __Unknown(i32), } -#[cfg(any(feature = "v1_18", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] +#[cfg(feature = "v1_18")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(hidden)] impl IntoGlib for VideoAFDSpec { type GlibType = ffi::GstVideoAFDSpec; @@ -647,8 +647,8 @@ impl IntoGlib for VideoAFDSpec { } } -#[cfg(any(feature = "v1_18", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] +#[cfg(feature = "v1_18")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(hidden)] impl FromGlib for VideoAFDSpec { #[inline] @@ -664,8 +664,8 @@ impl FromGlib for VideoAFDSpec { } } -#[cfg(any(feature = "v1_18", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] +#[cfg(feature = "v1_18")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] impl StaticType for VideoAFDSpec { #[inline] fn static_type() -> Type { @@ -673,8 +673,8 @@ impl StaticType for VideoAFDSpec { } } -#[cfg(any(feature = "v1_18", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] +#[cfg(feature = "v1_18")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] impl glib::HasParamSpec for VideoAFDSpec { type ParamSpec = glib::ParamSpecEnum; type SetValue = Self; @@ -685,14 +685,14 @@ impl glib::HasParamSpec for VideoAFDSpec { } } -#[cfg(any(feature = "v1_18", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] +#[cfg(feature = "v1_18")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] impl glib::value::ValueType for VideoAFDSpec { type Type = Self; } -#[cfg(any(feature = "v1_18", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] +#[cfg(feature = "v1_18")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] unsafe impl<'a> FromValue<'a> for VideoAFDSpec { type Checker = glib::value::GenericValueTypeChecker; @@ -703,8 +703,8 @@ unsafe impl<'a> FromValue<'a> for VideoAFDSpec { } } -#[cfg(any(feature = "v1_18", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] +#[cfg(feature = "v1_18")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] impl ToValue for VideoAFDSpec { #[inline] fn to_value(&self) -> glib::Value { @@ -721,8 +721,8 @@ impl ToValue for VideoAFDSpec { } } -#[cfg(any(feature = "v1_18", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] +#[cfg(feature = "v1_18")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] impl From for glib::Value { #[inline] fn from(v: VideoAFDSpec) -> Self { @@ -731,8 +731,8 @@ impl From for glib::Value { } } -#[cfg(any(feature = "v1_18", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] +#[cfg(feature = "v1_18")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] #[doc(alias = "GstVideoAFDValue")] @@ -763,8 +763,8 @@ pub enum VideoAFDValue { __Unknown(i32), } -#[cfg(any(feature = "v1_18", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] +#[cfg(feature = "v1_18")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(hidden)] impl IntoGlib for VideoAFDValue { type GlibType = ffi::GstVideoAFDValue; @@ -788,8 +788,8 @@ impl IntoGlib for VideoAFDValue { } } -#[cfg(any(feature = "v1_18", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] +#[cfg(feature = "v1_18")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(hidden)] impl FromGlib for VideoAFDValue { #[inline] @@ -813,8 +813,8 @@ impl FromGlib for VideoAFDValue { } } -#[cfg(any(feature = "v1_18", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] +#[cfg(feature = "v1_18")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] impl StaticType for VideoAFDValue { #[inline] fn static_type() -> Type { @@ -822,8 +822,8 @@ impl StaticType for VideoAFDValue { } } -#[cfg(any(feature = "v1_18", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] +#[cfg(feature = "v1_18")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] impl glib::HasParamSpec for VideoAFDValue { type ParamSpec = glib::ParamSpecEnum; type SetValue = Self; @@ -834,14 +834,14 @@ impl glib::HasParamSpec for VideoAFDValue { } } -#[cfg(any(feature = "v1_18", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] +#[cfg(feature = "v1_18")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] impl glib::value::ValueType for VideoAFDValue { type Type = Self; } -#[cfg(any(feature = "v1_18", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] +#[cfg(feature = "v1_18")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] unsafe impl<'a> FromValue<'a> for VideoAFDValue { type Checker = glib::value::GenericValueTypeChecker; @@ -852,8 +852,8 @@ unsafe impl<'a> FromValue<'a> for VideoAFDValue { } } -#[cfg(any(feature = "v1_18", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] +#[cfg(feature = "v1_18")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] impl ToValue for VideoAFDValue { #[inline] fn to_value(&self) -> glib::Value { @@ -870,8 +870,8 @@ impl ToValue for VideoAFDValue { } } -#[cfg(any(feature = "v1_18", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] +#[cfg(feature = "v1_18")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] impl From for glib::Value { #[inline] fn from(v: VideoAFDValue) -> Self { @@ -979,8 +979,8 @@ impl From for glib::Value { } } -#[cfg(any(feature = "v1_16", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] +#[cfg(feature = "v1_16")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] #[doc(alias = "GstVideoCaptionType")] @@ -999,8 +999,8 @@ pub enum VideoCaptionType { __Unknown(i32), } -#[cfg(any(feature = "v1_16", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] +#[cfg(feature = "v1_16")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] impl VideoCaptionType { #[doc(alias = "gst_video_caption_type_to_caps")] pub fn to_caps(self) -> gst::Caps { @@ -1009,8 +1009,8 @@ impl VideoCaptionType { } } -#[cfg(any(feature = "v1_16", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] +#[cfg(feature = "v1_16")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] #[doc(hidden)] impl IntoGlib for VideoCaptionType { type GlibType = ffi::GstVideoCaptionType; @@ -1028,8 +1028,8 @@ impl IntoGlib for VideoCaptionType { } } -#[cfg(any(feature = "v1_16", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] +#[cfg(feature = "v1_16")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] #[doc(hidden)] impl FromGlib for VideoCaptionType { #[inline] @@ -1047,8 +1047,8 @@ impl FromGlib for VideoCaptionType { } } -#[cfg(any(feature = "v1_16", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] +#[cfg(feature = "v1_16")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] impl StaticType for VideoCaptionType { #[inline] fn static_type() -> Type { @@ -1056,8 +1056,8 @@ impl StaticType for VideoCaptionType { } } -#[cfg(any(feature = "v1_16", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] +#[cfg(feature = "v1_16")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] impl glib::HasParamSpec for VideoCaptionType { type ParamSpec = glib::ParamSpecEnum; type SetValue = Self; @@ -1068,14 +1068,14 @@ impl glib::HasParamSpec for VideoCaptionType { } } -#[cfg(any(feature = "v1_16", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] +#[cfg(feature = "v1_16")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] impl glib::value::ValueType for VideoCaptionType { type Type = Self; } -#[cfg(any(feature = "v1_16", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] +#[cfg(feature = "v1_16")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] unsafe impl<'a> FromValue<'a> for VideoCaptionType { type Checker = glib::value::GenericValueTypeChecker; @@ -1086,8 +1086,8 @@ unsafe impl<'a> FromValue<'a> for VideoCaptionType { } } -#[cfg(any(feature = "v1_16", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] +#[cfg(feature = "v1_16")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] impl ToValue for VideoCaptionType { #[inline] fn to_value(&self) -> glib::Value { @@ -1104,8 +1104,8 @@ impl ToValue for VideoCaptionType { } } -#[cfg(any(feature = "v1_16", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] +#[cfg(feature = "v1_16")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] impl From for glib::Value { #[inline] fn from(v: VideoCaptionType) -> Self { @@ -1240,16 +1240,16 @@ pub enum VideoColorMatrix { } impl VideoColorMatrix { - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "gst_video_color_matrix_from_iso")] pub fn from_iso(value: u32) -> VideoColorMatrix { assert_initialized_main_thread!(); unsafe { from_glib(ffi::gst_video_color_matrix_from_iso(value)) } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "gst_video_color_matrix_to_iso")] pub fn to_iso(self) -> u32 { assert_initialized_main_thread!(); @@ -1372,20 +1372,20 @@ pub enum VideoColorPrimaries { Bt2020, #[doc(alias = "GST_VIDEO_COLOR_PRIMARIES_ADOBERGB")] Adobergb, - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] #[doc(alias = "GST_VIDEO_COLOR_PRIMARIES_SMPTEST428")] Smptest428, - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] #[doc(alias = "GST_VIDEO_COLOR_PRIMARIES_SMPTERP431")] Smpterp431, - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] #[doc(alias = "GST_VIDEO_COLOR_PRIMARIES_SMPTEEG432")] Smpteeg432, - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] #[doc(alias = "GST_VIDEO_COLOR_PRIMARIES_EBU3213")] Ebu3213, #[doc(hidden)] @@ -1393,8 +1393,8 @@ pub enum VideoColorPrimaries { } impl VideoColorPrimaries { - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "gst_video_color_primaries_from_iso")] pub fn from_iso(value: u32) -> VideoColorPrimaries { assert_initialized_main_thread!(); @@ -1407,8 +1407,8 @@ impl VideoColorPrimaries { // unsafe { TODO: call ffi:gst_video_color_primaries_get_info() } //} - #[cfg(any(feature = "v1_22", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] + #[cfg(feature = "v1_22")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] #[doc(alias = "gst_video_color_primaries_is_equivalent")] pub fn is_equivalent(self, other: VideoColorPrimaries) -> bool { assert_initialized_main_thread!(); @@ -1420,8 +1420,8 @@ impl VideoColorPrimaries { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "gst_video_color_primaries_to_iso")] pub fn to_iso(self) -> u32 { assert_initialized_main_thread!(); @@ -1444,13 +1444,13 @@ impl IntoGlib for VideoColorPrimaries { Self::Film => ffi::GST_VIDEO_COLOR_PRIMARIES_FILM, Self::Bt2020 => ffi::GST_VIDEO_COLOR_PRIMARIES_BT2020, Self::Adobergb => ffi::GST_VIDEO_COLOR_PRIMARIES_ADOBERGB, - #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg(feature = "v1_16")] Self::Smptest428 => ffi::GST_VIDEO_COLOR_PRIMARIES_SMPTEST428, - #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg(feature = "v1_16")] Self::Smpterp431 => ffi::GST_VIDEO_COLOR_PRIMARIES_SMPTERP431, - #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg(feature = "v1_16")] Self::Smpteeg432 => ffi::GST_VIDEO_COLOR_PRIMARIES_SMPTEEG432, - #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg(feature = "v1_16")] Self::Ebu3213 => ffi::GST_VIDEO_COLOR_PRIMARIES_EBU3213, Self::__Unknown(value) => value, } @@ -1472,13 +1472,13 @@ impl FromGlib for VideoColorPrimaries { ffi::GST_VIDEO_COLOR_PRIMARIES_FILM => Self::Film, ffi::GST_VIDEO_COLOR_PRIMARIES_BT2020 => Self::Bt2020, ffi::GST_VIDEO_COLOR_PRIMARIES_ADOBERGB => Self::Adobergb, - #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg(feature = "v1_16")] ffi::GST_VIDEO_COLOR_PRIMARIES_SMPTEST428 => Self::Smptest428, - #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg(feature = "v1_16")] ffi::GST_VIDEO_COLOR_PRIMARIES_SMPTERP431 => Self::Smpterp431, - #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg(feature = "v1_16")] ffi::GST_VIDEO_COLOR_PRIMARIES_SMPTEEG432 => Self::Smpteeg432, - #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg(feature = "v1_16")] ffi::GST_VIDEO_COLOR_PRIMARIES_EBU3213 => Self::Ebu3213, value => Self::__Unknown(value), } @@ -1931,132 +1931,132 @@ pub enum VideoFormat { Nv1210le32, #[doc(alias = "GST_VIDEO_FORMAT_NV16_10LE32")] Nv1610le32, - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] #[doc(alias = "GST_VIDEO_FORMAT_NV12_10LE40")] Nv1210le40, - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] #[doc(alias = "GST_VIDEO_FORMAT_Y210")] Y210, - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] #[doc(alias = "GST_VIDEO_FORMAT_Y410")] Y410, - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] #[doc(alias = "GST_VIDEO_FORMAT_VUYA")] Vuya, - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] #[doc(alias = "GST_VIDEO_FORMAT_BGR10A2_LE")] Bgr10a2Le, - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "GST_VIDEO_FORMAT_RGB10A2_LE")] Rgb10a2Le, - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "GST_VIDEO_FORMAT_Y444_16BE")] Y44416be, - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "GST_VIDEO_FORMAT_Y444_16LE")] Y44416le, - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "GST_VIDEO_FORMAT_P016_BE")] P016Be, - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "GST_VIDEO_FORMAT_P016_LE")] P016Le, - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "GST_VIDEO_FORMAT_P012_BE")] P012Be, - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "GST_VIDEO_FORMAT_P012_LE")] P012Le, - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "GST_VIDEO_FORMAT_Y212_BE")] Y212Be, - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "GST_VIDEO_FORMAT_Y212_LE")] Y212Le, - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "GST_VIDEO_FORMAT_Y412_BE")] Y412Be, - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "GST_VIDEO_FORMAT_Y412_LE")] Y412Le, - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "GST_VIDEO_FORMAT_NV12_4L4")] Nv124l4, - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "GST_VIDEO_FORMAT_NV12_32L32")] Nv1232l32, - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(alias = "GST_VIDEO_FORMAT_RGBP")] Rgbp, - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(alias = "GST_VIDEO_FORMAT_BGRP")] Bgrp, - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(alias = "GST_VIDEO_FORMAT_AV12")] Av12, - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(alias = "GST_VIDEO_FORMAT_ARGB64_LE")] Argb64Le, - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(alias = "GST_VIDEO_FORMAT_ARGB64_BE")] Argb64Be, - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(alias = "GST_VIDEO_FORMAT_RGBA64_LE")] Rgba64Le, - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(alias = "GST_VIDEO_FORMAT_RGBA64_BE")] Rgba64Be, - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(alias = "GST_VIDEO_FORMAT_BGRA64_LE")] Bgra64Le, - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(alias = "GST_VIDEO_FORMAT_BGRA64_BE")] Bgra64Be, - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(alias = "GST_VIDEO_FORMAT_ABGR64_LE")] Abgr64Le, - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(alias = "GST_VIDEO_FORMAT_ABGR64_BE")] Abgr64Be, - #[cfg(any(feature = "v1_22", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] + #[cfg(feature = "v1_22")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] #[doc(alias = "GST_VIDEO_FORMAT_NV12_16L32S")] Nv1216l32s, - #[cfg(any(feature = "v1_22", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] + #[cfg(feature = "v1_22")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] #[doc(alias = "GST_VIDEO_FORMAT_NV12_8L128")] Nv128l128, - #[cfg(any(feature = "v1_22", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] + #[cfg(feature = "v1_22")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] #[doc(alias = "GST_VIDEO_FORMAT_NV12_10BE_8L128")] Nv1210be8l128, #[doc(hidden)] @@ -2183,69 +2183,69 @@ impl IntoGlib for VideoFormat { Self::Gray10Le32 => ffi::GST_VIDEO_FORMAT_GRAY10_LE32, Self::Nv1210le32 => ffi::GST_VIDEO_FORMAT_NV12_10LE32, Self::Nv1610le32 => ffi::GST_VIDEO_FORMAT_NV16_10LE32, - #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg(feature = "v1_16")] Self::Nv1210le40 => ffi::GST_VIDEO_FORMAT_NV12_10LE40, - #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg(feature = "v1_16")] Self::Y210 => ffi::GST_VIDEO_FORMAT_Y210, - #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg(feature = "v1_16")] Self::Y410 => ffi::GST_VIDEO_FORMAT_Y410, - #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg(feature = "v1_16")] Self::Vuya => ffi::GST_VIDEO_FORMAT_VUYA, - #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg(feature = "v1_16")] Self::Bgr10a2Le => ffi::GST_VIDEO_FORMAT_BGR10A2_LE, - #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg(feature = "v1_18")] Self::Rgb10a2Le => ffi::GST_VIDEO_FORMAT_RGB10A2_LE, - #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg(feature = "v1_18")] Self::Y44416be => ffi::GST_VIDEO_FORMAT_Y444_16BE, - #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg(feature = "v1_18")] Self::Y44416le => ffi::GST_VIDEO_FORMAT_Y444_16LE, - #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg(feature = "v1_18")] Self::P016Be => ffi::GST_VIDEO_FORMAT_P016_BE, - #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg(feature = "v1_18")] Self::P016Le => ffi::GST_VIDEO_FORMAT_P016_LE, - #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg(feature = "v1_18")] Self::P012Be => ffi::GST_VIDEO_FORMAT_P012_BE, - #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg(feature = "v1_18")] Self::P012Le => ffi::GST_VIDEO_FORMAT_P012_LE, - #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg(feature = "v1_18")] Self::Y212Be => ffi::GST_VIDEO_FORMAT_Y212_BE, - #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg(feature = "v1_18")] Self::Y212Le => ffi::GST_VIDEO_FORMAT_Y212_LE, - #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg(feature = "v1_18")] Self::Y412Be => ffi::GST_VIDEO_FORMAT_Y412_BE, - #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg(feature = "v1_18")] Self::Y412Le => ffi::GST_VIDEO_FORMAT_Y412_LE, - #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg(feature = "v1_18")] Self::Nv124l4 => ffi::GST_VIDEO_FORMAT_NV12_4L4, - #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg(feature = "v1_18")] Self::Nv1232l32 => ffi::GST_VIDEO_FORMAT_NV12_32L32, - #[cfg(any(feature = "v1_20", feature = "dox"))] + #[cfg(feature = "v1_20")] Self::Rgbp => ffi::GST_VIDEO_FORMAT_RGBP, - #[cfg(any(feature = "v1_20", feature = "dox"))] + #[cfg(feature = "v1_20")] Self::Bgrp => ffi::GST_VIDEO_FORMAT_BGRP, - #[cfg(any(feature = "v1_20", feature = "dox"))] + #[cfg(feature = "v1_20")] Self::Av12 => ffi::GST_VIDEO_FORMAT_AV12, - #[cfg(any(feature = "v1_20", feature = "dox"))] + #[cfg(feature = "v1_20")] Self::Argb64Le => ffi::GST_VIDEO_FORMAT_ARGB64_LE, - #[cfg(any(feature = "v1_20", feature = "dox"))] + #[cfg(feature = "v1_20")] Self::Argb64Be => ffi::GST_VIDEO_FORMAT_ARGB64_BE, - #[cfg(any(feature = "v1_20", feature = "dox"))] + #[cfg(feature = "v1_20")] Self::Rgba64Le => ffi::GST_VIDEO_FORMAT_RGBA64_LE, - #[cfg(any(feature = "v1_20", feature = "dox"))] + #[cfg(feature = "v1_20")] Self::Rgba64Be => ffi::GST_VIDEO_FORMAT_RGBA64_BE, - #[cfg(any(feature = "v1_20", feature = "dox"))] + #[cfg(feature = "v1_20")] Self::Bgra64Le => ffi::GST_VIDEO_FORMAT_BGRA64_LE, - #[cfg(any(feature = "v1_20", feature = "dox"))] + #[cfg(feature = "v1_20")] Self::Bgra64Be => ffi::GST_VIDEO_FORMAT_BGRA64_BE, - #[cfg(any(feature = "v1_20", feature = "dox"))] + #[cfg(feature = "v1_20")] Self::Abgr64Le => ffi::GST_VIDEO_FORMAT_ABGR64_LE, - #[cfg(any(feature = "v1_20", feature = "dox"))] + #[cfg(feature = "v1_20")] Self::Abgr64Be => ffi::GST_VIDEO_FORMAT_ABGR64_BE, - #[cfg(any(feature = "v1_22", feature = "dox"))] + #[cfg(feature = "v1_22")] Self::Nv1216l32s => ffi::GST_VIDEO_FORMAT_NV12_16L32S, - #[cfg(any(feature = "v1_22", feature = "dox"))] + #[cfg(feature = "v1_22")] Self::Nv128l128 => ffi::GST_VIDEO_FORMAT_NV12_8L128, - #[cfg(any(feature = "v1_22", feature = "dox"))] + #[cfg(feature = "v1_22")] Self::Nv1210be8l128 => ffi::GST_VIDEO_FORMAT_NV12_10BE_8L128, Self::__Unknown(value) => value, } @@ -2339,69 +2339,69 @@ impl FromGlib for VideoFormat { ffi::GST_VIDEO_FORMAT_GRAY10_LE32 => Self::Gray10Le32, ffi::GST_VIDEO_FORMAT_NV12_10LE32 => Self::Nv1210le32, ffi::GST_VIDEO_FORMAT_NV16_10LE32 => Self::Nv1610le32, - #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg(feature = "v1_16")] ffi::GST_VIDEO_FORMAT_NV12_10LE40 => Self::Nv1210le40, - #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg(feature = "v1_16")] ffi::GST_VIDEO_FORMAT_Y210 => Self::Y210, - #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg(feature = "v1_16")] ffi::GST_VIDEO_FORMAT_Y410 => Self::Y410, - #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg(feature = "v1_16")] ffi::GST_VIDEO_FORMAT_VUYA => Self::Vuya, - #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg(feature = "v1_16")] ffi::GST_VIDEO_FORMAT_BGR10A2_LE => Self::Bgr10a2Le, - #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg(feature = "v1_18")] ffi::GST_VIDEO_FORMAT_RGB10A2_LE => Self::Rgb10a2Le, - #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg(feature = "v1_18")] ffi::GST_VIDEO_FORMAT_Y444_16BE => Self::Y44416be, - #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg(feature = "v1_18")] ffi::GST_VIDEO_FORMAT_Y444_16LE => Self::Y44416le, - #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg(feature = "v1_18")] ffi::GST_VIDEO_FORMAT_P016_BE => Self::P016Be, - #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg(feature = "v1_18")] ffi::GST_VIDEO_FORMAT_P016_LE => Self::P016Le, - #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg(feature = "v1_18")] ffi::GST_VIDEO_FORMAT_P012_BE => Self::P012Be, - #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg(feature = "v1_18")] ffi::GST_VIDEO_FORMAT_P012_LE => Self::P012Le, - #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg(feature = "v1_18")] ffi::GST_VIDEO_FORMAT_Y212_BE => Self::Y212Be, - #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg(feature = "v1_18")] ffi::GST_VIDEO_FORMAT_Y212_LE => Self::Y212Le, - #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg(feature = "v1_18")] ffi::GST_VIDEO_FORMAT_Y412_BE => Self::Y412Be, - #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg(feature = "v1_18")] ffi::GST_VIDEO_FORMAT_Y412_LE => Self::Y412Le, - #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg(feature = "v1_18")] ffi::GST_VIDEO_FORMAT_NV12_4L4 => Self::Nv124l4, - #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg(feature = "v1_18")] ffi::GST_VIDEO_FORMAT_NV12_32L32 => Self::Nv1232l32, - #[cfg(any(feature = "v1_20", feature = "dox"))] + #[cfg(feature = "v1_20")] ffi::GST_VIDEO_FORMAT_RGBP => Self::Rgbp, - #[cfg(any(feature = "v1_20", feature = "dox"))] + #[cfg(feature = "v1_20")] ffi::GST_VIDEO_FORMAT_BGRP => Self::Bgrp, - #[cfg(any(feature = "v1_20", feature = "dox"))] + #[cfg(feature = "v1_20")] ffi::GST_VIDEO_FORMAT_AV12 => Self::Av12, - #[cfg(any(feature = "v1_20", feature = "dox"))] + #[cfg(feature = "v1_20")] ffi::GST_VIDEO_FORMAT_ARGB64_LE => Self::Argb64Le, - #[cfg(any(feature = "v1_20", feature = "dox"))] + #[cfg(feature = "v1_20")] ffi::GST_VIDEO_FORMAT_ARGB64_BE => Self::Argb64Be, - #[cfg(any(feature = "v1_20", feature = "dox"))] + #[cfg(feature = "v1_20")] ffi::GST_VIDEO_FORMAT_RGBA64_LE => Self::Rgba64Le, - #[cfg(any(feature = "v1_20", feature = "dox"))] + #[cfg(feature = "v1_20")] ffi::GST_VIDEO_FORMAT_RGBA64_BE => Self::Rgba64Be, - #[cfg(any(feature = "v1_20", feature = "dox"))] + #[cfg(feature = "v1_20")] ffi::GST_VIDEO_FORMAT_BGRA64_LE => Self::Bgra64Le, - #[cfg(any(feature = "v1_20", feature = "dox"))] + #[cfg(feature = "v1_20")] ffi::GST_VIDEO_FORMAT_BGRA64_BE => Self::Bgra64Be, - #[cfg(any(feature = "v1_20", feature = "dox"))] + #[cfg(feature = "v1_20")] ffi::GST_VIDEO_FORMAT_ABGR64_LE => Self::Abgr64Le, - #[cfg(any(feature = "v1_20", feature = "dox"))] + #[cfg(feature = "v1_20")] ffi::GST_VIDEO_FORMAT_ABGR64_BE => Self::Abgr64Be, - #[cfg(any(feature = "v1_22", feature = "dox"))] + #[cfg(feature = "v1_22")] ffi::GST_VIDEO_FORMAT_NV12_16L32S => Self::Nv1216l32s, - #[cfg(any(feature = "v1_22", feature = "dox"))] + #[cfg(feature = "v1_22")] ffi::GST_VIDEO_FORMAT_NV12_8L128 => Self::Nv128l128, - #[cfg(any(feature = "v1_22", feature = "dox"))] + #[cfg(feature = "v1_22")] ffi::GST_VIDEO_FORMAT_NV12_10BE_8L128 => Self::Nv1210be8l128, value => Self::__Unknown(value), } @@ -2570,8 +2570,8 @@ pub enum VideoInterlaceMode { Mixed, #[doc(alias = "GST_VIDEO_INTERLACE_MODE_FIELDS")] Fields, - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] #[doc(alias = "GST_VIDEO_INTERLACE_MODE_ALTERNATE")] Alternate, #[doc(hidden)] @@ -2618,7 +2618,7 @@ impl IntoGlib for VideoInterlaceMode { Self::Interleaved => ffi::GST_VIDEO_INTERLACE_MODE_INTERLEAVED, Self::Mixed => ffi::GST_VIDEO_INTERLACE_MODE_MIXED, Self::Fields => ffi::GST_VIDEO_INTERLACE_MODE_FIELDS, - #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg(feature = "v1_16")] Self::Alternate => ffi::GST_VIDEO_INTERLACE_MODE_ALTERNATE, Self::__Unknown(value) => value, } @@ -2636,7 +2636,7 @@ impl FromGlib for VideoInterlaceMode { ffi::GST_VIDEO_INTERLACE_MODE_INTERLEAVED => Self::Interleaved, ffi::GST_VIDEO_INTERLACE_MODE_MIXED => Self::Mixed, ffi::GST_VIDEO_INTERLACE_MODE_FIELDS => Self::Fields, - #[cfg(any(feature = "v1_16", feature = "dox"))] + #[cfg(feature = "v1_16")] ffi::GST_VIDEO_INTERLACE_MODE_ALTERNATE => Self::Alternate, value => Self::__Unknown(value), } @@ -3432,8 +3432,8 @@ pub enum VideoTileMode { Unknown, #[doc(alias = "GST_VIDEO_TILE_MODE_ZFLIPZ_2X2")] Zflipz2x2, - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "GST_VIDEO_TILE_MODE_LINEAR")] Linear, #[doc(hidden)] @@ -3449,7 +3449,7 @@ impl IntoGlib for VideoTileMode { match self { Self::Unknown => ffi::GST_VIDEO_TILE_MODE_UNKNOWN, Self::Zflipz2x2 => ffi::GST_VIDEO_TILE_MODE_ZFLIPZ_2X2, - #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg(feature = "v1_18")] Self::Linear => ffi::GST_VIDEO_TILE_MODE_LINEAR, Self::__Unknown(value) => value, } @@ -3465,7 +3465,7 @@ impl FromGlib for VideoTileMode { match value { ffi::GST_VIDEO_TILE_MODE_UNKNOWN => Self::Unknown, ffi::GST_VIDEO_TILE_MODE_ZFLIPZ_2X2 => Self::Zflipz2x2, - #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg(feature = "v1_18")] ffi::GST_VIDEO_TILE_MODE_LINEAR => Self::Linear, value => Self::__Unknown(value), } @@ -3557,20 +3557,20 @@ pub enum VideoTransferFunction { Bt202012, #[doc(alias = "GST_VIDEO_TRANSFER_ADOBERGB")] Adobergb, - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "GST_VIDEO_TRANSFER_BT2020_10")] Bt202010, - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "GST_VIDEO_TRANSFER_SMPTE2084")] Smpte2084, - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "GST_VIDEO_TRANSFER_ARIB_STD_B67")] AribStdB67, - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "GST_VIDEO_TRANSFER_BT601")] Bt601, #[doc(hidden)] @@ -3578,32 +3578,32 @@ pub enum VideoTransferFunction { } impl VideoTransferFunction { - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(alias = "gst_video_transfer_function_decode")] pub fn decode(self, val: f64) -> f64 { assert_initialized_main_thread!(); unsafe { ffi::gst_video_transfer_function_decode(self.into_glib(), val) } } - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(alias = "gst_video_transfer_function_encode")] pub fn encode(self, val: f64) -> f64 { assert_initialized_main_thread!(); unsafe { ffi::gst_video_transfer_function_encode(self.into_glib(), val) } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "gst_video_transfer_function_from_iso")] pub fn from_iso(value: u32) -> VideoTransferFunction { assert_initialized_main_thread!(); unsafe { from_glib(ffi::gst_video_transfer_function_from_iso(value)) } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "gst_video_transfer_function_is_equivalent")] pub fn is_equivalent(self, from_bpp: u32, to_func: VideoTransferFunction, to_bpp: u32) -> bool { assert_initialized_main_thread!(); @@ -3617,8 +3617,8 @@ impl VideoTransferFunction { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "gst_video_transfer_function_to_iso")] pub fn to_iso(self) -> u32 { assert_initialized_main_thread!(); @@ -3645,13 +3645,13 @@ impl IntoGlib for VideoTransferFunction { Self::Log316 => ffi::GST_VIDEO_TRANSFER_LOG316, Self::Bt202012 => ffi::GST_VIDEO_TRANSFER_BT2020_12, Self::Adobergb => ffi::GST_VIDEO_TRANSFER_ADOBERGB, - #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg(feature = "v1_18")] Self::Bt202010 => ffi::GST_VIDEO_TRANSFER_BT2020_10, - #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg(feature = "v1_18")] Self::Smpte2084 => ffi::GST_VIDEO_TRANSFER_SMPTE2084, - #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg(feature = "v1_18")] Self::AribStdB67 => ffi::GST_VIDEO_TRANSFER_ARIB_STD_B67, - #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg(feature = "v1_18")] Self::Bt601 => ffi::GST_VIDEO_TRANSFER_BT601, Self::__Unknown(value) => value, } @@ -3677,13 +3677,13 @@ impl FromGlib for VideoTransferFunction { ffi::GST_VIDEO_TRANSFER_LOG316 => Self::Log316, ffi::GST_VIDEO_TRANSFER_BT2020_12 => Self::Bt202012, ffi::GST_VIDEO_TRANSFER_ADOBERGB => Self::Adobergb, - #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg(feature = "v1_18")] ffi::GST_VIDEO_TRANSFER_BT2020_10 => Self::Bt202010, - #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg(feature = "v1_18")] ffi::GST_VIDEO_TRANSFER_SMPTE2084 => Self::Smpte2084, - #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg(feature = "v1_18")] ffi::GST_VIDEO_TRANSFER_ARIB_STD_B67 => Self::AribStdB67, - #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg(feature = "v1_18")] ffi::GST_VIDEO_TRANSFER_BT601 => Self::Bt601, value => Self::__Unknown(value), } diff --git a/gstreamer-video/src/auto/flags.rs b/gstreamer-video/src/auto/flags.rs index 7dc045375..87e1b9b69 100644 --- a/gstreamer-video/src/auto/flags.rs +++ b/gstreamer-video/src/auto/flags.rs @@ -7,9 +7,9 @@ use bitflags::bitflags; use glib::{translate::*, value::FromValue, value::ToValue, StaticType, Type}; use std::fmt; -#[cfg(any(feature = "v1_22", feature = "dox"))] +#[cfg(feature = "v1_22")] bitflags! { - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] #[doc(alias = "GstNavigationModifierType")] pub struct NavigationModifierType: u32 { #[doc(alias = "GST_NAVIGATION_MODIFIER_SHIFT_MASK")] @@ -47,8 +47,8 @@ bitflags! { } } -#[cfg(any(feature = "v1_22", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] +#[cfg(feature = "v1_22")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] #[doc(hidden)] impl IntoGlib for NavigationModifierType { type GlibType = ffi::GstNavigationModifierType; @@ -59,8 +59,8 @@ impl IntoGlib for NavigationModifierType { } } -#[cfg(any(feature = "v1_22", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] +#[cfg(feature = "v1_22")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] #[doc(hidden)] impl FromGlib for NavigationModifierType { #[inline] @@ -70,8 +70,8 @@ impl FromGlib for NavigationModifierType { } } -#[cfg(any(feature = "v1_22", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] +#[cfg(feature = "v1_22")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] impl StaticType for NavigationModifierType { #[inline] fn static_type() -> Type { @@ -79,8 +79,8 @@ impl StaticType for NavigationModifierType { } } -#[cfg(any(feature = "v1_22", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] +#[cfg(feature = "v1_22")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] impl glib::HasParamSpec for NavigationModifierType { type ParamSpec = glib::ParamSpecFlags; type SetValue = Self; @@ -91,14 +91,14 @@ impl glib::HasParamSpec for NavigationModifierType { } } -#[cfg(any(feature = "v1_22", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] +#[cfg(feature = "v1_22")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] impl glib::value::ValueType for NavigationModifierType { type Type = Self; } -#[cfg(any(feature = "v1_22", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] +#[cfg(feature = "v1_22")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] unsafe impl<'a> FromValue<'a> for NavigationModifierType { type Checker = glib::value::GenericValueTypeChecker; @@ -109,8 +109,8 @@ unsafe impl<'a> FromValue<'a> for NavigationModifierType { } } -#[cfg(any(feature = "v1_22", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] +#[cfg(feature = "v1_22")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] impl ToValue for NavigationModifierType { #[inline] fn to_value(&self) -> glib::Value { @@ -127,8 +127,8 @@ impl ToValue for NavigationModifierType { } } -#[cfg(any(feature = "v1_22", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] +#[cfg(feature = "v1_22")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] impl From for glib::Value { #[inline] fn from(v: NavigationModifierType) -> Self { @@ -152,16 +152,16 @@ bitflags! { const MULTIPLE_VIEW = ffi::GST_VIDEO_BUFFER_FLAG_MULTIPLE_VIEW as _; #[doc(alias = "GST_VIDEO_BUFFER_FLAG_FIRST_IN_BUNDLE")] const FIRST_IN_BUNDLE = ffi::GST_VIDEO_BUFFER_FLAG_FIRST_IN_BUNDLE as _; - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] #[doc(alias = "GST_VIDEO_BUFFER_FLAG_TOP_FIELD")] const TOP_FIELD = ffi::GST_VIDEO_BUFFER_FLAG_TOP_FIELD as _; - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] #[doc(alias = "GST_VIDEO_BUFFER_FLAG_BOTTOM_FIELD")] const BOTTOM_FIELD = ffi::GST_VIDEO_BUFFER_FLAG_BOTTOM_FIELD as _; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "GST_VIDEO_BUFFER_FLAG_MARKER")] const MARKER = ffi::GST_VIDEO_BUFFER_FLAG_MARKER as _; } @@ -264,8 +264,8 @@ bitflags! { } impl VideoChromaSite { - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(alias = "gst_video_chroma_site_from_string")] pub fn from_string(s: &str) -> VideoChromaSite { assert_initialized_main_thread!(); @@ -365,8 +365,8 @@ bitflags! { const FORCE_KEYFRAME = ffi::GST_VIDEO_CODEC_FRAME_FLAG_FORCE_KEYFRAME as _; #[doc(alias = "GST_VIDEO_CODEC_FRAME_FLAG_FORCE_KEYFRAME_HEADERS")] const FORCE_KEYFRAME_HEADERS = ffi::GST_VIDEO_CODEC_FRAME_FLAG_FORCE_KEYFRAME_HEADERS as _; - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(alias = "GST_VIDEO_CODEC_FRAME_FLAG_CORRUPTED")] const CORRUPTED = ffi::GST_VIDEO_CODEC_FRAME_FLAG_CORRUPTED as _; } @@ -391,8 +391,8 @@ impl FromGlib for VideoCodecFrameFlags { } } -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] impl StaticType for VideoCodecFrameFlags { #[inline] fn static_type() -> Type { @@ -400,8 +400,8 @@ impl StaticType for VideoCodecFrameFlags { } } -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] impl glib::HasParamSpec for VideoCodecFrameFlags { type ParamSpec = glib::ParamSpecFlags; type SetValue = Self; @@ -412,14 +412,14 @@ impl glib::HasParamSpec for VideoCodecFrameFlags { } } -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] impl glib::value::ValueType for VideoCodecFrameFlags { type Type = Self; } -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] unsafe impl<'a> FromValue<'a> for VideoCodecFrameFlags { type Checker = glib::value::GenericValueTypeChecker; @@ -430,8 +430,8 @@ unsafe impl<'a> FromValue<'a> for VideoCodecFrameFlags { } } -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] impl ToValue for VideoCodecFrameFlags { #[inline] fn to_value(&self) -> glib::Value { @@ -448,8 +448,8 @@ impl ToValue for VideoCodecFrameFlags { } } -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] impl From for glib::Value { #[inline] fn from(v: VideoCodecFrameFlags) -> Self { @@ -458,9 +458,9 @@ impl From for glib::Value { } } -#[cfg(any(feature = "v1_20", feature = "dox"))] +#[cfg(feature = "v1_20")] bitflags! { - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(alias = "GstVideoDecoderRequestSyncPointFlags")] pub struct VideoDecoderRequestSyncPointFlags: u32 { #[doc(alias = "GST_VIDEO_DECODER_REQUEST_SYNC_POINT_DISCARD_INPUT")] @@ -470,8 +470,8 @@ bitflags! { } } -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(hidden)] impl IntoGlib for VideoDecoderRequestSyncPointFlags { type GlibType = ffi::GstVideoDecoderRequestSyncPointFlags; @@ -482,8 +482,8 @@ impl IntoGlib for VideoDecoderRequestSyncPointFlags { } } -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(hidden)] impl FromGlib for VideoDecoderRequestSyncPointFlags { #[inline] @@ -493,8 +493,8 @@ impl FromGlib for VideoDecoderRequest } } -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] impl StaticType for VideoDecoderRequestSyncPointFlags { #[inline] fn static_type() -> Type { @@ -502,8 +502,8 @@ impl StaticType for VideoDecoderRequestSyncPointFlags { } } -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] impl glib::HasParamSpec for VideoDecoderRequestSyncPointFlags { type ParamSpec = glib::ParamSpecFlags; type SetValue = Self; @@ -514,14 +514,14 @@ impl glib::HasParamSpec for VideoDecoderRequestSyncPointFlags { } } -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] impl glib::value::ValueType for VideoDecoderRequestSyncPointFlags { type Type = Self; } -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] unsafe impl<'a> FromValue<'a> for VideoDecoderRequestSyncPointFlags { type Checker = glib::value::GenericValueTypeChecker; @@ -532,8 +532,8 @@ unsafe impl<'a> FromValue<'a> for VideoDecoderRequestSyncPointFlags { } } -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] impl ToValue for VideoDecoderRequestSyncPointFlags { #[inline] fn to_value(&self) -> glib::Value { @@ -550,8 +550,8 @@ impl ToValue for VideoDecoderRequestSyncPointFlags { } } -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] impl From for glib::Value { #[inline] fn from(v: VideoDecoderRequestSyncPointFlags) -> Self { @@ -665,8 +665,8 @@ bitflags! { const UNPACK = ffi::GST_VIDEO_FORMAT_FLAG_UNPACK as _; #[doc(alias = "GST_VIDEO_FORMAT_FLAG_TILED")] const TILED = ffi::GST_VIDEO_FORMAT_FLAG_TILED as _; - #[cfg(any(feature = "v1_22", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] + #[cfg(feature = "v1_22")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] #[doc(alias = "GST_VIDEO_FORMAT_FLAG_SUBTILES")] const SUBTILES = ffi::GST_VIDEO_FORMAT_FLAG_SUBTILES as _; } @@ -761,12 +761,12 @@ bitflags! { const MULTIPLE_VIEW = ffi::GST_VIDEO_FRAME_FLAG_MULTIPLE_VIEW as _; #[doc(alias = "GST_VIDEO_FRAME_FLAG_FIRST_IN_BUNDLE")] const FIRST_IN_BUNDLE = ffi::GST_VIDEO_FRAME_FLAG_FIRST_IN_BUNDLE as _; - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] #[doc(alias = "GST_VIDEO_FRAME_FLAG_TOP_FIELD")] const TOP_FIELD = ffi::GST_VIDEO_FRAME_FLAG_TOP_FIELD as _; - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] #[doc(alias = "GST_VIDEO_FRAME_FLAG_BOTTOM_FIELD")] const BOTTOM_FIELD = ffi::GST_VIDEO_FRAME_FLAG_BOTTOM_FIELD as _; } @@ -969,8 +969,8 @@ impl FromGlib for VideoOverlayFormatFlags { } } -#[cfg(any(feature = "v1_16", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] +#[cfg(feature = "v1_16")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] impl StaticType for VideoOverlayFormatFlags { #[inline] fn static_type() -> Type { @@ -978,8 +978,8 @@ impl StaticType for VideoOverlayFormatFlags { } } -#[cfg(any(feature = "v1_16", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] +#[cfg(feature = "v1_16")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] impl glib::HasParamSpec for VideoOverlayFormatFlags { type ParamSpec = glib::ParamSpecFlags; type SetValue = Self; @@ -990,14 +990,14 @@ impl glib::HasParamSpec for VideoOverlayFormatFlags { } } -#[cfg(any(feature = "v1_16", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] +#[cfg(feature = "v1_16")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] impl glib::value::ValueType for VideoOverlayFormatFlags { type Type = Self; } -#[cfg(any(feature = "v1_16", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] +#[cfg(feature = "v1_16")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] unsafe impl<'a> FromValue<'a> for VideoOverlayFormatFlags { type Checker = glib::value::GenericValueTypeChecker; @@ -1008,8 +1008,8 @@ unsafe impl<'a> FromValue<'a> for VideoOverlayFormatFlags { } } -#[cfg(any(feature = "v1_16", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] +#[cfg(feature = "v1_16")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] impl ToValue for VideoOverlayFormatFlags { #[inline] fn to_value(&self) -> glib::Value { @@ -1026,8 +1026,8 @@ impl ToValue for VideoOverlayFormatFlags { } } -#[cfg(any(feature = "v1_16", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] +#[cfg(feature = "v1_16")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] impl From for glib::Value { #[inline] fn from(v: VideoOverlayFormatFlags) -> Self { @@ -1149,8 +1149,8 @@ impl FromGlib for VideoTimeCodeFlags { } } -#[cfg(any(feature = "v1_18", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] +#[cfg(feature = "v1_18")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] impl StaticType for VideoTimeCodeFlags { #[inline] fn static_type() -> Type { @@ -1158,8 +1158,8 @@ impl StaticType for VideoTimeCodeFlags { } } -#[cfg(any(feature = "v1_18", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] +#[cfg(feature = "v1_18")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] impl glib::HasParamSpec for VideoTimeCodeFlags { type ParamSpec = glib::ParamSpecFlags; type SetValue = Self; @@ -1170,14 +1170,14 @@ impl glib::HasParamSpec for VideoTimeCodeFlags { } } -#[cfg(any(feature = "v1_18", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] +#[cfg(feature = "v1_18")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] impl glib::value::ValueType for VideoTimeCodeFlags { type Type = Self; } -#[cfg(any(feature = "v1_18", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] +#[cfg(feature = "v1_18")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] unsafe impl<'a> FromValue<'a> for VideoTimeCodeFlags { type Checker = glib::value::GenericValueTypeChecker; @@ -1188,8 +1188,8 @@ unsafe impl<'a> FromValue<'a> for VideoTimeCodeFlags { } } -#[cfg(any(feature = "v1_18", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] +#[cfg(feature = "v1_18")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] impl ToValue for VideoTimeCodeFlags { #[inline] fn to_value(&self) -> glib::Value { @@ -1206,8 +1206,8 @@ impl ToValue for VideoTimeCodeFlags { } } -#[cfg(any(feature = "v1_18", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] +#[cfg(feature = "v1_18")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] impl From for glib::Value { #[inline] fn from(v: VideoTimeCodeFlags) -> Self { diff --git a/gstreamer-video/src/auto/mod.rs b/gstreamer-video/src/auto/mod.rs index 6e90ad016..47dc10e93 100644 --- a/gstreamer-video/src/auto/mod.rs +++ b/gstreamer-video/src/auto/mod.rs @@ -12,32 +12,32 @@ pub use self::color_balance_channel::ColorBalanceChannel; mod navigation; pub use self::navigation::Navigation; -#[cfg(any(feature = "v1_16", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] +#[cfg(feature = "v1_16")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] mod video_aggregator; -#[cfg(any(feature = "v1_16", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] +#[cfg(feature = "v1_16")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] pub use self::video_aggregator::VideoAggregator; -#[cfg(any(feature = "v1_16", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] +#[cfg(feature = "v1_16")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] mod video_aggregator_convert_pad; -#[cfg(any(feature = "v1_16", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] +#[cfg(feature = "v1_16")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] pub use self::video_aggregator_convert_pad::VideoAggregatorConvertPad; -#[cfg(any(feature = "v1_16", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] +#[cfg(feature = "v1_16")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] mod video_aggregator_pad; -#[cfg(any(feature = "v1_16", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] +#[cfg(feature = "v1_16")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] pub use self::video_aggregator_pad::VideoAggregatorPad; -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] mod video_aggregator_parallel_convert_pad; -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub use self::video_aggregator_parallel_convert_pad::VideoAggregatorParallelConvertPad; mod video_buffer_pool; @@ -67,15 +67,15 @@ pub use self::enums::NavigationCommand; pub use self::enums::NavigationEventType; pub use self::enums::NavigationMessageType; pub use self::enums::NavigationQueryType; -#[cfg(any(feature = "v1_18", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] +#[cfg(feature = "v1_18")] +#[cfg_attr(docsrs, 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(feature = "v1_18")] +#[cfg_attr(docsrs, 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(feature = "v1_16")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] pub use self::enums::VideoCaptionType; pub use self::enums::VideoChromaMode; pub use self::enums::VideoColorMatrix; @@ -95,14 +95,14 @@ pub use self::enums::VideoTileMode; pub use self::enums::VideoTransferFunction; mod flags; -#[cfg(any(feature = "v1_22", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] +#[cfg(feature = "v1_22")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] pub use self::flags::NavigationModifierType; pub use self::flags::VideoBufferFlags; pub use self::flags::VideoChromaSite; pub use self::flags::VideoCodecFrameFlags; -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub use self::flags::VideoDecoderRequestSyncPointFlags; pub use self::flags::VideoFlags; pub use self::flags::VideoFormatFlags; @@ -117,14 +117,14 @@ pub mod traits { pub use super::color_balance::ColorBalanceExt; pub use super::color_balance_channel::ColorBalanceChannelExt; pub use super::navigation::NavigationExt; - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] pub use super::video_aggregator::VideoAggregatorExt; - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] pub use super::video_aggregator_convert_pad::VideoAggregatorConvertPadExt; - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] pub use super::video_aggregator_pad::VideoAggregatorPadExt; pub use super::video_decoder::VideoDecoderExt; pub use super::video_encoder::VideoEncoderExt; diff --git a/gstreamer-video/src/auto/navigation.rs b/gstreamer-video/src/auto/navigation.rs index a46a01b15..6d604ae18 100644 --- a/gstreamer-video/src/auto/navigation.rs +++ b/gstreamer-video/src/auto/navigation.rs @@ -39,8 +39,8 @@ pub trait NavigationExt: 'static { #[doc(alias = "gst_navigation_send_event")] fn send_event(&self, structure: gst::Structure); - #[cfg(any(feature = "v1_22", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] + #[cfg(feature = "v1_22")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] #[doc(alias = "gst_navigation_send_event_simple")] fn send_event_simple(&self, event: gst::Event); @@ -50,8 +50,8 @@ pub trait NavigationExt: 'static { #[doc(alias = "gst_navigation_send_mouse_event")] fn send_mouse_event(&self, event: &str, button: i32, x: f64, y: f64); - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "gst_navigation_send_mouse_scroll_event")] fn send_mouse_scroll_event(&self, x: f64, y: f64, delta_x: f64, delta_y: f64); } @@ -72,8 +72,8 @@ impl> NavigationExt for O { } } - #[cfg(any(feature = "v1_22", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] + #[cfg(feature = "v1_22")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] fn send_event_simple(&self, event: gst::Event) { unsafe { ffi::gst_navigation_send_event_simple( @@ -105,8 +105,8 @@ impl> NavigationExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] fn send_mouse_scroll_event(&self, x: f64, y: f64, delta_x: f64, delta_y: f64) { unsafe { ffi::gst_navigation_send_mouse_scroll_event( diff --git a/gstreamer-video/src/auto/versions.txt b/gstreamer-video/src/auto/versions.txt index 94b843e6a..f606c95a2 100644 --- a/gstreamer-video/src/auto/versions.txt +++ b/gstreamer-video/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2) +Generated by gir (https://github.com/gtk-rs/gir @ 719372782330) from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836) diff --git a/gstreamer-video/src/auto/video_aggregator.rs b/gstreamer-video/src/auto/video_aggregator.rs index b067aee5b..91cae9c4e 100644 --- a/gstreamer-video/src/auto/video_aggregator.rs +++ b/gstreamer-video/src/auto/video_aggregator.rs @@ -22,16 +22,16 @@ unsafe impl Send for VideoAggregator {} unsafe impl Sync for VideoAggregator {} pub trait VideoAggregatorExt: 'static { - //#[cfg(any(feature = "v1_20", feature = "dox"))] - //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + //#[cfg(feature = "v1_20")] + //#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] //#[doc(alias = "gst_video_aggregator_get_execution_task_pool")] //#[doc(alias = "get_execution_task_pool")] //fn execution_task_pool(&self) -> /*Ignored*/gst::TaskPool; } impl> VideoAggregatorExt for O { - //#[cfg(any(feature = "v1_20", feature = "dox"))] - //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + //#[cfg(feature = "v1_20")] + //#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] //fn execution_task_pool(&self) -> /*Ignored*/gst::TaskPool { // unsafe { TODO: call ffi:gst_video_aggregator_get_execution_task_pool() } //} diff --git a/gstreamer-video/src/auto/video_decoder.rs b/gstreamer-video/src/auto/video_decoder.rs index 4c6d8cacd..69f0c2ff5 100644 --- a/gstreamer-video/src/auto/video_decoder.rs +++ b/gstreamer-video/src/auto/video_decoder.rs @@ -4,15 +4,15 @@ // DO NOT EDIT use crate::VideoCodecFrame; -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] use crate::VideoDecoderRequestSyncPointFlags; -#[cfg(any(feature = "v1_18", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] +#[cfg(feature = "v1_18")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] use glib::signal::{connect_raw, SignalHandlerId}; use glib::{prelude::*, translate::*}; -#[cfg(any(feature = "v1_18", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] +#[cfg(feature = "v1_18")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] use std::{boxed::Box as Box_, mem::transmute}; glib::wrapper! { @@ -41,16 +41,16 @@ pub trait VideoDecoderExt: 'static { #[doc(alias = "gst_video_decoder_drop_frame")] fn drop_frame(&self, frame: VideoCodecFrame) -> Result; - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(alias = "gst_video_decoder_drop_subframe")] fn drop_subframe(&self, frame: VideoCodecFrame) -> Result; #[doc(alias = "gst_video_decoder_finish_frame")] fn finish_frame(&self, frame: VideoCodecFrame) -> Result; - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(alias = "gst_video_decoder_finish_subframe")] fn finish_subframe(&self, frame: VideoCodecFrame) -> Result; @@ -74,8 +74,8 @@ pub trait VideoDecoderExt: 'static { #[doc(alias = "get_needs_format")] fn needs_format(&self) -> bool; - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(alias = "gst_video_decoder_get_needs_sync_point")] #[doc(alias = "get_needs_sync_point")] fn needs_sync_point(&self) -> bool; @@ -92,8 +92,8 @@ pub trait VideoDecoderExt: 'static { #[doc(alias = "get_qos_proportion")] fn qos_proportion(&self) -> f64; - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(alias = "gst_video_decoder_get_subframe_mode")] #[doc(alias = "get_subframe_mode")] fn is_subframe_mode(&self) -> bool; @@ -101,8 +101,8 @@ pub trait VideoDecoderExt: 'static { #[doc(alias = "gst_video_decoder_have_frame")] fn have_frame(&self) -> Result; - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(alias = "gst_video_decoder_have_last_subframe")] fn have_last_subframe( &self, @@ -118,8 +118,8 @@ pub trait VideoDecoderExt: 'static { #[doc(alias = "gst_video_decoder_release_frame")] fn release_frame(&self, frame: VideoCodecFrame); - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(alias = "gst_video_decoder_request_sync_point")] fn request_sync_point(&self, frame: &VideoCodecFrame, flags: VideoDecoderRequestSyncPointFlags); @@ -132,115 +132,115 @@ pub trait VideoDecoderExt: 'static { #[doc(alias = "gst_video_decoder_set_needs_format")] fn set_needs_format(&self, enabled: bool); - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(alias = "gst_video_decoder_set_needs_sync_point")] fn set_needs_sync_point(&self, enabled: bool); #[doc(alias = "gst_video_decoder_set_packetized")] fn set_packetized(&self, packetized: bool); - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(alias = "gst_video_decoder_set_subframe_mode")] fn set_subframe_mode(&self, subframe_mode: bool); #[doc(alias = "gst_video_decoder_set_use_default_pad_acceptcaps")] fn set_use_default_pad_acceptcaps(&self, use_: bool); - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(alias = "automatic-request-sync-point-flags")] fn automatic_request_sync_point_flags(&self) -> VideoDecoderRequestSyncPointFlags; - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(alias = "automatic-request-sync-point-flags")] fn set_automatic_request_sync_point_flags( &self, automatic_request_sync_point_flags: VideoDecoderRequestSyncPointFlags, ); - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(alias = "automatic-request-sync-points")] fn is_automatic_request_sync_points(&self) -> bool; - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(alias = "automatic-request-sync-points")] fn set_automatic_request_sync_points(&self, automatic_request_sync_points: bool); - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(alias = "discard-corrupted-frames")] fn is_discard_corrupted_frames(&self) -> bool; - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(alias = "discard-corrupted-frames")] fn set_discard_corrupted_frames(&self, discard_corrupted_frames: bool); - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(alias = "min-force-key-unit-interval")] fn min_force_key_unit_interval(&self) -> u64; - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(alias = "min-force-key-unit-interval")] fn set_min_force_key_unit_interval(&self, min_force_key_unit_interval: u64); - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] fn is_qos(&self) -> bool; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] fn set_qos(&self, qos: bool); - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(alias = "automatic-request-sync-point-flags")] fn connect_automatic_request_sync_point_flags_notify( &self, f: F, ) -> SignalHandlerId; - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(alias = "automatic-request-sync-points")] fn connect_automatic_request_sync_points_notify( &self, f: F, ) -> SignalHandlerId; - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(alias = "discard-corrupted-frames")] fn connect_discard_corrupted_frames_notify( &self, f: F, ) -> SignalHandlerId; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "max-errors")] fn connect_max_errors_notify( &self, f: F, ) -> SignalHandlerId; - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(alias = "min-force-key-unit-interval")] fn connect_min_force_key_unit_interval_notify( &self, f: F, ) -> SignalHandlerId; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "qos")] fn connect_qos_notify(&self, f: F) -> SignalHandlerId; } @@ -270,8 +270,8 @@ impl> VideoDecoderExt for O { } } - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] fn drop_subframe(&self, frame: VideoCodecFrame) -> Result { unsafe { try_from_glib(ffi::gst_video_decoder_drop_subframe( @@ -290,8 +290,8 @@ impl> VideoDecoderExt for O { } } - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] fn finish_subframe(&self, frame: VideoCodecFrame) -> Result { unsafe { try_from_glib(ffi::gst_video_decoder_finish_subframe( @@ -334,8 +334,8 @@ impl> VideoDecoderExt for O { } } - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] fn needs_sync_point(&self) -> bool { unsafe { from_glib(ffi::gst_video_decoder_get_needs_sync_point( @@ -360,8 +360,8 @@ impl> VideoDecoderExt for O { unsafe { ffi::gst_video_decoder_get_qos_proportion(self.as_ref().to_glib_none().0) } } - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] fn is_subframe_mode(&self) -> bool { unsafe { from_glib(ffi::gst_video_decoder_get_subframe_mode( @@ -378,8 +378,8 @@ impl> VideoDecoderExt for O { } } - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] fn have_last_subframe( &self, frame: &VideoCodecFrame, @@ -421,8 +421,8 @@ impl> VideoDecoderExt for O { } } - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] fn request_sync_point( &self, frame: &VideoCodecFrame, @@ -461,8 +461,8 @@ impl> VideoDecoderExt for O { } } - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] fn set_needs_sync_point(&self, enabled: bool) { unsafe { ffi::gst_video_decoder_set_needs_sync_point( @@ -481,8 +481,8 @@ impl> VideoDecoderExt for O { } } - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] fn set_subframe_mode(&self, subframe_mode: bool) { unsafe { ffi::gst_video_decoder_set_subframe_mode( @@ -501,14 +501,14 @@ impl> VideoDecoderExt for O { } } - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] fn automatic_request_sync_point_flags(&self) -> VideoDecoderRequestSyncPointFlags { glib::ObjectExt::property(self.as_ref(), "automatic-request-sync-point-flags") } - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] fn set_automatic_request_sync_point_flags( &self, automatic_request_sync_point_flags: VideoDecoderRequestSyncPointFlags, @@ -520,14 +520,14 @@ impl> VideoDecoderExt for O { ) } - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] fn is_automatic_request_sync_points(&self) -> bool { glib::ObjectExt::property(self.as_ref(), "automatic-request-sync-points") } - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] fn set_automatic_request_sync_points(&self, automatic_request_sync_points: bool) { glib::ObjectExt::set_property( self.as_ref(), @@ -536,14 +536,14 @@ impl> VideoDecoderExt for O { ) } - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] fn is_discard_corrupted_frames(&self) -> bool { glib::ObjectExt::property(self.as_ref(), "discard-corrupted-frames") } - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] fn set_discard_corrupted_frames(&self, discard_corrupted_frames: bool) { glib::ObjectExt::set_property( self.as_ref(), @@ -552,14 +552,14 @@ impl> VideoDecoderExt for O { ) } - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] fn min_force_key_unit_interval(&self) -> u64 { glib::ObjectExt::property(self.as_ref(), "min-force-key-unit-interval") } - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] fn set_min_force_key_unit_interval(&self, min_force_key_unit_interval: u64) { glib::ObjectExt::set_property( self.as_ref(), @@ -568,20 +568,20 @@ impl> VideoDecoderExt for O { ) } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] fn is_qos(&self) -> bool { glib::ObjectExt::property(self.as_ref(), "qos") } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] fn set_qos(&self, qos: bool) { glib::ObjectExt::set_property(self.as_ref(), "qos", qos) } - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] fn connect_automatic_request_sync_point_flags_notify( &self, f: F, @@ -610,8 +610,8 @@ impl> VideoDecoderExt for O { } } - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] fn connect_automatic_request_sync_points_notify( &self, f: F, @@ -640,8 +640,8 @@ impl> VideoDecoderExt for O { } } - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] fn connect_discard_corrupted_frames_notify( &self, f: F, @@ -670,8 +670,8 @@ impl> VideoDecoderExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] fn connect_max_errors_notify( &self, f: F, @@ -700,8 +700,8 @@ impl> VideoDecoderExt for O { } } - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] fn connect_min_force_key_unit_interval_notify( &self, f: F, @@ -730,8 +730,8 @@ impl> VideoDecoderExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] fn connect_qos_notify(&self, f: F) -> SignalHandlerId { unsafe extern "C" fn notify_qos_trampoline< P: IsA, diff --git a/gstreamer-video/src/auto/video_encoder.rs b/gstreamer-video/src/auto/video_encoder.rs index 95fc7f8aa..ee5283e37 100644 --- a/gstreamer-video/src/auto/video_encoder.rs +++ b/gstreamer-video/src/auto/video_encoder.rs @@ -38,8 +38,8 @@ pub trait VideoEncoderExt: 'static { #[doc(alias = "get_max_encode_time")] fn 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(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "gst_video_encoder_get_min_force_key_unit_interval")] #[doc(alias = "get_min_force_key_unit_interval")] fn min_force_key_unit_interval(&self) -> Option; @@ -53,8 +53,8 @@ pub trait VideoEncoderExt: 'static { #[doc(alias = "gst_video_encoder_proxy_getcaps")] fn proxy_getcaps(&self, caps: Option<&gst::Caps>, filter: Option<&gst::Caps>) -> gst::Caps; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "gst_video_encoder_set_min_force_key_unit_interval")] fn set_min_force_key_unit_interval(&self, interval: impl Into>); @@ -68,8 +68,8 @@ pub trait VideoEncoderExt: 'static { fn set_qos(&self, qos: bool); - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "min-force-key-unit-interval")] fn connect_min_force_key_unit_interval_notify( &self, @@ -108,8 +108,8 @@ impl> VideoEncoderExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] fn min_force_key_unit_interval(&self) -> Option { unsafe { from_glib(ffi::gst_video_encoder_get_min_force_key_unit_interval( @@ -146,8 +146,8 @@ impl> VideoEncoderExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] fn set_min_force_key_unit_interval(&self, interval: impl Into>) { unsafe { ffi::gst_video_encoder_set_min_force_key_unit_interval( @@ -183,8 +183,8 @@ impl> VideoEncoderExt for O { glib::ObjectExt::set_property(self.as_ref(), "qos", qos) } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] fn connect_min_force_key_unit_interval_notify( &self, f: F, diff --git a/gstreamer-video/sys/Cargo.toml b/gstreamer-video/sys/Cargo.toml index b7b3c4d5f..8f0d531d0 100644 --- a/gstreamer-video/sys/Cargo.toml +++ b/gstreamer-video/sys/Cargo.toml @@ -51,7 +51,7 @@ edition = "2021" rust-version = "1.66" [package.metadata.docs.rs] -features = ["dox"] +features = [] [package.metadata.system-deps.gstreamer_video_1_0] name = "gstreamer-video-1.0" diff --git a/gstreamer-video/sys/build.rs b/gstreamer-video/sys/build.rs index 40e2cc398..29420c9ee 100644 --- a/gstreamer-video/sys/build.rs +++ b/gstreamer-video/sys/build.rs @@ -3,13 +3,13 @@ // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git) // DO NOT EDIT -#[cfg(not(feature = "dox"))] +#[cfg(not(docsrs))] use std::process; -#[cfg(feature = "dox")] +#[cfg(docsrs)] fn main() {} // prevent linking libraries to avoid documentation failure -#[cfg(not(feature = "dox"))] +#[cfg(not(docsrs))] fn main() { if let Err(s) = system_deps::Config::new().probe() { println!("cargo:warning={s}"); diff --git a/gstreamer-video/sys/src/auto/versions.txt b/gstreamer-video/sys/src/auto/versions.txt index 94b843e6a..f606c95a2 100644 --- a/gstreamer-video/sys/src/auto/versions.txt +++ b/gstreamer-video/sys/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2) +Generated by gir (https://github.com/gtk-rs/gir @ 719372782330) from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836) diff --git a/gstreamer-video/sys/src/lib.rs b/gstreamer-video/sys/src/lib.rs index bd6947d81..e2cc2ee93 100644 --- a/gstreamer-video/sys/src/lib.rs +++ b/gstreamer-video/sys/src/lib.rs @@ -10,7 +10,7 @@ clippy::unreadable_literal, clippy::upper_case_acronyms )] -#![cfg_attr(feature = "dox", feature(doc_cfg))] +#![cfg_attr(docsrs, feature(doc_cfg))] #[allow(unused_imports)] use libc::{ @@ -51,23 +51,23 @@ pub const GST_NAVIGATION_EVENT_MOUSE_BUTTON_PRESS: GstNavigationEventType = 3; pub const GST_NAVIGATION_EVENT_MOUSE_BUTTON_RELEASE: GstNavigationEventType = 4; pub const GST_NAVIGATION_EVENT_MOUSE_MOVE: GstNavigationEventType = 5; pub const GST_NAVIGATION_EVENT_COMMAND: GstNavigationEventType = 6; -#[cfg(any(feature = "v1_18", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] +#[cfg(feature = "v1_18")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub const GST_NAVIGATION_EVENT_MOUSE_SCROLL: GstNavigationEventType = 7; -#[cfg(any(feature = "v1_22", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] +#[cfg(feature = "v1_22")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] pub const GST_NAVIGATION_EVENT_TOUCH_DOWN: GstNavigationEventType = 8; -#[cfg(any(feature = "v1_22", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] +#[cfg(feature = "v1_22")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] pub const GST_NAVIGATION_EVENT_TOUCH_MOTION: GstNavigationEventType = 9; -#[cfg(any(feature = "v1_22", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] +#[cfg(feature = "v1_22")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] pub const GST_NAVIGATION_EVENT_TOUCH_UP: GstNavigationEventType = 10; -#[cfg(any(feature = "v1_22", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] +#[cfg(feature = "v1_22")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] pub const GST_NAVIGATION_EVENT_TOUCH_FRAME: GstNavigationEventType = 11; -#[cfg(any(feature = "v1_22", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] +#[cfg(feature = "v1_22")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] pub const GST_NAVIGATION_EVENT_TOUCH_CANCEL: GstNavigationEventType = 12; pub type GstNavigationMessageType = c_int; @@ -280,53 +280,53 @@ pub const GST_VIDEO_FORMAT_Y212_BE: GstVideoFormat = 93; pub const GST_VIDEO_FORMAT_Y212_LE: GstVideoFormat = 94; pub const GST_VIDEO_FORMAT_Y412_BE: GstVideoFormat = 95; pub const GST_VIDEO_FORMAT_Y412_LE: GstVideoFormat = 96; -#[cfg(any(feature = "v1_18", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] +#[cfg(feature = "v1_18")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub const GST_VIDEO_FORMAT_NV12_4L4: GstVideoFormat = 97; -#[cfg(any(feature = "v1_18", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] +#[cfg(feature = "v1_18")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub const GST_VIDEO_FORMAT_NV12_32L32: GstVideoFormat = 98; -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub const GST_VIDEO_FORMAT_RGBP: GstVideoFormat = 99; -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub const GST_VIDEO_FORMAT_BGRP: GstVideoFormat = 100; -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub const GST_VIDEO_FORMAT_AV12: GstVideoFormat = 101; -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub const GST_VIDEO_FORMAT_ARGB64_LE: GstVideoFormat = 102; -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub const GST_VIDEO_FORMAT_ARGB64_BE: GstVideoFormat = 103; -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub const GST_VIDEO_FORMAT_RGBA64_LE: GstVideoFormat = 104; -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub const GST_VIDEO_FORMAT_RGBA64_BE: GstVideoFormat = 105; -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub const GST_VIDEO_FORMAT_BGRA64_LE: GstVideoFormat = 106; -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub const GST_VIDEO_FORMAT_BGRA64_BE: GstVideoFormat = 107; -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub const GST_VIDEO_FORMAT_ABGR64_LE: GstVideoFormat = 108; -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub const GST_VIDEO_FORMAT_ABGR64_BE: GstVideoFormat = 109; -#[cfg(any(feature = "v1_22", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] +#[cfg(feature = "v1_22")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] pub const GST_VIDEO_FORMAT_NV12_16L32S: GstVideoFormat = 110; -#[cfg(any(feature = "v1_22", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] +#[cfg(feature = "v1_22")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] pub const GST_VIDEO_FORMAT_NV12_8L128: GstVideoFormat = 111; -#[cfg(any(feature = "v1_22", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] +#[cfg(feature = "v1_22")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] pub const GST_VIDEO_FORMAT_NV12_10BE_8L128: GstVideoFormat = 112; pub type GstVideoGLTextureOrientation = c_int; @@ -416,8 +416,8 @@ pub const GST_VIDEO_RESAMPLER_METHOD_LANCZOS: GstVideoResamplerMethod = 4; pub type GstVideoTileMode = c_int; pub const GST_VIDEO_TILE_MODE_UNKNOWN: GstVideoTileMode = 0; pub const GST_VIDEO_TILE_MODE_ZFLIPZ_2X2: GstVideoTileMode = 65536; -#[cfg(any(feature = "v1_18", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] +#[cfg(feature = "v1_18")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub const GST_VIDEO_TILE_MODE_LINEAR: GstVideoTileMode = 131072; pub type GstVideoTileType = c_int; @@ -440,8 +440,8 @@ pub const GST_VIDEO_TRANSFER_ADOBERGB: GstVideoTransferFunction = 12; pub const GST_VIDEO_TRANSFER_BT2020_10: GstVideoTransferFunction = 13; pub const GST_VIDEO_TRANSFER_SMPTE2084: GstVideoTransferFunction = 14; pub const GST_VIDEO_TRANSFER_ARIB_STD_B67: GstVideoTransferFunction = 15; -#[cfg(any(feature = "v1_18", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] +#[cfg(feature = "v1_18")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub const GST_VIDEO_TRANSFER_BT601: GstVideoTransferFunction = 16; pub type GstVideoVBIParserResult = c_int; @@ -584,8 +584,8 @@ pub const GST_VIDEO_CODEC_FRAME_FLAG_DECODE_ONLY: GstVideoCodecFrameFlags = 1; pub const GST_VIDEO_CODEC_FRAME_FLAG_SYNC_POINT: GstVideoCodecFrameFlags = 2; pub const GST_VIDEO_CODEC_FRAME_FLAG_FORCE_KEYFRAME: GstVideoCodecFrameFlags = 4; pub const GST_VIDEO_CODEC_FRAME_FLAG_FORCE_KEYFRAME_HEADERS: GstVideoCodecFrameFlags = 8; -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub const GST_VIDEO_CODEC_FRAME_FLAG_CORRUPTED: GstVideoCodecFrameFlags = 16; pub type GstVideoDecoderRequestSyncPointFlags = c_uint; @@ -614,8 +614,8 @@ pub const GST_VIDEO_FORMAT_FLAG_PALETTE: GstVideoFormatFlags = 32; pub const GST_VIDEO_FORMAT_FLAG_COMPLEX: GstVideoFormatFlags = 64; pub const GST_VIDEO_FORMAT_FLAG_UNPACK: GstVideoFormatFlags = 128; pub const GST_VIDEO_FORMAT_FLAG_TILED: GstVideoFormatFlags = 256; -#[cfg(any(feature = "v1_22", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] +#[cfg(feature = "v1_22")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] pub const GST_VIDEO_FORMAT_FLAG_SUBTILES: GstVideoFormatFlags = 512; pub type GstVideoFrameFlags = c_uint; @@ -2471,15 +2471,15 @@ extern "C" { //========================================================================= // GstVideoAFDSpec //========================================================================= - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, 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(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub fn gst_video_afd_value_get_type() -> GType; //========================================================================= @@ -2490,28 +2490,28 @@ extern "C" { //========================================================================= // GstVideoAncillaryDID //========================================================================= - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, 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(feature = "v1_16")] + #[cfg_attr(docsrs, 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(feature = "v1_16")] + #[cfg_attr(docsrs, 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(feature = "v1_16")] + #[cfg_attr(docsrs, 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(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] pub fn gst_video_caption_type_to_caps(type_: GstVideoCaptionType) -> *mut gst::GstCaps; //========================================================================= @@ -2528,36 +2528,36 @@ 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(feature = "v1_18")] + #[cfg_attr(docsrs, 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(feature = "v1_18")] + #[cfg_attr(docsrs, 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(feature = "v1_18")] + #[cfg_attr(docsrs, 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_22", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] + #[cfg(feature = "v1_22")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] pub fn gst_video_color_primaries_is_equivalent( primaries: GstVideoColorPrimaries, other: GstVideoColorPrimaries, ) -> gboolean; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub fn gst_video_color_primaries_to_iso(primaries: GstVideoColorPrimaries) -> c_uint; //========================================================================= @@ -2607,15 +2607,15 @@ extern "C" { //========================================================================= // GstVideoGLTextureOrientation //========================================================================= - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_video_gl_texture_orientation_get_type() -> GType; //========================================================================= // GstVideoGLTextureType //========================================================================= - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_video_gl_texture_type_get_type() -> GType; //========================================================================= @@ -2680,45 +2680,45 @@ extern "C" { // GstVideoTransferFunction //========================================================================= pub fn gst_video_transfer_function_get_type() -> GType; - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_video_transfer_function_decode( func: GstVideoTransferFunction, val: c_double, ) -> c_double; - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_video_transfer_function_encode( func: GstVideoTransferFunction, val: c_double, ) -> c_double; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, 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(feature = "v1_18")] + #[cfg_attr(docsrs, 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(feature = "v1_18")] + #[cfg_attr(docsrs, 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(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] pub fn gst_video_vbi_parser_result_get_type() -> GType; //========================================================================= // GstNavigationModifierType //========================================================================= - #[cfg(any(feature = "v1_22", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] + #[cfg(feature = "v1_22")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] pub fn gst_navigation_modifier_type_get_type() -> GType; //========================================================================= @@ -2735,25 +2735,25 @@ extern "C" { // GstVideoChromaSite //========================================================================= pub fn gst_video_chroma_site_get_type() -> GType; - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_video_chroma_site_from_string(s: *const c_char) -> GstVideoChromaSite; - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_video_chroma_site_to_string(site: GstVideoChromaSite) -> *mut c_char; //========================================================================= // GstVideoCodecFrameFlags //========================================================================= - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_video_codec_frame_flags_get_type() -> GType; //========================================================================= // GstVideoDecoderRequestSyncPointFlags //========================================================================= - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_video_decoder_request_sync_point_flags_get_type() -> GType; //========================================================================= @@ -2789,8 +2789,8 @@ extern "C" { //========================================================================= // GstVideoOverlayFormatFlags //========================================================================= - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] pub fn gst_video_overlay_format_flags_get_type() -> GType; //========================================================================= @@ -2811,15 +2811,15 @@ extern "C" { //========================================================================= // GstVideoTimeCodeFlags //========================================================================= - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, 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(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub fn gst_video_afd_meta_get_info() -> *const gst::GstMetaInfo; //========================================================================= @@ -2839,15 +2839,15 @@ extern "C" { //========================================================================= // GstVideoBarMeta //========================================================================= - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, 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(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] pub fn gst_video_caption_meta_get_info() -> *const gst::GstMetaInfo; //========================================================================= @@ -2871,8 +2871,8 @@ extern "C" { //========================================================================= // GstVideoCodecAlphaMeta //========================================================================= - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_video_codec_alpha_meta_get_info() -> *const gst::GstMetaInfo; //========================================================================= @@ -2906,8 +2906,8 @@ extern "C" { cinfo: *const GstVideoColorimetry, other: *const GstVideoColorimetry, ) -> gboolean; - #[cfg(any(feature = "v1_22", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] + #[cfg(feature = "v1_22")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] pub fn gst_video_colorimetry_is_equivalent( cinfo: *const GstVideoColorimetry, bitdepth: c_uint, @@ -2923,35 +2923,35 @@ extern "C" { //========================================================================= // GstVideoContentLightLevel //========================================================================= - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, 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(feature = "v1_18")] + #[cfg_attr(docsrs, 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(feature = "v1_18")] + #[cfg_attr(docsrs, 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(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub fn gst_video_content_light_level_init(linfo: *mut GstVideoContentLightLevel); - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_video_content_light_level_is_equal( linfo: *const GstVideoContentLightLevel, other: *const GstVideoContentLightLevel, ) -> gboolean; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub fn gst_video_content_light_level_to_string( linfo: *const GstVideoContentLightLevel, ) -> *mut c_char; @@ -2964,18 +2964,18 @@ extern "C" { src: *const GstVideoFrame, dest: *mut GstVideoFrame, ); - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_video_converter_frame_finish(convert: *mut GstVideoConverter); pub fn gst_video_converter_free(convert: *mut GstVideoConverter); pub fn gst_video_converter_get_config( convert: *mut GstVideoConverter, ) -> *const gst::GstStructure; - #[cfg(any(feature = "v1_22", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] + #[cfg(feature = "v1_22")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] pub fn gst_video_converter_get_in_info(convert: *mut GstVideoConverter) -> *const GstVideoInfo; - #[cfg(any(feature = "v1_22", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] + #[cfg(feature = "v1_22")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] pub fn gst_video_converter_get_out_info(convert: *mut GstVideoConverter) -> *const GstVideoInfo; pub fn gst_video_converter_set_config( @@ -2987,8 +2987,8 @@ extern "C" { out_info: *const GstVideoInfo, config: *mut gst::GstStructure, ) -> *mut GstVideoConverter; - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_video_converter_new_with_pool( in_info: *const GstVideoInfo, out_info: *const GstVideoInfo, @@ -3023,15 +3023,15 @@ extern "C" { //========================================================================= // GstVideoFormatInfo //========================================================================= - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub fn gst_video_format_info_component( info: *const GstVideoFormatInfo, plane: c_uint, components: *mut c_int, ); - #[cfg(any(feature = "v1_22", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] + #[cfg(feature = "v1_22")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] pub fn gst_video_format_info_extrapolate_stride( finfo: *const GstVideoFormatInfo, plane: c_int, @@ -3076,13 +3076,13 @@ extern "C" { //========================================================================= pub fn gst_video_info_get_type() -> GType; pub fn gst_video_info_new() -> *mut GstVideoInfo; - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_video_info_new_from_caps(caps: *const gst::GstCaps) -> *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(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub fn gst_video_info_align_full( info: *mut GstVideoInfo, align: *mut GstVideoAlignment, @@ -3107,8 +3107,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(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] pub fn gst_video_info_set_interlaced_format( info: *mut GstVideoInfo, format: GstVideoFormat, @@ -3124,65 +3124,65 @@ extern "C" { //========================================================================= // GstVideoInfoDmaDrm //========================================================================= - #[cfg(any(feature = "v1_24", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_24")))] + #[cfg(feature = "v1_24")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))] pub fn gst_video_info_dma_drm_get_type() -> GType; - #[cfg(any(feature = "v1_24", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_24")))] + #[cfg(feature = "v1_24")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))] pub fn gst_video_info_dma_drm_new() -> *mut GstVideoInfoDmaDrm; - #[cfg(any(feature = "v1_24", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_24")))] + #[cfg(feature = "v1_24")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))] pub fn gst_video_info_dma_drm_new_from_caps( caps: *const gst::GstCaps, ) -> *mut GstVideoInfoDmaDrm; - #[cfg(any(feature = "v1_24", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_24")))] + #[cfg(feature = "v1_24")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))] pub fn gst_video_info_dma_drm_free(drm_info: *mut GstVideoInfoDmaDrm); - #[cfg(any(feature = "v1_24", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_24")))] + #[cfg(feature = "v1_24")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))] pub fn gst_video_info_dma_drm_to_caps(drm_info: *const GstVideoInfoDmaDrm) -> *mut gst::GstCaps; - #[cfg(any(feature = "v1_24", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_24")))] + #[cfg(feature = "v1_24")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))] pub fn gst_video_info_dma_drm_from_caps( drm_info: *mut GstVideoInfoDmaDrm, caps: *const gst::GstCaps, ) -> gboolean; - #[cfg(any(feature = "v1_24", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_24")))] + #[cfg(feature = "v1_24")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))] pub fn gst_video_info_dma_drm_init(drm_info: *mut GstVideoInfoDmaDrm); //========================================================================= // GstVideoMasteringDisplayInfo //========================================================================= - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, 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(feature = "v1_18")] + #[cfg_attr(docsrs, 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(feature = "v1_18")] + #[cfg_attr(docsrs, 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(feature = "v1_18")] + #[cfg_attr(docsrs, 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(feature = "v1_18")] + #[cfg_attr(docsrs, 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(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub fn gst_video_mastering_display_info_from_string( minfo: *mut GstVideoMasteringDisplayInfo, mastering: *const c_char, @@ -3191,14 +3191,14 @@ extern "C" { //========================================================================= // GstVideoMeta //========================================================================= - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub fn gst_video_meta_get_plane_height( meta: *mut GstVideoMeta, plane_height: *mut [c_uint; 4], ) -> gboolean; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub fn gst_video_meta_get_plane_size( meta: *mut GstVideoMeta, plane_size: *mut [size_t; 4], @@ -3211,8 +3211,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(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub fn gst_video_meta_set_alignment( meta: *mut GstVideoMeta, alignment: GstVideoAlignment, @@ -3365,8 +3365,8 @@ extern "C" { //========================================================================= // GstVideoSEIUserDataUnregisteredMeta //========================================================================= - #[cfg(any(feature = "v1_22", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] + #[cfg(feature = "v1_22")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] pub fn gst_video_sei_user_data_unregistered_meta_get_info() -> *const gst::GstMetaInfo; //========================================================================= @@ -3447,8 +3447,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(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] pub fn gst_video_time_code_new_from_date_time_full( fps_n: c_uint, fps_d: c_uint, @@ -3491,8 +3491,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(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] pub fn gst_video_time_code_init_from_date_time_full( tc: *mut GstVideoTimeCode, fps_n: c_uint, @@ -3540,17 +3540,17 @@ extern "C" { //========================================================================= // GstVideoVBIEncoder //========================================================================= - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, 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(feature = "v1_16")] + #[cfg_attr(docsrs, 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(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] pub fn gst_video_vbi_encoder_add_ancillary( encoder: *mut GstVideoVBIEncoder, composite: gboolean, @@ -3559,41 +3559,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(feature = "v1_16")] + #[cfg_attr(docsrs, 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(feature = "v1_16")] + #[cfg_attr(docsrs, 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(feature = "v1_16")] + #[cfg_attr(docsrs, 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(feature = "v1_16")] + #[cfg_attr(docsrs, 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(feature = "v1_16")] + #[cfg_attr(docsrs, 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(feature = "v1_16")] + #[cfg_attr(docsrs, 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(feature = "v1_16")] + #[cfg_attr(docsrs, 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(feature = "v1_16")] + #[cfg_attr(docsrs, 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(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] pub fn gst_video_vbi_parser_get_ancillary( parser: *mut GstVideoVBIParser, anc: *mut GstVideoAncillary, @@ -3607,11 +3607,11 @@ extern "C" { //========================================================================= // GstVideoAggregator //========================================================================= - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] pub fn gst_video_aggregator_get_type() -> GType; - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_video_aggregator_get_execution_task_pool( vagg: *mut GstVideoAggregator, ) -> *mut gst::GstTaskPool; @@ -3619,11 +3619,11 @@ extern "C" { //========================================================================= // GstVideoAggregatorConvertPad //========================================================================= - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, 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(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] pub fn gst_video_aggregator_convert_pad_update_conversion_info( pad: *mut GstVideoAggregatorConvertPad, ); @@ -3631,25 +3631,25 @@ extern "C" { //========================================================================= // GstVideoAggregatorPad //========================================================================= - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, 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(feature = "v1_16")] + #[cfg_attr(docsrs, 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(feature = "v1_16")] + #[cfg_attr(docsrs, 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(feature = "v1_16")] + #[cfg_attr(docsrs, 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(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] pub fn gst_video_aggregator_pad_set_needs_alpha( pad: *mut GstVideoAggregatorPad, needs_alpha: gboolean, @@ -3658,8 +3658,8 @@ extern "C" { //========================================================================= // GstVideoAggregatorParallelConvertPad //========================================================================= - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_video_aggregator_parallel_convert_pad_get_type() -> GType; //========================================================================= @@ -3689,8 +3689,8 @@ extern "C" { dec: *mut GstVideoDecoder, frame: *mut GstVideoCodecFrame, ) -> gst::GstFlowReturn; - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_video_decoder_drop_subframe( dec: *mut GstVideoDecoder, frame: *mut GstVideoCodecFrame, @@ -3699,8 +3699,8 @@ extern "C" { decoder: *mut GstVideoDecoder, frame: *mut GstVideoCodecFrame, ) -> gst::GstFlowReturn; - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_video_decoder_finish_subframe( decoder: *mut GstVideoDecoder, frame: *mut GstVideoCodecFrame, @@ -3719,8 +3719,8 @@ extern "C" { frame_number: c_int, ) -> *mut GstVideoCodecFrame; pub fn gst_video_decoder_get_frames(decoder: *mut GstVideoDecoder) -> *mut glib::GList; - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_video_decoder_get_input_subframe_index( decoder: *mut GstVideoDecoder, frame: *mut GstVideoCodecFrame, @@ -3736,8 +3736,8 @@ extern "C" { ) -> gst::GstClockTimeDiff; pub fn gst_video_decoder_get_max_errors(dec: *mut GstVideoDecoder) -> c_int; pub fn gst_video_decoder_get_needs_format(dec: *mut GstVideoDecoder) -> gboolean; - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_video_decoder_get_needs_sync_point(dec: *mut GstVideoDecoder) -> gboolean; pub fn gst_video_decoder_get_oldest_frame( decoder: *mut GstVideoDecoder, @@ -3747,19 +3747,19 @@ extern "C" { ) -> *mut GstVideoCodecState; pub fn gst_video_decoder_get_packetized(decoder: *mut GstVideoDecoder) -> gboolean; pub fn gst_video_decoder_get_pending_frame_size(decoder: *mut GstVideoDecoder) -> size_t; - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_video_decoder_get_processed_subframe_index( decoder: *mut GstVideoDecoder, frame: *mut GstVideoCodecFrame, ) -> c_uint; pub fn gst_video_decoder_get_qos_proportion(decoder: *mut GstVideoDecoder) -> c_double; - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_video_decoder_get_subframe_mode(decoder: *mut GstVideoDecoder) -> gboolean; pub fn gst_video_decoder_have_frame(decoder: *mut GstVideoDecoder) -> gst::GstFlowReturn; - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_video_decoder_have_last_subframe( decoder: *mut GstVideoDecoder, frame: *mut GstVideoCodecFrame, @@ -3779,16 +3779,16 @@ extern "C" { dec: *mut GstVideoDecoder, frame: *mut GstVideoCodecFrame, ); - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_video_decoder_request_sync_point( dec: *mut GstVideoDecoder, frame: *mut GstVideoCodecFrame, flags: GstVideoDecoderRequestSyncPointFlags, ); 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(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] pub fn gst_video_decoder_set_interlaced_output_state( decoder: *mut GstVideoDecoder, fmt: GstVideoFormat, @@ -3804,8 +3804,8 @@ extern "C" { ); pub fn gst_video_decoder_set_max_errors(dec: *mut GstVideoDecoder, num: c_int); pub fn gst_video_decoder_set_needs_format(dec: *mut GstVideoDecoder, enabled: gboolean); - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_video_decoder_set_needs_sync_point(dec: *mut GstVideoDecoder, enabled: gboolean); pub fn gst_video_decoder_set_output_state( decoder: *mut GstVideoDecoder, @@ -3815,8 +3815,8 @@ extern "C" { reference: *mut GstVideoCodecState, ) -> *mut GstVideoCodecState; pub fn gst_video_decoder_set_packetized(decoder: *mut GstVideoDecoder, packetized: gboolean); - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_video_decoder_set_subframe_mode( decoder: *mut GstVideoDecoder, subframe_mode: gboolean, @@ -3843,8 +3843,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(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub fn gst_video_encoder_finish_subframe( encoder: *mut GstVideoEncoder, frame: *mut GstVideoCodecFrame, @@ -3868,8 +3868,8 @@ extern "C" { 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(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub fn gst_video_encoder_get_min_force_key_unit_interval( encoder: *mut GstVideoEncoder, ) -> gst::GstClockTime; @@ -3897,8 +3897,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(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub fn gst_video_encoder_set_min_force_key_unit_interval( encoder: *mut GstVideoEncoder, interval: gst::GstClockTime, @@ -3958,54 +3958,54 @@ extern "C" { // GstNavigation //========================================================================= pub fn gst_navigation_get_type() -> GType; - #[cfg(any(feature = "v1_22", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] + #[cfg(feature = "v1_22")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] pub fn gst_navigation_event_get_coordinates( event: *mut gst::GstEvent, x: *mut c_double, y: *mut c_double, ) -> gboolean; pub fn gst_navigation_event_get_type(event: *mut gst::GstEvent) -> GstNavigationEventType; - #[cfg(any(feature = "v1_22", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] + #[cfg(feature = "v1_22")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] pub fn gst_navigation_event_new_command(command: GstNavigationCommand) -> *mut gst::GstEvent; - #[cfg(any(feature = "v1_22", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] + #[cfg(feature = "v1_22")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] pub fn gst_navigation_event_new_key_press( key: *const c_char, state: GstNavigationModifierType, ) -> *mut gst::GstEvent; - #[cfg(any(feature = "v1_22", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] + #[cfg(feature = "v1_22")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] pub fn gst_navigation_event_new_key_release( key: *const c_char, state: GstNavigationModifierType, ) -> *mut gst::GstEvent; - #[cfg(any(feature = "v1_22", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] + #[cfg(feature = "v1_22")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] pub fn gst_navigation_event_new_mouse_button_press( button: c_int, x: c_double, y: c_double, state: GstNavigationModifierType, ) -> *mut gst::GstEvent; - #[cfg(any(feature = "v1_22", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] + #[cfg(feature = "v1_22")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] pub fn gst_navigation_event_new_mouse_button_release( button: c_int, x: c_double, y: c_double, state: GstNavigationModifierType, ) -> *mut gst::GstEvent; - #[cfg(any(feature = "v1_22", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] + #[cfg(feature = "v1_22")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] pub fn gst_navigation_event_new_mouse_move( x: c_double, y: c_double, state: GstNavigationModifierType, ) -> *mut gst::GstEvent; - #[cfg(any(feature = "v1_22", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] + #[cfg(feature = "v1_22")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] pub fn gst_navigation_event_new_mouse_scroll( x: c_double, y: c_double, @@ -4013,13 +4013,13 @@ extern "C" { delta_y: c_double, state: GstNavigationModifierType, ) -> *mut gst::GstEvent; - #[cfg(any(feature = "v1_22", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] + #[cfg(feature = "v1_22")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] pub fn gst_navigation_event_new_touch_cancel( state: GstNavigationModifierType, ) -> *mut gst::GstEvent; - #[cfg(any(feature = "v1_22", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] + #[cfg(feature = "v1_22")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] pub fn gst_navigation_event_new_touch_down( identifier: c_uint, x: c_double, @@ -4027,13 +4027,13 @@ extern "C" { pressure: c_double, state: GstNavigationModifierType, ) -> *mut gst::GstEvent; - #[cfg(any(feature = "v1_22", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] + #[cfg(feature = "v1_22")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] pub fn gst_navigation_event_new_touch_frame( state: GstNavigationModifierType, ) -> *mut gst::GstEvent; - #[cfg(any(feature = "v1_22", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] + #[cfg(feature = "v1_22")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] pub fn gst_navigation_event_new_touch_motion( identifier: c_uint, x: c_double, @@ -4041,8 +4041,8 @@ extern "C" { pressure: c_double, state: GstNavigationModifierType, ) -> *mut gst::GstEvent; - #[cfg(any(feature = "v1_22", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] + #[cfg(feature = "v1_22")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] pub fn gst_navigation_event_new_touch_up( identifier: c_uint, x: c_double, @@ -4057,8 +4057,8 @@ extern "C" { event: *mut gst::GstEvent, key: *mut *const c_char, ) -> gboolean; - #[cfg(any(feature = "v1_22", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] + #[cfg(feature = "v1_22")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] pub fn gst_navigation_event_parse_modifier_state( event: *mut gst::GstEvent, state: *mut GstNavigationModifierType, @@ -4074,8 +4074,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(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub fn gst_navigation_event_parse_mouse_scroll_event( event: *mut gst::GstEvent, x: *mut c_double, @@ -4083,8 +4083,8 @@ extern "C" { delta_x: *mut c_double, delta_y: *mut c_double, ) -> gboolean; - #[cfg(any(feature = "v1_22", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] + #[cfg(feature = "v1_22")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] pub fn gst_navigation_event_parse_touch_event( event: *mut gst::GstEvent, identifier: *mut c_uint, @@ -4092,16 +4092,16 @@ extern "C" { y: *mut c_double, pressure: *mut c_double, ) -> gboolean; - #[cfg(any(feature = "v1_22", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] + #[cfg(feature = "v1_22")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] pub fn gst_navigation_event_parse_touch_up_event( event: *mut gst::GstEvent, identifier: *mut c_uint, x: *mut c_double, y: *mut c_double, ) -> gboolean; - #[cfg(any(feature = "v1_22", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] + #[cfg(feature = "v1_22")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] pub fn gst_navigation_event_set_coordinates( event: *mut gst::GstEvent, x: c_double, @@ -4175,8 +4175,8 @@ extern "C" { navigation: *mut GstNavigation, structure: *mut gst::GstStructure, ); - #[cfg(any(feature = "v1_22", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] + #[cfg(feature = "v1_22")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] pub fn gst_navigation_send_event_simple( navigation: *mut GstNavigation, event: *mut gst::GstEvent, @@ -4193,8 +4193,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(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub fn gst_navigation_send_mouse_scroll_event( navigation: *mut GstNavigation, x: c_double, @@ -4212,8 +4212,8 @@ extern "C" { // GstVideoOrientation //========================================================================= pub fn gst_video_orientation_get_type() -> GType; - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_video_orientation_from_tag( taglist: *mut gst::GstTagList, method: *mut GstVideoOrientationMethod, @@ -4281,8 +4281,8 @@ extern "C" { //========================================================================= // Other functions //========================================================================= - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub fn gst_buffer_add_video_afd_meta( buffer: *mut gst::GstBuffer, field: u8, @@ -4292,8 +4292,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(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub fn gst_buffer_add_video_bar_meta( buffer: *mut gst::GstBuffer, field: u8, @@ -4301,16 +4301,16 @@ 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(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] pub fn gst_buffer_add_video_caption_meta( buffer: *mut gst::GstBuffer, caption_type: GstVideoCaptionType, data: *const u8, size: size_t, ) -> *mut GstVideoCaptionMeta; - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_buffer_add_video_codec_alpha_meta( buffer: *mut gst::GstBuffer, alpha_buffer: *mut gst::GstBuffer, @@ -4362,8 +4362,8 @@ extern "C" { w: c_uint, h: c_uint, ) -> *mut GstVideoRegionOfInterestMeta; - #[cfg(any(feature = "v1_22", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] + #[cfg(feature = "v1_22")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] pub fn gst_buffer_add_video_sei_user_data_unregistered_meta( buffer: *mut gst::GstBuffer, uuid: *mut u8, @@ -4406,12 +4406,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(feature = "v1_18")] + #[cfg_attr(docsrs, 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(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub fn gst_video_bar_meta_api_get_type() -> GType; pub fn gst_video_blend( dest: *mut GstVideoFrame, @@ -4438,11 +4438,11 @@ 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(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] pub fn gst_video_caption_meta_api_get_type() -> GType; - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_video_center_rect( src: *const GstVideoRectangle, dst: *const GstVideoRectangle, @@ -4456,8 +4456,8 @@ extern "C" { width: c_int, ); pub fn gst_video_chroma_to_string(site: GstVideoChromaSite) -> *const c_char; - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_video_codec_alpha_meta_api_get_type() -> GType; pub fn gst_video_color_transfer_decode( func: GstVideoTransferFunction, @@ -4482,20 +4482,20 @@ extern "C" { destroy_notify: glib::GDestroyNotify, ); pub fn gst_video_crop_meta_api_get_type() -> GType; - #[cfg(any(feature = "v1_24", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_24")))] + #[cfg(feature = "v1_24")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))] pub fn gst_video_dma_drm_fourcc_from_format(format: GstVideoFormat) -> u32; - #[cfg(any(feature = "v1_24", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_24")))] + #[cfg(feature = "v1_24")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))] pub fn gst_video_dma_drm_fourcc_from_string( format_str: *const c_char, modifier: *mut u64, ) -> u32; - #[cfg(any(feature = "v1_24", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_24")))] + #[cfg(feature = "v1_24")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))] pub fn gst_video_dma_drm_fourcc_to_format(fourcc: u32) -> GstVideoFormat; - #[cfg(any(feature = "v1_24", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_24")))] + #[cfg(feature = "v1_24")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))] pub fn gst_video_dma_drm_fourcc_to_string(fourcc: u32, modifier: u64) -> *mut c_char; pub fn gst_video_event_is_force_key_unit(event: *mut gst::GstEvent) -> gboolean; pub fn gst_video_event_new_downstream_force_key_unit( @@ -4529,8 +4529,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(feature = "v1_18")] + #[cfg_attr(docsrs, 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( @@ -4538,25 +4538,25 @@ extern "C" { dest_n: *mut c_int, dest_d: *mut c_int, ) -> gboolean; - #[cfg(any(feature = "v1_22", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] + #[cfg(feature = "v1_22")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] pub fn gst_video_is_common_aspect_ratio( width: c_int, height: c_int, par_n: c_int, par_d: c_int, ) -> gboolean; - #[cfg(any(feature = "v1_24", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_24")))] + #[cfg(feature = "v1_24")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))] pub fn gst_video_is_dma_drm_caps(caps: *const gst::GstCaps) -> gboolean; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, 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(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub fn gst_video_make_raw_caps_with_features( formats: *const GstVideoFormat, len: c_uint, @@ -4582,11 +4582,11 @@ extern "C" { ); pub fn gst_video_overlay_composition_meta_api_get_type() -> GType; pub fn gst_video_region_of_interest_meta_api_get_type() -> GType; - #[cfg(any(feature = "v1_22", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] + #[cfg(feature = "v1_22")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] pub fn gst_video_sei_user_data_unregistered_meta_api_get_type() -> GType; - #[cfg(any(feature = "v1_22", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] + #[cfg(feature = "v1_22")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] pub fn gst_video_sei_user_data_unregistered_parse_precision_time_stamp( user_data: *mut GstVideoSEIUserDataUnregisteredMeta, status: *mut u8, diff --git a/gstreamer-webrtc/src/auto/enums.rs b/gstreamer-webrtc/src/auto/enums.rs index 41b8f7ead..5a03b6341 100644 --- a/gstreamer-webrtc/src/auto/enums.rs +++ b/gstreamer-webrtc/src/auto/enums.rs @@ -3,14 +3,14 @@ // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git) // DO NOT EDIT -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] use glib::{error::ErrorDomain, Quark}; use glib::{translate::*, value::FromValue, value::ToValue, GStr, StaticType, Type}; use std::fmt; -#[cfg(any(feature = "v1_16", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] +#[cfg(feature = "v1_16")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] #[doc(alias = "GstWebRTCBundlePolicy")] @@ -27,8 +27,8 @@ pub enum WebRTCBundlePolicy { __Unknown(i32), } -#[cfg(any(feature = "v1_16", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] +#[cfg(feature = "v1_16")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] #[doc(hidden)] impl IntoGlib for WebRTCBundlePolicy { type GlibType = ffi::GstWebRTCBundlePolicy; @@ -45,8 +45,8 @@ impl IntoGlib for WebRTCBundlePolicy { } } -#[cfg(any(feature = "v1_16", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] +#[cfg(feature = "v1_16")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] #[doc(hidden)] impl FromGlib for WebRTCBundlePolicy { #[inline] @@ -63,8 +63,8 @@ impl FromGlib for WebRTCBundlePolicy { } } -#[cfg(any(feature = "v1_16", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] +#[cfg(feature = "v1_16")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] impl StaticType for WebRTCBundlePolicy { #[inline] fn static_type() -> Type { @@ -72,8 +72,8 @@ impl StaticType for WebRTCBundlePolicy { } } -#[cfg(any(feature = "v1_16", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] +#[cfg(feature = "v1_16")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] impl glib::HasParamSpec for WebRTCBundlePolicy { type ParamSpec = glib::ParamSpecEnum; type SetValue = Self; @@ -84,14 +84,14 @@ impl glib::HasParamSpec for WebRTCBundlePolicy { } } -#[cfg(any(feature = "v1_16", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] +#[cfg(feature = "v1_16")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] impl glib::value::ValueType for WebRTCBundlePolicy { type Type = Self; } -#[cfg(any(feature = "v1_16", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] +#[cfg(feature = "v1_16")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] unsafe impl<'a> FromValue<'a> for WebRTCBundlePolicy { type Checker = glib::value::GenericValueTypeChecker; @@ -102,8 +102,8 @@ unsafe impl<'a> FromValue<'a> for WebRTCBundlePolicy { } } -#[cfg(any(feature = "v1_16", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] +#[cfg(feature = "v1_16")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] impl ToValue for WebRTCBundlePolicy { #[inline] fn to_value(&self) -> glib::Value { @@ -120,8 +120,8 @@ impl ToValue for WebRTCBundlePolicy { } } -#[cfg(any(feature = "v1_16", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] +#[cfg(feature = "v1_16")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] impl From for glib::Value { #[inline] fn from(v: WebRTCBundlePolicy) -> Self { @@ -340,8 +340,8 @@ impl From for glib::Value { } } -#[cfg(any(feature = "v1_16", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] +#[cfg(feature = "v1_16")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] #[doc(alias = "GstWebRTCDataChannelState")] @@ -358,8 +358,8 @@ pub enum WebRTCDataChannelState { __Unknown(i32), } -#[cfg(any(feature = "v1_16", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] +#[cfg(feature = "v1_16")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] #[doc(hidden)] impl IntoGlib for WebRTCDataChannelState { type GlibType = ffi::GstWebRTCDataChannelState; @@ -376,8 +376,8 @@ impl IntoGlib for WebRTCDataChannelState { } } -#[cfg(any(feature = "v1_16", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] +#[cfg(feature = "v1_16")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] #[doc(hidden)] impl FromGlib for WebRTCDataChannelState { #[inline] @@ -394,8 +394,8 @@ impl FromGlib for WebRTCDataChannelState { } } -#[cfg(any(feature = "v1_16", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] +#[cfg(feature = "v1_16")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] impl StaticType for WebRTCDataChannelState { #[inline] fn static_type() -> Type { @@ -403,8 +403,8 @@ impl StaticType for WebRTCDataChannelState { } } -#[cfg(any(feature = "v1_16", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] +#[cfg(feature = "v1_16")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] impl glib::HasParamSpec for WebRTCDataChannelState { type ParamSpec = glib::ParamSpecEnum; type SetValue = Self; @@ -415,14 +415,14 @@ impl glib::HasParamSpec for WebRTCDataChannelState { } } -#[cfg(any(feature = "v1_16", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] +#[cfg(feature = "v1_16")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] impl glib::value::ValueType for WebRTCDataChannelState { type Type = Self; } -#[cfg(any(feature = "v1_16", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] +#[cfg(feature = "v1_16")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] unsafe impl<'a> FromValue<'a> for WebRTCDataChannelState { type Checker = glib::value::GenericValueTypeChecker; @@ -433,8 +433,8 @@ unsafe impl<'a> FromValue<'a> for WebRTCDataChannelState { } } -#[cfg(any(feature = "v1_16", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] +#[cfg(feature = "v1_16")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] impl ToValue for WebRTCDataChannelState { #[inline] fn to_value(&self) -> glib::Value { @@ -451,8 +451,8 @@ impl ToValue for WebRTCDataChannelState { } } -#[cfg(any(feature = "v1_16", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] +#[cfg(feature = "v1_16")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] impl From for glib::Value { #[inline] fn from(v: WebRTCDataChannelState) -> Self { @@ -461,8 +461,8 @@ impl From for glib::Value { } } -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] #[doc(alias = "GstWebRTCError")] @@ -485,20 +485,20 @@ pub enum WebRTCError { InvalidState, #[doc(alias = "GST_WEBRTC_ERROR_INTERNAL_FAILURE")] InternalFailure, - #[cfg(any(feature = "v1_22", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] + #[cfg(feature = "v1_22")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] #[doc(alias = "GST_WEBRTC_ERROR_INVALID_MODIFICATION")] InvalidModification, - #[cfg(any(feature = "v1_22", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] + #[cfg(feature = "v1_22")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] #[doc(alias = "GST_WEBRTC_ERROR_TYPE_ERROR")] TypeError, #[doc(hidden)] __Unknown(i32), } -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(hidden)] impl IntoGlib for WebRTCError { type GlibType = ffi::GstWebRTCError; @@ -517,17 +517,17 @@ impl IntoGlib for WebRTCError { Self::EncoderError => ffi::GST_WEBRTC_ERROR_ENCODER_ERROR, Self::InvalidState => ffi::GST_WEBRTC_ERROR_INVALID_STATE, Self::InternalFailure => ffi::GST_WEBRTC_ERROR_INTERNAL_FAILURE, - #[cfg(any(feature = "v1_22", feature = "dox"))] + #[cfg(feature = "v1_22")] Self::InvalidModification => ffi::GST_WEBRTC_ERROR_INVALID_MODIFICATION, - #[cfg(any(feature = "v1_22", feature = "dox"))] + #[cfg(feature = "v1_22")] Self::TypeError => ffi::GST_WEBRTC_ERROR_TYPE_ERROR, Self::__Unknown(value) => value, } } } -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(hidden)] impl FromGlib for WebRTCError { #[inline] @@ -546,17 +546,17 @@ impl FromGlib for WebRTCError { ffi::GST_WEBRTC_ERROR_ENCODER_ERROR => Self::EncoderError, ffi::GST_WEBRTC_ERROR_INVALID_STATE => Self::InvalidState, ffi::GST_WEBRTC_ERROR_INTERNAL_FAILURE => Self::InternalFailure, - #[cfg(any(feature = "v1_22", feature = "dox"))] + #[cfg(feature = "v1_22")] ffi::GST_WEBRTC_ERROR_INVALID_MODIFICATION => Self::InvalidModification, - #[cfg(any(feature = "v1_22", feature = "dox"))] + #[cfg(feature = "v1_22")] ffi::GST_WEBRTC_ERROR_TYPE_ERROR => Self::TypeError, value => Self::__Unknown(value), } } } -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] impl ErrorDomain for WebRTCError { #[inline] fn domain() -> Quark { @@ -580,8 +580,8 @@ impl ErrorDomain for WebRTCError { } } -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] impl StaticType for WebRTCError { #[inline] fn static_type() -> Type { @@ -589,8 +589,8 @@ impl StaticType for WebRTCError { } } -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] impl glib::HasParamSpec for WebRTCError { type ParamSpec = glib::ParamSpecEnum; type SetValue = Self; @@ -601,14 +601,14 @@ impl glib::HasParamSpec for WebRTCError { } } -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] impl glib::value::ValueType for WebRTCError { type Type = Self; } -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] unsafe impl<'a> FromValue<'a> for WebRTCError { type Checker = glib::value::GenericValueTypeChecker; @@ -619,8 +619,8 @@ unsafe impl<'a> FromValue<'a> for WebRTCError { } } -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] impl ToValue for WebRTCError { #[inline] fn to_value(&self) -> glib::Value { @@ -637,8 +637,8 @@ impl ToValue for WebRTCError { } } -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] impl From for glib::Value { #[inline] fn from(v: WebRTCError) -> Self { @@ -647,8 +647,8 @@ impl From for glib::Value { } } -#[cfg(any(feature = "v1_14_1", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14_1")))] +#[cfg(feature = "v1_14_1")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_14_1")))] #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] #[doc(alias = "GstWebRTCFECType")] @@ -661,8 +661,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(feature = "v1_14_1")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_14_1")))] #[doc(hidden)] impl IntoGlib for WebRTCFECType { type GlibType = ffi::GstWebRTCFECType; @@ -677,8 +677,8 @@ impl IntoGlib for WebRTCFECType { } } -#[cfg(any(feature = "v1_14_1", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14_1")))] +#[cfg(feature = "v1_14_1")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_14_1")))] #[doc(hidden)] impl FromGlib for WebRTCFECType { #[inline] @@ -693,8 +693,8 @@ impl FromGlib for WebRTCFECType { } } -#[cfg(any(feature = "v1_14_1", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14_1")))] +#[cfg(feature = "v1_14_1")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_14_1")))] impl StaticType for WebRTCFECType { #[inline] fn static_type() -> Type { @@ -702,8 +702,8 @@ impl StaticType for WebRTCFECType { } } -#[cfg(any(feature = "v1_14_1", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14_1")))] +#[cfg(feature = "v1_14_1")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_14_1")))] impl glib::HasParamSpec for WebRTCFECType { type ParamSpec = glib::ParamSpecEnum; type SetValue = Self; @@ -714,14 +714,14 @@ impl glib::HasParamSpec for WebRTCFECType { } } -#[cfg(any(feature = "v1_14_1", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14_1")))] +#[cfg(feature = "v1_14_1")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_14_1")))] impl glib::value::ValueType for WebRTCFECType { type Type = Self; } -#[cfg(any(feature = "v1_14_1", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14_1")))] +#[cfg(feature = "v1_14_1")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_14_1")))] unsafe impl<'a> FromValue<'a> for WebRTCFECType { type Checker = glib::value::GenericValueTypeChecker; @@ -732,8 +732,8 @@ unsafe impl<'a> FromValue<'a> for WebRTCFECType { } } -#[cfg(any(feature = "v1_14_1", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14_1")))] +#[cfg(feature = "v1_14_1")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_14_1")))] impl ToValue for WebRTCFECType { #[inline] fn to_value(&self) -> glib::Value { @@ -750,8 +750,8 @@ impl ToValue for WebRTCFECType { } } -#[cfg(any(feature = "v1_14_1", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14_1")))] +#[cfg(feature = "v1_14_1")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_14_1")))] impl From for glib::Value { #[inline] fn from(v: WebRTCFECType) -> Self { @@ -1164,8 +1164,8 @@ impl From for glib::Value { } } -#[cfg(any(feature = "v1_16", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] +#[cfg(feature = "v1_16")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] #[doc(alias = "GstWebRTCICETransportPolicy")] @@ -1178,8 +1178,8 @@ pub enum WebRTCICETransportPolicy { __Unknown(i32), } -#[cfg(any(feature = "v1_16", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] +#[cfg(feature = "v1_16")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] #[doc(hidden)] impl IntoGlib for WebRTCICETransportPolicy { type GlibType = ffi::GstWebRTCICETransportPolicy; @@ -1194,8 +1194,8 @@ impl IntoGlib for WebRTCICETransportPolicy { } } -#[cfg(any(feature = "v1_16", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] +#[cfg(feature = "v1_16")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] #[doc(hidden)] impl FromGlib for WebRTCICETransportPolicy { #[inline] @@ -1210,8 +1210,8 @@ impl FromGlib for WebRTCICETransportPolicy { } } -#[cfg(any(feature = "v1_16", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] +#[cfg(feature = "v1_16")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] impl StaticType for WebRTCICETransportPolicy { #[inline] fn static_type() -> Type { @@ -1219,8 +1219,8 @@ impl StaticType for WebRTCICETransportPolicy { } } -#[cfg(any(feature = "v1_16", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] +#[cfg(feature = "v1_16")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] impl glib::HasParamSpec for WebRTCICETransportPolicy { type ParamSpec = glib::ParamSpecEnum; type SetValue = Self; @@ -1231,14 +1231,14 @@ impl glib::HasParamSpec for WebRTCICETransportPolicy { } } -#[cfg(any(feature = "v1_16", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] +#[cfg(feature = "v1_16")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] impl glib::value::ValueType for WebRTCICETransportPolicy { type Type = Self; } -#[cfg(any(feature = "v1_16", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] +#[cfg(feature = "v1_16")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] unsafe impl<'a> FromValue<'a> for WebRTCICETransportPolicy { type Checker = glib::value::GenericValueTypeChecker; @@ -1249,8 +1249,8 @@ unsafe impl<'a> FromValue<'a> for WebRTCICETransportPolicy { } } -#[cfg(any(feature = "v1_16", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] +#[cfg(feature = "v1_16")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] impl ToValue for WebRTCICETransportPolicy { #[inline] fn to_value(&self) -> glib::Value { @@ -1267,8 +1267,8 @@ impl ToValue for WebRTCICETransportPolicy { } } -#[cfg(any(feature = "v1_16", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] +#[cfg(feature = "v1_16")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] impl From for glib::Value { #[inline] fn from(v: WebRTCICETransportPolicy) -> Self { @@ -1277,8 +1277,8 @@ impl From for glib::Value { } } -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] #[doc(alias = "GstWebRTCKind")] @@ -1293,8 +1293,8 @@ pub enum WebRTCKind { __Unknown(i32), } -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(hidden)] impl IntoGlib for WebRTCKind { type GlibType = ffi::GstWebRTCKind; @@ -1310,8 +1310,8 @@ impl IntoGlib for WebRTCKind { } } -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(hidden)] impl FromGlib for WebRTCKind { #[inline] @@ -1327,8 +1327,8 @@ impl FromGlib for WebRTCKind { } } -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] impl StaticType for WebRTCKind { #[inline] fn static_type() -> Type { @@ -1336,8 +1336,8 @@ impl StaticType for WebRTCKind { } } -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] impl glib::HasParamSpec for WebRTCKind { type ParamSpec = glib::ParamSpecEnum; type SetValue = Self; @@ -1348,14 +1348,14 @@ impl glib::HasParamSpec for WebRTCKind { } } -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] impl glib::value::ValueType for WebRTCKind { type Type = Self; } -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] unsafe impl<'a> FromValue<'a> for WebRTCKind { type Checker = glib::value::GenericValueTypeChecker; @@ -1366,8 +1366,8 @@ unsafe impl<'a> FromValue<'a> for WebRTCKind { } } -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] impl ToValue for WebRTCKind { #[inline] fn to_value(&self) -> glib::Value { @@ -1384,8 +1384,8 @@ impl ToValue for WebRTCKind { } } -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] impl From for glib::Value { #[inline] fn from(v: WebRTCKind) -> Self { @@ -1505,8 +1505,8 @@ impl From for glib::Value { } } -#[cfg(any(feature = "v1_16", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] +#[cfg(feature = "v1_16")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] #[doc(alias = "GstWebRTCPriorityType")] @@ -1523,8 +1523,8 @@ pub enum WebRTCPriorityType { __Unknown(i32), } -#[cfg(any(feature = "v1_16", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] +#[cfg(feature = "v1_16")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] #[doc(hidden)] impl IntoGlib for WebRTCPriorityType { type GlibType = ffi::GstWebRTCPriorityType; @@ -1541,8 +1541,8 @@ impl IntoGlib for WebRTCPriorityType { } } -#[cfg(any(feature = "v1_16", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] +#[cfg(feature = "v1_16")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] #[doc(hidden)] impl FromGlib for WebRTCPriorityType { #[inline] @@ -1559,8 +1559,8 @@ impl FromGlib for WebRTCPriorityType { } } -#[cfg(any(feature = "v1_16", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] +#[cfg(feature = "v1_16")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] impl StaticType for WebRTCPriorityType { #[inline] fn static_type() -> Type { @@ -1568,8 +1568,8 @@ impl StaticType for WebRTCPriorityType { } } -#[cfg(any(feature = "v1_16", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] +#[cfg(feature = "v1_16")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] impl glib::HasParamSpec for WebRTCPriorityType { type ParamSpec = glib::ParamSpecEnum; type SetValue = Self; @@ -1580,14 +1580,14 @@ impl glib::HasParamSpec for WebRTCPriorityType { } } -#[cfg(any(feature = "v1_16", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] +#[cfg(feature = "v1_16")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] impl glib::value::ValueType for WebRTCPriorityType { type Type = Self; } -#[cfg(any(feature = "v1_16", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] +#[cfg(feature = "v1_16")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] unsafe impl<'a> FromValue<'a> for WebRTCPriorityType { type Checker = glib::value::GenericValueTypeChecker; @@ -1598,8 +1598,8 @@ unsafe impl<'a> FromValue<'a> for WebRTCPriorityType { } } -#[cfg(any(feature = "v1_16", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] +#[cfg(feature = "v1_16")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] impl ToValue for WebRTCPriorityType { #[inline] fn to_value(&self) -> glib::Value { @@ -1616,8 +1616,8 @@ impl ToValue for WebRTCPriorityType { } } -#[cfg(any(feature = "v1_16", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] +#[cfg(feature = "v1_16")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] impl From for glib::Value { #[inline] fn from(v: WebRTCPriorityType) -> Self { @@ -1733,8 +1733,8 @@ impl From for glib::Value { } } -#[cfg(any(feature = "v1_16", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] +#[cfg(feature = "v1_16")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] #[doc(alias = "GstWebRTCSCTPTransportState")] @@ -1751,8 +1751,8 @@ pub enum WebRTCSCTPTransportState { __Unknown(i32), } -#[cfg(any(feature = "v1_16", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] +#[cfg(feature = "v1_16")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] #[doc(hidden)] impl IntoGlib for WebRTCSCTPTransportState { type GlibType = ffi::GstWebRTCSCTPTransportState; @@ -1769,8 +1769,8 @@ impl IntoGlib for WebRTCSCTPTransportState { } } -#[cfg(any(feature = "v1_16", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] +#[cfg(feature = "v1_16")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] #[doc(hidden)] impl FromGlib for WebRTCSCTPTransportState { #[inline] @@ -1787,8 +1787,8 @@ impl FromGlib for WebRTCSCTPTransportState { } } -#[cfg(any(feature = "v1_16", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] +#[cfg(feature = "v1_16")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] impl StaticType for WebRTCSCTPTransportState { #[inline] fn static_type() -> Type { @@ -1796,8 +1796,8 @@ impl StaticType for WebRTCSCTPTransportState { } } -#[cfg(any(feature = "v1_16", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] +#[cfg(feature = "v1_16")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] impl glib::HasParamSpec for WebRTCSCTPTransportState { type ParamSpec = glib::ParamSpecEnum; type SetValue = Self; @@ -1808,14 +1808,14 @@ impl glib::HasParamSpec for WebRTCSCTPTransportState { } } -#[cfg(any(feature = "v1_16", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] +#[cfg(feature = "v1_16")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] impl glib::value::ValueType for WebRTCSCTPTransportState { type Type = Self; } -#[cfg(any(feature = "v1_16", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] +#[cfg(feature = "v1_16")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] unsafe impl<'a> FromValue<'a> for WebRTCSCTPTransportState { type Checker = glib::value::GenericValueTypeChecker; @@ -1826,8 +1826,8 @@ unsafe impl<'a> FromValue<'a> for WebRTCSCTPTransportState { } } -#[cfg(any(feature = "v1_16", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] +#[cfg(feature = "v1_16")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] impl ToValue for WebRTCSCTPTransportState { #[inline] fn to_value(&self) -> glib::Value { @@ -1844,8 +1844,8 @@ impl ToValue for WebRTCSCTPTransportState { } } -#[cfg(any(feature = "v1_16", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] +#[cfg(feature = "v1_16")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] impl From for glib::Value { #[inline] fn from(v: WebRTCSCTPTransportState) -> Self { diff --git a/gstreamer-webrtc/src/auto/mod.rs b/gstreamer-webrtc/src/auto/mod.rs index 29a1d2c03..c014b25c6 100644 --- a/gstreamer-webrtc/src/auto/mod.rs +++ b/gstreamer-webrtc/src/auto/mod.rs @@ -6,25 +6,25 @@ 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(feature = "v1_18")] +#[cfg_attr(docsrs, 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(feature = "v1_18")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub use self::web_rtc_data_channel::WebRTCDataChannel; -#[cfg(any(feature = "v1_22", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] +#[cfg(feature = "v1_22")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] mod web_rtcice; -#[cfg(any(feature = "v1_22", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] +#[cfg(feature = "v1_22")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] pub use self::web_rtcice::WebRTCICE; -#[cfg(any(feature = "v1_22", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] +#[cfg(feature = "v1_22")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] mod web_rtcice_stream; -#[cfg(any(feature = "v1_22", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] +#[cfg(feature = "v1_22")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] pub use self::web_rtcice_stream::WebRTCICEStream; mod web_rtcice_transport; @@ -39,55 +39,55 @@ pub use self::web_rtcrtp_sender::WebRTCRTPSender; mod web_rtcrtp_transceiver; pub use self::web_rtcrtp_transceiver::WebRTCRTPTransceiver; -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] mod web_rtcsctp_transport; -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub use self::web_rtcsctp_transport::WebRTCSCTPTransport; -#[cfg(any(feature = "v1_22", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] +#[cfg(feature = "v1_22")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] mod web_rtcice_candidate_stats; -#[cfg(any(feature = "v1_22", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] +#[cfg(feature = "v1_22")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] pub use self::web_rtcice_candidate_stats::WebRTCICECandidateStats; 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(feature = "v1_16")] +#[cfg_attr(docsrs, 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(feature = "v1_16")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] pub use self::enums::WebRTCDataChannelState; -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub use self::enums::WebRTCError; -#[cfg(any(feature = "v1_14_1", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14_1")))] +#[cfg(feature = "v1_14_1")] +#[cfg_attr(docsrs, 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(feature = "v1_16")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] pub use self::enums::WebRTCICETransportPolicy; -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub use self::enums::WebRTCKind; pub use self::enums::WebRTCPeerConnectionState; -#[cfg(any(feature = "v1_16", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] +#[cfg(feature = "v1_16")] +#[cfg_attr(docsrs, 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(feature = "v1_16")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] pub use self::enums::WebRTCSCTPTransportState; pub use self::enums::WebRTCSDPType; pub use self::enums::WebRTCSignalingState; @@ -95,10 +95,10 @@ pub use self::enums::WebRTCStatsType; #[doc(hidden)] pub mod traits { - #[cfg(any(feature = "v1_22", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] + #[cfg(feature = "v1_22")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] pub use super::web_rtcice::WebRTCICEExt; - #[cfg(any(feature = "v1_22", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] + #[cfg(feature = "v1_22")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] pub use super::web_rtcice_stream::WebRTCICEStreamExt; } diff --git a/gstreamer-webrtc/src/auto/versions.txt b/gstreamer-webrtc/src/auto/versions.txt index 94b843e6a..f606c95a2 100644 --- a/gstreamer-webrtc/src/auto/versions.txt +++ b/gstreamer-webrtc/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2) +Generated by gir (https://github.com/gtk-rs/gir @ 719372782330) from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836) diff --git a/gstreamer-webrtc/src/auto/web_rtc_data_channel.rs b/gstreamer-webrtc/src/auto/web_rtc_data_channel.rs index 64e39f74b..8ec0e6b7d 100644 --- a/gstreamer-webrtc/src/auto/web_rtc_data_channel.rs +++ b/gstreamer-webrtc/src/auto/web_rtc_data_channel.rs @@ -9,8 +9,8 @@ use glib::{ signal::{connect_raw, SignalHandlerId}, translate::*, }; -#[cfg(any(feature = "v1_22", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] +#[cfg(feature = "v1_22")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] use std::ptr; use std::{boxed::Box as Box_, mem::transmute}; @@ -38,8 +38,8 @@ impl WebRTCDataChannel { } } - #[cfg(any(feature = "v1_22", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] + #[cfg(feature = "v1_22")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] #[doc(alias = "gst_webrtc_data_channel_send_data_full")] pub fn send_data_full(&self, data: Option<&glib::Bytes>) -> Result<(), glib::Error> { unsafe { @@ -65,8 +65,8 @@ impl WebRTCDataChannel { } } - #[cfg(any(feature = "v1_22", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] + #[cfg(feature = "v1_22")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] #[doc(alias = "gst_webrtc_data_channel_send_string_full")] pub fn send_string_full(&self, str: Option<&str>) -> Result<(), glib::Error> { unsafe { diff --git a/gstreamer-webrtc/src/auto/web_rtcice.rs b/gstreamer-webrtc/src/auto/web_rtcice.rs index 9869da7ac..d46042d79 100644 --- a/gstreamer-webrtc/src/auto/web_rtcice.rs +++ b/gstreamer-webrtc/src/auto/web_rtcice.rs @@ -113,23 +113,23 @@ pub trait WebRTCICEExt: 'static { #[doc(alias = "gst_webrtc_ice_set_turn_server")] fn set_turn_server(&self, uri: Option<&str>); - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(alias = "max-rtp-port")] fn max_rtp_port(&self) -> u32; - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(alias = "max-rtp-port")] fn set_max_rtp_port(&self, max_rtp_port: u32); - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(alias = "min-rtp-port")] fn min_rtp_port(&self) -> u32; - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(alias = "min-rtp-port")] fn set_min_rtp_port(&self, min_rtp_port: u32); @@ -141,16 +141,16 @@ pub trait WebRTCICEExt: 'static { fn emit_add_local_ip_address(&self, address: &str) -> bool; - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(alias = "max-rtp-port")] fn connect_max_rtp_port_notify( &self, f: F, ) -> SignalHandlerId; - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(alias = "min-rtp-port")] fn connect_min_rtp_port_notify( &self, @@ -392,26 +392,26 @@ impl> WebRTCICEExt for O { } } - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] fn max_rtp_port(&self) -> u32 { glib::ObjectExt::property(self.as_ref(), "max-rtp-port") } - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] fn set_max_rtp_port(&self, max_rtp_port: u32) { glib::ObjectExt::set_property(self.as_ref(), "max-rtp-port", max_rtp_port) } - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] fn min_rtp_port(&self) -> u32 { glib::ObjectExt::property(self.as_ref(), "min-rtp-port") } - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] fn set_min_rtp_port(&self, min_rtp_port: u32) { glib::ObjectExt::set_property(self.as_ref(), "min-rtp-port", min_rtp_port) } @@ -452,8 +452,8 @@ impl> WebRTCICEExt for O { self.emit_by_name("add-local-ip-address", &[&address]) } - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] fn connect_max_rtp_port_notify( &self, f: F, @@ -482,8 +482,8 @@ impl> WebRTCICEExt for O { } } - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] fn connect_min_rtp_port_notify( &self, f: F, diff --git a/gstreamer-webrtc/src/auto/web_rtcrtp_receiver.rs b/gstreamer-webrtc/src/auto/web_rtcrtp_receiver.rs index 8dbae9222..ed5243f33 100644 --- a/gstreamer-webrtc/src/auto/web_rtcrtp_receiver.rs +++ b/gstreamer-webrtc/src/auto/web_rtcrtp_receiver.rs @@ -3,18 +3,18 @@ // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git) // DO NOT EDIT -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] use crate::WebRTCDTLSTransport; -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] use glib::{ prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, }; -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] use std::{boxed::Box as Box_, mem::transmute}; glib::wrapper! { @@ -27,14 +27,14 @@ glib::wrapper! { } impl WebRTCRTPReceiver { - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn transport(&self) -> Option { glib::ObjectExt::property(self, "transport") } - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(alias = "transport")] pub fn connect_transport_notify( &self, diff --git a/gstreamer-webrtc/src/auto/web_rtcrtp_sender.rs b/gstreamer-webrtc/src/auto/web_rtcrtp_sender.rs index 131455e29..8c87c4f91 100644 --- a/gstreamer-webrtc/src/auto/web_rtcrtp_sender.rs +++ b/gstreamer-webrtc/src/auto/web_rtcrtp_sender.rs @@ -3,18 +3,18 @@ // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git) // DO NOT EDIT -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] use crate::{WebRTCDTLSTransport, WebRTCPriorityType}; -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] use glib::{ prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, }; -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] use std::{boxed::Box as Box_, mem::transmute}; glib::wrapper! { @@ -27,8 +27,8 @@ glib::wrapper! { } impl WebRTCRTPSender { - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(alias = "gst_webrtc_rtp_sender_set_priority")] pub fn set_priority(&self, priority: WebRTCPriorityType) { unsafe { @@ -36,20 +36,20 @@ impl WebRTCRTPSender { } } - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn priority(&self) -> WebRTCPriorityType { glib::ObjectExt::property(self, "priority") } - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn transport(&self) -> Option { glib::ObjectExt::property(self, "transport") } - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(alias = "priority")] pub fn connect_priority_notify( &self, @@ -78,8 +78,8 @@ impl WebRTCRTPSender { } } - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(alias = "transport")] pub fn connect_transport_notify( &self, diff --git a/gstreamer-webrtc/src/auto/web_rtcrtp_transceiver.rs b/gstreamer-webrtc/src/auto/web_rtcrtp_transceiver.rs index 161fffd97..ba56573cf 100644 --- a/gstreamer-webrtc/src/auto/web_rtcrtp_transceiver.rs +++ b/gstreamer-webrtc/src/auto/web_rtcrtp_transceiver.rs @@ -3,19 +3,19 @@ // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git) // DO NOT EDIT -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] use crate::WebRTCKind; -#[cfg(any(feature = "v1_18", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] +#[cfg(feature = "v1_18")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] use crate::WebRTCRTPTransceiverDirection; use crate::{WebRTCRTPReceiver, WebRTCRTPSender}; -#[cfg(any(feature = "v1_18", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] +#[cfg(feature = "v1_18")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] use glib::signal::{connect_raw, SignalHandlerId}; use glib::{prelude::*, translate::*}; -#[cfg(any(feature = "v1_18", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] +#[cfg(feature = "v1_18")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] use std::{boxed::Box as Box_, mem::transmute}; glib::wrapper! { @@ -28,47 +28,47 @@ glib::wrapper! { } impl WebRTCRTPTransceiver { - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(alias = "codec-preferences")] pub fn codec_preferences(&self) -> Option { glib::ObjectExt::property(self, "codec-preferences") } - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(alias = "codec-preferences")] pub fn set_codec_preferences(&self, codec_preferences: Option<&gst::Caps>) { glib::ObjectExt::set_property(self, "codec-preferences", codec_preferences) } - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(alias = "current-direction")] pub fn current_direction(&self) -> WebRTCRTPTransceiverDirection { glib::ObjectExt::property(self, "current-direction") } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub fn direction(&self) -> WebRTCRTPTransceiverDirection { glib::ObjectExt::property(self, "direction") } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub fn set_direction(&self, direction: WebRTCRTPTransceiverDirection) { glib::ObjectExt::set_property(self, "direction", direction) } - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn kind(&self) -> WebRTCKind { glib::ObjectExt::property(self, "kind") } - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn mid(&self) -> Option { glib::ObjectExt::property(self, "mid") } @@ -85,8 +85,8 @@ impl WebRTCRTPTransceiver { glib::ObjectExt::property(self, "sender") } - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(alias = "codec-preferences")] pub fn connect_codec_preferences_notify( &self, @@ -115,8 +115,8 @@ impl WebRTCRTPTransceiver { } } - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(alias = "current-direction")] pub fn connect_current_direction_notify( &self, @@ -145,8 +145,8 @@ impl WebRTCRTPTransceiver { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "direction")] pub fn connect_direction_notify( &self, @@ -175,8 +175,8 @@ impl WebRTCRTPTransceiver { } } - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(alias = "kind")] pub fn connect_kind_notify( &self, @@ -205,8 +205,8 @@ impl WebRTCRTPTransceiver { } } - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(alias = "mid")] pub fn connect_mid_notify( &self, diff --git a/gstreamer-webrtc/sys/Cargo.toml b/gstreamer-webrtc/sys/Cargo.toml index e146d08b7..28062a91a 100644 --- a/gstreamer-webrtc/sys/Cargo.toml +++ b/gstreamer-webrtc/sys/Cargo.toml @@ -48,7 +48,7 @@ edition = "2021" rust-version = "1.66" [package.metadata.docs.rs] -features = ["dox"] +features = [] [package.metadata.system-deps.gstreamer_webrtc_1_0] name = "gstreamer-webrtc-1.0" diff --git a/gstreamer-webrtc/sys/build.rs b/gstreamer-webrtc/sys/build.rs index 40e2cc398..29420c9ee 100644 --- a/gstreamer-webrtc/sys/build.rs +++ b/gstreamer-webrtc/sys/build.rs @@ -3,13 +3,13 @@ // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git) // DO NOT EDIT -#[cfg(not(feature = "dox"))] +#[cfg(not(docsrs))] use std::process; -#[cfg(feature = "dox")] +#[cfg(docsrs)] fn main() {} // prevent linking libraries to avoid documentation failure -#[cfg(not(feature = "dox"))] +#[cfg(not(docsrs))] fn main() { if let Err(s) = system_deps::Config::new().probe() { println!("cargo:warning={s}"); diff --git a/gstreamer-webrtc/sys/src/auto/versions.txt b/gstreamer-webrtc/sys/src/auto/versions.txt index 94b843e6a..f606c95a2 100644 --- a/gstreamer-webrtc/sys/src/auto/versions.txt +++ b/gstreamer-webrtc/sys/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2) +Generated by gir (https://github.com/gtk-rs/gir @ 719372782330) from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836) diff --git a/gstreamer-webrtc/sys/src/lib.rs b/gstreamer-webrtc/sys/src/lib.rs index d5e45e564..d1ca5aac0 100644 --- a/gstreamer-webrtc/sys/src/lib.rs +++ b/gstreamer-webrtc/sys/src/lib.rs @@ -10,7 +10,7 @@ clippy::unreadable_literal, clippy::upper_case_acronyms )] -#![cfg_attr(feature = "dox", feature(doc_cfg))] +#![cfg_attr(docsrs, feature(doc_cfg))] #[allow(unused_imports)] use libc::{ @@ -57,11 +57,11 @@ pub const GST_WEBRTC_ERROR_HARDWARE_ENCODER_NOT_AVAILABLE: GstWebRTCError = 5; pub const GST_WEBRTC_ERROR_ENCODER_ERROR: GstWebRTCError = 6; pub const GST_WEBRTC_ERROR_INVALID_STATE: GstWebRTCError = 7; pub const GST_WEBRTC_ERROR_INTERNAL_FAILURE: GstWebRTCError = 8; -#[cfg(any(feature = "v1_22", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] +#[cfg(feature = "v1_22")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] pub const GST_WEBRTC_ERROR_INVALID_MODIFICATION: GstWebRTCError = 9; -#[cfg(any(feature = "v1_22", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] +#[cfg(feature = "v1_22")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] pub const GST_WEBRTC_ERROR_TYPE_ERROR: GstWebRTCError = 10; pub type GstWebRTCFECType = c_int; @@ -560,8 +560,8 @@ extern "C" { //========================================================================= // GstWebRTCBundlePolicy //========================================================================= - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] pub fn gst_webrtc_bundle_policy_get_type() -> GType; //========================================================================= @@ -577,25 +577,25 @@ extern "C" { //========================================================================= // GstWebRTCDataChannelState //========================================================================= - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] pub fn gst_webrtc_data_channel_state_get_type() -> GType; //========================================================================= // GstWebRTCError //========================================================================= - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_webrtc_error_get_type() -> GType; - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_webrtc_error_quark() -> glib::GQuark; //========================================================================= // GstWebRTCFECType //========================================================================= - #[cfg(any(feature = "v1_14_1", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14_1")))] + #[cfg(feature = "v1_14_1")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_14_1")))] pub fn gst_webrtc_fec_type_get_type() -> GType; //========================================================================= @@ -621,15 +621,15 @@ extern "C" { //========================================================================= // GstWebRTCICETransportPolicy //========================================================================= - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] pub fn gst_webrtc_ice_transport_policy_get_type() -> GType; //========================================================================= // GstWebRTCKind //========================================================================= - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_webrtc_kind_get_type() -> GType; //========================================================================= @@ -640,8 +640,8 @@ extern "C" { //========================================================================= // GstWebRTCPriorityType //========================================================================= - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] pub fn gst_webrtc_priority_type_get_type() -> GType; //========================================================================= @@ -652,8 +652,8 @@ extern "C" { //========================================================================= // GstWebRTCSCTPTransportState //========================================================================= - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] pub fn gst_webrtc_sctp_transport_state_get_type() -> GType; //========================================================================= @@ -675,16 +675,16 @@ extern "C" { //========================================================================= // GstWebRTCICECandidateStats //========================================================================= - #[cfg(any(feature = "v1_22", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] + #[cfg(feature = "v1_22")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] pub fn gst_webrtc_ice_candidate_stats_get_type() -> GType; - #[cfg(any(feature = "v1_22", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] + #[cfg(feature = "v1_22")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] pub fn gst_webrtc_ice_candidate_stats_copy( stats: *mut GstWebRTCICECandidateStats, ) -> *mut GstWebRTCICECandidateStats; - #[cfg(any(feature = "v1_22", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] + #[cfg(feature = "v1_22")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] pub fn gst_webrtc_ice_candidate_stats_free(stats: *mut GstWebRTCICECandidateStats); //========================================================================= @@ -708,33 +708,33 @@ extern "C" { //========================================================================= // GstWebRTCDataChannel //========================================================================= - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, 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(feature = "v1_18")] + #[cfg_attr(docsrs, 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(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub fn gst_webrtc_data_channel_send_data( channel: *mut GstWebRTCDataChannel, data: *mut glib::GBytes, ); - #[cfg(any(feature = "v1_22", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] + #[cfg(feature = "v1_22")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] pub fn gst_webrtc_data_channel_send_data_full( channel: *mut GstWebRTCDataChannel, data: *mut glib::GBytes, error: *mut *mut glib::GError, ) -> gboolean; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub fn gst_webrtc_data_channel_send_string( channel: *mut GstWebRTCDataChannel, str: *const c_char, ); - #[cfg(any(feature = "v1_22", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] + #[cfg(feature = "v1_22")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] pub fn gst_webrtc_data_channel_send_string_full( channel: *mut GstWebRTCDataChannel, str: *const c_char, @@ -744,132 +744,132 @@ extern "C" { //========================================================================= // GstWebRTCICE //========================================================================= - #[cfg(any(feature = "v1_22", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] + #[cfg(feature = "v1_22")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] pub fn gst_webrtc_ice_get_type() -> GType; - #[cfg(any(feature = "v1_22", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] + #[cfg(feature = "v1_22")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] pub fn gst_webrtc_ice_add_candidate( ice: *mut GstWebRTCICE, stream: *mut GstWebRTCICEStream, candidate: *const c_char, promise: *mut gst::GstPromise, ); - #[cfg(any(feature = "v1_22", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] + #[cfg(feature = "v1_22")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] pub fn gst_webrtc_ice_add_stream( ice: *mut GstWebRTCICE, session_id: c_uint, ) -> *mut GstWebRTCICEStream; - #[cfg(any(feature = "v1_22", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] + #[cfg(feature = "v1_22")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] pub fn gst_webrtc_ice_add_turn_server(ice: *mut GstWebRTCICE, uri: *const c_char) -> gboolean; - #[cfg(any(feature = "v1_22", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] + #[cfg(feature = "v1_22")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] pub fn gst_webrtc_ice_find_transport( ice: *mut GstWebRTCICE, stream: *mut GstWebRTCICEStream, component: GstWebRTCICEComponent, ) -> *mut GstWebRTCICETransport; - #[cfg(any(feature = "v1_22", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] + #[cfg(feature = "v1_22")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] pub fn gst_webrtc_ice_gather_candidates( ice: *mut GstWebRTCICE, stream: *mut GstWebRTCICEStream, ) -> gboolean; - #[cfg(any(feature = "v1_22", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] + #[cfg(feature = "v1_22")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] pub fn gst_webrtc_ice_get_http_proxy(ice: *mut GstWebRTCICE) -> *mut c_char; - #[cfg(any(feature = "v1_22", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] + #[cfg(feature = "v1_22")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] pub fn gst_webrtc_ice_get_is_controller(ice: *mut GstWebRTCICE) -> gboolean; - #[cfg(any(feature = "v1_22", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] + #[cfg(feature = "v1_22")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] pub fn gst_webrtc_ice_get_local_candidates( ice: *mut GstWebRTCICE, stream: *mut GstWebRTCICEStream, ) -> *mut *mut GstWebRTCICECandidateStats; - #[cfg(any(feature = "v1_22", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] + #[cfg(feature = "v1_22")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] pub fn gst_webrtc_ice_get_remote_candidates( ice: *mut GstWebRTCICE, stream: *mut GstWebRTCICEStream, ) -> *mut *mut GstWebRTCICECandidateStats; - #[cfg(any(feature = "v1_22", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] + #[cfg(feature = "v1_22")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] pub fn gst_webrtc_ice_get_selected_pair( ice: *mut GstWebRTCICE, stream: *mut GstWebRTCICEStream, local_stats: *mut *mut GstWebRTCICECandidateStats, remote_stats: *mut *mut GstWebRTCICECandidateStats, ) -> gboolean; - #[cfg(any(feature = "v1_22", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] + #[cfg(feature = "v1_22")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] pub fn gst_webrtc_ice_get_stun_server(ice: *mut GstWebRTCICE) -> *mut c_char; - #[cfg(any(feature = "v1_22", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] + #[cfg(feature = "v1_22")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] pub fn gst_webrtc_ice_get_turn_server(ice: *mut GstWebRTCICE) -> *mut c_char; - #[cfg(any(feature = "v1_22", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] + #[cfg(feature = "v1_22")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] pub fn gst_webrtc_ice_set_force_relay(ice: *mut GstWebRTCICE, force_relay: gboolean); - #[cfg(any(feature = "v1_22", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] + #[cfg(feature = "v1_22")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] pub fn gst_webrtc_ice_set_http_proxy(ice: *mut GstWebRTCICE, uri: *const c_char); - #[cfg(any(feature = "v1_22", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] + #[cfg(feature = "v1_22")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] pub fn gst_webrtc_ice_set_is_controller(ice: *mut GstWebRTCICE, controller: gboolean); - #[cfg(any(feature = "v1_22", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] + #[cfg(feature = "v1_22")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] pub fn gst_webrtc_ice_set_local_credentials( ice: *mut GstWebRTCICE, stream: *mut GstWebRTCICEStream, ufrag: *const c_char, pwd: *const c_char, ) -> gboolean; - #[cfg(any(feature = "v1_22", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] + #[cfg(feature = "v1_22")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] pub fn gst_webrtc_ice_set_on_ice_candidate( ice: *mut GstWebRTCICE, func: GstWebRTCICEOnCandidateFunc, user_data: gpointer, notify: glib::GDestroyNotify, ); - #[cfg(any(feature = "v1_22", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] + #[cfg(feature = "v1_22")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] pub fn gst_webrtc_ice_set_remote_credentials( ice: *mut GstWebRTCICE, stream: *mut GstWebRTCICEStream, ufrag: *const c_char, pwd: *const c_char, ) -> gboolean; - #[cfg(any(feature = "v1_22", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] + #[cfg(feature = "v1_22")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] pub fn gst_webrtc_ice_set_stun_server(ice: *mut GstWebRTCICE, uri: *const c_char); - #[cfg(any(feature = "v1_22", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] + #[cfg(feature = "v1_22")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] pub fn gst_webrtc_ice_set_tos( ice: *mut GstWebRTCICE, stream: *mut GstWebRTCICEStream, tos: c_uint, ); - #[cfg(any(feature = "v1_22", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] + #[cfg(feature = "v1_22")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] pub fn gst_webrtc_ice_set_turn_server(ice: *mut GstWebRTCICE, uri: *const c_char); //========================================================================= // GstWebRTCICEStream //========================================================================= - #[cfg(any(feature = "v1_22", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] + #[cfg(feature = "v1_22")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] pub fn gst_webrtc_ice_stream_get_type() -> GType; - #[cfg(any(feature = "v1_22", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] + #[cfg(feature = "v1_22")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] pub fn gst_webrtc_ice_stream_find_transport( stream: *mut GstWebRTCICEStream, component: GstWebRTCICEComponent, ) -> *mut GstWebRTCICETransport; - #[cfg(any(feature = "v1_22", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] + #[cfg(feature = "v1_22")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] pub fn gst_webrtc_ice_stream_gather_candidates(ice: *mut GstWebRTCICEStream) -> gboolean; //========================================================================= @@ -901,8 +901,8 @@ extern "C" { // GstWebRTCRTPSender //========================================================================= pub fn gst_webrtc_rtp_sender_get_type() -> GType; - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_webrtc_rtp_sender_set_priority( sender: *mut GstWebRTCRTPSender, priority: GstWebRTCPriorityType, @@ -916,8 +916,8 @@ extern "C" { //========================================================================= // GstWebRTCSCTPTransport //========================================================================= - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_webrtc_sctp_transport_get_type() -> GType; } diff --git a/gstreamer/src/auto/child_proxy.rs b/gstreamer/src/auto/child_proxy.rs index d2492893c..015f957a9 100644 --- a/gstreamer/src/auto/child_proxy.rs +++ b/gstreamer/src/auto/child_proxy.rs @@ -44,8 +44,8 @@ pub trait ChildProxyExt: 'static { #[doc(alias = "get_child_by_name")] fn child_by_name(&self, name: &str) -> Option; - #[cfg(any(feature = "v1_22", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] + #[cfg(feature = "v1_22")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] #[doc(alias = "gst_child_proxy_get_child_by_name_recurse")] #[doc(alias = "get_child_by_name_recurse")] fn child_by_name_recurse(&self, name: &str) -> Option; @@ -120,8 +120,8 @@ impl> ChildProxyExt for O { } } - #[cfg(any(feature = "v1_22", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] + #[cfg(feature = "v1_22")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] fn child_by_name_recurse(&self, name: &str) -> Option { unsafe { from_glib_full(ffi::gst_child_proxy_get_child_by_name_recurse( diff --git a/gstreamer/src/auto/clock.rs b/gstreamer/src/auto/clock.rs index 96b73b07c..997f7f22e 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(feature = "v1_16")] + //#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] //#[doc(alias = "gst_clock_id_get_clock")] //pub fn id_get_clock(id: /*Unimplemented*/ClockID) -> Option { // unsafe { TODO: call ffi:gst_clock_id_get_clock() } @@ -55,8 +55,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(feature = "v1_16")] + //#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] //#[doc(alias = "gst_clock_id_uses_clock")] //pub fn id_uses_clock(id: /*Unimplemented*/ClockID, clock: &impl IsA) -> 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 ec92ef36a..887a42baa 100644 --- a/gstreamer/src/auto/date_time.rs +++ b/gstreamer/src/auto/date_time.rs @@ -46,8 +46,8 @@ impl DateTime { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "gst_date_time_new_from_unix_epoch_local_time_usecs")] #[doc(alias = "new_from_unix_epoch_local_time_usecs")] pub fn from_unix_epoch_local_time_usecs(usecs: i64) -> Result { @@ -70,8 +70,8 @@ impl DateTime { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "gst_date_time_new_from_unix_epoch_utc_usecs")] #[doc(alias = "new_from_unix_epoch_utc_usecs")] pub fn from_unix_epoch_utc_usecs(usecs: i64) -> Result { diff --git a/gstreamer/src/auto/device_provider.rs b/gstreamer/src/auto/device_provider.rs index 09f9623c1..b885317b3 100644 --- a/gstreamer/src/auto/device_provider.rs +++ b/gstreamer/src/auto/device_provider.rs @@ -34,8 +34,8 @@ pub trait DeviceProviderExt: 'static { #[doc(alias = "gst_device_provider_device_add")] fn device_add(&self, device: &impl IsA); - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] #[doc(alias = "gst_device_provider_device_changed")] fn device_changed(&self, device: &impl IsA, changed_device: &impl IsA); @@ -57,8 +57,8 @@ pub trait DeviceProviderExt: 'static { #[doc(alias = "gst_device_provider_hide_provider")] fn hide_provider(&self, name: &str); - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(alias = "gst_device_provider_is_started")] fn is_started(&self) -> bool; @@ -102,8 +102,8 @@ impl> DeviceProviderExt for O { } } - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] fn device_changed(&self, device: &impl IsA, changed_device: &impl IsA) { unsafe { ffi::gst_device_provider_device_changed( @@ -156,8 +156,8 @@ impl> DeviceProviderExt for O { } } - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] fn is_started(&self) -> bool { unsafe { from_glib(ffi::gst_device_provider_is_started( diff --git a/gstreamer/src/auto/element.rs b/gstreamer/src/auto/element.rs index e062ae7d9..8ba0aa9e6 100644 --- a/gstreamer/src/auto/element.rs +++ b/gstreamer/src/auto/element.rs @@ -74,8 +74,8 @@ pub trait ElementExt: 'static { #[doc(alias = "gst_element_create_all_pads")] fn create_all_pads(&self); - #[cfg(any(feature = "v1_24", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_24")))] + #[cfg(feature = "v1_24")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))] #[doc(alias = "gst_element_decorate_stream_id")] fn decorate_stream_id(&self, stream_id: &str) -> glib::GString; @@ -259,8 +259,8 @@ impl> ElementExt for O { } } - #[cfg(any(feature = "v1_24", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_24")))] + #[cfg(feature = "v1_24")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))] fn decorate_stream_id(&self, stream_id: &str) -> glib::GString { unsafe { from_glib_full(ffi::gst_element_decorate_stream_id( diff --git a/gstreamer/src/auto/element_factory.rs b/gstreamer/src/auto/element_factory.rs index 3abf52ac4..c3b196853 100644 --- a/gstreamer/src/auto/element_factory.rs +++ b/gstreamer/src/auto/element_factory.rs @@ -42,8 +42,8 @@ impl ElementFactory { unsafe { ffi::gst_element_factory_get_num_pad_templates(self.to_glib_none().0) } } - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(alias = "gst_element_factory_get_skip_documentation")] #[doc(alias = "get_skip_documentation")] pub fn skips_documentation(&self) -> bool { diff --git a/gstreamer/src/auto/enums.rs b/gstreamer/src/auto/enums.rs index c661a6f02..30998fde5 100644 --- a/gstreamer/src/auto/enums.rs +++ b/gstreamer/src/auto/enums.rs @@ -510,8 +510,8 @@ pub enum ClockType { Monotonic, #[doc(alias = "GST_CLOCK_TYPE_OTHER")] Other, - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "GST_CLOCK_TYPE_TAI")] Tai, #[doc(hidden)] @@ -528,7 +528,7 @@ impl IntoGlib for ClockType { Self::Realtime => ffi::GST_CLOCK_TYPE_REALTIME, Self::Monotonic => ffi::GST_CLOCK_TYPE_MONOTONIC, Self::Other => ffi::GST_CLOCK_TYPE_OTHER, - #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg(feature = "v1_18")] Self::Tai => ffi::GST_CLOCK_TYPE_TAI, Self::__Unknown(value) => value, } @@ -545,7 +545,7 @@ impl FromGlib for ClockType { ffi::GST_CLOCK_TYPE_REALTIME => Self::Realtime, ffi::GST_CLOCK_TYPE_MONOTONIC => Self::Monotonic, ffi::GST_CLOCK_TYPE_OTHER => Self::Other, - #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg(feature = "v1_18")] ffi::GST_CLOCK_TYPE_TAI => Self::Tai, value => Self::__Unknown(value), } @@ -950,8 +950,8 @@ pub enum EventType { SegmentDone, #[doc(alias = "GST_EVENT_GAP")] Gap, - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "GST_EVENT_INSTANT_RATE_CHANGE")] InstantRateChange, #[doc(alias = "GST_EVENT_QOS")] @@ -970,8 +970,8 @@ pub enum EventType { TocSelect, #[doc(alias = "GST_EVENT_SELECT_STREAMS")] SelectStreams, - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "GST_EVENT_INSTANT_RATE_SYNC_TIME")] InstantRateSyncTime, #[doc(alias = "GST_EVENT_CUSTOM_UPSTREAM")] @@ -1044,7 +1044,7 @@ impl IntoGlib for EventType { Self::Protection => ffi::GST_EVENT_PROTECTION, Self::SegmentDone => ffi::GST_EVENT_SEGMENT_DONE, Self::Gap => ffi::GST_EVENT_GAP, - #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg(feature = "v1_18")] Self::InstantRateChange => ffi::GST_EVENT_INSTANT_RATE_CHANGE, Self::Qos => ffi::GST_EVENT_QOS, Self::Seek => ffi::GST_EVENT_SEEK, @@ -1054,7 +1054,7 @@ impl IntoGlib for EventType { Self::Reconfigure => ffi::GST_EVENT_RECONFIGURE, Self::TocSelect => ffi::GST_EVENT_TOC_SELECT, Self::SelectStreams => ffi::GST_EVENT_SELECT_STREAMS, - #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg(feature = "v1_18")] Self::InstantRateSyncTime => ffi::GST_EVENT_INSTANT_RATE_SYNC_TIME, Self::CustomUpstream => ffi::GST_EVENT_CUSTOM_UPSTREAM, Self::CustomDownstream => ffi::GST_EVENT_CUSTOM_DOWNSTREAM, @@ -1089,7 +1089,7 @@ impl FromGlib for EventType { ffi::GST_EVENT_PROTECTION => Self::Protection, ffi::GST_EVENT_SEGMENT_DONE => Self::SegmentDone, ffi::GST_EVENT_GAP => Self::Gap, - #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg(feature = "v1_18")] ffi::GST_EVENT_INSTANT_RATE_CHANGE => Self::InstantRateChange, ffi::GST_EVENT_QOS => Self::Qos, ffi::GST_EVENT_SEEK => Self::Seek, @@ -1099,7 +1099,7 @@ impl FromGlib for EventType { ffi::GST_EVENT_RECONFIGURE => Self::Reconfigure, ffi::GST_EVENT_TOC_SELECT => Self::TocSelect, ffi::GST_EVENT_SELECT_STREAMS => Self::SelectStreams, - #[cfg(any(feature = "v1_18", feature = "dox"))] + #[cfg(feature = "v1_18")] ffi::GST_EVENT_INSTANT_RATE_SYNC_TIME => Self::InstantRateSyncTime, ffi::GST_EVENT_CUSTOM_UPSTREAM => Self::CustomUpstream, ffi::GST_EVENT_CUSTOM_DOWNSTREAM => Self::CustomDownstream, diff --git a/gstreamer/src/auto/flags.rs b/gstreamer/src/auto/flags.rs index be61ee361..9d45dcf43 100644 --- a/gstreamer/src/auto/flags.rs +++ b/gstreamer/src/auto/flags.rs @@ -861,9 +861,9 @@ impl From for glib::Value { } } -#[cfg(any(feature = "v1_20", feature = "dox"))] +#[cfg(feature = "v1_20")] bitflags! { - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(alias = "GstGapFlags")] pub struct GapFlags: u32 { #[doc(alias = "GST_GAP_FLAG_MISSING_DATA")] @@ -871,8 +871,8 @@ bitflags! { } } -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(hidden)] impl IntoGlib for GapFlags { type GlibType = ffi::GstGapFlags; @@ -883,8 +883,8 @@ impl IntoGlib for GapFlags { } } -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(hidden)] impl FromGlib for GapFlags { #[inline] @@ -894,8 +894,8 @@ impl FromGlib for GapFlags { } } -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] impl StaticType for GapFlags { #[inline] fn static_type() -> Type { @@ -903,8 +903,8 @@ impl StaticType for GapFlags { } } -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] impl glib::HasParamSpec for GapFlags { type ParamSpec = glib::ParamSpecFlags; type SetValue = Self; @@ -915,14 +915,14 @@ impl glib::HasParamSpec for GapFlags { } } -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] impl glib::value::ValueType for GapFlags { type Type = Self; } -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] unsafe impl<'a> FromValue<'a> for GapFlags { type Checker = glib::value::GenericValueTypeChecker; @@ -933,8 +933,8 @@ unsafe impl<'a> FromValue<'a> for GapFlags { } } -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] impl ToValue for GapFlags { #[inline] fn to_value(&self) -> glib::Value { @@ -951,8 +951,8 @@ impl ToValue for GapFlags { } } -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] impl From for glib::Value { #[inline] fn from(v: GapFlags) -> Self { @@ -1707,9 +1707,9 @@ impl From for glib::Value { } } -#[cfg(any(feature = "v1_18", feature = "dox"))] +#[cfg(feature = "v1_18")] bitflags! { - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "GstPluginAPIFlags")] pub struct PluginAPIFlags: u32 { #[doc(alias = "GST_PLUGIN_API_FLAG_IGNORE_ENUM_MEMBERS")] @@ -1717,8 +1717,8 @@ bitflags! { } } -#[cfg(any(feature = "v1_18", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] +#[cfg(feature = "v1_18")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(hidden)] impl IntoGlib for PluginAPIFlags { type GlibType = ffi::GstPluginAPIFlags; @@ -1729,8 +1729,8 @@ impl IntoGlib for PluginAPIFlags { } } -#[cfg(any(feature = "v1_18", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] +#[cfg(feature = "v1_18")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(hidden)] impl FromGlib for PluginAPIFlags { #[inline] @@ -1740,8 +1740,8 @@ impl FromGlib for PluginAPIFlags { } } -#[cfg(any(feature = "v1_18", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] +#[cfg(feature = "v1_18")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] impl StaticType for PluginAPIFlags { #[inline] fn static_type() -> Type { @@ -1749,8 +1749,8 @@ impl StaticType for PluginAPIFlags { } } -#[cfg(any(feature = "v1_18", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] +#[cfg(feature = "v1_18")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] impl glib::HasParamSpec for PluginAPIFlags { type ParamSpec = glib::ParamSpecFlags; type SetValue = Self; @@ -1761,14 +1761,14 @@ impl glib::HasParamSpec for PluginAPIFlags { } } -#[cfg(any(feature = "v1_18", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] +#[cfg(feature = "v1_18")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] impl glib::value::ValueType for PluginAPIFlags { type Type = Self; } -#[cfg(any(feature = "v1_18", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] +#[cfg(feature = "v1_18")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] unsafe impl<'a> FromValue<'a> for PluginAPIFlags { type Checker = glib::value::GenericValueTypeChecker; @@ -1779,8 +1779,8 @@ unsafe impl<'a> FromValue<'a> for PluginAPIFlags { } } -#[cfg(any(feature = "v1_18", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] +#[cfg(feature = "v1_18")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] impl ToValue for PluginAPIFlags { #[inline] fn to_value(&self) -> glib::Value { @@ -1797,8 +1797,8 @@ impl ToValue for PluginAPIFlags { } } -#[cfg(any(feature = "v1_18", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] +#[cfg(feature = "v1_18")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] impl From for glib::Value { #[inline] fn from(v: PluginAPIFlags) -> Self { @@ -2092,12 +2092,12 @@ bitflags! { const TRICKMODE_KEY_UNITS = ffi::GST_SEEK_FLAG_TRICKMODE_KEY_UNITS as _; #[doc(alias = "GST_SEEK_FLAG_TRICKMODE_NO_AUDIO")] const TRICKMODE_NO_AUDIO = ffi::GST_SEEK_FLAG_TRICKMODE_NO_AUDIO as _; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "GST_SEEK_FLAG_TRICKMODE_FORWARD_PREDICTED")] const TRICKMODE_FORWARD_PREDICTED = ffi::GST_SEEK_FLAG_TRICKMODE_FORWARD_PREDICTED as _; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "GST_SEEK_FLAG_INSTANT_RATE_CHANGE")] const INSTANT_RATE_CHANGE = ffi::GST_SEEK_FLAG_INSTANT_RATE_CHANGE as _; } @@ -2190,8 +2190,8 @@ bitflags! { const SEGMENT = ffi::GST_SEGMENT_FLAG_SEGMENT as _; #[doc(alias = "GST_SEGMENT_FLAG_TRICKMODE_KEY_UNITS")] const TRICKMODE_KEY_UNITS = ffi::GST_SEGMENT_FLAG_TRICKMODE_KEY_UNITS as _; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "GST_SEGMENT_FLAG_TRICKMODE_FORWARD_PREDICTED")] const TRICKMODE_FORWARD_PREDICTED = ffi::GST_SEGMENT_FLAG_TRICKMODE_FORWARD_PREDICTED as _; #[doc(alias = "GST_SEGMENT_FLAG_TRICKMODE_NO_AUDIO")] @@ -2273,9 +2273,9 @@ impl From for glib::Value { } } -#[cfg(any(feature = "v1_20", feature = "dox"))] +#[cfg(feature = "v1_20")] bitflags! { - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(alias = "GstSerializeFlags")] pub struct SerializeFlags: u32 { #[doc(alias = "GST_SERIALIZE_FLAG_NONE")] @@ -2285,8 +2285,8 @@ bitflags! { } } -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(hidden)] impl IntoGlib for SerializeFlags { type GlibType = ffi::GstSerializeFlags; @@ -2297,8 +2297,8 @@ impl IntoGlib for SerializeFlags { } } -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(hidden)] impl FromGlib for SerializeFlags { #[inline] @@ -2308,8 +2308,8 @@ impl FromGlib for SerializeFlags { } } -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] impl StaticType for SerializeFlags { #[inline] fn static_type() -> Type { @@ -2317,8 +2317,8 @@ impl StaticType for SerializeFlags { } } -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] impl glib::HasParamSpec for SerializeFlags { type ParamSpec = glib::ParamSpecFlags; type SetValue = Self; @@ -2329,14 +2329,14 @@ impl glib::HasParamSpec for SerializeFlags { } } -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] impl glib::value::ValueType for SerializeFlags { type Type = Self; } -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] unsafe impl<'a> FromValue<'a> for SerializeFlags { type Checker = glib::value::GenericValueTypeChecker; @@ -2347,8 +2347,8 @@ unsafe impl<'a> FromValue<'a> for SerializeFlags { } } -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] impl ToValue for SerializeFlags { #[inline] fn to_value(&self) -> glib::Value { @@ -2365,8 +2365,8 @@ impl ToValue for SerializeFlags { } } -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] impl From for glib::Value { #[inline] fn from(v: SerializeFlags) -> Self { diff --git a/gstreamer/src/auto/mod.rs b/gstreamer/src/auto/mod.rs index 9776d1999..4fac647c6 100644 --- a/gstreamer/src/auto/mod.rs +++ b/gstreamer/src/auto/mod.rs @@ -162,8 +162,8 @@ pub use self::flags::DebugColorFlags; pub use self::flags::DebugGraphDetails; pub use self::flags::ElementFlags; pub use self::flags::EventTypeFlags; -#[cfg(any(feature = "v1_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub use self::flags::GapFlags; pub use self::flags::MemoryFlags; pub use self::flags::MetaFlags; @@ -173,16 +173,16 @@ 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(feature = "v1_18")] +#[cfg_attr(docsrs, 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_20", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[cfg(feature = "v1_20")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub use self::flags::SerializeFlags; pub use self::flags::StackTraceFlags; pub use self::flags::StreamFlags; diff --git a/gstreamer/src/auto/pad.rs b/gstreamer/src/auto/pad.rs index f21e1df9f..f060c6ae2 100644 --- a/gstreamer/src/auto/pad.rs +++ b/gstreamer/src/auto/pad.rs @@ -103,8 +103,8 @@ pub trait PadExt: 'static { #[must_use] fn peer(&self) -> Option; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "gst_pad_get_single_internal_link")] #[doc(alias = "get_single_internal_link")] #[must_use] @@ -383,8 +383,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(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] fn single_internal_link(&self) -> Option { unsafe { from_glib_full(ffi::gst_pad_get_single_internal_link( diff --git a/gstreamer/src/auto/task.rs b/gstreamer/src/auto/task.rs index 0ad31052a..36803f8bf 100644 --- a/gstreamer/src/auto/task.rs +++ b/gstreamer/src/auto/task.rs @@ -45,8 +45,8 @@ pub trait TaskExt: 'static { #[doc(alias = "gst_task_pause")] fn pause(&self) -> Result<(), glib::error::BoolError>; - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "gst_task_resume")] fn resume(&self) -> Result<(), glib::error::BoolError>; @@ -90,8 +90,8 @@ impl> TaskExt for O { } } - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] fn resume(&self) -> Result<(), glib::error::BoolError> { unsafe { glib::result_from_gboolean!( diff --git a/gstreamer/src/auto/versions.txt b/gstreamer/src/auto/versions.txt index 94b843e6a..f606c95a2 100644 --- a/gstreamer/src/auto/versions.txt +++ b/gstreamer/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2) +Generated by gir (https://github.com/gtk-rs/gir @ 719372782330) from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836) diff --git a/gstreamer/sys/Cargo.toml b/gstreamer/sys/Cargo.toml index 5fd847318..f719a950b 100644 --- a/gstreamer/sys/Cargo.toml +++ b/gstreamer/sys/Cargo.toml @@ -45,7 +45,7 @@ edition = "2021" rust-version = "1.66" [package.metadata.docs.rs] -features = ["dox"] +features = [] [package.metadata.system-deps.gstreamer_1_0] name = "gstreamer-1.0" diff --git a/gstreamer/sys/build.rs b/gstreamer/sys/build.rs index 40e2cc398..29420c9ee 100644 --- a/gstreamer/sys/build.rs +++ b/gstreamer/sys/build.rs @@ -3,13 +3,13 @@ // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git) // DO NOT EDIT -#[cfg(not(feature = "dox"))] +#[cfg(not(docsrs))] use std::process; -#[cfg(feature = "dox")] +#[cfg(docsrs)] fn main() {} // prevent linking libraries to avoid documentation failure -#[cfg(not(feature = "dox"))] +#[cfg(not(docsrs))] fn main() { if let Err(s) = system_deps::Config::new().probe() { println!("cargo:warning={s}"); diff --git a/gstreamer/sys/src/auto/versions.txt b/gstreamer/sys/src/auto/versions.txt index 94b843e6a..f606c95a2 100644 --- a/gstreamer/sys/src/auto/versions.txt +++ b/gstreamer/sys/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2) +Generated by gir (https://github.com/gtk-rs/gir @ 719372782330) from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836) diff --git a/gstreamer/sys/src/lib.rs b/gstreamer/sys/src/lib.rs index d1dfc6916..61bf20f3c 100644 --- a/gstreamer/sys/src/lib.rs +++ b/gstreamer/sys/src/lib.rs @@ -10,7 +10,7 @@ clippy::unreadable_literal, clippy::upper_case_acronyms )] -#![cfg_attr(feature = "dox", feature(doc_cfg))] +#![cfg_attr(docsrs, feature(doc_cfg))] #[allow(unused_imports)] use libc::{ @@ -261,8 +261,8 @@ pub const GST_QUERY_CAPS: GstQueryType = 43523; pub const GST_QUERY_DRAIN: GstQueryType = 46086; pub const GST_QUERY_CONTEXT: GstQueryType = 48643; pub const GST_QUERY_BITRATE: GstQueryType = 51202; -#[cfg(any(feature = "v1_22", feature = "dox"))] -#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] +#[cfg(feature = "v1_22")] +#[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] pub const GST_QUERY_SELECTABLE: GstQueryType = 53763; pub type GstRank = c_int; @@ -3964,8 +3964,8 @@ extern "C" { pub fn gst_event_type_get_flags(type_: GstEventType) -> GstEventTypeFlags; pub fn gst_event_type_get_name(type_: GstEventType) -> *const c_char; pub fn gst_event_type_to_quark(type_: GstEventType) -> glib::GQuark; - #[cfg(any(feature = "v1_22", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] + #[cfg(feature = "v1_22")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] pub fn gst_event_type_to_sticky_ordering(type_: GstEventType) -> c_uint; //========================================================================= @@ -4234,8 +4234,8 @@ extern "C" { //========================================================================= // GstGapFlags //========================================================================= - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_gap_flags_get_type() -> GType; //========================================================================= @@ -4308,8 +4308,8 @@ extern "C" { //========================================================================= // GstPluginAPIFlags //========================================================================= - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub fn gst_plugin_api_flags_get_type() -> GType; //========================================================================= @@ -4345,8 +4345,8 @@ extern "C" { //========================================================================= // GstSerializeFlags //========================================================================= - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_serialize_flags_get_type() -> GType; //========================================================================= @@ -4374,8 +4374,8 @@ extern "C" { // GstAllocationParams //========================================================================= pub fn gst_allocation_params_get_type() -> GType; - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_allocation_params_new() -> *mut GstAllocationParams; pub fn gst_allocation_params_copy( params: *const GstAllocationParams, @@ -4405,12 +4405,12 @@ extern "C" { size: size_t, params: *mut GstAllocationParams, ) -> *mut GstBuffer; - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_buffer_new_memdup(data: gconstpointer, size: size_t) -> *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(feature = "v1_16")] + #[cfg_attr(docsrs, 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, @@ -4421,8 +4421,8 @@ extern "C" { user_data: gpointer, notify: glib::GDestroyNotify, ) -> *mut GstBuffer; - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_buffer_add_custom_meta( buffer: *mut GstBuffer, name: *const c_char, @@ -4454,8 +4454,8 @@ extern "C" { offset: ssize_t, size: ssize_t, ) -> *mut GstBuffer; - #[cfg(any(feature = "v1_18_3", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18_3")))] + #[cfg(feature = "v1_18_3")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18_3")))] 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( @@ -4504,8 +4504,8 @@ extern "C" { user_data: gpointer, ) -> gboolean; pub fn gst_buffer_get_all_memory(buffer: *mut GstBuffer) -> *mut GstMemory; - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_buffer_get_custom_meta( buffer: *mut GstBuffer, name: *const c_char, @@ -4577,8 +4577,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_3", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18_3")))] + #[cfg(feature = "v1_18_3")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18_3")))] 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); @@ -4603,13 +4603,13 @@ extern "C" { 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_3", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18_3")))] + #[cfg(feature = "v1_18_3")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18_3")))] pub fn gst_buffer_unref(buf: *mut GstBuffer); 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_3", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18_3")))] + #[cfg(feature = "v1_18_3")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18_3")))] pub fn gst_buffer_replace(obuf: *mut *mut GstBuffer, nbuf: *mut GstBuffer) -> gboolean; //========================================================================= @@ -4619,8 +4619,8 @@ extern "C" { pub fn gst_buffer_list_new() -> *mut GstBufferList; pub fn gst_buffer_list_new_sized(size: c_uint) -> *mut GstBufferList; pub fn gst_buffer_list_calculate_size(list: *mut GstBufferList) -> size_t; - #[cfg(any(feature = "v1_18_3", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18_3")))] + #[cfg(feature = "v1_18_3")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18_3")))] 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( @@ -4632,21 +4632,21 @@ extern "C" { 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_3", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18_3")))] + #[cfg(feature = "v1_18_3")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18_3")))] 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_3", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18_3")))] + #[cfg(feature = "v1_18_3")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18_3")))] pub fn gst_buffer_list_unref(list: *mut GstBufferList); - #[cfg(any(feature = "v1_18_3", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18_3")))] + #[cfg(feature = "v1_18_3")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18_3")))] pub fn gst_buffer_list_replace( old_list: *mut *mut GstBufferList, new_list: *mut GstBufferList, ) -> gboolean; - #[cfg(any(feature = "v1_18_3", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18_3")))] + #[cfg(feature = "v1_18_3")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18_3")))] pub fn gst_buffer_list_take( old_list: *mut *mut GstBufferList, new_list: *mut GstBufferList, @@ -4674,11 +4674,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(feature = "v1_16")] + #[cfg_attr(docsrs, 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(feature = "v1_16")] + #[cfg_attr(docsrs, 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, @@ -4733,16 +4733,16 @@ extern "C" { features: *mut GstCapsFeatures, ) -> *mut GstCaps; pub fn gst_caps_normalize(caps: *mut GstCaps) -> *mut GstCaps; - #[cfg(any(feature = "v1_18_3", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18_3")))] + #[cfg(feature = "v1_18_3")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18_3")))] pub fn gst_caps_ref(caps: *mut GstCaps) -> *mut GstCaps; pub fn gst_caps_remove_structure(caps: *mut GstCaps, idx: c_uint); - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_caps_serialize(caps: *const GstCaps, flags: GstSerializeFlags) -> *mut c_char; 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(feature = "v1_16")] + #[cfg_attr(docsrs, 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); @@ -4756,15 +4756,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_3", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18_3")))] + #[cfg(feature = "v1_18_3")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18_3")))] 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_3", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18_3")))] + #[cfg(feature = "v1_18_3")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18_3")))] pub fn gst_caps_replace(old_caps: *mut *mut GstCaps, new_caps: *mut GstCaps) -> gboolean; - #[cfg(any(feature = "v1_18_3", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18_3")))] + #[cfg(feature = "v1_18_3")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18_3")))] pub fn gst_caps_take(old_caps: *mut *mut GstCaps, new_caps: *mut GstCaps) -> gboolean; //========================================================================= @@ -4776,8 +4776,8 @@ extern "C" { pub fn gst_caps_features_new_empty() -> *mut GstCapsFeatures; pub fn gst_caps_features_new_id(feature1: glib::GQuark, ...) -> *mut GstCapsFeatures; //pub fn gst_caps_features_new_id_valist(feature1: glib::GQuark, varargs: /*Unimplemented*/va_list) -> *mut GstCapsFeatures; - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_caps_features_new_single(feature: *const c_char) -> *mut GstCapsFeatures; //pub fn gst_caps_features_new_valist(feature1: *const c_char, varargs: /*Unimplemented*/va_list) -> *mut GstCapsFeatures; pub fn gst_caps_features_add(features: *mut GstCapsFeatures, feature: *const c_char); @@ -4817,8 +4817,8 @@ extern "C" { //========================================================================= pub fn gst_context_get_type() -> GType; pub fn gst_context_new(context_type: *const c_char, persistent: gboolean) -> *mut GstContext; - #[cfg(any(feature = "v1_18_3", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18_3")))] + #[cfg(feature = "v1_18_3")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18_3")))] pub fn gst_context_copy(context: *const GstContext) -> *mut GstContext; pub fn gst_context_get_context_type(context: *const GstContext) -> *const c_char; pub fn gst_context_get_structure(context: *const GstContext) -> *const GstStructure; @@ -4827,15 +4827,15 @@ extern "C" { context_type: *const c_char, ) -> gboolean; pub fn gst_context_is_persistent(context: *const GstContext) -> gboolean; - #[cfg(any(feature = "v1_18_3", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18_3")))] + #[cfg(feature = "v1_18_3")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18_3")))] pub fn gst_context_ref(context: *mut GstContext) -> *mut GstContext; - #[cfg(any(feature = "v1_18_3", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18_3")))] + #[cfg(feature = "v1_18_3")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18_3")))] pub fn gst_context_unref(context: *mut GstContext); pub fn gst_context_writable_structure(context: *mut GstContext) -> *mut GstStructure; - #[cfg(any(feature = "v1_18_3", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18_3")))] + #[cfg(feature = "v1_18_3")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18_3")))] pub fn gst_context_replace( old_context: *mut *mut GstContext, new_context: *mut GstContext, @@ -4844,11 +4844,11 @@ extern "C" { //========================================================================= // GstCustomMeta //========================================================================= - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_custom_meta_get_structure(meta: *mut GstCustomMeta) -> *mut GstStructure; - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_custom_meta_has_name(meta: *mut GstCustomMeta, name: *const c_char) -> gboolean; //========================================================================= @@ -4867,12 +4867,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(feature = "v1_18")] + #[cfg_attr(docsrs, 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(feature = "v1_18")] + #[cfg_attr(docsrs, 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, @@ -4920,8 +4920,8 @@ extern "C" { // GstDebugMessage //========================================================================= pub fn gst_debug_message_get(message: *mut GstDebugMessage) -> *const c_char; - #[cfg(any(feature = "v1_22", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] + #[cfg(feature = "v1_22")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] pub fn gst_debug_message_get_id(message: *mut GstDebugMessage) -> *const c_char; //========================================================================= @@ -5025,14 +5025,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(feature = "v1_18")] + #[cfg_attr(docsrs, 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(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub fn gst_event_new_instant_rate_sync_time( rate_multiplier: c_double, running_time: GstClockTime, @@ -5078,16 +5078,16 @@ extern "C" { 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_18_3", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18_3")))] + #[cfg(feature = "v1_18_3")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18_3")))] 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(feature = "v1_18")] + #[cfg_attr(docsrs, 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, @@ -5103,19 +5103,19 @@ extern "C" { timestamp: *mut GstClockTime, duration: *mut GstClockTime, ); - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_event_parse_gap_flags(event: *mut GstEvent, flags: *mut GstGapFlags); 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(feature = "v1_18")] + #[cfg_attr(docsrs, 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(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub fn gst_event_parse_instant_rate_sync_time( event: *mut GstEvent, rate_multiplier: *mut c_double, @@ -5146,8 +5146,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(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] pub fn gst_event_parse_seek_trickmode_interval( event: *mut GstEvent, interval: *mut GstClockTime, @@ -5179,32 +5179,32 @@ extern "C" { 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_3", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18_3")))] + #[cfg(feature = "v1_18_3")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18_3")))] pub fn gst_event_ref(event: *mut GstEvent) -> *mut GstEvent; - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_event_set_gap_flags(event: *mut GstEvent, flags: GstGapFlags); 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(feature = "v1_16")] + #[cfg_attr(docsrs, 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); 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_3", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18_3")))] + #[cfg(feature = "v1_18_3")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18_3")))] pub fn gst_event_unref(event: *mut GstEvent); pub fn gst_event_writable_structure(event: *mut GstEvent) -> *mut GstStructure; - #[cfg(any(feature = "v1_18_3", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18_3")))] + #[cfg(feature = "v1_18_3")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18_3")))] pub fn gst_event_replace(old_event: *mut *mut GstEvent, new_event: *mut GstEvent) -> gboolean; - #[cfg(any(feature = "v1_18_3", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18_3")))] + #[cfg(feature = "v1_18_3")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18_3")))] pub fn gst_event_steal(old_event: *mut *mut GstEvent) -> *mut GstEvent; - #[cfg(any(feature = "v1_18_3", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18_3")))] + #[cfg(feature = "v1_18_3")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18_3")))] pub fn gst_event_take(old_event: *mut *mut GstEvent, new_event: *mut GstEvent) -> gboolean; //========================================================================= @@ -5308,14 +5308,14 @@ extern "C" { info: *mut GstMapInfo, flags: GstMapFlags, ) -> gboolean; - #[cfg(any(feature = "v1_18_3", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18_3")))] + #[cfg(feature = "v1_18_3")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18_3")))] 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_3", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18_3")))] + #[cfg(feature = "v1_18_3")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18_3")))] pub fn gst_memory_unref(memory: *mut GstMemory); //========================================================================= @@ -5348,8 +5348,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(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] pub fn gst_message_new_device_changed( src: *mut GstObject, device: *mut GstDevice, @@ -5391,8 +5391,8 @@ extern "C" { 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(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub fn gst_message_new_instant_rate_request( src: *mut GstObject, rate_multiplier: c_double, @@ -5512,8 +5512,8 @@ extern "C" { tag_list: *mut GstTagList, entry_struct: *const GstStructure, ); - #[cfg(any(feature = "v1_18_3", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18_3")))] + #[cfg(feature = "v1_18_3")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18_3")))] pub fn gst_message_copy(msg: *const GstMessage) -> *mut GstMessage; pub fn gst_message_get_num_redirect_entries(message: *mut GstMessage) -> size_t; pub fn gst_message_get_seqnum(message: *mut GstMessage) -> u32; @@ -5541,8 +5541,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(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] pub fn gst_message_parse_device_changed( message: *mut GstMessage, device: *mut *mut GstDevice, @@ -5569,8 +5569,8 @@ extern "C" { message: *mut GstMessage, structure: *mut *const GstStructure, ); - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] + #[cfg(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub fn gst_message_parse_instant_rate_request( message: *mut GstMessage, rate_multiplier: *mut c_double, @@ -5686,8 +5686,8 @@ extern "C" { message: *mut GstMessage, structure: *mut *const GstStructure, ); - #[cfg(any(feature = "v1_18_3", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18_3")))] + #[cfg(feature = "v1_18_3")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18_3")))] pub fn gst_message_ref(msg: *mut GstMessage) -> *mut GstMessage; pub fn gst_message_set_buffering_stats( message: *mut GstMessage, @@ -5720,18 +5720,18 @@ extern "C" { message: *mut GstMessage, idx: c_uint, ) -> *mut GstStream; - #[cfg(any(feature = "v1_18_3", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18_3")))] + #[cfg(feature = "v1_18_3")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18_3")))] pub fn gst_message_unref(msg: *mut GstMessage); pub fn gst_message_writable_structure(message: *mut GstMessage) -> *mut GstStructure; - #[cfg(any(feature = "v1_18_3", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18_3")))] + #[cfg(feature = "v1_18_3")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18_3")))] pub fn gst_message_replace( old_message: *mut *mut GstMessage, new_message: *mut GstMessage, ) -> gboolean; - #[cfg(any(feature = "v1_18_3", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18_3")))] + #[cfg(feature = "v1_18_3")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18_3")))] pub fn gst_message_take( old_message: *mut *mut GstMessage, new_message: *mut GstMessage, @@ -5740,11 +5740,11 @@ extern "C" { //========================================================================= // GstMeta //========================================================================= - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, 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(feature = "v1_16")] + #[cfg_attr(docsrs, 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; @@ -5758,8 +5758,8 @@ extern "C" { free_func: GstMetaFreeFunction, transform_func: GstMetaTransformFunction, ) -> *const GstMetaInfo; - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_meta_register_custom( name: *const c_char, tags: *mut *const c_char, @@ -5771,18 +5771,18 @@ extern "C" { //========================================================================= // GstMetaInfo //========================================================================= - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_meta_info_is_custom(info: *const GstMetaInfo) -> gboolean; //========================================================================= // GstMiniObject //========================================================================= - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_mini_object_get_type() -> GType; - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, 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; @@ -5798,8 +5798,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(feature = "v1_16")] + #[cfg_attr(docsrs, 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, @@ -5861,8 +5861,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(feature = "v1_16")] + #[cfg_attr(docsrs, 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( @@ -5877,8 +5877,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(feature = "v1_16")] + #[cfg_attr(docsrs, 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); @@ -5911,12 +5911,12 @@ extern "C" { pub fn gst_promise_expire(promise: *mut GstPromise); pub fn gst_promise_get_reply(promise: *mut GstPromise) -> *const GstStructure; pub fn gst_promise_interrupt(promise: *mut GstPromise); - #[cfg(any(feature = "v1_18_3", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18_3")))] + #[cfg(feature = "v1_18_3")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18_3")))] pub fn gst_promise_ref(promise: *mut GstPromise) -> *mut GstPromise; pub fn gst_promise_reply(promise: *mut GstPromise, s: *mut GstStructure); - #[cfg(any(feature = "v1_18_3", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18_3")))] + #[cfg(feature = "v1_18_3")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18_3")))] pub fn gst_promise_unref(promise: *mut GstPromise); pub fn gst_promise_wait(promise: *mut GstPromise) -> GstPromiseResult; @@ -5931,8 +5931,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(feature = "v1_16")] + #[cfg_attr(docsrs, 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; @@ -5952,8 +5952,8 @@ extern "C" { pub fn gst_query_new_scheduling() -> *mut GstQuery; pub fn gst_query_new_seeking(format: GstFormat) -> *mut GstQuery; pub fn gst_query_new_segment(format: GstFormat) -> *mut GstQuery; - #[cfg(any(feature = "v1_22", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] + #[cfg(feature = "v1_22")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] pub fn gst_query_new_selectable() -> *mut GstQuery; pub fn gst_query_new_uri() -> *mut GstQuery; pub fn gst_query_add_allocation_meta( @@ -5975,8 +5975,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_3", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18_3")))] + #[cfg(feature = "v1_18_3")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18_3")))] pub fn gst_query_copy(q: *const GstQuery) -> *mut GstQuery; pub fn gst_query_find_allocation_meta( query: *mut GstQuery, @@ -6002,8 +6002,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(feature = "v1_16")] + #[cfg_attr(docsrs, 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, @@ -6099,8 +6099,8 @@ extern "C" { start_value: *mut i64, stop_value: *mut i64, ); - #[cfg(any(feature = "v1_22", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] + #[cfg(feature = "v1_22")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] pub fn gst_query_parse_selectable(query: *mut GstQuery, selectable: *mut gboolean); pub fn gst_query_parse_uri(query: *mut GstQuery, uri: *mut *mut c_char); pub fn gst_query_parse_uri_redirection(query: *mut GstQuery, uri: *mut *mut c_char); @@ -6108,15 +6108,15 @@ extern "C" { query: *mut GstQuery, permanent: *mut gboolean, ); - #[cfg(any(feature = "v1_18_3", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18_3")))] + #[cfg(feature = "v1_18_3")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18_3")))] pub fn gst_query_ref(q: *mut GstQuery) -> *mut GstQuery; pub fn gst_query_remove_nth_allocation_meta(query: *mut GstQuery, index: c_uint); 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(feature = "v1_16")] + #[cfg_attr(docsrs, 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( @@ -6191,21 +6191,21 @@ extern "C" { start_value: i64, stop_value: i64, ); - #[cfg(any(feature = "v1_22", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] + #[cfg(feature = "v1_22")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] pub fn gst_query_set_selectable(query: *mut GstQuery, selectable: gboolean); 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_3", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18_3")))] + #[cfg(feature = "v1_18_3")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18_3")))] pub fn gst_query_unref(q: *mut GstQuery); pub fn gst_query_writable_structure(query: *mut GstQuery) -> *mut GstStructure; - #[cfg(any(feature = "v1_18_3", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18_3")))] + #[cfg(feature = "v1_18_3")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18_3")))] pub fn gst_query_replace(old_query: *mut *mut GstQuery, new_query: *mut GstQuery) -> gboolean; - #[cfg(any(feature = "v1_18_3", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18_3")))] + #[cfg(feature = "v1_18_3")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18_3")))] pub fn gst_query_take(old_query: *mut *mut GstQuery, new_query: *mut GstQuery) -> gboolean; //========================================================================= @@ -6223,32 +6223,32 @@ extern "C" { segment: *const GstSegment, info: *mut GstStructure, ) -> *mut GstSample; - #[cfg(any(feature = "v1_18_3", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18_3")))] + #[cfg(feature = "v1_18_3")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18_3")))] 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_3", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18_3")))] + #[cfg(feature = "v1_18_3")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18_3")))] 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(feature = "v1_16")] + #[cfg_attr(docsrs, 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(feature = "v1_16")] + #[cfg_attr(docsrs, 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(feature = "v1_16")] + #[cfg_attr(docsrs, 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(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] pub fn gst_sample_set_segment(sample: *mut GstSample, segment: *const GstSegment); - #[cfg(any(feature = "v1_18_3", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18_3")))] + #[cfg(feature = "v1_18_3")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18_3")))] pub fn gst_sample_unref(sample: *mut GstSample); //========================================================================= @@ -6468,8 +6468,8 @@ extern "C" { structure: *const GstStructure, fieldname: *const c_char, ) -> GType; - #[cfg(any(feature = "v1_22", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] + #[cfg(feature = "v1_22")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] pub fn gst_structure_get_flags( structure: *const GstStructure, fieldname: *const c_char, @@ -6591,8 +6591,8 @@ extern "C" { pub fn gst_structure_remove_field(structure: *mut GstStructure, fieldname: *const c_char); 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); - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_structure_serialize( structure: *const GstStructure, flags: GstSerializeFlags, @@ -6625,8 +6625,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(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub fn gst_structure_take( oldstr_ptr: *mut *mut GstStructure, newstr: *mut GstStructure, @@ -6655,8 +6655,8 @@ extern "C" { tag: *const c_char, ... ); - #[cfg(any(feature = "v1_18_3", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18_3")))] + #[cfg(feature = "v1_18_3")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18_3")))] pub fn gst_tag_list_copy(taglist: *const GstTagList) -> *mut GstTagList; pub fn gst_tag_list_foreach( list: *const GstTagList, @@ -6822,28 +6822,28 @@ extern "C" { index: c_uint, value: *mut *const c_char, ) -> gboolean; - #[cfg(any(feature = "v1_18_3", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18_3")))] + #[cfg(feature = "v1_18_3")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18_3")))] 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_3", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18_3")))] + #[cfg(feature = "v1_18_3")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18_3")))] pub fn gst_tag_list_unref(taglist: *mut GstTagList); pub fn gst_tag_list_copy_value( dest: *mut gobject::GValue, list: *const GstTagList, tag: *const c_char, ) -> gboolean; - #[cfg(any(feature = "v1_18_3", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18_3")))] + #[cfg(feature = "v1_18_3")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18_3")))] pub fn gst_tag_list_replace( old_taglist: *mut *mut GstTagList, new_taglist: *mut GstTagList, ) -> gboolean; - #[cfg(any(feature = "v1_18_3", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18_3")))] + #[cfg(feature = "v1_18_3")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18_3")))] pub fn gst_tag_list_take( old_taglist: *mut *mut GstTagList, new_taglist: *mut GstTagList, @@ -6906,8 +6906,8 @@ extern "C" { pub fn gst_type_find_get_length(find: *mut GstTypeFind) -> u64; pub fn gst_type_find_peek(find: *mut GstTypeFind, offset: i64, size: c_uint) -> *const u8; pub fn gst_type_find_suggest(find: *mut GstTypeFind, probability: c_uint, caps: *mut GstCaps); - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_type_find_suggest_empty_simple( find: *mut GstTypeFind, probability: c_uint, @@ -6946,8 +6946,8 @@ extern "C" { ) -> *mut GstUri; pub fn gst_uri_append_path(uri: *mut GstUri, relative_path: *const c_char) -> gboolean; pub fn gst_uri_append_path_segment(uri: *mut GstUri, path_segment: *const c_char) -> gboolean; - #[cfg(any(feature = "v1_18_3", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18_3")))] + #[cfg(feature = "v1_18_3")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18_3")))] pub fn gst_uri_copy(uri: *const GstUri) -> *mut GstUri; pub fn gst_uri_equal(first: *const GstUri, second: *const GstUri) -> gboolean; pub fn gst_uri_from_string_with_base(base: *mut GstUri, uri: *const c_char) -> *mut GstUri; @@ -6960,8 +6960,8 @@ extern "C" { pub fn gst_uri_get_port(uri: *const GstUri) -> c_uint; pub fn gst_uri_get_query_keys(uri: *const GstUri) -> *mut glib::GList; pub fn gst_uri_get_query_string(uri: *const GstUri) -> *mut c_char; - #[cfg(any(feature = "v1_24", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_24")))] + #[cfg(feature = "v1_24")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))] pub fn gst_uri_get_query_string_ordered( uri: *const GstUri, keys: *const glib::GList, @@ -6986,8 +6986,8 @@ extern "C" { ) -> *mut GstUri; pub fn gst_uri_normalize(uri: *mut GstUri) -> gboolean; pub fn gst_uri_query_has_key(uri: *const GstUri, query_key: *const c_char) -> gboolean; - #[cfg(any(feature = "v1_18_3", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18_3")))] + #[cfg(feature = "v1_18_3")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18_3")))] pub fn gst_uri_ref(uri: *mut GstUri) -> *mut GstUri; pub fn gst_uri_remove_query_key(uri: *mut GstUri, query_key: *const c_char) -> gboolean; pub fn gst_uri_set_fragment(uri: *mut GstUri, fragment: *const c_char) -> gboolean; @@ -7010,17 +7010,17 @@ extern "C" { pub fn gst_uri_set_scheme(uri: *mut GstUri, scheme: *const c_char) -> gboolean; pub fn gst_uri_set_userinfo(uri: *mut GstUri, userinfo: *const c_char) -> gboolean; pub fn gst_uri_to_string(uri: *const GstUri) -> *mut c_char; - #[cfg(any(feature = "v1_24", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_24")))] + #[cfg(feature = "v1_24")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))] pub fn gst_uri_to_string_with_keys(uri: *const GstUri, keys: *const glib::GList) -> *mut c_char; - #[cfg(any(feature = "v1_18_3", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18_3")))] + #[cfg(feature = "v1_18_3")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18_3")))] pub fn gst_uri_unref(uri: *mut GstUri); 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(feature = "v1_18")] + #[cfg_attr(docsrs, 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; @@ -7057,8 +7057,8 @@ extern "C" { pub fn gst_bin_get_by_name_recurse_up(bin: *mut GstBin, name: *const c_char) -> *mut GstElement; 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(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub fn gst_bin_iterate_all_by_element_factory_name( bin: *mut GstBin, factory_name: *const c_char, @@ -7203,15 +7203,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(feature = "v1_16")] + #[cfg_attr(docsrs, 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(feature = "v1_16")] + #[cfg_attr(docsrs, 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( @@ -7405,8 +7405,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(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] pub fn gst_device_provider_device_changed( provider: *mut GstDeviceProvider, device: *mut GstDevice, @@ -7429,8 +7429,8 @@ extern "C" { key: *const c_char, ) -> *const c_char; pub fn gst_device_provider_hide_provider(provider: *mut GstDeviceProvider, name: *const c_char); - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_device_provider_is_started(provider: *mut GstDeviceProvider) -> gboolean; pub fn gst_device_provider_start(provider: *mut GstDeviceProvider) -> gboolean; pub fn gst_device_provider_stop(provider: *mut GstDeviceProvider); @@ -7503,8 +7503,8 @@ extern "C" { state_ret: GstStateChangeReturn, ) -> *const c_char; pub fn gst_element_state_get_name(state: GstState) -> *const c_char; - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_element_type_set_skip_documentation(type_: GType); pub fn gst_element_abort_state(element: *mut GstElement); pub fn gst_element_add_pad(element: *mut GstElement, pad: *mut GstPad) -> gboolean; @@ -7533,21 +7533,21 @@ extern "C" { ret: GstStateChangeReturn, ) -> GstStateChangeReturn; pub fn gst_element_create_all_pads(element: *mut GstElement); - #[cfg(any(feature = "v1_24", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_24")))] + #[cfg(feature = "v1_24")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))] pub fn gst_element_decorate_stream_id( element: *mut GstElement, stream_id: *const c_char, ) -> *mut c_char; - #[cfg(any(feature = "v1_24", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_24")))] + #[cfg(feature = "v1_24")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))] pub fn gst_element_decorate_stream_id_printf( element: *mut GstElement, format: *const c_char, ... ) -> *mut c_char; - //#[cfg(any(feature = "v1_24", feature = "dox"))] - //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_24")))] + //#[cfg(feature = "v1_24")] + //#[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))] //pub fn gst_element_decorate_stream_id_printf_valist(element: *mut GstElement, format: *const c_char, var_args: /*Unimplemented*/va_list) -> *mut c_char; pub fn gst_element_foreach_pad( element: *mut GstElement, @@ -7585,11 +7585,11 @@ 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(feature = "v1_18")] + #[cfg_attr(docsrs, 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(feature = "v1_18")] + #[cfg_attr(docsrs, 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; pub fn gst_element_get_metadata(element: *mut GstElement, key: *const c_char) -> *const c_char; @@ -7701,8 +7701,8 @@ extern "C" { name: *const c_char, caps: *const GstCaps, ) -> *mut GstPad; - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_element_request_pad_simple( element: *mut GstElement, name: *const c_char, @@ -7764,18 +7764,18 @@ extern "C" { factoryname: *const c_char, name: *const c_char, ) -> *mut GstElement; - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_element_factory_make_full( factoryname: *const c_char, first: *const c_char, ... ) -> *mut GstElement; - //#[cfg(any(feature = "v1_20", feature = "dox"))] - //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + //#[cfg(feature = "v1_20")] + //#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] //pub fn gst_element_factory_make_valist(factoryname: *const c_char, first: *const c_char, properties: /*Unimplemented*/va_list) -> *mut GstElement; - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_element_factory_make_with_properties( factoryname: *const c_char, n: c_uint, @@ -7802,18 +7802,18 @@ extern "C" { factory: *mut GstElementFactory, name: *const c_char, ) -> *mut GstElement; - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_element_factory_create_full( factory: *mut GstElementFactory, first: *const c_char, ... ) -> *mut GstElement; - //#[cfg(any(feature = "v1_20", feature = "dox"))] - //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + //#[cfg(feature = "v1_20")] + //#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] //pub fn gst_element_factory_create_valist(factory: *mut GstElementFactory, first: *const c_char, properties: /*Unimplemented*/va_list) -> *mut GstElement; - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_element_factory_create_with_properties( factory: *mut GstElementFactory, n: c_uint, @@ -7829,8 +7829,8 @@ extern "C" { factory: *mut GstElementFactory, ) -> *mut *mut c_char; pub fn gst_element_factory_get_num_pad_templates(factory: *mut GstElementFactory) -> c_uint; - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_element_factory_get_skip_documentation(factory: *mut GstElementFactory) -> gboolean; pub fn gst_element_factory_get_static_pad_templates( factory: *mut GstElementFactory, @@ -8044,8 +8044,8 @@ 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(feature = "v1_18")] + #[cfg_attr(docsrs, 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, @@ -8241,12 +8241,12 @@ 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(feature = "v1_18")] + #[cfg_attr(docsrs, 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(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub fn gst_pad_template_set_documentation_caps(templ: *mut GstPadTemplate, caps: *mut GstCaps); //========================================================================= @@ -8452,17 +8452,17 @@ extern "C" { //========================================================================= // GstSharedTaskPool //========================================================================= - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_shared_task_pool_get_type() -> GType; - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_shared_task_pool_new() -> *mut GstTaskPool; - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_shared_task_pool_get_max_threads(pool: *mut GstSharedTaskPool) -> c_uint; - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_shared_task_pool_set_max_threads(pool: *mut GstSharedTaskPool, max_threads: c_uint); //========================================================================= @@ -8524,8 +8524,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(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub fn gst_task_resume(task: *mut GstTask) -> gboolean; pub fn gst_task_set_enter_callback( task: *mut GstTask, @@ -8551,8 +8551,8 @@ extern "C" { pub fn gst_task_pool_get_type() -> GType; pub fn gst_task_pool_new() -> *mut GstTaskPool; pub fn gst_task_pool_cleanup(pool: *mut GstTaskPool); - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_task_pool_dispose_handle(pool: *mut GstTaskPool, id: gpointer); pub fn gst_task_pool_join(pool: *mut GstTaskPool, id: gpointer); pub fn gst_task_pool_prepare(pool: *mut GstTaskPool, error: *mut *mut glib::GError); @@ -8623,8 +8623,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(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub fn gst_value_array_init( value: *mut gobject::GValue, prealloc: c_uint, @@ -8656,8 +8656,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(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub fn gst_value_list_init( value: *mut gobject::GValue, prealloc: c_uint, @@ -8695,8 +8695,8 @@ extern "C" { parent: *mut GstChildProxy, name: *const c_char, ) -> *mut gobject::GObject; - #[cfg(any(feature = "v1_22", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] + #[cfg(feature = "v1_22")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] pub fn gst_child_proxy_get_child_by_name_recurse( child_proxy: *mut GstChildProxy, name: *const c_char, @@ -8820,38 +8820,38 @@ extern "C" { xbase: *mut GstClockTime, r_squared: *mut c_double, ) -> gboolean; - #[cfg(any(feature = "v1_18_3", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18_3")))] + #[cfg(feature = "v1_18_3")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18_3")))] pub fn gst_clear_buffer(buf_ptr: *mut *mut GstBuffer); - #[cfg(any(feature = "v1_18_3", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18_3")))] + #[cfg(feature = "v1_18_3")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18_3")))] pub fn gst_clear_buffer_list(list_ptr: *mut *mut GstBufferList); - #[cfg(any(feature = "v1_18_3", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18_3")))] + #[cfg(feature = "v1_18_3")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18_3")))] pub fn gst_clear_caps(caps_ptr: *mut *mut GstCaps); - #[cfg(any(feature = "v1_18_3", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18_3")))] + #[cfg(feature = "v1_18_3")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18_3")))] pub fn gst_clear_event(event_ptr: *mut *mut GstEvent); - #[cfg(any(feature = "v1_18_3", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18_3")))] + #[cfg(feature = "v1_18_3")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18_3")))] pub fn gst_clear_message(msg_ptr: *mut *mut GstMessage); - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, 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(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] pub fn gst_clear_object(object_ptr: *mut *mut GstObject); - #[cfg(any(feature = "v1_18_3", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18_3")))] + #[cfg(feature = "v1_18_3")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18_3")))] pub fn gst_clear_query(query_ptr: *mut *mut GstQuery); - #[cfg(any(feature = "v1_16", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] + #[cfg(feature = "v1_16")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] pub fn gst_clear_structure(structure_ptr: *mut *mut GstStructure); - #[cfg(any(feature = "v1_18_3", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18_3")))] + #[cfg(feature = "v1_18_3")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18_3")))] pub fn gst_clear_tag_list(taglist_ptr: *mut *mut GstTagList); - #[cfg(any(feature = "v1_18_3", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18_3")))] + #[cfg(feature = "v1_18_3")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18_3")))] pub fn gst_clear_uri(uri_ptr: *mut *mut GstUri); pub fn gst_debug_add_log_function( func: GstLogFunction, @@ -8901,8 +8901,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(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub fn gst_debug_log_get_line( category: *mut GstDebugCategory, level: GstDebugLevel, @@ -8912,8 +8912,8 @@ extern "C" { object: *mut gobject::GObject, message: *mut GstDebugMessage, ) -> *mut c_char; - #[cfg(any(feature = "v1_22", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] + #[cfg(feature = "v1_22")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] pub fn gst_debug_log_id( category: *mut GstDebugCategory, level: GstDebugLevel, @@ -8924,8 +8924,8 @@ extern "C" { format: *const c_char, ... ); - #[cfg(any(feature = "v1_22", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] + #[cfg(feature = "v1_22")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] pub fn gst_debug_log_id_literal( category: *mut GstDebugCategory, level: GstDebugLevel, @@ -8935,11 +8935,11 @@ extern "C" { id: *const c_char, message_string: *const c_char, ); - //#[cfg(any(feature = "v1_22", feature = "dox"))] - //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] + //#[cfg(feature = "v1_22")] + //#[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] //pub fn gst_debug_log_id_valist(category: *mut GstDebugCategory, level: GstDebugLevel, file: *const c_char, function: *const c_char, line: c_int, id: *const c_char, format: *const c_char, args: /*Unimplemented*/va_list); - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_debug_log_literal( category: *mut GstDebugCategory, level: GstDebugLevel, @@ -9080,8 +9080,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(feature = "v1_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub fn gst_tracing_get_active_tracers() -> *mut glib::GList; pub fn gst_tracing_register_hook( tracer: *mut GstTracer, @@ -9089,11 +9089,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(feature = "v1_18")] + #[cfg_attr(docsrs, 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(feature = "v1_18")] + #[cfg_attr(docsrs, 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( @@ -9177,8 +9177,8 @@ extern "C" { value2: *const gobject::GValue, ) -> c_int; pub fn gst_value_deserialize(dest: *mut gobject::GValue, src: *const c_char) -> gboolean; - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[cfg(feature = "v1_20")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_value_deserialize_with_pspec( dest: *mut gobject::GValue, src: *const c_char,