const char *interface, const char *method,
GError **err, GVariant *parameters)
{
-#ifdef TIZEN_PROFILE_WEARABLE
+#if defined(TIZEN_PROFILE_WEARABLE) || defined(TIZEN_PROFILE_IVI)
int timeout = 4000;
#else
int timeout = -1;
return BLUETOOTH_TELEPHONY_ERROR_NONE;
}
-#ifndef TIZEN_PROFILE_WEARABLE
+#if defined(TIZEN_PROFILE_WEARABLE) || defined(TIZEN_PROFILE_IVI)
static void __bluetooth_telephony_init_headset_state(void)
{
GVariant *reply;
goto fail;
}
-#ifndef TIZEN_PROFILE_WEARABLE
+#if defined(TIZEN_PROFILE_WEARABLE) || defined(TIZEN_PROFILE_IVI)
__bluetooth_telephony_init_headset_state();
#endif
g_variant_get(reply, "(b)", &status);
g_variant_unref(reply);
-#ifdef TIZEN_PROFILE_WEARABLE
+#if defined(TIZEN_PROFILE_WEARABLE) || defined(TIZEN_PROFILE_IVI)
if (status == TRUE && telephony_info.headset_state != BLUETOOTH_STATE_PLAYING)
telephony_info.headset_state = BLUETOOTH_STATE_PLAYING;
#endif
%define _servicedir multi-user.target.wants
%endif
+%if "%{?profile}" == "ivi"
+export CFLAGS="$CFLAGS -DTIZEN_PROFILE_IVI"
+%define _servicefile packaging/bluetooth-frwk-wearable.service
+%define _servicedir multi-user.target.wants
+%endif
+
%ifarch x86_64
export CFLAGS="$CFLAGS -Wall -g -fvisibility=hidden -fPIC"
%else