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
This commit is contained in:
Jean-Philippe Andre 2017-07-17 11:00:23 +09:00
parent 245940c093
commit 9c18f0d00a
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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)