Merge branch 'master' into tizen_2.1
[platform/core/connectivity/bluetooth-frwk.git] / bt-service / include / bt-service-audio.h
index 53318ce..4f17b2b 100644 (file)
 extern "C" {
 #endif
 
+typedef struct {
+       int req_id;
+       int type;
+       int disconnection_type;
+       char *address;
+       gboolean ag_flag;
+       GArray **out_param1;
+} bt_headset_wait_t;
+
 typedef enum {
-       BT_AUDIO_HSP = 0x00,
+       BT_AUDIO_HSP = 0x01,
        BT_AUDIO_A2DP,
        BT_AUDIO_ALL,
 } bt_audio_type_t;
 
+typedef enum {
+       BT_STATE_NONE = 0x00,
+       BT_STATE_CONNECTING,
+       BT_STATE_CONNECTED,
+} bt_headset_device_state_t;
 
 int _bt_audio_connect(int request_id, int type,
                bluetooth_device_address_t *device_address,
@@ -43,11 +57,19 @@ int _bt_audio_disconnect(int request_id, int type,
                bluetooth_device_address_t *device_address,
                GArray **out_param1);
 
-
 int _bt_audio_get_speaker_gain(unsigned int *gain);
 
 int _bt_audio_set_speaker_gain(unsigned int gain);
 
+void _bt_set_audio_wait_data_flag(gboolean flag);
+
+bt_headset_wait_t *_bt_get_audio_wait_data(void);
+
+void _bt_add_headset_to_list(int type, int status, const char *address);
+
+void _bt_remove_headset_from_list(int type, const char *address);
+
+gboolean _bt_is_headset_type_connected(int type, char *address);
 
 #ifdef __cplusplus
 }