diff options
author | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2013-10-23 14:14:09 +0300 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2013-10-24 10:46:24 +0300 |
commit | 55a25cb83c5eeb30cb3d782b0aabde221a82a224 (patch) | |
tree | f5bcf44dd9f4f9673f7954c1f6a6888fc122958b /android/ipc.c | |
parent | d60490a7c399c4ef7f12e667df48f6ca1088f6b3 (diff) | |
download | bluez-55a25cb83c5eeb30cb3d782b0aabde221a82a224.tar.gz |
android/hal-msg: Reduce length of defines and struct names
The current defines and struct names are way too big and sometimes
incosistent.
Diffstat (limited to 'android/ipc.c')
-rw-r--r-- | android/ipc.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/android/ipc.c b/android/ipc.c index 1a867fb44..17005e199 100644 --- a/android/ipc.c +++ b/android/ipc.c @@ -39,19 +39,19 @@ void ipc_send(GIOChannel *io, uint8_t service_id, uint8_t opcode, uint16_t len, { struct msghdr msg; struct iovec iv[2]; - struct hal_msg_hdr hal_msg; + struct hal_hdr m; char cmsgbuf[CMSG_SPACE(sizeof(int))]; struct cmsghdr *cmsg; memset(&msg, 0, sizeof(msg)); - memset(&hal_msg, 0, sizeof(hal_msg)); + memset(&m, 0, sizeof(m)); - hal_msg.service_id = service_id; - hal_msg.opcode = opcode; - hal_msg.len = len; + m.service_id = service_id; + m.opcode = opcode; + m.len = len; - iv[0].iov_base = &hal_msg; - iv[0].iov_len = sizeof(hal_msg); + iv[0].iov_base = &m; + iv[0].iov_len = sizeof(m); iv[1].iov_base = param; iv[1].iov_len = len; @@ -80,9 +80,9 @@ void ipc_send(GIOChannel *io, uint8_t service_id, uint8_t opcode, uint16_t len, void ipc_send_error(GIOChannel *io, uint8_t service_id, uint8_t status) { - struct hal_msg_rsp_error err; + struct hal_error err; err.status = status; - ipc_send(io, service_id, HAL_MSG_OP_ERROR, sizeof(err), &err, -1); + ipc_send(io, service_id, HAL_OP_ERROR, sizeof(err), &err, -1); } |