mirror of
https://github.com/zmkfirmware/zmk.git
synced 2026-03-19 20:45:18 -05:00
refactor(ble): Extract API to get active profile connection.
* Add `struct bt_conn *zmk_ble_active_profile_conn(void)` function for fetching a connection for the current profile.
This commit is contained in:
committed by
Pete Johanson
parent
b576d52d58
commit
f7c34c70ba
@@ -29,7 +29,10 @@ int zmk_ble_prof_disconnect(uint8_t index);
|
||||
|
||||
int zmk_ble_active_profile_index(void);
|
||||
int zmk_ble_profile_index(const bt_addr_le_t *addr);
|
||||
|
||||
bt_addr_le_t *zmk_ble_active_profile_addr(void);
|
||||
struct bt_conn *zmk_ble_active_profile_conn(void);
|
||||
|
||||
bool zmk_ble_active_profile_is_open(void);
|
||||
bool zmk_ble_active_profile_is_connected(void);
|
||||
char *zmk_ble_active_profile_name(void);
|
||||
|
||||
Reference in New Issue
Block a user