daemon: Add support for pausing and resuming poll

System Internals / UPower - Christian Kellner [kellner.me] - 25 March 2017 13:04 EDT

Pausing stops the polling for all registered devices and resuming re-enables the previously disabled polling, after re-calculating the poll timeout.

https://bugs.freedesktop.org/show_bug.cgi?id=99763

a69d151 daemon: Add support for pausing and resuming poll
src/up-daemon.c | 143 +++++++++++++++++++++++++++++++++++++++++++++-----------
src/up-daemon.h | 2 +
2 files changed, 118 insertions(+), 27 deletions(-)

Upstream: cgit.freedesktop.org


  • Share