summaryrefslogtreecommitdiff
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
parent245940c09333897168a9a3d0cc7194ab8dfe4862 (diff)
downloadefl-9c18f0d00ac530563547706b603c62e7e25d9b47.tar.gz
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
-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" {
* @return name of joystick.
* @since 1.20
*/
- EAPI Eina_Slstr *ecore_input_joystick_name_get(int index);
+ EAPI const char *ecore_input_joystick_name_get(int index);
#ifdef __cplusplus
}
#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)
return _event_axis_deadzone;
}
-EAPI Eina_Slstr *
+EAPI const char *
ecore_input_joystick_name_get(int index)
{
#if defined(HAVE_EEZE) && defined(JSIOCGNAME)