From d9a7b403eeb12b22f9d63aae9c6956d735cdd97a Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Fri, 7 Jun 2019 18:06:42 +0200 Subject: iface-modem-voice: allow creating incoming calls in waiting state --- src/mm-call-list.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/mm-call-list.c') diff --git a/src/mm-call-list.c b/src/mm-call-list.c index 81100640..a3b914bb 100644 --- a/src/mm-call-list.c +++ b/src/mm-call-list.c @@ -84,10 +84,13 @@ mm_call_list_get_paths (MMCallList *self) /*****************************************************************************/ MMBaseCall * -mm_call_list_get_first_ringing_in_call (MMCallList *self) +mm_call_list_get_first_incoming_call (MMCallList *self, + MMCallState incoming_state) { GList *l; + g_assert (incoming_state == MM_CALL_STATE_RINGING_IN || incoming_state == MM_CALL_STATE_WAITING); + for (l = self->priv->list; l; l = g_list_next (l)) { MMBaseCall *call; MMCallState state; @@ -101,7 +104,7 @@ mm_call_list_get_first_ringing_in_call (MMCallList *self) NULL); if (direction == MM_CALL_DIRECTION_INCOMING && - state == MM_CALL_STATE_RINGING_IN) { + state == incoming_state) { return call; } } -- cgit v1.2.3-70-g09d2