xml: keep dummy gst_xml_get_type() function for g-i even if rest of GstXML is removed
authorTim-Philipp Müller <tim.muller@collabora.co.uk>
Sat, 26 Jun 2010 08:59:31 +0000 (09:59 +0100)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Sat, 26 Jun 2010 09:35:38 +0000 (10:35 +0100)
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

index 9fa1e31..b37a4e2 100644 (file)
@@ -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