Thread (15 messages) 15 messages, 4 authors, 2003-09-19

Re: [Bluez-devel] [PATCH] More SDP UUIDs...

From: Marcel Holtmann <marcel@holtmann.org>
Date: 2003-09-17 00:28:15

Hi Jean,
quoted
who are the current users of sdp_uuid_cmp() ?
	As far as I can see, it's only used internally, like this :

record.c:       if (sdp_list_find(rec->pattern, uuid128, sdp_uuid_cmp) == NULL)
record.c:               rec->pattern = sdp_list_insert_sorted(rec->pattern, uuid128, sdp_uuid_cmp);

	I believe that it can only work with the server records,
because it require all UUIDs to be 128, whereas the UUID you get as a
client are UUID16. That's why I needed the other function :

	  if(sdp_list_find(services, &service_nap, sdp_uuid16_cmp) != NULL)
please send me a patch, with the modified code above, your function name
change and the extra function.
quoted
Of course, because that is the only output that matters to me and I
don't find the tree output so ugly. This is an example output of my
Bluespoon headset from my code:

Sequence
        Attribute 0x0000 - Service record handle
                UINT32 0x00010000
        Attribute 0x0001 - Service class ID list
                Sequence
                        UUID16 0x1108 - Headset
                        UUID16 0x1203 - Generic Audio
        Attribute 0x0004 - Protocol descriptor list
                Sequence
                        Sequence
                                UUID16 0x0100 - L2CAP
                        Sequence
                                UUID16 0x0003 - RFCOMM
	This looks much better than what I have with sdp-1.2, it seems
that you have done some nice cleanup. Wonderful ;-)
quoted
                                UINT8 0x01
	Why is this one broken ? In version 1.2, it should display
"Channel/Port".
quoted
        Attribute 0x0009 - Bluetooth profile descriptor list
                Sequence
                        Sequence
                                UUID16 0x1108 - Headset
                                UINT16 0x0100
	I can't help on this one, but that would be easy to add.
quoted
        Attribute 0x0302
                Bool True
I forgot to mention that I started from scratch and the output you see
above is a textual presentation of the new internal data structure. The
core attributes id's and the UUID16's are decoded into strings, because
they are unique. All other meanings of some data elements depends on
others. I have to add some checks which makes sure that this is a valid
SDP record, before I can do this.

Regards

Marcel




-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help