diff options
author | Lukasz Rymanowski <lukasz.rymanowski@tieto.com> | 2014-09-15 13:51:19 +0200 |
---|---|---|
committer | Szymon Janc <szymon.janc@tieto.com> | 2014-09-18 16:36:04 +0200 |
commit | 9cce589b9a515e2187784e9e2cfa896399e032a1 (patch) | |
tree | 3ecdf0cadd030ebb6f241e0c358c641ab72390e2 /android/handsfree-client.c | |
parent | 795af24596a7da39fb2f14212c4ca97687d36730 (diff) | |
download | bluez-9cce589b9a515e2187784e9e2cfa896399e032a1.tar.gz |
android/handsfree-client: Add Connect/Disconnect commands
Diffstat (limited to 'android/handsfree-client.c')
-rw-r--r-- | android/handsfree-client.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/android/handsfree-client.c b/android/handsfree-client.c index c3ff55527..f43829ab5 100644 --- a/android/handsfree-client.c +++ b/android/handsfree-client.c @@ -44,7 +44,27 @@ static bdaddr_t adapter_addr; static struct ipc *hal_ipc = NULL; +static void handle_connect(const void *buf, uint16_t len) +{ + DBG("Not Implemented"); + ipc_send_rsp(hal_ipc, HAL_SERVICE_ID_HANDSFREE_CLIENT, + HAL_OP_HF_CLIENT_CONNECT, HAL_STATUS_UNSUPPORTED); +} + +static void handle_disconnect(const void *buf, uint16_t len) +{ + DBG("Not Implemented"); + ipc_send_rsp(hal_ipc, HAL_SERVICE_ID_HANDSFREE_CLIENT, + HAL_OP_HF_CLIENT_DISCONNECT, HAL_STATUS_UNSUPPORTED); +} + static const struct ipc_handler cmd_handlers[] = { + /* HAL_OP_HF_CLIENT_CONNECT */ + { handle_connect, false, + sizeof(struct hal_cmd_hf_client_connect) }, + /* HAL_OP_HF_CLIENT_DISCONNECT */ + { handle_disconnect, false, + sizeof(struct hal_cmd_hf_client_disconnect) }, }; bool bt_hf_client_register(struct ipc *ipc, const bdaddr_t *addr) |