BLUETOOTH_CALL_STATE_ERROR,
} bt_telephony_call_state_t;
+typedef enum {
+ BLUETOOTH_AGENT_ERROR_NONE,
+ BLUETOOTH_AGENT_ERROR_INTERNAL,
+ BLUETOOTH_AGENT_ERROR_NOT_AVAILABLE,
+ BLUETOOTH_AGENT_ERROR_NOT_CONNECTED,
+ BLUETOOTH_AGENT_ERROR_BUSY,
+ BLUETOOTH_AGENT_ERROR_INVALID_PARAM,
+ BLUETOOTH_AGENT_ERROR_ALREADY_EXSIST,
+ BLUETOOTH_AGENT_ERROR_ALREADY_CONNECTED,
+ BLUETOOTH_AGENT_ERROR_NO_MEMORY,
+ BLUETOOTH_AGENT_ERROR_I_O_ERROR,
+ BLUETOOTH_AGENT_ERROR_OPERATION_NOT_AVAILABLE,
+ BLUETOOTH_AGENT_ERROR_NO_CALL_LOGS,
+ BLUETOOTH_AGENT_ERROR_INVALID_MEMORY_INDEX,
+ BLUETOOTH_AGENT_ERROR_INVALID_CHLD_INDEX,
+ BLUETOOTH_AGENT_ERROR_BATTERY_STATUS,
+ BLUETOOTH_AGENT_ERROR_SIGNAL_STATUS,
+ BLUETOOTH_AGENT_ERROR_NOT_SUPPORTED,
+ BLUETOOTH_AGENT_ERROR_INVALID_NUMBER,
+ BLUETOOTH_AGENT_ERROR_APPLICATION,
+ BLUETOOTH_AGENT_ERROR_INVALID_DTMF,
+} bluetooth_telephony_agent_error_t;
+
typedef struct {
unsigned int call_id;
bt_telephony_call_state_t call_status;
* @return int Zero on Success or reason for error if any.
*
*/
- int bluetooth_telephony_is_nrec_enabled(gboolean *status);
+int bluetooth_telephony_is_nrec_enabled(gboolean *status);
/**
* @brief The function bluetooth_telephony_is_nrec_enabled to check
* @return int Zero on Success or reason for error if any.
*
*/
- int bluetooth_telephony_is_wbs_mode(gboolean *status);
+int bluetooth_telephony_is_wbs_mode(gboolean *status);
/**
* @brief This function send XSAT vendor specific AT command
*
* @return int Zero on Success or reason for error if any.
*/
- int bluetooth_telephony_send_vendor_cmd(const char *cmd);
+int bluetooth_telephony_send_vendor_cmd(const char *cmd);
/**
*
* @return int Zero on Success or reason for error if any.
*/
- int bluetooth_telephony_start_voice_recognition(void);
+int bluetooth_telephony_start_voice_recognition(void);
/**
* @brief This function sends request to disable voice recognition feature
*
* @return int Zero on Success or reason for error if any.
*/
- int bluetooth_telephony_stop_voice_recognition(void);
+int bluetooth_telephony_stop_voice_recognition(void);
/**
*/
int bluetooth_telephony_is_connected(gboolean *ag_connected);
+/**
+ * @brief The function bluetooth_telephony_set_active_headset is called to select
+ * the active headset device for AG role if more than one headset is connected.
+ *
+ * @param[in] remote_addr Remote Addr.
+ * @return int Zero on Success or reason for error if any.
+ *
+ */
+int bluetooth_telephony_set_active_headset(const char *remote_addr);
+
#ifdef __cplusplus
}
#endif /*__cplusplus*/