Bluetooth: Add error return to authentication APIs

The authentication APIs may fail, so it's fair to give the application
a chance to catch these errors.

Change-Id: I323df86b94a823b201fe22d412e6bbcaa9029550
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
This commit is contained in:
Johan Hedberg 2016-01-14 09:49:41 +02:00 committed by Anas Nashif
commit 0df7a2fac6
3 changed files with 39 additions and 23 deletions

View file

@ -56,14 +56,17 @@ int bt_auth_cb_register(const struct bt_auth_cb *cb)
return -ENOSYS;
}
void bt_auth_passkey_entry(struct bt_conn *conn, unsigned int passkey)
int bt_auth_passkey_entry(struct bt_conn *conn, unsigned int passkey)
{
return -ENOSYS;
}
void bt_auth_cancel(struct bt_conn *conn)
int bt_auth_cancel(struct bt_conn *conn)
{
return -ENOSYS;
}
void bt_auth_passkey_confirm(struct bt_conn *conn, bool match)
int bt_auth_passkey_confirm(struct bt_conn *conn, bool match)
{
return -ENOSYS;
}