2018-04-04 07:46:18 +00:00
|
|
|
// This file was generated by gir (https://github.com/gtk-rs/gir @ 6855214)
|
2018-02-09 02:30:08 +00:00
|
|
|
// from gir-files (https://github.com/gtk-rs/gir-files @ ???)
|
|
|
|
// DO NOT EDIT
|
|
|
|
|
|
|
|
use ffi;
|
|
|
|
use glib::StaticType;
|
|
|
|
use glib::Type;
|
|
|
|
use glib::translate::*;
|
|
|
|
use glib::value::FromValue;
|
|
|
|
use glib::value::FromValueOptional;
|
|
|
|
use glib::value::SetValue;
|
|
|
|
use glib::value::Value;
|
|
|
|
use gobject_ffi;
|
|
|
|
|
|
|
|
bitflags! {
|
|
|
|
pub struct RTSPEvent: u32 {
|
|
|
|
const READ = 1;
|
|
|
|
const WRITE = 2;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#[doc(hidden)]
|
|
|
|
impl ToGlib for RTSPEvent {
|
|
|
|
type GlibType = ffi::GstRTSPEvent;
|
|
|
|
|
|
|
|
fn to_glib(&self) -> ffi::GstRTSPEvent {
|
2018-04-04 07:46:18 +00:00
|
|
|
self.bits()
|
2018-02-09 02:30:08 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#[doc(hidden)]
|
|
|
|
impl FromGlib<ffi::GstRTSPEvent> for RTSPEvent {
|
|
|
|
fn from_glib(value: ffi::GstRTSPEvent) -> RTSPEvent {
|
|
|
|
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 {
|
|
|
|
unsafe { from_glib(ffi::gst_rtsp_event_get_type()) }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
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 {
|
2018-04-04 07:46:18 +00:00
|
|
|
from_glib(gobject_ffi::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) {
|
2018-04-04 07:46:18 +00:00
|
|
|
gobject_ffi::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 {
|
|
|
|
type GlibType = ffi::GstRTSPLowerTrans;
|
|
|
|
|
|
|
|
fn to_glib(&self) -> ffi::GstRTSPLowerTrans {
|
2018-04-04 07:46:18 +00:00
|
|
|
self.bits()
|
2018-02-09 02:30:08 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#[doc(hidden)]
|
|
|
|
impl FromGlib<ffi::GstRTSPLowerTrans> for RTSPLowerTrans {
|
|
|
|
fn from_glib(value: ffi::GstRTSPLowerTrans) -> RTSPLowerTrans {
|
|
|
|
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 {
|
|
|
|
unsafe { from_glib(ffi::gst_rtsp_lower_trans_get_type()) }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
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 {
|
2018-04-04 07:46:18 +00:00
|
|
|
from_glib(gobject_ffi::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) {
|
2018-04-04 07:46:18 +00:00
|
|
|
gobject_ffi::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 {
|
|
|
|
type GlibType = ffi::GstRTSPMethod;
|
|
|
|
|
|
|
|
fn to_glib(&self) -> ffi::GstRTSPMethod {
|
2018-04-04 07:46:18 +00:00
|
|
|
self.bits()
|
2018-02-09 02:30:08 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#[doc(hidden)]
|
|
|
|
impl FromGlib<ffi::GstRTSPMethod> for RTSPMethod {
|
|
|
|
fn from_glib(value: ffi::GstRTSPMethod) -> RTSPMethod {
|
|
|
|
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 {
|
|
|
|
unsafe { from_glib(ffi::gst_rtsp_method_get_type()) }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
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 {
|
2018-04-04 07:46:18 +00:00
|
|
|
from_glib(gobject_ffi::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) {
|
2018-04-04 07:46:18 +00:00
|
|
|
gobject_ffi::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 {
|
|
|
|
type GlibType = ffi::GstRTSPProfile;
|
|
|
|
|
|
|
|
fn to_glib(&self) -> ffi::GstRTSPProfile {
|
2018-04-04 07:46:18 +00:00
|
|
|
self.bits()
|
2018-02-09 02:30:08 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#[doc(hidden)]
|
|
|
|
impl FromGlib<ffi::GstRTSPProfile> for RTSPProfile {
|
|
|
|
fn from_glib(value: ffi::GstRTSPProfile) -> RTSPProfile {
|
|
|
|
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 {
|
|
|
|
unsafe { from_glib(ffi::gst_rtsp_profile_get_type()) }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
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 {
|
2018-04-04 07:46:18 +00:00
|
|
|
from_glib(gobject_ffi::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) {
|
2018-04-04 07:46:18 +00:00
|
|
|
gobject_ffi::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 {
|
|
|
|
type GlibType = ffi::GstRTSPTransMode;
|
|
|
|
|
|
|
|
fn to_glib(&self) -> ffi::GstRTSPTransMode {
|
2018-04-04 07:46:18 +00:00
|
|
|
self.bits()
|
2018-02-09 02:30:08 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#[doc(hidden)]
|
|
|
|
impl FromGlib<ffi::GstRTSPTransMode> for RTSPTransMode {
|
|
|
|
fn from_glib(value: ffi::GstRTSPTransMode) -> RTSPTransMode {
|
|
|
|
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 {
|
|
|
|
unsafe { from_glib(ffi::gst_rtsp_trans_mode_get_type()) }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
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 {
|
2018-04-04 07:46:18 +00:00
|
|
|
from_glib(gobject_ffi::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) {
|
2018-04-04 07:46:18 +00:00
|
|
|
gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, this.to_glib())
|
2018-02-09 02:30:08 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|