2019-08-13 17:12:09 +00:00
|
|
|
// This file was generated by gir (https://github.com/gtk-rs/gir)
|
|
|
|
// from gir-files (https://github.com/gtk-rs/gir-files)
|
|
|
|
// DO NOT EDIT
|
|
|
|
|
|
|
|
use glib::translate::*;
|
|
|
|
use glib::value::FromValue;
|
|
|
|
use glib::value::FromValueOptional;
|
|
|
|
use glib::value::SetValue;
|
|
|
|
use glib::StaticType;
|
|
|
|
use glib::Type;
|
|
|
|
|
|
|
|
#[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)]
|
2020-04-12 15:55:06 +00:00
|
|
|
#[non_exhaustive]
|
2020-12-18 14:23:05 +00:00
|
|
|
#[doc(alias = "GstRTCPFBType")]
|
2019-08-13 17:12:09 +00:00
|
|
|
pub enum RTCPFBType {
|
2020-12-18 14:23:05 +00:00
|
|
|
#[doc(alias = "GST_RTCP_FB_TYPE_INVALID")]
|
2019-08-13 17:12:09 +00:00
|
|
|
FbTypeInvalid,
|
2020-12-18 14:23:05 +00:00
|
|
|
#[doc(alias = "GST_RTCP_RTPFB_TYPE_NACK")]
|
2019-08-13 17:12:09 +00:00
|
|
|
RtpfbTypeNack,
|
2020-12-18 14:23:05 +00:00
|
|
|
#[doc(alias = "GST_RTCP_RTPFB_TYPE_TMMBR")]
|
2019-08-13 17:12:09 +00:00
|
|
|
RtpfbTypeTmmbr,
|
2020-12-18 14:23:05 +00:00
|
|
|
#[doc(alias = "GST_RTCP_RTPFB_TYPE_TMMBN")]
|
2019-08-13 17:12:09 +00:00
|
|
|
RtpfbTypeTmmbn,
|
2020-12-18 14:23:05 +00:00
|
|
|
#[doc(alias = "GST_RTCP_RTPFB_TYPE_RTCP_SR_REQ")]
|
2019-08-13 17:12:09 +00:00
|
|
|
RtpfbTypeRtcpSrReq,
|
2020-12-18 14:23:05 +00:00
|
|
|
#[doc(alias = "GST_RTCP_RTPFB_TYPE_TWCC")]
|
2020-04-30 16:51:41 +00:00
|
|
|
RtpfbTypeTwcc,
|
2020-12-18 14:23:05 +00:00
|
|
|
#[doc(alias = "GST_RTCP_PSFB_TYPE_SLI")]
|
2019-08-13 17:12:09 +00:00
|
|
|
PsfbTypeSli,
|
2020-12-18 14:23:05 +00:00
|
|
|
#[doc(alias = "GST_RTCP_PSFB_TYPE_TSTN")]
|
2019-08-13 17:12:09 +00:00
|
|
|
PsfbTypeTstn,
|
2020-12-18 14:23:05 +00:00
|
|
|
#[doc(alias = "GST_RTCP_PSFB_TYPE_VBCN")]
|
2019-08-13 17:12:09 +00:00
|
|
|
PsfbTypeVbcn,
|
|
|
|
#[doc(hidden)]
|
|
|
|
__Unknown(i32),
|
|
|
|
}
|
|
|
|
|
|
|
|
#[doc(hidden)]
|
|
|
|
impl ToGlib for RTCPFBType {
|
2020-11-22 10:32:36 +00:00
|
|
|
type GlibType = ffi::GstRTCPFBType;
|
2019-08-13 17:12:09 +00:00
|
|
|
|
2020-11-22 10:32:36 +00:00
|
|
|
fn to_glib(&self) -> ffi::GstRTCPFBType {
|
2019-08-13 17:12:09 +00:00
|
|
|
match *self {
|
2020-11-22 10:32:36 +00:00
|
|
|
RTCPFBType::FbTypeInvalid => ffi::GST_RTCP_FB_TYPE_INVALID,
|
|
|
|
RTCPFBType::RtpfbTypeNack => ffi::GST_RTCP_RTPFB_TYPE_NACK,
|
|
|
|
RTCPFBType::RtpfbTypeTmmbr => ffi::GST_RTCP_RTPFB_TYPE_TMMBR,
|
|
|
|
RTCPFBType::RtpfbTypeTmmbn => ffi::GST_RTCP_RTPFB_TYPE_TMMBN,
|
|
|
|
RTCPFBType::RtpfbTypeRtcpSrReq => ffi::GST_RTCP_RTPFB_TYPE_RTCP_SR_REQ,
|
|
|
|
RTCPFBType::RtpfbTypeTwcc => ffi::GST_RTCP_RTPFB_TYPE_TWCC,
|
|
|
|
RTCPFBType::PsfbTypeSli => ffi::GST_RTCP_PSFB_TYPE_SLI,
|
|
|
|
RTCPFBType::PsfbTypeTstn => ffi::GST_RTCP_PSFB_TYPE_TSTN,
|
|
|
|
RTCPFBType::PsfbTypeVbcn => ffi::GST_RTCP_PSFB_TYPE_VBCN,
|
2019-08-13 17:12:09 +00:00
|
|
|
RTCPFBType::__Unknown(value) => value,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#[doc(hidden)]
|
2020-11-22 10:32:36 +00:00
|
|
|
impl FromGlib<ffi::GstRTCPFBType> for RTCPFBType {
|
2020-12-08 13:00:17 +00:00
|
|
|
unsafe fn from_glib(value: ffi::GstRTCPFBType) -> Self {
|
2019-08-13 17:12:09 +00:00
|
|
|
skip_assert_initialized!();
|
|
|
|
match value {
|
|
|
|
0 => RTCPFBType::FbTypeInvalid,
|
|
|
|
1 => RTCPFBType::RtpfbTypeNack,
|
|
|
|
3 => RTCPFBType::RtpfbTypeTmmbr,
|
|
|
|
4 => RTCPFBType::RtpfbTypeTmmbn,
|
|
|
|
5 => RTCPFBType::RtpfbTypeRtcpSrReq,
|
2020-04-30 16:51:41 +00:00
|
|
|
15 => RTCPFBType::RtpfbTypeTwcc,
|
2019-08-13 17:12:09 +00:00
|
|
|
2 => RTCPFBType::PsfbTypeSli,
|
|
|
|
6 => RTCPFBType::PsfbTypeTstn,
|
|
|
|
7 => RTCPFBType::PsfbTypeVbcn,
|
|
|
|
value => RTCPFBType::__Unknown(value),
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
impl StaticType for RTCPFBType {
|
|
|
|
fn static_type() -> Type {
|
2020-11-22 10:32:36 +00:00
|
|
|
unsafe { from_glib(ffi::gst_rtcpfb_type_get_type()) }
|
2019-08-13 17:12:09 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
impl<'a> FromValueOptional<'a> for RTCPFBType {
|
2020-11-27 13:37:24 +00:00
|
|
|
unsafe fn from_value_optional(value: &glib::Value) -> Option<Self> {
|
2019-08-13 17:12:09 +00:00
|
|
|
Some(FromValue::from_value(value))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
impl<'a> FromValue<'a> for RTCPFBType {
|
2020-11-27 13:37:24 +00:00
|
|
|
unsafe fn from_value(value: &glib::Value) -> Self {
|
2020-11-22 10:32:36 +00:00
|
|
|
from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0))
|
2019-08-13 17:12:09 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
impl SetValue for RTCPFBType {
|
2020-11-27 13:37:24 +00:00
|
|
|
unsafe fn set_value(value: &mut glib::Value, this: &Self) {
|
2020-11-22 10:32:36 +00:00
|
|
|
glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib())
|
2019-08-13 17:12:09 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)]
|
2020-04-12 15:55:06 +00:00
|
|
|
#[non_exhaustive]
|
2020-12-18 14:23:05 +00:00
|
|
|
#[doc(alias = "GstRTCPSDESType")]
|
2019-08-13 17:12:09 +00:00
|
|
|
pub enum RTCPSDESType {
|
2020-12-18 14:23:05 +00:00
|
|
|
#[doc(alias = "GST_RTCP_SDES_INVALID")]
|
2019-08-13 17:12:09 +00:00
|
|
|
Invalid,
|
2020-12-18 14:23:05 +00:00
|
|
|
#[doc(alias = "GST_RTCP_SDES_END")]
|
2019-08-13 17:12:09 +00:00
|
|
|
End,
|
2020-12-18 14:23:05 +00:00
|
|
|
#[doc(alias = "GST_RTCP_SDES_CNAME")]
|
2019-08-13 17:12:09 +00:00
|
|
|
Cname,
|
2020-12-18 14:23:05 +00:00
|
|
|
#[doc(alias = "GST_RTCP_SDES_NAME")]
|
2019-08-13 17:12:09 +00:00
|
|
|
Name,
|
2020-12-18 14:23:05 +00:00
|
|
|
#[doc(alias = "GST_RTCP_SDES_EMAIL")]
|
2019-08-13 17:12:09 +00:00
|
|
|
Email,
|
2020-12-18 14:23:05 +00:00
|
|
|
#[doc(alias = "GST_RTCP_SDES_PHONE")]
|
2019-08-13 17:12:09 +00:00
|
|
|
Phone,
|
2020-12-18 14:23:05 +00:00
|
|
|
#[doc(alias = "GST_RTCP_SDES_LOC")]
|
2019-08-13 17:12:09 +00:00
|
|
|
Loc,
|
2020-12-18 14:23:05 +00:00
|
|
|
#[doc(alias = "GST_RTCP_SDES_TOOL")]
|
2019-08-13 17:12:09 +00:00
|
|
|
Tool,
|
2020-12-18 14:23:05 +00:00
|
|
|
#[doc(alias = "GST_RTCP_SDES_NOTE")]
|
2019-08-13 17:12:09 +00:00
|
|
|
Note,
|
2020-12-18 14:23:05 +00:00
|
|
|
#[doc(alias = "GST_RTCP_SDES_PRIV")]
|
2019-08-13 17:12:09 +00:00
|
|
|
Priv,
|
|
|
|
#[doc(hidden)]
|
|
|
|
__Unknown(i32),
|
|
|
|
}
|
|
|
|
|
|
|
|
#[doc(hidden)]
|
|
|
|
impl ToGlib for RTCPSDESType {
|
2020-11-22 10:32:36 +00:00
|
|
|
type GlibType = ffi::GstRTCPSDESType;
|
2019-08-13 17:12:09 +00:00
|
|
|
|
2020-11-22 10:32:36 +00:00
|
|
|
fn to_glib(&self) -> ffi::GstRTCPSDESType {
|
2019-08-13 17:12:09 +00:00
|
|
|
match *self {
|
2020-11-22 10:32:36 +00:00
|
|
|
RTCPSDESType::Invalid => ffi::GST_RTCP_SDES_INVALID,
|
|
|
|
RTCPSDESType::End => ffi::GST_RTCP_SDES_END,
|
|
|
|
RTCPSDESType::Cname => ffi::GST_RTCP_SDES_CNAME,
|
|
|
|
RTCPSDESType::Name => ffi::GST_RTCP_SDES_NAME,
|
|
|
|
RTCPSDESType::Email => ffi::GST_RTCP_SDES_EMAIL,
|
|
|
|
RTCPSDESType::Phone => ffi::GST_RTCP_SDES_PHONE,
|
|
|
|
RTCPSDESType::Loc => ffi::GST_RTCP_SDES_LOC,
|
|
|
|
RTCPSDESType::Tool => ffi::GST_RTCP_SDES_TOOL,
|
|
|
|
RTCPSDESType::Note => ffi::GST_RTCP_SDES_NOTE,
|
|
|
|
RTCPSDESType::Priv => ffi::GST_RTCP_SDES_PRIV,
|
2019-08-13 17:12:09 +00:00
|
|
|
RTCPSDESType::__Unknown(value) => value,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#[doc(hidden)]
|
2020-11-22 10:32:36 +00:00
|
|
|
impl FromGlib<ffi::GstRTCPSDESType> for RTCPSDESType {
|
2020-12-08 13:00:17 +00:00
|
|
|
unsafe fn from_glib(value: ffi::GstRTCPSDESType) -> Self {
|
2019-08-13 17:12:09 +00:00
|
|
|
skip_assert_initialized!();
|
|
|
|
match value {
|
|
|
|
-1 => RTCPSDESType::Invalid,
|
|
|
|
0 => RTCPSDESType::End,
|
|
|
|
1 => RTCPSDESType::Cname,
|
|
|
|
2 => RTCPSDESType::Name,
|
|
|
|
3 => RTCPSDESType::Email,
|
|
|
|
4 => RTCPSDESType::Phone,
|
|
|
|
5 => RTCPSDESType::Loc,
|
|
|
|
6 => RTCPSDESType::Tool,
|
|
|
|
7 => RTCPSDESType::Note,
|
|
|
|
8 => RTCPSDESType::Priv,
|
|
|
|
value => RTCPSDESType::__Unknown(value),
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
impl StaticType for RTCPSDESType {
|
|
|
|
fn static_type() -> Type {
|
2020-11-22 10:32:36 +00:00
|
|
|
unsafe { from_glib(ffi::gst_rtcpsdes_type_get_type()) }
|
2019-08-13 17:12:09 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
impl<'a> FromValueOptional<'a> for RTCPSDESType {
|
2020-11-27 13:37:24 +00:00
|
|
|
unsafe fn from_value_optional(value: &glib::Value) -> Option<Self> {
|
2019-08-13 17:12:09 +00:00
|
|
|
Some(FromValue::from_value(value))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
impl<'a> FromValue<'a> for RTCPSDESType {
|
2020-11-27 13:37:24 +00:00
|
|
|
unsafe fn from_value(value: &glib::Value) -> Self {
|
2020-11-22 10:32:36 +00:00
|
|
|
from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0))
|
2019-08-13 17:12:09 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
impl SetValue for RTCPSDESType {
|
2020-11-27 13:37:24 +00:00
|
|
|
unsafe fn set_value(value: &mut glib::Value, this: &Self) {
|
2020-11-22 10:32:36 +00:00
|
|
|
glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib())
|
2019-08-13 17:12:09 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)]
|
2020-04-12 15:55:06 +00:00
|
|
|
#[non_exhaustive]
|
2020-12-18 14:23:05 +00:00
|
|
|
#[doc(alias = "GstRTCPType")]
|
2019-08-13 17:12:09 +00:00
|
|
|
pub enum RTCPType {
|
2020-12-18 14:23:05 +00:00
|
|
|
#[doc(alias = "GST_RTCP_TYPE_INVALID")]
|
2019-08-13 17:12:09 +00:00
|
|
|
Invalid,
|
2020-12-18 14:23:05 +00:00
|
|
|
#[doc(alias = "GST_RTCP_TYPE_SR")]
|
2019-08-13 17:12:09 +00:00
|
|
|
Sr,
|
2020-12-18 14:23:05 +00:00
|
|
|
#[doc(alias = "GST_RTCP_TYPE_RR")]
|
2019-08-13 17:12:09 +00:00
|
|
|
Rr,
|
2020-12-18 14:23:05 +00:00
|
|
|
#[doc(alias = "GST_RTCP_TYPE_SDES")]
|
2019-08-13 17:12:09 +00:00
|
|
|
Sdes,
|
2020-12-18 14:23:05 +00:00
|
|
|
#[doc(alias = "GST_RTCP_TYPE_BYE")]
|
2019-08-13 17:12:09 +00:00
|
|
|
Bye,
|
2020-12-18 14:23:05 +00:00
|
|
|
#[doc(alias = "GST_RTCP_TYPE_APP")]
|
2019-08-13 17:12:09 +00:00
|
|
|
App,
|
2020-12-18 14:23:05 +00:00
|
|
|
#[doc(alias = "GST_RTCP_TYPE_RTPFB")]
|
2019-08-13 17:12:09 +00:00
|
|
|
Rtpfb,
|
2020-12-18 14:23:05 +00:00
|
|
|
#[doc(alias = "GST_RTCP_TYPE_PSFB")]
|
2019-08-13 17:12:09 +00:00
|
|
|
Psfb,
|
2020-12-18 14:23:05 +00:00
|
|
|
#[doc(alias = "GST_RTCP_TYPE_XR")]
|
2019-08-13 17:12:09 +00:00
|
|
|
Xr,
|
|
|
|
#[doc(hidden)]
|
|
|
|
__Unknown(i32),
|
|
|
|
}
|
|
|
|
|
|
|
|
#[doc(hidden)]
|
|
|
|
impl ToGlib for RTCPType {
|
2020-11-22 10:32:36 +00:00
|
|
|
type GlibType = ffi::GstRTCPType;
|
2019-08-13 17:12:09 +00:00
|
|
|
|
2020-11-22 10:32:36 +00:00
|
|
|
fn to_glib(&self) -> ffi::GstRTCPType {
|
2019-08-13 17:12:09 +00:00
|
|
|
match *self {
|
2020-11-22 10:32:36 +00:00
|
|
|
RTCPType::Invalid => ffi::GST_RTCP_TYPE_INVALID,
|
|
|
|
RTCPType::Sr => ffi::GST_RTCP_TYPE_SR,
|
|
|
|
RTCPType::Rr => ffi::GST_RTCP_TYPE_RR,
|
|
|
|
RTCPType::Sdes => ffi::GST_RTCP_TYPE_SDES,
|
|
|
|
RTCPType::Bye => ffi::GST_RTCP_TYPE_BYE,
|
|
|
|
RTCPType::App => ffi::GST_RTCP_TYPE_APP,
|
|
|
|
RTCPType::Rtpfb => ffi::GST_RTCP_TYPE_RTPFB,
|
|
|
|
RTCPType::Psfb => ffi::GST_RTCP_TYPE_PSFB,
|
|
|
|
RTCPType::Xr => ffi::GST_RTCP_TYPE_XR,
|
2019-08-13 17:12:09 +00:00
|
|
|
RTCPType::__Unknown(value) => value,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#[doc(hidden)]
|
2020-11-22 10:32:36 +00:00
|
|
|
impl FromGlib<ffi::GstRTCPType> for RTCPType {
|
2020-12-08 13:00:17 +00:00
|
|
|
unsafe fn from_glib(value: ffi::GstRTCPType) -> Self {
|
2019-08-13 17:12:09 +00:00
|
|
|
skip_assert_initialized!();
|
|
|
|
match value {
|
|
|
|
0 => RTCPType::Invalid,
|
|
|
|
200 => RTCPType::Sr,
|
|
|
|
201 => RTCPType::Rr,
|
|
|
|
202 => RTCPType::Sdes,
|
|
|
|
203 => RTCPType::Bye,
|
|
|
|
204 => RTCPType::App,
|
|
|
|
205 => RTCPType::Rtpfb,
|
|
|
|
206 => RTCPType::Psfb,
|
|
|
|
207 => RTCPType::Xr,
|
|
|
|
value => RTCPType::__Unknown(value),
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
impl StaticType for RTCPType {
|
|
|
|
fn static_type() -> Type {
|
2020-11-22 10:32:36 +00:00
|
|
|
unsafe { from_glib(ffi::gst_rtcp_type_get_type()) }
|
2019-08-13 17:12:09 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
impl<'a> FromValueOptional<'a> for RTCPType {
|
2020-11-27 13:37:24 +00:00
|
|
|
unsafe fn from_value_optional(value: &glib::Value) -> Option<Self> {
|
2019-08-13 17:12:09 +00:00
|
|
|
Some(FromValue::from_value(value))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
impl<'a> FromValue<'a> for RTCPType {
|
2020-11-27 13:37:24 +00:00
|
|
|
unsafe fn from_value(value: &glib::Value) -> Self {
|
2020-11-22 10:32:36 +00:00
|
|
|
from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0))
|
2019-08-13 17:12:09 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
impl SetValue for RTCPType {
|
2020-11-27 13:37:24 +00:00
|
|
|
unsafe fn set_value(value: &mut glib::Value, this: &Self) {
|
2020-11-22 10:32:36 +00:00
|
|
|
glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib())
|
2019-08-13 17:12:09 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-11-27 13:37:24 +00:00
|
|
|
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
|
|
|
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
2019-08-13 17:12:09 +00:00
|
|
|
#[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)]
|
2020-04-12 15:55:06 +00:00
|
|
|
#[non_exhaustive]
|
2020-12-18 14:23:05 +00:00
|
|
|
#[doc(alias = "GstRTCPXRType")]
|
2019-08-13 17:12:09 +00:00
|
|
|
pub enum RTCPXRType {
|
2020-12-18 14:23:05 +00:00
|
|
|
#[doc(alias = "GST_RTCP_XR_TYPE_INVALID")]
|
2019-08-13 17:12:09 +00:00
|
|
|
Invalid,
|
2020-12-18 14:23:05 +00:00
|
|
|
#[doc(alias = "GST_RTCP_XR_TYPE_LRLE")]
|
2019-08-13 17:12:09 +00:00
|
|
|
Lrle,
|
2020-12-18 14:23:05 +00:00
|
|
|
#[doc(alias = "GST_RTCP_XR_TYPE_DRLE")]
|
2019-08-13 17:12:09 +00:00
|
|
|
Drle,
|
2020-12-18 14:23:05 +00:00
|
|
|
#[doc(alias = "GST_RTCP_XR_TYPE_PRT")]
|
2019-08-13 17:12:09 +00:00
|
|
|
Prt,
|
2020-12-18 14:23:05 +00:00
|
|
|
#[doc(alias = "GST_RTCP_XR_TYPE_RRT")]
|
2019-08-13 17:12:09 +00:00
|
|
|
Rrt,
|
2020-12-18 14:23:05 +00:00
|
|
|
#[doc(alias = "GST_RTCP_XR_TYPE_DLRR")]
|
2019-08-13 17:12:09 +00:00
|
|
|
Dlrr,
|
2020-12-18 14:23:05 +00:00
|
|
|
#[doc(alias = "GST_RTCP_XR_TYPE_SSUMM")]
|
2019-08-13 17:12:09 +00:00
|
|
|
Ssumm,
|
2020-12-18 14:23:05 +00:00
|
|
|
#[doc(alias = "GST_RTCP_XR_TYPE_VOIP_METRICS")]
|
2019-08-13 17:12:09 +00:00
|
|
|
VoipMetrics,
|
|
|
|
#[doc(hidden)]
|
|
|
|
__Unknown(i32),
|
|
|
|
}
|
|
|
|
|
2020-11-27 13:37:24 +00:00
|
|
|
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
|
|
|
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
2019-08-13 17:12:09 +00:00
|
|
|
#[doc(hidden)]
|
|
|
|
impl ToGlib for RTCPXRType {
|
2020-11-22 10:32:36 +00:00
|
|
|
type GlibType = ffi::GstRTCPXRType;
|
2019-08-13 17:12:09 +00:00
|
|
|
|
2020-11-22 10:32:36 +00:00
|
|
|
fn to_glib(&self) -> ffi::GstRTCPXRType {
|
2019-08-13 17:12:09 +00:00
|
|
|
match *self {
|
2020-11-22 10:32:36 +00:00
|
|
|
RTCPXRType::Invalid => ffi::GST_RTCP_XR_TYPE_INVALID,
|
|
|
|
RTCPXRType::Lrle => ffi::GST_RTCP_XR_TYPE_LRLE,
|
|
|
|
RTCPXRType::Drle => ffi::GST_RTCP_XR_TYPE_DRLE,
|
|
|
|
RTCPXRType::Prt => ffi::GST_RTCP_XR_TYPE_PRT,
|
|
|
|
RTCPXRType::Rrt => ffi::GST_RTCP_XR_TYPE_RRT,
|
|
|
|
RTCPXRType::Dlrr => ffi::GST_RTCP_XR_TYPE_DLRR,
|
|
|
|
RTCPXRType::Ssumm => ffi::GST_RTCP_XR_TYPE_SSUMM,
|
|
|
|
RTCPXRType::VoipMetrics => ffi::GST_RTCP_XR_TYPE_VOIP_METRICS,
|
2019-08-13 17:12:09 +00:00
|
|
|
RTCPXRType::__Unknown(value) => value,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-11-27 13:37:24 +00:00
|
|
|
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
|
|
|
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
2019-08-13 17:12:09 +00:00
|
|
|
#[doc(hidden)]
|
2020-11-22 10:32:36 +00:00
|
|
|
impl FromGlib<ffi::GstRTCPXRType> for RTCPXRType {
|
2020-12-08 13:00:17 +00:00
|
|
|
unsafe fn from_glib(value: ffi::GstRTCPXRType) -> Self {
|
2019-08-13 17:12:09 +00:00
|
|
|
skip_assert_initialized!();
|
|
|
|
match value {
|
|
|
|
-1 => RTCPXRType::Invalid,
|
|
|
|
1 => RTCPXRType::Lrle,
|
|
|
|
2 => RTCPXRType::Drle,
|
|
|
|
3 => RTCPXRType::Prt,
|
|
|
|
4 => RTCPXRType::Rrt,
|
|
|
|
5 => RTCPXRType::Dlrr,
|
|
|
|
6 => RTCPXRType::Ssumm,
|
|
|
|
7 => RTCPXRType::VoipMetrics,
|
|
|
|
value => RTCPXRType::__Unknown(value),
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-11-27 13:37:24 +00:00
|
|
|
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
|
|
|
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
2019-08-13 17:12:09 +00:00
|
|
|
impl StaticType for RTCPXRType {
|
|
|
|
fn static_type() -> Type {
|
2020-11-22 10:32:36 +00:00
|
|
|
unsafe { from_glib(ffi::gst_rtcpxr_type_get_type()) }
|
2019-08-13 17:12:09 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-11-27 13:37:24 +00:00
|
|
|
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
|
|
|
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
2019-08-13 17:12:09 +00:00
|
|
|
impl<'a> FromValueOptional<'a> for RTCPXRType {
|
2020-11-27 13:37:24 +00:00
|
|
|
unsafe fn from_value_optional(value: &glib::Value) -> Option<Self> {
|
2019-08-13 17:12:09 +00:00
|
|
|
Some(FromValue::from_value(value))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-11-27 13:37:24 +00:00
|
|
|
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
|
|
|
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
2019-08-13 17:12:09 +00:00
|
|
|
impl<'a> FromValue<'a> for RTCPXRType {
|
2020-11-27 13:37:24 +00:00
|
|
|
unsafe fn from_value(value: &glib::Value) -> Self {
|
2020-11-22 10:32:36 +00:00
|
|
|
from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0))
|
2019-08-13 17:12:09 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-11-27 13:37:24 +00:00
|
|
|
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
|
|
|
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
2019-08-13 17:12:09 +00:00
|
|
|
impl SetValue for RTCPXRType {
|
2020-11-27 13:37:24 +00:00
|
|
|
unsafe fn set_value(value: &mut glib::Value, this: &Self) {
|
2020-11-22 10:32:36 +00:00
|
|
|
glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib())
|
2019-08-13 17:12:09 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)]
|
2020-04-12 15:55:06 +00:00
|
|
|
#[non_exhaustive]
|
2020-12-18 14:23:05 +00:00
|
|
|
#[doc(alias = "GstRTPPayload")]
|
2019-08-13 17:12:09 +00:00
|
|
|
pub enum RTPPayload {
|
2020-12-18 14:23:05 +00:00
|
|
|
#[doc(alias = "GST_RTP_PAYLOAD_PCMU")]
|
2019-08-13 17:12:09 +00:00
|
|
|
Pcmu,
|
2020-12-18 14:23:05 +00:00
|
|
|
#[doc(alias = "GST_RTP_PAYLOAD_1016")]
|
2019-08-13 17:12:09 +00:00
|
|
|
_1016,
|
2020-12-18 14:23:05 +00:00
|
|
|
#[doc(alias = "GST_RTP_PAYLOAD_G721")]
|
2019-08-13 17:12:09 +00:00
|
|
|
G721,
|
2020-12-18 14:23:05 +00:00
|
|
|
#[doc(alias = "GST_RTP_PAYLOAD_GSM")]
|
2019-08-13 17:12:09 +00:00
|
|
|
Gsm,
|
2020-12-18 14:23:05 +00:00
|
|
|
#[doc(alias = "GST_RTP_PAYLOAD_G723")]
|
2019-08-13 17:12:09 +00:00
|
|
|
G723,
|
2020-12-18 14:23:05 +00:00
|
|
|
#[doc(alias = "GST_RTP_PAYLOAD_DVI4_8000")]
|
2019-08-13 17:12:09 +00:00
|
|
|
Dvi48000,
|
2020-12-18 14:23:05 +00:00
|
|
|
#[doc(alias = "GST_RTP_PAYLOAD_DVI4_16000")]
|
2019-08-13 17:12:09 +00:00
|
|
|
Dvi416000,
|
2020-12-18 14:23:05 +00:00
|
|
|
#[doc(alias = "GST_RTP_PAYLOAD_LPC")]
|
2019-08-13 17:12:09 +00:00
|
|
|
Lpc,
|
2020-12-18 14:23:05 +00:00
|
|
|
#[doc(alias = "GST_RTP_PAYLOAD_PCMA")]
|
2019-08-13 17:12:09 +00:00
|
|
|
Pcma,
|
2020-12-18 14:23:05 +00:00
|
|
|
#[doc(alias = "GST_RTP_PAYLOAD_G722")]
|
2019-08-13 17:12:09 +00:00
|
|
|
G722,
|
2020-12-18 14:23:05 +00:00
|
|
|
#[doc(alias = "GST_RTP_PAYLOAD_L16_STEREO")]
|
2019-08-13 17:12:09 +00:00
|
|
|
L16Stereo,
|
2020-12-18 14:23:05 +00:00
|
|
|
#[doc(alias = "GST_RTP_PAYLOAD_L16_MONO")]
|
2019-08-13 17:12:09 +00:00
|
|
|
L16Mono,
|
2020-12-18 14:23:05 +00:00
|
|
|
#[doc(alias = "GST_RTP_PAYLOAD_QCELP")]
|
2019-08-13 17:12:09 +00:00
|
|
|
Qcelp,
|
2020-12-18 14:23:05 +00:00
|
|
|
#[doc(alias = "GST_RTP_PAYLOAD_CN")]
|
2019-08-13 17:12:09 +00:00
|
|
|
Cn,
|
2020-12-18 14:23:05 +00:00
|
|
|
#[doc(alias = "GST_RTP_PAYLOAD_MPA")]
|
2019-08-13 17:12:09 +00:00
|
|
|
Mpa,
|
2020-12-18 14:23:05 +00:00
|
|
|
#[doc(alias = "GST_RTP_PAYLOAD_G728")]
|
2019-08-13 17:12:09 +00:00
|
|
|
G728,
|
2020-12-18 14:23:05 +00:00
|
|
|
#[doc(alias = "GST_RTP_PAYLOAD_DVI4_11025")]
|
2019-08-13 17:12:09 +00:00
|
|
|
Dvi411025,
|
2020-12-18 14:23:05 +00:00
|
|
|
#[doc(alias = "GST_RTP_PAYLOAD_DVI4_22050")]
|
2019-08-13 17:12:09 +00:00
|
|
|
Dvi422050,
|
2020-12-18 14:23:05 +00:00
|
|
|
#[doc(alias = "GST_RTP_PAYLOAD_G729")]
|
2019-08-13 17:12:09 +00:00
|
|
|
G729,
|
2020-12-18 14:23:05 +00:00
|
|
|
#[doc(alias = "GST_RTP_PAYLOAD_CELLB")]
|
2019-08-13 17:12:09 +00:00
|
|
|
Cellb,
|
2020-12-18 14:23:05 +00:00
|
|
|
#[doc(alias = "GST_RTP_PAYLOAD_JPEG")]
|
2019-08-13 17:12:09 +00:00
|
|
|
Jpeg,
|
2020-12-18 14:23:05 +00:00
|
|
|
#[doc(alias = "GST_RTP_PAYLOAD_NV")]
|
2019-08-13 17:12:09 +00:00
|
|
|
Nv,
|
2020-12-18 14:23:05 +00:00
|
|
|
#[doc(alias = "GST_RTP_PAYLOAD_H261")]
|
2019-08-13 17:12:09 +00:00
|
|
|
H261,
|
2020-12-18 14:23:05 +00:00
|
|
|
#[doc(alias = "GST_RTP_PAYLOAD_MPV")]
|
2019-08-13 17:12:09 +00:00
|
|
|
Mpv,
|
2020-12-18 14:23:05 +00:00
|
|
|
#[doc(alias = "GST_RTP_PAYLOAD_MP2T")]
|
2019-08-13 17:12:09 +00:00
|
|
|
Mp2t,
|
2020-12-18 14:23:05 +00:00
|
|
|
#[doc(alias = "GST_RTP_PAYLOAD_H263")]
|
2019-08-13 17:12:09 +00:00
|
|
|
H263,
|
|
|
|
#[doc(hidden)]
|
|
|
|
__Unknown(i32),
|
|
|
|
}
|
|
|
|
|
|
|
|
#[doc(hidden)]
|
|
|
|
impl ToGlib for RTPPayload {
|
2020-11-22 10:32:36 +00:00
|
|
|
type GlibType = ffi::GstRTPPayload;
|
2019-08-13 17:12:09 +00:00
|
|
|
|
2020-11-22 10:32:36 +00:00
|
|
|
fn to_glib(&self) -> ffi::GstRTPPayload {
|
2019-08-13 17:12:09 +00:00
|
|
|
match *self {
|
2020-11-22 10:32:36 +00:00
|
|
|
RTPPayload::Pcmu => ffi::GST_RTP_PAYLOAD_PCMU,
|
|
|
|
RTPPayload::_1016 => ffi::GST_RTP_PAYLOAD_1016,
|
|
|
|
RTPPayload::G721 => ffi::GST_RTP_PAYLOAD_G721,
|
|
|
|
RTPPayload::Gsm => ffi::GST_RTP_PAYLOAD_GSM,
|
|
|
|
RTPPayload::G723 => ffi::GST_RTP_PAYLOAD_G723,
|
|
|
|
RTPPayload::Dvi48000 => ffi::GST_RTP_PAYLOAD_DVI4_8000,
|
|
|
|
RTPPayload::Dvi416000 => ffi::GST_RTP_PAYLOAD_DVI4_16000,
|
|
|
|
RTPPayload::Lpc => ffi::GST_RTP_PAYLOAD_LPC,
|
|
|
|
RTPPayload::Pcma => ffi::GST_RTP_PAYLOAD_PCMA,
|
|
|
|
RTPPayload::G722 => ffi::GST_RTP_PAYLOAD_G722,
|
|
|
|
RTPPayload::L16Stereo => ffi::GST_RTP_PAYLOAD_L16_STEREO,
|
|
|
|
RTPPayload::L16Mono => ffi::GST_RTP_PAYLOAD_L16_MONO,
|
|
|
|
RTPPayload::Qcelp => ffi::GST_RTP_PAYLOAD_QCELP,
|
|
|
|
RTPPayload::Cn => ffi::GST_RTP_PAYLOAD_CN,
|
|
|
|
RTPPayload::Mpa => ffi::GST_RTP_PAYLOAD_MPA,
|
|
|
|
RTPPayload::G728 => ffi::GST_RTP_PAYLOAD_G728,
|
|
|
|
RTPPayload::Dvi411025 => ffi::GST_RTP_PAYLOAD_DVI4_11025,
|
|
|
|
RTPPayload::Dvi422050 => ffi::GST_RTP_PAYLOAD_DVI4_22050,
|
|
|
|
RTPPayload::G729 => ffi::GST_RTP_PAYLOAD_G729,
|
|
|
|
RTPPayload::Cellb => ffi::GST_RTP_PAYLOAD_CELLB,
|
|
|
|
RTPPayload::Jpeg => ffi::GST_RTP_PAYLOAD_JPEG,
|
|
|
|
RTPPayload::Nv => ffi::GST_RTP_PAYLOAD_NV,
|
|
|
|
RTPPayload::H261 => ffi::GST_RTP_PAYLOAD_H261,
|
|
|
|
RTPPayload::Mpv => ffi::GST_RTP_PAYLOAD_MPV,
|
|
|
|
RTPPayload::Mp2t => ffi::GST_RTP_PAYLOAD_MP2T,
|
|
|
|
RTPPayload::H263 => ffi::GST_RTP_PAYLOAD_H263,
|
2019-08-13 17:12:09 +00:00
|
|
|
RTPPayload::__Unknown(value) => value,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#[doc(hidden)]
|
2020-11-22 10:32:36 +00:00
|
|
|
impl FromGlib<ffi::GstRTPPayload> for RTPPayload {
|
2020-12-08 13:00:17 +00:00
|
|
|
unsafe fn from_glib(value: ffi::GstRTPPayload) -> Self {
|
2019-08-13 17:12:09 +00:00
|
|
|
skip_assert_initialized!();
|
|
|
|
match value {
|
|
|
|
0 => RTPPayload::Pcmu,
|
|
|
|
1 => RTPPayload::_1016,
|
|
|
|
2 => RTPPayload::G721,
|
|
|
|
3 => RTPPayload::Gsm,
|
|
|
|
4 => RTPPayload::G723,
|
|
|
|
5 => RTPPayload::Dvi48000,
|
|
|
|
6 => RTPPayload::Dvi416000,
|
|
|
|
7 => RTPPayload::Lpc,
|
|
|
|
8 => RTPPayload::Pcma,
|
|
|
|
9 => RTPPayload::G722,
|
|
|
|
10 => RTPPayload::L16Stereo,
|
|
|
|
11 => RTPPayload::L16Mono,
|
|
|
|
12 => RTPPayload::Qcelp,
|
|
|
|
13 => RTPPayload::Cn,
|
|
|
|
14 => RTPPayload::Mpa,
|
|
|
|
15 => RTPPayload::G728,
|
|
|
|
16 => RTPPayload::Dvi411025,
|
|
|
|
17 => RTPPayload::Dvi422050,
|
|
|
|
18 => RTPPayload::G729,
|
|
|
|
25 => RTPPayload::Cellb,
|
|
|
|
26 => RTPPayload::Jpeg,
|
|
|
|
28 => RTPPayload::Nv,
|
|
|
|
31 => RTPPayload::H261,
|
|
|
|
32 => RTPPayload::Mpv,
|
|
|
|
33 => RTPPayload::Mp2t,
|
|
|
|
34 => RTPPayload::H263,
|
|
|
|
value => RTPPayload::__Unknown(value),
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
impl StaticType for RTPPayload {
|
|
|
|
fn static_type() -> Type {
|
2020-11-22 10:32:36 +00:00
|
|
|
unsafe { from_glib(ffi::gst_rtp_payload_get_type()) }
|
2019-08-13 17:12:09 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
impl<'a> FromValueOptional<'a> for RTPPayload {
|
2020-11-27 13:37:24 +00:00
|
|
|
unsafe fn from_value_optional(value: &glib::Value) -> Option<Self> {
|
2019-08-13 17:12:09 +00:00
|
|
|
Some(FromValue::from_value(value))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
impl<'a> FromValue<'a> for RTPPayload {
|
2020-11-27 13:37:24 +00:00
|
|
|
unsafe fn from_value(value: &glib::Value) -> Self {
|
2020-11-22 10:32:36 +00:00
|
|
|
from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0))
|
2019-08-13 17:12:09 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
impl SetValue for RTPPayload {
|
2020-11-27 13:37:24 +00:00
|
|
|
unsafe fn set_value(value: &mut glib::Value, this: &Self) {
|
2020-11-22 10:32:36 +00:00
|
|
|
glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib())
|
2019-08-13 17:12:09 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)]
|
2020-04-12 15:55:06 +00:00
|
|
|
#[non_exhaustive]
|
2020-12-18 14:23:05 +00:00
|
|
|
#[doc(alias = "GstRTPProfile")]
|
2019-08-13 17:12:09 +00:00
|
|
|
pub enum RTPProfile {
|
2020-12-18 14:23:05 +00:00
|
|
|
#[doc(alias = "GST_RTP_PROFILE_UNKNOWN")]
|
2019-08-13 17:12:09 +00:00
|
|
|
Unknown,
|
2020-12-18 14:23:05 +00:00
|
|
|
#[doc(alias = "GST_RTP_PROFILE_AVP")]
|
2019-08-13 17:12:09 +00:00
|
|
|
Avp,
|
2020-12-18 14:23:05 +00:00
|
|
|
#[doc(alias = "GST_RTP_PROFILE_SAVP")]
|
2019-08-13 17:12:09 +00:00
|
|
|
Savp,
|
2020-12-18 14:23:05 +00:00
|
|
|
#[doc(alias = "GST_RTP_PROFILE_AVPF")]
|
2019-08-13 17:12:09 +00:00
|
|
|
Avpf,
|
2020-12-18 14:23:05 +00:00
|
|
|
#[doc(alias = "GST_RTP_PROFILE_SAVPF")]
|
2019-08-13 17:12:09 +00:00
|
|
|
Savpf,
|
|
|
|
#[doc(hidden)]
|
|
|
|
__Unknown(i32),
|
|
|
|
}
|
|
|
|
|
|
|
|
#[doc(hidden)]
|
|
|
|
impl ToGlib for RTPProfile {
|
2020-11-22 10:32:36 +00:00
|
|
|
type GlibType = ffi::GstRTPProfile;
|
2019-08-13 17:12:09 +00:00
|
|
|
|
2020-11-22 10:32:36 +00:00
|
|
|
fn to_glib(&self) -> ffi::GstRTPProfile {
|
2019-08-13 17:12:09 +00:00
|
|
|
match *self {
|
2020-11-22 10:32:36 +00:00
|
|
|
RTPProfile::Unknown => ffi::GST_RTP_PROFILE_UNKNOWN,
|
|
|
|
RTPProfile::Avp => ffi::GST_RTP_PROFILE_AVP,
|
|
|
|
RTPProfile::Savp => ffi::GST_RTP_PROFILE_SAVP,
|
|
|
|
RTPProfile::Avpf => ffi::GST_RTP_PROFILE_AVPF,
|
|
|
|
RTPProfile::Savpf => ffi::GST_RTP_PROFILE_SAVPF,
|
2019-08-13 17:12:09 +00:00
|
|
|
RTPProfile::__Unknown(value) => value,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#[doc(hidden)]
|
2020-11-22 10:32:36 +00:00
|
|
|
impl FromGlib<ffi::GstRTPProfile> for RTPProfile {
|
2020-12-08 13:00:17 +00:00
|
|
|
unsafe fn from_glib(value: ffi::GstRTPProfile) -> Self {
|
2019-08-13 17:12:09 +00:00
|
|
|
skip_assert_initialized!();
|
|
|
|
match value {
|
|
|
|
0 => RTPProfile::Unknown,
|
|
|
|
1 => RTPProfile::Avp,
|
|
|
|
2 => RTPProfile::Savp,
|
|
|
|
3 => RTPProfile::Avpf,
|
|
|
|
4 => RTPProfile::Savpf,
|
|
|
|
value => RTPProfile::__Unknown(value),
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
impl StaticType for RTPProfile {
|
|
|
|
fn static_type() -> Type {
|
2020-11-22 10:32:36 +00:00
|
|
|
unsafe { from_glib(ffi::gst_rtp_profile_get_type()) }
|
2019-08-13 17:12:09 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
impl<'a> FromValueOptional<'a> for RTPProfile {
|
2020-11-27 13:37:24 +00:00
|
|
|
unsafe fn from_value_optional(value: &glib::Value) -> Option<Self> {
|
2019-08-13 17:12:09 +00:00
|
|
|
Some(FromValue::from_value(value))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
impl<'a> FromValue<'a> for RTPProfile {
|
2020-11-27 13:37:24 +00:00
|
|
|
unsafe fn from_value(value: &glib::Value) -> Self {
|
2020-11-22 10:32:36 +00:00
|
|
|
from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0))
|
2019-08-13 17:12:09 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
impl SetValue for RTPProfile {
|
2020-11-27 13:37:24 +00:00
|
|
|
unsafe fn set_value(value: &mut glib::Value, this: &Self) {
|
2020-11-22 10:32:36 +00:00
|
|
|
glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib())
|
2019-08-13 17:12:09 +00:00
|
|
|
}
|
|
|
|
}
|