forked from mirrors/gstreamer-rs
gstreamer: Mark Structure
and CapsFeatures
as #[repr(transparent)]
too
This commit is contained in:
parent
fb56bbda6e
commit
68d492bb33
2 changed files with 2 additions and 0 deletions
|
@ -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 {}
|
||||||
|
|
|
@ -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 {}
|
||||||
|
|
Loading…
Reference in a new issue