resolved the code rule warnings
[platform/core/connectivity/bluetooth-frwk.git] / bt-oal / bluez_hal / src / bt-hal-hf.c
index 8c931f8..d1524b1 100644 (file)
@@ -77,14 +77,14 @@ static bt_status_t hf_stop_voice_recognition(bt_bdaddr_t *bd_addr)
 }
 
 static bt_status_t hf_voume_control(bthf_volume_type_t type, int volume,
-                                                       bt_bdaddr_t *bd_addr)
+               bt_bdaddr_t *bd_addr)
 {
        DBG("");
        return BT_STATUS_UNSUPPORTED;
 }
 
 static bt_status_t hf_device_status_notification(bthf_network_state_t ntk_state,
-                          bthf_service_type_t svc_type, int signal, int batt_chg)
+               bthf_service_type_t svc_type, int signal, int batt_chg)
 {
        DBG("");
        return BT_STATUS_UNSUPPORTED;
@@ -97,9 +97,9 @@ static bt_status_t hf_cops_response(const char *cops, bt_bdaddr_t *bd_addr)
 }
 
 static bt_status_t hf_cind_response(int svc, int num_active, int num_held,
-                                     bthf_call_state_t call_setup_state,
-                                     int signal, int roam, int batt_chg,
-                                                    bt_bdaddr_t *bd_addr)
+               bthf_call_state_t call_setup_state,
+               int signal, int roam, int batt_chg,
+               bt_bdaddr_t *bd_addr)
 {
        DBG("");
        return BT_STATUS_UNSUPPORTED;
@@ -112,23 +112,23 @@ static bt_status_t hf_formatted_at_response(const char *rsp, bt_bdaddr_t *bd_add
 }
 
 static bt_status_t hf_at_response(bthf_at_response_t response_code,
-                                    int error_code, bt_bdaddr_t *bd_addr)
+               int error_code, bt_bdaddr_t *bd_addr)
 {
        DBG("");
        return BT_STATUS_UNSUPPORTED;
 }
 
 static bt_status_t hf_clcc_response(int index, bthf_call_direction_t dir,
-                               bthf_call_state_t state, bthf_call_mode_t mode,
-                               bthf_call_mpty_type_t mpty, const char *number,
-                               bthf_call_addrtype_t type, bt_bdaddr_t *bd_addr)
+               bthf_call_state_t state, bthf_call_mode_t mode,
+               bthf_call_mpty_type_t mpty, const char *number,
+               bthf_call_addrtype_t type, bt_bdaddr_t *bd_addr)
 {
        DBG("");
        return BT_STATUS_UNSUPPORTED;
 }
 
 static bt_status_t hf_phone_state_change(int num_active, int num_held, bthf_call_state_t call_setup_state,
-                                            const char *number, bthf_call_addrtype_t type)
+               const char *number, bthf_call_addrtype_t type)
 {
        DBG("");
        return BT_STATUS_UNSUPPORTED;
@@ -136,18 +136,18 @@ static bt_status_t hf_phone_state_change(int num_active, int num_held, bthf_call
 
 static void __bt_hal_handle_hf_conn_state(void *buf, uint16_t len)
 {
-        struct hal_ev_handsfree_conn_state *ev = buf;
+       struct hal_ev_handsfree_conn_state *ev = buf;
 
-        if (bt_hal_hf_cbacks->connection_state_cb)
-                bt_hal_hf_cbacks->connection_state_cb(ev->state, (bt_bdaddr_t *) ev->bdaddr);
+       if (bt_hal_hf_cbacks->connection_state_cb)
+               bt_hal_hf_cbacks->connection_state_cb(ev->state, (bt_bdaddr_t *) ev->bdaddr);
 }
 
 static void __bt_hal_handle_hf_audio_conn_state(void *buf, uint16_t len)
 {
-        struct hal_ev_handsfree_audio_state *ev = buf;
+       struct hal_ev_handsfree_audio_state *ev = buf;
 
-        if (bt_hal_hf_cbacks->audio_state_cb)
-                bt_hal_hf_cbacks->audio_state_cb(ev->state, (bt_bdaddr_t *) ev->bdaddr);
+       if (bt_hal_hf_cbacks->audio_state_cb)
+               bt_hal_hf_cbacks->audio_state_cb(ev->state, (bt_bdaddr_t *) ev->bdaddr);
 }
 
 static void __bt_hal_handle_hf_events(int message, void *buf, uint16_t len)
@@ -155,7 +155,7 @@ static void __bt_hal_handle_hf_events(int message, void *buf, uint16_t len)
        DBG("+");
        if (!interface_ready())
                return;
-       switch(message) {
+       switch (message) {
        case HAL_EV_HANDSFREE_CONN_STATE:
                DBG("Event: HAL_EV_HANDSFREE_CONN_STATE");
                __bt_hal_handle_hf_conn_state(buf, len);
@@ -199,23 +199,23 @@ static void cleanup(void)
 }
 
 static bthf_interface_t bthf_if = {
-    .size = sizeof(bthf_if),
-    .init = init,
-    .connect = hf_connect,
-    .disconnect = hf_disconnect,
-    .connect_audio = hf_connect_audio,
-    .disconnect_audio = hf_disconnect_audio,
-    .start_voice_recognition = hf_start_voice_recognition,
-    .stop_voice_recognition = hf_stop_voice_recognition,
-    .volume_control = hf_voume_control,
-    .device_status_notification = hf_device_status_notification,
-    .cops_response = hf_cops_response,
-    .cind_response = hf_cind_response,
-    .formatted_at_response = hf_formatted_at_response,
-    .at_response = hf_at_response,
-    .clcc_response = hf_clcc_response,
-    .phone_state_change = hf_phone_state_change,
-    .cleanup = cleanup
+       .size = sizeof(bthf_if),
+       .init = init,
+       .connect = hf_connect,
+       .disconnect = hf_disconnect,
+       .connect_audio = hf_connect_audio,
+       .disconnect_audio = hf_disconnect_audio,
+       .start_voice_recognition = hf_start_voice_recognition,
+       .stop_voice_recognition = hf_stop_voice_recognition,
+       .volume_control = hf_voume_control,
+       .device_status_notification = hf_device_status_notification,
+       .cops_response = hf_cops_response,
+       .cind_response = hf_cind_response,
+       .formatted_at_response = hf_formatted_at_response,
+       .at_response = hf_at_response,
+       .clcc_response = hf_clcc_response,
+       .phone_state_change = hf_phone_state_change,
+       .cleanup = cleanup
 };
 
 /*******************************************************************************
@@ -229,5 +229,5 @@ static bthf_interface_t bthf_if = {
 *******************************************************************************/
 const bthf_interface_t *bt_get_hf_interface()
 {
-    return &bthf_if;
+       return &bthf_if;
 }