Skip to content

Commit 28404a6

Browse files
committed
feat(bt): Add record_handle in ESP_SDP_REMOVE_RECORD_COMP_EVT
1 parent bfd0c49 commit 28404a6

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

components/bt/host/bluedroid/api/include/api/esp_sdp_api.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,7 @@ typedef union {
225225
*/
226226
struct sdp_remove_record_evt_param {
227227
esp_sdp_status_t status; /*!< Status */
228+
int record_handle; /*!< SDP record handle */
228229
} remove_record; /*!< SDP callback param of ESP_SDP_REMOVE_RECORD_COMP_EVT */
229230

230231
} esp_sdp_cb_param_t;

components/bt/host/bluedroid/btc/profile/std/sdp/btc_sdp.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1273,7 +1273,8 @@ static void btc_sdp_remove_record(btc_sdp_args_t *arg)
12731273
} while(0);
12741274

12751275
if (ret != ESP_SDP_SUCCESS) {
1276-
param.create_record.status = ret;
1276+
param.remove_record.status = ret;
1277+
param.remove_record.record_handle = arg->remove_record.record_handle;
12771278
btc_sdp_cb_to_app(ESP_SDP_REMOVE_RECORD_COMP_EVT, &param);
12781279
}
12791280
}
@@ -1422,6 +1423,7 @@ void btc_sdp_cb_handler(btc_msg_t *msg)
14221423
}
14231424

14241425
param.remove_record.status = p_data->sdp_remove_record.status;
1426+
param.remove_record.record_handle = p_data->sdp_remove_record.handle;
14251427
btc_sdp_cb_to_app(ESP_SDP_REMOVE_RECORD_COMP_EVT, &param);
14261428
break;
14271429
default:

0 commit comments

Comments
 (0)