logind: refactor
authorLudwig Nussel <ludwig.nussel@suse.de>
Wed, 15 Dec 2021 17:21:09 +0000 (18:21 +0100)
committerLudwig Nussel <ludwig.nussel@suse.de>
Tue, 25 Jan 2022 16:43:10 +0000 (17:43 +0100)
commit5ed73478e1b1560274038ef30ec6f89022b4d8f6
tree2368956166e235beaf5652aeac7f3330a216e06f
parentec14fba91c94f38f3d4703fc9b4d7f1316a3922f
logind: refactor

Avoid hardcoded strings and string compares related to shutdown actions.
Instead put everything into a common structure. Reuse existing
HandleAction as index since it's already exposed as property for the
button handlers.
src/login/logind-action.c
src/login/logind-action.h
src/login/logind-button.c
src/login/logind-dbus.c
src/login/logind-dbus.h
src/login/logind-utmp.c
src/login/logind.c
src/login/logind.h