summaryrefslogtreecommitdiff
path: root/libmm-glib/mm-modem-voice.h
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@aleksander.es>2019-06-27 14:03:19 +0200
committerAleksander Morgado <aleksander@aleksander.es>2019-07-11 23:20:59 +0200
commitc713c2c5f9ef8b1e674833932e9b91fbcca97050 (patch)
treefbee69ad36b2a4950597bedd0bd713854b0e23b1 /libmm-glib/mm-modem-voice.h
parent5de3c4893fd0dc5b36a9a13c8d2bf8bdb682c9fe (diff)
downloadModemManager-c713c2c5f9ef8b1e674833932e9b91fbcca97050.tar.gz
api,voice: new HoldAndAccept() method
This method will put the currently active call on hold, and right away accept the next available call. The user of the API does not need to specify explicitly which is the next call to accept, because that is decided automatically: * If there is any waiting call, it will accept it right away. * If there is no waiting call but there is a held call, it will make the held call active again.
Diffstat (limited to 'libmm-glib/mm-modem-voice.h')
-rw-r--r--libmm-glib/mm-modem-voice.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/libmm-glib/mm-modem-voice.h b/libmm-glib/mm-modem-voice.h
index 18e13e04c..ebc2493f9 100644
--- a/libmm-glib/mm-modem-voice.h
+++ b/libmm-glib/mm-modem-voice.h
@@ -110,6 +110,17 @@ gboolean mm_modem_voice_delete_call_sync (MMModemVoice *self,
GCancellable *cancellable,
GError **error);
+void mm_modem_voice_hold_and_accept (MMModemVoice *self,
+ GCancellable *cancellable,
+ GAsyncReadyCallback callback,
+ gpointer user_data);
+gboolean mm_modem_voice_hold_and_accept_finish (MMModemVoice *self,
+ GAsyncResult *res,
+ GError **error);
+gboolean mm_modem_voice_hold_and_accept_sync (MMModemVoice *self,
+ GCancellable *cancellable,
+ GError **error);
+
void mm_modem_voice_hangup_and_accept (MMModemVoice *self,
GCancellable *cancellable,
GAsyncReadyCallback callback,