mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-02 20:24:32 +02:00
feat(bt): Add record_handle in ESP_SDP_REMOVE_RECORD_COMP_EVT
This commit is contained in:
@@ -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;
|
||||
|
@@ -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, ¶m);
|
||||
}
|
||||
}
|
||||
@@ -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, ¶m);
|
||||
break;
|
||||
default:
|
||||
|
Reference in New Issue
Block a user