diff options
author | Jean-Philippe Andre <jp.andre@samsung.com> | 2017-02-23 15:32:17 +0900 |
---|---|---|
committer | Jean-Philippe Andre <jp.andre@samsung.com> | 2017-02-23 15:43:56 +0900 |
commit | bc31a47fd9b8138b09c45ade703ab0f3736a54dd (patch) | |
tree | 5ab42bcf773cae828bcc8edcf0f3522f030b3ebe | |
parent | 7d4e417ea8d850abd1a2ac42ee03446cb6766937 (diff) | |
download | efl-bc31a47fd9b8138b09c45ade703ab0f3736a54dd.tar.gz |
elm: Restore ABI compatibility (elm_pan_gravity)
elm_pan_gravity_{set,get} are functions that were generated as
legacy APIs (in other words EAPI), but were never actually exposed
to applications as they were protected behind EFL_EO_API_SUPPORT
(see elm_interfaces.h).
This patch restores the ABI compatibility with elementary 1.18.
-rw-r--r-- | src/lib/elementary/elm_interface_scrollable.c | 8 | ||||
-rw-r--r-- | src/lib/elementary/elm_interface_scrollable.h | 5 |
2 files changed, 13 insertions, 0 deletions
diff --git a/src/lib/elementary/elm_interface_scrollable.c b/src/lib/elementary/elm_interface_scrollable.c index e9312796dc..d8808145ae 100644 --- a/src/lib/elementary/elm_interface_scrollable.c +++ b/src/lib/elementary/elm_interface_scrollable.c @@ -4554,5 +4554,13 @@ _elm_interface_scrollable_class_constructor(Efl_Class *klass) evas_smart_legacy_type_register(MY_SCROLLABLE_INTERFACE_NAME_LEGACY, klass); } +/* Legacy ABI compatibility - APIs never worked and were hidden behind + * EFL_EO_API_SUPPORT (from elm_interface.h) or inside internal headers. + * Removed between 1.18 and 1.19. The symbols are kept purely for ABI + * compatibility reasons. + */ +EAPI void elm_pan_gravity_set(Elm_Pan *obj EINA_UNUSED, double x EINA_UNUSED, double y EINA_UNUSED) {} +EAPI void elm_pan_gravity_get(const Elm_Pan *obj EINA_UNUSED, double *x EINA_UNUSED, double *y EINA_UNUSED) {} + #include "elm_interface_scrollable.eo.c" #include "elm_pan.eo.c" diff --git a/src/lib/elementary/elm_interface_scrollable.h b/src/lib/elementary/elm_interface_scrollable.h index 001fb3a2f0..624c92199a 100644 --- a/src/lib/elementary/elm_interface_scrollable.h +++ b/src/lib/elementary/elm_interface_scrollable.h @@ -248,6 +248,11 @@ struct _Elm_Scrollable_Smart_Interface_Data return __VA_ARGS__; \ } +#if defined(EFL_EO_API_SUPPORT) && defined(EFL_BETA_API_SUPPORT) +EAPI void elm_pan_gravity_set(Elm_Pan *, double x, double) EINA_DEPRECATED; +EAPI void elm_pan_gravity_get(const Elm_Pan *, double *, double *) EINA_DEPRECATED; +#endif + /** * @} */ |