Modify build feature names as Tizen 3.0 build option naming rule
[platform/core/connectivity/bluetooth-frwk.git] / bt-api / bt-gatt-service.c
index 2b3af4c..d33e0f3 100644 (file)
@@ -189,7 +189,7 @@ static gchar *app_path = NULL;
 #define GATT_CHAR_INTERFACE            "org.bluez.GattCharacteristic1"
 #define GATT_DESC_INTERFACE            "org.bluez.GattDescriptor1"
 
-#ifdef HPS_FEATURE
+#ifdef TIZEN_FEATURE_BT_HPS
 #define BT_HPS_OBJECT_PATH "/org/projectx/httpproxy"
 #define BT_HPS_INTERFACE_NAME "org.projectx.httpproxy_service"
 #define PROPERTIES_CHANGED "PropertiesChanged"
@@ -234,7 +234,7 @@ static void __bt_gatt_close_gdbus_connection(void)
        BT_DBG("-");
 }
 
-#ifdef HPS_FEATURE
+#ifdef TIZEN_FEATURE_BT_HPS
 static int __bt_send_event_to_hps(int event, GVariant *var)
 {
        GError *error = NULL;
@@ -658,7 +658,7 @@ static void __bt_gatt_char_method_call(GDBusConnection *connection,
                if (svc_info != NULL) {
                        read_req.service_handle = g_strdup(svc_info->serv_path);
                        user_info = _bt_get_user_data(BT_COMMON);
-#ifdef HPS_FEATURE
+#ifdef TIZEN_FEATURE_BT_HPS
                        GVariant *param = NULL;
 #endif
 
@@ -677,7 +677,7 @@ static void __bt_gatt_char_method_call(GDBusConnection *connection,
                                        BLUETOOTH_ERROR_NONE, &read_req,
                                        user_info->cb, user_info->user_data);
                        }
-#ifdef HPS_FEATURE
+#ifdef TIZEN_FEATURE_BT_HPS
                        param = g_variant_new("(sssyq)",
                                        read_req.att_handle,
                                        read_req.service_handle,
@@ -705,7 +705,7 @@ static void __bt_gatt_char_method_call(GDBusConnection *connection,
                int len = 0;
                struct gatt_service_info *svc_info = NULL;
                struct gatt_req_info *req_info = NULL;
-#ifdef HPS_FEATURE
+#ifdef TIZEN_FEATURE_BT_HPS
                GVariant *param = NULL;
 #endif
 
@@ -762,7 +762,7 @@ static void __bt_gatt_char_method_call(GDBusConnection *connection,
                                BLUETOOTH_ERROR_NONE, &value_change,
                                user_info->cb, user_info->user_data);
                }
-#ifdef HPS_FEATURE
+#ifdef TIZEN_FEATURE_BT_HPS
                if (len > 0) {
                        gchar *svc_path;
                        svc_path = g_strdup(svc_info->serv_path);