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.
This commit is contained in:
Tim-Philipp Müller 2010-06-26 09:59:31 +01:00
parent 71f3a6f0f7
commit 00697e8529

View 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