mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-05-15 14:52:44 +00:00
70d95dca4c
Co-authored-by: Thibault Saunier <tsaunier@igalia.com>
43 lines
1.3 KiB
Rust
43 lines
1.3 KiB
Rust
// 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::Monitor;
|
|
use crate::Reporter;
|
|
use crate::Runner;
|
|
use glib::object::IsA;
|
|
use glib::translate::*;
|
|
|
|
glib::wrapper! {
|
|
#[doc(alias = "GstValidateElementMonitor")]
|
|
pub struct ElementMonitor(Object<ffi::GstValidateElementMonitor, ffi::GstValidateElementMonitorClass>) @extends Monitor, gst::Object, @implements Reporter;
|
|
|
|
match fn {
|
|
type_ => || ffi::gst_validate_element_monitor_get_type(),
|
|
}
|
|
}
|
|
|
|
impl ElementMonitor {
|
|
pub const NONE: Option<&'static ElementMonitor> = None;
|
|
|
|
#[doc(alias = "gst_validate_element_monitor_new")]
|
|
pub fn new(
|
|
element: &impl IsA<gst::Element>,
|
|
runner: &impl IsA<Runner>,
|
|
parent: Option<&impl IsA<Monitor>>,
|
|
) -> ElementMonitor {
|
|
skip_assert_initialized!();
|
|
unsafe {
|
|
from_glib_full(ffi::gst_validate_element_monitor_new(
|
|
element.as_ref().to_glib_none().0,
|
|
runner.as_ref().to_glib_none().0,
|
|
parent.map(|p| p.as_ref()).to_glib_none().0,
|
|
))
|
|
}
|
|
}
|
|
}
|
|
|
|
unsafe impl Send for ElementMonitor {}
|
|
unsafe impl Sync for ElementMonitor {}
|