Files
client-sdk-rust/webrtc-sys/src/lib.rs
T
Théo MonnomandGitHub 1610f86316 feat: basic ffi server to support other languages (#34)
* wip

* wip

* wip

* wip

not a fan of the way I do handles ..

* errors and async semantic

* fix example
2023-01-25 00:09:19 +01:00

31 lines
673 B
Rust

pub mod candidate;
pub mod data_channel;
pub mod jsep;
pub mod media_stream;
pub mod peer_connection;
pub mod peer_connection_factory;
pub mod rtc_error;
pub mod rtp_receiver;
pub mod rtp_transceiver;
pub mod video_frame;
pub mod video_frame_buffer;
pub mod webrtc;
pub mod yuv_helper;
pub const MEDIA_TYPE_VIDEO: &str = "video";
pub const MEDIA_TYPE_AUDIO: &str = "audio";
pub const MEDIA_TYPE_DATA: &str = "data";
macro_rules! impl_thread_safety {
($obj:ty, Send) => {
unsafe impl Send for $obj {}
};
($obj:ty, Send + Sync) => {
unsafe impl Send for $obj {}
unsafe impl Sync for $obj {}
};
}
pub(crate) use impl_thread_safety;