gl: Add GST_GL_DEPRECATED
authorSebastian Dröge <sebastian@centricular.com>
Mon, 21 Feb 2022 13:02:02 +0000 (15:02 +0200)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Mon, 21 Feb 2022 21:26:43 +0000 (21:26 +0000)
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1764>

subprojects/gst-plugins-base/gst-libs/gst/gl/gl-prelude.h

index 05e1f62..85fca5a 100644 (file)
 #define GST_GL_API GST_API_IMPORT
 #endif
 
+#ifndef GST_DISABLE_DEPRECATED
+#define GST_GL_DEPRECATED GST_GL_API
+#define GST_GL_DEPRECATED_FOR(f) GST_GL_API
+#else
+#define GST_GL_DEPRECATED G_DEPRECATED GST_GL_API
+#define GST_GL_DEPRECATED_FOR(f) G_DEPRECATED_FOR(f) GST_GL_API
+#endif
+
 #endif /* __GST_GL_PRELUDE_H__ */