From 57c62789d9f1fd059b7254366cb8a75bdacd781e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Thu, 5 Apr 2018 20:53:54 +0300 Subject: [PATCH] Finish WebRTC library --- Gir_GstWebRTC.toml | 4 ++++ gstreamer-webrtc/src/auto/enums.rs | 2 +- gstreamer-webrtc/src/auto/flags.rs | 2 +- gstreamer-webrtc/src/auto/mod.rs | 2 +- .../src/auto/web_r_t_c_d_t_l_s_transport.rs | 2 +- .../src/auto/web_r_t_c_i_c_e_transport.rs | 2 +- .../src/auto/web_r_t_c_r_t_p_receiver.rs | 2 +- gstreamer-webrtc/src/auto/web_r_t_c_r_t_p_sender.rs | 2 +- .../src/auto/web_r_t_c_r_t_p_transceiver.rs | 2 +- .../src/auto/web_r_t_c_session_description.rs | 13 +------------ gstreamer-webrtc/src/lib.rs | 2 ++ 11 files changed, 15 insertions(+), 20 deletions(-) diff --git a/Gir_GstWebRTC.toml b/Gir_GstWebRTC.toml index ced9d862d..6b0c3c7ae 100644 --- a/Gir_GstWebRTC.toml +++ b/Gir_GstWebRTC.toml @@ -60,3 +60,7 @@ name = "GstWebRTC.WebRTCSessionDescription" status = "generate" trait = false + [[object.function]] + name = "new" + # takes ownership of SDP message + ignore = true diff --git a/gstreamer-webrtc/src/auto/enums.rs b/gstreamer-webrtc/src/auto/enums.rs index 3f38df57a..75a9e341f 100644 --- a/gstreamer-webrtc/src/auto/enums.rs +++ b/gstreamer-webrtc/src/auto/enums.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ d1e0127) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 6855214) // from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT diff --git a/gstreamer-webrtc/src/auto/flags.rs b/gstreamer-webrtc/src/auto/flags.rs index 3cf2359d8..1e1712f99 100644 --- a/gstreamer-webrtc/src/auto/flags.rs +++ b/gstreamer-webrtc/src/auto/flags.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ d1e0127) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 6855214) // from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT diff --git a/gstreamer-webrtc/src/auto/mod.rs b/gstreamer-webrtc/src/auto/mod.rs index 815a60ab1..d40c7e10c 100644 --- a/gstreamer-webrtc/src/auto/mod.rs +++ b/gstreamer-webrtc/src/auto/mod.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ d1e0127) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 6855214) // from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT diff --git a/gstreamer-webrtc/src/auto/web_r_t_c_d_t_l_s_transport.rs b/gstreamer-webrtc/src/auto/web_r_t_c_d_t_l_s_transport.rs index 5f89e780e..51bb9ec53 100644 --- a/gstreamer-webrtc/src/auto/web_r_t_c_d_t_l_s_transport.rs +++ b/gstreamer-webrtc/src/auto/web_r_t_c_d_t_l_s_transport.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ d1e0127) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 6855214) // from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT diff --git a/gstreamer-webrtc/src/auto/web_r_t_c_i_c_e_transport.rs b/gstreamer-webrtc/src/auto/web_r_t_c_i_c_e_transport.rs index 4817a1a53..55934f75d 100644 --- a/gstreamer-webrtc/src/auto/web_r_t_c_i_c_e_transport.rs +++ b/gstreamer-webrtc/src/auto/web_r_t_c_i_c_e_transport.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ d1e0127) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 6855214) // from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT diff --git a/gstreamer-webrtc/src/auto/web_r_t_c_r_t_p_receiver.rs b/gstreamer-webrtc/src/auto/web_r_t_c_r_t_p_receiver.rs index 7749dc07a..9dafd811e 100644 --- a/gstreamer-webrtc/src/auto/web_r_t_c_r_t_p_receiver.rs +++ b/gstreamer-webrtc/src/auto/web_r_t_c_r_t_p_receiver.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ d1e0127) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 6855214) // from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT diff --git a/gstreamer-webrtc/src/auto/web_r_t_c_r_t_p_sender.rs b/gstreamer-webrtc/src/auto/web_r_t_c_r_t_p_sender.rs index c430d5f39..8ec3615d8 100644 --- a/gstreamer-webrtc/src/auto/web_r_t_c_r_t_p_sender.rs +++ b/gstreamer-webrtc/src/auto/web_r_t_c_r_t_p_sender.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ d1e0127) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 6855214) // from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT diff --git a/gstreamer-webrtc/src/auto/web_r_t_c_r_t_p_transceiver.rs b/gstreamer-webrtc/src/auto/web_r_t_c_r_t_p_transceiver.rs index 2efe5a49f..e8fed1f0c 100644 --- a/gstreamer-webrtc/src/auto/web_r_t_c_r_t_p_transceiver.rs +++ b/gstreamer-webrtc/src/auto/web_r_t_c_r_t_p_transceiver.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ d1e0127) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 6855214) // from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT diff --git a/gstreamer-webrtc/src/auto/web_r_t_c_session_description.rs b/gstreamer-webrtc/src/auto/web_r_t_c_session_description.rs index 0ce1be351..b829897de 100644 --- a/gstreamer-webrtc/src/auto/web_r_t_c_session_description.rs +++ b/gstreamer-webrtc/src/auto/web_r_t_c_session_description.rs @@ -1,13 +1,11 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ d1e0127) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 6855214) // from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT -use WebRTCSDPType; use ffi; use glib::translate::*; use glib_ffi; use gobject_ffi; -use gst_sdp; use std::mem; use std::ptr; @@ -21,14 +19,5 @@ glib_wrapper! { } } -impl WebRTCSessionDescription { - pub fn new(type_: WebRTCSDPType, sdp: &mut gst_sdp::SDPMessage) -> WebRTCSessionDescription { - assert_initialized_main_thread!(); - unsafe { - from_glib_full(ffi::gst_webrtc_session_description_new(type_.to_glib(), sdp.to_glib_none_mut().0)) - } - } -} - unsafe impl Send for WebRTCSessionDescription {} unsafe impl Sync for WebRTCSessionDescription {} diff --git a/gstreamer-webrtc/src/lib.rs b/gstreamer-webrtc/src/lib.rs index b75912b8a..c9eefa720 100644 --- a/gstreamer-webrtc/src/lib.rs +++ b/gstreamer-webrtc/src/lib.rs @@ -44,6 +44,8 @@ pub use glib::{Cast, Continue, Error, IsA, StaticType, ToValue, Type, TypedValue mod auto; pub use auto::*; +mod web_r_t_c_session_description; + // Re-export all the traits in a prelude module, so that applications // can always "use gst::prelude::*" without getting conflicts pub mod prelude {