From 5de9db9d1205a9d3fb314792ed6936ede5e5836c Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Fri, 5 Sep 2008 13:37:26 +0300 Subject: Add some human readable defines for the indicator values --- audio/telephony-dummy.c | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) (limited to 'audio/telephony-dummy.c') 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; } -- cgit