sdp_parser: replace sdp_query_service_record_handle_event_t with regular hci event

This commit is contained in:
Matthias Ringwald 2016-01-29 18:42:15 +01:00
parent fd2eb611c5
commit 7620b4f095

View File

@ -41,16 +41,16 @@ static uint8_t sdp_test_record_list[] = {
static void handle_sdp_parser_event(sdp_query_event_t * event){
sdp_query_service_record_handle_event_t * ve;
const uint8_t * ve;
const uint8_t * ce;
static uint32_t record_handle = sdp_test_record_list[0];
switch (event->type){
case SDP_QUERY_SERVICE_RECORD_HANDLE:
ve = (sdp_query_service_record_handle_event_t*) event;
ve = (const uint8_t*) event;
CHECK_EQUAL(ve->record_handle, record_handle);
CHECK_EQUAL(sdp_query_service_record_handle_event_get_record_handle(ve), record_handle);
record_handle++;