Modify the supported check logic for common gatt functions 02/198902/1 accepted/tizen/unified/20190201.061300 submit/tizen/20190131.014259
authorDoHyun Pyun <dh79.pyun@samsung.com>
Thu, 31 Jan 2019 02:24:35 +0000 (11:24 +0900)
committerDoHyun Pyun <dh79.pyun@samsung.com>
Thu, 31 Jan 2019 02:24:35 +0000 (11:24 +0900)
Change-Id: I9e0ca1fa78a0439f6740d219ed16944f0d0f52dd
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
src/bluetooth-gatt.c

index 3407235..115a750 100644 (file)
@@ -1899,7 +1899,7 @@ int bt_gatt_service_create(const char *uuid, bt_gatt_service_type_e type,
 {
        bt_gatt_service_s *svc;
 
-       BT_CHECK_GATT_SERVER_SUPPORT();
+       BT_CHECK_GATT_SUPPORT();
        BT_CHECK_INIT_STATUS();
 
        BT_CHECK_INPUT_PARAMETER(uuid);
@@ -2194,7 +2194,7 @@ int bt_gatt_characteristic_create(const char *uuid, int permissions,
        int ret = BT_ERROR_NONE;
        bt_gatt_characteristic_s *chr = NULL;
 
-       BT_CHECK_GATT_SERVER_SUPPORT();
+       BT_CHECK_GATT_SUPPORT();
        BT_CHECK_INIT_STATUS();
 
        BT_CHECK_INPUT_PARAMETER(uuid);
@@ -2486,7 +2486,7 @@ int bt_gatt_descriptor_create(const char *uuid, int permissions,
        int ret = BT_ERROR_NONE;
        bt_gatt_descriptor_s *desc = NULL;
 
-       BT_CHECK_GATT_SERVER_SUPPORT();
+       BT_CHECK_GATT_SUPPORT();
        BT_CHECK_INIT_STATUS();
 
        BT_CHECK_INPUT_PARAMETER(uuid);