summaryrefslogtreecommitdiffstats
path: root/binding/gdbus/ofono_voicecallmanager.c
diff options
context:
space:
mode:
authorsaman <mahmoudi.saman1@gmail.com>2020-10-12 08:56:02 +0330
committersaman <mahmoudi.saman1@gmail.com>2020-10-12 09:02:04 +0330
commit5762ff51fce596eadbd57522a6ab2978147cd830 (patch)
tree79b5c9cc02691cfcf0cc3ab91dd7dd201c620161 /binding/gdbus/ofono_voicecallmanager.c
parent17ce975cbe0b32326ee761718e91effad2b5169f (diff)
Adding last call verb for calling last phone number
Initiates a new outgoing call for last phone number that was saved into phone Change-Id: Iafd9259680f9bd83845220dc912d09cd4ecf53d6 Signed-off-by: saman <mahmoudi.saman1@gmail.com>
Diffstat (limited to 'binding/gdbus/ofono_voicecallmanager.c')
-rw-r--r--binding/gdbus/ofono_voicecallmanager.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/binding/gdbus/ofono_voicecallmanager.c b/binding/gdbus/ofono_voicecallmanager.c
index 10d31d1..462ce08 100644
--- a/binding/gdbus/ofono_voicecallmanager.c
+++ b/binding/gdbus/ofono_voicecallmanager.c
@@ -147,6 +147,22 @@ gchar *ofono_voicecallmanager_dial(OrgOfonoVoiceCallManager *manager,
return out;
}
+int ofono_voicecallmanager_last_dial(OrgOfonoVoiceCallManager *manager)
+{
+ GError *error = NULL;
+
+ if (!manager) {
+ AFB_ERROR("Ofono VoiceCallmanager uninitialized\n");
+ return NULL;
+ }
+
+ org_ofono_voice_call_manager_call_dial_last_sync(manager, NULL, &error);
+ if (error != NULL)
+ return 0;
+ else
+ return -1;
+}
+
void ofono_voicecallmanager_hangup_all(OrgOfonoVoiceCallManager *manager)
{
GError *error = NULL;