diff options
author | Johan Hedberg <johan.hedberg@nokia.com> | 2008-09-04 13:24:06 +0300 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@nokia.com> | 2008-09-04 13:24:06 +0300 |
commit | 3bb7bf627c5d0f8adb44fe8f0d9c88cc3fc8a070 (patch) | |
tree | 1b41ec2cd79aee9e7779aa4b904f66f68cd68783 /audio/telephony-dummy.c | |
parent | dee81731c725315f9141a43117e71e7e6300decb (diff) |
Implement basic event reporting support
Diffstat (limited to 'audio/telephony-dummy.c')
-rw-r--r-- | audio/telephony-dummy.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/audio/telephony-dummy.c b/audio/telephony-dummy.c index 8dec4a4b..59eacc89 100644 --- a/audio/telephony-dummy.c +++ b/audio/telephony-dummy.c @@ -28,9 +28,13 @@ #include <stdlib.h> #include <stdio.h> +#include <stdint.h> +#include <glib.h> #include "telephony.h" +static gboolean events_enabled = FALSE; + static struct indicator indicators[] = { { "battchg", "0-5", 5 }, @@ -57,6 +61,11 @@ struct indicator *telephony_indicators_req(void) return indicators; } +int telephony_set_event_reporting(int ind) +{ + events_enabled = ind == 1 ? TRUE : FALSE; +} + int telephony_init(void) { return 0; |