Bluetooth: CSIS: Add array of bt_csis to discovery function

Add an [out] array to the discovery function and
an array to the discovery callback of bt_csis structs.
These should be used instead of bt_conn pointers for
CSIS client.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
This commit is contained in:
Emil Gydesen 2021-11-22 21:28:53 +01:00 committed by Anas Nashif
commit 60181a183f

View file

@ -221,7 +221,8 @@ typedef void (*bt_csis_client_discover_cb)(struct bt_conn *conn, int err,
* *
* @return int Return 0 on success, or an errno value on error. * @return int Return 0 on success, or an errno value on error.
*/ */
int bt_csis_client_discover(struct bt_csis_client_set_member *member); int bt_csis_client_discover(struct bt_csis_client_set_member *member,
struct bt_csis *csis[BT_CSIS_CLIENT_MAX_CSIS_INSTANCES]);
typedef void (*bt_csis_client_discover_sets_cb)(struct bt_conn *conn, typedef void (*bt_csis_client_discover_sets_cb)(struct bt_conn *conn,
int err, uint8_t set_count, int err, uint8_t set_count,