X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=include%2Fbluetooth-audio-api.h;h=9fb39dd7589f45db2e5dc7a9e79b4a6889ca7333;hb=746add44a75b1d26885dea82fe90652bae4de57c;hp=72d7df265284041ab5e9e96a3dec789f255c8216;hpb=f8cd843634b70ab96c83bd552606c197fcf5decc;p=platform%2Fcore%2Fconnectivity%2Fbluetooth-frwk.git diff --git a/include/bluetooth-audio-api.h b/include/bluetooth-audio-api.h old mode 100755 new mode 100644 index 72d7df2..9fb39dd --- a/include/bluetooth-audio-api.h +++ b/include/bluetooth-audio-api.h @@ -1,10 +1,5 @@ /* - * bluetooth-audio-api - * - * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved. - * - * Contact: Hocheol Seo - * GirishAshok Joshi + * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -25,8 +20,6 @@ #include #include -#include -#include #include #include "bluetooth-api.h" @@ -68,6 +61,13 @@ typedef enum { BLUETOOTH_AV_STATE_DISCONNECTED, } bt_av_conn_status_t; +typedef enum { + BLUETOOTH_HF_CIEV_BATTCHG, /* BT_HF_REMOTE_DEVICE_STATE_BATTERY_LEVEL */ + BLUETOOTH_HF_CIEV_SIGNAL, /* BT_HF_REMOTE_DEVICE_STATE_SIGNAL_STRENGTH */ + BLUETOOTH_HF_CIEV_SERVICE, /* BT_HF_REMOTE_DEVICE_STATE_NETWORK_SERVICE */ + BLUETOOTH_HF_VR_STATUS, /* BT_HF_REMOTE_DEVICE_STATE_VOICE_RECOGNITON */ +} bt_hf_ciev_device_state_t; + typedef void (*bt_audio_func_ptr) (int, bt_audio_event_param_t *, void *); typedef struct { @@ -82,14 +82,14 @@ typedef struct { } bt_audio_info_t; typedef enum { - BLUETOOTH_STATE_NONE = 0x0000, - BLUETOOTH_STATE_HEADSET_CONNECTED = 0x0004, - BLUETOOTH_STATE_A2DP_HEADSET_CONNECTED = 0x0010, + BLUETOOTH_STATE_NONE = 0x0000, + BLUETOOTH_STATE_HEADSET_CONNECTED = 0x0004, + BLUETOOTH_STATE_A2DP_HEADSET_CONNECTED = 0x0010, } bluetooth_device_state_t; /** * @brief The function bluetooth_audio_init called to initializes the Audio - * service to bluetoothD and Global data related to audio. + * service to bluetoothD and Global data related to audio. * @param[in] cb Callback function * @param[in] user_data Data sent by application, which will be * returned in event handler. @@ -158,6 +158,16 @@ int bluetooth_ag_disconnect(bluetooth_device_address_t *remote_address); int bluetooth_av_connect(bluetooth_device_address_t *remote_address); /** + * @brief The function bluetooth_av_source_connect is called to establish an AV Source + * connection with the specified device. + * + * @param[in] remote_address Bluetooth device address. + * @return int Zero on Success or reason for error if any. + * + */ +int bluetooth_av_source_connect(bluetooth_device_address_t *remote_address); + +/** * @brief The function bluetooth_av_disconnect is called to disconnect an * existing AV connection with the specified device. * @@ -168,6 +178,16 @@ int bluetooth_av_connect(bluetooth_device_address_t *remote_address); int bluetooth_av_disconnect(bluetooth_device_address_t *remote_address); /** + * @brief The function bluetooth_av_source_disconnect is called to disconnect an + * existing AV connection with the specified device. + * + * @param[in] remote_address Bluetooth device address. + * @return int Zero on Success or reason for error if any. + * + */ +int bluetooth_av_source_disconnect(bluetooth_device_address_t *remote_address); + +/** * @brief The function bluetooth_ag_get_headset_volume is called to get * the changed Volume on AG. * @@ -239,7 +259,9 @@ int bluetooth_hf_get_codec(unsigned int *codec_id); int bluetooth_hf_get_audio_connected(unsigned int *audio_connected); -int bluetooth_hf_is_hf_connected(gboolean *hf_connected); +int bluetooth_hf_is_connected(gboolean *hf_connected); + +int bluetooth_hf_is_ibr_supported(gboolean*ibr_supported); #ifdef __cplusplus }