diff --git a/lib/uuid.c b/lib/uuid.c
index 1d2e1f7..9a216e7 100644
--- a/lib/uuid.c
+++ b/lib/uuid.c
return bt_uuid128_cmp(&u1, &u2);
}
+int bt_uuid16_cmp(const bt_uuid_t *uuid1, uint16_t uuid2)
+{
+
+ if (!uuid1 || (uuid1->type != BT_UUID16))
+ return 0;
+
+ return (uuid1->value.u16 == uuid2);
+}
+
/*
* convert the UUID to string, copying a maximum of n characters.
*/
diff --git a/lib/uuid.h b/lib/uuid.h
index ff1b071..8404b28 100644
--- a/lib/uuid.h
+++ b/lib/uuid.h
int bt_uuid128_create(bt_uuid_t *btuuid, uint128_t value);
int bt_uuid_cmp(const bt_uuid_t *uuid1, const bt_uuid_t *uuid2);
+int bt_uuid16_cmp(const bt_uuid_t *uuid1, uint16_t uuid2);
void bt_uuid_to_uuid128(const bt_uuid_t *src, bt_uuid_t *dst);
#define MAX_LEN_UUID_STR 37