From: Johan Hedberg <johan.hedberg@gmail.com>
To: Elvis Pfutzenreuter <epx@signove.com>
Cc: linux-bluetooth@vger.kernel.org
Subject: Re: [PATCH] Update service class on adapter-by-adapter basis
Date: Wed, 28 Apr 2010 22:17:53 +0300 [thread overview]
Message-ID: <20100428191753.GA19843@jh-x301> (raw)
In-Reply-To: <1272476798-10161-1-git-send-email-epx@signove.com>
Hi,
On Wed, Apr 28, 2010, Elvis Pfutzenreuter wrote:
> +sdp_list_t *adapter_service_list(struct btd_adapter *adapter)
> +{
> + return adapter->services;
> +}
To make this consistent with other exported adapter functions please
call it adapter_get_services().
> + for (; adapters; adapters = adapters->next) {
> + adapter_get_address(adapters->data, &bdaddr);
> +
> + if (bacmp(src, BDADDR_ANY) == 0 || bacmp(src, &bdaddr) == 0)
> + update_adapter_svclass_list(adapters->data);
> + }
I think it'd be good to make it explicit which type of objects are part
of the list, so add to the beginning of the loop:
struct btd_adapter *adapter = adapters->data;
Other than those issues the patch looks ok to me.
Johan
next prev parent reply other threads:[~2010-04-28 19:17 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-28 17:46 [PATCH] Update service class on adapter-by-adapter basis Elvis Pfutzenreuter
2010-04-28 19:17 ` Johan Hedberg [this message]
-- strict thread matches above, loose matches on Subject: below --
2010-04-28 19:47 Elvis Pfutzenreuter
2010-04-28 20:00 ` Johan Hedberg
2010-04-07 21:34 Elvis Pfützenreuter
2010-04-28 13:45 ` Luiz Augusto von Dentz
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=20100428191753.GA19843@jh-x301 \
--to=johan.hedberg@gmail.com \
--cc=epx@signove.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).