Ignore vconfkey value change for AVC mode on
[platform/core/connectivity/bluetooth-frwk.git] / bt-api / bt-adapter.c
index e345387..6a0ccb2 100644 (file)
@@ -113,9 +113,9 @@ BT_EXPORT_API int bluetooth_enable_adapter(void)
 BT_EXPORT_API int bluetooth_set_battery_monitor_state(bool state)
 {
        BT_INFO("Setting vconf key");
-       if (vconf_set_int(VCONFKEY_BATTERY_MONITOR_STATUS, state) != 0)
+       if (vconf_set_bool(VCONFKEY_BATTERY_MONITOR_STATUS, state) != 0)
        {
-               BT_ERR("vconf_set_int failed");
+               BT_ERR("vconf_set_bool failed");
                return BLUETOOTH_ERROR_INTERNAL;
        }
        return BLUETOOTH_ERROR_NONE;
@@ -125,8 +125,8 @@ BT_EXPORT_API int bluetooth_get_battery_monitor_state()
 {
        int state = 0;
        BT_INFO("Getting vconf key value");
-       if (vconf_get_int(VCONFKEY_BATTERY_MONITOR_STATUS, &state) != 0)
-               BT_ERR("vconf_get_int failed");
+       if (vconf_get_bool(VCONFKEY_BATTERY_MONITOR_STATUS, &state) != 0)
+               BT_ERR("vconf_get_bool failed");
        return state;
 }
 
@@ -192,7 +192,7 @@ BT_EXPORT_API int bluetooth_read_battery_data(bt_battery_data *data)
        BT_DBG("App-wise data transaction details:");
        for (GSList *l = data->atm_list; l != NULL; l = g_slist_next(l)) {
                bt_battery_app_data *t = (bt_battery_app_data *)(l->data);
-               BT_DBG("%ld %ld %d %d", (long int)(t->uid), (long int)(t->pid), t->rx_bytes, t->tx_bytes);
+               BT_DBG("%ld %ld %d %d %u", (long int)(t->uid), (long int)(t->pid), t->rx_bytes, t->tx_bytes, t->time);
        }
 
        BT_FREE_PARAMS(in_param1, in_param2, in_param3, in_param4, out_param);
@@ -550,7 +550,7 @@ BT_EXPORT_API int bluetooth_is_connectable(gboolean *is_connectable)
        BT_INIT_PARAMS();
        BT_ALLOC_PARAMS(in_param1, in_param2, in_param3, in_param4, out_param);
 
-       result = _bt_send_request(BT_BLUEZ_SERVICE, BT_IS_CONNECTABLE,
+       result = _bt_send_request(BT_BLUEZ_SERVICE, BT_GET_CONNECTABLE,
                in_param1, in_param2, in_param3, in_param4, &out_param);
 
        if (result == BLUETOOTH_ERROR_NONE)