chiark / gitweb /
Prep v239: Add missing updates that evaded migration.
[elogind.git] / src / login / logind-gperf.gperf
1 %{
2 #if __GNUC__ >= 7
3 _Pragma("GCC diagnostic ignored \"-Wimplicit-fallthrough\"")
4 #endif
5 #include <stddef.h>
6 #include "conf-parser.h"
7 #include "logind.h"
8 %}
9 struct ConfigPerfItem;
10 %null_strings
11 %language=ANSI-C
12 %define slot-name section_and_lvalue
13 %define hash-function-name logind_gperf_hash
14 %define lookup-function-name logind_gperf_lookup
15 %readonly-tables
16 %omit-struct-type
17 %struct-type
18 %includes
19 %%
20 #if 1 /// Additions for elogind
21 Sleep.SuspendMode,                 config_parse_strv,          0, offsetof(Manager, suspend_mode)
22 Sleep.SuspendState,                config_parse_strv,          0, offsetof(Manager, suspend_state)
23 Sleep.HibernateMode,               config_parse_strv,          0, offsetof(Manager, hibernate_mode)
24 Sleep.HibernateState,              config_parse_strv,          0, offsetof(Manager, hibernate_state)
25 Sleep.HybridSleepMode,             config_parse_strv,          0, offsetof(Manager, hybrid_sleep_mode)
26 Sleep.HybridSleepState,            config_parse_strv,          0, offsetof(Manager, hybrid_sleep_state)
27 #endif // 1
28 #if 0 /// UNNEEDED by elogind
29 # Login.NAutoVTs,                     config_parse_n_autovts,             0, offsetof(Manager, n_autovts)
30 # Login.ReserveVT,                    config_parse_unsigned,              0, offsetof(Manager, reserve_vt)
31 #endif // 0
32 Login.KillUserProcesses,            config_parse_bool,                  0, offsetof(Manager, kill_user_processes)
33 Login.KillOnlyUsers,                config_parse_strv,                  0, offsetof(Manager, kill_only_users)
34 Login.KillExcludeUsers,             config_parse_strv,                  0, offsetof(Manager, kill_exclude_users)
35 Login.InhibitDelayMaxSec,           config_parse_sec,                   0, offsetof(Manager, inhibit_delay_max)
36 Login.HandlePowerKey,               config_parse_handle_action,         0, offsetof(Manager, handle_power_key)
37 Login.HandleSuspendKey,             config_parse_handle_action,         0, offsetof(Manager, handle_suspend_key)
38 Login.HandleHibernateKey,           config_parse_handle_action,         0, offsetof(Manager, handle_hibernate_key)
39 Login.HandleLidSwitch,              config_parse_handle_action,         0, offsetof(Manager, handle_lid_switch)
40 Login.HandleLidSwitchExternalPower, config_parse_handle_action,         0, offsetof(Manager, handle_lid_switch_ep)
41 Login.HandleLidSwitchDocked,        config_parse_handle_action,         0, offsetof(Manager, handle_lid_switch_docked)
42 Login.PowerKeyIgnoreInhibited,      config_parse_bool,                  0, offsetof(Manager, power_key_ignore_inhibited)
43 Login.SuspendKeyIgnoreInhibited,    config_parse_bool,                  0, offsetof(Manager, suspend_key_ignore_inhibited)
44 Login.HibernateKeyIgnoreInhibited,  config_parse_bool,                  0, offsetof(Manager, hibernate_key_ignore_inhibited)
45 Login.LidSwitchIgnoreInhibited,     config_parse_bool,                  0, offsetof(Manager, lid_switch_ignore_inhibited)
46 Login.HoldoffTimeoutSec,            config_parse_sec,                   0, offsetof(Manager, holdoff_timeout_usec)
47 Login.IdleAction,                   config_parse_handle_action,         0, offsetof(Manager, idle_action)
48 Login.IdleActionSec,                config_parse_sec,                   0, offsetof(Manager, idle_action_usec)
49 Login.RuntimeDirectorySize,         config_parse_tmpfs_size,            0, offsetof(Manager, runtime_dir_size)
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, offsetof(Manager, user_tasks_max)