summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim.muller@collabora.co.uk>2010-06-26 09:59:31 +0100
committerTim-Philipp Müller <tim.muller@collabora.co.uk>2010-06-26 10:35:38 +0100
commit00697e8529a1fa900d81a9bcc83f1625c2e5620e (patch)
tree65c686407b8c7cc6994dc35e1a544c742b720b20
parent71f3a6f0f7a347d2d2a92d33c189c6cba12c4577 (diff)
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.
-rw-r--r--gst/gstxml.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/gst/gstxml.c b/gst/gstxml.c
index 9fa1e31b71..b37a4e2935 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