OSDN Git Service

shared: Add bswap_128()
authorClaudio Takahasi <claudio.takahasi@openbossa.org>
Tue, 18 Mar 2014 20:26:16 +0000 (17:26 -0300)
committerJohan Hedberg <johan.hedberg@intel.com>
Thu, 20 Mar 2014 17:29:49 +0000 (19:29 +0200)
commit848a0b8339c12ae417b88f7ec2279f10d0c9e591
tree751d2a7483199a71e3f7d29a82d722532baad2be
parent45eb43e85efdbba6932905686d9b91397aaf37d2
shared: Add bswap_128()

Adds a new helper to swap 128-bit values. It is intended to be used for
GATT 128-bit UUID handling, converting 128-bit UUID from big-endian to
little-endian (or the opposite).

No matter the system, bt_uuid_t should always store 128-bit UUID value
using big-endian format (similar to human-readable format).
src/shared/util.h