diff options
author | Sjur Brændeland <sjur.brandeland@stericsson.com> | 2010-08-09 23:18:38 +0200 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2010-08-12 11:32:12 -0500 |
commit | 9a24ece0fb121f6191a076cc46e29640eaa7aaff (patch) | |
tree | 78fdd7c61054d8742154a86b0da3a50a7a58dade /include/voicecall.h | |
parent | dde0a4ccb58426396dfcdf179569031293b42d91 (diff) | |
download | ofono-9a24ece0fb121f6191a076cc46e29640eaa7aaff.tar.bz2 |
voicecall: Add support for function hangup_all
This patch fixes problem for modems that cannot terminate
DIALING/ALERTING calls with CHUP=1X. The main change is that
voicecall driver's hangup function is split into the functions
hangup_all and hangup_active.
Changes:
- In cases where hangup previously was used, hangup_all is used
if implemented otherwise hangup_active is used.
- Call in state DIALING/ALERTING is released with hangup_active if
implemented.
- manager_hangup_all will simply call hangup_all if implemented.
- manager_hangup_all will release calls in state
ALERTING/DIALING/INCOMING using hangup_active otherwise
release_specific.
Diffstat (limited to 'include/voicecall.h')
-rw-r--r-- | include/voicecall.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/voicecall.h b/include/voicecall.h index 998c02da..2356fcfa 100644 --- a/include/voicecall.h +++ b/include/voicecall.h @@ -69,6 +69,8 @@ struct ofono_voicecall_driver { ofono_voicecall_cb_t cb, void *data); void (*hangup_active)(struct ofono_voicecall *vc, ofono_voicecall_cb_t cb, void *data); + void (*hangup_all)(struct ofono_voicecall *vc, + ofono_voicecall_cb_t cb, void *data); void (*hold_all_active)(struct ofono_voicecall *vc, ofono_voicecall_cb_t cb, void *data); void (*release_all_held)(struct ofono_voicecall *vc, |