diff options
author | Lukasz Rymanowski <lukasz.rymanowski@tieto.com> | 2014-09-15 13:51:23 +0200 |
---|---|---|
committer | Szymon Janc <szymon.janc@tieto.com> | 2014-09-18 16:36:04 +0200 |
commit | 800b2b23a3a2f369ba5f2da5e077dce8dd2aa39c (patch) | |
tree | b471abd0e42567cd613c562ae20b64192d250182 /android/handsfree-client.c | |
parent | 10c889fa80978f191640bab8151d53f20e63ce75 (diff) | |
download | bluez-800b2b23a3a2f369ba5f2da5e077dce8dd2aa39c.tar.gz |
android/handsfree-client: Add Dial and Dial Memory command
Diffstat (limited to 'android/handsfree-client.c')
-rw-r--r-- | android/handsfree-client.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/android/handsfree-client.c b/android/handsfree-client.c index f2394d016..d51ba8674 100644 --- a/android/handsfree-client.c +++ b/android/handsfree-client.c @@ -95,6 +95,20 @@ static void handle_volume_control(const void *buf, uint16_t len) HAL_STATUS_UNSUPPORTED); } +static void handle_dial(const void *buf, uint16_t len) +{ + DBG("Not Implemented"); + ipc_send_rsp(hal_ipc, HAL_SERVICE_ID_HANDSFREE_CLIENT, + HAL_OP_HF_CLIENT_DIAL, HAL_STATUS_UNSUPPORTED); +} + +static void handle_dial_memory(const void *buf, uint16_t len) +{ + DBG("Not Implemented"); + ipc_send_rsp(hal_ipc, HAL_SERVICE_ID_HANDSFREE_CLIENT, + HAL_OP_HF_CLIENT_DIAL_MEMORY, HAL_STATUS_UNSUPPORTED); +} + static const struct ipc_handler cmd_handlers[] = { /* HAL_OP_HF_CLIENT_CONNECT */ { handle_connect, false, @@ -115,6 +129,11 @@ static const struct ipc_handler cmd_handlers[] = { /* HAL_OP_HF_CLIENT_VOLUME_CONTROL */ { handle_volume_control, false, sizeof(struct hal_cmd_hf_client_volume_control) }, + /* HAL_OP_HF_CLIENT_DIAL */ + { handle_dial, true, sizeof(struct hal_cmd_hf_client_dial) }, + /* HAL_OP_HF_CLIENT_DIAL_MEMORY */ + { handle_dial_memory, false, + sizeof(struct hal_cmd_hf_client_dial_memory) }, }; bool bt_hf_client_register(struct ipc *ipc, const bdaddr_t *addr) |