Files
client-sdk-rust/crates/livekit-webrtc/libwebrtc-sys/src/webrtc.rs
T
2022-09-25 13:54:56 +02:00

16 lines
311 B
Rust

use cxx::UniquePtr;
#[cxx::bridge(namespace = "livekit")]
pub mod ffi {
unsafe extern "C++" {
include!("livekit/webrtc.h");
type RTCRuntime;
fn create_rtc_runtime() -> UniquePtr<RTCRuntime>;
}
}
unsafe impl Send for ffi::RTCRuntime {}
unsafe impl Sync for ffi::RTCRuntime {}