Add HFP HF API : bt_hf_request_call_status_info_list()
[platform/core/connectivity/bluetooth-frwk.git] / include / bluetooth-audio-api.h
index 9fb39dd..6fadb5c 100644 (file)
@@ -87,6 +87,11 @@ typedef enum {
        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.
@@ -207,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;
@@ -255,6 +270,8 @@ 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);