diff --git a/gst/volume/gstvolume.h b/gst/volume/gstvolume.h index 0b0466d0fa..27cd6c3e37 100644 --- a/gst/volume/gstvolume.h +++ b/gst/volume/gstvolume.h @@ -32,19 +32,8 @@ G_BEGIN_DECLS -#define GST_TYPE_VOLUME \ - (gst_volume_get_type()) -#define GST_VOLUME(obj) \ - (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_VOLUME,GstVolume)) -#define GST_VOLUME_CLASS(klass) \ - (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_VOLUME,GstVolumeClass)) -#define GST_IS_VOLUME(obj) \ - (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_VOLUME)) -#define GST_IS_VOLUME_CLASS(klass) \ - (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_VOLUME)) - -typedef struct _GstVolume GstVolume; -typedef struct _GstVolumeClass GstVolumeClass; +#define GST_TYPE_VOLUME (gst_volume_get_type()) +G_DECLARE_FINAL_TYPE (GstVolume, gst_volume, GST, VOLUME, GstAudioFilter) /** * GstVolume: @@ -77,12 +66,6 @@ struct _GstVolume { guint volumes_count; }; -struct _GstVolumeClass { - GstAudioFilterClass parent_class; -}; - -GType gst_volume_get_type (void); - G_END_DECLS #endif /* __GST_VOLUME_H__ */