summaryrefslogtreecommitdiff
path: root/profiles/deviceinfo
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@intel.com>2012-09-25 14:23:57 +0300
committerJohan Hedberg <johan.hedberg@intel.com>2012-09-25 15:38:38 +0300
commita3396702362776ca21bbf06686626c7f0bb39d28 (patch)
tree467df7696a3fb39c05611f1078004898e860cd75 /profiles/deviceinfo
parent76041ebc6b7b6a9cb95040ec6a824c2fea75b2f1 (diff)
downloadbluez-a3396702362776ca21bbf06686626c7f0bb39d28.tar.gz
core: Add profile parameter to adapter and device probe functions
This is necessary for the external profile implementation (which will have the same callback functions for all external profiles).
Diffstat (limited to 'profiles/deviceinfo')
-rw-r--r--profiles/deviceinfo/manager.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/profiles/deviceinfo/manager.c b/profiles/deviceinfo/manager.c
index 982135e94..3217283a9 100644
--- a/profiles/deviceinfo/manager.c
+++ b/profiles/deviceinfo/manager.c
@@ -42,7 +42,9 @@ static gint primary_uuid_cmp(gconstpointer a, gconstpointer b)
return g_strcmp0(prim->uuid, uuid);
}
-static int deviceinfo_driver_probe(struct btd_device *device, GSList *uuids)
+static int deviceinfo_driver_probe(struct btd_profile *p,
+ struct btd_device *device,
+ GSList *uuids)
{
struct gatt_primary *prim;
GSList *primaries, *l;
@@ -59,7 +61,8 @@ static int deviceinfo_driver_probe(struct btd_device *device, GSList *uuids)
return deviceinfo_register(device, prim);
}
-static void deviceinfo_driver_remove(struct btd_device *device)
+static void deviceinfo_driver_remove(struct btd_profile *p,
+ struct btd_device *device)
{
deviceinfo_unregister(device);
}