From: Andrei Emeltchenko <Andrei.Emeltchenko.news@gmail.com>
To: Luiz Augusto von Dentz <luiz.dentz@gmail.com>
Cc: "linux-bluetooth@vger.kernel.org" <linux-bluetooth@vger.kernel.org>
Subject: Re: [PATCHv2 1/2] android/daemon: Implement get adapter name
Date: Mon, 4 Nov 2013 14:51:17 +0200 [thread overview]
Message-ID: <20131104125115.GB18874@aemeltch-MOBL1> (raw)
In-Reply-To: <CABBYNZLUUPkLM_b2DDb=mxc5-QqLrwN9in7XmZGpV+xQ-DpzzQ@mail.gmail.com>
Hi Luiz,
On Mon, Nov 04, 2013 at 01:17:35PM +0200, Luiz Augusto von Dentz wrote:
> Hi Andrei,
>
> On Mon, Nov 4, 2013 at 12:49 PM, Andrei Emeltchenko
> <Andrei.Emeltchenko.news@gmail.com> wrote:
> > From: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
> >
> > ---
> > android/adapter.c | 11 ++++++-----
> > 1 file changed, 6 insertions(+), 5 deletions(-)
> >
> > diff --git a/android/adapter.c b/android/adapter.c
> > index af461b8..fdac82e 100644
> > --- a/android/adapter.c
> > +++ b/android/adapter.c
> > @@ -1017,13 +1017,14 @@ static void send_adapter_address(void)
> > g_free(ev);
> > }
> >
> > -static bool get_name(void)
> > +static bool send_adapter_name(void)
> > {
> > - DBG("Not implemented");
> > + if (!adapter->name)
> > + return false;
> >
> > - /* TODO: Add implementation */
> > + adapter_name_changed((uint8_t *) adapter->name);
> >
> > - return false;
> > + return true;
> > }
> >
> > static bool get_uuids(void)
> > @@ -1098,7 +1099,7 @@ static bool get_property(void *buf, uint16_t len)
> > send_adapter_address();
> > return true;
> > case HAL_PROP_ADAPTER_NAME:
> > - return get_name();
> > + return send_adapter_name();
>
> Not sure why you are changing the name here, all the other properties
> is using the same format as get_<name of property>.
I am following style, look at previous function: send_adapter_address. So
shall I change that one also in a separate patch?
Best regards
Andrei Emeltchenko
next prev parent reply other threads:[~2013-11-04 12:51 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-04 10:49 [PATCHv2 1/2] android/daemon: Implement get adapter name Andrei Emeltchenko
2013-11-04 10:49 ` [PATCHv2 2/2] android/daemon: Fix setting " Andrei Emeltchenko
2013-11-04 11:17 ` [PATCHv2 1/2] android/daemon: Implement get " Luiz Augusto von Dentz
2013-11-04 12:51 ` Andrei Emeltchenko [this message]
2013-11-04 13:22 ` [PATCHv3 1/4] " Andrei Emeltchenko
2013-11-04 13:22 ` [PATCHv3 2/4] android/daemon: Clean up get_address name Andrei Emeltchenko
2013-11-04 13:22 ` [PATCHv3 3/4] android/daemon: Fix setting adapter name Andrei Emeltchenko
2013-11-04 13:22 ` [PATCHv3 4/4] android: Fix printing not NULL terminated strings Andrei Emeltchenko
2013-11-04 19:18 ` [PATCHv3 1/4] android/daemon: Implement get adapter name Johan Hedberg
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=20131104125115.GB18874@aemeltch-MOBL1 \
--to=andrei.emeltchenko.news@gmail.com \
--cc=linux-bluetooth@vger.kernel.org \
--cc=luiz.dentz@gmail.com \
/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