aboutsummaryrefslogtreecommitdiff
path: root/src/mm-iface-modem-voice.h
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@aleksander.es>2018-07-03 14:56:52 +0200
committerDan Williams <dcbw@redhat.com>2018-10-16 17:09:21 +0000
commit887376fe4467da7a18b8e008537493512adb9fcb (patch)
treeae24ad69557b1556c3fe76656e27fb50153f1a66 /src/mm-iface-modem-voice.h
parent44413308b295bd52c1b24eba69bc8e9eed6b4fb5 (diff)
mm-iface-mode: provide direction and number when creating calls
Calls created from property bundles are always outgoing, while calls created as input events from URCs during runtime are always incoming. This change makes it mandatory to provide at least direction of the call when the object is created, leaving the number as an optional property that may or may not be known in advance (e.g. it would be optional only for incoming calls).
Diffstat (limited to 'src/mm-iface-modem-voice.h')
-rw-r--r--src/mm-iface-modem-voice.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mm-iface-modem-voice.h b/src/mm-iface-modem-voice.h
index 1c16a42b..df3d399f 100644
--- a/src/mm-iface-modem-voice.h
+++ b/src/mm-iface-modem-voice.h
@@ -78,7 +78,9 @@ struct _MMIfaceModemVoice {
GError **error);
/* Create CALL objects */
- MMBaseCall * (* create_call) (MMIfaceModemVoice *self);
+ MMBaseCall * (* create_call) (MMIfaceModemVoice *self,
+ MMCallDirection direction,
+ const gchar *number);
};
GType mm_iface_modem_voice_get_type (void);