diff --git a/include/bluetooth/conn.h b/include/bluetooth/conn.h index 391e6afab48..b7855096f31 100644 --- a/include/bluetooth/conn.h +++ b/include/bluetooth/conn.h @@ -34,6 +34,8 @@ #ifndef __BT_CONN_H #define __BT_CONN_H +#include + 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); diff --git a/net/bluetooth/conn_internal.h b/net/bluetooth/conn_internal.h index 204d286aefb..3d8bb8acc7f 100644 --- a/net/bluetooth/conn_internal.h +++ b/net/bluetooth/conn_internal.h @@ -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);