diff options
author | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2013-12-31 12:39:09 +0200 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2014-01-07 13:37:53 +0200 |
commit | 1829216bab0483720c22e7672f72846c4fca31d3 (patch) | |
tree | eccd93fba58bb6302e551bc330290da0ea12971e /android/ipc.h | |
parent | 294bfb100148c7554f0c3edf51f5bbf494b8f3c6 (diff) | |
download | bluez-1829216bab0483720c22e7672f72846c4fca31d3.tar.gz |
android/ipc: Add message handling for audio IPC
This adds audio_ipc_register and audio_ipc_unregister and adapt
ipc_handle_msg to be able to handle audio services messages.
Diffstat (limited to 'android/ipc.h')
-rw-r--r-- | android/ipc.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/android/ipc.h b/android/ipc.h index 02ad6bb7b..7b8bdeb06 100644 --- a/android/ipc.h +++ b/android/ipc.h @@ -26,9 +26,17 @@ struct ipc_handler { bool var_len; size_t data_len; }; + +struct service_handler { + const struct ipc_handler *handler; + uint8_t size; +}; + void ipc_init(void); void ipc_cleanup(void); GIOChannel *ipc_connect(const char *path, size_t size, GIOFunc connect_cb); +int ipc_handle_msg(struct service_handler *handlers, size_t max_index, + const void *buf, ssize_t len); void ipc_send_rsp(uint8_t service_id, uint8_t opcode, uint8_t status); void ipc_send_rsp_full(uint8_t service_id, uint8_t opcode, uint16_t len, |