mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-11-26 19:41:09 +00:00
gstreamer: Add support for implementing gst::Preset interface
This commit is contained in:
parent
fc0fc99d1c
commit
eda3539330
2 changed files with 25 additions and 0 deletions
|
@ -31,6 +31,7 @@ pub mod pipeline;
|
|||
pub mod device;
|
||||
pub mod device_provider;
|
||||
|
||||
pub mod preset;
|
||||
pub mod uri_handler;
|
||||
|
||||
pub mod prelude {
|
||||
|
@ -44,6 +45,7 @@ pub mod prelude {
|
|||
pub use super::ghost_pad::GhostPadImpl;
|
||||
pub use super::pad::{PadImpl, PadImplExt};
|
||||
pub use super::pipeline::PipelineImpl;
|
||||
pub use super::preset::PresetImpl;
|
||||
pub use super::uri_handler::URIHandlerImpl;
|
||||
pub use super::PanicPoison;
|
||||
pub use glib::subclass::prelude::*;
|
||||
|
|
23
gstreamer/src/subclass/preset.rs
Normal file
23
gstreamer/src/subclass/preset.rs
Normal 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,
|
||||
) {
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue