mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-06-27 02:20:41 +00:00
49 lines
1.6 KiB
Rust
49 lines
1.6 KiB
Rust
// 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 WebRTCRTPReceiver;
|
|
use WebRTCRTPSender;
|
|
use ffi;
|
|
use glib::StaticType;
|
|
use glib::Value;
|
|
use glib::translate::*;
|
|
use gobject_ffi;
|
|
|
|
glib_wrapper! {
|
|
pub struct WebRTCRTPTransceiver(Object<ffi::GstWebRTCRTPTransceiver, ffi::GstWebRTCRTPTransceiverClass>);
|
|
|
|
match fn {
|
|
get_type => || ffi::gst_webrtc_rtp_transceiver_get_type(),
|
|
}
|
|
}
|
|
|
|
impl WebRTCRTPTransceiver {
|
|
pub fn get_property_mlineindex(&self) -> u32 {
|
|
unsafe {
|
|
let mut value = Value::from_type(<u32 as StaticType>::static_type());
|
|
gobject_ffi::g_object_get_property(self.to_glib_none().0, b"mlineindex\0".as_ptr() as *const _, value.to_glib_none_mut().0);
|
|
value.get().unwrap()
|
|
}
|
|
}
|
|
|
|
pub fn get_property_receiver(&self) -> Option<WebRTCRTPReceiver> {
|
|
unsafe {
|
|
let mut value = Value::from_type(<WebRTCRTPReceiver as StaticType>::static_type());
|
|
gobject_ffi::g_object_get_property(self.to_glib_none().0, b"receiver\0".as_ptr() as *const _, value.to_glib_none_mut().0);
|
|
value.get()
|
|
}
|
|
}
|
|
|
|
pub fn get_property_sender(&self) -> Option<WebRTCRTPSender> {
|
|
unsafe {
|
|
let mut value = Value::from_type(<WebRTCRTPSender as StaticType>::static_type());
|
|
gobject_ffi::g_object_get_property(self.to_glib_none().0, b"sender\0".as_ptr() as *const _, value.to_glib_none_mut().0);
|
|
value.get()
|
|
}
|
|
}
|
|
}
|
|
|
|
unsafe impl Send for WebRTCRTPTransceiver {}
|
|
unsafe impl Sync for WebRTCRTPTransceiver {}
|