gboolean pending = FALSE;
GIOChannel *io_chan = bt_hf_info->io_chan;
- if (send_flag) {
+ if (send_flag)
pending = TRUE;
- }
+
__bt_hf_agent_add_queue(bt_hf_info->context, data, count, pending);
if (pending)
if (vconf_get_int(VCONFKEY_BT_DEVICE, &bt_device_state) == 0) {
DBG("BT device state is : 0x%X", bt_device_state);
bt_device_state |= VCONFKEY_BT_DEVICE_AG_CONNECTED;
- if (vconf_set_int(VCONFKEY_BT_DEVICE, bt_device_state) != 0) {
+ if (vconf_set_int(VCONFKEY_BT_DEVICE, bt_device_state) != 0)
ERR("vconf_set_int failed");
- }
} else {
ERR("vconf_get_int failed");
}
if (vconf_get_int(VCONFKEY_BT_DEVICE, &bt_device_state) == 0) {
DBG("BT device state is : 0x%X", bt_device_state);
bt_device_state |= VCONFKEY_BT_DEVICE_AG_CONNECTED;
- if (vconf_set_int(VCONFKEY_BT_DEVICE, bt_device_state) != 0) {
+
+ if (vconf_set_int(VCONFKEY_BT_DEVICE, bt_device_state) != 0)
ERR("vconf_set_int failed");
- }
} else {
ERR("vconf_get_int failed");
}
if (vconf_get_int(VCONFKEY_BT_DEVICE, &bt_device_state) == 0) {
DBG("BT device state is : 0x%X", bt_device_state);
bt_device_state ^= VCONFKEY_BT_DEVICE_AG_CONNECTED;
- if (vconf_set_int(VCONFKEY_BT_DEVICE, bt_device_state) != 0) {
+
+ if (vconf_set_int(VCONFKEY_BT_DEVICE, bt_device_state) != 0)
ERR("vconf_set_int failed");
- }
} else {
ERR("vconf_get_int failed");
}