diff options
author | Szymon Janc <szymon.janc@tieto.com> | 2013-11-28 15:15:24 +0100 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2013-11-28 18:02:26 +0200 |
commit | 066eac37ad197586ed4ca203748b37667ca44ba1 (patch) | |
tree | e75a606f1aca8936e9160814373a96f1b322f059 /android/ipc.c | |
parent | a50edbf560db0cdd97937bc584282f8240afc5a0 (diff) | |
download | bluez-066eac37ad197586ed4ca203748b37667ca44ba1.tar.gz |
android: Add IPC helper for sending notifications
This will use notification socket passed on IPC init.
Diffstat (limited to 'android/ipc.c')
-rw-r--r-- | android/ipc.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/android/ipc.c b/android/ipc.c index 51734e359..d1a59d751 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); +} |