summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDenis Kenzior <denkenz@gmail.com>2013-03-18 13:41:17 -0500
committerDenis Kenzior <denkenz@gmail.com>2013-03-18 13:42:46 -0500
commitc71f2967f2621b782af2284a7f6725f52b1acb26 (patch)
treee0996c90d95446e7e9a83296fc7d1897a64cb0df /include
parentf54ced9992504e597b233c5332ffec83355ea40f (diff)
downloadofono-c71f2967f2621b782af2284a7f6725f52b1acb26.tar.bz2
include: Refactor ofono_handsfree_card_create
Diffstat (limited to 'include')
-rw-r--r--include/handsfree-audio.h13
1 files changed, 11 insertions, 2 deletions
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);