Add the GATT support check 98/75698/1 accepted/tizen/common/20160621.184613 accepted/tizen/ivi/20160622.021654 accepted/tizen/mobile/20160622.021606 accepted/tizen/tv/20160622.021620 accepted/tizen/wearable/20160622.021638 submit/tizen/20160621.071537
authorHyuk Lee <hyuk0512.lee@samsung.com>
Tue, 21 Jun 2016 05:07:23 +0000 (14:07 +0900)
committerHyuk Lee <hyuk0512.lee@samsung.com>
Tue, 21 Jun 2016 05:07:50 +0000 (14:07 +0900)
Change-Id: I6726b3eca849bc1165716ac37c1bb8ef92cdcc6b
Signed-off-by: Hyuk Lee <hyuk0512.lee@samsung.com>
src/bluetooth-gatt.c

index cfbdf2ae6e37155247f6c952f60ae578f3e2ba8f..be65794fb6348f58c7a17ff30410164344972626 100644 (file)
@@ -2141,6 +2141,7 @@ int bt_gatt_server_set_characteristic_notification_state_change_cb(bt_gatt_h gat
 {
        bt_gatt_characteristic_s *chr = (bt_gatt_characteristic_s *)gatt_handle;
 
+       BT_CHECK_GATT_SUPPORT();
        BT_CHECK_INIT_STATUS();
        BT_CHECK_GATT_SERVER_INIT_STATUS();
        BT_CHECK_INPUT_PARAMETER(gatt_handle);
@@ -2336,6 +2337,7 @@ int bt_gatt_server_notify_characteristic_changed_value(bt_gatt_h characteristic,
        bluetooth_device_address_t addr_hex = { {0,} };
        int ret = BT_ERROR_NONE;
 
+       BT_CHECK_GATT_SUPPORT();
        BT_CHECK_INIT_STATUS();
        BT_CHECK_GATT_SERVER_INIT_STATUS();
        BT_CHECK_INPUT_PARAMETER(characteristic);
@@ -2378,6 +2380,7 @@ int bt_gatt_server_set_write_value_requested_cb(bt_gatt_h gatt_handle,
        bt_gatt_characteristic_s *chr = (bt_gatt_characteristic_s *)gatt_handle;
        bt_gatt_descriptor_s *desc = (bt_gatt_descriptor_s*)gatt_handle;
 
+       BT_CHECK_GATT_SUPPORT();
        BT_CHECK_INIT_STATUS();
        BT_CHECK_GATT_SERVER_INIT_STATUS();
        BT_CHECK_INPUT_PARAMETER(gatt_handle);