Return-Path: Message-ID: From: "Albert Huang" To: bluez-devel@lists.sourceforge.net Subject: Re: [Bluez-devel] sdp_record_register() In-Reply-To: <26872589.1140424746785.JavaMail.tomcat@pne-ps5-sn2> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_7972_8881066.1140452313537" References: <26872589.1140424746785.JavaMail.tomcat@pne-ps5-sn2> Sender: bluez-devel-admin@lists.sourceforge.net Errors-To: bluez-devel-admin@lists.sourceforge.net Reply-To: bluez-devel@lists.sourceforge.net List-Unsubscribe: , List-Id: BlueZ development List-Post: List-Help: List-Subscribe: , List-Archive: Date: Mon, 20 Feb 2006 11:18:33 -0500 ------=_Part_7972_8881066.1140452313537 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline > I found following thing in sdp_record_register(): > The comment in source code tells that the function returns non-null > pointer on > success and -1 on failure. I have investigated the code and found out tha= t > the > function returns only 0 or -1: what version of bluez are you using? The latest versions don't say this, i= n either sdp.h or sdp_lib.h There are two return commands in the function: return -1; and return status= ; > and for status: status=3D-1; and status =3D sdp_send_req_w4_rsp(...); In > sdp_send_req_w4_rsp() there is three times return -1; and one return 0; > So, is the return value zero success here? > yes. -albert ------=_Part_7972_8881066.1140452313537 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
I found foll= owing thing in sdp_record_register():
The comment in source code tells that the function returns non-null pointer= on
success and -1 on failure. I have investigated the code and found ou= t that the
function returns only 0 or -1:

what version of bluez are you using?  The latest versions don't say th= is, in either sdp.h or sdp_lib.h

There a= re two return commands in the function: return -1; and return status;
an= d for status: status=3D-1; and status =3D sdp_send_req_w4_rsp(...); In
sdp_send_req_w4_rsp() there is three times return -1; and one return 0;=
So, is the return value zero success here?

yes. 

-albert
------=_Part_7972_8881066.1140452313537-- ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 _______________________________________________ Bluez-devel mailing list Bluez-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bluez-devel