Re: [RFC v2 00/14] Store UUID-128 on host order
From: Anderson Lizardo <hidden>
Date: 2011-02-21 13:43:53
Hi, On Mon, Feb 21, 2011 at 10:14 AM, Claudio Takahasi [off-list ref] wrote:
On Sat, Feb 19, 2011 at 6:07 PM, Luiz Augusto von Dentzquoted
IMO it would be easier to have specific functions for uuid128 that can take data in host order, so that we don't break existing API. Note that the internal representation could be changed to host order, that is fine, but then you convert the existing function to do the conversion internally without breaking compatibility.Yes, it is easier. It will be necessary to add a function to convert from little endian to big endian for ATT when the data is received. I am not changing the API, it changes only the internal representation(to host order) of the UUID128 values.
Just throwing my own bits on this: I think making the internal representation for uuid_t consistent is important to avoid bugs when handling the different UUID types. currently uuid_t stores 16/32-bit uuids and 128-bit uuid differently. Regards, -- Anderson Lizardo Instituto Nokia de Tecnologia - INdT Manaus - Brazil