From 3ec96c0b0cd8d78ebede255583a918145a0eeaa0 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Thu, 12 Oct 2006 07:50:13 +0000 Subject: Sort discovered devices list based on their RSSI --- hcid/dbus.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'hcid/dbus.h') diff --git a/hcid/dbus.h b/hcid/dbus.h index 2d6dda62..954e7ab5 100644 --- a/hcid/dbus.h +++ b/hcid/dbus.h @@ -81,6 +81,7 @@ typedef enum { struct discovered_dev_info { bdaddr_t bdaddr; + int8_t rssi; name_status_t name_status; }; @@ -253,7 +254,7 @@ int active_conn_find_by_bdaddr(const void *data, const void *user_data); void bonding_request_free(struct bonding_request_info *dev); int pin_req_cmp(const void *p1, const void *p2); int disc_device_find(const struct discovered_dev_info *d1, const struct discovered_dev_info *d2); -int disc_device_append(struct slist **list, bdaddr_t *bdaddr, name_status_t name_status); +int disc_device_add(struct slist **list, bdaddr_t *bdaddr, int8_t rssi, name_status_t name_status); int disc_device_req_name(struct adapter *dbus_data); int discoverable_timeout_handler(void *data); -- cgit