diff options
author | Luiz Augusto von Dentz <luiz.dentz@indt.org.br> | 2008-08-13 15:04:56 -0300 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.dentz@indt.org.br> | 2008-08-13 15:06:51 -0300 |
commit | e780c7bd8ec0527723db3c19f28365063bbe7d93 (patch) | |
tree | 2ea7efc4cb50f14e0defedc3cff885a8328cf81e /src/device.c | |
parent | 59969fedf496c710ba9b1bfcd8de4d6899275172 (diff) |
Fix device driver callbacks to not take driver pointer.
Diffstat (limited to 'src/device.c')
-rw-r--r-- | src/device.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/device.c b/src/device.c index ac578f2b..b22695e1 100644 --- a/src/device.c +++ b/src/device.c @@ -574,7 +574,7 @@ void device_remove(DBusConnection *conn, struct btd_device *device) struct btd_driver_data *driver_data = list->data; driver = driver_data->driver; - driver->remove(driver, device); + driver->remove(device); g_free(driver_data); } @@ -645,7 +645,7 @@ void device_probe_drivers(struct btd_device *device, GSList *uuids, sdp_list_t * if (records) { struct btd_driver_data *driver_data = g_new0(struct btd_driver_data, 1); - err = driver->probe(driver, device, records); + err = driver->probe(device, records); if (err < 0) { error("probe failed for driver %s", driver->name); @@ -686,7 +686,7 @@ void device_remove_drivers(struct btd_device *device, GSList *uuids, sdp_list_t (GCompareFunc) strcasecmp)) continue; - driver->remove(driver, device); + driver->remove(device); device->drivers = g_slist_remove(device->drivers, driver_data); |