gstreamer_rtsp_server/
rtsp_onvif_media_factory.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// Take a look at the license at the top of the repository in the LICENSE file.

use glib::{prelude::*, translate::*};

use crate::{ffi, RTSPContext, RTSPOnvifMediaFactory};

pub trait RTSPOnvifMediaFactoryExtManual: IsA<RTSPOnvifMediaFactory> + 'static {
    #[doc(alias = "gst_rtsp_onvif_media_factory_requires_backchannel")]
    fn requires_backchannel(&self, ctx: &RTSPContext) -> bool {
        skip_assert_initialized!();
        unsafe {
            from_glib(ffi::gst_rtsp_onvif_media_factory_requires_backchannel(
                self.as_ref()
                    .upcast_ref::<crate::RTSPMediaFactory>()
                    .to_glib_none()
                    .0,
                ctx.to_glib_none().0,
            ))
        }
    }
}

impl<O: IsA<RTSPOnvifMediaFactory>> RTSPOnvifMediaFactoryExtManual for O {}