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) |
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) | |||
4554 | evas_smart_legacy_type_register(MY_SCROLLABLE_INTERFACE_NAME_LEGACY, klass); | 4554 | evas_smart_legacy_type_register(MY_SCROLLABLE_INTERFACE_NAME_LEGACY, klass); |
4555 | } | 4555 | } |
4556 | 4556 | ||
4557 | /* Legacy ABI compatibility - APIs never worked and were hidden behind | ||
4558 | * EFL_EO_API_SUPPORT (from elm_interface.h) or inside internal headers. | ||
4559 | * Removed between 1.18 and 1.19. The symbols are kept purely for ABI | ||
4560 | * compatibility reasons. | ||
4561 | */ | ||
4562 | EAPI void elm_pan_gravity_set(Elm_Pan *obj EINA_UNUSED, double x EINA_UNUSED, double y EINA_UNUSED) {} | ||
4563 | EAPI void elm_pan_gravity_get(const Elm_Pan *obj EINA_UNUSED, double *x EINA_UNUSED, double *y EINA_UNUSED) {} | ||
4564 | |||
4557 | #include "elm_interface_scrollable.eo.c" | 4565 | #include "elm_interface_scrollable.eo.c" |
4558 | #include "elm_pan.eo.c" | 4566 | #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 | |||
248 | return __VA_ARGS__; \ | 248 | return __VA_ARGS__; \ |
249 | } | 249 | } |
250 | 250 | ||
251 | #if defined(EFL_EO_API_SUPPORT) && defined(EFL_BETA_API_SUPPORT) | ||
252 | EAPI void elm_pan_gravity_set(Elm_Pan *, double x, double) EINA_DEPRECATED; | ||
253 | EAPI void elm_pan_gravity_get(const Elm_Pan *, double *, double *) EINA_DEPRECATED; | ||
254 | #endif | ||
255 | |||
251 | /** | 256 | /** |
252 | * @} | 257 | * @} |
253 | */ | 258 | */ |