summaryrefslogtreecommitdiff
path: root/src/device.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/device.c')
-rw-r--r--src/device.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/device.c b/src/device.c
index 60762ac35..bc9942022 100644
--- a/src/device.c
+++ b/src/device.c
@@ -4509,6 +4509,12 @@ GSList *btd_device_get_uuids(struct btd_device *device)
return device->uuids;
}
+bool btd_device_has_uuid(struct btd_device *device, const char *uuid)
+{
+ return g_slist_find_custom(device->uuids, uuid,
+ (GCompareFunc)strcasecmp);
+}
+
struct probe_data {
struct btd_device *dev;
GSList *uuids;