summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDoHyun Pyun <dh79.pyun@samsung.com>2016-08-25 11:32:48 +0900
committerDoHyun Pyun <dh79.pyun@samsung.com>2016-08-25 11:32:48 +0900
commit53b9535c568945f59f4ad7c874e244f305ff78c2 (patch)
treec45e7cf6da26e74227e1aeb4429d57d33243d059
parent8782319dacf8bb1f6c507dc6ce28778c8ed74dcc (diff)
downloadbluetooth-53b9535c568945f59f4ad7c874e244f305ff78c2.tar.gz
bluetooth-53b9535c568945f59f4ad7c874e244f305ff78c2.tar.bz2
bluetooth-53b9535c568945f59f4ad7c874e244f305ff78c2.zip
Change-Id: Ia6c33741750cdb5ca9c1cea8e0788e71f2a2e6fa Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
-rw-r--r--include/bluetooth_private.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/include/bluetooth_private.h b/include/bluetooth_private.h
index 473291e..142b684 100644
--- a/include/bluetooth_private.h
+++ b/include/bluetooth_private.h
@@ -764,6 +764,27 @@ typedef enum {
/**
* @ingroup CAPI_NETWORK_BLUETOOTH_AUDIO_HF_MODULE
+ * @brief Enumerations for the call event from Audio-Gateway device
+ * @since_tizen 3.0
+ */
+typedef enum {
+ BT_HF_REMOTE_CALL_EVENT_IDLE = 0x00, /**< Idle. Neither setup call nor active call exist */
+ BT_HF_REMOTE_CALL_EVENT_INCOMING, /**< (Call-setup event) Received an incoming call on AG */
+ BT_HF_REMOTE_CALL_EVENT_DIALING, /**< (Call-setup event) Dialing an outgoing call on AG */
+ BT_HF_REMOTE_CALL_EVENT_ALERTING, /**< (Call-setup event) Remote party being alerted in an outgoing call of AG */
+ BT_HF_REMOTE_CALL_EVENT_CALL_TERMINATED, /**< (Call-setup event) Setup call is terminated without activating */
+ BT_HF_REMOTE_CALL_EVENT_CALL_STARTED, /**< (Active call state event) Call is started on AG */
+ BT_HF_REMOTE_CALL_EVENT_CALL_ENDED, /**< (Active call state event) Active call is terminated on AG */
+ BT_HF_REMOTE_CALL_EVENT_UNHELD, /**< (Call held event) No calls on hold */
+ BT_HF_REMOTE_CALL_EVENT_SWAPPED, /**< (Call held event) Call is placed on hold or active/held calls swapped */
+ BT_HF_REMOTE_CALL_EVENT_HELD, /**< (Call held event) Calls on hold, no active call */
+ BT_HF_REMOTE_CALL_EVENT_RINGING, /**< Incoming call is ringing event with number. This event is optional event. */
+ BT_HF_REMOTE_CALL_EVENT_WAITING, /**< Call Waiting notification in 3-way call scenario */
+ BT_HF_REMOTE_CALL_EVENT_FAILED_TO_DIALING, /**< Failed to dialing a outgoing call on AG */
+} bt_hf_remote_call_event_e;
+
+/**
+ * @ingroup CAPI_NETWORK_BLUETOOTH_AUDIO_HF_MODULE
* @brief Called when a device status changed event happend from Audio-Gateway device
* @since_tizen 3.0
*
@@ -776,6 +797,20 @@ typedef enum {
*/
typedef void (*bt_hf_remote_device_state_changed_cb) (bt_hf_remote_device_state_e state, int value, void *user_data);
+
+/**
+ * @ingroup CAPI_NETWORK_BLUETOOTH_AUDIO_HF_MODULE
+ * @brief Called when a call event happend from Audio-Gateway device
+ * @since_tizen 3.0
+ *
+ * @param[in] event The call state chagned event from remote Audio-Gateway device
+ * @param[in] user_data The user data passed from the callback registration function
+ *
+ * @see bt_hf_set_remote_call_event_cb()
+ * @see bt_hf_unset_remote_call_event_cb()
+ */
+typedef void (*bt_hf_remote_call_event_cb) (bt_hf_remote_call_event_e event, char *phone_number, void *user_data);
+
/**
* @internal
* @brief Since the HF call back and event proxy call backs have different prototype it is wrapper function.