2021-08-31 13:11:15 +00:00
|
|
|
// Generated by gir (https://github.com/gtk-rs/gir @ 3158f69)
|
2021-05-28 12:14:44 +00:00
|
|
|
// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377)
|
2021-06-28 10:14:00 +00:00
|
|
|
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 831b444)
|
2018-03-15 10:18:06 +00:00
|
|
|
// DO NOT EDIT
|
|
|
|
|
|
|
|
#![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)]
|
2019-06-18 10:04:39 +00:00
|
|
|
#![allow(
|
|
|
|
clippy::approx_constant,
|
|
|
|
clippy::type_complexity,
|
2021-03-26 20:40:50 +00:00
|
|
|
clippy::unreadable_literal,
|
|
|
|
clippy::upper_case_acronyms
|
2019-06-18 10:04:39 +00:00
|
|
|
)]
|
2020-11-27 13:37:24 +00:00
|
|
|
#![cfg_attr(feature = "dox", feature(doc_cfg))]
|
2018-03-15 10:18:06 +00:00
|
|
|
|
2020-11-21 10:31:32 +00:00
|
|
|
use glib_sys as glib;
|
|
|
|
use gstreamer_sdp_sys as gst_sdp;
|
2018-03-15 10:18:06 +00:00
|
|
|
|
|
|
|
#[allow(unused_imports)]
|
2019-06-18 10:04:39 +00:00
|
|
|
use libc::{
|
|
|
|
c_char, c_double, c_float, c_int, c_long, c_short, c_uchar, c_uint, c_ulong, c_ushort, c_void,
|
|
|
|
intptr_t, size_t, ssize_t, time_t, uintptr_t, FILE,
|
|
|
|
};
|
2018-03-15 10:18:06 +00:00
|
|
|
|
|
|
|
#[allow(unused_imports)]
|
2018-04-23 17:07:07 +00:00
|
|
|
use glib::{gboolean, gconstpointer, gpointer, GType};
|
2018-03-15 10:18:06 +00:00
|
|
|
|
|
|
|
// Enums
|
2019-04-23 12:32:33 +00:00
|
|
|
pub type GstWebRTCBundlePolicy = c_int;
|
|
|
|
pub const GST_WEBRTC_BUNDLE_POLICY_NONE: GstWebRTCBundlePolicy = 0;
|
|
|
|
pub const GST_WEBRTC_BUNDLE_POLICY_BALANCED: GstWebRTCBundlePolicy = 1;
|
|
|
|
pub const GST_WEBRTC_BUNDLE_POLICY_MAX_COMPAT: GstWebRTCBundlePolicy = 2;
|
|
|
|
pub const GST_WEBRTC_BUNDLE_POLICY_MAX_BUNDLE: GstWebRTCBundlePolicy = 3;
|
|
|
|
|
2018-03-15 10:18:06 +00:00
|
|
|
pub type GstWebRTCDTLSSetup = c_int;
|
|
|
|
pub const GST_WEBRTC_DTLS_SETUP_NONE: GstWebRTCDTLSSetup = 0;
|
|
|
|
pub const GST_WEBRTC_DTLS_SETUP_ACTPASS: GstWebRTCDTLSSetup = 1;
|
|
|
|
pub const GST_WEBRTC_DTLS_SETUP_ACTIVE: GstWebRTCDTLSSetup = 2;
|
|
|
|
pub const GST_WEBRTC_DTLS_SETUP_PASSIVE: GstWebRTCDTLSSetup = 3;
|
|
|
|
|
|
|
|
pub type GstWebRTCDTLSTransportState = c_int;
|
|
|
|
pub const GST_WEBRTC_DTLS_TRANSPORT_STATE_NEW: GstWebRTCDTLSTransportState = 0;
|
|
|
|
pub const GST_WEBRTC_DTLS_TRANSPORT_STATE_CLOSED: GstWebRTCDTLSTransportState = 1;
|
|
|
|
pub const GST_WEBRTC_DTLS_TRANSPORT_STATE_FAILED: GstWebRTCDTLSTransportState = 2;
|
|
|
|
pub const GST_WEBRTC_DTLS_TRANSPORT_STATE_CONNECTING: GstWebRTCDTLSTransportState = 3;
|
|
|
|
pub const GST_WEBRTC_DTLS_TRANSPORT_STATE_CONNECTED: GstWebRTCDTLSTransportState = 4;
|
|
|
|
|
2019-04-23 12:32:33 +00:00
|
|
|
pub type GstWebRTCDataChannelState = c_int;
|
|
|
|
pub const GST_WEBRTC_DATA_CHANNEL_STATE_NEW: GstWebRTCDataChannelState = 0;
|
|
|
|
pub const GST_WEBRTC_DATA_CHANNEL_STATE_CONNECTING: GstWebRTCDataChannelState = 1;
|
|
|
|
pub const GST_WEBRTC_DATA_CHANNEL_STATE_OPEN: GstWebRTCDataChannelState = 2;
|
|
|
|
pub const GST_WEBRTC_DATA_CHANNEL_STATE_CLOSING: GstWebRTCDataChannelState = 3;
|
|
|
|
pub const GST_WEBRTC_DATA_CHANNEL_STATE_CLOSED: GstWebRTCDataChannelState = 4;
|
|
|
|
|
2018-09-06 15:24:20 +00:00
|
|
|
pub type GstWebRTCFECType = c_int;
|
|
|
|
pub const GST_WEBRTC_FEC_TYPE_NONE: GstWebRTCFECType = 0;
|
|
|
|
pub const GST_WEBRTC_FEC_TYPE_ULP_RED: GstWebRTCFECType = 1;
|
|
|
|
|
2018-03-15 10:18:06 +00:00
|
|
|
pub type GstWebRTCICEComponent = c_int;
|
|
|
|
pub const GST_WEBRTC_ICE_COMPONENT_RTP: GstWebRTCICEComponent = 0;
|
|
|
|
pub const GST_WEBRTC_ICE_COMPONENT_RTCP: GstWebRTCICEComponent = 1;
|
|
|
|
|
|
|
|
pub type GstWebRTCICEConnectionState = c_int;
|
|
|
|
pub const GST_WEBRTC_ICE_CONNECTION_STATE_NEW: GstWebRTCICEConnectionState = 0;
|
|
|
|
pub const GST_WEBRTC_ICE_CONNECTION_STATE_CHECKING: GstWebRTCICEConnectionState = 1;
|
|
|
|
pub const GST_WEBRTC_ICE_CONNECTION_STATE_CONNECTED: GstWebRTCICEConnectionState = 2;
|
|
|
|
pub const GST_WEBRTC_ICE_CONNECTION_STATE_COMPLETED: GstWebRTCICEConnectionState = 3;
|
|
|
|
pub const GST_WEBRTC_ICE_CONNECTION_STATE_FAILED: GstWebRTCICEConnectionState = 4;
|
|
|
|
pub const GST_WEBRTC_ICE_CONNECTION_STATE_DISCONNECTED: GstWebRTCICEConnectionState = 5;
|
|
|
|
pub const GST_WEBRTC_ICE_CONNECTION_STATE_CLOSED: GstWebRTCICEConnectionState = 6;
|
|
|
|
|
|
|
|
pub type GstWebRTCICEGatheringState = c_int;
|
|
|
|
pub const GST_WEBRTC_ICE_GATHERING_STATE_NEW: GstWebRTCICEGatheringState = 0;
|
|
|
|
pub const GST_WEBRTC_ICE_GATHERING_STATE_GATHERING: GstWebRTCICEGatheringState = 1;
|
|
|
|
pub const GST_WEBRTC_ICE_GATHERING_STATE_COMPLETE: GstWebRTCICEGatheringState = 2;
|
|
|
|
|
2018-03-15 15:00:38 +00:00
|
|
|
pub type GstWebRTCICERole = c_int;
|
|
|
|
pub const GST_WEBRTC_ICE_ROLE_CONTROLLED: GstWebRTCICERole = 0;
|
|
|
|
pub const GST_WEBRTC_ICE_ROLE_CONTROLLING: GstWebRTCICERole = 1;
|
2018-03-15 10:18:06 +00:00
|
|
|
|
2019-04-23 12:32:33 +00:00
|
|
|
pub type GstWebRTCICETransportPolicy = c_int;
|
|
|
|
pub const GST_WEBRTC_ICE_TRANSPORT_POLICY_ALL: GstWebRTCICETransportPolicy = 0;
|
|
|
|
pub const GST_WEBRTC_ICE_TRANSPORT_POLICY_RELAY: GstWebRTCICETransportPolicy = 1;
|
|
|
|
|
2021-04-17 10:11:52 +00:00
|
|
|
pub type GstWebRTCKind = c_int;
|
|
|
|
pub const GST_WEBRTC_KIND_UNKNOWN: GstWebRTCKind = 0;
|
|
|
|
pub const GST_WEBRTC_KIND_AUDIO: GstWebRTCKind = 1;
|
|
|
|
pub const GST_WEBRTC_KIND_VIDEO: GstWebRTCKind = 2;
|
|
|
|
|
2018-03-15 10:18:06 +00:00
|
|
|
pub type GstWebRTCPeerConnectionState = c_int;
|
|
|
|
pub const GST_WEBRTC_PEER_CONNECTION_STATE_NEW: GstWebRTCPeerConnectionState = 0;
|
|
|
|
pub const GST_WEBRTC_PEER_CONNECTION_STATE_CONNECTING: GstWebRTCPeerConnectionState = 1;
|
|
|
|
pub const GST_WEBRTC_PEER_CONNECTION_STATE_CONNECTED: GstWebRTCPeerConnectionState = 2;
|
|
|
|
pub const GST_WEBRTC_PEER_CONNECTION_STATE_DISCONNECTED: GstWebRTCPeerConnectionState = 3;
|
|
|
|
pub const GST_WEBRTC_PEER_CONNECTION_STATE_FAILED: GstWebRTCPeerConnectionState = 4;
|
|
|
|
pub const GST_WEBRTC_PEER_CONNECTION_STATE_CLOSED: GstWebRTCPeerConnectionState = 5;
|
|
|
|
|
2019-04-23 12:32:33 +00:00
|
|
|
pub type GstWebRTCPriorityType = c_int;
|
|
|
|
pub const GST_WEBRTC_PRIORITY_TYPE_VERY_LOW: GstWebRTCPriorityType = 1;
|
|
|
|
pub const GST_WEBRTC_PRIORITY_TYPE_LOW: GstWebRTCPriorityType = 2;
|
|
|
|
pub const GST_WEBRTC_PRIORITY_TYPE_MEDIUM: GstWebRTCPriorityType = 3;
|
|
|
|
pub const GST_WEBRTC_PRIORITY_TYPE_HIGH: GstWebRTCPriorityType = 4;
|
|
|
|
|
2018-03-15 10:18:06 +00:00
|
|
|
pub type GstWebRTCRTPTransceiverDirection = c_int;
|
|
|
|
pub const GST_WEBRTC_RTP_TRANSCEIVER_DIRECTION_NONE: GstWebRTCRTPTransceiverDirection = 0;
|
|
|
|
pub const GST_WEBRTC_RTP_TRANSCEIVER_DIRECTION_INACTIVE: GstWebRTCRTPTransceiverDirection = 1;
|
|
|
|
pub const GST_WEBRTC_RTP_TRANSCEIVER_DIRECTION_SENDONLY: GstWebRTCRTPTransceiverDirection = 2;
|
|
|
|
pub const GST_WEBRTC_RTP_TRANSCEIVER_DIRECTION_RECVONLY: GstWebRTCRTPTransceiverDirection = 3;
|
|
|
|
pub const GST_WEBRTC_RTP_TRANSCEIVER_DIRECTION_SENDRECV: GstWebRTCRTPTransceiverDirection = 4;
|
|
|
|
|
2019-04-23 12:32:33 +00:00
|
|
|
pub type GstWebRTCSCTPTransportState = c_int;
|
|
|
|
pub const GST_WEBRTC_SCTP_TRANSPORT_STATE_NEW: GstWebRTCSCTPTransportState = 0;
|
|
|
|
pub const GST_WEBRTC_SCTP_TRANSPORT_STATE_CONNECTING: GstWebRTCSCTPTransportState = 1;
|
|
|
|
pub const GST_WEBRTC_SCTP_TRANSPORT_STATE_CONNECTED: GstWebRTCSCTPTransportState = 2;
|
|
|
|
pub const GST_WEBRTC_SCTP_TRANSPORT_STATE_CLOSED: GstWebRTCSCTPTransportState = 3;
|
|
|
|
|
2018-03-15 10:18:06 +00:00
|
|
|
pub type GstWebRTCSDPType = c_int;
|
|
|
|
pub const GST_WEBRTC_SDP_TYPE_OFFER: GstWebRTCSDPType = 1;
|
|
|
|
pub const GST_WEBRTC_SDP_TYPE_PRANSWER: GstWebRTCSDPType = 2;
|
|
|
|
pub const GST_WEBRTC_SDP_TYPE_ANSWER: GstWebRTCSDPType = 3;
|
|
|
|
pub const GST_WEBRTC_SDP_TYPE_ROLLBACK: GstWebRTCSDPType = 4;
|
|
|
|
|
|
|
|
pub type GstWebRTCSignalingState = c_int;
|
|
|
|
pub const GST_WEBRTC_SIGNALING_STATE_STABLE: GstWebRTCSignalingState = 0;
|
|
|
|
pub const GST_WEBRTC_SIGNALING_STATE_CLOSED: GstWebRTCSignalingState = 1;
|
|
|
|
pub const GST_WEBRTC_SIGNALING_STATE_HAVE_LOCAL_OFFER: GstWebRTCSignalingState = 2;
|
|
|
|
pub const GST_WEBRTC_SIGNALING_STATE_HAVE_REMOTE_OFFER: GstWebRTCSignalingState = 3;
|
|
|
|
pub const GST_WEBRTC_SIGNALING_STATE_HAVE_LOCAL_PRANSWER: GstWebRTCSignalingState = 4;
|
|
|
|
pub const GST_WEBRTC_SIGNALING_STATE_HAVE_REMOTE_PRANSWER: GstWebRTCSignalingState = 5;
|
|
|
|
|
|
|
|
pub type GstWebRTCStatsType = c_int;
|
|
|
|
pub const GST_WEBRTC_STATS_CODEC: GstWebRTCStatsType = 1;
|
|
|
|
pub const GST_WEBRTC_STATS_INBOUND_RTP: GstWebRTCStatsType = 2;
|
|
|
|
pub const GST_WEBRTC_STATS_OUTBOUND_RTP: GstWebRTCStatsType = 3;
|
|
|
|
pub const GST_WEBRTC_STATS_REMOTE_INBOUND_RTP: GstWebRTCStatsType = 4;
|
|
|
|
pub const GST_WEBRTC_STATS_REMOTE_OUTBOUND_RTP: GstWebRTCStatsType = 5;
|
|
|
|
pub const GST_WEBRTC_STATS_CSRC: GstWebRTCStatsType = 6;
|
|
|
|
pub const GST_WEBRTC_STATS_PEER_CONNECTION: GstWebRTCStatsType = 7;
|
|
|
|
pub const GST_WEBRTC_STATS_DATA_CHANNEL: GstWebRTCStatsType = 8;
|
|
|
|
pub const GST_WEBRTC_STATS_STREAM: GstWebRTCStatsType = 9;
|
|
|
|
pub const GST_WEBRTC_STATS_TRANSPORT: GstWebRTCStatsType = 10;
|
|
|
|
pub const GST_WEBRTC_STATS_CANDIDATE_PAIR: GstWebRTCStatsType = 11;
|
|
|
|
pub const GST_WEBRTC_STATS_LOCAL_CANDIDATE: GstWebRTCStatsType = 12;
|
|
|
|
pub const GST_WEBRTC_STATS_REMOTE_CANDIDATE: GstWebRTCStatsType = 13;
|
|
|
|
pub const GST_WEBRTC_STATS_CERTIFICATE: GstWebRTCStatsType = 14;
|
|
|
|
|
|
|
|
// Records
|
|
|
|
#[repr(C)]
|
2021-06-28 10:14:00 +00:00
|
|
|
pub struct _GstWebRTCDTLSTransportClass(c_void);
|
2018-03-15 10:18:06 +00:00
|
|
|
|
2021-06-28 10:14:00 +00:00
|
|
|
pub type GstWebRTCDTLSTransportClass = *mut _GstWebRTCDTLSTransportClass;
|
2018-03-15 10:18:06 +00:00
|
|
|
|
2020-06-03 09:00:25 +00:00
|
|
|
#[repr(C)]
|
2021-06-28 10:14:00 +00:00
|
|
|
pub struct _GstWebRTCDataChannelClass(c_void);
|
2020-06-03 09:00:25 +00:00
|
|
|
|
2021-06-28 10:14:00 +00:00
|
|
|
pub type GstWebRTCDataChannelClass = *mut _GstWebRTCDataChannelClass;
|
2020-06-03 09:00:25 +00:00
|
|
|
|
2018-03-15 10:18:06 +00:00
|
|
|
#[repr(C)]
|
2021-06-28 10:14:00 +00:00
|
|
|
pub struct _GstWebRTCICETransportClass(c_void);
|
2018-03-15 10:18:06 +00:00
|
|
|
|
2021-06-28 10:14:00 +00:00
|
|
|
pub type GstWebRTCICETransportClass = *mut _GstWebRTCICETransportClass;
|
2018-03-15 10:18:06 +00:00
|
|
|
|
|
|
|
#[repr(C)]
|
2021-06-28 10:14:00 +00:00
|
|
|
pub struct _GstWebRTCRTPReceiverClass(c_void);
|
2018-03-15 10:18:06 +00:00
|
|
|
|
2021-06-28 10:14:00 +00:00
|
|
|
pub type GstWebRTCRTPReceiverClass = *mut _GstWebRTCRTPReceiverClass;
|
2018-03-15 10:18:06 +00:00
|
|
|
|
|
|
|
#[repr(C)]
|
2021-06-28 10:14:00 +00:00
|
|
|
pub struct _GstWebRTCRTPSenderClass(c_void);
|
2018-03-15 10:18:06 +00:00
|
|
|
|
2021-06-28 10:14:00 +00:00
|
|
|
pub type GstWebRTCRTPSenderClass = *mut _GstWebRTCRTPSenderClass;
|
2018-03-15 10:18:06 +00:00
|
|
|
|
|
|
|
#[repr(C)]
|
2021-06-28 10:14:00 +00:00
|
|
|
pub struct _GstWebRTCRTPTransceiverClass(c_void);
|
2018-03-15 10:18:06 +00:00
|
|
|
|
2021-06-28 10:14:00 +00:00
|
|
|
pub type GstWebRTCRTPTransceiverClass = *mut _GstWebRTCRTPTransceiverClass;
|
2018-03-15 10:18:06 +00:00
|
|
|
|
|
|
|
#[repr(C)]
|
|
|
|
#[derive(Copy, Clone)]
|
|
|
|
pub struct GstWebRTCSessionDescription {
|
|
|
|
pub type_: GstWebRTCSDPType,
|
|
|
|
pub sdp: *mut gst_sdp::GstSDPMessage,
|
|
|
|
}
|
|
|
|
|
|
|
|
impl ::std::fmt::Debug for GstWebRTCSessionDescription {
|
|
|
|
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
|
2021-05-23 16:27:13 +00:00
|
|
|
f.debug_struct(&format!("GstWebRTCSessionDescription @ {:p}", self))
|
|
|
|
.field("type_", &self.type_)
|
|
|
|
.field("sdp", &self.sdp)
|
|
|
|
.finish()
|
2018-03-15 10:18:06 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Classes
|
|
|
|
#[repr(C)]
|
2021-06-28 10:14:00 +00:00
|
|
|
pub struct GstWebRTCDTLSTransport(c_void);
|
2018-03-15 10:18:06 +00:00
|
|
|
|
|
|
|
impl ::std::fmt::Debug for GstWebRTCDTLSTransport {
|
|
|
|
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
|
2021-05-23 16:27:13 +00:00
|
|
|
f.debug_struct(&format!("GstWebRTCDTLSTransport @ {:p}", self))
|
2019-06-18 10:04:39 +00:00
|
|
|
.finish()
|
2018-03-15 10:18:06 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-06-03 09:00:25 +00:00
|
|
|
#[repr(C)]
|
2021-06-28 10:14:00 +00:00
|
|
|
pub struct GstWebRTCDataChannel(c_void);
|
2020-06-03 09:00:25 +00:00
|
|
|
|
|
|
|
impl ::std::fmt::Debug for GstWebRTCDataChannel {
|
|
|
|
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
|
2021-05-23 16:27:13 +00:00
|
|
|
f.debug_struct(&format!("GstWebRTCDataChannel @ {:p}", self))
|
2020-06-03 09:00:25 +00:00
|
|
|
.finish()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-03-15 10:18:06 +00:00
|
|
|
#[repr(C)]
|
2021-06-28 10:14:00 +00:00
|
|
|
pub struct GstWebRTCICETransport(c_void);
|
2018-03-15 10:18:06 +00:00
|
|
|
|
|
|
|
impl ::std::fmt::Debug for GstWebRTCICETransport {
|
|
|
|
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
|
2021-05-23 16:27:13 +00:00
|
|
|
f.debug_struct(&format!("GstWebRTCICETransport @ {:p}", self))
|
2019-06-18 10:04:39 +00:00
|
|
|
.finish()
|
2018-03-15 10:18:06 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#[repr(C)]
|
2021-06-28 10:14:00 +00:00
|
|
|
pub struct GstWebRTCRTPReceiver(c_void);
|
2018-03-15 10:18:06 +00:00
|
|
|
|
|
|
|
impl ::std::fmt::Debug for GstWebRTCRTPReceiver {
|
|
|
|
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
|
2021-05-23 16:27:13 +00:00
|
|
|
f.debug_struct(&format!("GstWebRTCRTPReceiver @ {:p}", self))
|
2019-06-18 10:04:39 +00:00
|
|
|
.finish()
|
2018-03-15 10:18:06 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#[repr(C)]
|
2021-06-28 10:14:00 +00:00
|
|
|
pub struct GstWebRTCRTPSender(c_void);
|
2018-03-15 10:18:06 +00:00
|
|
|
|
|
|
|
impl ::std::fmt::Debug for GstWebRTCRTPSender {
|
|
|
|
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
|
2021-05-23 16:27:13 +00:00
|
|
|
f.debug_struct(&format!("GstWebRTCRTPSender @ {:p}", self))
|
2019-06-18 10:04:39 +00:00
|
|
|
.finish()
|
2018-03-15 10:18:06 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#[repr(C)]
|
2021-06-28 10:14:00 +00:00
|
|
|
pub struct GstWebRTCRTPTransceiver(c_void);
|
2018-03-15 10:18:06 +00:00
|
|
|
|
|
|
|
impl ::std::fmt::Debug for GstWebRTCRTPTransceiver {
|
|
|
|
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
|
2021-05-23 16:27:13 +00:00
|
|
|
f.debug_struct(&format!("GstWebRTCRTPTransceiver @ {:p}", self))
|
2019-06-18 10:04:39 +00:00
|
|
|
.finish()
|
2018-03-15 10:18:06 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-10-15 10:28:02 +00:00
|
|
|
#[link(name = "gstwebrtc-1.0")]
|
2018-03-15 10:18:06 +00:00
|
|
|
extern "C" {
|
|
|
|
|
2019-04-23 12:32:33 +00:00
|
|
|
//=========================================================================
|
|
|
|
// GstWebRTCBundlePolicy
|
|
|
|
//=========================================================================
|
2020-11-27 13:37:24 +00:00
|
|
|
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
|
|
|
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
2019-04-23 12:32:33 +00:00
|
|
|
pub fn gst_webrtc_bundle_policy_get_type() -> GType;
|
|
|
|
|
2018-03-20 08:42:53 +00:00
|
|
|
//=========================================================================
|
|
|
|
// GstWebRTCDTLSSetup
|
|
|
|
//=========================================================================
|
|
|
|
pub fn gst_webrtc_dtls_setup_get_type() -> GType;
|
|
|
|
|
|
|
|
//=========================================================================
|
|
|
|
// GstWebRTCDTLSTransportState
|
|
|
|
//=========================================================================
|
|
|
|
pub fn gst_webrtc_dtls_transport_state_get_type() -> GType;
|
|
|
|
|
2019-04-23 12:32:33 +00:00
|
|
|
//=========================================================================
|
|
|
|
// GstWebRTCDataChannelState
|
|
|
|
//=========================================================================
|
2020-11-27 13:37:24 +00:00
|
|
|
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
|
|
|
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
2019-04-23 12:32:33 +00:00
|
|
|
pub fn gst_webrtc_data_channel_state_get_type() -> GType;
|
|
|
|
|
2018-09-06 15:24:20 +00:00
|
|
|
//=========================================================================
|
|
|
|
// GstWebRTCFECType
|
|
|
|
//=========================================================================
|
2020-11-27 13:37:24 +00:00
|
|
|
#[cfg(any(feature = "v1_14_1", feature = "dox"))]
|
|
|
|
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14_1")))]
|
2018-09-06 15:24:20 +00:00
|
|
|
pub fn gst_webrtc_fec_type_get_type() -> GType;
|
|
|
|
|
2018-03-20 08:42:53 +00:00
|
|
|
//=========================================================================
|
|
|
|
// GstWebRTCICEComponent
|
|
|
|
//=========================================================================
|
|
|
|
pub fn gst_webrtc_ice_component_get_type() -> GType;
|
|
|
|
|
|
|
|
//=========================================================================
|
|
|
|
// GstWebRTCICEConnectionState
|
|
|
|
//=========================================================================
|
|
|
|
pub fn gst_webrtc_ice_connection_state_get_type() -> GType;
|
|
|
|
|
|
|
|
//=========================================================================
|
|
|
|
// GstWebRTCICEGatheringState
|
|
|
|
//=========================================================================
|
|
|
|
pub fn gst_webrtc_ice_gathering_state_get_type() -> GType;
|
|
|
|
|
|
|
|
//=========================================================================
|
|
|
|
// GstWebRTCICERole
|
|
|
|
//=========================================================================
|
|
|
|
pub fn gst_webrtc_ice_role_get_type() -> GType;
|
|
|
|
|
2019-04-23 12:32:33 +00:00
|
|
|
//=========================================================================
|
|
|
|
// GstWebRTCICETransportPolicy
|
|
|
|
//=========================================================================
|
2020-11-27 13:37:24 +00:00
|
|
|
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
|
|
|
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
2019-04-23 12:32:33 +00:00
|
|
|
pub fn gst_webrtc_ice_transport_policy_get_type() -> GType;
|
|
|
|
|
2021-04-17 10:11:52 +00:00
|
|
|
//=========================================================================
|
|
|
|
// GstWebRTCKind
|
|
|
|
//=========================================================================
|
|
|
|
#[cfg(any(feature = "v1_20", feature = "dox"))]
|
|
|
|
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
|
|
|
|
pub fn gst_webrtc_kind_get_type() -> GType;
|
|
|
|
|
2018-03-20 08:42:53 +00:00
|
|
|
//=========================================================================
|
|
|
|
// GstWebRTCPeerConnectionState
|
|
|
|
//=========================================================================
|
|
|
|
pub fn gst_webrtc_peer_connection_state_get_type() -> GType;
|
|
|
|
|
2019-04-23 12:32:33 +00:00
|
|
|
//=========================================================================
|
|
|
|
// GstWebRTCPriorityType
|
|
|
|
//=========================================================================
|
2020-11-27 13:37:24 +00:00
|
|
|
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
|
|
|
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
2019-04-23 12:32:33 +00:00
|
|
|
pub fn gst_webrtc_priority_type_get_type() -> GType;
|
|
|
|
|
2018-03-20 08:42:53 +00:00
|
|
|
//=========================================================================
|
|
|
|
// GstWebRTCRTPTransceiverDirection
|
|
|
|
//=========================================================================
|
|
|
|
pub fn gst_webrtc_rtp_transceiver_direction_get_type() -> GType;
|
|
|
|
|
2019-04-23 12:32:33 +00:00
|
|
|
//=========================================================================
|
|
|
|
// GstWebRTCSCTPTransportState
|
|
|
|
//=========================================================================
|
2020-11-27 13:37:24 +00:00
|
|
|
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
|
|
|
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
2019-04-23 12:32:33 +00:00
|
|
|
pub fn gst_webrtc_sctp_transport_state_get_type() -> GType;
|
|
|
|
|
2018-03-20 08:42:53 +00:00
|
|
|
//=========================================================================
|
|
|
|
// GstWebRTCSDPType
|
|
|
|
//=========================================================================
|
|
|
|
pub fn gst_webrtc_sdp_type_get_type() -> GType;
|
|
|
|
pub fn gst_webrtc_sdp_type_to_string(type_: GstWebRTCSDPType) -> *const c_char;
|
|
|
|
|
|
|
|
//=========================================================================
|
|
|
|
// GstWebRTCSignalingState
|
|
|
|
//=========================================================================
|
|
|
|
pub fn gst_webrtc_signaling_state_get_type() -> GType;
|
|
|
|
|
|
|
|
//=========================================================================
|
|
|
|
// GstWebRTCStatsType
|
|
|
|
//=========================================================================
|
|
|
|
pub fn gst_webrtc_stats_type_get_type() -> GType;
|
|
|
|
|
2018-03-15 10:18:06 +00:00
|
|
|
//=========================================================================
|
|
|
|
// GstWebRTCSessionDescription
|
|
|
|
//=========================================================================
|
|
|
|
pub fn gst_webrtc_session_description_get_type() -> GType;
|
2019-06-18 10:04:39 +00:00
|
|
|
pub fn gst_webrtc_session_description_new(
|
|
|
|
type_: GstWebRTCSDPType,
|
|
|
|
sdp: *mut gst_sdp::GstSDPMessage,
|
|
|
|
) -> *mut GstWebRTCSessionDescription;
|
|
|
|
pub fn gst_webrtc_session_description_copy(
|
|
|
|
src: *const GstWebRTCSessionDescription,
|
|
|
|
) -> *mut GstWebRTCSessionDescription;
|
2018-03-15 10:18:06 +00:00
|
|
|
pub fn gst_webrtc_session_description_free(desc: *mut GstWebRTCSessionDescription);
|
|
|
|
|
|
|
|
//=========================================================================
|
|
|
|
// GstWebRTCDTLSTransport
|
|
|
|
//=========================================================================
|
|
|
|
pub fn gst_webrtc_dtls_transport_get_type() -> GType;
|
|
|
|
|
2020-06-03 09:00:25 +00:00
|
|
|
//=========================================================================
|
|
|
|
// GstWebRTCDataChannel
|
|
|
|
//=========================================================================
|
2020-11-27 13:37:24 +00:00
|
|
|
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
|
|
|
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
2020-06-03 09:00:25 +00:00
|
|
|
pub fn gst_webrtc_data_channel_get_type() -> GType;
|
2020-11-27 13:37:24 +00:00
|
|
|
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
|
|
|
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
2020-06-03 09:00:25 +00:00
|
|
|
pub fn gst_webrtc_data_channel_close(channel: *mut GstWebRTCDataChannel);
|
2020-11-27 13:37:24 +00:00
|
|
|
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
|
|
|
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
2020-06-03 09:00:25 +00:00
|
|
|
pub fn gst_webrtc_data_channel_send_data(
|
|
|
|
channel: *mut GstWebRTCDataChannel,
|
|
|
|
data: *mut glib::GBytes,
|
|
|
|
);
|
2020-11-27 13:37:24 +00:00
|
|
|
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
|
|
|
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
2020-06-03 09:00:25 +00:00
|
|
|
pub fn gst_webrtc_data_channel_send_string(
|
|
|
|
channel: *mut GstWebRTCDataChannel,
|
|
|
|
str: *const c_char,
|
|
|
|
);
|
|
|
|
|
2018-03-15 10:18:06 +00:00
|
|
|
//=========================================================================
|
|
|
|
// GstWebRTCICETransport
|
|
|
|
//=========================================================================
|
|
|
|
pub fn gst_webrtc_ice_transport_get_type() -> GType;
|
|
|
|
|
|
|
|
//=========================================================================
|
|
|
|
// GstWebRTCRTPReceiver
|
|
|
|
//=========================================================================
|
|
|
|
pub fn gst_webrtc_rtp_receiver_get_type() -> GType;
|
|
|
|
|
|
|
|
//=========================================================================
|
|
|
|
// GstWebRTCRTPSender
|
|
|
|
//=========================================================================
|
|
|
|
pub fn gst_webrtc_rtp_sender_get_type() -> GType;
|
2021-04-17 10:11:52 +00:00
|
|
|
#[cfg(any(feature = "v1_20", feature = "dox"))]
|
|
|
|
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
|
|
|
|
pub fn gst_webrtc_rtp_sender_set_priority(
|
2019-06-18 10:04:39 +00:00
|
|
|
sender: *mut GstWebRTCRTPSender,
|
2021-04-17 10:11:52 +00:00
|
|
|
priority: GstWebRTCPriorityType,
|
2019-06-18 10:04:39 +00:00
|
|
|
);
|
2018-03-15 10:18:06 +00:00
|
|
|
|
|
|
|
//=========================================================================
|
|
|
|
// GstWebRTCRTPTransceiver
|
|
|
|
//=========================================================================
|
|
|
|
pub fn gst_webrtc_rtp_transceiver_get_type() -> GType;
|
|
|
|
|
|
|
|
}
|