Merge branch 'feat/add_handl_in_sdp_evt_v5.2' into 'release/v5.2'

feat(bt): Add record_handle in ESP_SDP_REMOVE_RECORD_COMP_EVT(v5.2)

See merge request espressif/esp-idf!40721
This commit is contained in:
Wang Meng Yang
2025-07-22 14:46:14 +08:00
2 changed files with 4 additions and 1 deletions

View File

@@ -191,6 +191,7 @@ typedef union {
*/
struct sdp_remove_record_evt_param {
esp_sdp_status_t status; /*!< Status */
int record_handle; /*!< SDP record handle */
} remove_record; /*!< SDP callback param of ESP_SDP_REMOVE_RECORD_COMP_EVT */
} esp_sdp_cb_param_t;

View File

@@ -1181,7 +1181,8 @@ static void btc_sdp_remove_record(btc_sdp_args_t *arg)
} while(0);
if (ret != ESP_SDP_SUCCESS) {
param.create_record.status = ret;
param.remove_record.status = ret;
param.remove_record.record_handle = arg->remove_record.record_handle;
btc_sdp_cb_to_app(ESP_SDP_REMOVE_RECORD_COMP_EVT, &param);
}
}
@@ -1330,6 +1331,7 @@ void btc_sdp_cb_handler(btc_msg_t *msg)
}
param.remove_record.status = p_data->sdp_remove_record.status;
param.remove_record.record_handle = p_data->sdp_remove_record.handle;
btc_sdp_cb_to_app(ESP_SDP_REMOVE_RECORD_COMP_EVT, &param);
break;
default: