• Home
  • Raw
  • Download

Lines Matching refs:p_attr

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