From b76fbc7d29f28a95a9ea25aae1f6f2d9c10adb19 Mon Sep 17 00:00:00 2001 From: Alok Barsode Date: Mon, 21 Jul 2008 19:46:42 +0530 Subject: Adding {driver, priv} list to btd_device and adding driver as parameter to probe and remove. Signed-off-by: Alok Barsode --- network/manager.c | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) (limited to 'network') diff --git a/network/manager.c b/network/manager.c index 27573101..616d63c0 100644 --- a/network/manager.c +++ b/network/manager.c @@ -98,17 +98,20 @@ static int network_probe(struct btd_device *device, uint16_t id) return connection_register(path, &src, &dst, id); } -static int panu_probe(struct btd_device *device, GSList *records) +static int panu_probe(struct btd_device_driver *driver, + struct btd_device *device, GSList *records) { return network_probe(device, BNEP_SVC_PANU); } -static int gn_probe(struct btd_device *device, GSList *records) +static int gn_probe(struct btd_device_driver *driver, + struct btd_device *device, GSList *records) { return network_probe(device, BNEP_SVC_GN); } -static int nap_probe(struct btd_device *device, GSList *records) +static int nap_probe(struct btd_device_driver *driver, + struct btd_device *device, GSList *records) { return network_probe(device, BNEP_SVC_NAP); } @@ -122,17 +125,20 @@ static void network_remove(struct btd_device *device, uint16_t id) connection_unregister(path, id); } -static void panu_remove(struct btd_device *device) +static void panu_remove(struct btd_device_driver *driver, + struct btd_device *device) { network_remove(device, BNEP_SVC_PANU); } -static void gn_remove(struct btd_device *device) +static void gn_remove(struct btd_device_driver *driver, + struct btd_device *device) { network_remove(device, BNEP_SVC_GN); } -static void nap_remove(struct btd_device *device) +static void nap_remove(struct btd_device_driver *driver, + struct btd_device *device) { network_remove(device, BNEP_SVC_NAP); } -- cgit