diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2019-06-27 14:03:19 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2019-07-11 23:20:59 +0200 |
commit | c713c2c5f9ef8b1e674833932e9b91fbcca97050 (patch) | |
tree | fbee69ad36b2a4950597bedd0bd713854b0e23b1 /src/mm-iface-modem-voice.h | |
parent | 5de3c4893fd0dc5b36a9a13c8d2bf8bdb682c9fe (diff) |
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 'src/mm-iface-modem-voice.h')
-rw-r--r-- | src/mm-iface-modem-voice.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mm-iface-modem-voice.h b/src/mm-iface-modem-voice.h index f65b63e0..d5395741 100644 --- a/src/mm-iface-modem-voice.h +++ b/src/mm-iface-modem-voice.h @@ -92,6 +92,14 @@ struct _MMIfaceModemVoice { MMCallDirection direction, const gchar *number); + /* Hold and accept */ + void (* hold_and_accept) (MMIfaceModemVoice *self, + GAsyncReadyCallback callback, + gpointer user_data); + gboolean (* hold_and_accept_finish) (MMIfaceModemVoice *self, + GAsyncResult *res, + GError **error); + /* Hangup and accept */ void (* hangup_and_accept) (MMIfaceModemVoice *self, GAsyncReadyCallback callback, |