From: Marcel Holtmann <marcel@holtmann.org>
To: Andrei Emeltchenko <andrei.emeltchenko.news@gmail.com>
Cc: "linux-bluetooth@vger.kernel.org development"
<linux-bluetooth@vger.kernel.org>
Subject: Re: [PATCH 1/2] android/debug: Export print uuid function
Date: Tue, 5 Nov 2013 17:56:08 +0100 [thread overview]
Message-ID: <C04753B6-1BA7-459F-830F-981D46C10AF3@holtmann.org> (raw)
In-Reply-To: <1383660378-23198-1-git-send-email-Andrei.Emeltchenko.news@gmail.com>
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.
Regards
Marcel
next prev parent reply other threads:[~2013-11-05 16:56 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 ` Marcel Holtmann [this message]
2013-11-06 8:32 ` [PATCH 1/2] android/debug: Export print uuid function Andrei Emeltchenko
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=C04753B6-1BA7-459F-830F-981D46C10AF3@holtmann.org \
--to=marcel@holtmann.org \
--cc=andrei.emeltchenko.news@gmail.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).