Bluetooth: CSIS: Refactor bt_csis_client_lock_get to use member

Refactor the bt_csis_client_lock_get function to use a
pointer to a member and a set instead of a bt_conn
pointer and an index.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
This commit is contained in:
Emil Gydesen 2021-11-23 16:56:09 +01:00 committed by Anas Nashif
commit 170d094ca8
3 changed files with 15 additions and 16 deletions

View file

@ -292,14 +292,15 @@ void bt_csis_client_register_cb(struct bt_csis_client_cb *cb);
/**
* @brief Read the lock value of a specific device and instance.
*
* @param conn Pointer to the connection to the device.
* @param inst_idx Index of the CSIS index of the peer device (as it may have
* multiple CSIS instances).
* @param members Member to get the lock value from
* @param set Pointer to the specific set of the @p member to get the
* lock value from.
*
* @return Return 0 on success, or an errno value on error.
*/
int bt_csis_client_lock_get(struct bt_conn *conn, uint8_t inst_idx);
int bt_csis_client_lock_get(struct bt_csis_client_set_member *member,
const struct bt_csis_client_set *set);
/**
* @brief Lock an array of set members