gstreamer: Mark Structure and CapsFeatures as #[repr(transparent)] too

This commit is contained in:
Sebastian Dröge 2022-01-17 21:23:31 +02:00
parent 5b8f4a8632
commit 656e815b23
2 changed files with 2 additions and 0 deletions

View file

@ -14,6 +14,7 @@ use glib::translate::*;
use glib::StaticType; use glib::StaticType;
#[doc(alias = "GstCapsFeatures")] #[doc(alias = "GstCapsFeatures")]
#[repr(transparent)]
pub struct CapsFeatures(ptr::NonNull<ffi::GstCapsFeatures>); pub struct CapsFeatures(ptr::NonNull<ffi::GstCapsFeatures>);
unsafe impl Send for CapsFeatures {} unsafe impl Send for CapsFeatures {}
unsafe impl Sync for CapsFeatures {} unsafe impl Sync for CapsFeatures {}

View file

@ -63,6 +63,7 @@ impl GlibValueError for glib::value::ValueTypeMismatchOrNoneError {
} }
#[doc(alias = "GstStructure")] #[doc(alias = "GstStructure")]
#[repr(transparent)]
pub struct Structure(ptr::NonNull<ffi::GstStructure>); pub struct Structure(ptr::NonNull<ffi::GstStructure>);
unsafe impl Send for Structure {} unsafe impl Send for Structure {}
unsafe impl Sync for Structure {} unsafe impl Sync for Structure {}