Bluetooth: Host: Rename API function to initiate bluetooth security.

Rename bt_conn_security to bt_conn_set_security, this makes the API
naming more consistent.

Signed-off-by: Joakim Andersson <joakim.andersson@nordicsemi.no>
This commit is contained in:
Joakim Andersson 2019-08-26 15:53:20 +02:00 committed by Carles Cufí
commit 3e9888105e
11 changed files with 22 additions and 15 deletions

View file

@ -321,7 +321,13 @@ typedef enum __packed {
*
* @return 0 on success or negative error
*/
int bt_conn_security(struct bt_conn *conn, bt_security_t sec);
int bt_conn_set_security(struct bt_conn *conn, bt_security_t sec);
static inline int __deprecated bt_conn_security(struct bt_conn *conn,
bt_security_t sec)
{
return bt_conn_set_security(conn, sec);
}
/** @brief Get encryption key size.
*