Home | History | Annotate | Download | only in sdp

Lines Matching full:p_sattr

344     tSDP_DISC_ATTR  *p_attr, *p_sattr, *p_extra_sattr;
353 for (p_sattr = p_attr->attr_value.v.p_sub_attr; p_sattr; p_sattr = p_sattr->p_next_attr)
355 if (SDP_DISC_ATTR_TYPE(p_sattr->attr_len_type) == UUID_DESC_TYPE)
357 if (SDP_DISC_ATTR_LEN(p_sattr->attr_len_type) == LEN_UUID_16)
360 p_uuid->uu.uuid16 = p_sattr->attr_value.v.u16;
362 else if (SDP_DISC_ATTR_LEN(p_sattr->attr_len_type) == LEN_UUID_128)
365 memcpy(p_uuid->uu.uuid128, p_sattr->attr_value.v.array, LEN_UUID_128);
367 else if (SDP_DISC_ATTR_LEN(p_sattr->attr_len_type) == LEN_UUID_32)
370 p_uuid->uu.uuid32 = p_sattr->attr_value.v.u32;
382 if (SDP_DISC_ATTR_TYPE(p_sattr->attr_len_type) == DATA_ELE_SEQ_DESC_TYPE)
385 for (p_extra_sattr = p_sattr->attr_value.v.p_sub_attr; p_extra_sattr; p_extra_sattr = p_extra_sattr->p_next_attr)
435 tSDP_DISC_ATTR *p_attr, *p_sattr, *p_extra_sattr;
444 for (p_sattr = p_attr->attr_value.v.p_sub_attr; p_sattr; p_sattr = p_sattr->p_next_attr)
446 if (SDP_DISC_ATTR_TYPE(p_sattr->attr_len_type) == UUID_DESC_TYPE)
449 if (SDP_DISC_ATTR_LEN(p_sattr->attr_len_type) == 16)
452 memcpy(p_uuid->uu.uuid128, p_sattr->attr_value.v.array, MAX_UUID_SIZE);
492 tSDP_DISC_ATTR *p_attr, *p_sattr, *p_extra_sattr;
511 for (p_sattr = p_attr->attr_value.v.p_sub_attr; p_sattr; p_sattr = p_sattr->p_next_attr)
514 if ((SDP_DISC_ATTR_TYPE(p_sattr->attr_len_type) == UUID_DESC_TYPE)
515 && (SDP_DISC_ATTR_LEN(p_sattr->attr_len_type) == 2) ) {
516 SDP_TRACE_DEBUG("SDP_FindServiceInDb - p_sattr value = 0x%x serviceuuid = 0x%x\r\n",
517 p_sattr->attr_value.v.u16, service_uuid);
520 if( (p_sattr->attr_value.v.u16==UUID_SERVCLASS_HDP_SOURCE) || ( p_sattr->attr_value.v.u16==UUID_SERVCLASS_HDP_SINK))
529 if ((SDP_DISC_ATTR_TYPE(p_sattr->attr_len_type) == UUID_DESC_TYPE)
530 && (SDP_DISC_ATTR_LEN(p_sattr->attr_len_type) == 2)
532 && ((p_sattr->attr_value.v.u16 == service_uuid) || service_uuid == 0))
543 if (SDP_DISC_ATTR_TYPE(p_sattr->attr_len_type) == DATA_ELE_SEQ_DESC_TYPE)
546 for (p_extra_sattr = p_sattr->attr_value.v.p_sub_attr; p_extra_sattr; p_extra_sattr = p_extra_sattr->p_next_attr)
600 tSDP_DISC_ATTR *p_attr, *p_sattr, *p_extra_sattr;
619 for (p_sattr = p_attr->attr_value.v.p_sub_attr; p_sattr; p_sattr = p_sattr->p_next_attr)
621 if ((SDP_DISC_ATTR_TYPE(p_sattr->attr_len_type) == UUID_DESC_TYPE)
622 && (SDP_DISC_ATTR_LEN(p_sattr->attr_len_type) == 16))
666 tSDP_DISC_ATTR *p_attr, *p_sattr;
685 for (p_sattr = p_attr->attr_value.v.p_sub_attr; p_sattr; p_sattr = p_sattr->p_next_attr)
687 if (SDP_DISC_ATTR_TYPE(p_sattr->attr_len_type) == UUID_DESC_TYPE)
700 if (sdpu_compare_uuid_with_attr (p_uuid, p_sattr))
739 tSDP_DISC_ATTR *p_sattr;
749 for (p_sattr = p_attr->attr_value.v.p_sub_attr; p_sattr; p_sattr = p_sattr->p_next_attr)
751 /* SDP_TRACE_DEBUG ("SDP - p_sattr 0x%x, layer_uuid:0x%x, u16:0x%x####",
752 p_sattr, layer_uuid, p_sattr->attr_value.v.u16); */
754 if ((SDP_DISC_ATTR_TYPE(p_sattr->attr_len_type) == UUID_DESC_TYPE)
755 && (SDP_DISC_ATTR_LEN(p_sattr->attr_len_type) == 2)
756 && (p_sattr->attr_value.v.u16 == layer_uuid))
763 for (p_sattr = p_sattr->p_next_attr; p_sattr; p_sattr = p_sattr->p_next_attr)
765 if (SDP_DISC_ATTR_TYPE(p_sattr->attr_len_type) != UINT_DESC_TYPE)
768 if (SDP_DISC_ATTR_LEN(p_sattr->attr_len_type) == 2)
769 p_elem->params[p_elem->num_params++] = p_sattr->attr_value.v.u16;
771 p_elem->params[p_elem->num_params++] = p_sattr->attr_value.v.u8;
832 tSDP_DISC_ATTR *p_attr, *p_sattr;
842 for (p_sattr = p_attr->attr_value.v.p_sub_attr; p_sattr; p_sattr = p_sattr->p_next_attr)
845 if (SDP_DISC_ATTR_TYPE(p_sattr->attr_len_type) == DATA_ELE_SEQ_DESC_TYPE)
847 if ( (ret = sdp_fill_proto_elem(p_sattr, layer_uuid, p_elem)) == TRUE)
878 tSDP_DISC_ATTR *p_attr, *p_sattr;
895 for (p_sattr = p_attr->attr_value.v.p_sub_attr; p_sattr; p_sattr = p_sattr->p_next_attr)
897 if ((SDP_DISC_ATTR_TYPE(p_sattr->attr_len_type) == UUID_DESC_TYPE)
898 && (SDP_DISC_ATTR_LEN(p_sattr->attr_len_type) == 2) /* <- This is bytes, not size code! */
899 && (p_sattr->attr_value.v.u16 == profile_uuid))
903 p_sattr = p_sattr->p_next_attr;
905 if ((SDP_DISC_ATTR_TYPE(p_sattr->attr_len_type) == UINT_DESC_TYPE) &&
906 (SDP_DISC_ATTR_LEN(p_sattr->attr_len_type) == 2))
909 *p_version = p_sattr->attr_value.v.u16;