Bluetooth: SDP: Add UUID reference to user callback
User may want to know when getting called user UUID callback handler on what UUID the result data was retrieved from server. Jira: ZEP-1112 Change-Id: Iabb2dbdf0f3cfdb24244e052f094c7549164b199 Signed-off-by: Arkadiusz Lichwa <arkadiusz.lichwa@tieto.com>
This commit is contained in:
parent
2d064eef89
commit
7ec0c37ec3
2 changed files with 6 additions and 2 deletions
|
@ -445,6 +445,8 @@ struct bt_sdp_client_result {
|
|||
struct net_buf *resp_buf;
|
||||
/* flag pointing that there are more result chunks for given UUID */
|
||||
bool next_record_hint;
|
||||
/* Reference to UUID object on behalf one discovery was started */
|
||||
const struct bt_uuid *uuid;
|
||||
};
|
||||
|
||||
/** @brief Helper enum to be used as return value of bt_sdp_discover_func_t.
|
||||
|
|
|
@ -541,6 +541,8 @@ static void sdp_client_notify_result(struct bt_sdp_client *session,
|
|||
uint16_t rec_len;
|
||||
uint8_t user_ret;
|
||||
|
||||
result.uuid = session->param->uuid;
|
||||
|
||||
if (state == UUID_NOT_RESOLVED) {
|
||||
result.resp_buf = NULL;
|
||||
result.next_record_hint = false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue