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)
|
2021-04-01 13:58:41 +00:00
|
|
|
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git)
|
2018-02-19 20:15:52 +00:00
|
|
|
// DO NOT EDIT
|
|
|
|
|
|
|
|
use glib::object::IsA;
|
|
|
|
use glib::translate::*;
|
|
|
|
|
2020-12-17 22:34:53 +00:00
|
|
|
glib::wrapper! {
|
2020-11-22 10:08:08 +00:00
|
|
|
pub struct DiscovererStreamInfo(Object<ffi::GstDiscovererStreamInfo>);
|
2018-02-19 20:15:52 +00:00
|
|
|
|
|
|
|
match fn {
|
2021-04-19 19:55:01 +00:00
|
|
|
type_ => || ffi::gst_discoverer_stream_info_get_type(),
|
2018-02-19 20:15:52 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
unsafe impl Send for DiscovererStreamInfo {}
|
|
|
|
unsafe impl Sync for DiscovererStreamInfo {}
|
|
|
|
|
2019-01-16 11:32:39 +00:00
|
|
|
pub const NONE_DISCOVERER_STREAM_INFO: Option<&DiscovererStreamInfo> = None;
|
|
|
|
|
2018-12-08 09:05:20 +00:00
|
|
|
pub trait DiscovererStreamInfoExt: 'static {
|
2020-12-08 13:00:17 +00:00
|
|
|
#[doc(alias = "gst_discoverer_stream_info_get_caps")]
|
2021-04-11 19:38:18 +00:00
|
|
|
fn caps(&self) -> Option<gst::Caps>;
|
2018-02-19 20:15:52 +00:00
|
|
|
|
2020-12-08 13:00:17 +00:00
|
|
|
#[doc(alias = "gst_discoverer_stream_info_get_misc")]
|
2021-04-11 19:38:18 +00:00
|
|
|
fn misc(&self) -> Option<gst::Structure>;
|
2018-02-19 20:15:52 +00:00
|
|
|
|
2020-12-08 13:00:17 +00:00
|
|
|
#[doc(alias = "gst_discoverer_stream_info_get_next")]
|
2021-04-11 19:38:18 +00:00
|
|
|
fn next(&self) -> Option<DiscovererStreamInfo>;
|
2018-02-19 20:15:52 +00:00
|
|
|
|
2020-12-08 13:00:17 +00:00
|
|
|
#[doc(alias = "gst_discoverer_stream_info_get_previous")]
|
2021-04-11 19:38:18 +00:00
|
|
|
fn previous(&self) -> Option<DiscovererStreamInfo>;
|
2018-02-19 20:15:52 +00:00
|
|
|
|
2020-12-08 13:00:17 +00:00
|
|
|
#[doc(alias = "gst_discoverer_stream_info_get_stream_id")]
|
2021-04-11 19:38:18 +00:00
|
|
|
fn stream_id(&self) -> Option<glib::GString>;
|
2018-02-19 20:15:52 +00:00
|
|
|
|
2020-12-08 13:00:17 +00:00
|
|
|
#[doc(alias = "gst_discoverer_stream_info_get_stream_type_nick")]
|
2021-04-11 19:38:18 +00:00
|
|
|
fn stream_type_nick(&self) -> glib::GString;
|
2018-02-19 20:15:52 +00:00
|
|
|
|
2020-12-08 13:00:17 +00:00
|
|
|
#[doc(alias = "gst_discoverer_stream_info_get_tags")]
|
2021-04-11 19:38:18 +00:00
|
|
|
fn tags(&self) -> Option<gst::TagList>;
|
2018-02-19 20:15:52 +00:00
|
|
|
|
2020-12-08 13:00:17 +00:00
|
|
|
#[doc(alias = "gst_discoverer_stream_info_get_toc")]
|
2021-04-11 19:38:18 +00:00
|
|
|
fn toc(&self) -> Option<gst::Toc>;
|
2018-02-19 20:15:52 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
impl<O: IsA<DiscovererStreamInfo>> DiscovererStreamInfoExt for O {
|
2021-04-11 19:38:18 +00:00
|
|
|
fn caps(&self) -> Option<gst::Caps> {
|
2018-02-19 20:15:52 +00:00
|
|
|
unsafe {
|
2020-11-22 10:08:08 +00:00
|
|
|
from_glib_full(ffi::gst_discoverer_stream_info_get_caps(
|
2019-06-18 10:12:00 +00:00
|
|
|
self.as_ref().to_glib_none().0,
|
|
|
|
))
|
2018-02-19 20:15:52 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-04-11 19:38:18 +00:00
|
|
|
fn misc(&self) -> Option<gst::Structure> {
|
2018-02-19 20:15:52 +00:00
|
|
|
unsafe {
|
2020-11-22 10:08:08 +00:00
|
|
|
from_glib_none(ffi::gst_discoverer_stream_info_get_misc(
|
2019-06-18 10:12:00 +00:00
|
|
|
self.as_ref().to_glib_none().0,
|
|
|
|
))
|
2018-02-19 20:15:52 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-04-11 19:38:18 +00:00
|
|
|
fn next(&self) -> Option<DiscovererStreamInfo> {
|
2018-02-19 20:15:52 +00:00
|
|
|
unsafe {
|
2020-11-22 10:08:08 +00:00
|
|
|
from_glib_full(ffi::gst_discoverer_stream_info_get_next(
|
2019-06-18 10:12:00 +00:00
|
|
|
self.as_ref().to_glib_none().0,
|
|
|
|
))
|
2018-02-19 20:15:52 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-04-11 19:38:18 +00:00
|
|
|
fn previous(&self) -> Option<DiscovererStreamInfo> {
|
2018-02-19 20:15:52 +00:00
|
|
|
unsafe {
|
2020-11-22 10:08:08 +00:00
|
|
|
from_glib_full(ffi::gst_discoverer_stream_info_get_previous(
|
2019-06-18 10:12:00 +00:00
|
|
|
self.as_ref().to_glib_none().0,
|
|
|
|
))
|
2018-02-19 20:15:52 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-04-11 19:38:18 +00:00
|
|
|
fn stream_id(&self) -> Option<glib::GString> {
|
2018-02-19 20:15:52 +00:00
|
|
|
unsafe {
|
2020-11-22 10:08:08 +00:00
|
|
|
from_glib_none(ffi::gst_discoverer_stream_info_get_stream_id(
|
2019-06-18 10:12:00 +00:00
|
|
|
self.as_ref().to_glib_none().0,
|
|
|
|
))
|
2018-02-19 20:15:52 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-04-11 19:38:18 +00:00
|
|
|
fn stream_type_nick(&self) -> glib::GString {
|
2018-02-19 20:15:52 +00:00
|
|
|
unsafe {
|
2020-11-22 10:08:08 +00:00
|
|
|
from_glib_none(ffi::gst_discoverer_stream_info_get_stream_type_nick(
|
|
|
|
self.as_ref().to_glib_none().0,
|
|
|
|
))
|
2018-02-19 20:15:52 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-04-11 19:38:18 +00:00
|
|
|
fn tags(&self) -> Option<gst::TagList> {
|
2018-02-19 20:15:52 +00:00
|
|
|
unsafe {
|
2020-11-22 10:08:08 +00:00
|
|
|
from_glib_none(ffi::gst_discoverer_stream_info_get_tags(
|
2019-06-18 10:12:00 +00:00
|
|
|
self.as_ref().to_glib_none().0,
|
|
|
|
))
|
2018-02-19 20:15:52 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-04-11 19:38:18 +00:00
|
|
|
fn toc(&self) -> Option<gst::Toc> {
|
2018-02-19 20:15:52 +00:00
|
|
|
unsafe {
|
2020-11-22 10:08:08 +00:00
|
|
|
from_glib_none(ffi::gst_discoverer_stream_info_get_toc(
|
2019-06-18 10:12:00 +00:00
|
|
|
self.as_ref().to_glib_none().0,
|
|
|
|
))
|
2018-02-19 20:15:52 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|