From 5ba79976a915b1deed7f2b0eb636df378b1febd4 Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Tue, 1 Jun 2021 15:15:59 +0200 Subject: [PATCH] Generate missing doc aliases for newtypes --- gstreamer-audio/src/audio_format_info.rs | 1 + gstreamer-audio/src/audio_info.rs | 1 + gstreamer-audio/src/audio_meta.rs | 2 ++ gstreamer-base/src/flow_combiner.rs | 1 + gstreamer-base/src/utils.rs | 1 + gstreamer-check/src/harness.rs | 1 + gstreamer-controller/src/control_point.rs | 1 + gstreamer-gl/src/gl_sync_meta.rs | 1 + gstreamer-net/src/net_address_meta.rs | 1 + gstreamer-rtsp-server/src/rtsp_context.rs | 1 + gstreamer-sdp/src/sdp_attribute.rs | 1 + gstreamer-sdp/src/sdp_bandwidth.rs | 1 + gstreamer-sdp/src/sdp_connection.rs | 1 + gstreamer-sdp/src/sdp_key.rs | 1 + gstreamer-sdp/src/sdp_media.rs | 2 ++ gstreamer-sdp/src/sdp_message.rs | 2 ++ gstreamer-sdp/src/sdp_origin.rs | 1 + gstreamer-sdp/src/sdp_time.rs | 1 + gstreamer-sdp/src/sdp_zone.rs | 1 + gstreamer-video/src/video_buffer_pool.rs | 1 + gstreamer-video/src/video_converter.rs | 1 + gstreamer-video/src/video_format_info.rs | 1 + gstreamer-video/src/video_info.rs | 2 ++ gstreamer-video/src/video_meta.rs | 8 ++++++++ gstreamer-video/src/video_time_code.rs | 3 +++ gstreamer-video/src/video_time_code_interval.rs | 1 + gstreamer/src/allocation_params.rs | 1 + gstreamer/src/buffer_pool.rs | 1 + gstreamer/src/caps_features.rs | 2 ++ gstreamer/src/log.rs | 3 +++ gstreamer/src/meta.rs | 4 ++++ gstreamer/src/parse_context.rs | 1 + gstreamer/src/promise.rs | 1 + gstreamer/src/segment.rs | 1 + gstreamer/src/static_caps.rs | 1 + gstreamer/src/static_pad_template.rs | 1 + gstreamer/src/structure.rs | 2 ++ gstreamer/src/typefind.rs | 1 + gstreamer/src/utils.rs | 1 + 39 files changed, 59 insertions(+) diff --git a/gstreamer-audio/src/audio_format_info.rs b/gstreamer-audio/src/audio_format_info.rs index b0edba958..f23c72845 100644 --- a/gstreamer-audio/src/audio_format_info.rs +++ b/gstreamer-audio/src/audio_format_info.rs @@ -40,6 +40,7 @@ impl IntoGlib for AudioEndianness { } } +#[doc(alias = "GstAudioFormatInfo")] pub struct AudioFormatInfo(&'static ffi::GstAudioFormatInfo); impl AudioFormatInfo { diff --git a/gstreamer-audio/src/audio_info.rs b/gstreamer-audio/src/audio_info.rs index 5ba900d02..d3b631fec 100644 --- a/gstreamer-audio/src/audio_info.rs +++ b/gstreamer-audio/src/audio_info.rs @@ -9,6 +9,7 @@ use std::fmt; use std::mem; use std::ptr; +#[doc(alias = "GstAudioInfo")] pub struct AudioInfo(ffi::GstAudioInfo, [crate::AudioChannelPosition; 64]); impl fmt::Debug for AudioInfo { diff --git a/gstreamer-audio/src/audio_meta.rs b/gstreamer-audio/src/audio_meta.rs index a2422f997..36b67cab6 100644 --- a/gstreamer-audio/src/audio_meta.rs +++ b/gstreamer-audio/src/audio_meta.rs @@ -15,6 +15,7 @@ use glib::translate::{from_glib_none, ToGlibPtr}; use gst::prelude::*; #[repr(transparent)] +#[doc(alias = "GstAudioClippingMeta")] pub struct AudioClippingMeta(ffi::GstAudioClippingMeta); unsafe impl Send for AudioClippingMeta {} @@ -75,6 +76,7 @@ impl fmt::Debug for AudioClippingMeta { #[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[repr(transparent)] +#[doc(alias = "GstAudioMeta")] pub struct AudioMeta(ffi::GstAudioMeta); #[cfg(any(feature = "v1_16", feature = "dox"))] diff --git a/gstreamer-base/src/flow_combiner.rs b/gstreamer-base/src/flow_combiner.rs index 9e28f873c..d686f473c 100644 --- a/gstreamer-base/src/flow_combiner.rs +++ b/gstreamer-base/src/flow_combiner.rs @@ -5,6 +5,7 @@ use glib::translate::*; glib::wrapper! { #[derive(Debug, PartialEq, Eq, PartialOrd, Ord, Hash)] + #[doc(alias = "GstFlowCombiner")] pub struct FlowCombiner(Shared); match fn { diff --git a/gstreamer-base/src/utils.rs b/gstreamer-base/src/utils.rs index 8ffc2afb3..de52dc90c 100644 --- a/gstreamer-base/src/utils.rs +++ b/gstreamer-base/src/utils.rs @@ -3,6 +3,7 @@ use glib::translate::mut_override; #[must_use = "if unused the Mutex will immediately unlock"] +#[doc(alias = "GMutex")] pub struct MutexGuard<'a>(&'a glib::ffi::GMutex); impl<'a> MutexGuard<'a> { diff --git a/gstreamer-check/src/harness.rs b/gstreamer-check/src/harness.rs index 8f2a40786..33fb18b04 100644 --- a/gstreamer-check/src/harness.rs +++ b/gstreamer-check/src/harness.rs @@ -10,6 +10,7 @@ use std::path; use std::ptr; #[derive(Debug)] +#[doc(alias = "GstHarness")] pub struct Harness(ptr::NonNull); impl Drop for Harness { diff --git a/gstreamer-controller/src/control_point.rs b/gstreamer-controller/src/control_point.rs index 44ce0ac0d..9d1659b88 100644 --- a/gstreamer-controller/src/control_point.rs +++ b/gstreamer-controller/src/control_point.rs @@ -4,6 +4,7 @@ use glib::translate::*; glib::wrapper! { #[derive(Debug, PartialEq, Eq, PartialOrd, Ord, Hash)] + #[doc(alias = "GstControlPoint")] pub struct ControlPoint(Boxed); match fn { diff --git a/gstreamer-gl/src/gl_sync_meta.rs b/gstreamer-gl/src/gl_sync_meta.rs index c76402f11..d9223c03b 100644 --- a/gstreamer-gl/src/gl_sync_meta.rs +++ b/gstreamer-gl/src/gl_sync_meta.rs @@ -8,6 +8,7 @@ use gst::prelude::*; use crate::GLContext; #[repr(transparent)] +#[doc(alias = "GstGLSyncMeta")] pub struct GLSyncMeta(ffi::GstGLSyncMeta); unsafe impl Send for GLSyncMeta {} diff --git a/gstreamer-net/src/net_address_meta.rs b/gstreamer-net/src/net_address_meta.rs index 8cd54d617..1c94a7ddc 100644 --- a/gstreamer-net/src/net_address_meta.rs +++ b/gstreamer-net/src/net_address_meta.rs @@ -6,6 +6,7 @@ use glib::translate::*; use gst::prelude::*; #[repr(transparent)] +#[doc(alias = "GstNetAddressMeta")] pub struct NetAddressMeta(ffi::GstNetAddressMeta); unsafe impl Send for NetAddressMeta {} diff --git a/gstreamer-rtsp-server/src/rtsp_context.rs b/gstreamer-rtsp-server/src/rtsp_context.rs index 0ac7eadcd..86165b414 100644 --- a/gstreamer-rtsp-server/src/rtsp_context.rs +++ b/gstreamer-rtsp-server/src/rtsp_context.rs @@ -4,6 +4,7 @@ use glib::translate::*; use std::ptr; #[derive(Debug, PartialEq, Eq)] +#[doc(alias = "GstRTSPContext")] pub struct RTSPContext(ptr::NonNull); impl RTSPContext { diff --git a/gstreamer-sdp/src/sdp_attribute.rs b/gstreamer-sdp/src/sdp_attribute.rs index 13749acc7..333124b95 100644 --- a/gstreamer-sdp/src/sdp_attribute.rs +++ b/gstreamer-sdp/src/sdp_attribute.rs @@ -7,6 +7,7 @@ use std::mem; use glib::translate::*; #[repr(transparent)] +#[doc(alias = "GstSDPAttribute")] pub struct SDPAttribute(pub(crate) ffi::GstSDPAttribute); unsafe impl Send for SDPAttribute {} diff --git a/gstreamer-sdp/src/sdp_bandwidth.rs b/gstreamer-sdp/src/sdp_bandwidth.rs index 8b16177e2..b6258d455 100644 --- a/gstreamer-sdp/src/sdp_bandwidth.rs +++ b/gstreamer-sdp/src/sdp_bandwidth.rs @@ -7,6 +7,7 @@ use std::mem; use glib::translate::*; #[repr(transparent)] +#[doc(alias = "GstSDPBandwidth")] pub struct SDPBandwidth(pub(crate) ffi::GstSDPBandwidth); unsafe impl Send for SDPBandwidth {} diff --git a/gstreamer-sdp/src/sdp_connection.rs b/gstreamer-sdp/src/sdp_connection.rs index 72c177293..2fda9784a 100644 --- a/gstreamer-sdp/src/sdp_connection.rs +++ b/gstreamer-sdp/src/sdp_connection.rs @@ -7,6 +7,7 @@ use std::mem; use glib::translate::*; #[repr(transparent)] +#[doc(alias = "GstSDPConnection")] pub struct SDPConnection(pub(crate) ffi::GstSDPConnection); unsafe impl Send for SDPConnection {} diff --git a/gstreamer-sdp/src/sdp_key.rs b/gstreamer-sdp/src/sdp_key.rs index 5610a4d76..d781a4d14 100644 --- a/gstreamer-sdp/src/sdp_key.rs +++ b/gstreamer-sdp/src/sdp_key.rs @@ -4,6 +4,7 @@ use std::ffi::CStr; use std::fmt; #[repr(transparent)] +#[doc(alias = "GstSDPKey")] pub struct SDPKey(ffi::GstSDPKey); unsafe impl Send for SDPKey {} diff --git a/gstreamer-sdp/src/sdp_media.rs b/gstreamer-sdp/src/sdp_media.rs index 62dfec383..04a5f4449 100644 --- a/gstreamer-sdp/src/sdp_media.rs +++ b/gstreamer-sdp/src/sdp_media.rs @@ -16,6 +16,7 @@ use crate::sdp_key::SDPKey; glib::wrapper! { #[derive(PartialEq, Eq, PartialOrd, Ord, Hash)] + #[doc(alias = "GstSDPMedia")] pub struct SDPMedia(Boxed); match fn { @@ -78,6 +79,7 @@ impl fmt::Display for SDPMedia { } #[repr(transparent)] +#[doc(alias = "GstSDPMedia")] pub struct SDPMediaRef(ffi::GstSDPMedia); impl fmt::Debug for SDPMediaRef { diff --git a/gstreamer-sdp/src/sdp_message.rs b/gstreamer-sdp/src/sdp_message.rs index 65b7d338d..2eca449b6 100644 --- a/gstreamer-sdp/src/sdp_message.rs +++ b/gstreamer-sdp/src/sdp_message.rs @@ -22,6 +22,7 @@ use crate::sdp_zone::SDPZone; glib::wrapper! { #[derive(PartialEq, Eq, PartialOrd, Ord, Hash)] + #[doc(alias = "GstSDPMessage")] pub struct SDPMessage(Boxed); match fn { @@ -118,6 +119,7 @@ impl SDPMessage { } #[repr(transparent)] +#[doc(alias = "GstSDPMessage")] pub struct SDPMessageRef(ffi::GstSDPMessage); impl fmt::Debug for SDPMessageRef { diff --git a/gstreamer-sdp/src/sdp_origin.rs b/gstreamer-sdp/src/sdp_origin.rs index ee51509d8..16e69fbbc 100644 --- a/gstreamer-sdp/src/sdp_origin.rs +++ b/gstreamer-sdp/src/sdp_origin.rs @@ -4,6 +4,7 @@ use std::ffi::CStr; use std::fmt; #[repr(transparent)] +#[doc(alias = "GstSDPOrigin")] pub struct SDPOrigin(pub(crate) ffi::GstSDPOrigin); unsafe impl Send for SDPOrigin {} diff --git a/gstreamer-sdp/src/sdp_time.rs b/gstreamer-sdp/src/sdp_time.rs index 7d72e2a56..cc9330f85 100644 --- a/gstreamer-sdp/src/sdp_time.rs +++ b/gstreamer-sdp/src/sdp_time.rs @@ -9,6 +9,7 @@ use std::ptr; use glib::translate::*; #[repr(transparent)] +#[doc(alias = "GstSDPTime")] pub struct SDPTime(pub(crate) ffi::GstSDPTime); unsafe impl Send for SDPTime {} diff --git a/gstreamer-sdp/src/sdp_zone.rs b/gstreamer-sdp/src/sdp_zone.rs index 63aa76bbb..d707ec304 100644 --- a/gstreamer-sdp/src/sdp_zone.rs +++ b/gstreamer-sdp/src/sdp_zone.rs @@ -7,6 +7,7 @@ use std::mem; use glib::translate::*; #[repr(transparent)] +#[doc(alias = "GstSDPZone")] pub struct SDPZone(pub(crate) ffi::GstSDPZone); unsafe impl Send for SDPZone {} diff --git a/gstreamer-video/src/video_buffer_pool.rs b/gstreamer-video/src/video_buffer_pool.rs index 7a290913d..f2c35502a 100644 --- a/gstreamer-video/src/video_buffer_pool.rs +++ b/gstreamer-video/src/video_buffer_pool.rs @@ -31,6 +31,7 @@ pub static BUFFER_POOL_OPTION_VIDEO_META: Lazy<&'static str> = Lazy::new(|| unsa }); #[derive(Debug, Clone)] +#[doc(alias = "GstVideoAlignment")] pub struct VideoAlignment(pub(crate) ffi::GstVideoAlignment); impl VideoAlignment { diff --git a/gstreamer-video/src/video_converter.rs b/gstreamer-video/src/video_converter.rs index 5f55ab5ce..08ca45e80 100644 --- a/gstreamer-video/src/video_converter.rs +++ b/gstreamer-video/src/video_converter.rs @@ -7,6 +7,7 @@ use std::ops; use std::ptr; #[derive(Debug)] +#[doc(alias = "GstVideoConverter")] pub struct VideoConverter(ptr::NonNull); impl Drop for VideoConverter { diff --git a/gstreamer-video/src/video_format_info.rs b/gstreamer-video/src/video_format_info.rs index 2521e1860..a1696cb69 100644 --- a/gstreamer-video/src/video_format_info.rs +++ b/gstreamer-video/src/video_format_info.rs @@ -7,6 +7,7 @@ use std::str; use glib::translate::{from_glib, IntoGlib, ToGlibPtr}; +#[doc(alias = "GstVideoFormatInfo")] pub struct VideoFormatInfo(&'static ffi::GstVideoFormatInfo); impl VideoFormatInfo { diff --git a/gstreamer-video/src/video_info.rs b/gstreamer-video/src/video_info.rs index 235c7a132..10e46a6f5 100644 --- a/gstreamer-video/src/video_info.rs +++ b/gstreamer-video/src/video_info.rs @@ -82,6 +82,7 @@ impl ToValue for VideoColorRange { } } +#[doc(alias = "GstVideoColorimetry")] pub struct VideoColorimetry(ffi::GstVideoColorimetry); impl VideoColorimetry { @@ -248,6 +249,7 @@ impl std::convert::TryFrom for crate::VideoMultiviewF } } +#[doc(alias = "GstVideoInfo")] pub struct VideoInfo(pub(crate) ffi::GstVideoInfo); impl fmt::Debug for VideoInfo { diff --git a/gstreamer-video/src/video_meta.rs b/gstreamer-video/src/video_meta.rs index b0c72a225..341302601 100644 --- a/gstreamer-video/src/video_meta.rs +++ b/gstreamer-video/src/video_meta.rs @@ -7,6 +7,7 @@ use glib::translate::{from_glib, from_glib_none, FromGlib, IntoGlib, ToGlibPtr}; use gst::prelude::*; #[repr(transparent)] +#[doc(alias = "GstVideoMeta")] pub struct VideoMeta(ffi::GstVideoMeta); unsafe impl Send for VideoMeta {} @@ -245,6 +246,7 @@ impl fmt::Debug for VideoMeta { } #[repr(transparent)] +#[doc(alias = "GstVideoCropMeta")] pub struct VideoCropMeta(ffi::GstVideoCropMeta); unsafe impl Send for VideoCropMeta {} @@ -307,6 +309,7 @@ impl fmt::Debug for VideoCropMeta { } #[repr(transparent)] +#[doc(alias = "GstVideoRegionOfInterestMeta")] pub struct VideoRegionOfInterestMeta(ffi::GstVideoRegionOfInterestMeta); unsafe impl Send for VideoRegionOfInterestMeta {} @@ -448,6 +451,7 @@ impl fmt::Debug for VideoRegionOfInterestMeta { } #[repr(transparent)] +#[doc(alias = "GstVideoAffineTransformationMeta")] pub struct VideoAffineTransformationMeta(ffi::GstVideoAffineTransformationMeta); unsafe impl Send for VideoAffineTransformationMeta {} @@ -511,6 +515,7 @@ impl fmt::Debug for VideoAffineTransformationMeta { } #[repr(transparent)] +#[doc(alias = "GstVideoOverlayCompositionMeta")] pub struct VideoOverlayCompositionMeta(ffi::GstVideoOverlayCompositionMeta); unsafe impl Send for VideoOverlayCompositionMeta {} @@ -573,6 +578,7 @@ impl fmt::Debug for VideoOverlayCompositionMeta { #[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[repr(transparent)] +#[doc(alias = "GstVideoCaptionMeta")] pub struct VideoCaptionMeta(ffi::GstVideoCaptionMeta); #[cfg(any(feature = "v1_16", feature = "dox"))] @@ -645,6 +651,7 @@ impl fmt::Debug for VideoCaptionMeta { #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[repr(transparent)] +#[doc(alias = "GstVideoAFDMeta")] pub struct VideoAFDMeta(ffi::GstVideoAFDMeta); #[cfg(any(feature = "v1_18", feature = "dox"))] @@ -720,6 +727,7 @@ impl fmt::Debug for VideoAFDMeta { #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[repr(transparent)] +#[doc(alias = "GstVideoBarMeta")] pub struct VideoBarMeta(ffi::GstVideoBarMeta); #[cfg(any(feature = "v1_18", feature = "dox"))] diff --git a/gstreamer-video/src/video_time_code.rs b/gstreamer-video/src/video_time_code.rs index 678900ab4..681d2aa8d 100644 --- a/gstreamer-video/src/video_time_code.rs +++ b/gstreamer-video/src/video_time_code.rs @@ -16,7 +16,9 @@ use crate::VideoTimeCodeFlags; #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] use crate::VideoTimeCodeInterval; +#[doc(alias = "GstVideoTimeCode")] pub struct VideoTimeCode(ffi::GstVideoTimeCode); +#[doc(alias = "GstVideoTimeCode")] pub struct ValidVideoTimeCode(ffi::GstVideoTimeCode); impl VideoTimeCode { @@ -541,6 +543,7 @@ impl From for VideoTimeCode { } #[repr(transparent)] +#[doc(alias = "GstVideoTimeCodeMeta")] pub struct VideoTimeCodeMeta(ffi::GstVideoTimeCodeMeta); unsafe impl Send for VideoTimeCodeMeta {} diff --git a/gstreamer-video/src/video_time_code_interval.rs b/gstreamer-video/src/video_time_code_interval.rs index 88a8f6861..697a0c379 100644 --- a/gstreamer-video/src/video_time_code_interval.rs +++ b/gstreamer-video/src/video_time_code_interval.rs @@ -9,6 +9,7 @@ use std::ptr; use std::str; #[derive(Clone)] +#[doc(alias = "GstVideoTimeCodeInterval")] pub struct VideoTimeCodeInterval(ffi::GstVideoTimeCodeInterval); impl VideoTimeCodeInterval { diff --git a/gstreamer/src/allocation_params.rs b/gstreamer/src/allocation_params.rs index 1de35f98f..27d461f70 100644 --- a/gstreamer/src/allocation_params.rs +++ b/gstreamer/src/allocation_params.rs @@ -7,6 +7,7 @@ use glib::translate::*; use crate::MemoryFlags; #[derive(Debug, Clone)] +#[doc(alias = "GstAllocationParams")] pub struct AllocationParams(ffi::GstAllocationParams); unsafe impl Send for AllocationParams {} diff --git a/gstreamer/src/buffer_pool.rs b/gstreamer/src/buffer_pool.rs index 95428695e..675e957b2 100644 --- a/gstreamer/src/buffer_pool.rs +++ b/gstreamer/src/buffer_pool.rs @@ -187,6 +187,7 @@ impl BufferPoolConfig { } #[derive(Debug)] +#[doc(alias = "GstBufferPoolAcquireParams")] pub struct BufferPoolAcquireParams(ffi::GstBufferPoolAcquireParams); unsafe impl Send for BufferPoolAcquireParams {} diff --git a/gstreamer/src/caps_features.rs b/gstreamer/src/caps_features.rs index c5b5e719c..49dcdc655 100644 --- a/gstreamer/src/caps_features.rs +++ b/gstreamer/src/caps_features.rs @@ -13,6 +13,7 @@ use once_cell::sync::Lazy; use glib::translate::*; use glib::StaticType; +#[doc(alias = "GstCapsFeatures")] pub struct CapsFeatures(ptr::NonNull); unsafe impl Send for CapsFeatures {} unsafe impl Sync for CapsFeatures {} @@ -278,6 +279,7 @@ impl GlibPtrDefault for CapsFeatures { } #[repr(transparent)] +#[doc(alias = "GstCapsFeatures")] pub struct CapsFeaturesRef(ffi::GstCapsFeatures); impl CapsFeaturesRef { diff --git a/gstreamer/src/log.rs b/gstreamer/src/log.rs index 61d2d3fc5..4eac4ae08 100644 --- a/gstreamer/src/log.rs +++ b/gstreamer/src/log.rs @@ -15,6 +15,7 @@ use glib::prelude::*; use glib::translate::*; #[derive(PartialEq, Eq)] +#[doc(alias = "GstDebugMessage")] pub struct DebugMessage(ptr::NonNull); impl fmt::Debug for DebugMessage { @@ -39,6 +40,7 @@ impl DebugMessage { } #[derive(PartialEq, Eq, Clone, Copy)] +#[doc(alias = "GstDebugCategory")] pub struct DebugCategory(Option>); impl DebugCategory { @@ -389,6 +391,7 @@ unsafe impl Send for DebugLogFunction {} unsafe impl Sync for DebugLogFunction {} #[derive(Debug)] +#[doc(alias = "GObject")] pub struct LoggedObject(ptr::NonNull); impl LoggedObject { diff --git a/gstreamer/src/meta.rs b/gstreamer/src/meta.rs index 452940a74..393c8beec 100644 --- a/gstreamer/src/meta.rs +++ b/gstreamer/src/meta.rs @@ -234,6 +234,7 @@ impl<'a, U> MetaRefMut<'a, Meta, U> { } #[repr(transparent)] +#[doc(alias = "GstMeta")] pub struct Meta(ffi::GstMeta); unsafe impl Send for Meta {} @@ -261,6 +262,7 @@ impl fmt::Debug for Meta { } #[repr(transparent)] +#[doc(alias = "GstParentBufferMeta")] pub struct ParentBufferMeta(ffi::GstParentBufferMeta); unsafe impl Send for ParentBufferMeta {} @@ -309,6 +311,7 @@ impl fmt::Debug for ParentBufferMeta { } #[repr(transparent)] +#[doc(alias = "GstProtectionMeta")] pub struct ProtectionMeta(ffi::GstProtectionMeta); unsafe impl Send for ProtectionMeta {} @@ -356,6 +359,7 @@ impl fmt::Debug for ProtectionMeta { #[cfg(any(feature = "v1_14", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] #[repr(transparent)] +#[doc(alias = "GstReferenceTimestampMeta")] pub struct ReferenceTimestampMeta(ffi::GstReferenceTimestampMeta); #[cfg(any(feature = "v1_14", feature = "dox"))] diff --git a/gstreamer/src/parse_context.rs b/gstreamer/src/parse_context.rs index ea4ffc3e5..eb94b5672 100644 --- a/gstreamer/src/parse_context.rs +++ b/gstreamer/src/parse_context.rs @@ -4,6 +4,7 @@ use glib::translate::*; glib::wrapper! { #[derive(Debug, PartialEq, Eq, PartialOrd, Ord, Hash)] + #[doc(alias = "GstParseContext")] pub struct ParseContext(Boxed); match fn { diff --git a/gstreamer/src/promise.rs b/gstreamer/src/promise.rs index f5bbfcb48..c140565d4 100644 --- a/gstreamer/src/promise.rs +++ b/gstreamer/src/promise.rs @@ -11,6 +11,7 @@ use std::{ops::Deref, pin::Pin}; glib::wrapper! { #[derive(Debug, PartialEq, Eq, PartialOrd, Ord, Hash)] + #[doc(alias = "GstPromise")] pub struct Promise(Shared); match fn { diff --git a/gstreamer/src/segment.rs b/gstreamer/src/segment.rs index 0939caeba..6ac0059ce 100644 --- a/gstreamer/src/segment.rs +++ b/gstreamer/src/segment.rs @@ -14,6 +14,7 @@ use std::ptr; pub type Segment = FormattedSegment; #[repr(transparent)] +#[doc(alias = "GstSegment")] pub struct FormattedSegment(ffi::GstSegment, PhantomData); impl Segment { diff --git a/gstreamer/src/static_caps.rs b/gstreamer/src/static_caps.rs index 86a5ea8eb..bc88e5915 100644 --- a/gstreamer/src/static_caps.rs +++ b/gstreamer/src/static_caps.rs @@ -9,6 +9,7 @@ use std::ffi::CStr; use std::fmt; use std::ptr; +#[doc(alias = "GstStaticCaps")] pub struct StaticCaps(ptr::NonNull); impl StaticCaps { diff --git a/gstreamer/src/static_pad_template.rs b/gstreamer/src/static_pad_template.rs index c041c3223..bc682ada8 100644 --- a/gstreamer/src/static_pad_template.rs +++ b/gstreamer/src/static_pad_template.rs @@ -10,6 +10,7 @@ use std::ffi::CStr; use std::fmt; use std::ptr; +#[doc(alias = "GstStaticPadTemplate")] pub struct StaticPadTemplate(ptr::NonNull); impl StaticPadTemplate { diff --git a/gstreamer/src/structure.rs b/gstreamer/src/structure.rs index cf73435da..9444f9d56 100644 --- a/gstreamer/src/structure.rs +++ b/gstreamer/src/structure.rs @@ -62,6 +62,7 @@ impl GlibValueError for glib::value::ValueTypeMismatchOrNoneError { } } +#[doc(alias = "GstStructure")] pub struct Structure(ptr::NonNull); unsafe impl Send for Structure {} unsafe impl Sync for Structure {} @@ -354,6 +355,7 @@ impl GlibPtrDefault for Structure { } #[repr(transparent)] +#[doc(alias = "GstStructure")] pub struct StructureRef(ffi::GstStructure); unsafe impl Send for StructureRef {} diff --git a/gstreamer/src/typefind.rs b/gstreamer/src/typefind.rs index e0a62d41a..d46fe5716 100644 --- a/gstreamer/src/typefind.rs +++ b/gstreamer/src/typefind.rs @@ -12,6 +12,7 @@ use std::slice; #[repr(transparent)] #[derive(Debug)] +#[doc(alias = "GstTypeFind")] pub struct TypeFind(ffi::GstTypeFind); pub trait TypeFindImpl { diff --git a/gstreamer/src/utils.rs b/gstreamer/src/utils.rs index 8ffc2afb3..de52dc90c 100644 --- a/gstreamer/src/utils.rs +++ b/gstreamer/src/utils.rs @@ -3,6 +3,7 @@ use glib::translate::mut_override; #[must_use = "if unused the Mutex will immediately unlock"] +#[doc(alias = "GMutex")] pub struct MutexGuard<'a>(&'a glib::ffi::GMutex); impl<'a> MutexGuard<'a> {