audiofilter: Add _CAST variants of the cast macros
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Thu, 26 Nov 2009 09:31:00 +0000 (10:31 +0100)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Thu, 26 Nov 2009 09:38:28 +0000 (10:38 +0100)
gst-libs/gst/audio/gstaudiofilter.h

index 7371348..c311c97 100644 (file)
@@ -34,8 +34,12 @@ typedef struct _GstAudioFilterClass GstAudioFilterClass;
   (gst_audio_filter_get_type())
 #define GST_AUDIO_FILTER(obj) \
   (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_AUDIO_FILTER,GstAudioFilter))
+#define GST_AUDIO_FILTER_CAST(obj) \
+  ((GstAudioFilter *) (obj))
 #define GST_AUDIO_FILTER_CLASS(klass) \
   (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_AUDIO_FILTER,GstAudioFilterClass))
+#define GST_AUDIO_FILTER_CLASS_CAST(klass) \
+  ((GstAudioFilterClass *) (klass))
 #define GST_IS_AUDIO_FILTER(obj) \
   (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_AUDIO_FILTER))
 #define GST_IS_AUDIO_FILTER_CLASS(klass) \