include: Refactor ofono_handsfree_card_create

This commit is contained in:
Denis Kenzior 2013-03-18 13:41:17 -05:00
parent f54ced9992
commit c71f2967f2
1 changed files with 11 additions and 2 deletions

View File

@ -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);