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:
Johan Hedberg 2015-06-17 12:47:06 +03:00 committed by Anas Nashif
commit ea15db12ba
2 changed files with 5 additions and 3 deletions

View file

@ -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);

View file

@ -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);