/* Set VCONF Key for A2DP Connected status */
_bt_set_device_values(TRUE, VCONFKEY_BT_DEVICE_A2DP_HEADSET_CONNECTED);
+ /* Set readout notification of tts */
+#ifdef TIZEN_FEATURE_READOUT_NOTIFICATION
+ _bt_set_readout_notification_of_tts();
+#endif
+
/* Send A2DP(SRC Role) connected event to Application */
param = g_variant_new("(is)", result, addr);
_bt_send_event(BT_HEADSET_EVENT, BLUETOOTH_EVENT_AV_CONNECTED, param);
BT_ERR("vconf_set_int failed");
}
+#ifdef TIZEN_FEATURE_READOUT_NOTIFICATION
+void _bt_set_readout_notification_of_tts(void)
+{
+ int tts_setting;
+
+ if (vconf_get_int(VCONFKEY_TTS_SETTING_NOTIFICATION_TTS, &tts_setting) != 0) {
+ BT_ERR("vconf_get_int failed");
+ return;
+ }
+
+ BT_DBG("current value[%d]", tts_setting);
+
+ if (tts_setting == -1)
+ if (vconf_set_int(VCONFKEY_TTS_SETTING_NOTIFICATION_TTS, -1) != 0)
+ BT_ERR("vconf_set_int failed");
+}
+#endif
+
int _bt_get_ad_data_by_type(char *in_data, int in_len,
char in_type, char **data, int *data_len)
{
void _bt_set_device_values(gboolean connected, int state);
+#ifdef TIZEN_FEATURE_READOUT_NOTIFICATION
+void _bt_set_readout_notification_of_tts(void);
+#endif
+
void _bt_string_to_uuid(char *str, service_uuid_t *p_uuid);
int _bt_get_ad_data_by_type(char *in_data, int in_len,