From 5a7410e9e4b977b2412047e22ddd53930ad1e058 Mon Sep 17 00:00:00 2001 From: Simon Fels Date: Mon, 5 Oct 2015 13:33:09 +0200 Subject: handsfree-audio: add type for our audio cards When registering audio cards for the handsfree and gateway roles we need a way for our users to differentiate between both to decide which of them they start using for their purpose. --- include/handsfree-audio.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/handsfree-audio.h b/include/handsfree-audio.h index bfb84803..0e37daec 100644 --- a/include/handsfree-audio.h +++ b/include/handsfree-audio.h @@ -30,6 +30,11 @@ extern "C" { struct ofono_handsfree_card; +enum ofono_handsfree_card_type { + OFONO_HANDSFREE_CARD_TYPE_HANDSFREE, + OFONO_HANDSFREE_CARD_TYPE_GATEWAY, +}; + typedef void (*ofono_handsfree_card_connect_cb_t)( const struct ofono_error *error, void *data); @@ -45,8 +50,9 @@ struct ofono_handsfree_card_driver { }; struct ofono_handsfree_card *ofono_handsfree_card_create(unsigned int vendor, - const char *driver, - void *data); + enum ofono_handsfree_card_type type, + 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); ofono_bool_t ofono_handsfree_card_set_codec(struct ofono_handsfree_card *card, -- cgit v1.2.3