This patch adds the user data in the Handsfree Audio driver connect
callback declaration.
---
 include/handsfree-audio.h | 3 ++-
 src/handsfree-audio.c     | 2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/include/handsfree-audio.h b/include/handsfree-audio.h
index 1a059b3..c7a37dc 100644
--- a/include/handsfree-audio.h
+++ b/include/handsfree-audio.h
@@ -35,7 +35,8 @@ struct ofono_handsfree_card_driver {
        uint16_t version;
        int (*probe) (struct ofono_handsfree_card *card, void *data);
        void (*remove) (struct ofono_handsfree_card *card);
-       int (*audio_connect) (const char *remote, const char *local);
+       int (*audio_connect) (const char *remote, const char *local,
+                                                       void *data);
 };
 
 int ofono_handsfree_card_driver_register(
diff --git a/src/handsfree-audio.c b/src/handsfree-audio.c
index 52e1ede..c9fed48 100644
--- a/src/handsfree-audio.c
+++ b/src/handsfree-audio.c
@@ -290,7 +290,7 @@ static DBusMessage *card_connect(DBusConnection *conn,
        if (card->msg)
                return __ofono_error_busy(msg);
 
-       sk = driver->audio_connect(card->remote, card->local);
+       sk = driver->audio_connect(card->remote, card->local, card->data);
        if (sk < 0)
                return __ofono_error_failed(msg);
 
-- 
1.7.11.7

_______________________________________________
ofono mailing list
ofono@ofono.org
http://lists.ofono.org/listinfo/ofono

Reply via email to