if (!edev || !edev->path) return EINA_FALSE;
- ecore_thread_main_loop_begin();
-
dev_list = ecore_device_list();
if (dev_list)
{
if ((ecore_device_class_get(dev) == clas) && (!strcmp(identifier, edev->path)))
{
ERR("Found same device in device list");
- ecore_thread_main_loop_end();
return EINA_FALSE;
}
}
{
ERR("Failed to create ecore device");
edev->ecore_dev = NULL;
- ecore_thread_main_loop_end();
return EINA_FALSE;
}
{
ERR("Failed to add e device");
edev->e_dev = NULL;
- ecore_thread_main_loop_end();
return EINA_FALSE;
}
}
_e_input_ecore_device_event(dev, edev->seat ? edev->seat->name : NULL, EINA_TRUE);
- ecore_thread_main_loop_end();
return EINA_TRUE;
}
dev_list = ecore_device_list();
if (!dev_list) return EINA_FALSE;
- ecore_thread_main_loop_begin();
EINA_LIST_FOREACH(dev_list, l, dev)
{
if (!dev) continue;
}
_e_input_ecore_device_event(dev, edev->seat ? edev->seat->name : NULL, EINA_FALSE);
ecore_device_del(dev);
- ecore_thread_main_loop_end();
return EINA_TRUE;
}
}
- ecore_thread_main_loop_end();
+
return EINA_FALSE;
}
{
if (eina_list_count(edev->ecore_dev_list) > 0)
{
- ecore_thread_main_loop_begin();
EINA_LIST_FREE(edev->ecore_dev_list, data)
{
WRN("Invalid device is left. name: %s, identifier: %s, clas: %s\n",
ecore_device_unref(data);
ecore_device_del(data);
}
- ecore_thread_main_loop_end();
}
edev->ecore_dev_list = NULL;
}
E_Input_Seat *seat;
E_Input_Evdev *edev;
+ ecore_thread_main_loop_begin();
libinput_seat = libinput_device_get_seat(device);
seat_name = libinput_seat_get_logical_name(libinput_seat);
if (!(seat = _seat_get(input, seat_name)))
{
ERR("Could not get matching seat: %s", seat_name);
+ ecore_thread_main_loop_end();
return;
}
if (!(edev = _e_input_evdev_device_create(seat, device)))
{
ERR("Failed to create new evdev device");
+ ecore_thread_main_loop_end();
return;
}
if (EINA_FALSE == _e_input_device_add(edev))
{
ERR("Failed to create evas device !\n");
+ ecore_thread_main_loop_end();
return;
}
+
+ ecore_thread_main_loop_end();
}
static void
{
E_Input_Evdev *edev;
+ ecore_thread_main_loop_begin();
+
/* try to get the evdev structure */
if (!(edev = libinput_device_get_user_data(device)))
{
+ ecore_thread_main_loop_end();
return;
}
/* destroy this evdev */
_e_input_evdev_device_destroy(edev);
+
+ ecore_thread_main_loop_end();
}
static int