chiark / gitweb /
logind: use sd_event timer source for inhibitor logic
authorDaniel Mack <daniel@zonque.org>
Sat, 11 Apr 2015 16:44:51 +0000 (18:44 +0200)
committerSven Eden <yamakuzure@gmx.net>
Tue, 14 Mar 2017 07:03:58 +0000 (08:03 +0100)
commitfbf087ea4df2b0b893376a02f8e4777f77c47feb
treef2ffd2eba5dce8fee9cedf9d7e988a9722cf97d5
parent99a720797c7779625c23de456c85ed0b3056bca6
logind: use sd_event timer source for inhibitor logic

Instead of open-coding the delayed action and inhibit timeout logic,
switch over to a real sd_event_source based implementation.

This is not only easier to read but also allows us to add more timers
in the future.
src/login/logind-dbus.c
src/login/logind.c
src/login/logind.h