From 1c08a6088d678fdc33d3a7231b9d53792fbac3c9 Mon Sep 17 00:00:00 2001 From: Niels De Graef Date: Thu, 12 Mar 2020 13:32:23 +0100 Subject: [PATCH] volume: Use G_DECLARE_FINAL_TYPE --- gst/volume/gstvolume.h | 21 ++------------------- 1 file changed, 2 insertions(+), 19 deletions(-) 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__ */