Bluetooth: Move bt_connect_le to conn.c and rename it appropriately
This function operates on bt_conn so it should be in conn.c and exported through conn.h. Rename it with the appropriate bt_conn_* prefix. Change-Id: Id17c67f0e95cc1afb10aa7742b2d2ce0110ea616 Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
This commit is contained in:
parent
e0e6416065
commit
a33047f7a5
5 changed files with 41 additions and 41 deletions
|
@ -91,6 +91,17 @@ const bt_addr_le_t *bt_conn_get_dst(const struct bt_conn *conn);
|
|||
*/
|
||||
int bt_conn_disconnect(struct bt_conn *conn, uint8_t reason);
|
||||
|
||||
/** @brief Initiate an LE connection to a remote device.
|
||||
*
|
||||
* Allows initiate new LE link to remote peer using its address.
|
||||
* Returns a new reference that the the caller is responsible for managing.
|
||||
*
|
||||
* @param peer Remote address.
|
||||
*
|
||||
* @return Valid connection object on success or NULL otherwise.
|
||||
*/
|
||||
struct bt_conn *bt_conn_create_le(const bt_addr_le_t *peer);
|
||||
|
||||
/** Connection callback structure */
|
||||
struct bt_conn_cb {
|
||||
void (*connected)(struct bt_conn *conn);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue