gstreamer-rs/gstreamer-net/src/lib.rs

38 lines
874 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.
2017-12-16 12:48:29 +00:00
#![cfg_attr(docsrs, feature(doc_cfg))]
2021-07-30 19:23:46 +00:00
#![allow(clippy::missing_safety_doc)]
#![doc = include_str!("../README.md")]
pub use ffi;
pub use gio;
pub use gst;
2017-12-16 12:48:29 +00:00
macro_rules! assert_initialized_main_thread {
2018-04-01 08:30:03 +00:00
() => {
if !gst::INITIALIZED.load(std::sync::atomic::Ordering::SeqCst) {
gst::assert_initialized();
2017-12-16 12:48:29 +00:00
}
2018-04-01 08:30:03 +00:00
};
2017-12-16 12:48:29 +00:00
}
2020-03-22 14:18:47 +00:00
macro_rules! skip_assert_initialized {
() => {};
}
2017-12-16 12:48:29 +00:00
mod auto;
pub use crate::{auto::*, net_address_meta::*};
mod net_address_meta;
mod ptp_clock;
pub use ptp_clock::PtpStatisticsCallback;
2017-12-16 12:48:29 +00:00
// Re-export all the traits in a prelude module, so that applications
// can always "use gst_net::prelude::*" without getting conflicts
2017-12-16 12:48:29 +00:00
pub mod prelude {
#[doc(hidden)]
pub use gio::prelude::*;
#[doc(hidden)]
2017-12-16 12:48:29 +00:00
pub use gst::prelude::*;
}