if (__execute_command("/usr/etc/bluetooth/bt-stack-down.sh", NULL) < 0) {
#endif
BT_ERR("running script failed");
- __bt_core_set_status( BT_ACTIVATED);
+ __bt_core_set_status(BT_ACTIVATED);
return -1;
}
GVariant *result = NULL;
char *adapter_path = NULL;
- if(conn == NULL)
+ if (conn == NULL)
return FALSE;
manager_proxy = g_dbus_proxy_new_sync(conn,
BT_INFO("bt_status = %d, bt_le_status = %d", bt_status, bt_le_status);
- if(bt_status & VCONFKEY_BT_STATUS_ON)
+ if (bt_status & VCONFKEY_BT_STATUS_ON)
__bt_core_set_status(BT_ACTIVATED);
- if(bt_le_status & VCONFKEY_BT_LE_STATUS_ON)
+ if (bt_le_status & VCONFKEY_BT_LE_STATUS_ON)
__bt_core_set_le_status(BT_ACTIVATED);
}
}
EVT_VAL_BT_LE_OFF) != ES_R_OK)
BT_ERR("Fail to set value");
- if (is_recovery_mode == TRUE)
- {
+ if (is_recovery_mode == TRUE) {
if (timer_id < 0)
timer_id = g_timeout_add(2000, (GSourceFunc)__bt_core_recovery_cb, NULL);
return;
}
_bt_set_flightmode_request(FALSE);
- if (flight_mode_value == 1 || power_saving_mode == 1){
+ if (flight_mode_value == 1 || power_saving_mode == 1) {
BT_DBG("Bt Core not terminated");
return;
}
int ps_mode_value = 0;
gboolean ret = FALSE;
- retv_if (vconf_get_int(BT_OFF_DUE_TO_FLIGHT_MODE,
+ retv_if(vconf_get_int(BT_OFF_DUE_TO_FLIGHT_MODE,
&flight_mode_value) != 0, FALSE);
- retv_if (vconf_get_int(BT_OFF_DUE_TO_POWER_SAVING_MODE,
+ retv_if(vconf_get_int(BT_OFF_DUE_TO_POWER_SAVING_MODE,
&ps_mode_value) != 0, FALSE);
if (flight_mode_value == 1 || ps_mode_value > 0) {
} \
} while (0)
-#define BT_FREE_PARAMS(IP1,IP2,IP3,IP4,OP) \
+#define BT_FREE_PARAMS(IP1, IP2, IP3, IP4, OP) \
do { \
if (IP1) \
g_array_free(IP1, TRUE); \
g_array_free(OP, TRUE); \
} while (0)
-#define BT_ALLOC_PARAMS(IP1,IP2,IP3,IP4,OP ) \
+#define BT_ALLOC_PARAMS(IP1, IP2, IP3, IP4, OP) \
do { \
IP1 = g_array_new(TRUE, TRUE, sizeof(gchar)); \
IP2 = g_array_new(TRUE, TRUE, sizeof(gchar)); \