Lines Matching refs:hdr

131     records_size += record->hdr.service_name_length;  in get_sdp_records_size()
132 if (record->hdr.service_name_length > 0) { in get_sdp_records_size()
135 records_size += record->hdr.user1_ptr_len; in get_sdp_records_size()
136 records_size += record->hdr.user2_ptr_len; in get_sdp_records_size()
157 if (in_record->hdr.service_name == NULL || in copy_sdp_records()
158 in_record->hdr.service_name_length == 0) { in copy_sdp_records()
159 out_record->hdr.service_name = NULL; in copy_sdp_records()
160 out_record->hdr.service_name_length = 0; in copy_sdp_records()
162 out_record->hdr.service_name = free_ptr; // Update service_name pointer in copy_sdp_records()
164 memcpy(free_ptr, in_record->hdr.service_name, in copy_sdp_records()
165 in_record->hdr.service_name_length); in copy_sdp_records()
166 free_ptr += in_record->hdr.service_name_length; in copy_sdp_records()
170 if (in_record->hdr.user1_ptr != NULL) { in copy_sdp_records()
171 out_record->hdr.user1_ptr = (uint8_t*)free_ptr; // Update pointer in copy_sdp_records()
172 memcpy(free_ptr, in_record->hdr.user1_ptr, in copy_sdp_records()
173 in_record->hdr.user1_ptr_len); // Copy content in copy_sdp_records()
174 free_ptr += in_record->hdr.user1_ptr_len; in copy_sdp_records()
176 if (in_record->hdr.user2_ptr != NULL) { in copy_sdp_records()
177 out_record->hdr.user2_ptr = (uint8_t*)free_ptr; // Update pointer in copy_sdp_records()
178 memcpy(free_ptr, in_record->hdr.user2_ptr, in copy_sdp_records()
179 in_record->hdr.user2_ptr_len); // Copy content in copy_sdp_records()
180 free_ptr += in_record->hdr.user2_ptr_len; in copy_sdp_records()
326 switch (record->hdr.type) { in on_create_record_event()
346 BTIF_TRACE_DEBUG("Record type %d is not supported", record->hdr.type); in on_create_record_event()
386 __func__, rec->mas_instance_id, rec->hdr.rfcomm_channel_number, in add_maps_sdp()
387 rec->hdr.l2cap_psm, rec->hdr.service_name); in add_maps_sdp()
407 protoList[1].params[0] = rec->hdr.rfcomm_channel_number; in add_maps_sdp()
415 (uint32_t)(rec->hdr.service_name_length + 1), in add_maps_sdp()
416 (uint8_t*)rec->hdr.service_name); in add_maps_sdp()
420 rec->hdr.profile_version); in add_maps_sdp()
438 if (rec->hdr.l2cap_psm != -1) { in add_maps_sdp()
440 UINT16_TO_BE_STREAM(p_temp, rec->hdr.l2cap_psm); in add_maps_sdp()
473 __func__, rec->hdr.rfcomm_channel_number, rec->hdr.l2cap_psm, in add_mapc_sdp()
474 rec->hdr.service_name); in add_mapc_sdp()
494 protoList[1].params[0] = rec->hdr.rfcomm_channel_number; in add_mapc_sdp()
502 (uint32_t)(rec->hdr.service_name_length + 1), in add_mapc_sdp()
503 (uint8_t*)rec->hdr.service_name); in add_mapc_sdp()
507 rec->hdr.profile_version); in add_mapc_sdp()
515 if (rec->hdr.l2cap_psm != -1) { in add_mapc_sdp()
517 UINT16_TO_BE_STREAM(p_temp, rec->hdr.l2cap_psm); in add_mapc_sdp()
546 APPL_TRACE_DEBUG("%s(): service name %s", __func__, rec->hdr.service_name); in add_pbapc_sdp()
558 (uint32_t)(rec->hdr.service_name_length + 1), in add_pbapc_sdp()
559 (uint8_t*)rec->hdr.service_name); in add_pbapc_sdp()
563 rec->hdr.profile_version); in add_pbapc_sdp()
593 __func__, rec->hdr.rfcomm_channel_number, rec->hdr.l2cap_psm, in add_pbaps_sdp()
594 rec->hdr.service_name); in add_pbaps_sdp()
614 protoList[1].params[0] = rec->hdr.rfcomm_channel_number; in add_pbaps_sdp()
622 (uint32_t)(rec->hdr.service_name_length + 1), in add_pbaps_sdp()
623 (uint8_t*)rec->hdr.service_name); in add_pbaps_sdp()
627 sdp_handle, UUID_SERVCLASS_PHONE_ACCESS, rec->hdr.profile_version); in add_pbaps_sdp()
640 if (rec->hdr.l2cap_psm != -1) { in add_pbaps_sdp()
642 UINT16_TO_BE_STREAM(p_temp, rec->hdr.l2cap_psm); in add_pbaps_sdp()
680 __func__, rec->hdr.rfcomm_channel_number, rec->hdr.l2cap_psm, in add_opps_sdp()
681 rec->hdr.service_name); in add_opps_sdp()
702 protoList[1].params[0] = rec->hdr.rfcomm_channel_number; in add_opps_sdp()
710 (uint32_t)(rec->hdr.service_name_length + 1), in add_opps_sdp()
711 (uint8_t*)rec->hdr.service_name); in add_opps_sdp()
715 sdp_handle, UUID_SERVCLASS_OBEX_OBJECT_PUSH, rec->hdr.profile_version); in add_opps_sdp()
730 if (rec->hdr.l2cap_psm != -1) { in add_opps_sdp()
732 UINT16_TO_BE_STREAM(p_temp, rec->hdr.l2cap_psm); in add_opps_sdp()
767 rec->hdr.rfcomm_channel_number, rec->hdr.service_name); in add_saps_sdp()
787 protoList[1].params[0] = rec->hdr.rfcomm_channel_number; in add_saps_sdp()
793 (uint32_t)(rec->hdr.service_name_length + 1), in add_saps_sdp()
794 (uint8_t*)rec->hdr.service_name); in add_saps_sdp()
798 rec->hdr.profile_version); in add_saps_sdp()