diff options
author | Ravi kumar Veeramally <ravikumar.veeramally@linux.intel.com> | 2013-10-23 00:41:58 -0700 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2013-10-23 10:58:07 +0300 |
commit | 012b23595a2ca941f80aa697ec86cfc424e1fde2 (patch) | |
tree | 73102e4cc52e99b870f71ddcf8031a1c3d6eb325 /android/hal-hidhost.c | |
parent | d1f285e9ff2e2d9c0efa278bae79671c4ab0f0f1 (diff) | |
download | bluez-012b23595a2ca941f80aa697ec86cfc424e1fde2.tar.gz |
android: Add initial code for hidhost send data
This adds the initial code for hidhost .send_data interface
Diffstat (limited to 'android/hal-hidhost.c')
-rw-r--r-- | android/hal-hidhost.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/android/hal-hidhost.c b/android/hal-hidhost.c index c89ec1589..2e94a63e8 100644 --- a/android/hal-hidhost.c +++ b/android/hal-hidhost.c @@ -231,6 +231,8 @@ static bt_status_t hh_set_report(bt_bdaddr_t *bd_addr, static bt_status_t hh_send_data(bt_bdaddr_t *bd_addr, char *data) { + struct hal_msg_cmd_bt_hid_send_data cmd; + DBG(""); if (!interface_ready()) @@ -239,7 +241,10 @@ static bt_status_t hh_send_data(bt_bdaddr_t *bd_addr, char *data) if (!bd_addr || !data) return BT_STATUS_PARM_INVALID; - return BT_STATUS_UNSUPPORTED; + memcpy(cmd.bdaddr, bd_addr, sizeof(cmd.bdaddr)); + + return hal_ipc_cmd(HAL_SERVICE_ID_HIDHOST, HAL_MSG_OP_BT_HID_SEND_DATA, + sizeof(cmd), &cmd, 0, NULL, NULL); } static bt_status_t hh_init(bthh_callbacks_t *callbacks) |