linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC v2 00/14] Store UUID-128 on host order
@ 2011-02-18 22:29 Claudio Takahasi
  2011-02-18 22:29 ` [RFC v2 01/14] Move 64 and 128 bits byte order functions to bluetooth.h Claudio Takahasi
                   ` (16 more replies)
  0 siblings, 17 replies; 31+ messages in thread
From: Claudio Takahasi @ 2011-02-18 22:29 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Claudio Takahasi

It must NOT be included in the next release until proper testing.

Any good soul wants to test it if I am not breaking SDP?

The following patches convert the internal UUID128 values representation
to host order. Currently, SDP functions use host order to store UUID-16
/UUID32 and network order to store UUID-128 values. The reason is to
keep the consistency and re-use the UUID functions for ATT protocol
which uses little endian.

Changes from the first RFC:
 - Changes sdptool
 - Changes SDP XML parsing function
 - Changes attribute example

Claudio Takahasi (14):
  Move 64 and 128 bits byte order functions to bluetooth.h
  Use host byte order when converting UUID16/32 to UUID128
  Add att_get_u128
  Convert UUID128 value to host order when extracting SDP data
  Convert to network order before use it on sdp_uuid128_to_uuid
  Convert from host to network order before to print UUID128 values
  Convert from network to host order on bt_string2uuid function
  Change UUID128 host order on SDP PDU generation function
  Replace UUID128 values from char array to uint128_t on sdptool
  Create UUID128 on host order on sdptool
  Change SDP XML parser to create UUID128 values on host order
  Convert from little endian to host order when parsing EIR data
  Add att_put_u128
  Change Attribute example to create UUID128 on host order

 attrib/att.c         |   16 ++++--
 attrib/att.h         |   17 ++++++
 attrib/example.c     |   24 +++++---
 attrib/gatt.c        |   14 +++--
 attrib/gatttool.c    |    6 ++-
 attrib/interactive.c |    1 +
 health/hdp_manager.c |    1 +
 health/mcap_sync.c   |   17 ------
 lib/bluetooth.h      |   41 ++++++++++++++
 lib/sdp.c            |  108 ++++++++++++++-----------------------
 lib/sdp.h            |    4 --
 src/event.c          |    6 +--
 src/glib-helper.c    |   31 ++++++-----
 src/sdp-xml.c        |   74 +++++++++++--------------
 test/hciemu.c        |   16 ------
 tools/sdptool.c      |  145 ++++++++++++++++++++++++++++++-------------------
 16 files changed, 280 insertions(+), 241 deletions(-)

-- 
1.7.4.1


^ permalink raw reply	[flat|nested] 31+ messages in thread

end of thread, other threads:[~2011-02-22 17:27 UTC | newest]

Thread overview: 31+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-18 22:29 [RFC v2 00/14] Store UUID-128 on host order Claudio Takahasi
2011-02-18 22:29 ` [RFC v2 01/14] Move 64 and 128 bits byte order functions to bluetooth.h Claudio Takahasi
2011-02-22 17:16   ` Anderson Lizardo
2011-02-18 22:29 ` [RFC v2 02/14] Use host byte order when converting UUID16/32 to UUID128 Claudio Takahasi
2011-02-18 22:50   ` Anderson Lizardo
2011-02-18 22:29 ` [RFC v2 03/14] Add att_get_u128 Claudio Takahasi
2011-02-22 17:24   ` Anderson Lizardo
2011-02-18 22:29 ` [RFC v2 04/14] Convert UUID128 value to host order when extracting SDP data Claudio Takahasi
2011-02-18 22:29 ` [RFC v2 05/14] Convert to network order before use it on sdp_uuid128_to_uuid Claudio Takahasi
2011-02-19  0:53   ` Anderson Lizardo
2011-02-18 22:29 ` [RFC v2 06/14] Convert from host to network order before to print UUID128 values Claudio Takahasi
2011-02-18 22:29 ` [RFC v2 07/14] Convert from network to host order on bt_string2uuid function Claudio Takahasi
2011-02-18 22:29 ` [RFC v2 08/14] Change UUID128 host order on SDP PDU generation function Claudio Takahasi
2011-02-18 22:29 ` [RFC v2 09/14] Replace UUID128 values from char array to uint128_t on sdptool Claudio Takahasi
2011-02-19  0:50   ` Anderson Lizardo
2011-02-18 22:29 ` [RFC v2 10/14] Create UUID128 on host order " Claudio Takahasi
2011-02-19  0:57   ` Anderson Lizardo
2011-02-18 22:29 ` [RFC v2 11/14] Change SDP XML parser to create UUID128 values on host order Claudio Takahasi
2011-02-18 22:29 ` [RFC v2 12/14] Convert from little endian to host order when parsing EIR data Claudio Takahasi
2011-02-18 22:29 ` [RFC v2 13/14] Add att_put_u128 Claudio Takahasi
2011-02-22 17:27   ` Anderson Lizardo
2011-02-18 22:29 ` [RFC v2 14/14] Change Attribute example to create UUID128 on host order Claudio Takahasi
2011-02-19  1:24   ` Anderson Lizardo
2011-02-18 23:51 ` [RFC v2 00/14] Store UUID-128 " Elvis Pfützenreuter
2011-02-19  1:29 ` Anderson Lizardo
2011-02-19 18:07 ` Luiz Augusto von Dentz
2011-02-21 13:14   ` Claudio Takahasi
2011-02-21 13:43     ` Anderson Lizardo
2011-02-21 13:52       ` Luiz Augusto von Dentz
2011-02-21 16:54         ` Johan Hedberg
2011-02-21 18:37           ` Luiz Augusto von Dentz

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).