From: Johan Hedberg <johan.hedberg@gmail.com>
To: chen.ganir@ti.com
Cc: linux-bluetooth@vger.kernel.org
Subject: Re: [PATCH 0/4] Add Property Changed callbacks to btd_device
Date: Thu, 29 Mar 2012 13:29:13 +0300 [thread overview]
Message-ID: <20120329102913.GA24543@x220> (raw)
In-Reply-To: <1332945989-375-1-git-send-email-chen.ganir@ti.com>
Hi Chen,
On Wed, Mar 28, 2012, chen.ganir@ti.com wrote:
> Add a callback mechanism for the btd_device, allowing other parts of
> the bluez stack to receive notifications for device properties which
> are changed. This mechanism is based on the D-BUS API for Device
> PropertyChanged.
>
> Chen Ganir (4):
> Add property changed callback
> Centralize property changed events
> Use macros instead of strings
> Call registered callbacks
>
> src/device.c | 223 +++++++++++++++++++++++++++++++++++++++++++++++++---------
> src/device.h | 93 ++++++++++++++++++++++++
> 2 files changed, 281 insertions(+), 35 deletions(-)
I don't think all this extra code is necessary for exposing a single
device parameter like you described in the use case that you need this
for. Instead we could consider introducing a callback specific to this
very information.
If some time in the future the amount of similar callbacks grows for
various device parameters we could consider creating something more
generic for them however even then that wouldn't be based on top of
D-Bus properties (the inverse might be possible though: handling the
D-Bus property signals using this generic framework).
Johan
prev parent reply other threads:[~2012-03-29 10:29 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-28 14:46 [PATCH 0/4] Add Property Changed callbacks to btd_device chen.ganir
2012-03-28 14:46 ` [PATCH 1/4] Add property changed callback chen.ganir
2012-03-28 14:46 ` [PATCH 2/4] Centralize property changed events chen.ganir
2012-03-28 14:46 ` [PATCH 3/4] Use macros instead of strings chen.ganir
2012-03-28 14:46 ` [PATCH 4/4] Call registered callbacks chen.ganir
2012-03-29 7:44 ` [PATCH 0/4] Add Property Changed callbacks to btd_device Ganir, Chen
2012-03-29 10:29 ` Johan Hedberg [this message]
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=20120329102913.GA24543@x220 \
--to=johan.hedberg@gmail.com \
--cc=chen.ganir@ti.com \
--cc=linux-bluetooth@vger.kernel.org \
/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;
as well as URLs for NNTP newsgroup(s).