gstreamer-rs/gstreamer-webrtc/src/lib.rs

41 lines
1,005 B
Rust
Raw Normal View History

2020-12-15 10:53:31 +00:00
// Take a look at the license at the top of the repository in the LICENSE file.
2018-03-15 16:04:49 +00:00
#![cfg_attr(feature = "dox", feature(doc_cfg))]
#![doc = include_str!("../README.md")]
pub use ffi;
pub use glib;
pub use gst;
pub use gst_sdp;
2018-03-15 16:04:49 +00:00
macro_rules! assert_initialized_main_thread {
() => {
if unsafe { gst::ffi::gst_is_initialized() } != glib::ffi::GTRUE {
2018-03-15 16:04:49 +00:00
panic!("GStreamer has not been initialized. Call `gst::init` first.");
}
};
2018-03-15 16:04:49 +00:00
}
macro_rules! skip_assert_initialized {
() => {};
2018-03-15 16:04:49 +00:00
}
#[allow(clippy::unreadable_literal)]
#[allow(clippy::too_many_arguments)]
#[allow(clippy::match_same_arms)]
2021-04-29 20:06:11 +00:00
#[allow(clippy::use_self)]
#[allow(clippy::needless_borrow)]
2018-03-15 16:04:49 +00:00
mod auto;
pub use crate::auto::*;
2018-03-15 16:04:49 +00:00
mod web_rtc_session_description;
2018-04-05 17:53:54 +00:00
2018-03-15 16:04:49 +00:00
// Re-export all the traits in a prelude module, so that applications
// can always "use gst_webrtc::prelude::*" without getting conflicts
2018-03-15 16:04:49 +00:00
pub mod prelude {
#[doc(hidden)]
pub use gst_sdp::prelude::*;
2018-03-15 16:04:49 +00:00
pub use crate::auto::traits::*;
2018-03-15 16:04:49 +00:00
}