]>
Commit | Line | Data |
---|---|---|
9ee03516 | 1 | /* SPDX-License-Identifier: LGPL-2.1-or-later */ |
f975e971 | 2 | %{ |
4831981d SL |
3 | #if __GNUC__ >= 7 |
4 | _Pragma("GCC diagnostic ignored \"-Wimplicit-fallthrough\"") | |
5 | #endif | |
f975e971 LP |
6 | #include <stddef.h> |
7 | #include "conf-parser.h" | |
8 | #include "logind.h" | |
9 | %} | |
10 | struct ConfigPerfItem; | |
11 | %null_strings | |
12 | %language=ANSI-C | |
13 | %define slot-name section_and_lvalue | |
14 | %define hash-function-name logind_gperf_hash | |
15 | %define lookup-function-name logind_gperf_lookup | |
16 | %readonly-tables | |
17 | %omit-struct-type | |
18 | %struct-type | |
19 | %includes | |
20 | %% | |
28414939 ZJS |
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) | |
9afe9efb | 27 | Login.UserStopDelaySec, config_parse_sec, 0, offsetof(Manager, user_stop_delay) |
cd4dd90b | 28 | Login.SleepOperation, config_parse_handle_action_sleep, 0, offsetof(Manager, handle_action_sleep_mask) |
28414939 | 29 | Login.HandlePowerKey, config_parse_handle_action, 0, offsetof(Manager, handle_power_key) |
a520bb66 YA |
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) | |
28414939 | 33 | Login.HandleSuspendKey, config_parse_handle_action, 0, offsetof(Manager, handle_suspend_key) |
a520bb66 | 34 | Login.HandleSuspendKeyLongPress, config_parse_handle_action, 0, offsetof(Manager, handle_suspend_key_long_press) |
28414939 | 35 | Login.HandleHibernateKey, config_parse_handle_action, 0, offsetof(Manager, handle_hibernate_key) |
a520bb66 | 36 | Login.HandleHibernateKeyLongPress, config_parse_handle_action, 0, offsetof(Manager, handle_hibernate_key_long_press) |
28414939 ZJS |
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) | |
adbb2b6a | 44 | Login.RebootKeyIgnoreInhibited, config_parse_bool, 0, offsetof(Manager, reboot_key_ignore_inhibited) |
28414939 ZJS |
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) | |
08a767f1 | 49 | Login.RuntimeDirectoryInodesMax, config_parse_iec_uint64, 0, offsetof(Manager, runtime_dir_inodes) |
28414939 ZJS |
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) | |
91611136 | 53 | Login.UserTasksMax, config_parse_compat_user_tasks_max, 0, 0 |
82325af3 | 54 | Login.StopIdleSessionSec, config_parse_sec_fix_0, 0, offsetof(Manager, stop_idle_session_usec) |