This will use notification socket passed on IPC init. --- android/ipc.c | 9 +++++++++ android/ipc.h | 2 ++ 2 files changed, 11 insertions(+) diff --git a/android/ipc.c b/android/ipc.c index 51734e3..d1a59d7 100644 --- a/android/ipc.c +++ b/android/ipc.c @@ -109,3 +109,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_notif(uint8_t service_id, uint8_t opcode, uint16_t len, + void *param) +{ + if (notif_sk < 0) + return; + + ipc_send(notif_sk, service_id, opcode, len, param, -1); +} diff --git a/android/ipc.h b/android/ipc.h index 873f715..1233bec 100644 --- a/android/ipc.h +++ b/android/ipc.h @@ -27,3 +27,5 @@ 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_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