]> pilppa.org Git - lib1wire.git/commitdiff
fixed api change breaks
authorMika Laitio <lamikr@pilppa.org>
Sat, 16 Apr 2011 14:49:01 +0000 (17:49 +0300)
committerMika Laitio <lamikr@pilppa.org>
Sat, 16 Apr 2011 14:49:01 +0000 (17:49 +0300)
Signed-off-by: Mika Laitio <lamikr@pilppa.org>
src/Factory.cc
src/W1Device.cc

index e785683dcbbc21e09bbdb29099ecdb756a53c195..152d7400302a42ad5c610cfb2553269705493e19 100644 (file)
@@ -101,11 +101,11 @@ Device *Factory::create_w1_device(int family_code_param,
                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);
                }
index 4a83c20b95970f0f352e8d95391910f0827841a5..84f4fecb9c78eff856bec0ee160b712f4b2da35a 100644 (file)
@@ -62,7 +62,7 @@ string W1Device::get_name() {
        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);
                }
        }
@@ -76,7 +76,7 @@ void W1Device::set_name(string name_param) {
                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);
                }
        }