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;
{
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;
}
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);