Bluetooth: Make bt_conn_lookup_addr_le public
This API is useful for applications wanting to monitor and disconnect connections. Change-Id: Ib1a98ece364f137262515fbb1163c6b08ddf792c Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
This commit is contained in:
parent
029046e02e
commit
ea15db12ba
2 changed files with 5 additions and 3 deletions
|
@ -34,6 +34,8 @@
|
|||
#ifndef __BT_CONN_H
|
||||
#define __BT_CONN_H
|
||||
|
||||
#include <bluetooth/hci.h>
|
||||
|
||||
struct bt_conn;
|
||||
|
||||
/* Increment conn reference count */
|
||||
|
@ -42,6 +44,9 @@ struct bt_conn *bt_conn_get(struct bt_conn *conn);
|
|||
/* Decrement conn reference count */
|
||||
void bt_conn_put(struct bt_conn *conn);
|
||||
|
||||
/* Look up an existing connection by address */
|
||||
struct bt_conn *bt_conn_lookup_addr_le(const bt_addr_le_t *peer);
|
||||
|
||||
struct bt_conn_cb {
|
||||
void (*connected)(struct bt_conn *conn);
|
||||
void (*disconnected)(struct bt_conn *conn);
|
||||
|
|
|
@ -91,6 +91,3 @@ void bt_conn_del(struct bt_conn *conn);
|
|||
|
||||
/* Look up an existing connection */
|
||||
struct bt_conn *bt_conn_lookup_handle(uint16_t handle);
|
||||
|
||||
/* Look up an existing connection by address */
|
||||
struct bt_conn *bt_conn_lookup_addr_le(const bt_addr_le_t *peer);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue