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:
parent
245940c093
commit
9c18f0d00a
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue