2018-04-23 17:34:22 +00:00
|
|
|
// This file was generated by gir (https://github.com/gtk-rs/gir)
|
|
|
|
// from gir-files (https://github.com/gtk-rs/gir-files)
|
2018-02-09 02:30:08 +00:00
|
|
|
// DO NOT EDIT
|
|
|
|
|
|
|
|
use glib::translate::*;
|
|
|
|
use glib::value::FromValue;
|
|
|
|
use glib::value::FromValueOptional;
|
|
|
|
use glib::value::SetValue;
|
|
|
|
use glib::value::Value;
|
2019-06-18 10:12:00 +00:00
|
|
|
use glib::StaticType;
|
|
|
|
use glib::Type;
|
2019-03-19 07:40:05 +00:00
|
|
|
use gobject_sys;
|
|
|
|
use gst_rtsp_sys;
|
2018-02-09 02:30:08 +00:00
|
|
|
|
|
|
|
bitflags! {
|
|
|
|
pub struct RTSPEvent: u32 {
|
|
|
|
const READ = 1;
|
|
|
|
const WRITE = 2;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#[doc(hidden)]
|
|
|
|
impl ToGlib for RTSPEvent {
|
2019-03-19 07:40:05 +00:00
|
|
|
type GlibType = gst_rtsp_sys::GstRTSPEvent;
|
2018-02-09 02:30:08 +00:00
|
|
|
|
2019-03-19 07:40:05 +00:00
|
|
|
fn to_glib(&self) -> gst_rtsp_sys::GstRTSPEvent {
|
2018-04-04 07:46:18 +00:00
|
|
|
self.bits()
|
2018-02-09 02:30:08 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#[doc(hidden)]
|
2019-03-19 07:40:05 +00:00
|
|
|
impl FromGlib<gst_rtsp_sys::GstRTSPEvent> for RTSPEvent {
|
|
|
|
fn from_glib(value: gst_rtsp_sys::GstRTSPEvent) -> RTSPEvent {
|
2018-02-09 02:30:08 +00:00
|
|
|
skip_assert_initialized!();
|
2018-04-04 07:46:18 +00:00
|
|
|
RTSPEvent::from_bits_truncate(value)
|
2018-02-09 02:30:08 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
impl StaticType for RTSPEvent {
|
|
|
|
fn static_type() -> Type {
|
2019-03-19 07:40:05 +00:00
|
|
|
unsafe { from_glib(gst_rtsp_sys::gst_rtsp_event_get_type()) }
|
2018-02-09 02:30:08 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
impl<'a> FromValueOptional<'a> for RTSPEvent {
|
|
|
|
unsafe fn from_value_optional(value: &Value) -> Option<Self> {
|
|
|
|
Some(FromValue::from_value(value))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
impl<'a> FromValue<'a> for RTSPEvent {
|
|
|
|
unsafe fn from_value(value: &Value) -> Self {
|
2019-03-19 07:40:05 +00:00
|
|
|
from_glib(gobject_sys::g_value_get_flags(value.to_glib_none().0))
|
2018-02-09 02:30:08 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
impl SetValue for RTSPEvent {
|
|
|
|
unsafe fn set_value(value: &mut Value, this: &Self) {
|
2019-03-19 07:40:05 +00:00
|
|
|
gobject_sys::g_value_set_flags(value.to_glib_none_mut().0, this.to_glib())
|
2018-02-09 02:30:08 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
bitflags! {
|
|
|
|
pub struct RTSPLowerTrans: u32 {
|
|
|
|
const UNKNOWN = 0;
|
|
|
|
const UDP = 1;
|
|
|
|
const UDP_MCAST = 2;
|
|
|
|
const TCP = 4;
|
|
|
|
const HTTP = 16;
|
|
|
|
const TLS = 32;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#[doc(hidden)]
|
|
|
|
impl ToGlib for RTSPLowerTrans {
|
2019-03-19 07:40:05 +00:00
|
|
|
type GlibType = gst_rtsp_sys::GstRTSPLowerTrans;
|
2018-02-09 02:30:08 +00:00
|
|
|
|
2019-03-19 07:40:05 +00:00
|
|
|
fn to_glib(&self) -> gst_rtsp_sys::GstRTSPLowerTrans {
|
2018-04-04 07:46:18 +00:00
|
|
|
self.bits()
|
2018-02-09 02:30:08 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#[doc(hidden)]
|
2019-03-19 07:40:05 +00:00
|
|
|
impl FromGlib<gst_rtsp_sys::GstRTSPLowerTrans> for RTSPLowerTrans {
|
|
|
|
fn from_glib(value: gst_rtsp_sys::GstRTSPLowerTrans) -> RTSPLowerTrans {
|
2018-02-09 02:30:08 +00:00
|
|
|
skip_assert_initialized!();
|
2018-04-04 07:46:18 +00:00
|
|
|
RTSPLowerTrans::from_bits_truncate(value)
|
2018-02-09 02:30:08 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
impl StaticType for RTSPLowerTrans {
|
|
|
|
fn static_type() -> Type {
|
2019-03-19 07:40:05 +00:00
|
|
|
unsafe { from_glib(gst_rtsp_sys::gst_rtsp_lower_trans_get_type()) }
|
2018-02-09 02:30:08 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
impl<'a> FromValueOptional<'a> for RTSPLowerTrans {
|
|
|
|
unsafe fn from_value_optional(value: &Value) -> Option<Self> {
|
|
|
|
Some(FromValue::from_value(value))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
impl<'a> FromValue<'a> for RTSPLowerTrans {
|
|
|
|
unsafe fn from_value(value: &Value) -> Self {
|
2019-03-19 07:40:05 +00:00
|
|
|
from_glib(gobject_sys::g_value_get_flags(value.to_glib_none().0))
|
2018-02-09 02:30:08 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
impl SetValue for RTSPLowerTrans {
|
|
|
|
unsafe fn set_value(value: &mut Value, this: &Self) {
|
2019-03-19 07:40:05 +00:00
|
|
|
gobject_sys::g_value_set_flags(value.to_glib_none_mut().0, this.to_glib())
|
2018-02-09 02:30:08 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
bitflags! {
|
|
|
|
pub struct RTSPMethod: u32 {
|
|
|
|
const INVALID = 0;
|
|
|
|
const DESCRIBE = 1;
|
|
|
|
const ANNOUNCE = 2;
|
|
|
|
const GET_PARAMETER = 4;
|
|
|
|
const OPTIONS = 8;
|
|
|
|
const PAUSE = 16;
|
|
|
|
const PLAY = 32;
|
|
|
|
const RECORD = 64;
|
|
|
|
const REDIRECT = 128;
|
|
|
|
const SETUP = 256;
|
|
|
|
const SET_PARAMETER = 512;
|
|
|
|
const TEARDOWN = 1024;
|
|
|
|
const GET = 2048;
|
|
|
|
const POST = 4096;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#[doc(hidden)]
|
|
|
|
impl ToGlib for RTSPMethod {
|
2019-03-19 07:40:05 +00:00
|
|
|
type GlibType = gst_rtsp_sys::GstRTSPMethod;
|
2018-02-09 02:30:08 +00:00
|
|
|
|
2019-03-19 07:40:05 +00:00
|
|
|
fn to_glib(&self) -> gst_rtsp_sys::GstRTSPMethod {
|
2018-04-04 07:46:18 +00:00
|
|
|
self.bits()
|
2018-02-09 02:30:08 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#[doc(hidden)]
|
2019-03-19 07:40:05 +00:00
|
|
|
impl FromGlib<gst_rtsp_sys::GstRTSPMethod> for RTSPMethod {
|
|
|
|
fn from_glib(value: gst_rtsp_sys::GstRTSPMethod) -> RTSPMethod {
|
2018-02-09 02:30:08 +00:00
|
|
|
skip_assert_initialized!();
|
2018-04-04 07:46:18 +00:00
|
|
|
RTSPMethod::from_bits_truncate(value)
|
2018-02-09 02:30:08 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
impl StaticType for RTSPMethod {
|
|
|
|
fn static_type() -> Type {
|
2019-03-19 07:40:05 +00:00
|
|
|
unsafe { from_glib(gst_rtsp_sys::gst_rtsp_method_get_type()) }
|
2018-02-09 02:30:08 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
impl<'a> FromValueOptional<'a> for RTSPMethod {
|
|
|
|
unsafe fn from_value_optional(value: &Value) -> Option<Self> {
|
|
|
|
Some(FromValue::from_value(value))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
impl<'a> FromValue<'a> for RTSPMethod {
|
|
|
|
unsafe fn from_value(value: &Value) -> Self {
|
2019-03-19 07:40:05 +00:00
|
|
|
from_glib(gobject_sys::g_value_get_flags(value.to_glib_none().0))
|
2018-02-09 02:30:08 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
impl SetValue for RTSPMethod {
|
|
|
|
unsafe fn set_value(value: &mut Value, this: &Self) {
|
2019-03-19 07:40:05 +00:00
|
|
|
gobject_sys::g_value_set_flags(value.to_glib_none_mut().0, this.to_glib())
|
2018-02-09 02:30:08 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
bitflags! {
|
|
|
|
pub struct RTSPProfile: u32 {
|
|
|
|
const UNKNOWN = 0;
|
|
|
|
const AVP = 1;
|
|
|
|
const SAVP = 2;
|
|
|
|
const AVPF = 4;
|
|
|
|
const SAVPF = 8;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#[doc(hidden)]
|
|
|
|
impl ToGlib for RTSPProfile {
|
2019-03-19 07:40:05 +00:00
|
|
|
type GlibType = gst_rtsp_sys::GstRTSPProfile;
|
2018-02-09 02:30:08 +00:00
|
|
|
|
2019-03-19 07:40:05 +00:00
|
|
|
fn to_glib(&self) -> gst_rtsp_sys::GstRTSPProfile {
|
2018-04-04 07:46:18 +00:00
|
|
|
self.bits()
|
2018-02-09 02:30:08 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#[doc(hidden)]
|
2019-03-19 07:40:05 +00:00
|
|
|
impl FromGlib<gst_rtsp_sys::GstRTSPProfile> for RTSPProfile {
|
|
|
|
fn from_glib(value: gst_rtsp_sys::GstRTSPProfile) -> RTSPProfile {
|
2018-02-09 02:30:08 +00:00
|
|
|
skip_assert_initialized!();
|
2018-04-04 07:46:18 +00:00
|
|
|
RTSPProfile::from_bits_truncate(value)
|
2018-02-09 02:30:08 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
impl StaticType for RTSPProfile {
|
|
|
|
fn static_type() -> Type {
|
2019-03-19 07:40:05 +00:00
|
|
|
unsafe { from_glib(gst_rtsp_sys::gst_rtsp_profile_get_type()) }
|
2018-02-09 02:30:08 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
impl<'a> FromValueOptional<'a> for RTSPProfile {
|
|
|
|
unsafe fn from_value_optional(value: &Value) -> Option<Self> {
|
|
|
|
Some(FromValue::from_value(value))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
impl<'a> FromValue<'a> for RTSPProfile {
|
|
|
|
unsafe fn from_value(value: &Value) -> Self {
|
2019-03-19 07:40:05 +00:00
|
|
|
from_glib(gobject_sys::g_value_get_flags(value.to_glib_none().0))
|
2018-02-09 02:30:08 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
impl SetValue for RTSPProfile {
|
|
|
|
unsafe fn set_value(value: &mut Value, this: &Self) {
|
2019-03-19 07:40:05 +00:00
|
|
|
gobject_sys::g_value_set_flags(value.to_glib_none_mut().0, this.to_glib())
|
2018-02-09 02:30:08 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
bitflags! {
|
|
|
|
pub struct RTSPTransMode: u32 {
|
|
|
|
const UNKNOWN = 0;
|
|
|
|
const RTP = 1;
|
|
|
|
const RDT = 2;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#[doc(hidden)]
|
|
|
|
impl ToGlib for RTSPTransMode {
|
2019-03-19 07:40:05 +00:00
|
|
|
type GlibType = gst_rtsp_sys::GstRTSPTransMode;
|
2018-02-09 02:30:08 +00:00
|
|
|
|
2019-03-19 07:40:05 +00:00
|
|
|
fn to_glib(&self) -> gst_rtsp_sys::GstRTSPTransMode {
|
2018-04-04 07:46:18 +00:00
|
|
|
self.bits()
|
2018-02-09 02:30:08 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#[doc(hidden)]
|
2019-03-19 07:40:05 +00:00
|
|
|
impl FromGlib<gst_rtsp_sys::GstRTSPTransMode> for RTSPTransMode {
|
|
|
|
fn from_glib(value: gst_rtsp_sys::GstRTSPTransMode) -> RTSPTransMode {
|
2018-02-09 02:30:08 +00:00
|
|
|
skip_assert_initialized!();
|
2018-04-04 07:46:18 +00:00
|
|
|
RTSPTransMode::from_bits_truncate(value)
|
2018-02-09 02:30:08 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
impl StaticType for RTSPTransMode {
|
|
|
|
fn static_type() -> Type {
|
2019-03-19 07:40:05 +00:00
|
|
|
unsafe { from_glib(gst_rtsp_sys::gst_rtsp_trans_mode_get_type()) }
|
2018-02-09 02:30:08 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
impl<'a> FromValueOptional<'a> for RTSPTransMode {
|
|
|
|
unsafe fn from_value_optional(value: &Value) -> Option<Self> {
|
|
|
|
Some(FromValue::from_value(value))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
impl<'a> FromValue<'a> for RTSPTransMode {
|
|
|
|
unsafe fn from_value(value: &Value) -> Self {
|
2019-03-19 07:40:05 +00:00
|
|
|
from_glib(gobject_sys::g_value_get_flags(value.to_glib_none().0))
|
2018-02-09 02:30:08 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
impl SetValue for RTSPTransMode {
|
|
|
|
unsafe fn set_value(value: &mut Value, this: &Self) {
|
2019-03-19 07:40:05 +00:00
|
|
|
gobject_sys::g_value_set_flags(value.to_glib_none_mut().0, this.to_glib())
|
2018-02-09 02:30:08 +00:00
|
|
|
}
|
|
|
|
}
|