gst_test_clock_process_id_list \
gst_test_clock_id_list_get_latest_time
+# For backwards compatibility with GStreamer < 1.5
+LIBGSTCHECK_EXPORTED_COMPAT_FUNCS = \
+ _fail_unless
LIBGSTCHECK_EXPORTED_SYMBOLS = \
$(LIBGSTCHECK_EXPORTED_VARS) \
- $(LIBGSTCHECK_EXPORTED_FUNCS)
+ $(LIBGSTCHECK_EXPORTED_FUNCS) \
+ $(LIBGSTCHECK_EXPORTED_COMPAT_FUNCS)
# Please do not even think about changing the alphabet below into A-Za-z.
# It is there for purpose. (Bug #602093)
{
gst_check_objects_destroyed_on_unref (object_to_unref, NULL, NULL);
}
+
+/* For ABI compatibility with GStreamer < 1.5 */
+void
+_fail_unless (int result, const char *file, int line, const char *expr, ...)
+G_GNUC_PRINTF (4, 5);
+
+void _fail_unless (int result, const char *file, int line,
+ const char *expr, ...)
+{
+ gchar *msg;
+ va_list args;
+
+ if (result) {
+ _mark_point(file, line);
+ return;
+ }
+
+ va_start (args, expr);
+ msg = g_strdup_vprintf (expr, args);
+ va_end (args);
+
+ _ck_assert_failed (file, line, msg, NULL);
+ g_free (msg);
+}