Home | History | Annotate | Download | only in lib

Lines Matching refs:uuid

33 #include "uuid.h"
133 * convert the UUID to string, copying a maximum of n characters.
135 int bt_uuid_to_string(const bt_uuid_t *uuid, char *str, size_t n)
137 if (!uuid) {
142 switch (uuid->type) {
144 snprintf(str, n, "%.4x", uuid->value.u16);
147 snprintf(str, n, "%.8x", uuid->value.u32);
160 hton128(&uuid->value.u128, &nvalue);
176 snprintf(str, n, "Type of UUID (%x) unknown.", uuid->type);
177 return -EINVAL; /* Enum type of UUID not set */
202 static int bt_string_to_uuid16(bt_uuid_t *uuid, const char *string)
209 bt_uuid16_create(uuid, u16);
216 static int bt_string_to_uuid32(bt_uuid_t *uuid, const char *string)
223 bt_uuid32_create(uuid, u32);
230 static int bt_string_to_uuid128(bt_uuid_t *uuid, const char *string)
258 bt_uuid128_create(uuid, u128);
263 int bt_string_to_uuid(bt_uuid_t *uuid, const char *string)
266 return bt_string_to_uuid128(uuid, string);
268 return bt_string_to_uuid32(uuid, string);
270 return bt_string_to_uuid16(uuid, string);