Fix 64bit build error
[platform/core/connectivity/bluetooth-frwk.git] / include / bluetooth-telephony-api.h
index adc011e..060a7ef 100644 (file)
@@ -78,6 +78,11 @@ typedef struct {
        gchar *dtmf;
 } telephony_event_dtmf_t;
 
+typedef struct {
+       const gchar *remote_address;
+       guint battery_level;
+} telephony_event_hf_battery_level_t;
+
 typedef enum {
        BLUETOOTH_STATE_CONNECTED,
        BLUETOOTH_STATE_PLAYING,
@@ -133,6 +138,7 @@ typedef enum {
        BLUETOOTH_EVENT_TELEPHONY_SET_MIC_GAIN,
        BLUETOOTH_EVENT_TELEPHONY_NREC_CHANGED,
        BLUETOOTH_EVENT_TELEPHONY_VENDOR_AT_CMD,
+       BLUETOOTH_EVENT_TELEPHONY_HF_BATTERY_LEVEL_CHANGED,
 } bluetooth_telephony_event_type;
 
 typedef enum {
@@ -379,6 +385,18 @@ int bluetooth_telephony_get_headset_volume(unsigned int *speaker_gain);
 int bluetooth_telephony_set_speaker_gain(unsigned short speaker_gain);
 
 /**
+ * @brief      The function bluetooth_telephony_get_battery_level is called to get
+ *     the changed battery level on AG.
+ *
+ * @param[in]  remote_address  Remote Addr.
+ * @param[out] level                   Battery level.
+ * @return     int     Zero on Success or reason for error if any.
+ *
+ */
+int bluetooth_telephony_get_battery_level(
+                       const char *remote_address, unsigned int *level);
+
+/**
  * @brief      The function bluetooth_telephony_is_connected is called to get
  *     the connection state on AG.
  *
@@ -388,6 +406,16 @@ int bluetooth_telephony_set_speaker_gain(unsigned short speaker_gain);
  */
 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*/