From: duna.oh Date: Mon, 14 Oct 2024 11:26:22 +0000 (+0900) Subject: efl_util: fix to call tizen_input_device_release req. on device_remove event X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fheads%2Ftizen;p=platform%2Fcore%2Fapi%2Fefl-util.git efl_util: fix to call tizen_input_device_release req. on device_remove event Change-Id: If9fd06dbe549c7f61f2af2d892a9e26a81245b65 --- diff --git a/src/efl_util.c b/src/efl_util.c index 3b94f1f..a4a6ae5 100644 --- a/src/efl_util.c +++ b/src/efl_util.c @@ -1203,24 +1203,31 @@ struct _efl_util_inputgen_h static void _cb_device_add(void *data EINA_UNUSED, - struct tizen_input_device_manager *tizen_input_device_manager EINA_UNUSED, + struct tizen_input_device_manager *tizen_input_device_manager, uint32_t serial EINA_UNUSED, - const char *identifier EINA_UNUSED, + const char *identifier, struct tizen_input_device *device, struct wl_seat *seat EINA_UNUSED) { - ; + LOGD("device_manager(res_id:%u) device(res_id:%u) is added! (%s)", + (unsigned int)wl_proxy_get_id((struct wl_proxy *)tizen_input_device_manager), + (unsigned int)wl_proxy_get_id((struct wl_proxy *)device), + identifier); } static void _cb_device_remove(void *data EINA_UNUSED, - struct tizen_input_device_manager *tizen_input_device_manager EINA_UNUSED, + struct tizen_input_device_manager *tizen_input_device_manager, uint32_t serial EINA_UNUSED, - const char *identifier EINA_UNUSED, + const char *identifier, struct tizen_input_device *device, struct wl_seat *seat EINA_UNUSED) { - ; + LOGD("device_manager(res_id:%u) device(res_id:%u) is removed! (%s)", + (unsigned int)wl_proxy_get_id((struct wl_proxy *)tizen_input_device_manager), + (unsigned int)wl_proxy_get_id((struct wl_proxy *)device), + identifier); + tizen_input_device_release(device); } static void