summaryrefslogtreecommitdiffstats
path: root/sdpd/service.c
diff options
context:
space:
mode:
authorClaudio Takahasi <claudio.takahasi@openbossa.org>2008-03-20 20:10:49 +0000
committerClaudio Takahasi <claudio.takahasi@openbossa.org>2008-03-20 20:10:49 +0000
commitd504a0767e08b04f2af78c10db79d8e35f0c3e92 (patch)
treef184a4a0ecb024ed2758f7f21bec72e9ca44b448 /sdpd/service.c
parent1f84f3545e276c9086a865e18ded06eb50c2f41e (diff)
Add records based on the adapter address
Diffstat (limited to 'sdpd/service.c')
-rw-r--r--sdpd/service.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sdpd/service.c b/sdpd/service.c
index e156cdc4..57a272db 100644
--- a/sdpd/service.c
+++ b/sdpd/service.c
@@ -359,7 +359,7 @@ void register_device_id(const uint16_t vendor, const uint16_t product,
update_svclass_list();
}
-int add_record_to_server(sdp_record_t *rec)
+int add_record_to_server(bdaddr_t *src, sdp_record_t *rec)
{
sdp_data_t *data;
@@ -374,7 +374,7 @@ int add_record_to_server(sdp_record_t *rec)
debug("Adding record with handle 0x%05x", rec->handle);
- sdp_record_add(BDADDR_ANY, rec);
+ sdp_record_add(src, rec);
data = sdp_data_alloc(SDP_UINT32, &rec->handle);
sdp_attr_replace(rec, SDP_ATTR_RECORD_HANDLE, data);