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

45 lines
1 KiB
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;
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 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)]
2021-04-29 20:06:11 +00:00
#[allow(clippy::use_self)]
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_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::*;
pub use crate::auto::traits::*;
2017-12-16 12:48:29 +00:00
}