Home | History | Annotate | Download | only in src

Lines Matching refs:rec

106 		sdp_record_t *rec = (sdp_record_t *) list->data;
108 if (rec->svclass.type != SDP_UUID16)
111 switch (rec->svclass.value.uuid16) {
225 sdp_record_t *rec = (sdp_record_t *) list->data;
227 if (rec->svclass.type != SDP_UUID16)
230 if (rec->svclass.value.uuid16 < 0x1100)
233 if (rec->svclass.value.uuid16 == PNP_INFO_SVCLASS_ID)
242 if (uuid[i] == rec->svclass.value.uuid16)
248 uuid[index++] = rec->svclass.value.uuid16;
404 int add_record_to_server(const bdaddr_t *src, sdp_record_t *rec)
409 if (rec->handle == 0xffffffff) {
410 rec->handle = sdp_next_handle();
411 if (rec->handle < 0x10000)
414 if (sdp_record_find(rec->handle))
418 DBG("Adding record with handle 0x%05x", rec->handle);
420 sdp_record_add(src, rec);
422 data = sdp_data_alloc(SDP_UINT32, &rec->handle);
423 sdp_attr_replace(rec, SDP_ATTR_RECORD_HANDLE, data);
425 if (sdp_data_get(rec, SDP_ATTR_BROWSE_GRP_LIST) == NULL) {
428 sdp_pattern_add_uuid(rec, &uuid);
431 for (pattern = rec->pattern; pattern; pattern = pattern->next) {
449 sdp_record_t *rec;
453 rec = sdp_record_find(handle);
454 if (!rec)
462 sdp_record_free(rec);
475 sdp_record_t *rec = NULL;
503 rec = sdp_record_find(handle);
505 rec = sdp_record_find(handleExpected);
507 if (!rec) {
508 rec = sdp_record_alloc();
509 rec->attrlist = NULL;
511 rec->handle = handle;
512 sdp_record_add(device, rec);
514 rec->handle = handleExpected;
515 sdp_record_add(device, rec);
518 sdp_list_free(rec->attrlist, (sdp_free_func_t) sdp_data_free);
519 rec->attrlist = NULL;
541 &attrValueLength, rec);
553 sdp_attr_replace(rec, attrId, pAttr);
560 SDPDBG("Successful extracting of Svc Rec attributes");
562 sdp_print_service_attr(rec->attrlist);
566 return rec;
578 sdp_record_t *rec;
588 rec = extract_pdu_server(&req->device, p, bufsize, 0xffffffff, &scanned);
589 if (!rec)
592 if (rec->handle == 0xffffffff) {
593 rec->handle = sdp_next_handle();
594 if (rec->handle < 0x10000) {
595 sdp_record_free(rec);
599 if (sdp_record_find(rec->handle)) {
607 sdp_record_add(&req->device, rec);
609 sdp_svcdb_set_collectable(rec, req->sock);
611 handle = sdp_data_alloc(SDP_UINT32, &rec->handle);
612 sdp_attr_replace(rec, SDP_ATTR_RECORD_HANDLE, handle);
617 if (sdp_data_get(rec, SDP_ATTR_BROWSE_GRP_LIST) == NULL) {
620 sdp_pattern_add_uuid(rec, &uuid);
627 bt_put_unaligned(htonl(rec->handle), (uint32_t *) rsp->data);
650 SDPDBG("Svc Rec Handle: 0x%x", handle);
689 sdp_record_t *rec;
695 rec = sdp_record_find(handle);
696 if (rec) {
697 sdp_svcdb_collect(rec);
699 sdp_record_free(rec);