All of lore.kernel.org
 help / color / mirror / Atom feed
From: Brian Gix <bgix@codeaurora.org>
To: "Elvis Pfützenreuter" <epx@signove.com>
Cc: linux-bluetooth@vger.kernel.org,
	Claudio Takahasi <claudio.takahasi@openbossa.org>
Subject: Re: [PATCH v3 1/5] Add new UUID utility functions
Date: Mon, 14 Mar 2011 13:57:09 -0700	[thread overview]
Message-ID: <4D7E8125.4030908@codeaurora.org> (raw)
In-Reply-To: <1300128839-6293-2-git-send-email-epx@signove.com>

Hi Elvis,

On 3/14/2011 11:53 AM, Elvis Pfützenreuter wrote:
> From: Claudio Takahasi<claudio.takahasi@openbossa.org>
>
> New UUID functions will store the UUIDs values on host order. Added
> functions to create, compare and convert UUIDs.

[...]

> +
> +void bt_uuid_to_uuid128(const bt_uuid_t *src, bt_uuid_t *dst)
> +{
> +	switch (src->type) {
> +	case BT_UUID128:
> +		memcpy(dst, src, sizeof(bt_uuid_t));
> +		dst->type = BT_UUID128;

Line not needed. It will get copied with the rest of the structure 
during memcpy.

> +		break;
> +	case BT_UUID32:
> +		bt_uuid32_to_uuid128(src, dst);
> +		break;
> +	case BT_UUID16:
> +		bt_uuid16_to_uuid128(src, dst);
> +		break;
> +	default:
> +		break;
> +	}
> +}
> +

Regards,


-- 
Brian Gix
bgix@codeaurora.org
Employee of Qualcomm Innovation Center, Inc.
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum

  reply	other threads:[~2011-03-14 20:57 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-14 18:53 [PATCH v3 0/5] Add new UUID utility functions and use them in GATT Elvis Pfützenreuter
2011-03-14 18:53 ` [PATCH v3 1/5] Add new UUID utility functions Elvis Pfützenreuter
2011-03-14 20:57   ` Brian Gix [this message]
2011-03-14 21:59     ` Elvis Pfützenreuter
2011-03-14 22:10     ` [PATCH v3.1 " Elvis Pfützenreuter
2011-03-14 18:53 ` [PATCH v3 2/5] Add more functions for new UUID handling Elvis Pfützenreuter
2011-03-15  8:49   ` Johan Hedberg
2011-03-14 18:53 ` [PATCH v3 3/5] Use new UUID functions in GATT Elvis Pfützenreuter
2011-03-15  8:52   ` Johan Hedberg
2011-03-15 12:39     ` Elvis Pfützenreuter
2011-03-15 13:05     ` [PATCH v4 1/2] " Elvis Pfützenreuter
2011-03-15 17:39       ` Johan Hedberg
2011-03-15 13:05     ` [PATCH v4 2/2] Add "unit test" for new UUID functions Elvis Pfützenreuter
2011-03-14 18:53 ` [PATCH v3 4/5] Use new UUID functions in example GATT server Elvis Pfützenreuter
2011-03-14 18:53 ` [PATCH v3 5/5] Add "unit test" for new UUID functions Elvis Pfützenreuter

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=4D7E8125.4030908@codeaurora.org \
    --to=bgix@codeaurora.org \
    --cc=claudio.takahasi@openbossa.org \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.