Remove wrong dependency in the systemd service file
[platform/core/connectivity/bluetooth-frwk.git] / include / bluetooth-audio-api.h
old mode 100644 (file)
new mode 100755 (executable)
index 88c318e..6fadb5c
@@ -1,13 +1,11 @@
 /*
- * bluetooth-frwk
- *
- * Copyright (c) 2012-2013 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
  *
- *              http://www.apache.org/licenses/LICENSE-2.0
+ * http://www.apache.org/licenses/LICENSE-2.0
  *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
@@ -22,8 +20,6 @@
 
 #include <stdint.h>
 #include <glib.h>
-#include <dbus/dbus-glib.h>
-#include <dbus/dbus-glib-lowlevel.h>
 #include <dlog.h>
 
 #include "bluetooth-api.h"
@@ -65,6 +61,13 @@ typedef enum {
        BLUETOOTH_AV_STATE_DISCONNECTED,
 } bt_av_conn_status_t;
 
+typedef enum {
+       BLUETOOTH_HF_CIEV_BATTCHG,  /* BT_HF_REMOTE_DEVICE_STATE_BATTERY_LEVEL */
+       BLUETOOTH_HF_CIEV_SIGNAL,  /* BT_HF_REMOTE_DEVICE_STATE_SIGNAL_STRENGTH */
+       BLUETOOTH_HF_CIEV_SERVICE,  /* BT_HF_REMOTE_DEVICE_STATE_NETWORK_SERVICE */
+       BLUETOOTH_HF_VR_STATUS, /* BT_HF_REMOTE_DEVICE_STATE_VOICE_RECOGNITON */
+} bt_hf_ciev_device_state_t;
+
 typedef void (*bt_audio_func_ptr) (int, bt_audio_event_param_t *, void *);
 
 typedef struct {
@@ -79,14 +82,19 @@ typedef struct {
 } bt_audio_info_t;
 
 typedef enum {
-                BLUETOOTH_STATE_NONE = 0x0000,
-                BLUETOOTH_STATE_HEADSET_CONNECTED = 0x0004,
-                BLUETOOTH_STATE_A2DP_HEADSET_CONNECTED = 0x0010,
+       BLUETOOTH_STATE_NONE = 0x0000,
+       BLUETOOTH_STATE_HEADSET_CONNECTED = 0x0004,
+       BLUETOOTH_STATE_A2DP_HEADSET_CONNECTED = 0x0010,
 } bluetooth_device_state_t;
 
+typedef enum {
+       BLUETOOTH_A2DP_SOURCE,
+       BLUETOOTH_A2DP_SINK,
+} bluetooth_audio_role_t;
+
 /**
  * @brief      The function bluetooth_audio_init called to initializes the Audio
- *     service to bluetoothD and Global data related to audio.
+ *     service to bluetoothD and Global data related to audio.
  * @param[in]  cb      Callback function
  * @param[in]  user_data       Data sent by application, which will be
  *                             returned in event handler.
@@ -155,6 +163,16 @@ int bluetooth_ag_disconnect(bluetooth_device_address_t *remote_address);
 int bluetooth_av_connect(bluetooth_device_address_t *remote_address);
 
 /**
+ * @brief      The function bluetooth_av_source_connect is called to establish an AV Source
+ *     connection with  the specified device.
+ *
+ * @param[in]  remote_address  Bluetooth device address.
+ * @return     int     Zero on Success or reason for error if any.
+ *
+ */
+int bluetooth_av_source_connect(bluetooth_device_address_t *remote_address);
+
+/**
  * @brief      The function bluetooth_av_disconnect is called to disconnect an
  *     existing AV connection with the specified device.
  *
@@ -165,6 +183,16 @@ int bluetooth_av_connect(bluetooth_device_address_t *remote_address);
 int bluetooth_av_disconnect(bluetooth_device_address_t *remote_address);
 
 /**
+ * @brief      The function bluetooth_av_source_disconnect is called to disconnect an
+ *     existing AV connection with the specified device.
+ *
+ * @param[in]  remote_address  Bluetooth device address.
+ * @return     int     Zero on Success or reason for error if any.
+ *
+ */
+int bluetooth_av_source_disconnect(bluetooth_device_address_t *remote_address);
+
+/**
  * @brief      The function bluetooth_ag_get_headset_volume is called to get
  *     the changed Volume on AG.
  *
@@ -184,6 +212,74 @@ int bluetooth_ag_get_headset_volume(unsigned int *speaker_gain);
  */
 int bluetooth_ag_set_speaker_gain(unsigned int speaker_gain);
 
+/**
+ * @brief      The function bluetooth_audio_select_role is called to set
+ *     A2DP to Source or Sink.
+ *
+ * @param[in]  role SINK/SOURCE.
+ * @return     int     Zero on Success or reason for error if any.
+ *
+ */
+int bluetooth_audio_select_role(bluetooth_audio_role_t role);
+
+typedef struct {
+       int event;
+       int result;
+       void *param_data;
+       void *user_data;
+} bt_hf_event_param_t;
+
+typedef void (*bt_hf_func_ptr) (int, bt_hf_event_param_t *, void *);
+
+
+int bluetooth_hf_init(bt_hf_func_ptr cb, void *user_data);
+
+int bluetooth_hf_deinit(void);
+
+int bluetooth_hf_connect(bluetooth_device_address_t *remote_address);
+
+int bluetooth_hf_disconnect(bluetooth_device_address_t *remote_address);
+
+int bluetooth_hf_answer_call();
+
+int bluetooth_hf_terminate_call();
+
+int bluetooth_hf_initiate_call(char *number);
+
+int bluetooth_hf_voice_recognition(unsigned int status);
+
+int bluetooth_hf_audio_disconnect(void);
+
+int bluetooth_hf_set_speaker_gain(unsigned int speaker_gain);
+
+int bluetooth_hf_send_dtmf(char *dtmf);
+
+int bluetooth_hf_send_xsat_cmd(int app_id, char *xsat_cmd);
+
+int bluetooth_hf_swap_call(void);
+
+int bluetooth_hf_release_all_call(void);
+
+int bluetooth_hf_release_and_accept(void);
+
+int bluetooth_hf_join_call(void);
+
+int bluetooth_hf_get_call_list(void *call_list, bt_hf_call_status_info_t **call_status);
+
+int bluetooth_hf_free_call_list(bt_hf_call_list_s *call_list);
+
+int bluetooth_hf_request_call_list(bt_hf_call_list_s **call_list);
+
+int bluetooth_hf_request_call_list_async(void);
+
+int bluetooth_hf_get_codec(unsigned int *codec_id);
+
+int bluetooth_hf_get_audio_connected(unsigned int *audio_connected);
+
+int bluetooth_hf_is_connected(gboolean *hf_connected);
+
+int bluetooth_hf_is_ibr_supported(gboolean*ibr_supported);
+
 #ifdef __cplusplus
 }
 #endif /*__cplusplus*/