diff options
author | DoHyun Pyun <dh79.pyun@samsung.com> | 2017-03-06 14:00:37 +0900 |
---|---|---|
committer | DoHyun Pyun <dh79.pyun@samsung.com> | 2017-03-06 14:18:48 +0900 |
commit | 1df6faff89a92009650ac9b8ab78115650cede0a (patch) | |
tree | e3a65246a414690dbce4664f83abba52e64bd5a2 | |
parent | 09d715309edb8b605d2f5020d1fcc05db6ed849d (diff) | |
download | bluetooth-1df6faff89a92009650ac9b8ab78115650cede0a.tar.gz bluetooth-1df6faff89a92009650ac9b8ab78115650cede0a.tar.bz2 bluetooth-1df6faff89a92009650ac9b8ab78115650cede0a.zip |
Add missing function definitions for Native internal APIssubmit/tizen_unified/20170308.100404submit/tizen/20170306.073437accepted/tizen/wearable/20170306.222555accepted/tizen/unified/20170309.031633accepted/tizen/tv/20170306.222547accepted/tizen/mobile/20170306.222534accepted/tizen/ivi/20170306.222601accepted/tizen/common/20170306.165231
Change-Id: Iaf930104fcccc912b8574c94599e244285bf5571
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
-rw-r--r-- | include/bluetooth_internal.h | 97 |
1 files changed, 97 insertions, 0 deletions
diff --git a/include/bluetooth_internal.h b/include/bluetooth_internal.h index 9062f5b..fae8d2c 100644 --- a/include/bluetooth_internal.h +++ b/include/bluetooth_internal.h @@ -417,6 +417,47 @@ int bt_adapter_set_manufacturer_data(char *data, int len); /** * @internal * @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_MODULE + * @brief Parse the samsung specific manufacturer data of discovered device. + * + * @remarks bt_adapter_free_manufacturer_data should be invoked + * to free the memory associated with parsed data + * + * @param[in] manufacturer_data The manufacturer specific data of the discovered Bluetooth device. + * @param[in] len length of the received manufacturer data + * @param[out] data Parsed manufacturer data + * + * @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_ENABLED Not enabled + * + * @pre The state of local Bluetooth must be #BT_ADAPTER_ENABLED. + * + * @see bt_adapter_free_manufacturer_data() + */ +int bt_adapter_parse_manufacturer_data(bt_manufacturer_data *data, + char *manufacturer_data, int manufacturer_data_len); + +/** + * @internal + * @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_MODULE + * @brief Free the memory associated with parsed manufacturer data + * + * @param[in] data parsed manufactrer data + * + * @return 0 on success, otherwise a negative error value. + * @retval #BT_ERROR_NONE Successful + * @retval #BT_ERROR_INVALID_PARAMETER Invalid parameter + * + * + * @see bt_adapter_parse_manufacturer_data() + */ +int bt_adapter_free_manufacturer_data(bt_manufacturer_data *data); + +/** + * @internal + * @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_MODULE * @brief Registers a callback function to be invoked * when the manufacturer data of Bluetooth adapter changes. * @since_tizen 2.3 @@ -1179,6 +1220,29 @@ int bt_device_set_profile_restricted(const char *device_address, bt_restricted_p int bt_device_get_profile_restricted(const char *device_address, bt_restricted_profile_t profile, int *restricted); /** + * @internal + * @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE + * @brief Registers a callback function to be invoked when Trusted Profiles are changed. + * @since_tizen 2.4 + * @return 0 on success, otherwise a negative error value. + * @retval #BT_ERROR_NONE Successful + * @retval #BT_ERROR_NOT_INITIALIZED Not supported + * @retval #BT_ERROR_INVALID_PARAMETER Invalid Parameter + */ +int bt_device_set_trusted_profile_cb(bt_device_trusted_profiles_cb callback, void *user_data); + +/** + * @internal + * @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE + * @brief Unregisters the callback function registered with bt_device_set_trusted_profile_cb(). + * @since_tizen 2.4 + * @return 0 on success, otherwise a negative error value. + * @retval #BT_ERROR_NONE Successful + * @retval #BT_ERROR_NOT_INITIALIZED Not supported + */ +int bt_device_unset_trusted_profile_cb(void); + +/** * @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE * @brief Request to change ATT MTU value * @since_tizen 3.0 @@ -1745,6 +1809,39 @@ int bt_call_list_add(bt_call_list_h list, unsigned int call_id, bt_ag_call_state /** * @ingroup CAPI_NETWORK_BLUETOOTH_AUDIO_AG_MODULE + * @brief Registers a callback function that will be invoked when a XSATvendor AT command is transmitted from Hands-Free. + * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @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_ag_vendor_cmd_cb() + * @see bt_ag_unset_vendor_cmd_cb() + */ +int bt_ag_set_vendor_cmd_cb(bt_ag_vendor_cmd_cb callback, void *user_data); + +/** + * @ingroup CAPI_NETWORK_BLUETOOTH_AUDIO_AG_MODULE + * @brief Unregisters a callback function that will be invoked when a XSATvendor AT command is transmitted from Hands-Free + * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @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_ag_vendor_cmd_cb() + * @see bt_ag_set_vendor_cmd_cb() + */ +int bt_ag_unset_vendor_cmd_cb(void); + +/** + * @ingroup CAPI_NETWORK_BLUETOOTH_AUDIO_AG_MODULE * @brief Checks whether the remoted device is wbs (Wide Band Speech) mode or not. * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif * @param[out] wbs_mode The wbs status: (@c true = wide band speech, @c false = narrow band speech) |