BLE Gatt Server Socket notify implementation.
[platform/core/connectivity/bluetooth-frwk.git] / bt-oal / bluez_hal / src / bt-hal-gatt.c
index d34d339..33378b8 100644 (file)
@@ -255,6 +255,16 @@ static void __bt_hal_handle_gatt_server_acquire_write_requested(void *buf, uint1
                bt_gatt_callbacks->server->request_acquire_write_cb(ev->mtu, ev->conn_id, ev->trans_id, ev->char_handl, (bt_bdaddr_t *)ev->bdaddr);
 }
 
+static void __bt_hal_handle_gatt_server_acquire_notify_requested(void *buf, uint16_t len)
+{
+       struct hal_ev_gatt_server_acquire_notify *ev = buf;
+
+       DBG("acquire notify  requested event recived");
+
+       if (bt_gatt_callbacks->server->request_acquire_notify_cb)
+               bt_gatt_callbacks->server->request_acquire_notify_cb(ev->mtu, ev->conn_id, ev->trans_id, ev->char_handl);
+}
+
 static void __bt_hal_handle_gatt_server_indicate_confirmed(void *buf, uint16_t len)
 {
        struct hal_ev_gatt_server_indicate_cfm *ev = buf;
@@ -393,6 +403,10 @@ static void __bt_hal_gatt_events(int message, void *buf, uint16_t len)
                __bt_hal_handle_gatt_server_acquire_write_requested(buf, len);
                break;
        }
+       case HAL_EV_GATT_SERVER_ACQUIRE_NOTIFY_RES:{
+               __bt_hal_handle_gatt_server_acquire_notify_requested(buf, len);
+               break;
+       }
 
        default:
                DBG("Event Currently not handled!!");