linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Gustavo F. Padovan" <padovan@profusion.mobi>
To: linux-bluetooth@vger.kernel.org
Subject: Re: [PATCH 0/9] Fixing DBus error system in BlueZ
Date: Mon, 8 Nov 2010 15:31:33 -0200	[thread overview]
Message-ID: <20101108173133.GA18818@vigoh> (raw)
In-Reply-To: <20101108123330.GA1751@jh-x301>

Hi Johan,

* Johan Hedberg <johan.hedberg@gmail.com> [2010-11-08 14:33:30 +0200]:

> Hi Gustavo,
> 
> On Mon, Nov 08, 2010, Gustavo F. Padovan wrote:
> > Here are some patches that try to fix the mess of reporting error to
> > DBus inside BlueZ. It follows the oFono and ConnMan error system.
> > 
> > The goal is to get ride of any directly call to g_dbus_create_error()
> > inside bluez code, changing that to __btd_error_*. This patch set
> > doesn't fix all of them yet, but is a very good start. Please review.
> > 
> > 
> > Gustavo F. Padovan (9):
> >   Create __btd_error_invalid_args()
> >   Add __btd_error_already_exists()
> >   Add __btd_error_not_supported()
> >   Add __btd_error_not_connected()
> >   Add __btd_error_in_progress()
> >   Add __btd_error_not_available()
> >   Add __btd_error_busy()
> >   Add __btd_error_does_not_exist()
> >   Add __btd_error_not_authorized()
> 
> The patches seem fine to me, but before pushing upstream I'd like to
> understand the reason for prefixing these with  with __btd instead of
> btd. What's the criteria used to decide what to use and when and why is
> __btd the correct choice for these new functions? My first guess would
> have been that __btd is for things only accessible by the core-daemon
> whereas btd is for functions exported to plugins, but that doesn't seem
> to be the case with your patches since many of these __btd functions get
> called from plugins.

I just followed oFono and ConnMan on this. That is the reason and I
didn't asked myself why have a __ in this case.. But I see your point.
Do you think that change that to btd_error_* will fit better inside
BlueZ? I can change that then.

-- 
Gustavo F. Padovan
ProFUSION embedded systems - http://profusion.mobi

  reply	other threads:[~2010-11-08 17:31 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-08  6:29 [PATCH 0/9] Fixing DBus error system in BlueZ Gustavo F. Padovan
2010-11-08  6:29 ` [PATCH 1/9] Create __btd_error_invalid_args() Gustavo F. Padovan
2010-11-08  6:29   ` [PATCH 2/9] Add __btd_error_already_exists() Gustavo F. Padovan
2010-11-08  6:29     ` [PATCH 3/9] Add __btd_error_not_supported() Gustavo F. Padovan
2010-11-08  6:29       ` [PATCH 4/9] Add __btd_error_not_connected() Gustavo F. Padovan
2010-11-08  6:29         ` [PATCH 5/9] Add __btd_error_in_progress() Gustavo F. Padovan
2010-11-08  6:29           ` [PATCH 6/9] Add __btd_error_not_available() Gustavo F. Padovan
2010-11-08  6:29             ` [PATCH 7/9] Add __btd_error_busy() Gustavo F. Padovan
2010-11-08  6:29               ` [PATCH 8/9] Add __btd_error_does_not_exist() Gustavo F. Padovan
2010-11-08  6:29                 ` [PATCH 9/9] Add __btd_error_not_authorized() Gustavo F. Padovan
2010-11-09  8:22     ` [PATCH 2/9] Add __btd_error_already_exists() Jose Antonio Santos Cadenas
2010-11-09 17:13       ` Gustavo F. Padovan
2010-11-09 20:13         ` Jose Antonio Santos Cadenas
2010-11-09 20:30           ` Gustavo F. Padovan
2010-11-09 20:35             ` Jose Antonio Santos Cadenas
2010-11-09  8:20   ` [PATCH 1/9] Create __btd_error_invalid_args() Jose Antonio Santos Cadenas
2010-11-10  0:51     ` Gustavo F. Padovan
2010-11-08 12:33 ` [PATCH 0/9] Fixing DBus error system in BlueZ Johan Hedberg
2010-11-08 17:31   ` Gustavo F. Padovan [this message]
2010-11-10  5:23     ` Marcel Holtmann
2010-11-10 15:38       ` Gustavo F. Padovan

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=20101108173133.GA18818@vigoh \
    --to=padovan@profusion.mobi \
    --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).