mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-28 03:00:35 +00:00
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:
parent
71f3a6f0f7
commit
00697e8529
1 changed files with 13 additions and 0 deletions
13
gst/gstxml.c
13
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
|
||||
|
|
Loading…
Reference in a new issue