gstreamer-rs/gstreamer/src/auto/proxy_pad.rs

41 lines
1.1 KiB
Rust
Raw Normal View History

2018-04-23 17:34:22 +00:00
// This file was generated by gir (https://github.com/gtk-rs/gir)
// from gir-files (https://github.com/gtk-rs/gir-files)
2017-07-29 13:19:15 +00:00
// DO NOT EDIT
use Object;
use Pad;
use glib::object::IsA;
use glib::translate::*;
2019-03-19 07:40:05 +00:00
use gst_sys;
2017-07-29 13:19:15 +00:00
glib_wrapper! {
2019-03-19 07:40:05 +00:00
pub struct ProxyPad(Object<gst_sys::GstProxyPad, gst_sys::GstProxyPadClass, ProxyPadClass>) @extends Pad, Object;
2017-07-29 13:19:15 +00:00
match fn {
2019-03-19 07:40:05 +00:00
get_type => || gst_sys::gst_proxy_pad_get_type(),
2017-07-29 13:19:15 +00:00
}
}
impl ProxyPad {
2019-03-19 07:40:05 +00:00
//pub fn iterate_internal_links_default<P: IsA<Pad>, Q: IsA<Object>>(pad: &P, parent: Option<&Q>) -> /*Ignored*/Option<Iterator> {
// unsafe { TODO: call gst_sys:gst_proxy_pad_iterate_internal_links_default() }
//}
2017-07-29 13:19:15 +00:00
}
unsafe impl Send for ProxyPad {}
unsafe impl Sync for ProxyPad {}
2019-01-16 11:32:39 +00:00
pub const NONE_PROXY_PAD: Option<&ProxyPad> = None;
pub trait ProxyPadExt: 'static {
2017-07-29 13:19:15 +00:00
fn get_internal(&self) -> Option<ProxyPad>;
}
impl<O: IsA<ProxyPad>> ProxyPadExt for O {
fn get_internal(&self) -> Option<ProxyPad> {
unsafe {
2019-03-19 07:40:05 +00:00
from_glib_full(gst_sys::gst_proxy_pad_get_internal(self.as_ref().to_glib_none().0))
2017-07-29 13:19:15 +00:00
}
}
}