aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/gatt-example.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/gatt-example.c')
-rw-r--r--plugins/gatt-example.c4
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;