summaryrefslogtreecommitdiffstats
path: root/src/adapter.h
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2008-10-28 23:17:56 +0200
committerJohan Hedberg <johan.hedberg@nokia.com>2008-10-28 23:17:56 +0200
commitb12f6eaa5b3f65a5b5f9c98e358f2f6ca912ef97 (patch)
tree6eeae2b466fa238ccfbade25869578152b833cb1 /src/adapter.h
parent6fa921829d4fd308cba21ccc173853e6397f43ac (diff)
Send DeviceFound signals also the first time the name gets resolved
This patch makes sure that we send the DeviceFound with the Name property for newly found pre-2.1 devices when their names gets resolved for the first time.
Diffstat (limited to 'src/adapter.h')
-rw-r--r--src/adapter.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/adapter.h b/src/adapter.h
index 6464f260..0983f140 100644
--- a/src/adapter.h
+++ b/src/adapter.h
@@ -53,6 +53,8 @@ typedef enum {
struct remote_dev_info {
bdaddr_t bdaddr;
int8_t rssi;
+ uint32_t class;
+ char *alias;
name_status_t name_status;
};
@@ -144,7 +146,8 @@ int adapter_get_state(struct btd_adapter *adapter);
struct remote_dev_info *adapter_search_found_devices(struct btd_adapter *adapter,
struct remote_dev_info *match);
int adapter_add_found_device(struct btd_adapter *adapter, bdaddr_t *bdaddr,
- int8_t rssi, name_status_t name_status);
+ int8_t rssi, uint32_t class, const char *alias,
+ name_status_t name_status);
int adapter_remove_found_device(struct btd_adapter *adapter, bdaddr_t *bdaddr);
void adapter_update_oor_devices(struct btd_adapter *adapter);
void adapter_remove_oor_device(struct btd_adapter *adapter, char *peer_addr);