From c71f2967f2621b782af2284a7f6725f52b1acb26 Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Mon, 18 Mar 2013 13:41:17 -0500 Subject: include: Refactor ofono_handsfree_card_create --- include/handsfree-audio.h | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/handsfree-audio.h b/include/handsfree-audio.h index e4eae84a..f79afb3a 100644 --- a/include/handsfree-audio.h +++ b/include/handsfree-audio.h @@ -43,8 +43,9 @@ struct ofono_handsfree_card_driver { void *data); }; -struct ofono_handsfree_card *ofono_handsfree_card_create(const char *remote, - const char *local); +struct ofono_handsfree_card *ofono_handsfree_card_create(unsigned int vendor, + const char *driver, + void *data); int ofono_handsfree_card_register(struct ofono_handsfree_card *card); void ofono_handsfree_card_remove(struct ofono_handsfree_card *card); @@ -52,6 +53,14 @@ void ofono_handsfree_card_set_data(struct ofono_handsfree_card *card, void *data); void *ofono_handsfree_card_get_data(struct ofono_handsfree_card *card); +void ofono_handsfree_card_set_remote(struct ofono_handsfree_card *card, + const char *remote); +const char *ofono_handsfree_card_get_remote(struct ofono_handsfree_card *card); + +void ofono_handsfree_card_set_local(struct ofono_handsfree_card *card, + const char *local); +const char *ofono_handsfree_card_get_local(struct ofono_handsfree_card *card); + void ofono_handsfree_audio_ref(void); void ofono_handsfree_audio_unref(void); -- cgit v1.2.3