adv_monitor: Implement RegisterMonitor()
authorMiao-chen Chou <mcchou@chromium.org>
Sat, 12 Sep 2020 06:51:25 +0000 (23:51 -0700)
committerAyush Garg <ayush.garg@samsung.com>
Fri, 11 Mar 2022 13:38:32 +0000 (19:08 +0530)
commit63a8ada3cf9f8355d48fd0dce74e2b8f540d75f7
tree38984281d557db6f845f11d2b3dc87169af07f85
parent88a95413b69855d9d44888bc030c22da27ef8fcb
adv_monitor: Implement RegisterMonitor()

This implements the RegisterMonitor() method handler of ADV monitor
manager interface.

The following tests were performed.
- Issue a RegisterMonitor() call with a valid path and expect a
success as return.
- Issue a RegisterMonitor() call with an invalid path and expect
org.bluez.Error.InvalidArguments as return.
- Issue two Registermonitor() calls with the same path and expect
org.bluez.Error.AlreadyExists.
- Verify the values of the registered paths with logging.
- Verify D-Bus disconnection callback was triggered when the client detach
from D-Bus.

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