Home | History | Annotate | Download | only in sdp

Lines Matching refs:p_rec

60 tSDP_RECORD *sdp_db_service_search (tSDP_RECORD *p_rec, tSDP_UUID_SEQ *p_seq)
67 if (!p_rec)
68 p_rec = &sdp_cb.server_db.record[0];
70 p_rec++;
74 for ( ; p_rec < p_end; p_rec++)
78 p_attr = &p_rec->attribute[0];
79 for (xx = 0; xx < p_rec->num_attributes; xx++, p_attr++)
97 if (xx == p_rec->num_attributes)
103 return (p_rec);
164 tSDP_RECORD *p_rec;
168 for (p_rec = &sdp_cb.server_db.record[0]; p_rec < p_end; p_rec++)
170 if (p_rec->record_handle == handle)
171 return (p_rec);
190 tSDP_ATTRIBUTE *sdp_db_find_attr_in_rec (tSDP_RECORD *p_rec, UINT16 start_attr,
197 for (xx = 0, p_at = &p_rec->attribute[0]; xx < p_rec->num_attributes;
334 tSDP_RECORD *p_rec = &sdp_cb.server_db.record[0];
350 for (xx = 0; xx < sdp_cb.server_db.num_records; xx++, p_rec++)
352 if (p_rec->record_handle == handle)
355 for (yy = xx; yy < sdp_cb.server_db.num_records; yy++, p_rec++)
357 *p_rec = *(p_rec + 1);
360 for (zz = 0; zz < p_rec->num_attributes; zz++)
361 p_rec->attribute[zz].value_ptr -= sizeof(tSDP_RECORD);
403 tSDP_RECORD *p_rec = &sdp_cb.server_db.record[0];
440 for (zz = 0; zz < sdp_cb.server_db.num_records; zz++, p_rec++)
442 if (p_rec->record_handle == handle)
444 tSDP_ATTRIBUTE *p_attr = &p_rec->attribute[0];
447 for (xx = 0; xx < p_rec->num_attributes; xx++, p_attr++)
459 if (p_rec->num_attributes == SDP_MAX_REC_ATTR)
463 if (xx == p_rec->num_attributes)
464 p_attr = &p_rec->attribute[p_rec->num_attributes];
468 for (yy = p_rec->num_attributes; yy > xx; yy--)
469 p_rec->attribute[yy] = p_rec->attribute[yy - 1];
476 if (p_rec->free_pad_ptr + attr_len >= SDP_MAX_PAD_LEN)
482 attr_len, SDP_MAX_PAD_LEN - p_rec->free_pad_ptr );
484 attr_len = SDP_MAX_PAD_LEN - p_rec->free_pad_ptr;
485 p_val[SDP_MAX_PAD_LEN - p_rec->free_pad_ptr] = '\0';
486 p_val[SDP_MAX_PAD_LEN - p_rec->free_pad_ptr+1] = '\0';
495 memcpy (&p_rec->attr_pad[p_rec->free_pad_ptr], p_val, (size_t)attr_len);
496 p_attr->value_ptr = &p_rec->attr_pad[p_rec->free_pad_ptr];
497 p_rec->free_pad_ptr += attr_len;
507 p_rec->num_attributes++;
900 tSDP_RECORD *p_rec = &sdp_cb.server_db.record[0];
905 for (xx = 0; xx < sdp_cb.server_db.num_records; xx++, p_rec++)
907 if (p_rec->record_handle == handle)
909 tSDP_ATTRIBUTE *p_attr = &p_rec->attribute[0];
913 for (xx = 0; xx < p_rec->num_attributes; xx++, p_attr++)
922 for (yy = 0; yy < p_rec->num_attributes; yy++)
924 if( p_rec->attribute[yy].value_ptr > pad_ptr )
925 p_rec
930 p_rec->num_attributes--;
932 for (yy = xx; yy < p_rec->num_attributes; yy++, p_attr++)
940 xx = (p_rec->free_pad_ptr - ((pad_ptr+len) -
941 &p_rec->attr_pad[0]));
944 p_rec->free_pad_ptr -= len;
975 tSDP_RECORD *p_rec;
983 p_rec = sdp_db_find_record(handle);
984 if(p_rec && p_data && p_data_len)
987 while ( (p_attr = sdp_db_find_attr_in_rec (p_rec, start, end)) != NULL)