Home | History | Annotate | Download | only in sdp

Lines Matching defs:p_rec

59 tSDP_RECORD *sdp_db_service_search (tSDP_RECORD *p_rec, tSDP_UUID_SEQ *p_seq)
66 if (!p_rec)
67 p_rec = &sdp_cb.server_db.record[0];
69 p_rec++;
73 for ( ; p_rec < p_end; p_rec++)
77 p_attr = &p_rec->attribute[0];
78 for (xx = 0; xx < p_rec->num_attributes; xx++, p_attr++)
96 if (xx == p_rec->num_attributes)
102 return (p_rec);
163 tSDP_RECORD *p_rec;
167 for (p_rec = &sdp_cb.server_db.record[0]; p_rec < p_end; p_rec++)
169 if (p_rec->record_handle == handle)
170 return (p_rec);
189 tSDP_ATTRIBUTE *sdp_db_find_attr_in_rec (tSDP_RECORD *p_rec, UINT16 start_attr,
196 for (xx = 0, p_at = &p_rec->attribute[0]; xx < p_rec->num_attributes;
333 tSDP_RECORD *p_rec = &sdp_cb.server_db.record[0];
348 for (xx = 0; xx < sdp_cb.server_db.num_records; xx++, p_rec++)
350 if (p_rec->record_handle == handle)
353 for (yy = xx; yy < sdp_cb.server_db.num_records; yy++, p_rec++)
355 *p_rec = *(p_rec + 1);
358 for (zz = 0; zz < p_rec->num_attributes; zz++)
359 p_rec->attribute[zz].value_ptr -= sizeof(tSDP_RECORD);
400 tSDP_RECORD *p_rec = &sdp_cb.server_db.record[0];
437 for (zz = 0; zz < sdp_cb.server_db.num_records; zz++, p_rec++)
439 if (p_rec->record_handle == handle)
441 tSDP_ATTRIBUTE *p_attr = &p_rec->attribute[0];
444 for (xx = 0; xx < p_rec->num_attributes; xx++, p_attr++)
456 if (p_rec->num_attributes == SDP_MAX_REC_ATTR)
460 if (xx == p_rec->num_attributes)
461 p_attr = &p_rec->attribute[p_rec->num_attributes];
465 for (yy = p_rec
466 p_rec->attribute[yy] = p_rec->attribute[yy - 1];
473 if (p_rec->free_pad_ptr + attr_len >= SDP_MAX_PAD_LEN)
479 attr_len, SDP_MAX_PAD_LEN - p_rec->free_pad_ptr );
481 attr_len = SDP_MAX_PAD_LEN - p_rec->free_pad_ptr;
482 p_val[SDP_MAX_PAD_LEN - p_rec->free_pad_ptr] = '\0';
483 p_val[SDP_MAX_PAD_LEN - p_rec->free_pad_ptr+1] = '\0';
492 memcpy (&p_rec->attr_pad[p_rec->free_pad_ptr], p_val, (size_t)attr_len);
493 p_attr->value_ptr = &p_rec->attr_pad[p_rec->free_pad_ptr];
494 p_rec->free_pad_ptr += attr_len;
504 p_rec->num_attributes++;
891 tSDP_RECORD *p_rec = &sdp_cb.server_db.record[0];
896 for (xx = 0; xx < sdp_cb.server_db.num_records; xx++, p_rec++)
898 if (p_rec->record_handle == handle)
900 tSDP_ATTRIBUTE *p_attr = &p_rec->attribute[0];
904 for (xx = 0; xx < p_rec->num_attributes; xx++, p_attr++)
913 for (yy = 0; yy < p_rec->num_attributes; yy++)
915 if( p_rec->attribute[yy].value_ptr > pad_ptr )
916 p_rec->attribute[yy].value_ptr -= len;
921 p_rec->num_attributes--;
923 for (yy = xx; yy < p_rec->num_attributes; yy++, p_attr++)
931 xx = (p_rec->free_pad_ptr - ((pad_ptr+len) -
932 &p_rec->attr_pad[0]));
935 p_rec->free_pad_ptr -= len;
966 tSDP_RECORD *p_rec;
974 p_rec = sdp_db_find_record(handle);
975 if(p_rec && p_data && p_data_len)
978 while ( (p_attr = sdp_db_find_attr_in_rec (p_rec, start, end)) != NULL)