service: Add initiator argument to service_accept
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Thu, 12 May 2022 00:55:15 +0000 (17:55 -0700)
committerAyush Garg <ayush.garg@samsung.com>
Mon, 15 May 2023 09:25:54 +0000 (14:55 +0530)
commit3fe7e2cf9e110fb5752115c07e73fcccda2c935d
treec07697e8fb16222b8df3b4c646f419ee546fadb3
parent6738efcf484a75120f858a510eef1b4b05dded3d
service: Add initiator argument to service_accept

This adds initiator argument to service_accept so profiles accepting
the connection can use btd_service_is_initiator to determine if the
connection was initiated locally (central) or remotely (peripheral).

Signed-off-by: Manika Shrivastava <manika.sh@samsung.com>
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
src/device.c
src/service.c
src/service.h