forked from enlightenment/efl
hardcode variable names into watch cb for clarity
SVN revision: 48942
This commit is contained in:
parent
1b6703ce89
commit
f135f009a5
|
@ -130,7 +130,7 @@ extern "C" {
|
||||||
EAPI Eina_Bool eeze_udev_syspath_is_kbd(const char *syspath);
|
EAPI Eina_Bool eeze_udev_syspath_is_kbd(const char *syspath);
|
||||||
EAPI Eina_Bool eeze_udev_syspath_is_touchpad(const char *syspath);
|
EAPI Eina_Bool eeze_udev_syspath_is_touchpad(const char *syspath);
|
||||||
|
|
||||||
EAPI Eeze_Udev_Watch *eeze_udev_watch_add(Eeze_Udev_Type type, void(*func)(const char *, const char *, void *, Eeze_Udev_Watch *), void *user_data);
|
EAPI Eeze_Udev_Watch *eeze_udev_watch_add(Eeze_Udev_Type type, void(*func)(const char *syspath, const char *event, void *data, Eeze_Udev_Watch *watch), void *user_data);
|
||||||
EAPI void *eeze_udev_watch_del(Eeze_Udev_Watch *watch);
|
EAPI void *eeze_udev_watch_del(Eeze_Udev_Watch *watch);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
|
|
@ -34,7 +34,7 @@ _get_syspath_from_watch(void *data, Ecore_Fd_Handler *fd_handler)
|
||||||
struct _store_data *store = data;
|
struct _store_data *store = data;
|
||||||
struct udev_device *device;
|
struct udev_device *device;
|
||||||
const char *ret, *test;
|
const char *ret, *test;
|
||||||
void(*func)(const char *, const char *, void *, Eeze_Udev_Watch *) = store->func;
|
void(*func)(const char *syspath, const char *event, void *data, Eeze_Udev_Watch *watch) = store->func;
|
||||||
void *sdata = store->data;
|
void *sdata = store->data;
|
||||||
Eeze_Udev_Watch *watch = store->watch;
|
Eeze_Udev_Watch *watch = store->watch;
|
||||||
int cap = 0;
|
int cap = 0;
|
||||||
|
@ -169,7 +169,7 @@ error:
|
||||||
* @ingroup udev
|
* @ingroup udev
|
||||||
*/
|
*/
|
||||||
EAPI Eeze_Udev_Watch *
|
EAPI Eeze_Udev_Watch *
|
||||||
eeze_udev_watch_add(Eeze_Udev_Type type, void(*func)(const char *, const char *, void *, Eeze_Udev_Watch *), void *user_data)
|
eeze_udev_watch_add(Eeze_Udev_Type type, void(*func)(const char *syspath, const char *event, void *data, Eeze_Udev_Watch *watch), void *user_data)
|
||||||
{
|
{
|
||||||
struct udev *udev;
|
struct udev *udev;
|
||||||
struct udev_monitor *mon;
|
struct udev_monitor *mon;
|
||||||
|
|
Loading…
Reference in New Issue