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

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

The following tests were performed.
- Issue a UnregisterMonitor() call with a nonexistent path and expect
org.bluez.Error.DoesNotExist as the return.
- Issue a UnregisterMonitor() call with a invalid path and expect
org.bluez.Error.InvalidArguments as the return.
- Issue RegisterMonitor() with a path, issue UnregisterMonitor() and
expect a successful method call return.

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