This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch master
in repository efl.

View the commit online.

commit 18845d0426f6cd0c70c34293ef343de8e33c7ed5
Author: Cedric BAIL <[email protected]>
AuthorDate: Sun Nov 15 13:04:53 2026 -0600

    evas: Efl_Canvas.h declares the stable object animation mixin
    
    Efl_Canvas.h, the umbrella Efl_Ui.h uses, never included
    efl_canvas_object_animation.eo.h, so Efl.Canvas.Object_Animation, a
    stable mixin every canvas object has, and its animation_start family
    were not declared for a program that includes it.
    
    Test: evas-stable-headers, built with -UEFL_BETA_API_SUPPORT, names the
    mixin and its functions through <Efl_Canvas.h>.
    
    Co-Authored-By: Claude Opus 5.5 <[email protected]>
---
 src/lib/evas/Efl_Canvas.h                 |  1 +
 src/tests/evas/evas_test_stable_headers.c | 39 +++++++++++++++++++++++++++++++
 src/tests/evas/meson.build                | 14 +++++++++++
 3 files changed, 54 insertions(+)

diff --git a/src/lib/evas/Efl_Canvas.h b/src/lib/evas/Efl_Canvas.h
index 2254992063..6910a27963 100644
--- a/src/lib/evas/Efl_Canvas.h
+++ b/src/lib/evas/Efl_Canvas.h
@@ -36,6 +36,7 @@ extern "C" {
 #include "canvas/efl_input_clickable.eo.h"
 
 #include <canvas/efl_canvas_object.eo.h>
+#include <canvas/efl_canvas_object_animation.eo.h>
 #include <gesture/efl_canvas_gesture.eo.h>
 #include <gesture/efl_canvas_gesture_touch.eo.h>
 #include <gesture/efl_canvas_gesture_recognizer.eo.h>
diff --git a/src/tests/evas/evas_test_stable_headers.c b/src/tests/evas/evas_test_stable_headers.c
new file mode 100644
index 0000000000..a2faf724ab
--- /dev/null
+++ b/src/tests/evas/evas_test_stable_headers.c
@@ -0,0 +1,39 @@
+// Compiled without EFL_BETA_API_SUPPORT: the stable Efl.Canvas.Object_Animation
+// mixin must be declared by <Efl_Canvas.h>, the umbrella Efl_Ui.h uses. Taking
+// the addresses is enough: the declarations come from the header, and a symbol
+// that the library does not export is a null weak reference, which main()
+// reports.
+
+#ifdef EFL_BETA_API_SUPPORT
+# error "this test is about the stable API, it must be built without the beta macro"
+#endif
+
+#include <stdio.h>
+#include <Evas.h>
+#include <Efl_Canvas.h>
+
+static void *const _stable[] =
+{
+   efl_canvas_object_animation_mixin_get,
+   efl_canvas_object_animation_start,
+   efl_canvas_object_animation_stop,
+   efl_canvas_object_animation_pause_set,
+};
+
+int
+main(void)
+{
+   unsigned int i;
+   int missing = 0;
+
+   // A strong reference keeps libevas linked, as the weak ones do not.
+   evas_init();
+   for (i = 0; i < sizeof(_stable) / sizeof(_stable[0]); i++)
+     {
+        if (_stable[i]) continue;
+        fprintf(stderr, "stable symbol %u is not exported\n", i);
+        missing++;
+     }
+   evas_shutdown();
+   return missing ? 1 : 0;
+}
diff --git a/src/tests/evas/meson.build b/src/tests/evas/meson.build
index 36a7610909..5cefbf5d47 100644
--- a/src/tests/evas/meson.build
+++ b/src/tests/evas/meson.build
@@ -41,6 +41,20 @@ test('evas-suite', evas_suite,
   timeout : master_timeout
 )
 
+# The stable Efl.Canvas.Object_Animation mixin must be reachable from
+# <Efl_Canvas.h> without the beta macro, which the project adds to every
+# target.
+evas_stable_headers = executable('evas_stable_headers',
+  'evas_test_stable_headers.c',
+  dependencies: [evas],
+  c_args : ['-UEFL_BETA_API_SUPPORT']
+)
+
+test('evas-stable-headers', evas_stable_headers,
+  env : test_env,
+  timeout : master_timeout
+)
+
 # Compares every C/NEON pair in the evas span and point op tables. It includes
 # the op translation units directly rather than linking them, because the copy
 # tables are static; that keeps the library itself untouched. Skips (exit 77)

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.

Reply via email to