mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-06-11 10:49:30 +00:00
827ff99965
In gir it was brought up [1] that some traits (in particular `*ExtManual`) are exported from the crate root in addition to the prelude, cluttering the environment unnecessarily. This commit removes all these reexports, leaving those in prelude (that were already there) only. After this commit everything matching `Ext(Manual)?\b` in `lib.rs` sits within `pub mod prelude {};`. [1]: https://github.com/gtk-rs/gir/pull/1111
63 lines
1.6 KiB
Rust
63 lines
1.6 KiB
Rust
// Take a look at the license at the top of the repository in the LICENSE file.
|
|
|
|
#![cfg_attr(feature = "dox", feature(doc_cfg))]
|
|
|
|
pub use ffi;
|
|
pub use gst;
|
|
pub use gst_base;
|
|
pub use gst_video;
|
|
|
|
macro_rules! assert_initialized_main_thread {
|
|
() => {
|
|
if unsafe { gst::ffi::gst_is_initialized() } != glib::ffi::GTRUE {
|
|
panic!("GStreamer has not been initialized. Call `gst::init` first.");
|
|
}
|
|
};
|
|
}
|
|
|
|
macro_rules! skip_assert_initialized {
|
|
() => {};
|
|
}
|
|
|
|
#[allow(clippy::unreadable_literal)]
|
|
#[allow(clippy::too_many_arguments)]
|
|
#[allow(clippy::match_same_arms)]
|
|
#[allow(unused_imports)]
|
|
mod auto;
|
|
pub use crate::auto::*;
|
|
|
|
mod caps_features;
|
|
pub use crate::caps_features::{CAPS_FEATURES_MEMORY_GL_MEMORY, CAPS_FEATURE_MEMORY_GL_MEMORY};
|
|
mod context;
|
|
mod gl_context;
|
|
mod gl_display;
|
|
pub use crate::gl_display::GL_DISPLAY_CONTEXT_TYPE;
|
|
mod gl_sync_meta;
|
|
mod gl_video_frame;
|
|
pub use crate::gl_sync_meta::*;
|
|
mod gl_base_memory;
|
|
pub use self::gl_base_memory::*;
|
|
mod gl_memory;
|
|
pub use crate::gl_memory::*;
|
|
|
|
// Re-export all the traits in a prelude module, so that applications
|
|
// can always "use gst::prelude::*" without getting conflicts
|
|
pub mod prelude {
|
|
#[doc(hidden)]
|
|
pub use glib::prelude::*;
|
|
#[doc(hidden)]
|
|
pub use gst::prelude::*;
|
|
#[doc(hidden)]
|
|
pub use gst_base::prelude::*;
|
|
#[doc(hidden)]
|
|
pub use gst_video::prelude::*;
|
|
|
|
pub use crate::auto::traits::*;
|
|
|
|
pub use crate::context::ContextGLExt;
|
|
pub use crate::gl_context::GLContextExtManual;
|
|
pub use crate::gl_video_frame::VideoFrameGLExt;
|
|
}
|
|
|
|
pub mod subclass;
|