static void __vcd_widget_create_cb(rpc_port_stub_vc_widget_stub_vcd_widget_context_h context, void *user_data)
{
+ RETM_IF(NULL == g_stub_tidl_info, TAG_VCW, "[ERROR] Fail to get tidl stub info");
+
g_stub_tidl_info->connected = true;
g_stub_tidl_info->register_callback_requesting = false;
static void __vcd_widget_terminate_cb(rpc_port_stub_vc_widget_stub_vcd_widget_context_h context, void *user_data)
{
+ RETM_IF(NULL == g_stub_tidl_info, TAG_VCW, "[ERROR] Fail to get tidl stub info");
+
g_stub_tidl_info->connected = false;
g_stub_tidl_info->register_callback_requesting = false;
static void __register_stub_callback()
{
+ RETM_IF(NULL == g_stub_tidl_info, TAG_VCW, "[TIDL ERROR] g_stub_tidl_info is not allocated");
+
if (g_stub_tidl_info->register_callback_requesting) {
return;
}
free(g_proxy_tidl_info);
g_proxy_tidl_info = NULL;
+ if (0 != rpc_port_stub_vc_widget_stub_vcd_widget_unregister()) {
+ SLOG(LOG_ERROR, TAG_VCW, "[TIDL ERROR] Fail to unregister stub");
+ pthread_mutex_unlock(&g_w_tidl_mutex);
+ return VC_ERROR_OPERATION_FAILED;
+ }
+
free(g_stub_tidl_info);
g_stub_tidl_info = NULL;