mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-31 03:29:50 +00:00
check: testclock: fix deprecation guards
Make our own deprecation marker for libgstcheck, since the function declaration must contain the right API export decorator (GST_CHECK_API) and not the one for GStreamer core.
This commit is contained in:
parent
f7b5151b58
commit
04deaac7a4
2 changed files with 9 additions and 1 deletions
|
@ -28,4 +28,12 @@
|
|||
#define GST_CHECK_API GST_EXPORT
|
||||
#endif
|
||||
|
||||
#ifndef GST_DISABLE_DEPRECATED
|
||||
#define GST_CHECK_DEPRECATED GST_CHECK_API
|
||||
#define GST_CHECK_DEPRECATED_FOR(f) GST_CHECK_API
|
||||
#else
|
||||
#define GST_CHECK_DEPRECATED G_DEPRECATED GST_CHECK_API
|
||||
#define GST_CHECK_DEPRECATED_FOR(f) G_DEPRECATED_FOR(f) GST_CHECK_API
|
||||
#endif
|
||||
|
||||
#endif /* __GST_CHECK_PRELUDE_H__ */
|
||||
|
|
|
@ -106,7 +106,7 @@ GST_CHECK_API
|
|||
void gst_test_clock_wait_for_next_pending_id (GstTestClock * test_clock,
|
||||
GstClockID * pending_id);
|
||||
|
||||
GST_DEPRECATED_FOR(gst_test_clock_wait_for_multiple_pending_ids)
|
||||
GST_CHECK_DEPRECATED_FOR(gst_test_clock_wait_for_multiple_pending_ids)
|
||||
void gst_test_clock_wait_for_pending_id_count (GstTestClock * test_clock,
|
||||
guint count);
|
||||
|
||||
|
|
Loading…
Reference in a new issue