Add missing internal APIs for hf profile 89/116089/1 accepted/tizen/common/20170303.090555 accepted/tizen/ivi/20170302.121709 accepted/tizen/mobile/20170302.121206 accepted/tizen/tv/20170302.121505 accepted/tizen/wearable/20170302.121552 submit/tizen/20170302.014914
authorDoHyun Pyun <dh79.pyun@samsung.com>
Thu, 23 Feb 2017 01:57:49 +0000 (10:57 +0900)
committerDoHyun Pyun <dh79.pyun@samsung.com>
Thu, 23 Feb 2017 01:57:49 +0000 (10:57 +0900)
Change-Id: Ife53bfdcecaf991c11905008aea413fb263d79c6
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
include/bluetooth_internal.h

index 8091fda..9062f5b 100644 (file)
@@ -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