From: Andrei Emeltchenko <andrei.emeltchenko.news@gmail.com>
To: Marcel Holtmann <marcel@holtmann.org>
Cc: "linux-bluetooth@vger.kernel.org development"
<linux-bluetooth@vger.kernel.org>
Subject: Re: [PATCH 1/2] android/debug: Export print uuid function
Date: Wed, 6 Nov 2013 10:32:23 +0200 [thread overview]
Message-ID: <20131106083144.GD18874@aemeltch-MOBL1> (raw)
In-Reply-To: <C04753B6-1BA7-459F-830F-981D46C10AF3@holtmann.org>
Hi Marcel,
On Tue, Nov 05, 2013 at 05:56:08PM +0100, Marcel Holtmann wrote:
> Hi Andrei,
>
> > The function will be reused in socket HAL.
> > ---
> > android/client/textconv.c | 2 +-
> > android/client/textconv.h | 1 +
> > 2 files changed, 2 insertions(+), 1 deletion(-)
> >
> > diff --git a/android/client/textconv.c b/android/client/textconv.c
> > index 9a2f7e6..e6f327f 100644
> > --- a/android/client/textconv.c
> > +++ b/android/client/textconv.c
> > @@ -237,7 +237,7 @@ char *bdaddr2str(const bt_bdaddr_t *bd_addr)
> > return bt_bdaddr_t2str(bd_addr, bdaddr_tls_buffer);
> > }
> >
> > -static char *btuuid2str(const bt_uuid_t *uuid)
> > +char *btuuid2str(const bt_uuid_t *uuid)
> > {
> > static char buf[MAX_UUID_STR_LEN];
> >
> > diff --git a/android/client/textconv.h b/android/client/textconv.h
> > index 1c848ef..7520b04 100644
> > --- a/android/client/textconv.h
> > +++ b/android/client/textconv.h
> > @@ -109,6 +109,7 @@ void str2bt_uuid_t(const char *str, bt_uuid_t *uuid);
> >
> > char *btproperty2str(const bt_property_t *property);
> > char *bdaddr2str(const bt_bdaddr_t *bd_addr);
> > +char *btuuid2str(const bt_uuid_t *uuid);
>
> this is totally backwards then. The HAL should not depend on client code.
>
So shall the function be moved to utils.c inside android or even better
src/shared?
Best regards
Andrei Emeltchenko
next prev parent reply other threads:[~2013-11-06 8:32 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-05 14:06 [PATCH 1/2] android/debug: Export print uuid function Andrei Emeltchenko
2013-11-05 14:06 ` [PATCH 2/2] android/hal: Add UUID debug print in socket HAL Andrei Emeltchenko
2013-11-05 16:56 ` [PATCH 1/2] android/debug: Export print uuid function Marcel Holtmann
2013-11-06 8:32 ` Andrei Emeltchenko [this message]
2013-11-06 8:42 ` Marcel Holtmann
2013-11-06 14:07 ` [PATCHv2 1/2] android: Create debug utils helpers Andrei Emeltchenko
2013-11-06 14:07 ` [PATCHv2 2/2] android/hal: Add UUID debug print in socket HAL Andrei Emeltchenko
2013-11-06 15:10 ` [PATCHv3 1/2] android: Create debug hal-utils helpers Andrei Emeltchenko
2013-11-06 15:10 ` [PATCHv3 2/2] android/hal: Add UUID debug print in socket HAL Andrei Emeltchenko
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=20131106083144.GD18874@aemeltch-MOBL1 \
--to=andrei.emeltchenko.news@gmail.com \
--cc=linux-bluetooth@vger.kernel.org \
--cc=marcel@holtmann.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