Modify build feature names as Tizen 3.0 build option naming rule
[platform/core/connectivity/bluetooth-frwk.git] / bt-core / bt-core-adapter.c
index a502856..00b9c5c 100644 (file)
@@ -173,7 +173,7 @@ int _bt_enable_adapter(void)
 #endif
 
        __bt_core_set_status(BT_ACTIVATING);
-#ifdef USB_BLUETOOTH
+#ifdef TIZEN_FEATURE_BT_USB_DONGLE
        char *argv_up[] = {"/usr/bin/hciconfig", "/usr/bin/hciconfig", "hci0", "up", NULL};
        ret = __execute_command("/usr/bin/hciconfig", argv_up);
 #else
@@ -181,7 +181,7 @@ int _bt_enable_adapter(void)
 #endif
        if (ret < 0) {
                BT_ERR("running script failed");
-#ifdef USB_BLUETOOTH
+#ifdef TIZEN_FEATURE_BT_USB_DONGLE
                char *argv_down[] = {"/usr/bin/hciconfig", "/usr/bin/hciconfig", "hci0", "down", NULL};
                ret = __execute_command("/usr/bin/hciconfig", argv_down);
 #else
@@ -219,7 +219,7 @@ int _bt_disable_adapter(void)
        status = _bt_core_get_status();
        if (status == BT_ACTIVATING) {
                /* Forcely terminate */
-#ifdef USB_BLUETOOTH
+#ifdef TIZEN_FEATURE_BT_USB_DONGLE
                char *argv_down[] = {"/usr/bin/hciconfig", "/usr/bin/hciconfig", "hci0", "down", NULL};
                if (__execute_command("/usr/bin/hciconfig", argv_down) < 0)
                        BT_ERR("running script failed");
@@ -254,7 +254,7 @@ int _bt_disable_adapter(void)
        }
 
        __bt_core_set_status(BT_DEACTIVATING);
-#ifdef USB_BLUETOOTH
+#ifdef TIZEN_FEATURE_BT_USB_DONGLE
        char *argv_down[] = {"/usr/bin/hciconfig", "/usr/bin/hciconfig", "hci0", "down", NULL};
        if (__execute_command("/usr/bin/hciconfig", argv_down) < 0) {
                BT_ERR("running script failed");
@@ -310,7 +310,7 @@ int _bt_enable_adapter_le(void)
        if (status == BT_DEACTIVATED) {
                __bt_core_set_le_status(BT_LE_ACTIVATING);
                BT_DBG("Activate BT");
-#ifdef USB_BLUETOOTH
+#ifdef TIZEN_FEATURE_BT_USB_DONGLE
                char *argv_up[] = {"/usr/bin/hciconfig", "/usr/bin/hciconfig", "hci0", "up", NULL};
                ret = __execute_command("/usr/bin/hciconfig", argv_up);
 #else
@@ -318,7 +318,7 @@ int _bt_enable_adapter_le(void)
 #endif
                if (ret < 0) {
                        BT_ERR("running script failed");
-#ifdef USB_BLUETOOTH
+#ifdef TIZEN_FEATURE_BT_USB_DONGLE
                        char *argv_down[] = {"/usr/bin/hciconfig", "/usr/bin/hciconfig", "hci0", "down", NULL};
                        ret = __execute_command("/usr/bin/hciconfig", argv_down);
 #else
@@ -332,7 +332,7 @@ int _bt_enable_adapter_le(void)
                __bt_core_set_le_status(BT_LE_ACTIVATED);
                g_timeout_add(BT_CORE_IDLE_TERM_TIME, __bt_core_idle_terminate, NULL);
        }
-#ifdef HPS_FEATURE
+#ifdef TIZEN_FEATURE_BT_HPS
        ret = _bt_core_start_httpproxy();
        if (ret < 0)
                BT_ERR("_bt_core_start_httpproxy() failed");
@@ -352,7 +352,7 @@ int _bt_disable_adapter_le(void)
        retv_if(le_status == BT_LE_DEACTIVATED, 0);
        retv_if(le_status == BT_LE_DEACTIVATING, -1);
 
-#ifdef HPS_FEATURE
+#ifdef TIZEN_FEATURE_BT_HPS
        _bt_core_stop_httpproxy();
 #endif
 
@@ -361,7 +361,7 @@ int _bt_disable_adapter_le(void)
 
        if (status == BT_DEACTIVATED) {
                __bt_core_set_le_status(BT_LE_DEACTIVATING);
-#ifdef USB_BLUETOOTH
+#ifdef TIZEN_FEATURE_BT_USB_DONGLE
                char *argv_down[] = {"/usr/bin/hciconfig", "/usr/bin/hciconfig", "hci0", "down", NULL};
                if (__execute_command("/usr/bin/hciconfig", argv_down) < 0) {
 #else