summaryrefslogtreecommitdiff
path: root/android/ipc.c
diff options
context:
space:
mode:
authorSzymon Janc <szymon.janc@tieto.com>2014-06-11 16:12:40 +0200
committerSzymon Janc <szymon.janc@tieto.com>2014-06-12 13:04:31 +0200
commit85a71aa4e1209f123701bae1455debbcf4aadcce (patch)
treed37dc93c634cbecd68775c4cd7c05346691f1a5f /android/ipc.c
parent7b78c20b7eaa5a3d254e710644d0394cd28b45fc (diff)
downloadbluez-85a71aa4e1209f123701bae1455debbcf4aadcce.tar.gz
android/ipc: Add support for sending FD in notifications
Diffstat (limited to 'android/ipc.c')
-rw-r--r--android/ipc.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/android/ipc.c b/android/ipc.c
index fc58a1c93..2e674284e 100644
--- a/android/ipc.c
+++ b/android/ipc.c
@@ -404,11 +404,17 @@ void ipc_send_rsp_full(struct ipc *ipc, uint8_t service_id, uint8_t opcode,
void ipc_send_notif(struct ipc *ipc, uint8_t service_id, uint8_t opcode,
uint16_t len, void *param)
{
+ return ipc_send_notif_with_fd(ipc, service_id, opcode, len, param, -1);
+}
+
+void ipc_send_notif_with_fd(struct ipc *ipc, uint8_t service_id, uint8_t opcode,
+ uint16_t len, void *param, int fd)
+{
if (!ipc || !ipc->notif_io)
return;
ipc_send(g_io_channel_unix_get_fd(ipc->notif_io), service_id, opcode,
- len, param, -1);
+ len, param, fd);
}
void ipc_register(struct ipc *ipc, uint8_t service,