mirror of
https://github.com/espressif/esp-idf.git
synced 2025-07-31 19:24:33 +02:00
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:
@@ -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;
|
||||
|
@@ -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, ¶m);
|
||||
}
|
||||
}
|
||||
@@ -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, ¶m);
|
||||
break;
|
||||
default:
|
||||
|
Reference in New Issue
Block a user