Dear All, Hello.


I got following snippet to get device name from fd.



+char name[128];
+if (ioctl(fd, JSIOCGNAME(sizeof(name)), name) < 0)
+       strncpy(name, "Unknown", sizeof(name));
+printf("Name: %s\n", name);



I would like to add an API to get device name using this snippet.

But it seems that there is our own way to get device name.

I have looked into efl_input_device_name_get, and tried to check
ecore_evas_cursor_example.c.

But it gives following compile error message:



ecore_evas_cursor_example.c:81:1: error: unknown type name ‘Efl_Event’
ecore_evas_cursor_example.c:83:37: error: request for member ‘info’ in
something not a structure or union

ecore_evas_cursor_example.c:151:30: error: ‘EFL_CANVAS_EVENT_DEVICE_ADDED’
undeclared (first use in this function)



So... what is the EFL standard & best way to get the device name.

You do not want to add ecore_input_joystick_device_name_get, or add a
variable to keep device name.



Sincerely,

Shinwoo Kim.
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to