Bluetooth: Update bt_conn_cb to pass bt_conn instead of bt_addr_le_t
Now that we have a publicly exposed connection object it makes sense to pass that to the connection callbacks rather than an address. Change-Id: I8e9b17733d1789539a83c3dbc7a778336d2b71ff Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
This commit is contained in:
parent
27a9a48f64
commit
224abaab0e
3 changed files with 6 additions and 6 deletions
|
@ -43,8 +43,8 @@ struct bt_conn *bt_conn_get(struct bt_conn *conn);
|
|||
void bt_conn_put(struct bt_conn *conn);
|
||||
|
||||
struct bt_conn_cb {
|
||||
void (*connected)(const bt_addr_le_t *addr);
|
||||
void (*disconnected)(const bt_addr_le_t *addr);
|
||||
void (*connected)(struct bt_conn *conn);
|
||||
void (*disconnected)(struct bt_conn *conn);
|
||||
|
||||
struct bt_conn_cb *_next;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue