fhub: Apply lastest FHUB4.0 bluetooth-agent
[platform/core/connectivity/bluetooth-agent.git] / hf-agent / bluetooth-hf-agent.h
index d544bae..bbac08a 100644 (file)
@@ -106,6 +106,8 @@ extern "C" {
 #define BT_HF_SERVICE_INTERFACE "org.tizen.HfApp"
 #define BT_HF_BLUEZ_OBJECT_PATH "/org/tizen/handsfree"
 #define BT_HF_BLUEZ_INTERFACE  "org.bluez.HandsfreeAgent"
+#define BT_PBAP_CLIENT_OBJECT_PATH "/org/tizen/pbap_client"
+
 #define BLUEZ_SERVICE_NAME "org.bluez"
 #define BLUEZ_HF_INTERFACE_NAME "org.bluez.HandsfreeGateway"
 #define BLUEZ_PROFILE_MGMT_INTERFACE "org.bluez.ProfileManager1"
@@ -259,6 +261,17 @@ typedef enum {
        BT_HF_CALL_STAT_WAITING,
 } bt_hf_call_status_t;
 
+typedef enum {
+       BT_HF_DA_CALL_STAT_CALL_STARTED,
+       BT_HF_DA_CALL_STAT_CALL_ENDED,
+       BT_HF_DA_CALL_STAT_CALL_IDLE,
+       BT_HF_DA_CALL_STAT_CALL_TERMINATED,
+       BT_HF_DA_CALL_STAT_CALL_WAITING,
+       BT_HF_DA_CALL_STAT_CALL_SETUP_INCOMING,
+       BT_HF_DA_CALL_STAT_CALL_SETUP_DIALING,
+       BT_HF_DA_CALL_STAT_CALL_SETUP_ALERTING,
+} bt_hf_da_call_status_t;
+
 typedef struct {
        guint32 fd;
        gint sco_fd;
@@ -293,6 +306,13 @@ typedef struct {
 
        GDBusMethodInvocation *context;
        char *path;
+
+       void *audio_output;
+       void *audio_input;
+       bt_hf_da_call_status_t call_state;
+       gboolean is_first_audio_out;
+       gboolean is_first_audio_in;
+       gboolean is_audio_input_mute;
 } bt_hf_agent_info_t;
 
 typedef struct {