}
/* TODO - each handle? */
- int ret = vc_config_mgr_initialize((*vc_w)->handle);
+ int ret = vc_config_mgr_initialize((*vc_w)->handle + VC_WIDGET_CONFIG_HANDLE);
if (0 != ret) {
SLOG(LOG_ERROR, TAG_VCW, "[ERROR] Fail to init config manager : %s",
__vc_widget_get_error_code(__vc_widget_convert_config_error_code(ret)));
return __vc_widget_convert_config_error_code(ret);
}
- ret = vc_config_mgr_set_lang_cb((*vc_w)->handle, __vc_widget_lang_changed_cb);
+ ret = vc_config_mgr_set_lang_cb((*vc_w)->handle + VC_WIDGET_CONFIG_HANDLE, __vc_widget_lang_changed_cb);
if (0 != ret) {
SLOG(LOG_ERROR, TAG_VCW, "[ERROR] Fail to set config changed : %d", ret);
- vc_config_mgr_finalize((*vc_w)->handle);
+ vc_config_mgr_finalize((*vc_w)->handle + VC_WIDGET_CONFIG_HANDLE);
vc_widget_client_destroy((*vc_w));
pthread_mutex_unlock(&g_w_init_mutex);
return __vc_widget_convert_config_error_code(ret);
widget->conn_timer = NULL;
}
- vc_config_mgr_unset_lang_cb(vc_w->handle);
- vc_config_mgr_finalize(vc_w->handle);
+ vc_config_mgr_unset_lang_cb(vc_w->handle + VC_WIDGET_CONFIG_HANDLE);
+ vc_config_mgr_finalize(vc_w->handle + VC_WIDGET_CONFIG_HANDLE);
/* Free resources */
vc_widget_client_destroy(vc_w);