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

41 lines
986 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(feature = "dox", feature(doc_cfg))]
pub use ffi;
2017-12-16 12:48:29 +00:00
macro_rules! assert_initialized_main_thread {
2018-04-01 08:30:03 +00:00
() => {
if unsafe { gst::ffi::gst_is_initialized() } != glib::ffi::GTRUE {
2017-12-16 12:48:29 +00:00
panic!("GStreamer has not been initialized. Call `gst::init` first.");
}
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 {
() => {};
}
#[allow(clippy::unreadable_literal)]
#[allow(clippy::too_many_arguments)]
#[allow(clippy::match_same_arms)]
#[allow(unused_imports)]
2017-12-16 12:48:29 +00:00
mod auto;
pub use crate::auto::*;
2018-03-15 08:12:01 +00:00
mod net_client_clock;
mod net_time_provider;
2018-03-15 08:12:01 +00:00
mod ntp_clock;
mod ptp_clock;
2017-12-16 12:48:29 +00:00
pub use crate::net_address_meta::*;
mod net_address_meta;
2017-12-16 12:48:29 +00:00
// Re-export all the traits in a prelude module, so that applications
// can always "use gst::prelude::*" without getting conflicts
pub mod prelude {
pub use glib::prelude::*;
pub use gst::prelude::*;
pub use crate::auto::traits::*;
2017-12-16 12:48:29 +00:00
}