diff options
author | Szymon Janc <szymon.janc@tieto.com> | 2014-02-24 17:05:03 +0100 |
---|---|---|
committer | Szymon Janc <szymon.janc@tieto.com> | 2014-02-28 15:22:45 +0100 |
commit | 7d95d027b19a23810c59c64af8c8095076a657b8 (patch) | |
tree | 02f40c3ad7580da9b394161003e000b8d804e081 /android/hal-hidhost.c | |
parent | d61f3fc72e6d3961bd82cfdd094b586d65ede4bc (diff) | |
download | bluez-7d95d027b19a23810c59c64af8c8095076a657b8.tar.gz |
android: Create comon header for IPC
This header contains IPC specific structures and code not related to
BT and audio HAL protocols. This allows to fully decouple IPC from
HAL messages.
This is first step to make HAL part of IPC unit-testable and reusable
between BT HAL and audio HAL.
Diffstat (limited to 'android/hal-hidhost.c')
-rw-r--r-- | android/hal-hidhost.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/android/hal-hidhost.c b/android/hal-hidhost.c index dcaf996cd..c758d2a40 100644 --- a/android/hal-hidhost.c +++ b/android/hal-hidhost.c @@ -23,6 +23,7 @@ #include "hal-log.h" #include "hal.h" #include "hal-msg.h" +#include "ipc-common.h" #include "hal-ipc.h" static const bthh_callbacks_t *cbacks; @@ -293,7 +294,7 @@ static bt_status_t set_report(bt_bdaddr_t *bd_addr, bthh_report_type_t report_type, char *report) { - uint8_t buf[BLUEZ_HAL_MTU]; + uint8_t buf[IPC_MTU]; struct hal_cmd_hidhost_set_report *cmd = (void *) buf; DBG(""); @@ -317,7 +318,7 @@ static bt_status_t set_report(bt_bdaddr_t *bd_addr, static bt_status_t send_data(bt_bdaddr_t *bd_addr, char *data) { - uint8_t buf[BLUEZ_HAL_MTU]; + uint8_t buf[IPC_MTU]; struct hal_cmd_hidhost_send_data *cmd = (void *) buf; DBG(""); |