summaryrefslogtreecommitdiff
path: root/lib/uuid.h
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2015-02-13 15:38:45 +0200
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2015-02-16 11:21:24 +0200
commit82a19daa377d0aed0b85188ee71f48e1fe1eb64e (patch)
treea12c9e4cc5f7b4500de84b09ca5efb41c0945ae0 /lib/uuid.h
parentd2c3df7b052c1b6d05fc5c753c86c19fd2ffa010 (diff)
downloadbluez-82a19daa377d0aed0b85188ee71f48e1fe1eb64e.tar.gz
uuid: Add bt_uuid_to_le
This adds bt_uuid_to_le and replace the use of put_uuid_le.
Diffstat (limited to 'lib/uuid.h')
-rw-r--r--lib/uuid.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/uuid.h b/lib/uuid.h
index 830377225..142c97908 100644
--- a/lib/uuid.h
+++ b/lib/uuid.h
@@ -168,6 +168,8 @@ void bt_uuid_to_uuid128(const bt_uuid_t *src, bt_uuid_t *dst);
int bt_uuid_to_string(const bt_uuid_t *uuid, char *str, size_t n);
int bt_string_to_uuid(bt_uuid_t *uuid, const char *string);
+int bt_uuid_to_le(const bt_uuid_t *uuid, void *dst);
+
static inline int bt_uuid_len(const bt_uuid_t *uuid)
{
return uuid->type / 8;