BlueGit

ict rusty-teams

Files

rusty-teams / vendor / webrtc-sys / src / lib.rs

lib.rs

lib.rs 1.7 KiB Download Raw
1// Copyright 2025 LiveKit, Inc.
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15#[cfg(target_os = "android")]
16pub mod android;
17pub mod apm;
18pub mod noise_hook;
19pub mod audio_device_controller;
20pub mod audio_mixer;
21pub mod audio_resampler;
22pub mod audio_track;
23pub mod candidate;
24pub mod data_channel;
25#[cfg(any(target_os = "macos", target_os = "windows", target_os = "linux"))]
26pub mod desktop_capturer;
27pub mod frame_cryptor;
28pub mod helper;
29pub mod jsep;
30pub mod media_stream;
31pub mod media_stream_track;
32pub mod packet_trailer;
33pub mod peer_connection;
34pub mod peer_connection_factory;
35pub mod prohibit_libsrtp_initialization;
36pub mod rtc_error;
37pub mod rtp_parameters;
38pub mod rtp_receiver;
39pub mod rtp_sender;
40pub mod rtp_transceiver;
41pub mod video_frame;
42pub mod video_frame_buffer;
43pub mod video_track;
44pub mod webrtc;
45pub mod yuv_helper;
46
47pub const MEDIA_TYPE_VIDEO: &str = "video";
48pub const MEDIA_TYPE_AUDIO: &str = "audio";
49pub const MEDIA_TYPE_DATA: &str = "data";
50
51macro_rules! impl_thread_safety {
52 ($obj:ty, Send) => {
53 unsafe impl Send for $obj {}
54 };
55
56 ($obj:ty, Send + Sync) => {
57 unsafe impl Send for $obj {}
58 unsafe impl Sync for $obj {}
59 };
60}
61
62pub(crate) use impl_thread_safety;