aboutsummaryrefslogtreecommitdiff
path: root/src/mm-iface-modem-voice.h
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@aleksander.es>2019-07-01 20:52:56 +0200
committerAleksander Morgado <aleksander@aleksander.es>2019-07-11 23:21:00 +0200
commit86aeb84f950c3b3e3be63c8920e63877a9c622f2 (patch)
tree099daec13a5b6adf45682cd3668f395b5c081803 /src/mm-iface-modem-voice.h
parentde2c24ec440c0a9f618f6c83b34a8bdf67d10fc2 (diff)
iface-modem-voice: handle in-call state at modem level
We cannot handle in-call state at call level because the state may apply to multiple active calls at the same time: * the modem is in-call if there is at least one ongoing call (>=1). * the modem is not in-call if there are no ongoing calls (==0). The new logic implements call state monitoring for all available call objects, and whenever the state of one or more calls change, we'll go over all of them to see how many of the calls can be considered to be ongoing (i.e. not terminated, not unknown). If we have at least one call ongoing, we'll setup the in-call state and otherwise, we'll clean it up. Setting up and cleaning up the in-call state involves unsolicited message and audio channel settings management operations.
Diffstat (limited to 'src/mm-iface-modem-voice.h')
-rw-r--r--src/mm-iface-modem-voice.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/src/mm-iface-modem-voice.h b/src/mm-iface-modem-voice.h
index f3d4ce76..7cc82601 100644
--- a/src/mm-iface-modem-voice.h
+++ b/src/mm-iface-modem-voice.h
@@ -78,6 +78,40 @@ struct _MMIfaceModemVoice {
GAsyncResult *res,
GError **error);
+ /* Asynchronous setup of in-call unsolicited events */
+ void (* setup_in_call_unsolicited_events) (MMIfaceModemVoice *self,
+ GAsyncReadyCallback callback,
+ gpointer user_data);
+ gboolean (* setup_in_call_unsolicited_events_finish) (MMIfaceModemVoice *self,
+ GAsyncResult *res,
+ GError **error);
+
+ /* Asynchronous cleanup of in-call unsolicited events */
+ void (* cleanup_in_call_unsolicited_events) (MMIfaceModemVoice *self,
+ GAsyncReadyCallback callback,
+ gpointer user_data);
+ gboolean (* cleanup_in_call_unsolicited_events_finish) (MMIfaceModemVoice *self,
+ GAsyncResult *res,
+ GError **error);
+
+ /* Asynchronous setup of in-call audio channel */
+ void (* setup_in_call_audio_channel) (MMIfaceModemVoice *self,
+ GAsyncReadyCallback callback,
+ gpointer user_data);
+ gboolean (* setup_in_call_audio_channel_finish) (MMIfaceModemVoice *self,
+ GAsyncResult *res,
+ MMPort **audio_port, /* optional */
+ MMCallAudioFormat **audio_format, /* optional */
+ GError **error);
+
+ /* Asynchronous cleanup of in-call audio channel */
+ void (* cleanup_in_call_audio_channel) (MMIfaceModemVoice *self,
+ GAsyncReadyCallback callback,
+ gpointer user_data);
+ gboolean (* cleanup_in_call_audio_channel_finish) (MMIfaceModemVoice *self,
+ GAsyncResult *res,
+ GError **error);
+
/* Load full list of calls (MMCallInfo list) */
void (* load_call_list) (MMIfaceModemVoice *self,
GAsyncReadyCallback callback,