From 00697e8529a1fa900d81a9bcc83f1625c2e5620e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim-Philipp=20M=C3=BCller?= Date: Sat, 26 Jun 2010 09:59:31 +0100 Subject: [PATCH] xml: keep dummy gst_xml_get_type() function for g-i even if rest of GstXML is removed Add a minimal gst_xml_get_type() function, so that gobject-introspection doesn't break the compilation if we're compiling with GST_REMOVE_DEPRECATED defined or --disable-loadsave having been passed to configure. Until someone figures out a better way at least. --- gst/gstxml.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/gst/gstxml.c b/gst/gstxml.c index 9fa1e31..b37a4e2 100644 --- a/gst/gstxml.c +++ b/gst/gstxml.c @@ -525,4 +525,17 @@ gst_xml_make_element (xmlNodePtr cur, GstObject * parent) return element; } +#else + +/* FIXME: keep this dummy _get_type function around for now, so + * gobject-introspection doesn't fail in the GST_REMOVE_DEPRECATED and + * GST_DISABLE_LOADSAVE case */ +GType gst_xml_get_type (void); + +GType +gst_xml_get_type (void) +{ + return g_pointer_type_register_static ("GstXML"); +} + #endif -- 2.7.4