[Bluez-devel] adding PDU and debbugging sdp daemon

Carlo Giuseppe Monaco
2008-06-26T13:27:18Z

[-- Attachment #1.1: Type: text/plain, Size: 1271 bytes --]

Dear Sir,

I'm modifying bluez-libs and bluez-utils (i'm using
3.9 version) to introduce new pdu relating to registration, request and
response of new services.
For example i'm adding new pdu types, defining them into bluez-libs-3.9/include/sdp.h

# define SDP_NEW_REGISTER_REQ 0x85

But
during debugging I returned errno = EINVAL (set by sdp_device_record_register_binary written in sdp.c ) and the sdp daemon log file
gets the following result:

Jun 25 21:26:31 pinta-desktop hcid[4967]: Unknown PDU ID : 0x85 received
(i thintk it's a message sent from function process_request
written in bluez_utils_3.9/sdpd/request.c )

How can i accept new types of pdu declared?
Is
there a way to debug sdp daemon alternative to log file, for example
using gdb o using particular options in ./configure command? I tried
using --enable-debug option for configure and launching gdb, but they
don't work.

Thanks for your support and sorry for my english.

Best Regards,
Carlo M.

_________________________________________________________________
Invite your mail contacts to join your friends list with Windows Live Spaces. It's easy!
http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us

[-- Attachment #1.2: Type: text/html, Size: 2101 bytes --]

[-- Attachment #2: Type: text/plain, Size: 247 bytes --]

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php

[-- Attachment #3: Type: text/plain, Size: 164 bytes --]

_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net