summaryrefslogtreecommitdiff
path: root/android/hal-handsfree-client.c
diff options
context:
space:
mode:
authorLukasz Rymanowski <lukasz.rymanowski@tieto.com>2014-09-15 13:51:28 +0200
committerSzymon Janc <szymon.janc@tieto.com>2014-09-18 16:36:04 +0200
commit7ff234607a4c4e4b58ea8cc209e00efc6d3ef191 (patch)
treeb32aea9dd98da60d567edcfa3ae780f3c337ceb5 /android/hal-handsfree-client.c
parentbb4743231daf105d5c55d56fb9ece5fba065b62a (diff)
downloadbluez-7ff234607a4c4e4b58ea8cc209e00efc6d3ef191.tar.gz
android/handsfree-client: Add Get Last Voice Tag Number command
Diffstat (limited to 'android/hal-handsfree-client.c')
-rw-r--r--android/hal-handsfree-client.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/android/hal-handsfree-client.c b/android/hal-handsfree-client.c
index 7c1cfeafa..98b6cb6aa 100644
--- a/android/hal-handsfree-client.c
+++ b/android/hal-handsfree-client.c
@@ -298,6 +298,18 @@ static bt_status_t send_dtmf(char tone)
NULL, NULL, NULL);
}
+static bt_status_t request_last_voice_tag_number(void)
+{
+ DBG("");
+
+ if (!interface_ready())
+ return BT_STATUS_NOT_READY;
+
+ return hal_ipc_cmd(HAL_SERVICE_ID_HANDSFREE_CLIENT,
+ HAL_OP_HF_CLIENT_GET_LAST_VOICE_TAG_NUM,
+ 0, NULL, NULL, NULL, NULL);
+}
+
static void cleanup(void)
{
struct hal_cmd_unregister_module cmd;
@@ -334,6 +346,7 @@ static bthf_client_interface_t iface = {
.query_current_operator_name = query_operator_name,
.retrieve_subscriber_info = retrieve_subsr_info,
.send_dtmf = send_dtmf,
+ .request_last_voice_tag_number = request_last_voice_tag_number,
.cleanup = cleanup
};