bool ezctp_util_init_ezcfg_api(const char *path)
{
	int shm_id = -1;
	int rc;

	if (path == NULL) {
		return false;
	}

	/* ezcfg_api_common */
	if (ezcfg_api_common_set_config_file(path) < 0) {
		return false;
	}

	/* init ezctp_common_shm_ezcfg_addr */
	rc = ezcfg_api_ipc_get_ezcfg_shm_id(&shm_id);
	if (rc < 0) {
		return false;
	}

	if (shm_id == -1) {
		return false;
	}


	ezctp_common_shm_ezcfg_addr = shmat(shm_id, NULL, 0);
	if ((ezctp_common_shm_ezcfg_addr == NULL) || (ezctp_common_shm_ezcfg_addr == (void *)-1)) {
		return false;
	}

	return true;
}
bool utils_init_ezcfg_api(const char *path)
{
	int ret;
	if (path == NULL) {
		return false;
	}

	/* ezcfg_api_common */
	ret = ezcfg_api_common_set_config_file(path);
	if (ret < 0) {
		return false;
	}

	return true;
}