1 /* SPDX-License-Identifier: LGPL-2.1-or-later */
4 _Pragma("GCC diagnostic ignored \"-Wimplicit-fallthrough\"")
7 #include "conf-parser.h"
10 struct ConfigPerfItem;
13 %define slot-name section_and_lvalue
14 %define hash-function-name logind_gperf_hash
15 %define lookup-function-name logind_gperf_lookup
21 Login.NAutoVTs, config_parse_n_autovts, 0, offsetof(Manager, n_autovts)
22 Login.ReserveVT, config_parse_unsigned, 0, offsetof(Manager, reserve_vt)
23 Login.KillUserProcesses, config_parse_bool, 0, offsetof(Manager, kill_user_processes)
24 Login.KillOnlyUsers, config_parse_strv, 0, offsetof(Manager, kill_only_users)
25 Login.KillExcludeUsers, config_parse_strv, 0, offsetof(Manager, kill_exclude_users)
26 Login.InhibitDelayMaxSec, config_parse_sec, 0, offsetof(Manager, inhibit_delay_max)
27 Login.UserStopDelaySec, config_parse_sec, 0, offsetof(Manager, user_stop_delay)
28 Login.SleepOperation, config_parse_handle_action_sleep, 0, offsetof(Manager, handle_action_sleep_mask)
29 Login.HandlePowerKey, config_parse_handle_action, 0, offsetof(Manager, handle_power_key)
30 Login.HandlePowerKeyLongPress, config_parse_handle_action, 0, offsetof(Manager, handle_power_key_long_press)
31 Login.HandleRebootKey, config_parse_handle_action, 0, offsetof(Manager, handle_reboot_key)
32 Login.HandleRebootKeyLongPress, config_parse_handle_action, 0, offsetof(Manager, handle_reboot_key_long_press)
33 Login.HandleSuspendKey, config_parse_handle_action, 0, offsetof(Manager, handle_suspend_key)
34 Login.HandleSuspendKeyLongPress, config_parse_handle_action, 0, offsetof(Manager, handle_suspend_key_long_press)
35 Login.HandleHibernateKey, config_parse_handle_action, 0, offsetof(Manager, handle_hibernate_key)
36 Login.HandleHibernateKeyLongPress, config_parse_handle_action, 0, offsetof(Manager, handle_hibernate_key_long_press)
37 Login.HandleLidSwitch, config_parse_handle_action, 0, offsetof(Manager, handle_lid_switch)
38 Login.HandleLidSwitchExternalPower, config_parse_handle_action, 0, offsetof(Manager, handle_lid_switch_ep)
39 Login.HandleLidSwitchDocked, config_parse_handle_action, 0, offsetof(Manager, handle_lid_switch_docked)
40 Login.PowerKeyIgnoreInhibited, config_parse_bool, 0, offsetof(Manager, power_key_ignore_inhibited)
41 Login.SuspendKeyIgnoreInhibited, config_parse_bool, 0, offsetof(Manager, suspend_key_ignore_inhibited)
42 Login.HibernateKeyIgnoreInhibited, config_parse_bool, 0, offsetof(Manager, hibernate_key_ignore_inhibited)
43 Login.LidSwitchIgnoreInhibited, config_parse_bool, 0, offsetof(Manager, lid_switch_ignore_inhibited)
44 Login.RebootKeyIgnoreInhibited, config_parse_bool, 0, offsetof(Manager, reboot_key_ignore_inhibited)
45 Login.HoldoffTimeoutSec, config_parse_sec, 0, offsetof(Manager, holdoff_timeout_usec)
46 Login.IdleAction, config_parse_handle_action, 0, offsetof(Manager, idle_action)
47 Login.IdleActionSec, config_parse_sec, 0, offsetof(Manager, idle_action_usec)
48 Login.RuntimeDirectorySize, config_parse_tmpfs_size, 0, offsetof(Manager, runtime_dir_size)
49 Login.RuntimeDirectoryInodesMax, config_parse_iec_uint64, 0, offsetof(Manager, runtime_dir_inodes)
50 Login.RemoveIPC, config_parse_bool, 0, offsetof(Manager, remove_ipc)
51 Login.InhibitorsMax, config_parse_uint64, 0, offsetof(Manager, inhibitors_max)
52 Login.SessionsMax, config_parse_uint64, 0, offsetof(Manager, sessions_max)
53 Login.UserTasksMax, config_parse_compat_user_tasks_max, 0, 0
54 Login.StopIdleSessionSec, config_parse_sec_fix_0, 0, offsetof(Manager, stop_idle_session_usec)