Lines Matching defs:p_attr
270 tSDP_DISC_ATTR *p_attr;
283 p_attr = p_rec->p_first_attr;
284 while (p_attr)
286 if (p_attr->attr_id == attr_id)
289 p_attr = p_attr->p_next_attr;
313 tSDP_DISC_ATTR *p_attr;
315 p_attr = p_rec->p_first_attr;
316 while (p_attr)
318 if (p_attr->attr_id == attr_id)
319 return(p_attr);
321 p_attr = p_attr->p_next_attr;
344 tSDP_DISC_ATTR *p_attr, *p_sattr, *p_extra_sattr;
346 p_attr = p_rec->p_first_attr;
348 while (p_attr)
350 if ((p_attr->attr_id == ATTR_ID_SERVICE_CLASS_ID_LIST)
351 && (SDP_DISC_ATTR_TYPE(p_attr->attr_len_type) == DATA_ELE_SEQ_DESC_TYPE))
353 for (p_sattr = p_attr->attr_value.v.p_sub_attr; p_sattr; p_sattr = p_sattr->p_next_attr)
402 else if (p_attr->attr_id == ATTR_ID_SERVICE_ID)
404 if ((SDP_DISC_ATTR_TYPE(p_attr->attr_len_type) == UUID_DESC_TYPE)
406 && (SDP_DISC_ATTR_LEN(p_attr->attr_len_type) == 2))
409 p_uuid->uu.uuid16 = p_attr->attr_value.v.u16;
413 p_attr = p_attr->p_next_attr;
435 tSDP_DISC_ATTR *p_attr, *p_sattr, *p_extra_sattr;
437 p_attr = p_rec->p_first_attr;
439 while (p_attr)
441 if ((p_attr->attr_id == ATTR_ID_SERVICE_CLASS_ID_LIST)
442 && (SDP_DISC_ATTR_TYPE(p_attr->attr_len_type) == DATA_ELE_SEQ_DESC_TYPE))
444 for (p_sattr = p_attr->attr_value.v.p_sub_attr; p_sattr; p_sattr = p_sattr->p_next_attr)
459 else if (p_attr->attr_id == ATTR_ID_SERVICE_ID)
461 if ((SDP_DISC_ATTR_TYPE(p_attr->attr_len_type) == UUID_DESC_TYPE)
463 && (SDP_DISC_ATTR_LEN(p_attr->attr_len_type) == 16))
466 memcpy(p_uuid->uu.uuid128, p_attr->attr_value.v.array, MAX_UUID_SIZE);
470 p_attr = p_attr->p_next_attr;
492 tSDP_DISC_ATTR *p_attr, *p_sattr, *p_extra_sattr;
505 p_attr = p_rec->p_first_attr;
506 while (p_attr)
508 if ((p_attr->attr_id == ATTR_ID_SERVICE_CLASS_ID_LIST)
509 && (SDP_DISC_ATTR_TYPE(p_attr->attr_len_type) == DATA_ELE_SEQ_DESC_TYPE))
511 for (p_sattr = p_attr->attr_value.v.p_sub_attr; p_sattr; p_sattr = p_sattr->p_next_attr)
562 else if (p_attr->attr_id == ATTR_ID_SERVICE_ID)
564 if ((SDP_DISC_ATTR_TYPE(p_attr->attr_len_type) == UUID_DESC_TYPE)
565 && (SDP_DISC_ATTR_LEN(p_attr->attr_len_type) == 2)
567 && ((p_attr->attr_value.v.u16 == service_uuid) || service_uuid == 0))
571 p_attr = p_attr->p_next_attr;
600 tSDP_DISC_ATTR *p_attr, *p_sattr, *p_extra_sattr;
613 p_attr = p_rec->p_first_attr;
614 while (p_attr)
616 if ((p_attr->attr_id == ATTR_ID_SERVICE_CLASS_ID_LIST)
617 && (SDP_DISC_ATTR_TYPE(p_attr->attr_len_type) == DATA_ELE_SEQ_DESC_TYPE))
619 for (p_sattr = p_attr->attr_value.v.p_sub_attr; p_sattr; p_sattr = p_sattr->p_next_attr)
629 else if (p_attr->attr_id == ATTR_ID_SERVICE_ID)
631 if ((SDP_DISC_ATTR_TYPE(p_attr->attr_len_type) == UUID_DESC_TYPE)
632 && (SDP_DISC_ATTR_LEN(p_attr->attr_len_type) == 16))
636 p_attr = p_attr->p_next_attr;
666 tSDP_DISC_ATTR *p_attr, *p_sattr;
679 p_attr = p_rec->p_first_attr;
680 while (p_attr)
682 if ((p_attr->attr_id == ATTR_ID_SERVICE_CLASS_ID_LIST)
683 && (SDP_DISC_ATTR_TYPE(p_attr->attr_len_type) == DATA_ELE_SEQ_DESC_TYPE))
685 for (p_sattr = p_attr->attr_value.v.p_sub_attr; p_sattr; p_sattr = p_sattr->p_next_attr)
706 else if (p_attr->attr_id == ATTR_ID_SERVICE_ID)
708 if (SDP_DISC_ATTR_TYPE(p_attr->attr_len_type) == UUID_DESC_TYPE )
710 if (sdpu_compare_uuid_with_attr (p_uuid, p_attr))
715 p_attr = p_attr->p_next_attr;
736 static BOOLEAN sdp_fill_proto_elem( tSDP_DISC_ATTR *p_attr, UINT16 layer_uuid,
742 for (p_attr = p_attr->attr_value.v.p_sub_attr; p_attr; p_attr = p_attr->p_next_attr)
745 if (SDP_DISC_ATTR_TYPE(p_attr->attr_len_type) != DATA_ELE_SEQ_DESC_TYPE)
749 for (p_sattr = p_attr->attr_value.v.p_sub_attr; p_sattr; p_sattr = p_sattr->p_next_attr)
799 tSDP_DISC_ATTR *p_attr;
801 p_attr = p_rec->p_first_attr;
802 while (p_attr)
805 if ((p_attr->attr_id == ATTR_ID_PROTOCOL_DESC_LIST)
806 && (SDP_DISC_ATTR_TYPE(p_attr->attr_len_type) == DATA_ELE_SEQ_DESC_TYPE))
808 return sdp_fill_proto_elem(p_attr, layer_uuid, p_elem);
810 p_attr = p_attr->p_next_attr;
832 tSDP_DISC_ATTR *p_attr, *p_sattr;
835 p_attr = p_rec->p_first_attr;
836 while (p_attr)
839 if ((p_attr->attr_id == ATTR_ID_ADDITION_PROTO_DESC_LISTS)
840 && (SDP_DISC_ATTR_TYPE(p_attr->attr_len_type) == DATA_ELE_SEQ_DESC_TYPE))
842 for (p_sattr = p_attr->attr_value.v.p_sub_attr; p_sattr; p_sattr = p_sattr->p_next_attr)
853 p_attr = p_attr->p_next_attr;
878 tSDP_DISC_ATTR *p_attr, *p_sattr;
880 p_attr = p_rec->p_first_attr;
881 while (p_attr)
884 if ((p_attr->attr_id == ATTR_ID_BT_PROFILE_DESC_LIST)
885 && (SDP_DISC_ATTR_TYPE(p_attr->attr_len_type) == DATA_ELE_SEQ_DESC_TYPE))
888 for (p_attr = p_attr->attr_value.v.p_sub_attr; p_attr; p_attr = p_attr->p_next_attr)
891 if (SDP_DISC_ATTR_TYPE(p_attr->attr_len_type) != DATA_ELE_SEQ_DESC_TYPE)
895 for (p_sattr = p_attr->attr_value.v.p_sub_attr; p_sattr; p_sattr = p_sattr->p_next_attr)
921 p_attr = p_attr->p_next_attr;
1003 static void SDP_AttrStringCopy(char *dst, tSDP_DISC_ATTR *p_attr, UINT16 dst_size)
1006 if ( p_attr )
1008 UINT16 len = SDP_DISC_ATTR_LEN(p_attr->attr_len_type);
1013 memcpy(dst, (char *)p_attr->attr_value.v.array, len);
1292 tSDP_ATTRIBUTE *p_attr;
1306 if ((p_attr = sdp_db_find_attr_in_rec(p_rec, ATTR_ID_SPECIFICATION_ID,
1309 p_temp = p_attr->value_ptr;
1314 if ((p_attr = sdp_db_find_attr_in_rec(p_rec, ATTR_ID_VENDOR_ID,
1317 p_temp = p_attr->value_ptr;
1322 if ((p_attr = sdp_db_find_attr_in_rec(p_rec, ATTR_ID_PRODUCT_ID,
1325 p_temp = p_attr->value_ptr;
1330 if ((p_attr = sdp_db_find_attr_in_rec(p_rec, ATTR_ID_PRODUCT_VERSION,
1333 p_temp = p_attr->value_ptr;
1338 if ((p_attr = sdp_db_find_attr_in_rec(p_rec, ATTR_ID_VENDOR_ID_SOURCE,
1341 p_temp = p_attr->value_ptr;
1346 if ((p_attr = sdp_db_find_attr_in_rec(p_rec, ATTR_ID_PRIMARY_RECORD,
1349 p_device_info->rec.primary_record = *p_attr->value_ptr;
1353 if ((p_attr = sdp_db_find_attr_in_rec(p_rec, ATTR_ID_CLIENT_EXE_URL,
1356 templen = (INT32)((p_attr->len < SDP_MAX_ATTR_LEN) ? p_attr
1357 p_temp = p_attr->value_ptr;
1362 if ((p_attr = sdp_db_find_attr_in_rec(p_rec, ATTR_ID_SERVICE_DESCRIPTION,
1365 templen = (INT32)((p_attr->len < SDP_MAX_ATTR_LEN) ? p_attr->len : SDP_MAX_ATTR_LEN);
1366 p_temp = p_attr->value_ptr;
1371 if ((p_attr = sdp_db_find_attr_in_rec(p_rec, ATTR_ID_DOCUMENTATION_URL,
1374 templen = (INT32)((p_attr->len < SDP_MAX_ATTR_LEN) ? p_attr->len : SDP_MAX_ATTR_LEN);
1375 p_temp = p_attr->value_ptr;