correcly fill device_info struct when parsing device properties 73/28773/1 accepted/tizen/common/20141016.143853 submit/tizen/20141016.080707
authorCorentin Lecouvey <corentin.lecouvey@open.eurogiciel.org>
Wed, 15 Oct 2014 17:02:35 +0000 (19:02 +0200)
committerCorentin Lecouvey <corentin.lecouvey@open.eurogiciel.org>
Wed, 15 Oct 2014 17:04:49 +0000 (19:04 +0200)
Change-Id: Ibf35a2f7cab622b35035e0344f22919f84e6bc68
Signed-off-by: Corentin Lecouvey <corentin.lecouvey@open.eurogiciel.org>
bt-service/bt-service-event-receiver.c

index e79606a..47e369a 100644 (file)
@@ -88,14 +88,14 @@ static bt_remote_dev_info_t *__bt_parse_device_properties(DBusMessageIter *item_
                        dev_info->address = g_strdup(address);
                } else if (strcasecmp(key, "Class") == 0) {
                        dbus_message_iter_get_basic(&iter_dict_val, &dev_info->class);
-               } else if (strcasecmp(key, "name") == 0) {
+               } else if (strcasecmp(key, "Name") == 0) {
                        dbus_message_iter_get_basic(&iter_dict_val, &value);
                        if (dev_info->name == NULL)
                                dev_info->name = g_strdup(value);
                } else if (strcasecmp(key, "Connected") == 0) {
                        dbus_message_iter_get_basic(&iter_dict_val,
                                                &dev_info->connected);
-               } else if (strcasecmp(key, "paired") == 0) {
+               } else if (strcasecmp(key, "Paired") == 0) {
                        dbus_message_iter_get_basic(&iter_dict_val,
                                                &dev_info->paired);
                } else if (strcasecmp(key, "Trusted") == 0) {