filter: deprecate gst_filter_run()

It's not really used outside of core at all, and has
serious namespace issues. If anyone feels the need to
revive this one, please use a less generic name space.

API: deprecate gst_filter_run()
API: deprecate GstFilterFunc
This commit is contained in:
Tim-Philipp Müller 2011-10-30 21:54:36 +00:00
parent 8008837986
commit d9f95e8920
2 changed files with 11 additions and 0 deletions

View file

@ -60,6 +60,12 @@
* when no longer needed (the data contained in the list is a flat copy
* and does need to be unreferenced or freed).
*/
#ifndef GST_REMOVE_DEPRECATED
#ifdef GST_DISABLE_DEPRECATED
typedef gboolean (*GstFilterFunc) (gpointer obj, gpointer user_data);
GList *gst_filter_run (const GList * list, GstFilterFunc func, gboolean first,
gpointer user_data);
#endif
GList *
gst_filter_run (const GList * list, GstFilterFunc func, gboolean first,
gpointer user_data)
@ -86,3 +92,4 @@ gst_filter_run (const GList * list, GstFilterFunc func, gboolean first,
return result;
}
#endif /* GST_REMOVE_DEPRECATED */

View file

@ -35,9 +35,13 @@ G_BEGIN_DECLS
*
* Returns: %TRUE for success.
*/
#ifndef GST_DISABLE_DEPRECATED
typedef gboolean (*GstFilterFunc) (gpointer obj, gpointer user_data);
#endif
#ifndef GST_DISABLE_DEPRECATED
GList* gst_filter_run (const GList *list, GstFilterFunc func, gboolean first, gpointer user_data);
#endif
G_END_DECLS