ecore joystick: Use const char * in API, not slstr
authorJean-Philippe Andre <jp.andre@samsung.com>
Mon, 17 Jul 2017 02:00:23 +0000 (11:00 +0900)
committerJean-Philippe Andre <jp.andre@samsung.com>
Mon, 17 Jul 2017 04:53:42 +0000 (13:53 +0900)
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

src/lib/ecore_input/Ecore_Input.h
src/lib/ecore_input/ecore_input_joystick.c

index 8139f56..6853e76 100644 (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
index 58fbede..28f527b 100644 (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)