Rename ObjectClassStruct to ObjectClass

This commit is contained in:
Sebastian Dröge 2017-09-25 13:49:53 +03:00
parent cd23c993ae
commit f322395918
4 changed files with 5 additions and 5 deletions

View file

@ -115,7 +115,7 @@ unsafe impl BaseSinkClass<RsBaseSink> for gst_base_ffi::GstBaseSinkClass {}
unsafe impl BaseSinkClass<RsBaseSink> for RsBaseSinkClass {}
unsafe impl ElementClass<RsBaseSink> for gst_base_ffi::GstBaseSinkClass {}
unsafe impl ElementClass<RsBaseSink> for RsBaseSinkClass {}
unsafe impl ObjectClassStruct for gst_base_ffi::GstBaseSinkClass {}
unsafe impl ObjectClass for gst_base_ffi::GstBaseSinkClass {}
// FIXME: Boilerplate
impl BaseSinkImpl for Box<BaseSinkImpl> {

View file

@ -151,7 +151,7 @@ unsafe impl BaseSrcClass<RsBaseSrc> for gst_base_ffi::GstBaseSrcClass {}
unsafe impl BaseSrcClass<RsBaseSrc> for RsBaseSrcClass {}
unsafe impl ElementClass<RsBaseSrc> for gst_base_ffi::GstBaseSrcClass {}
unsafe impl ElementClass<RsBaseSrc> for RsBaseSrcClass {}
unsafe impl ObjectClassStruct for gst_base_ffi::GstBaseSrcClass {}
unsafe impl ObjectClass for gst_base_ffi::GstBaseSrcClass {}
// FIXME: Boilerplate
impl BaseSrcImpl for Box<BaseSrcImpl> {

View file

@ -118,7 +118,7 @@ pub type RsElementClass = ClassStruct<RsElement>;
// FIXME: Boilerplate
unsafe impl ElementClass<RsElement> for RsElementClass {}
unsafe impl ElementClass<RsElement> for gst_ffi::GstElementClass {}
unsafe impl ObjectClassStruct for gst_ffi::GstElementClass {}
unsafe impl ObjectClass for gst_ffi::GstElementClass {}
// FIXME: Boilerplate
impl ObjectImpl for Box<ElementImpl> {

View file

@ -106,7 +106,7 @@ impl<T: ObjectType> ClassStruct<T> {
}
}
pub unsafe trait ObjectClassStruct {
pub unsafe trait ObjectClass {
fn install_properties(&mut self, properties: &[Property]) {
if properties.is_empty() {
return;
@ -233,7 +233,7 @@ pub unsafe trait ObjectClassStruct {
}
}
unsafe impl<T: ObjectType> ObjectClassStruct for ClassStruct<T> {}
unsafe impl<T: ObjectType> ObjectClass for ClassStruct<T> {}
#[derive(Clone, Copy, PartialEq, Eq, Debug)]
pub enum PropertyMutability {