*/
static void __widget_on_connected(rpc_port_proxy_vcd_widget_proxy_vcd_widget_h h, void *user_data)
{
- widget_tidl_info_s* widget_tidl_info = vcd_client_widget_get_tidl_info((int)user_data);
+ int pid = (intptr_t)user_data;
+ widget_tidl_info_s* widget_tidl_info = vcd_client_widget_get_tidl_info(pid);
widget_tidl_info->connected = true;
widget_tidl_info->connection_requesting = false;
static void __widget_on_disconnected(rpc_port_proxy_vcd_widget_proxy_vcd_widget_h h, void *user_data)
{
- widget_tidl_info_s* widget_tidl_info = vcd_client_widget_get_tidl_info((int)user_data);
+ int pid = (intptr_t)user_data;
+ widget_tidl_info_s* widget_tidl_info = vcd_client_widget_get_tidl_info(pid);
widget_tidl_info->connected = false;
widget_tidl_info->connection_requesting = false;
static void __widget_on_rejected(rpc_port_proxy_vcd_widget_proxy_vcd_widget_h h, void *user_data)
{
- widget_tidl_info_s* widget_tidl_info = vcd_client_widget_get_tidl_info((int)user_data);
+ int pid = (intptr_t)user_data;
+ widget_tidl_info_s* widget_tidl_info = vcd_client_widget_get_tidl_info(pid);
widget_tidl_info->connection_requesting = false;
};
rpc_port_proxy_vcd_widget_proxy_vcd_widget_h handle = NULL;
- if (0 != rpc_port_proxy_vcd_widget_proxy_vcd_widget_create(engine_app_id, &rpc_callback, (void *)pid, &handle)) {
+ intptr_t ptr_pid = pid;
+ if (0 != rpc_port_proxy_vcd_widget_proxy_vcd_widget_create(engine_app_id, &rpc_callback, (void *)ptr_pid, &handle)) {
SLOG(LOG_ERROR, TAG_VCD, "[TIDL ERROR] Fail to create proxy");
return NULL;
}