From dde0d169b57e8c8fae325718e8e394a9d5b42b18 Mon Sep 17 00:00:00 2001 From: Christophe Fergeau Date: Mon, 6 Mar 2006 14:46:31 +0000 Subject: [PATCH] gst/gstutils.h: Do proper cast here to make GST_BOILERPLATE_WITH_INTERFACE Original commit message from CVS: * gst/gstutils.h: Do proper cast here to make GST_BOILERPLATE_WITH_INTERFACE usable in c++ code (#333417; patch by: Christophe Fergeau) --- ChangeLog | 6 ++++++ gst/gstutils.h | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index ea7fe5aa57..3d9c1a8fb5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2006-03-06 Tim-Philipp Müller + + * gst/gstutils.h: + Do proper cast here to make GST_BOILERPLATE_WITH_INTERFACE + usable in c++ code (#333417; patch by: Christophe Fergeau) + 2006-03-06 Thomas Vander Stichele * gst/gstclock.h: diff --git a/gst/gstutils.h b/gst/gstutils.h index 7f445f7b29..ca3ab2ec2d 100644 --- a/gst/gstutils.h +++ b/gst/gstutils.h @@ -189,7 +189,7 @@ static gboolean interface_as_function ## _supported (type *object, GType iface_t static void \ type_as_function ## _implements_interface_init (GstImplementsInterfaceClass *klass) \ { \ - klass->supported = (gpointer)interface_as_function ## _supported; \ + klass->supported = (gboolean (*)(GstImplementsInterface*, GType))interface_as_function ## _supported; \ } \ \ static void \