gstreamer: Add support for implementing gst::Preset interface

This commit is contained in:
Sebastian Dröge 2019-09-25 16:11:54 +03:00
parent fc0fc99d1c
commit eda3539330
2 changed files with 25 additions and 0 deletions

View file

@ -31,6 +31,7 @@ pub mod pipeline;
pub mod device; pub mod device;
pub mod device_provider; pub mod device_provider;
pub mod preset;
pub mod uri_handler; pub mod uri_handler;
pub mod prelude { pub mod prelude {
@ -44,6 +45,7 @@ pub mod prelude {
pub use super::ghost_pad::GhostPadImpl; pub use super::ghost_pad::GhostPadImpl;
pub use super::pad::{PadImpl, PadImplExt}; pub use super::pad::{PadImpl, PadImplExt};
pub use super::pipeline::PipelineImpl; pub use super::pipeline::PipelineImpl;
pub use super::preset::PresetImpl;
pub use super::uri_handler::URIHandlerImpl; pub use super::uri_handler::URIHandlerImpl;
pub use super::PanicPoison; pub use super::PanicPoison;
pub use glib::subclass::prelude::*; pub use glib::subclass::prelude::*;

View file

@ -0,0 +1,23 @@
// Copyright (C) 2019 Sebastian Dröge <sebastian@centricular.com>
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
use glib_sys;
use glib::subclass::prelude::*;
use Preset;
pub trait PresetImpl: super::element::ElementImpl + Send + Sync + 'static {}
unsafe impl<T: ObjectSubclass + PresetImpl> IsImplementable<T> for Preset {
unsafe extern "C" fn interface_init(
_iface: glib_sys::gpointer,
_iface_data: glib_sys::gpointer,
) {
}
}