summaryrefslogtreecommitdiff
path: root/src/lib/ecore_input
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2017-07-17 11:00:23 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2017-07-17 13:53:42 +0900
commit9c18f0d00ac530563547706b603c62e7e25d9b47 (patch)
tree32047cfbd9d7f61dd96faa6085f70360bd03f52b /src/lib/ecore_input
parent245940c09333897168a9a3d0cc7194ab8dfe4862 (diff)
ecore joystick: Use const char * in API, not slstr
The API eina_slstr_ is meant to look just like const strings, wihch means here there could instead be an internal struct holding the name, and the API would behave the same. Note: This API is new in 1.20
Diffstat (limited to 'src/lib/ecore_input')
-rw-r--r--src/lib/ecore_input/Ecore_Input.h2
-rw-r--r--src/lib/ecore_input/ecore_input_joystick.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/ecore_input/Ecore_Input.h b/src/lib/ecore_input/Ecore_Input.h
index 8139f563d7..6853e764b5 100644
--- a/src/lib/ecore_input/Ecore_Input.h
+++ b/src/lib/ecore_input/Ecore_Input.h
@@ -489,7 +489,7 @@ extern "C" {
489 * @return name of joystick. 489 * @return name of joystick.
490 * @since 1.20 490 * @since 1.20
491 */ 491 */
492 EAPI Eina_Slstr *ecore_input_joystick_name_get(int index); 492 EAPI const char *ecore_input_joystick_name_get(int index);
493#ifdef __cplusplus 493#ifdef __cplusplus
494} 494}
495#endif 495#endif
diff --git a/src/lib/ecore_input/ecore_input_joystick.c b/src/lib/ecore_input/ecore_input_joystick.c
index 58fbedef67..28f527bc89 100644
--- a/src/lib/ecore_input/ecore_input_joystick.c
+++ b/src/lib/ecore_input/ecore_input_joystick.c
@@ -622,7 +622,7 @@ ecore_input_joystick_event_axis_deadzone_get(void)
622 return _event_axis_deadzone; 622 return _event_axis_deadzone;
623} 623}
624 624
625EAPI Eina_Slstr * 625EAPI const char *
626ecore_input_joystick_name_get(int index) 626ecore_input_joystick_name_get(int index)
627{ 627{
628#if defined(HAVE_EEZE) && defined(JSIOCGNAME) 628#if defined(HAVE_EEZE) && defined(JSIOCGNAME)