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 {