Include bt_device_get_id_address API header 96/224296/2
authorhimanshu <h.himanshu@samsung.com>
Fri, 7 Feb 2020 12:00:27 +0000 (17:30 +0530)
committerhimanshu <h.himanshu@samsung.com>
Mon, 10 Feb 2020 05:36:54 +0000 (11:06 +0530)
Change-Id: I82a4352c52cb5310b173e07bafde82e9c25c9891
Signed-off-by: himanshu <h.himanshu@samsung.com>
include/bluetooth_internal.h

index 903e7f1..2c19911 100644 (file)
@@ -1226,6 +1226,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
  * @brief Gets the rssi value when link loss occurs.