Lines Matching defs:p_attr
63 tSDP_ATTRIBUTE *p_attr;
78 p_attr = &p_rec->attribute[0];
79 for (xx = 0; xx < p_rec->num_attributes; xx++, p_attr++)
81 if (p_attr->type == UUID_DESC_TYPE)
83 if (sdpu_compare_uuid_arrays (p_attr->value_ptr, p_attr->len,
88 else if (p_attr->type == DATA_ELE_SEQ_DESC_TYPE)
90 if (find_uuid_in_seq (p_attr->value_ptr, p_attr->len,
444 tSDP_ATTRIBUTE *p_attr = &p_rec->attribute[0];
447 for (xx = 0; xx < p_rec->num_attributes; xx++, p_attr++)
450 if (p_attr->id == attr_id)
455 if (p_attr->id > attr_id)
464 p_attr = &p_rec->attribute[p_rec->num_attributes];
472 p_attr->id = attr_id;
473 p_attr->type = attr_type;
474 p_attr->len = attr_len;
494 p_attr->len = attr_len;
496 p_attr->value_ptr = &p_rec->attr_pad[p_rec->free_pad_ptr];
499 else if ((attr_len == 0 && p_attr->len != 0) || /* if truncate to 0 length, simply don't add */
504 p_attr->id = p_attr->type = p_attr->len = 0;
909 tSDP_ATTRIBUTE *p_attr = &p_rec->attribute[0];
913 for (xx = 0; xx < p_rec->num_attributes; xx++, p_attr++)
915 if (p_attr->id == attr_id)
917 pad_ptr = p_attr->value_ptr;
918 len = p_attr->len;
932 for (yy = xx; yy < p_rec->num_attributes; yy++, p_attr++)
934 *p_attr = *(p_attr + 1);
978 tSDP_ATTRIBUTE *p_attr;
987 while ( (p_attr = sdp_db_find_attr_in_rec (p_rec, start, end)) != NULL)
992 if (p_attr->len > (UINT32)(rem_len - 6))
995 p_rsp = sdpu_build_attrib_entry (p_rsp, p_attr);
998 start = p_attr->id + 1;