aboutsummaryrefslogtreecommitdiffstats
path: root/binding/gdbus
diff options
context:
space:
mode:
Diffstat (limited to 'binding/gdbus')
-rw-r--r--binding/gdbus/ofono_voicecallmanager.c12
-rw-r--r--binding/gdbus/ofono_voicecallmanager.h1
2 files changed, 13 insertions, 0 deletions
diff --git a/binding/gdbus/ofono_voicecallmanager.c b/binding/gdbus/ofono_voicecallmanager.c
index 462ce08..7e8f407 100644
--- a/binding/gdbus/ofono_voicecallmanager.c
+++ b/binding/gdbus/ofono_voicecallmanager.c
@@ -163,6 +163,18 @@ int ofono_voicecallmanager_last_dial(OrgOfonoVoiceCallManager *manager)
return -1;
}
+int ofono_voicecallmanager_send_tones(OrgOfonoVoiceCallManager *manager, const gchar *number)
+{
+ if (!manager) {
+ AFB_ERROR("Ofono VoiceCallmanager uninitialized\n");
+ return -1;
+ }
+
+ if (org_ofono_voice_call_manager_call_send_tones_sync(manager, number, NULL, NULL))
+ return 0;
+ return -1;
+}
+
void ofono_voicecallmanager_hangup_all(OrgOfonoVoiceCallManager *manager)
{
GError *error = NULL;
diff --git a/binding/gdbus/ofono_voicecallmanager.h b/binding/gdbus/ofono_voicecallmanager.h
index 1a14111..c878cfc 100644
--- a/binding/gdbus/ofono_voicecallmanager.h
+++ b/binding/gdbus/ofono_voicecallmanager.h
@@ -26,4 +26,5 @@ OrgOfonoVoiceCallManager
void ofono_voicecallmanager_free(OrgOfonoVoiceCallManager *);
gchar *ofono_voicecallmanager_dial(OrgOfonoVoiceCallManager *, gchar *, gchar *);
int ofono_voicecallmanager_last_dial(OrgOfonoVoiceCallManager *manager);
+gboolean ofono_voicecallmanager_send_tones(OrgOfonoVoiceCallManager *manager, const char *call_path);
void ofono_hangup_all(OrgOfonoVoiceCallManager *);