diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2008-10-06 16:35:45 +0200 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2008-10-06 16:35:45 +0200 |
commit | 2e6dd6427406c6c255703f5998ef2bf9db14c68e (patch) | |
tree | a3a8077a71bf0485fc83f8b7ba12a9bb310136c0 /src | |
parent | 11c5278ced35d333b1c86e10375f0a4607a99a11 (diff) |
Print the UUIDs associated with a record pattern
Diffstat (limited to 'src')
-rw-r--r-- | src/sdpd-service.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/sdpd-service.c b/src/sdpd-service.c index cd0b97d0..d0df7022 100644 --- a/src/sdpd-service.c +++ b/src/sdpd-service.c @@ -387,6 +387,7 @@ void register_device_id(const uint16_t vendor, const uint16_t product, int add_record_to_server(const bdaddr_t *src, sdp_record_t *rec) { sdp_data_t *data; + sdp_list_t *pattern; if (rec->handle == 0xffffffff) { rec->handle = sdp_next_handle(); @@ -410,6 +411,16 @@ int add_record_to_server(const bdaddr_t *src, sdp_record_t *rec) sdp_pattern_add_uuid(rec, &uuid); } + for (pattern = rec->pattern; pattern; pattern = pattern->next) { + char uuid[32]; + + if (pattern->data == NULL) + continue; + + sdp_uuid2strn((uuid_t *) pattern->data, uuid, sizeof(uuid)); + debug("Record pattern UUID %s", uuid); + } + update_db_timestamp(); update_svclass_list(); |