aboutsummaryrefslogtreecommitdiff
path: root/src/mm-base-call.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-base-call.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-base-call.h')
-rw-r--r--src/mm-base-call.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mm-base-call.h b/src/mm-base-call.h
index 9ae021ad..0ef3ffcf 100644
--- a/src/mm-base-call.h
+++ b/src/mm-base-call.h
@@ -92,7 +92,9 @@ struct _MMBaseCallClass {
GType mm_base_call_get_type (void);
/* This one can be overriden by plugins */
-MMBaseCall *mm_base_call_new (MMBaseModem *modem);
+MMBaseCall *mm_base_call_new (MMBaseModem *modem,
+ MMCallDirection direction,
+ const gchar *number);
void mm_base_call_export (MMBaseCall *self);
void mm_base_call_unexport (MMBaseCall *self);