diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2005-08-03 07:41:21 +0000 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2005-08-03 07:41:21 +0000 |
commit | fb1557c4111ca9993e4927af6f65bdbf9c2fa8ec (patch) | |
tree | 10eb4d02f17d2d4a0aed5334d6ece8552ee9ed6e /src/sdp.c | |
parent | a1454c0f12421da1849ca347f8a30d084778d679 (diff) |
Add device specific record register
Diffstat (limited to 'src/sdp.c')
-rw-r--r-- | src/sdp.c | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -2318,8 +2318,13 @@ int sdp_device_record_register(sdp_session_t *session, bdaddr_t *device, sdp_rec reqhdr->tid = htons(sdp_gen_tid(session)); reqsize = sizeof(sdp_pdu_hdr_t) + 1; p = req + sizeof(sdp_pdu_hdr_t); - *p++ = flags; - if (0 > sdp_gen_record_pdu(rec, &pdu)) { + if (bacmp(device, BDADDR_ANY)) { + *p++ = flags | SDP_DEVICE_RECORD; + bacpy((bdaddr_t *) p, device); + p += sizeof(bdaddr_t); + } else + *p++ = flags; + if (sdp_gen_record_pdu(rec, &pdu) < 0) { status = -1; errno = ENOMEM; goto end; |