adv_monitor: Register client app with app-root-path
authorManish Mandlik <mmandlik@google.com>
Thu, 3 Dec 2020 03:46:51 +0000 (19:46 -0800)
committerAyush Garg <ayush.garg@samsung.com>
Fri, 11 Mar 2022 13:38:34 +0000 (19:08 +0530)
commit169ea351ba25d41a58c6cd8e4b59ba2ccbf7401e
treec9eb0c043b64d5599849bd335b2e388006be1242
parentddae6805d092643042d8849e85de0b321561d0df
adv_monitor: Register client app with app-root-path

When a client app is registered with g_dbus_client_new(), bluez root
path, i.e. "/", is used as the app root path and signal watches are
added at that root path.

Because of this, InterfacesAdded/InterfacesRemoved signals emitted by
app - while creating/removing advertisement monitor objects at the
app root path - are not received by bluetoothd.

Use g_dbus_client_new_full() to register a client app with the correct
app root path.

Signed-off-by: Anuj Jain <anuj01.jain@samsung.com>
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
src/adv_monitor.c