From 5c607b7899fd4e555b0d73e3dbe0ea0b4f6e6cfa Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Wed, 3 Sep 2008 13:50:50 +0300 Subject: Add skeleton for basic telephony functions --- audio/headset.c | 6 ++++++ audio/telephony-dummy.c | 18 ++++++++++++++++++ audio/telephony.h | 9 +++++++++ 3 files changed, 33 insertions(+) (limited to 'audio') diff --git a/audio/headset.c b/audio/headset.c index c3825851..64749053 100644 --- a/audio/headset.c +++ b/audio/headset.c @@ -54,6 +54,7 @@ #include "device.h" #include "manager.h" #include "error.h" +#include "telephony.h" #include "headset.h" #include "glib-helper.h" @@ -1957,3 +1958,8 @@ int headset_get_sco_fd(struct audio_device *dev) return g_io_channel_unix_get_fd(hs->sco); } + +void telephony_features_rsp(uint32_t features) +{ + ag_features = features; +} diff --git a/audio/telephony-dummy.c b/audio/telephony-dummy.c index b698893e..9d07f56a 100644 --- a/audio/telephony-dummy.c +++ b/audio/telephony-dummy.c @@ -27,3 +27,21 @@ #endif #include "telephony.h" + +int telephony_init(void) +{ + return 0; +} + +void telephony_exit(void) +{ +} + +int telephony_features_req(void) +{ + uint32_t features = 0; + + telephony_features_rsp(features); + + return 0; +} diff --git a/audio/telephony.h b/audio/telephony.h index 8a990113..67887ca9 100644 --- a/audio/telephony.h +++ b/audio/telephony.h @@ -22,3 +22,12 @@ * */ +#include + +int telephony_init(void); + +void telephony_exit(void); + +int telephony_features_req(void); + +void telephony_features_rsp(uint32_t features); -- cgit v1.2.3