summaryrefslogtreecommitdiffstats
path: root/audio/telephony-dummy.c
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2008-09-05 13:37:26 +0300
committerJohan Hedberg <johan.hedberg@nokia.com>2008-09-05 13:37:26 +0300
commit5de9db9d1205a9d3fb314792ed6936ede5e5836c (patch)
treeb5cd7cd0d752a8c67059449eedd4bf1b789d2716 /audio/telephony-dummy.c
parent1d1219ab4437f0b1c1cc826d11dc4c995579cb1c (diff)
Add some human readable defines for the indicator values
Diffstat (limited to 'audio/telephony-dummy.c')
-rw-r--r--audio/telephony-dummy.c19
1 files changed, 10 insertions, 9 deletions
diff --git a/audio/telephony-dummy.c b/audio/telephony-dummy.c
index 8acb3586..828a9c39 100644
--- a/audio/telephony-dummy.c
+++ b/audio/telephony-dummy.c
@@ -74,26 +74,27 @@ int telephony_response_and_hold_req(int rh)
int telephony_last_dialed_number(void)
{
/* Notify outgoing call set-up successfully initiated */
- telephony_update_indicator(dummy_indicators, "callsetup", 2);
-
+ telephony_update_indicator(dummy_indicators, "callsetup",
+ EV_CALLSETUP_OUTGOING);
return 0;
}
int telephony_terminate_call(void)
{
- if (telephony_get_indicator(dummy_indicators, "callsetup" > 0))
- telephony_update_indicator(dummy_indicators, "callsetup", 0);
+ if (telephony_get_indicator(dummy_indicators, "callsetup") > 0)
+ telephony_update_indicator(dummy_indicators, "callsetup",
+ EV_CALLSETUP_INACTIVE);
else
- telephony_update_indicator(dummy_indicators, "call", 0);
-
+ telephony_update_indicator(dummy_indicators, "call",
+ EV_CALL_INACTIVE);
return 0;
}
int telephony_answer_call(void)
{
- telephony_update_indicator(dummy_indicators, "call", 1);
- telephony_update_indicator(dummy_indicators, "callsetup", 0);
-
+ telephony_update_indicator(dummy_indicators, "call", EV_CALL_ACTIVE);
+ telephony_update_indicator(dummy_indicators, "callsetup",
+ EV_CALLSETUP_INACTIVE);
return 0;
}