From: Marcel Holtmann <marcel@holtmann.org>
To: BlueZ development <bluez-devel@lists.sourceforge.net>
Subject: Re: [Bluez-devel] [PATCH] Make BluetoothClient work on all adapters
Date: Tue, 24 Jul 2007 23:26:23 +0200 [thread overview]
Message-ID: <1185312383.7111.81.camel@violet> (raw)
In-Reply-To: <1185311532.3641.178.camel@cookie.hadess.net>
Hi Bastien,
> > > > With this patch, we can now pass a NULL as the adapter to work with all
> > > > the adapters. This is for use in the upcoming patch for the selector
> > > > widget.
> > >
> > > And a tiny patch to fix the test-client's compilation.
> >
> > what is wrong with providing a convenience wrapper around the GObject
> > unref function?
>
> unref isn't destroy.
>
> Destroy, as used in GTK+ for widgets (it's not used in glib) means you
> destroy the widget, drop the refcount to 0, clean up, free the memory,
> etc.
>
> Unref means you reduce the refcount by 1. If you have > 1 reference
> before running the command, then nothing happens apart from the refcount
> being updates.
>
> Wrapping a _destroy() function to call _unref() means you're mixing two
> semantics. When you call _destroy() the object isn't destroyed, it's
> refcount is reduced...
okay. Point taken. I removed the _destroy() function form the code, but
I didn't apply the rest of the patch.
Regards
Marcel
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel
next prev parent reply other threads:[~2007-07-24 21:26 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-24 16:16 [Bluez-devel] [PATCH] Make BluetoothClient work on all adapters Bastien Nocera
2007-07-24 16:20 ` Bastien Nocera
2007-07-24 20:54 ` Marcel Holtmann
2007-07-24 21:12 ` Bastien Nocera
2007-07-24 21:26 ` Marcel Holtmann [this message]
2007-07-24 21:14 ` Marcel Holtmann
2007-07-24 22:10 ` Bastien Nocera
2007-07-24 23:09 ` Bastien Nocera
2007-07-25 6:51 ` Marcel Holtmann
2007-07-25 7:04 ` Marcel Holtmann
2007-07-25 7:33 ` Bastien Nocera
2007-07-25 7:53 ` Marcel Holtmann
2007-07-25 7:56 ` Bastien Nocera
2007-07-25 8:05 ` Marcel Holtmann
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=1185312383.7111.81.camel@violet \
--to=marcel@holtmann.org \
--cc=bluez-devel@lists.sourceforge.net \
/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