_bt_convert_addr_type_to_string(address, device_address->addr);
device_path = _bt_get_device_object_path(address);
- retv_if(device_path == NULL, BLUETOOTH_ERROR_NOT_CONNECTED);
- BT_INFO("device_path is created[%s]", device_path);
+ if (device_path == NULL)
+ return BLUETOOTH_ERROR_NOT_CONNECTED;
+ else
+ BT_INFO("device_path is created[%s]", device_path);
value_str = _bt_convert_alert_level_to_string(alert_level);
property_str = _bt_convert_property_to_string(property);
_bt_convert_addr_type_to_string(address, device_address->addr);
device_path = _bt_get_device_object_path(address);
- retv_if(device_path == NULL, BLUETOOTH_ERROR_NOT_CONNECTED);
- BT_INFO("device_path is created[%s]", device_path);
+ if (device_path == NULL)
+ return BLUETOOTH_ERROR_NOT_CONNECTED;
+ else
+ BT_INFO("device_path is created[%s]", device_path);
property_str = _bt_convert_property_to_string(property);
_bt_convert_addr_type_to_string(address, device_address->addr);
device_path = _bt_get_device_object_path(address);
- retv_if(device_path == NULL, BLUETOOTH_ERROR_NOT_CONNECTED);
- BT_INFO("device_path is created[%s]", device_path);
+ if (device_path == NULL)
+ return BLUETOOTH_ERROR_NOT_CONNECTED;
+ else
+ BT_INFO("device_path is created[%s]", device_path);
proxy = g_dbus_proxy_new_sync(conn, G_DBUS_PROXY_FLAGS_NONE,
NULL, BT_BLUEZ_NAME,