summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDoHyun Pyun <dh79.pyun@samsung.com>2017-02-23 10:57:49 +0900
committerDoHyun Pyun <dh79.pyun@samsung.com>2017-02-23 10:57:49 +0900
commit5665803d679434e56f1643293541adcf30a1376b (patch)
tree4c4e8c2631deedc985d78b49871684e1d775c1a1
parentc4e297d3f33b255be5f2c8ef896a4c850195dd50 (diff)
downloadbluetooth-5665803d679434e56f1643293541adcf30a1376b.tar.gz
bluetooth-5665803d679434e56f1643293541adcf30a1376b.tar.bz2
bluetooth-5665803d679434e56f1643293541adcf30a1376b.zip
Change-Id: Ife53bfdcecaf991c11905008aea413fb263d79c6 Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
-rw-r--r--include/bluetooth_internal.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/include/bluetooth_internal.h b/include/bluetooth_internal.h
index 8091fda..9062f5b 100644
--- a/include/bluetooth_internal.h
+++ b/include/bluetooth_internal.h
@@ -1861,6 +1861,39 @@ int bt_hf_unset_call_handling_event_cb(void);
/**
* @ingroup CAPI_NETWORK_BLUETOOTH_AUDIO_HF_MODULE
+ * @brief Registers a callback function that will be invoked when a call event happend from Audio-Gateway device.
+ * @since_tizen 3.0
+ * @param[in] callback The callback function to register
+ * @param[in] user_data The user data to be passed to the callback function
+ * @return 0 on success, otherwise a negative error value.
+ * @retval #BT_ERROR_NONE Successful
+ * @retval #BT_ERROR_NOT_INITIALIZED Not initialized
+ * @retval #BT_ERROR_INVALID_PARAMETER Invalid parameter
+ * @retval #BT_ERROR_NOT_SUPPORTED Not supported
+ * @pre The Bluetooth audio service must be initialized with bt_audio_initialize().
+ * @see bt_audio_initialize()
+ * @see bt_hf_remote_call_event_cb()
+ * @see bt_hf_unset_remote_call_event_cb()
+ */
+int bt_hf_set_remote_call_event_cb(bt_hf_remote_call_event_cb callback, void *user_data);
+
+/**
+ * @ingroup CAPI_NETWORK_BLUETOOTH_AUDIO_HF_MODULE
+ * @brief Unregisters a callback function.
+ * @since_tizen 3.0
+ * @return 0 on success, otherwise a negative error value.
+ * @retval #BT_ERROR_NONE Successful
+ * @retval #BT_ERROR_NOT_INITIALIZED Not initialized
+ * @retval #BT_ERROR_NOT_SUPPORTED Not supported
+ * @pre The Bluetooth audio service must be initialized with bt_audio_initialize().
+ * @see bt_audio_initialize()
+ * @see bt_hf_remote_call_event_cb()
+ * @see bt_hf_set_remote_call_event_cb()
+ */
+int bt_hf_unset_remote_call_event_cb(void);
+
+/**
+ * @ingroup CAPI_NETWORK_BLUETOOTH_AUDIO_HF_MODULE
* @brief Registers a callback function that will be invoked when a multi call handling event happened from Hands-Free.
* @since_tizen @if MOBILE @elseif WEARABLE 2.3.1 @endif
* @param[in] callback The callback function to register