X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=include%2Fbluetooth-audio-api.h;h=6fadb5c2c00082e0708c7be1909a144fdd99f816;hb=e3503dd377cadd114917a37fd27f25967a315606;hp=000bc1840415e22ba5d13d2bf202716c03f24ac7;hpb=449d38c6b737be52e1e166ed281bf8c778847e62;p=platform%2Fcore%2Fconnectivity%2Fbluetooth-frwk.git diff --git a/include/bluetooth-audio-api.h b/include/bluetooth-audio-api.h index 000bc18..6fadb5c 100755 --- a/include/bluetooth-audio-api.h +++ b/include/bluetooth-audio-api.h @@ -61,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 { @@ -75,14 +82,19 @@ 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; +typedef enum { + BLUETOOTH_A2DP_SOURCE, + BLUETOOTH_A2DP_SINK, +} bluetooth_audio_role_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. @@ -200,6 +212,16 @@ int bluetooth_ag_get_headset_volume(unsigned int *speaker_gain); */ int bluetooth_ag_set_speaker_gain(unsigned int speaker_gain); +/** + * @brief The function bluetooth_audio_select_role is called to set + * A2DP to Source or Sink. + * + * @param[in] role SINK/SOURCE. + * @return int Zero on Success or reason for error if any. + * + */ +int bluetooth_audio_select_role(bluetooth_audio_role_t role); + typedef struct { int event; int result; @@ -248,12 +270,16 @@ int bluetooth_hf_free_call_list(bt_hf_call_list_s *call_list); int bluetooth_hf_request_call_list(bt_hf_call_list_s **call_list); +int bluetooth_hf_request_call_list_async(void); + int bluetooth_hf_get_codec(unsigned int *codec_id); int bluetooth_hf_get_audio_connected(unsigned int *audio_connected); int bluetooth_hf_is_connected(gboolean *hf_connected); +int bluetooth_hf_is_ibr_supported(gboolean*ibr_supported); + #ifdef __cplusplus } #endif /*__cplusplus*/