2022-02-28 11:03:21 +00:00
|
|
|
// This file was generated by gir (https://github.com/gtk-rs/gir)
|
|
|
|
// from gir-files (https://github.com/gtk-rs/gir-files)
|
|
|
|
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git)
|
|
|
|
// DO NOT EDIT
|
|
|
|
|
|
|
|
use crate::ElementMonitor;
|
|
|
|
use crate::Monitor;
|
|
|
|
use crate::Reporter;
|
|
|
|
use crate::Runner;
|
|
|
|
use glib::object::IsA;
|
|
|
|
use glib::translate::*;
|
|
|
|
|
|
|
|
glib::wrapper! {
|
|
|
|
#[doc(alias = "GstValidatePadMonitor")]
|
|
|
|
pub struct PadMonitor(Object<ffi::GstValidatePadMonitor, ffi::GstValidatePadMonitorClass>) @extends Monitor, gst::Object, @implements Reporter;
|
|
|
|
|
|
|
|
match fn {
|
|
|
|
type_ => || ffi::gst_validate_pad_monitor_get_type(),
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
impl PadMonitor {
|
|
|
|
pub const NONE: Option<&'static PadMonitor> = None;
|
|
|
|
|
|
|
|
#[doc(alias = "gst_validate_pad_monitor_new")]
|
|
|
|
pub fn new(
|
|
|
|
pad: &impl IsA<gst::Pad>,
|
|
|
|
runner: &impl IsA<Runner>,
|
2022-08-31 18:29:08 +00:00
|
|
|
parent: Option<&impl IsA<ElementMonitor>>,
|
2022-02-28 11:03:21 +00:00
|
|
|
) -> PadMonitor {
|
|
|
|
skip_assert_initialized!();
|
|
|
|
unsafe {
|
2022-08-31 18:29:08 +00:00
|
|
|
from_glib_full(ffi::gst_validate_pad_monitor_new(
|
2022-02-28 11:03:21 +00:00
|
|
|
pad.as_ref().to_glib_none().0,
|
|
|
|
runner.as_ref().to_glib_none().0,
|
2022-08-31 18:29:08 +00:00
|
|
|
parent.map(|p| p.as_ref()).to_glib_none().0,
|
2022-02-28 11:03:21 +00:00
|
|
|
))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
unsafe impl Send for PadMonitor {}
|
|
|
|
unsafe impl Sync for PadMonitor {}
|