gstreamer: filter: deprecate gst_filter_run()
Tim Müller
tpm at kemper.freedesktop.org
Sun Oct 30 15:12:59 PDT 2011
Module: gstreamer
Branch: master
Commit: d9f95e89203b5930833cc33d4eb62c21c9983e2e
URL: http://cgit.freedesktop.org/gstreamer/gstreamer/commit/?id=d9f95e89203b5930833cc33d4eb62c21c9983e2e
Author: Tim-Philipp Müller <tim.muller at collabora.co.uk>
Date: Sun Oct 30 21:54:36 2011 +0000
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
---
gst/gstfilter.c | 7 +++++++
gst/gstfilter.h | 4 ++++
2 files changed, 11 insertions(+), 0 deletions(-)
diff --git a/gst/gstfilter.c b/gst/gstfilter.c
index 7d6c055..67ae840 100644
--- a/gst/gstfilter.c
+++ b/gst/gstfilter.c
@@ -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 */
diff --git a/gst/gstfilter.h b/gst/gstfilter.h
index 1728f00..6ff1454 100644
--- a/gst/gstfilter.h
+++ b/gst/gstfilter.h
@@ -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
More information about the gstreamer-commits
mailing list