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-audio.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-audio.c')
-rw-r--r-- | android/hal-audio.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/android/hal-audio.c b/android/hal-audio.c index e72e097aa..e1f3f0d59 100644 --- a/android/hal-audio.c +++ b/android/hal-audio.c @@ -33,6 +33,7 @@ #include <sbc/sbc.h> #include "audio-msg.h" +#include "ipc-common.h" #include "hal-log.h" #include "hal-msg.h" #include "../profiles/audio/a2dp-codecs.h" @@ -614,9 +615,9 @@ static int audio_ipc_cmd(uint8_t service_id, uint8_t opcode, uint16_t len, ssize_t ret; struct msghdr msg; struct iovec iv[2]; - struct hal_hdr cmd; + struct ipc_hdr cmd; char cmsgbuf[CMSG_SPACE(sizeof(int))]; - struct hal_status s; + struct ipc_status s; size_t s_len = sizeof(s); pthread_mutex_lock(&sk_mutex); @@ -708,7 +709,7 @@ static int audio_ipc_cmd(uint8_t service_id, uint8_t opcode, uint16_t len, } if (cmd.opcode == AUDIO_OP_STATUS) { - struct hal_status *s = rsp; + struct ipc_status *s = rsp; if (sizeof(*s) != cmd.len) { error("audio: Invalid status length"); |