From 548026e08bd9b83b3685d515a916e2cf674184f3 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Thu, 9 Oct 2008 14:11:16 +0200 Subject: Make device driver probe calls take UUID's instead of full records This is preparation for allowing the device object to be correctly set up even when we don't have the full service records but only the remote UUID's. --- network/manager.c | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'network') diff --git a/network/manager.c b/network/manager.c index 25c95837..564af2ad 100644 --- a/network/manager.c +++ b/network/manager.c @@ -191,8 +191,7 @@ done: conf.security ? "true" : "false"); } -static int network_probe(struct btd_device *device, GSList *records, - uint16_t id) +static int network_probe(struct btd_device *device, GSList *uuids, uint16_t id) { struct btd_adapter *adapter = device_get_adapter(device); const gchar *path = device_get_path(device); @@ -215,9 +214,9 @@ static void network_remove(struct btd_device *device, uint16_t id) connection_unregister(path, id); } -static int panu_probe(struct btd_device *device, GSList *records) +static int panu_probe(struct btd_device *device, GSList *uuids) { - return network_probe(device, records, BNEP_SVC_PANU); + return network_probe(device, uuids, BNEP_SVC_PANU); } static void panu_remove(struct btd_device *device) @@ -225,9 +224,9 @@ static void panu_remove(struct btd_device *device) network_remove(device, BNEP_SVC_PANU); } -static int gn_probe(struct btd_device *device, GSList *records) +static int gn_probe(struct btd_device *device, GSList *uuids) { - return network_probe(device, records, BNEP_SVC_GN); + return network_probe(device, uuids, BNEP_SVC_GN); } static void gn_remove(struct btd_device *device) @@ -235,9 +234,9 @@ static void gn_remove(struct btd_device *device) network_remove(device, BNEP_SVC_GN); } -static int nap_probe(struct btd_device *device, GSList *records) +static int nap_probe(struct btd_device *device, GSList *uuids) { - return network_probe(device, records, BNEP_SVC_NAP); + return network_probe(device, uuids, BNEP_SVC_NAP); } static void nap_remove(struct btd_device *device) -- cgit