From b4645e277bc8833e08174351d59fec335ee51b59 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim-Philipp=20M=C3=BCller?= Date: Fri, 30 Jan 2009 18:17:03 +0000 Subject: [PATCH] Remove broken class to interface cast macros from GstUriHandler and GstImplementsInterface headers 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 | 5 ----- gst/gsturi.h | 1 - 2 files changed, 6 deletions(-) diff --git a/gst/gstinterface.h b/gst/gstinterface.h index dbe2ecdc7c..860d9deb52 100644 --- a/gst/gstinterface.h +++ b/gst/gstinterface.h @@ -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)) diff --git a/gst/gsturi.h b/gst/gsturi.h index eef0cf759c..5b32520b8f 100644 --- a/gst/gsturi.h +++ b/gst/gsturi.h @@ -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: -- 2.34.1