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
|
|
|
|
2020-11-27 13:37:49 +00:00
|
|
|
#![cfg_attr(feature = "dox", feature(doc_cfg))]
|
2021-07-30 19:23:46 +00:00
|
|
|
#![allow(clippy::missing_safety_doc)]
|
2021-07-30 16:03:12 +00:00
|
|
|
#![doc = include_str!("../README.md")]
|
2020-11-18 12:48:41 +00:00
|
|
|
|
2020-11-22 09:49:31 +00:00
|
|
|
pub use ffi;
|
2020-12-20 17:39:15 +00:00
|
|
|
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
|
|
|
() => {
|
2022-06-27 07:28:28 +00:00
|
|
|
if !gst::INITIALIZED.load(std::sync::atomic::Ordering::SeqCst) {
|
2023-01-05 14:40:15 +00:00
|
|
|
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;
|
2023-01-03 18:58:25 +00:00
|
|
|
pub use crate::{auto::*, net_address_meta::*};
|
2019-02-01 12:36:52 +00:00
|
|
|
mod net_address_meta;
|
|
|
|
|
2022-05-11 11:19:50 +00:00
|
|
|
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
|
2021-04-27 07:30:13 +00:00
|
|
|
// can always "use gst_net::prelude::*" without getting conflicts
|
2017-12-16 12:48:29 +00:00
|
|
|
pub mod prelude {
|
2020-12-20 17:39:15 +00:00
|
|
|
#[doc(hidden)]
|
|
|
|
pub use gio::prelude::*;
|
|
|
|
#[doc(hidden)]
|
2017-12-16 12:48:29 +00:00
|
|
|
pub use gst::prelude::*;
|
|
|
|
}
|