summaryrefslogtreecommitdiff
path: root/src/device.h
diff options
context:
space:
mode:
authorClaudio Takahasi <claudio.takahasi@openbossa.org>2010-11-24 00:30:44 -0200
committerJohan Hedberg <johan.hedberg@nokia.com>2010-11-29 19:19:37 +0200
commite0c4ed89aeb863939bacc62ccb2f29a3b288ffcb (patch)
treee4036b6e5f80591f5ea3e3624fccfffafe42a45a /src/device.h
parentd49c4e8457a3169f32c9b7466516b2d2e83b0f6c (diff)
Check the device type when creating the device
For CreateDevice, if the remote device is LE capable, Discover All Primary Services shall be issued instead of SDP queries. The logic to define if the remote is LE capable shall be based on the result of the interleaved discovery results. Meaning, the remote device is classified as LE capable only if an advertising event from this device was collected during the discovery. Limitation: Advertising event data is not being considered yet to infer the remote properties and CreateDevice needs to be called during the discovery session.
Diffstat (limited to 'src/device.h')
-rw-r--r--src/device.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/device.h b/src/device.h
index b570bd1e..a5b6273e 100644
--- a/src/device.h
+++ b/src/device.h
@@ -34,8 +34,9 @@ typedef enum {
AUTH_TYPE_AUTO,
} auth_type_t;
-struct btd_device *device_create(DBusConnection *conn, struct btd_adapter *adapter,
- const gchar *address);
+struct btd_device *device_create(DBusConnection *conn,
+ struct btd_adapter *adapter,
+ const gchar *address, gboolean le);
void device_set_name(struct btd_device *device, const char *name);
void device_get_name(struct btd_device *device, char *name, size_t len);
void device_remove(struct btd_device *device, gboolean remove_stored);