]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/login/logind.c
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)
committerDaniel Mack <daniel@zonque.org>
Fri, 24 Apr 2015 15:48:12 +0000 (17:48 +0200)
commitc0f32805086ff65d2905b0e3a9166d9ed6c2bc41
tree25490b615512e26dd9b941d309a4ff232b3da14a
parent3f61a7a6eb5ff7e5a14cd322897741969df6b723
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