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)]
|
2022-01-13 21:12:53 +00:00
|
|
|
#![allow(clippy::non_send_fields_in_send_ty)]
|
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
|
|
|
() => {
|
2020-11-22 09:49:31 +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 {
|
|
|
|
() => {};
|
|
|
|
}
|
|
|
|
|
2019-02-28 08:32:13 +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)]
|
2021-11-06 17:09:27 +00:00
|
|
|
#[allow(unused_imports)]
|
2017-12-16 12:48:29 +00:00
|
|
|
mod auto;
|
2020-11-22 09:49:31 +00:00
|
|
|
pub use crate::auto::*;
|
2018-03-15 08:12:01 +00:00
|
|
|
mod net_client_clock;
|
2018-05-09 09:20:59 +00:00
|
|
|
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
|
|
|
|
2020-11-22 09:49:31 +00:00
|
|
|
pub use crate::net_address_meta::*;
|
2019-02-01 12:36:52 +00:00
|
|
|
mod net_address_meta;
|
|
|
|
|
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::*;
|
|
|
|
}
|