# 0.8.2 2018-03-06 sed, PrydeWorX Added checks for elogind_*() function call removals.
# 0.8.3 2018-03-08 sed, PrydeWorX Handle systemd-logind <=> elogind renames. Do not allow moving of
# commented out includes under out elogind block.
+# 0.8.4 2018-03-09 sed, PrydeWorX Added handling of .gperf files.
#
# ========================
# === Little TODO list ===
# python tools and man sources always generate useless patches. Real patches
# are in danger of getting overlooked.
# - Add handling of the *.sym files.
-# - Find a masking solution for login/logind-gperf.gperf
#
use strict;
use warnings;
# Shell and meson files must be prepared. See prepare_meson()
( $hFile{source} =~ m/meson/ or
+ $hFile{source} =~ m/\.gperf$/ or
$hFile{source} =~ m/\.in$/ or
$hFile{source} =~ m/\.pl$/ or
$hFile{source} =~ m/\.sh$/ ) and prepare_shell;
%struct-type
%includes
%%
+#if 0 /// UNNEEDED by elogind
+# Login.NAutoVTs, config_parse_n_autovts, 0, offsetof(Manager, n_autovts)
+# Login.ReserveVT, config_parse_unsigned, 0, offsetof(Manager, reserve_vt)
+#endif // 0
Login.KillUserProcesses, config_parse_bool, 0, offsetof(Manager, kill_user_processes)
Login.KillOnlyUsers, config_parse_strv, 0, offsetof(Manager, kill_only_users)
Login.KillExcludeUsers, config_parse_strv, 0, offsetof(Manager, kill_exclude_users)
Login.InhibitorsMax, config_parse_uint64, 0, offsetof(Manager, inhibitors_max)
Login.SessionsMax, config_parse_uint64, 0, offsetof(Manager, sessions_max)
Login.UserTasksMax, config_parse_user_tasks_max,0, offsetof(Manager, user_tasks_max)
+#if 1 /// Additions for elogind
Sleep.SuspendMode, config_parse_strv, 0, offsetof(Manager, suspend_mode)
Sleep.SuspendState, config_parse_strv, 0, offsetof(Manager, suspend_state)
Sleep.HibernateMode, config_parse_strv, 0, offsetof(Manager, hibernate_mode)
Sleep.HibernateState, config_parse_strv, 0, offsetof(Manager, hibernate_state)
Sleep.HybridSleepMode, config_parse_strv, 0, offsetof(Manager, hybrid_sleep_mode)
Sleep.HybridSleepState, config_parse_strv, 0, offsetof(Manager, hybrid_sleep_state)
+#endif // 1