Remove broken class to interface cast macros from GstUriHandler and GstImplementsInte...
authorTim-Philipp Müller <tim.muller@collabora.co.uk>
Fri, 30 Jan 2009 18:17:03 +0000 (18:17 +0000)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Fri, 30 Jan 2009 18:25:39 +0000 (18:25 +0000)
Remove class-to-interface-struct cast macros which don't work,
don't make sense, and in some cases wouldn't even compile if
used. Removal should be ok seeing that code which uses any of
these is broken and bound to crash. Fixes #565607.

API: remove GST_IMPLEMENTS_INTERFACE_CLASS
API: remove GST_IS_IMPLEMENTS_INTERFACE_CLASS
API: remove GST_URI_HANDLER_CLASS

gst/gstinterface.h
gst/gsturi.h

index dbe2ecdc7c0722d44a35f1161b7d09364f39812d..860d9deb52408f9162d1294ecde4d2f0a9789e89 100644 (file)
@@ -32,13 +32,8 @@ G_BEGIN_DECLS
 #define GST_IMPLEMENTS_INTERFACE(obj) \
   (G_TYPE_CHECK_INSTANCE_CAST ((obj), GST_TYPE_IMPLEMENTS_INTERFACE, \
                                      GstImplementsInterface))
-#define GST_IMPLEMENTS_INTERFACE_CLASS(klass) \
-  (G_TYPE_CHECK_CLASS_CAST ((klass), GST_TYPE_IMPLEMENTS_INTERFACE, \
-                           GstImplementsInterfaceClass))
 #define GST_IS_IMPLEMENTS_INTERFACE(obj) \
   (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GST_TYPE_IMPLEMENTS_INTERFACE))
-#define GST_IS_IMPLEMENTS_INTERFACE_CLASS(klass) \
-  (G_TYPE_CHECK_CLASS_TYPE ((klass), GST_TYPE_IMPLEMENTS_INTERFACE))
 #define GST_IMPLEMENTS_INTERFACE_GET_CLASS(inst) \
   (G_TYPE_INSTANCE_GET_INTERFACE ((inst), GST_TYPE_IMPLEMENTS_INTERFACE, \
                                  GstImplementsInterfaceClass))
index eef0cf759c801e45ec2544b983fe891f93e429c2..5b32520b8f356fc72d5b726733eae11f0d626ef6 100644 (file)
@@ -58,7 +58,6 @@ typedef enum {
 #define GST_URI_HANDLER(obj)           (G_TYPE_CHECK_INSTANCE_CAST ((obj), GST_TYPE_URI_HANDLER, GstURIHandler))
 #define GST_IS_URI_HANDLER(obj)                (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GST_TYPE_URI_HANDLER))
 #define GST_URI_HANDLER_GET_INTERFACE(obj)     (G_TYPE_INSTANCE_GET_INTERFACE ((obj), GST_TYPE_URI_HANDLER, GstURIHandlerInterface))
-#define GST_URI_HANDLER_CLASS(obj)     (G_TYPE_CHECK_CLASS_CAST ((obj), GST_TYPE_URI_HANDLER, GstURIHandler))
 
 /**
  * GstURIHandler: