Bluetooth: Audio: Use svc_inst instead of bt_csip for set coordinator
Use the bt_csip_set_coordinator_svc_inst struct in the set coordinator implementation instead of the more generic bt_csip. Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
This commit is contained in:
parent
5ecaf5af1b
commit
1991fcaced
2 changed files with 159 additions and 156 deletions
|
@ -35,29 +35,6 @@ struct bt_csip_set_sirk {
|
|||
uint8_t value[BT_CSIP_SET_SIRK_SIZE];
|
||||
} __packed;
|
||||
|
||||
struct bt_csip_set_coordinator_svc_inst {
|
||||
uint8_t rank;
|
||||
uint8_t set_lock;
|
||||
|
||||
uint16_t start_handle;
|
||||
uint16_t end_handle;
|
||||
uint16_t set_sirk_handle;
|
||||
uint16_t set_size_handle;
|
||||
uint16_t set_lock_handle;
|
||||
uint16_t rank_handle;
|
||||
|
||||
uint8_t idx;
|
||||
struct bt_gatt_subscribe_params sirk_sub_params;
|
||||
struct bt_gatt_discover_params sirk_sub_disc_params;
|
||||
struct bt_gatt_subscribe_params size_sub_params;
|
||||
struct bt_gatt_discover_params size_sub_disc_params;
|
||||
struct bt_gatt_subscribe_params lock_sub_params;
|
||||
struct bt_gatt_discover_params lock_sub_disc_params;
|
||||
|
||||
struct bt_conn *conn;
|
||||
struct bt_csip_set_coordinator_set_member *member;
|
||||
};
|
||||
|
||||
/* TODO: Rename to bt_csip_svc_inst */
|
||||
struct bt_csip_set_member_server {
|
||||
struct bt_csip_set_sirk set_sirk;
|
||||
|
@ -80,9 +57,6 @@ struct bt_csip {
|
|||
#if defined(CONFIG_BT_CSIP_SET_MEMBER)
|
||||
struct bt_csip_set_member_server srv;
|
||||
#endif /* CONFIG_BT_CSIP_SET_MEMBER */
|
||||
#if defined(CONFIG_BT_CSIP_SET_COORDINATOR)
|
||||
struct bt_csip_set_coordinator_svc_inst cli;
|
||||
#endif /* CONFIG_BT_CSIP_SET_COORDINATOR */
|
||||
};
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue