config = DeviceConfig::get_device_config(device_id_param);
if (config != NULL) {
// if not, create default device config
- type = config->get_cfg_value(DEVICE_CONFIG_VALUE_KEY__TYPE);
+ type = config->get_config_value(DEVICE_CONFIG_VALUE_KEY__TYPE);
if (type.empty() == true) {
type = ret_val->get_type();
- config->set_cfg_value(DEVICE_CONFIG_VALUE_KEY__TYPE, type);
- config->set_cfg_value(DEVICE_CONFIG_VALUE_KEY__ID, ret_val->get_id());
+ config->set_config_value(DEVICE_CONFIG_VALUE_KEY__TYPE, type);
+ config->set_config_value(DEVICE_CONFIG_VALUE_KEY__ID, ret_val->get_id());
}
delete(config);
}
if (name.empty() == true) {
cfg = DeviceConfig::get_device_config(id);
if (cfg != NULL) {
- name = cfg->get_cfg_value(DEVICE_CONFIG_VALUE_KEY__NAME);
+ name = cfg->get_config_value(DEVICE_CONFIG_VALUE_KEY__NAME);
delete(cfg);
}
}
name = name_param;
cfg = DeviceConfig::get_device_config(id);
if (cfg != NULL) {
- cfg->set_cfg_value(DEVICE_CONFIG_VALUE_KEY__NAME, name_param);
+ cfg->set_config_value(DEVICE_CONFIG_VALUE_KEY__NAME, name_param);
delete(cfg);
}
}