feat(bt): Add record_handle in ESP_SDP_REMOVE_RECORD_COMP_EVT

This commit is contained in:
xiongweichao
2025-07-07 19:10:02 +08:00
parent 6013186591
commit f1b7b474c5
2 changed files with 4 additions and 1 deletions

View File

@@ -225,6 +225,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

@@ -1273,7 +1273,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);
}
}
@@ -1422,6 +1423,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: