From: himanshu Date: Fri, 7 Feb 2020 12:00:27 +0000 (+0530) Subject: Include bt_device_get_id_address API header X-Git-Tag: submit/tizen/20200214.001348~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5994e768f9e5e40d0ecdcf2de4107a3eaf36d42e;p=platform%2Fcore%2Fapi%2Fbluetooth.git Include bt_device_get_id_address API header Change-Id: I82a4352c52cb5310b173e07bafde82e9c25c9891 Signed-off-by: himanshu --- diff --git a/include/bluetooth_internal.h b/include/bluetooth_internal.h index 903e7f1..2c19911 100644 --- a/include/bluetooth_internal.h +++ b/include/bluetooth_internal.h @@ -1225,6 +1225,27 @@ int bt_device_set_trusted_profile_cb(bt_device_trusted_profiles_cb callback, voi */ int bt_device_unset_trusted_profile_cb(void); +/** + * @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE + * @brief Gets the ID address of the remote device + * @since_tizen 6.0 + * + * @remarks The id_address must be released with free() by you. + * + * @param[in] remote_rpa The Resolvable private address of the remote device + * @param[out] id_address The Identity address of the remote device + * + * @return 0 on success, otherwise a negative error value. + * @retval #BT_ERROR_NONE Successful + * @retval #BT_ERROR_INVALID_PARAMETER Invalid parameter + * @retval #BT_ERROR_NOT_INITIALIZED Not initialized + * @retval #BT_ERROR_NOT_ENABLED Not enabled + * @retval #BT_ERROR_OPERATION_FAILED Operation failed + * @retval #BT_ERROR_PERMISSION_DENIED Permission denied + * @retval #BT_ERROR_NOT_SUPPORTED Not supported + */ +int bt_device_get_id_address(const char *remote_rpa, char **id_address); + /** * @internal * @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE