utils: fix ABI break when compiling gstreamer with -DGST_DISABLE_DEPRECATED

GST_DISABLE_DEPRECATED should only affect visibility of declarations in headers,
not actually remove symbols. See GitDeveloperGuidelines and DeprecatingAPI
pages in wiki.

https://bugzilla.gnome.org/show_bug.cgi?id=402141
This commit is contained in:
Tim-Philipp Müller 2011-03-10 17:48:26 +00:00
parent 430e83ca2a
commit 90b4dc4869
2 changed files with 14 additions and 2 deletions

View file

@ -1321,7 +1321,6 @@ gst_element_factory_can_accept_any_caps_in_direction (GstElementFactory *
return FALSE;
}
#ifndef GST_DISABLE_DEPRECATED
/**
* gst_element_factory_can_src_caps:
* @factory: factory to query
@ -1333,6 +1332,11 @@ gst_element_factory_can_accept_any_caps_in_direction (GstElementFactory *
*
* Deprecated: use gst_element_factory_can_src_all_caps() instead.
*/
#ifndef GST_REMOVE_DEPRECATED
#ifdef GST_DISABLE_DEPRECATED
gboolean gst_element_factory_can_src_caps (GstElementFactory * factory,
const GstCaps * caps);
#endif
gboolean
gst_element_factory_can_src_caps (GstElementFactory * factory,
const GstCaps * caps)
@ -1340,6 +1344,7 @@ gst_element_factory_can_src_caps (GstElementFactory * factory,
return gst_element_factory_can_accept_all_caps_in_direction (factory, caps,
GST_PAD_SRC);
}
#endif /* GST_REMOVE_DEPRECATED */
/**
* gst_element_factory_can_sink_caps:
@ -1352,6 +1357,11 @@ gst_element_factory_can_src_caps (GstElementFactory * factory,
*
* Deprecated: use gst_element_factory_can_sink_all_caps() instead.
*/
#ifndef GST_REMOVE_DEPRECATED
#ifdef GST_DISABLE_DEPRECATED
gboolean gst_element_factory_can_sink_caps (GstElementFactory * factory,
const GstCaps * caps);
#endif
gboolean
gst_element_factory_can_sink_caps (GstElementFactory * factory,
const GstCaps * caps)
@ -1359,7 +1369,7 @@ gst_element_factory_can_sink_caps (GstElementFactory * factory,
return gst_element_factory_can_accept_all_caps_in_direction (factory, caps,
GST_PAD_SINK);
}
#endif /* GST_DISABLE_DEPRECATED */
#endif /* GST_REMOVE_DEPRECATED */
/**
* gst_element_factory_can_sink_all_caps:

View file

@ -303,8 +303,10 @@ EXPORTS
gst_element_create_all_pads
gst_element_factory_can_sink_all_caps
gst_element_factory_can_sink_any_caps
gst_element_factory_can_sink_caps
gst_element_factory_can_src_all_caps
gst_element_factory_can_src_any_caps
gst_element_factory_can_src_caps
gst_element_factory_create
gst_element_factory_find
gst_element_factory_get_author