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 --- audio/main.c | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) (limited to 'audio/main.c') diff --git a/audio/main.c b/audio/main.c index 8e4c8055..f0301c12 100644 --- a/audio/main.c +++ b/audio/main.c @@ -43,7 +43,8 @@ static DBusConnection *conn; -static int headset_probe(struct btd_device *device, GSList *records) +static int headset_probe(struct btd_device_driver *driver, + struct btd_device *device, GSList *records) { const gchar *path = device_get_path(device); DBG("path %s", path); @@ -51,7 +52,8 @@ static int headset_probe(struct btd_device *device, GSList *records) return 0; } -static void headset_remove(struct btd_device *device) +static void headset_remove(struct btd_device_driver *driver, + struct btd_device *device) { const gchar *path = device_get_path(device); DBG("path %s", path); @@ -64,7 +66,8 @@ static struct btd_device_driver headset_driver = { .remove = headset_remove, }; -static int a2dp_probe(struct btd_device *device, GSList *records) +static int a2dp_probe(struct btd_device_driver *driver, + struct btd_device *device, GSList *records) { const gchar *path = device_get_path(device); DBG("path %s", path); @@ -72,7 +75,8 @@ static int a2dp_probe(struct btd_device *device, GSList *records) return 0; } -static void a2dp_remove(struct btd_device *device) +static void a2dp_remove(struct btd_device_driver *driver, + struct btd_device *device) { const gchar *path = device_get_path(device); DBG("path %s", path); @@ -85,7 +89,8 @@ static struct btd_device_driver a2dp_driver = { .remove = a2dp_remove, }; -static int audio_probe(struct btd_device *device, GSList *records) +static int audio_probe(struct btd_device_driver *driver, + struct btd_device *device, GSList *records) { const gchar *path = device_get_path(device); DBG("path %s", path); @@ -93,7 +98,8 @@ static int audio_probe(struct btd_device *device, GSList *records) return 0; } -static void audio_remove(struct btd_device *device) +static void audio_remove(struct btd_device_driver *driver, + struct btd_device *device) { const gchar *path = device_get_path(device); DBG("path %s", path); -- cgit