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:
Peter Johanson
2024-04-05 16:44:42 +00:00
committed by Pete Johanson
parent b576d52d58
commit f7c34c70ba
3 changed files with 20 additions and 17 deletions

View File

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