diff options
author | Arik Nemtsov <arik@wizery.com> | 2012-04-02 22:12:37 +0300 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2012-04-03 12:58:12 +0300 |
commit | 3374e0ca32df27c8aa8456d69798a82387a359e9 (patch) | |
tree | ec28591391f2d703e618951fb8a652512053318e /plugins | |
parent | 9d892a2addd155188e7942172a1fb1bdbf252d02 (diff) | |
download | bluez-3374e0ca32df27c8aa8456d69798a82387a359e9.tar.gz bluez-3374e0ca32df27c8aa8456d69798a82387a359e9.tar.xz bluez-3374e0ca32df27c8aa8456d69798a82387a359e9.zip |
att: add remote btd_device to ATT read/write callbacks
This allows us to identify the remote device that made the ATT
read/write.
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/gatt-example.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/gatt-example.c b/plugins/gatt-example.c index 58b222c5..482bc2d9 100644 --- a/plugins/gatt-example.c +++ b/plugins/gatt-example.c @@ -37,6 +37,7 @@ #include "gattrib.h" #include "gatt-service.h" #include "att.h" +#include "att-database.h" #include "attrib-server.h" /* FIXME: Not defined by SIG? UUID128? */ @@ -92,7 +93,8 @@ static gint adapter_cmp(gconstpointer a, gconstpointer b) return -1; } -static uint8_t battery_state_read(struct attribute *a, gpointer user_data) +static uint8_t battery_state_read(struct attribute *a, + struct btd_device *device, gpointer user_data) { struct btd_adapter *adapter = user_data; uint8_t value; |