mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-12-23 08:36:31 +00:00
Implement glib::ValueTypeOptional for various types
This commit is contained in:
parent
e448a762ca
commit
1e18c59d2a
6 changed files with 12 additions and 0 deletions
|
@ -444,6 +444,8 @@ macro_rules! generic_impl {
|
||||||
type Type = Self;
|
type Type = Self;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl glib::value::ValueTypeOptional for $name {}
|
||||||
|
|
||||||
#[doc(hidden)]
|
#[doc(hidden)]
|
||||||
unsafe impl<'a> glib::value::FromValue<'a> for $name {
|
unsafe impl<'a> glib::value::FromValue<'a> for $name {
|
||||||
type Checker = glib::value::GenericValueTypeOrNoneChecker<Self>;
|
type Checker = glib::value::GenericValueTypeOrNoneChecker<Self>;
|
||||||
|
|
|
@ -210,6 +210,8 @@ impl glib::value::ValueType for VideoTimeCodeInterval {
|
||||||
type Type = Self;
|
type Type = Self;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl glib::value::ValueTypeOptional for VideoTimeCodeInterval {}
|
||||||
|
|
||||||
#[doc(hidden)]
|
#[doc(hidden)]
|
||||||
unsafe impl<'a> glib::value::FromValue<'a> for VideoTimeCodeInterval {
|
unsafe impl<'a> glib::value::FromValue<'a> for VideoTimeCodeInterval {
|
||||||
type Checker = glib::value::GenericValueTypeOrNoneChecker<Self>;
|
type Checker = glib::value::GenericValueTypeOrNoneChecker<Self>;
|
||||||
|
|
|
@ -235,6 +235,8 @@ impl glib::value::ValueType for CapsFeatures {
|
||||||
type Type = Self;
|
type Type = Self;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl glib::value::ValueTypeOptional for CapsFeatures {}
|
||||||
|
|
||||||
unsafe impl<'a> glib::value::FromValue<'a> for CapsFeatures {
|
unsafe impl<'a> glib::value::FromValue<'a> for CapsFeatures {
|
||||||
type Checker = glib::value::GenericValueTypeOrNoneChecker<Self>;
|
type Checker = glib::value::GenericValueTypeOrNoneChecker<Self>;
|
||||||
|
|
||||||
|
|
|
@ -502,6 +502,8 @@ impl<T: StaticType + 'static> glib::value::ValueType for Iterator<T> {
|
||||||
type Type = Self;
|
type Type = Self;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl<T: StaticType + 'static> glib::value::ValueTypeOptional for Iterator<T> {}
|
||||||
|
|
||||||
unsafe impl<'a, T: StaticType + 'static> glib::value::FromValue<'a> for Iterator<T> {
|
unsafe impl<'a, T: StaticType + 'static> glib::value::FromValue<'a> for Iterator<T> {
|
||||||
type Checker = glib::value::GenericValueTypeOrNoneChecker<Self>;
|
type Checker = glib::value::GenericValueTypeOrNoneChecker<Self>;
|
||||||
|
|
||||||
|
|
|
@ -462,6 +462,8 @@ macro_rules! mini_object_wrapper (
|
||||||
type Type = Self;
|
type Type = Self;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl glib::value::ValueTypeOptional for $name { }
|
||||||
|
|
||||||
unsafe impl<'a> $crate::glib::value::FromValue<'a> for $name {
|
unsafe impl<'a> $crate::glib::value::FromValue<'a> for $name {
|
||||||
type Checker = $crate::glib::value::GenericValueTypeOrNoneChecker<Self>;
|
type Checker = $crate::glib::value::GenericValueTypeOrNoneChecker<Self>;
|
||||||
|
|
||||||
|
|
|
@ -306,6 +306,8 @@ impl glib::value::ValueType for Structure {
|
||||||
type Type = Self;
|
type Type = Self;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl glib::value::ValueTypeOptional for Structure {}
|
||||||
|
|
||||||
unsafe impl<'a> glib::value::FromValue<'a> for Structure {
|
unsafe impl<'a> glib::value::FromValue<'a> for Structure {
|
||||||
type Checker = glib::value::GenericValueTypeOrNoneChecker<Self>;
|
type Checker = glib::value::GenericValueTypeOrNoneChecker<Self>;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue