Commit: f083aa524223c26911580d583982267d0ef1ae52
Parent: 7bfdb32a177fb19a3aaa63fb8963826c89aa4266
Author: Andrzej Kaczmarek <andrzej.kaczmarek@tieto.com>
Committer: Johan Hedberg <johan.hedberg@intel.com>
Date: 2012-10-09 18:49:45
Tree: a3ad2bebc1070ca68bebb51b1ff052185c7c6118

thermometer: Move watcher logic to adapter interface This patch moves watcher related methods to ThermometerManager interface so watchers can be registered per-adapter instead of per-device. Final measurement notifications are now enabled on all devices connected to given adapter when first watcher is registered and disabled when last watcher is unregistered. Intermediate measurement notifications are enabled for all devices connected to given adapter which support this feature.

Diffstat

M profiles/thermometer/thermometer.c | 134 ++++++++++++++++++++++++++++++++++++++++- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

1 files changed, 70 insertions(+), 64 deletions(-)

View Full Diff | Patch