forked from enlightenment/efl
reverse logic checking for compat code
SVN revision: 48858
This commit is contained in:
parent
87e0ecfaa7
commit
57092e9c95
|
@ -71,9 +71,9 @@ _get_syspath_from_watch(void *data, Ecore_Fd_Handler *fd_handler)
|
||||||
if ((!(test = udev_device_get_subsystem(device))) || (strcmp(test, "input")))
|
if ((!(test = udev_device_get_subsystem(device))) || (strcmp(test, "input")))
|
||||||
goto error;
|
goto error;
|
||||||
test = udev_device_get_property_value(device, "ID_CLASS");
|
test = udev_device_get_property_value(device, "ID_CLASS");
|
||||||
if ((!_walk_parents_for_attr(device, "bInterfaceProtocol", "01")) && ((!test) || (strcmp(test, "kbd"))))
|
if ((_walk_parents_for_attr(device, "bInterfaceProtocol", "01")) || ((test) && (!strcmp(test, "kbd"))))
|
||||||
goto error;
|
break;
|
||||||
break;
|
goto error;
|
||||||
#endif
|
#endif
|
||||||
if (!udev_device_get_property_value(device, "ID_INPUT_KEYBOARD"))
|
if (!udev_device_get_property_value(device, "ID_INPUT_KEYBOARD"))
|
||||||
goto error;
|
goto error;
|
||||||
|
@ -83,9 +83,9 @@ _get_syspath_from_watch(void *data, Ecore_Fd_Handler *fd_handler)
|
||||||
if ((!(test = udev_device_get_subsystem(device))) || (strcmp(test, "input")))
|
if ((!(test = udev_device_get_subsystem(device))) || (strcmp(test, "input")))
|
||||||
goto error;
|
goto error;
|
||||||
test = udev_device_get_property_value(device, "ID_CLASS");
|
test = udev_device_get_property_value(device, "ID_CLASS");
|
||||||
if ((!_walk_parents_for_attr(device, "bInterfaceProtocol", "02")) && ((!test) || (strcmp(test, "mouse"))))
|
if ((_walk_parents_for_attr(device, "bInterfaceProtocol", "02")) || ((test) && (!strcmp(test, "mouse"))))
|
||||||
goto error;
|
break;
|
||||||
break;
|
goto error;
|
||||||
#endif
|
#endif
|
||||||
if (!udev_device_get_property_value(device, "ID_INPUT_MOUSE"))
|
if (!udev_device_get_property_value(device, "ID_INPUT_MOUSE"))
|
||||||
goto error;
|
goto error;
|
||||||
|
|
Loading…
Reference in New Issue