| 1 |
/* SPDX-License-Identifier: LGPL-2.1-or-later */ |
| 2 |
%{ |
| 3 |
_Pragma("GCC diagnostic ignored \"-Wimplicit-fallthrough\"") |
| 4 |
#if __GNUC__ >= 15 |
| 5 |
_Pragma("GCC diagnostic ignored \"-Wzero-as-null-pointer-constant\"") |
| 6 |
#endif |
| 7 |
#include <stddef.h> |
| 8 |
#include "conf-parser.h" |
| 9 |
#include "logind.h" |
| 10 |
#include "logind-user.h" |
| 11 |
%} |
| 12 |
struct ConfigPerfItem; |
| 13 |
%null_strings |
| 14 |
%language=ANSI-C |
| 15 |
%define slot-name section_and_lvalue |
| 16 |
%define hash-function-name logind_gperf_hash |
| 17 |
%define lookup-function-name logind_gperf_lookup |
| 18 |
%readonly-tables |
| 19 |
%omit-struct-type |
| 20 |
%struct-type |
| 21 |
%includes |
| 22 |
%% |
| 23 |
Login.NAutoVTs, config_parse_n_autovts, 0, offsetof(Manager, n_autovts) |
| 24 |
Login.ReserveVT, config_parse_unsigned, 0, offsetof(Manager, reserve_vt) |
| 25 |
Login.KillUserProcesses, config_parse_bool, 0, offsetof(Manager, kill_user_processes) |
| 26 |
Login.KillOnlyUsers, config_parse_strv, 0, offsetof(Manager, kill_only_users) |
| 27 |
Login.KillExcludeUsers, config_parse_strv, 0, offsetof(Manager, kill_exclude_users) |
| 28 |
Login.InhibitDelayMaxSec, config_parse_sec, 0, offsetof(Manager, inhibit_delay_max) |
| 29 |
Login.UserStopDelaySec, config_parse_sec, 0, offsetof(Manager, user_stop_delay) |
| 30 |
Login.SleepOperation, config_parse_handle_action_sleep, 0, offsetof(Manager, handle_action_sleep_mask) |
| 31 |
Login.HandlePowerKey, config_parse_handle_action, 0, offsetof(Manager, handle_power_key) |
| 32 |
Login.HandlePowerKeyLongPress, config_parse_handle_action, 0, offsetof(Manager, handle_power_key_long_press) |
| 33 |
Login.HandleRebootKey, config_parse_handle_action, 0, offsetof(Manager, handle_reboot_key) |
| 34 |
Login.HandleRebootKeyLongPress, config_parse_handle_action, 0, offsetof(Manager, handle_reboot_key_long_press) |
| 35 |
Login.HandleSuspendKey, config_parse_handle_action, 0, offsetof(Manager, handle_suspend_key) |
| 36 |
Login.HandleSuspendKeyLongPress, config_parse_handle_action, 0, offsetof(Manager, handle_suspend_key_long_press) |
| 37 |
Login.HandleHibernateKey, config_parse_handle_action, 0, offsetof(Manager, handle_hibernate_key) |
| 38 |
Login.HandleHibernateKeyLongPress, config_parse_handle_action, 0, offsetof(Manager, handle_hibernate_key_long_press) |
| 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.HandleSecureAttentionKey, config_parse_handle_action, 0, offsetof(Manager, handle_secure_attention_key) |
| 43 |
Login.PowerKeyIgnoreInhibited, config_parse_bool, 0, offsetof(Manager, power_key_ignore_inhibited) |
| 44 |
Login.SuspendKeyIgnoreInhibited, config_parse_bool, 0, offsetof(Manager, suspend_key_ignore_inhibited) |
| 45 |
Login.HibernateKeyIgnoreInhibited, config_parse_bool, 0, offsetof(Manager, hibernate_key_ignore_inhibited) |
| 46 |
Login.LidSwitchIgnoreInhibited, config_parse_bool, 0, offsetof(Manager, lid_switch_ignore_inhibited) |
| 47 |
Login.RebootKeyIgnoreInhibited, config_parse_bool, 0, offsetof(Manager, reboot_key_ignore_inhibited) |
| 48 |
Login.HoldoffTimeoutSec, config_parse_sec, 0, offsetof(Manager, holdoff_timeout_usec) |
| 49 |
Login.IdleAction, config_parse_handle_action, 0, offsetof(Manager, idle_action) |
| 50 |
Login.IdleActionSec, config_parse_sec, 0, offsetof(Manager, idle_action_usec) |
| 51 |
Login.RuntimeDirectorySize, config_parse_tmpfs_size, 0, offsetof(Manager, runtime_dir_size) |
| 52 |
Login.RuntimeDirectoryInodesMax, config_parse_iec_uint64, 0, offsetof(Manager, runtime_dir_inodes) |
| 53 |
Login.RemoveIPC, config_parse_bool, 0, offsetof(Manager, remove_ipc) |
| 54 |
Login.InhibitorsMax, config_parse_uint64, 0, offsetof(Manager, inhibitors_max) |
| 55 |
Login.SessionsMax, config_parse_uint64, 0, offsetof(Manager, sessions_max) |
| 56 |
Login.DesignatedMaintenanceTime, config_parse_calendar, 0, offsetof(Manager, maintenance_time) |
| 57 |
Login.UserTasksMax, config_parse_compat_user_tasks_max, 0, 0 |
| 58 |
Login.StopIdleSessionSec, config_parse_sec_fix_0, 0, offsetof(Manager, stop_idle_session_usec) |
| 59 |
Login.WallMessages, config_parse_bool, 0, offsetof(Manager, wall_messages) |