From 5665803d679434e56f1643293541adcf30a1376b Mon Sep 17 00:00:00 2001 From: DoHyun Pyun Date: Thu, 23 Feb 2017 10:57:49 +0900 Subject: [PATCH] Add missing internal APIs for hf profile Change-Id: Ife53bfdcecaf991c11905008aea413fb263d79c6 Signed-off-by: DoHyun Pyun --- include/bluetooth_internal.h | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) 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 -- 2.7.4