Set connectable and visible mode in TV profile 01/44801/1
authorDoHyun Pyun <dh79.pyun@samsung.com>
Tue, 28 Jul 2015 04:09:45 +0000 (13:09 +0900)
committerDoHyun Pyun <dh79.pyun@samsung.com>
Tue, 28 Jul 2015 04:09:45 +0000 (13:09 +0900)
Change-Id: I45a8cdce9eaab4c1f6a0b16a2e35f1ae40382dae
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
bt-service/bt-service-adapter.c
packaging/bluetooth-frwk.spec

index 977b34f..c671e04 100644 (file)
@@ -468,7 +468,7 @@ static void __bt_phone_name_changed_cb(keynode_t *node, void *data)
        }
 }
 
-#ifndef TIZEN_WEARABLE
+#ifdef TIZEN_MOBILE
 static void __bt_set_visible_mode(void)
 {
        int timeout = 0;
@@ -519,10 +519,15 @@ static int __bt_set_enabled(void)
                return BLUETOOTH_ERROR_INTERNAL;
        }
 
-#ifndef TIZEN_WEARABLE
+#ifdef TIZEN_MOBILE
        __bt_set_visible_mode();
+#else
+#ifdef TIZEN_TV
+       if (_bt_set_discoverable_mode(
+               BLUETOOTH_DISCOVERABLE_MODE_GENERAL_DISCOVERABLE, 0)!= BLUETOOTH_ERROR_NONE)
+                       BT_ERR("Fail to set discoverable mode");
+#endif
 #endif
-
        __bt_set_local_name();
 
        /* Update Bluetooth Status to notify other modules */
index 3433c37..baf3423 100644 (file)
@@ -114,7 +114,7 @@ export FFLAGS="$FFLAGS -DTIZEN_DEBUG_ENABLE"
 %define _servicedir starter.target.wants
 
 %if "%{?profile}" == "mobile"
-export CFLAGS="$CFLAGS -DTIZEN_NETWORK_TETHERING_ENABLE -DTIZEN_BT_FLIGHTMODE_ENABLED -D__TIZEN_MOBILE__ -DTIZEN_TELEPHONY_ENABLED"
+export CFLAGS="$CFLAGS -DTIZEN_NETWORK_TETHERING_ENABLE -DTIZEN_BT_FLIGHTMODE_ENABLED -DTIZEN_MOBILE -DTIZEN_TELEPHONY_ENABLED"
 %define _servicefile packaging/bluetooth-frwk-mobile.service
 %define _servicedir multi-user.target.wants
 %endif