#define BT_TELEPHONY_CHECK_ENABLED() \
do { \
- if (bluetooth_check_adapter() == BLUETOOTH_ADAPTER_DISABLED) \
- { \
+ if (bluetooth_check_adapter() == BLUETOOTH_ADAPTER_DISABLED) { \
BT_ERR("BT is not enabled"); \
return BLUETOOTH_TELEPHONY_ERROR_NOT_ENABLED; \
} \
static gboolean is_initialized = FALSE;
#define BT_TELEPHONY_CHECK_INITIALIZED() \
do { \
- if (is_initialized == FALSE) \
- { \
+ if (is_initialized == FALSE) { \
BT_ERR("Bluetooth telephony not initilized"); \
return BLUETOOTH_TELEPHONY_ERROR_NOT_INITIALIZED; \
} \
const char *interface, const char *method,
GError **err, GVariant *parameters)
{
-#ifdef TIZEN_WEARABLE
+#if defined(TIZEN_PROFILE_WEARABLE) || defined(TIZEN_PROFILE_IVI)
int timeout = 4000;
#else
int timeout = -1;
return BLUETOOTH_TELEPHONY_ERROR_NONE;
}
-#ifndef TIZEN_WEARABLE
+#if defined(TIZEN_PROFILE_WEARABLE) || defined(TIZEN_PROFILE_IVI)
static void __bluetooth_telephony_init_headset_state(void)
{
GVariant *reply;
goto fail;
}
-#ifndef TIZEN_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_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