This will be used to send non-empty reply using command socket. --- android/ipc.c | 6 ++++++ android/ipc.h | 2 ++ 2 files changed, 8 insertions(+) diff --git a/android/ipc.c b/android/ipc.c index d1a59d7..83c2221 100644 --- a/android/ipc.c +++ b/android/ipc.c @@ -110,6 +110,12 @@ void ipc_send_rsp(uint8_t service_id, uint8_t opcode, uint8_t status) ipc_send(cmd_sk, service_id, HAL_OP_STATUS, sizeof(s), &s, -1); } +void ipc_send_rsp_full(uint8_t service_id, uint8_t opcode, uint16_t len, + void *param, int fd) +{ + ipc_send(cmd_sk, service_id, opcode, len, param, fd); +} + void ipc_send_notif(uint8_t service_id, uint8_t opcode, uint16_t len, void *param) { diff --git a/android/ipc.h b/android/ipc.h index 1233bec..ce0e0b1 100644 --- a/android/ipc.h +++ b/android/ipc.h @@ -27,5 +27,7 @@ void ipc_cleanup(void); void ipc_send(int sk, uint8_t service_id, uint8_t opcode, uint16_t len, void *param, int fd); 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, + void *param, int fd); void ipc_send_notif(uint8_t service_id, uint8_t opcode, uint16_t len, void *param); -- 1.8.3.2 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html