diff options
author | Johan Hedberg <johan.hedberg@nokia.com> | 2008-09-03 13:50:50 +0300 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@nokia.com> | 2008-09-03 13:50:50 +0300 |
commit | 5c607b7899fd4e555b0d73e3dbe0ea0b4f6e6cfa (patch) | |
tree | c5f23ea3a6b4d80fe6f3d5d36c616ac9c72c40a4 | |
parent | 6e5850ae5c0d5085daa5f5326705a7741e209c78 (diff) |
Add skeleton for basic telephony functions
-rw-r--r-- | audio/headset.c | 6 | ||||
-rw-r--r-- | audio/telephony-dummy.c | 18 | ||||
-rw-r--r-- | audio/telephony.h | 9 |
3 files changed, 33 insertions, 0 deletions
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 <stdint.h> + +int telephony_init(void); + +void telephony_exit(void); + +int telephony_features_req(void); + +void telephony_features_rsp(uint32_t features); |