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:
parent
1c48757d94
commit
3e9888105e
11 changed files with 22 additions and 15 deletions
|
@ -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.
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue