public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
From: Marcel Holtmann <marcel@holtmann.org>
To: Hendrik Sattler <post@hendrik-sattler.de>
Cc: BlueZ development <bluez-devel@lists.sourceforge.net>
Subject: Re: [Bluez-devel] SDP services cannot be unregistered
Date: Fri, 21 Dec 2007 00:12:32 +0100	[thread overview]
Message-ID: <1198192352.8050.269.camel@aeonflux> (raw)
In-Reply-To: <200712202240.34586.post@hendrik-sattler.de>

Hi Hendrik,

> > first of all you are using the unregister function wrongly. You have to
> > give it the exact record structure you gave the register function. So
> > when you allocate a new record, then the unregister has no idea what to
> > do with it.
> 
> Ok, I remember now everything related to the record and it works. One note 
> though: the sdp_record_free() function always crashes. Is it actually 
> supposed to be used? Or asked the other way: how is one supposed to free the 
> previously allocated stuff correctly? Or is this done automatically?

actually I can't remember. There might be some cases where the
unregister function actually frees the record. The SDP code is not
something anybody can be proud of.

Regards

Marcel



-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

  reply	other threads:[~2007-12-20 23:12 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-12-19 22:41 [Bluez-devel] SDP services cannot be unregistered Hendrik Sattler
2007-12-19 23:34 ` Marcel Holtmann
     [not found]   ` <200712200229.40589.post@hendrik-sattler.de>
2007-12-20  2:09     ` Marcel Holtmann
2007-12-20  9:20       ` Hendrik Sattler
2007-12-20 15:08         ` Marcel Holtmann
2007-12-20 21:40       ` Hendrik Sattler
2007-12-20 23:12         ` Marcel Holtmann [this message]
2007-12-20  9:59   ` [Bluez-devel] Multi-device : maximizing the number of concurrent ourgoing RFCOMM connections Olivier Le Pogam

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1198192352.8050.269.camel@aeonflux \
    --to=marcel@holtmann.org \
    --cc=bluez-devel@lists.sourceforge.net \
    --cc=post@hendrik-sattler.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox