device: Add timer for removing temporary devices
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Wed, 15 Jul 2020 20:23:23 +0000 (13:23 -0700)
committerAyush Garg <ayush.garg@samsung.com>
Mon, 12 Apr 2021 09:00:49 +0000 (14:30 +0530)
commitc3ffa527f9d92b2bb667ae72ac21eeade26cda0c
treeb58b8ac970e5c4254409bbb755e2d4e241b87ad7
parent2f064de556c3a43e5aaf2734bf4c8e87d29dc422
device: Add timer for removing temporary devices

This adds a timer for how long to keep temporary devices, it is updated
everytime the device is seen so devices will be removed even during an
active discovery session which means the discovering for a long period
will no longer just grow without removing devices that disappeared.

Signed-off-by: Anuj Jain <anuj01.jain@samsung.com>
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
src/device.c
src/hcid.h
src/main.c
src/main.conf