summaryrefslogtreecommitdiffstats
path: root/hcid/dbus.h
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2006-10-12 07:50:13 +0000
committerJohan Hedberg <johan.hedberg@nokia.com>2006-10-12 07:50:13 +0000
commit3ec96c0b0cd8d78ebede255583a918145a0eeaa0 (patch)
tree255d2642b27cae59ad7a1819fded54311a5ed3ed /hcid/dbus.h
parent48d9984c99f55dc249050f56aa1c01ad56dac82d (diff)
Sort discovered devices list based on their RSSI
Diffstat (limited to 'hcid/dbus.h')
-rw-r--r--hcid/dbus.h3
1 files changed, 2 insertions, 1 deletions
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);