[PATCH v3 0/5] Add new UUID utility functions and use them in GATT

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This series creates new UUID utility functions and, at this momemt, puts
them into use in GATT/Low Energy code. Major differences between 'old'
and 'new' UUID functions are:

* UUID is stored in host order, and converted to/from network or
  Bluetooth order upon use.
* in bt_uuid{16,32,128}_create, raw numeric value (uint16, uint32 or
  uint128) is always passed by value.
* sdp_* prefix is replaced by bt_* for generality.

Types and macros needed by both "old" and "new" UUID functions as well as
their clients are moved to lib/bluetooth.h. This includes ntoh64(),
ntoh128() and friends.

Claudio Takahasi (1):
  Add new UUID utility functions

Elvis PfÃtzenreuter (4):
  Add more functions for new UUID handling
  Use new UUID functions in GATT
  Use new UUID functions in example GATT server
  Add "unit test" for new UUID functions

 Makefile.am          |    6 +-
 Makefile.tools       |    6 +-
 attrib/att.c         |   47 +++-----
 attrib/att.h         |   69 ++++++++++-
 attrib/client.c      |   26 ++---
 attrib/example.c     |   92 ++++++++-------
 attrib/gatt.c        |   68 ++++++-----
 attrib/gatt.h        |    4 +-
 attrib/gattrib.c     |    3 +-
 attrib/gatttool.c    |   18 ++--
 attrib/interactive.c |   22 ++--
 attrib/utils.c       |    1 +
 health/mcap_sync.c   |   15 ---
 lib/bluetooth.h      |   54 +++++++++
 lib/sdp.c            |   43 -------
 lib/sdp.h            |    4 +-
 lib/uuid.c           |  274 +++++++++++++++++++++++++++++++++++++++++++
 lib/uuid.h           |   65 ++++++++++
 src/adapter.c        |    1 +
 src/attrib-server.c  |   93 ++++++++-------
 src/attrib-server.h  |    4 +-
 src/device.c         |    1 +
 src/main.c           |    1 +
 test/hciemu.c        |   16 ---
 test/uuidtest.c      |  319 ++++++++++++++++++++++++++++++++++++++++++++++++++
 25 files changed, 971 insertions(+), 281 deletions(-)
 create mode 100644 lib/uuid.c
 create mode 100644 lib/uuid.h
 create mode 100644 test/uuidtest.c

--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux