Add HfBatteryLevelChanged event
[platform/core/connectivity/bluetooth-frwk.git] / include / bluetooth-telephony-api.h
old mode 100755 (executable)
new mode 100644 (file)
index f0f7101..060a7ef
@@ -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.
  *