summaryrefslogtreecommitdiff
path: root/src/device.h
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@intel.com>2014-03-22 19:28:45 +0200
committerJohan Hedberg <johan.hedberg@intel.com>2014-03-22 19:34:32 +0200
commitf6a403f084e683fb8ab1601f7cb7cbc1a4f6cd76 (patch)
tree473598d0f2916084bc8cf1506470dcad4896ec13 /src/device.h
parent6f3c15162f4c7b58c6df8290a9ba0f1b6bdc7f03 (diff)
downloadbluez-f6a403f084e683fb8ab1601f7cb7cbc1a4f6cd76.tar.gz
core: Add function to look up devices also by their type
Diffstat (limited to 'src/device.h')
-rw-r--r--src/device.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/device.h b/src/device.h
index 66b257de9..30e2d5dd4 100644
--- a/src/device.h
+++ b/src/device.h
@@ -51,6 +51,14 @@ uint16_t btd_device_get_version(struct btd_device *device);
void device_remove(struct btd_device *device, gboolean remove_stored);
int device_address_cmp(gconstpointer a, gconstpointer b);
int device_bdaddr_cmp(gconstpointer a, gconstpointer b);
+
+/* Struct used by device_addr_type_cmp() */
+struct device_addr_type {
+ bdaddr_t bdaddr;
+ uint8_t bdaddr_type;
+};
+
+int device_addr_type_cmp(gconstpointer a, gconstpointer b);
GSList *btd_device_get_uuids(struct btd_device *device);
void device_probe_profiles(struct btd_device *device, GSList *profiles);
const sdp_record_t *btd_device_get_record(struct btd_device *device,