From cac184bc4bb7ccc45af1e2f744935ae1c2af883b Mon Sep 17 00:00:00 2001 From: Hyuk Lee Date: Tue, 21 Jun 2016 14:07:23 +0900 Subject: Add the GATT support check Change-Id: I6726b3eca849bc1165716ac37c1bb8ef92cdcc6b Signed-off-by: Hyuk Lee --- src/bluetooth-gatt.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/bluetooth-gatt.c b/src/bluetooth-gatt.c index cfbdf2a..be65794 100644 --- a/src/bluetooth-gatt.c +++ b/src/bluetooth-gatt.c @@ -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); -- cgit v1.2.3