Regenerated with latest GIR and GIR files

This commit is contained in:
Sebastian Dröge 2018-05-21 11:41:37 +03:00
parent 82b56e782b
commit 1192a027b4
16 changed files with 255 additions and 37 deletions

View file

@ -1,4 +1,2 @@
All files in this directory
were generated by gir (https://github.com/gtk-rs/gir @ 1795530)
Generated by gir (https://github.com/gtk-rs/gir @ 1825132)
from gir-files (https://github.com/gtk-rs/gir-files @ ???)
DO NOT EDIT THEM

View file

@ -1,4 +1,2 @@
All files in this directory
were generated by gir (https://github.com/gtk-rs/gir @ 1795530)
Generated by gir (https://github.com/gtk-rs/gir @ 1825132)
from gir-files (https://github.com/gtk-rs/gir-files @ ???)
DO NOT EDIT THEM

View file

@ -1,4 +1,2 @@
All files in this directory
were generated by gir (https://github.com/gtk-rs/gir @ 1795530)
Generated by gir (https://github.com/gtk-rs/gir @ 1825132)
from gir-files (https://github.com/gtk-rs/gir-files @ ???)
DO NOT EDIT THEM

View file

@ -29,7 +29,7 @@ pub fn type_find_helper_for_data<
let data = data.as_ref();
let (ptr, len) = (data.as_ptr(), data.len());
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))
}

View file

@ -1,4 +1,2 @@
All files in this directory
were generated by gir (https://github.com/gtk-rs/gir @ 1795530)
Generated by gir (https://github.com/gtk-rs/gir @ 1825132)
from gir-files (https://github.com/gtk-rs/gir-files @ ???)
DO NOT EDIT THEM

View file

@ -1,4 +1,2 @@
All files in this directory
were generated by gir (https://github.com/gtk-rs/gir @ 1795530)
Generated by gir (https://github.com/gtk-rs/gir @ 1825132)
from gir-files (https://github.com/gtk-rs/gir-files @ ???)
DO NOT EDIT THEM

View file

@ -1,4 +1,2 @@
All files in this directory
were generated by gir (https://github.com/gtk-rs/gir @ 1795530)
Generated by gir (https://github.com/gtk-rs/gir @ 1825132)
from gir-files (https://github.com/gtk-rs/gir-files @ ???)
DO NOT EDIT THEM

View file

@ -1,4 +1,2 @@
All files in this directory
were generated by gir (https://github.com/gtk-rs/gir @ 1795530)
Generated by gir (https://github.com/gtk-rs/gir @ 1825132)
from gir-files (https://github.com/gtk-rs/gir-files @ ???)
DO NOT EDIT THEM

View file

@ -1,4 +1,2 @@
All files in this directory
were generated by gir (https://github.com/gtk-rs/gir @ 1795530)
Generated by gir (https://github.com/gtk-rs/gir @ 1825132)
from gir-files (https://github.com/gtk-rs/gir-files @ ???)
DO NOT EDIT THEM

View file

@ -1,4 +1,2 @@
All files in this directory
were generated by gir (https://github.com/gtk-rs/gir @ 1795530)
Generated by gir (https://github.com/gtk-rs/gir @ 1825132)
from gir-files (https://github.com/gtk-rs/gir-files @ ???)
DO NOT EDIT THEM

View file

@ -1,4 +1,2 @@
All files in this directory
were generated by gir (https://github.com/gtk-rs/gir @ 1795530)
Generated by gir (https://github.com/gtk-rs/gir @ 1825132)
from gir-files (https://github.com/gtk-rs/gir-files @ ???)
DO NOT EDIT THEM

View file

@ -3,7 +3,14 @@
// 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;
#[derive(Clone, Copy, Debug, Eq, PartialEq, Hash)]
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)]
pub enum WebRTCICEComponent {
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)]
pub enum WebRTCICEConnectionState {
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)]
pub enum WebRTCICEGatheringState {
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)]
pub enum WebRTCICERole {
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)]
pub enum WebRTCSDPType {
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())
}
}

View file

@ -1,4 +1,2 @@
All files in this directory
were generated by gir (https://github.com/gtk-rs/gir @ 1795530)
Generated by gir (https://github.com/gtk-rs/gir @ 1825132)
from gir-files (https://github.com/gtk-rs/gir-files @ ???)
DO NOT EDIT THEM

View file

@ -2,6 +2,7 @@
// from gir-files (https://github.com/gtk-rs/gir-files)
// DO NOT EDIT
use WebRTCDTLSTransportState;
use WebRTCICETransport;
use ffi;
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> {
unsafe {
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 {
unsafe {
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))
}
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) {
callback_guard!();
let f: &&(Fn(&WebRTCDTLSTransport) + Send + Sync + 'static) = transmute(f);

View file

@ -6,6 +6,8 @@ use WebRTCICEComponent;
use WebRTCICEConnectionState;
use WebRTCICEGatheringState;
use ffi;
use glib::StaticType;
use glib::Value;
use glib::signal::SignalHandlerId;
use glib::signal::connect;
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 {
unsafe {
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 _)
}
}
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 {}
@ -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);
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))
}

View file

@ -1,4 +1,2 @@
All files in this directory
were generated by gir (https://github.com/gtk-rs/gir @ 1795530)
Generated by gir (https://github.com/gtk-rs/gir @ 1825132)
from gir-files (https://github.com/gtk-rs/gir-files @ ???)
DO NOT EDIT THEM