forked from mirrors/gstreamer-rs
Regenerated with latest GIR and GIR files
This commit is contained in:
parent
82b56e782b
commit
1192a027b4
16 changed files with 255 additions and 37 deletions
|
@ -1,4 +1,2 @@
|
||||||
All files in this directory
|
Generated by gir (https://github.com/gtk-rs/gir @ 1825132)
|
||||||
were generated by gir (https://github.com/gtk-rs/gir @ 1795530)
|
|
||||||
from gir-files (https://github.com/gtk-rs/gir-files @ ???)
|
from gir-files (https://github.com/gtk-rs/gir-files @ ???)
|
||||||
DO NOT EDIT THEM
|
|
||||||
|
|
|
@ -1,4 +1,2 @@
|
||||||
All files in this directory
|
Generated by gir (https://github.com/gtk-rs/gir @ 1825132)
|
||||||
were generated by gir (https://github.com/gtk-rs/gir @ 1795530)
|
|
||||||
from gir-files (https://github.com/gtk-rs/gir-files @ ???)
|
from gir-files (https://github.com/gtk-rs/gir-files @ ???)
|
||||||
DO NOT EDIT THEM
|
|
||||||
|
|
|
@ -1,4 +1,2 @@
|
||||||
All files in this directory
|
Generated by gir (https://github.com/gtk-rs/gir @ 1825132)
|
||||||
were generated by gir (https://github.com/gtk-rs/gir @ 1795530)
|
|
||||||
from gir-files (https://github.com/gtk-rs/gir-files @ ???)
|
from gir-files (https://github.com/gtk-rs/gir-files @ ???)
|
||||||
DO NOT EDIT THEM
|
|
||||||
|
|
|
@ -29,7 +29,7 @@ pub fn type_find_helper_for_data<
|
||||||
let data = data.as_ref();
|
let data = data.as_ref();
|
||||||
let (ptr, len) = (data.as_ptr(), data.len());
|
let (ptr, len) = (data.as_ptr(), data.len());
|
||||||
let ret = from_glib_full(ffi::gst_type_find_helper_for_data(
|
let ret = from_glib_full(ffi::gst_type_find_helper_for_data(
|
||||||
obj.0, ptr, len, &mut prob,
|
obj.0, mut_override(ptr), len, &mut prob,
|
||||||
));
|
));
|
||||||
(ret, from_glib(prob))
|
(ret, from_glib(prob))
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,2 @@
|
||||||
All files in this directory
|
Generated by gir (https://github.com/gtk-rs/gir @ 1825132)
|
||||||
were generated by gir (https://github.com/gtk-rs/gir @ 1795530)
|
|
||||||
from gir-files (https://github.com/gtk-rs/gir-files @ ???)
|
from gir-files (https://github.com/gtk-rs/gir-files @ ???)
|
||||||
DO NOT EDIT THEM
|
|
||||||
|
|
|
@ -1,4 +1,2 @@
|
||||||
All files in this directory
|
Generated by gir (https://github.com/gtk-rs/gir @ 1825132)
|
||||||
were generated by gir (https://github.com/gtk-rs/gir @ 1795530)
|
|
||||||
from gir-files (https://github.com/gtk-rs/gir-files @ ???)
|
from gir-files (https://github.com/gtk-rs/gir-files @ ???)
|
||||||
DO NOT EDIT THEM
|
|
||||||
|
|
|
@ -1,4 +1,2 @@
|
||||||
All files in this directory
|
Generated by gir (https://github.com/gtk-rs/gir @ 1825132)
|
||||||
were generated by gir (https://github.com/gtk-rs/gir @ 1795530)
|
|
||||||
from gir-files (https://github.com/gtk-rs/gir-files @ ???)
|
from gir-files (https://github.com/gtk-rs/gir-files @ ???)
|
||||||
DO NOT EDIT THEM
|
|
||||||
|
|
|
@ -1,4 +1,2 @@
|
||||||
All files in this directory
|
Generated by gir (https://github.com/gtk-rs/gir @ 1825132)
|
||||||
were generated by gir (https://github.com/gtk-rs/gir @ 1795530)
|
|
||||||
from gir-files (https://github.com/gtk-rs/gir-files @ ???)
|
from gir-files (https://github.com/gtk-rs/gir-files @ ???)
|
||||||
DO NOT EDIT THEM
|
|
||||||
|
|
|
@ -1,4 +1,2 @@
|
||||||
All files in this directory
|
Generated by gir (https://github.com/gtk-rs/gir @ 1825132)
|
||||||
were generated by gir (https://github.com/gtk-rs/gir @ 1795530)
|
|
||||||
from gir-files (https://github.com/gtk-rs/gir-files @ ???)
|
from gir-files (https://github.com/gtk-rs/gir-files @ ???)
|
||||||
DO NOT EDIT THEM
|
|
||||||
|
|
|
@ -1,4 +1,2 @@
|
||||||
All files in this directory
|
Generated by gir (https://github.com/gtk-rs/gir @ 1825132)
|
||||||
were generated by gir (https://github.com/gtk-rs/gir @ 1795530)
|
|
||||||
from gir-files (https://github.com/gtk-rs/gir-files @ ???)
|
from gir-files (https://github.com/gtk-rs/gir-files @ ???)
|
||||||
DO NOT EDIT THEM
|
|
||||||
|
|
|
@ -1,4 +1,2 @@
|
||||||
All files in this directory
|
Generated by gir (https://github.com/gtk-rs/gir @ 1825132)
|
||||||
were generated by gir (https://github.com/gtk-rs/gir @ 1795530)
|
|
||||||
from gir-files (https://github.com/gtk-rs/gir-files @ ???)
|
from gir-files (https://github.com/gtk-rs/gir-files @ ???)
|
||||||
DO NOT EDIT THEM
|
|
||||||
|
|
|
@ -3,7 +3,14 @@
|
||||||
// DO NOT EDIT
|
// DO NOT EDIT
|
||||||
|
|
||||||
use ffi;
|
use ffi;
|
||||||
|
use glib::StaticType;
|
||||||
|
use glib::Type;
|
||||||
use glib::translate::*;
|
use glib::translate::*;
|
||||||
|
use glib::value::FromValue;
|
||||||
|
use glib::value::FromValueOptional;
|
||||||
|
use glib::value::SetValue;
|
||||||
|
use glib::value::Value;
|
||||||
|
use gobject_ffi;
|
||||||
|
|
||||||
#[derive(Clone, Copy, Debug, Eq, PartialEq, Hash)]
|
#[derive(Clone, Copy, Debug, Eq, PartialEq, Hash)]
|
||||||
pub enum WebRTCDTLSTransportState {
|
pub enum WebRTCDTLSTransportState {
|
||||||
|
@ -47,6 +54,30 @@ impl FromGlib<ffi::GstWebRTCDTLSTransportState> for WebRTCDTLSTransportState {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl StaticType for WebRTCDTLSTransportState {
|
||||||
|
fn static_type() -> Type {
|
||||||
|
unsafe { from_glib(ffi::gst_webrtc_dtls_transport_state_get_type()) }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
impl<'a> FromValueOptional<'a> for WebRTCDTLSTransportState {
|
||||||
|
unsafe fn from_value_optional(value: &Value) -> Option<Self> {
|
||||||
|
Some(FromValue::from_value(value))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
impl<'a> FromValue<'a> for WebRTCDTLSTransportState {
|
||||||
|
unsafe fn from_value(value: &Value) -> Self {
|
||||||
|
from_glib(gobject_ffi::g_value_get_enum(value.to_glib_none().0))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
impl SetValue for WebRTCDTLSTransportState {
|
||||||
|
unsafe fn set_value(value: &mut Value, this: &Self) {
|
||||||
|
gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib())
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
#[derive(Clone, Copy, Debug, Eq, PartialEq, Hash)]
|
#[derive(Clone, Copy, Debug, Eq, PartialEq, Hash)]
|
||||||
pub enum WebRTCICEComponent {
|
pub enum WebRTCICEComponent {
|
||||||
Rtp,
|
Rtp,
|
||||||
|
@ -80,6 +111,30 @@ impl FromGlib<ffi::GstWebRTCICEComponent> for WebRTCICEComponent {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl StaticType for WebRTCICEComponent {
|
||||||
|
fn static_type() -> Type {
|
||||||
|
unsafe { from_glib(ffi::gst_webrtc_ice_component_get_type()) }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
impl<'a> FromValueOptional<'a> for WebRTCICEComponent {
|
||||||
|
unsafe fn from_value_optional(value: &Value) -> Option<Self> {
|
||||||
|
Some(FromValue::from_value(value))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
impl<'a> FromValue<'a> for WebRTCICEComponent {
|
||||||
|
unsafe fn from_value(value: &Value) -> Self {
|
||||||
|
from_glib(gobject_ffi::g_value_get_enum(value.to_glib_none().0))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
impl SetValue for WebRTCICEComponent {
|
||||||
|
unsafe fn set_value(value: &mut Value, this: &Self) {
|
||||||
|
gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib())
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
#[derive(Clone, Copy, Debug, Eq, PartialEq, Hash)]
|
#[derive(Clone, Copy, Debug, Eq, PartialEq, Hash)]
|
||||||
pub enum WebRTCICEConnectionState {
|
pub enum WebRTCICEConnectionState {
|
||||||
New,
|
New,
|
||||||
|
@ -128,6 +183,30 @@ impl FromGlib<ffi::GstWebRTCICEConnectionState> for WebRTCICEConnectionState {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl StaticType for WebRTCICEConnectionState {
|
||||||
|
fn static_type() -> Type {
|
||||||
|
unsafe { from_glib(ffi::gst_webrtc_ice_connection_state_get_type()) }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
impl<'a> FromValueOptional<'a> for WebRTCICEConnectionState {
|
||||||
|
unsafe fn from_value_optional(value: &Value) -> Option<Self> {
|
||||||
|
Some(FromValue::from_value(value))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
impl<'a> FromValue<'a> for WebRTCICEConnectionState {
|
||||||
|
unsafe fn from_value(value: &Value) -> Self {
|
||||||
|
from_glib(gobject_ffi::g_value_get_enum(value.to_glib_none().0))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
impl SetValue for WebRTCICEConnectionState {
|
||||||
|
unsafe fn set_value(value: &mut Value, this: &Self) {
|
||||||
|
gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib())
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
#[derive(Clone, Copy, Debug, Eq, PartialEq, Hash)]
|
#[derive(Clone, Copy, Debug, Eq, PartialEq, Hash)]
|
||||||
pub enum WebRTCICEGatheringState {
|
pub enum WebRTCICEGatheringState {
|
||||||
New,
|
New,
|
||||||
|
@ -164,6 +243,30 @@ impl FromGlib<ffi::GstWebRTCICEGatheringState> for WebRTCICEGatheringState {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl StaticType for WebRTCICEGatheringState {
|
||||||
|
fn static_type() -> Type {
|
||||||
|
unsafe { from_glib(ffi::gst_webrtc_ice_gathering_state_get_type()) }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
impl<'a> FromValueOptional<'a> for WebRTCICEGatheringState {
|
||||||
|
unsafe fn from_value_optional(value: &Value) -> Option<Self> {
|
||||||
|
Some(FromValue::from_value(value))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
impl<'a> FromValue<'a> for WebRTCICEGatheringState {
|
||||||
|
unsafe fn from_value(value: &Value) -> Self {
|
||||||
|
from_glib(gobject_ffi::g_value_get_enum(value.to_glib_none().0))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
impl SetValue for WebRTCICEGatheringState {
|
||||||
|
unsafe fn set_value(value: &mut Value, this: &Self) {
|
||||||
|
gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib())
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
#[derive(Clone, Copy, Debug, Eq, PartialEq, Hash)]
|
#[derive(Clone, Copy, Debug, Eq, PartialEq, Hash)]
|
||||||
pub enum WebRTCICERole {
|
pub enum WebRTCICERole {
|
||||||
Controlled,
|
Controlled,
|
||||||
|
@ -197,6 +300,30 @@ impl FromGlib<ffi::GstWebRTCICERole> for WebRTCICERole {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl StaticType for WebRTCICERole {
|
||||||
|
fn static_type() -> Type {
|
||||||
|
unsafe { from_glib(ffi::gst_webrtc_ice_role_get_type()) }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
impl<'a> FromValueOptional<'a> for WebRTCICERole {
|
||||||
|
unsafe fn from_value_optional(value: &Value) -> Option<Self> {
|
||||||
|
Some(FromValue::from_value(value))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
impl<'a> FromValue<'a> for WebRTCICERole {
|
||||||
|
unsafe fn from_value(value: &Value) -> Self {
|
||||||
|
from_glib(gobject_ffi::g_value_get_enum(value.to_glib_none().0))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
impl SetValue for WebRTCICERole {
|
||||||
|
unsafe fn set_value(value: &mut Value, this: &Self) {
|
||||||
|
gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib())
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
#[derive(Clone, Copy, Debug, Eq, PartialEq, Hash)]
|
#[derive(Clone, Copy, Debug, Eq, PartialEq, Hash)]
|
||||||
pub enum WebRTCSDPType {
|
pub enum WebRTCSDPType {
|
||||||
Offer,
|
Offer,
|
||||||
|
@ -236,3 +363,27 @@ impl FromGlib<ffi::GstWebRTCSDPType> for WebRTCSDPType {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl StaticType for WebRTCSDPType {
|
||||||
|
fn static_type() -> Type {
|
||||||
|
unsafe { from_glib(ffi::gst_webrtc_sdp_type_get_type()) }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
impl<'a> FromValueOptional<'a> for WebRTCSDPType {
|
||||||
|
unsafe fn from_value_optional(value: &Value) -> Option<Self> {
|
||||||
|
Some(FromValue::from_value(value))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
impl<'a> FromValue<'a> for WebRTCSDPType {
|
||||||
|
unsafe fn from_value(value: &Value) -> Self {
|
||||||
|
from_glib(gobject_ffi::g_value_get_enum(value.to_glib_none().0))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
impl SetValue for WebRTCSDPType {
|
||||||
|
unsafe fn set_value(value: &mut Value, this: &Self) {
|
||||||
|
gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib())
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,2 @@
|
||||||
All files in this directory
|
Generated by gir (https://github.com/gtk-rs/gir @ 1825132)
|
||||||
were generated by gir (https://github.com/gtk-rs/gir @ 1795530)
|
|
||||||
from gir-files (https://github.com/gtk-rs/gir-files @ ???)
|
from gir-files (https://github.com/gtk-rs/gir-files @ ???)
|
||||||
DO NOT EDIT THEM
|
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
// from gir-files (https://github.com/gtk-rs/gir-files)
|
// from gir-files (https://github.com/gtk-rs/gir-files)
|
||||||
// DO NOT EDIT
|
// DO NOT EDIT
|
||||||
|
|
||||||
|
use WebRTCDTLSTransportState;
|
||||||
use WebRTCICETransport;
|
use WebRTCICETransport;
|
||||||
use ffi;
|
use ffi;
|
||||||
use glib::StaticType;
|
use glib::StaticType;
|
||||||
|
@ -90,6 +91,14 @@ impl WebRTCDTLSTransport {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub fn get_property_state(&self) -> WebRTCDTLSTransportState {
|
||||||
|
unsafe {
|
||||||
|
let mut value = Value::from_type(<WebRTCDTLSTransportState as StaticType>::static_type());
|
||||||
|
gobject_ffi::g_object_get_property(self.to_glib_none().0, "state".to_glib_none().0, value.to_glib_none_mut().0);
|
||||||
|
value.get().unwrap()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
pub fn get_property_transport(&self) -> Option<WebRTCICETransport> {
|
pub fn get_property_transport(&self) -> Option<WebRTCICETransport> {
|
||||||
unsafe {
|
unsafe {
|
||||||
let mut value = Value::from_type(<WebRTCICETransport as StaticType>::static_type());
|
let mut value = Value::from_type(<WebRTCICETransport as StaticType>::static_type());
|
||||||
|
@ -138,6 +147,14 @@ impl WebRTCDTLSTransport {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub fn connect_property_state_notify<F: Fn(&WebRTCDTLSTransport) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId {
|
||||||
|
unsafe {
|
||||||
|
let f: Box_<Box_<Fn(&WebRTCDTLSTransport) + Send + Sync + 'static>> = Box_::new(Box_::new(f));
|
||||||
|
connect(self.to_glib_none().0, "notify::state",
|
||||||
|
transmute(notify_state_trampoline as usize), Box_::into_raw(f) as *mut _)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
pub fn connect_property_transport_notify<F: Fn(&WebRTCDTLSTransport) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId {
|
pub fn connect_property_transport_notify<F: Fn(&WebRTCDTLSTransport) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId {
|
||||||
unsafe {
|
unsafe {
|
||||||
let f: Box_<Box_<Fn(&WebRTCDTLSTransport) + Send + Sync + 'static>> = Box_::new(Box_::new(f));
|
let f: Box_<Box_<Fn(&WebRTCDTLSTransport) + Send + Sync + 'static>> = Box_::new(Box_::new(f));
|
||||||
|
@ -180,6 +197,12 @@ unsafe extern "C" fn notify_session_id_trampoline(this: *mut ffi::GstWebRTCDTLST
|
||||||
f(&from_glib_borrow(this))
|
f(&from_glib_borrow(this))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
unsafe extern "C" fn notify_state_trampoline(this: *mut ffi::GstWebRTCDTLSTransport, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) {
|
||||||
|
callback_guard!();
|
||||||
|
let f: &&(Fn(&WebRTCDTLSTransport) + Send + Sync + 'static) = transmute(f);
|
||||||
|
f(&from_glib_borrow(this))
|
||||||
|
}
|
||||||
|
|
||||||
unsafe extern "C" fn notify_transport_trampoline(this: *mut ffi::GstWebRTCDTLSTransport, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) {
|
unsafe extern "C" fn notify_transport_trampoline(this: *mut ffi::GstWebRTCDTLSTransport, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) {
|
||||||
callback_guard!();
|
callback_guard!();
|
||||||
let f: &&(Fn(&WebRTCDTLSTransport) + Send + Sync + 'static) = transmute(f);
|
let f: &&(Fn(&WebRTCDTLSTransport) + Send + Sync + 'static) = transmute(f);
|
||||||
|
|
|
@ -6,6 +6,8 @@ use WebRTCICEComponent;
|
||||||
use WebRTCICEConnectionState;
|
use WebRTCICEConnectionState;
|
||||||
use WebRTCICEGatheringState;
|
use WebRTCICEGatheringState;
|
||||||
use ffi;
|
use ffi;
|
||||||
|
use glib::StaticType;
|
||||||
|
use glib::Value;
|
||||||
use glib::signal::SignalHandlerId;
|
use glib::signal::SignalHandlerId;
|
||||||
use glib::signal::connect;
|
use glib::signal::connect;
|
||||||
use glib::translate::*;
|
use glib::translate::*;
|
||||||
|
@ -50,6 +52,30 @@ impl WebRTCICETransport {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub fn get_property_component(&self) -> WebRTCICEComponent {
|
||||||
|
unsafe {
|
||||||
|
let mut value = Value::from_type(<WebRTCICEComponent as StaticType>::static_type());
|
||||||
|
gobject_ffi::g_object_get_property(self.to_glib_none().0, "component".to_glib_none().0, value.to_glib_none_mut().0);
|
||||||
|
value.get().unwrap()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
pub fn get_property_gathering_state(&self) -> WebRTCICEGatheringState {
|
||||||
|
unsafe {
|
||||||
|
let mut value = Value::from_type(<WebRTCICEGatheringState as StaticType>::static_type());
|
||||||
|
gobject_ffi::g_object_get_property(self.to_glib_none().0, "gathering-state".to_glib_none().0, value.to_glib_none_mut().0);
|
||||||
|
value.get().unwrap()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
pub fn get_property_state(&self) -> WebRTCICEConnectionState {
|
||||||
|
unsafe {
|
||||||
|
let mut value = Value::from_type(<WebRTCICEConnectionState as StaticType>::static_type());
|
||||||
|
gobject_ffi::g_object_get_property(self.to_glib_none().0, "state".to_glib_none().0, value.to_glib_none_mut().0);
|
||||||
|
value.get().unwrap()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
pub fn connect_on_new_candidate<F: Fn(&WebRTCICETransport, &str) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId {
|
pub fn connect_on_new_candidate<F: Fn(&WebRTCICETransport, &str) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId {
|
||||||
unsafe {
|
unsafe {
|
||||||
let f: Box_<Box_<Fn(&WebRTCICETransport, &str) + Send + Sync + 'static>> = Box_::new(Box_::new(f));
|
let f: Box_<Box_<Fn(&WebRTCICETransport, &str) + Send + Sync + 'static>> = Box_::new(Box_::new(f));
|
||||||
|
@ -65,6 +91,30 @@ impl WebRTCICETransport {
|
||||||
transmute(on_selected_candidate_pair_change_trampoline as usize), Box_::into_raw(f) as *mut _)
|
transmute(on_selected_candidate_pair_change_trampoline as usize), Box_::into_raw(f) as *mut _)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub fn connect_property_component_notify<F: Fn(&WebRTCICETransport) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId {
|
||||||
|
unsafe {
|
||||||
|
let f: Box_<Box_<Fn(&WebRTCICETransport) + Send + Sync + 'static>> = Box_::new(Box_::new(f));
|
||||||
|
connect(self.to_glib_none().0, "notify::component",
|
||||||
|
transmute(notify_component_trampoline as usize), Box_::into_raw(f) as *mut _)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
pub fn connect_property_gathering_state_notify<F: Fn(&WebRTCICETransport) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId {
|
||||||
|
unsafe {
|
||||||
|
let f: Box_<Box_<Fn(&WebRTCICETransport) + Send + Sync + 'static>> = Box_::new(Box_::new(f));
|
||||||
|
connect(self.to_glib_none().0, "notify::gathering-state",
|
||||||
|
transmute(notify_gathering_state_trampoline as usize), Box_::into_raw(f) as *mut _)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
pub fn connect_property_state_notify<F: Fn(&WebRTCICETransport) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId {
|
||||||
|
unsafe {
|
||||||
|
let f: Box_<Box_<Fn(&WebRTCICETransport) + Send + Sync + 'static>> = Box_::new(Box_::new(f));
|
||||||
|
connect(self.to_glib_none().0, "notify::state",
|
||||||
|
transmute(notify_state_trampoline as usize), Box_::into_raw(f) as *mut _)
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
unsafe impl Send for WebRTCICETransport {}
|
unsafe impl Send for WebRTCICETransport {}
|
||||||
|
@ -81,3 +131,21 @@ unsafe extern "C" fn on_selected_candidate_pair_change_trampoline(this: *mut ffi
|
||||||
let f: &&(Fn(&WebRTCICETransport) + Send + Sync + 'static) = transmute(f);
|
let f: &&(Fn(&WebRTCICETransport) + Send + Sync + 'static) = transmute(f);
|
||||||
f(&from_glib_borrow(this))
|
f(&from_glib_borrow(this))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
unsafe extern "C" fn notify_component_trampoline(this: *mut ffi::GstWebRTCICETransport, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) {
|
||||||
|
callback_guard!();
|
||||||
|
let f: &&(Fn(&WebRTCICETransport) + Send + Sync + 'static) = transmute(f);
|
||||||
|
f(&from_glib_borrow(this))
|
||||||
|
}
|
||||||
|
|
||||||
|
unsafe extern "C" fn notify_gathering_state_trampoline(this: *mut ffi::GstWebRTCICETransport, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) {
|
||||||
|
callback_guard!();
|
||||||
|
let f: &&(Fn(&WebRTCICETransport) + Send + Sync + 'static) = transmute(f);
|
||||||
|
f(&from_glib_borrow(this))
|
||||||
|
}
|
||||||
|
|
||||||
|
unsafe extern "C" fn notify_state_trampoline(this: *mut ffi::GstWebRTCICETransport, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) {
|
||||||
|
callback_guard!();
|
||||||
|
let f: &&(Fn(&WebRTCICETransport) + Send + Sync + 'static) = transmute(f);
|
||||||
|
f(&from_glib_borrow(this))
|
||||||
|
}
|
||||||
|
|
|
@ -1,4 +1,2 @@
|
||||||
All files in this directory
|
Generated by gir (https://github.com/gtk-rs/gir @ 1825132)
|
||||||
were generated by gir (https://github.com/gtk-rs/gir @ 1795530)
|
|
||||||
from gir-files (https://github.com/gtk-rs/gir-files @ ???)
|
from gir-files (https://github.com/gtk-rs/gir-files @ ???)
|
||||||
DO NOT EDIT THEM
|
|
||||||
|
|
Loading…
Reference in a new issue