mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-09-28 23:02:16 +00:00
540062b97c
Using the same script as [1], called with: python3 add_doc_alias.py gstreamer*/**/src [1]: https://github.com/gtk-rs/gtk-rs-core/pull/83
28 lines
1,020 B
Rust
28 lines
1,020 B
Rust
// Take a look at the license at the top of the repository in the LICENSE file.
|
|
|
|
use crate::RTSPMediaFactory;
|
|
|
|
use glib::prelude::*;
|
|
#[cfg(any(feature = "v1_14", feature = "dox"))]
|
|
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
|
|
use glib::translate::*;
|
|
|
|
pub trait RTSPMediaFactoryExtManual: 'static {
|
|
#[cfg(any(feature = "v1_14", feature = "dox"))]
|
|
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
|
|
#[doc(alias = "gst_rtsp_media_factory_add_role_from_structure")]
|
|
fn add_role_from_structure(&self, structure: &gst::StructureRef);
|
|
}
|
|
|
|
impl<O: IsA<RTSPMediaFactory>> RTSPMediaFactoryExtManual for O {
|
|
#[cfg(any(feature = "v1_14", feature = "dox"))]
|
|
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
|
|
fn add_role_from_structure(&self, structure: &gst::StructureRef) {
|
|
unsafe {
|
|
ffi::gst_rtsp_media_factory_add_role_from_structure(
|
|
self.as_ref().to_glib_none().0,
|
|
structure.as_mut_ptr(),
|
|
);
|
|
}
|
|
}
|
|
}
|