2020-12-15 10:53:31 +00:00
|
|
|
// Take a look at the license at the top of the repository in the LICENSE file.
|
2018-02-09 02:30:08 +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 10:45:51 +00:00
|
|
|
pub use ffi;
|
2020-12-20 17:39:15 +00:00
|
|
|
pub use gio;
|
|
|
|
pub use glib;
|
|
|
|
pub use gst;
|
|
|
|
pub use gst_net;
|
|
|
|
pub use gst_rtsp;
|
|
|
|
pub use gst_sdp;
|
2018-02-09 02:30:08 +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();
|
2018-02-09 02:30:08 +00:00
|
|
|
}
|
2018-04-01 08:30:03 +00:00
|
|
|
};
|
2018-02-09 02:30:08 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
macro_rules! skip_assert_initialized {
|
2018-04-01 08:30:03 +00:00
|
|
|
() => {};
|
2018-02-09 02:30:08 +00:00
|
|
|
}
|
|
|
|
|
2019-02-28 08:32:13 +00:00
|
|
|
#[allow(clippy::type_complexity)]
|
2018-02-09 02:30:08 +00:00
|
|
|
mod auto;
|
2020-11-22 10:45:51 +00:00
|
|
|
pub use crate::auto::*;
|
2018-02-09 02:30:08 +00:00
|
|
|
|
2022-09-12 16:32:16 +00:00
|
|
|
#[cfg(feature = "serde")]
|
2022-05-05 10:40:07 +00:00
|
|
|
mod flag_serde;
|
|
|
|
|
2018-04-23 17:37:08 +00:00
|
|
|
mod rtsp_address_pool;
|
|
|
|
mod rtsp_auth;
|
|
|
|
mod rtsp_client;
|
|
|
|
mod rtsp_context;
|
2020-02-23 08:00:05 +00:00
|
|
|
mod rtsp_media;
|
2018-04-23 17:37:08 +00:00
|
|
|
mod rtsp_media_factory;
|
2022-02-18 11:21:10 +00:00
|
|
|
mod rtsp_onvif_media_factory;
|
2018-04-23 17:37:08 +00:00
|
|
|
mod rtsp_server;
|
2022-09-13 09:13:07 +00:00
|
|
|
mod rtsp_session;
|
2018-04-23 17:37:08 +00:00
|
|
|
mod rtsp_session_pool;
|
2020-02-23 07:58:54 +00:00
|
|
|
mod rtsp_thread;
|
2018-04-23 17:37:08 +00:00
|
|
|
mod rtsp_token;
|
2018-02-09 02:30:08 +00:00
|
|
|
|
2020-02-23 08:00:05 +00:00
|
|
|
pub mod subclass;
|
|
|
|
|
2023-01-03 18:58:25 +00:00
|
|
|
pub use crate::{rtsp_context::*, rtsp_thread::*, rtsp_token::*};
|
2020-11-22 10:45:51 +00:00
|
|
|
|
2023-01-15 18:38:13 +00:00
|
|
|
pub static RTSP_ADDRESS_POOL_ANY_IPV4: &glib::GStr =
|
|
|
|
unsafe { glib::GStr::from_utf8_with_nul_unchecked(ffi::GST_RTSP_ADDRESS_POOL_ANY_IPV4) };
|
|
|
|
pub static RTSP_ADDRESS_POOL_ANY_IPV6: &glib::GStr =
|
|
|
|
unsafe { glib::GStr::from_utf8_with_nul_unchecked(ffi::GST_RTSP_ADDRESS_POOL_ANY_IPV6) };
|
|
|
|
pub static RTSP_AUTH_CHECK_CONNECT: &glib::GStr =
|
|
|
|
unsafe { glib::GStr::from_utf8_with_nul_unchecked(ffi::GST_RTSP_AUTH_CHECK_CONNECT) };
|
|
|
|
pub static RTSP_AUTH_CHECK_MEDIA_FACTORY_ACCESS: &glib::GStr = unsafe {
|
|
|
|
glib::GStr::from_utf8_with_nul_unchecked(ffi::GST_RTSP_AUTH_CHECK_MEDIA_FACTORY_ACCESS)
|
|
|
|
};
|
|
|
|
pub static RTSP_AUTH_CHECK_MEDIA_FACTORY_CONSTRUCT: &glib::GStr = unsafe {
|
|
|
|
glib::GStr::from_utf8_with_nul_unchecked(ffi::GST_RTSP_AUTH_CHECK_MEDIA_FACTORY_CONSTRUCT)
|
|
|
|
};
|
|
|
|
pub static RTSP_AUTH_CHECK_TRANSPORT_CLIENT_SETTINGS: &glib::GStr = unsafe {
|
|
|
|
glib::GStr::from_utf8_with_nul_unchecked(ffi::GST_RTSP_AUTH_CHECK_TRANSPORT_CLIENT_SETTINGS)
|
|
|
|
};
|
|
|
|
pub static RTSP_AUTH_CHECK_URL: &glib::GStr =
|
|
|
|
unsafe { glib::GStr::from_utf8_with_nul_unchecked(ffi::GST_RTSP_AUTH_CHECK_URL) };
|
|
|
|
pub static RTSP_PERM_MEDIA_FACTORY_ACCESS: &glib::GStr =
|
|
|
|
unsafe { glib::GStr::from_utf8_with_nul_unchecked(ffi::GST_RTSP_PERM_MEDIA_FACTORY_ACCESS) };
|
|
|
|
pub static RTSP_PERM_MEDIA_FACTORY_CONSTRUCT: &glib::GStr =
|
|
|
|
unsafe { glib::GStr::from_utf8_with_nul_unchecked(ffi::GST_RTSP_PERM_MEDIA_FACTORY_CONSTRUCT) };
|
|
|
|
pub static RTSP_TOKEN_MEDIA_FACTORY_ROLE: &glib::GStr =
|
|
|
|
unsafe { glib::GStr::from_utf8_with_nul_unchecked(ffi::GST_RTSP_TOKEN_MEDIA_FACTORY_ROLE) };
|
|
|
|
pub static RTSP_TOKEN_TRANSPORT_CLIENT_SETTINGS: &glib::GStr = unsafe {
|
|
|
|
glib::GStr::from_utf8_with_nul_unchecked(ffi::GST_RTSP_TOKEN_TRANSPORT_CLIENT_SETTINGS)
|
|
|
|
};
|
2018-02-15 15:03:31 +00:00
|
|
|
|
2018-02-09 02:30:08 +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_rtsp_server::prelude::*" without getting conflicts
|
2018-02-09 02:30:08 +00:00
|
|
|
pub mod prelude {
|
2020-12-20 17:39:15 +00:00
|
|
|
#[doc(hidden)]
|
|
|
|
pub use gio::prelude::*;
|
|
|
|
#[doc(hidden)]
|
|
|
|
pub use gst_net::prelude::*;
|
|
|
|
#[doc(hidden)]
|
|
|
|
pub use gst_rtsp::prelude::*;
|
2018-02-09 02:30:08 +00:00
|
|
|
|
2023-01-03 18:58:25 +00:00
|
|
|
pub use crate::{
|
|
|
|
auto::traits::*, rtsp_address_pool::RTSPAddressPoolExtManual, rtsp_auth::RTSPAuthExtManual,
|
|
|
|
rtsp_client::RTSPClientExtManual, rtsp_media::RTSPMediaExtManual,
|
|
|
|
rtsp_media_factory::RTSPMediaFactoryExtManual,
|
|
|
|
rtsp_onvif_media_factory::RTSPOnvifMediaFactoryExtManual, rtsp_server::RTSPServerExtManual,
|
|
|
|
rtsp_session::RTSPSessionExtManual, rtsp_session_pool::RTSPSessionPoolExtManual,
|
|
|
|
};
|
2018-02-09 02:30:08 +00:00
|
|
|
}
|