Change-Id: I45a8cdce9eaab4c1f6a0b16a2e35f1ae40382dae
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
}
}
-#ifndef TIZEN_WEARABLE
+#ifdef TIZEN_MOBILE
static void __bt_set_visible_mode(void)
{
int timeout = 0;
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 */
%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