summaryrefslogtreecommitdiff
path: root/src/login/logind-gperf.gperf
blob: 72fdad739b9dfc1617245043c797f84547dc5a1e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
%{
#include <stddef.h>
#include "conf-parser.h"
#include "logind.h"
%}
struct ConfigPerfItem;
%null_strings
%language=ANSI-C
%define slot-name section_and_lvalue
%define hash-function-name logind_gperf_hash
%define lookup-function-name logind_gperf_lookup
%readonly-tables
%omit-struct-type
%struct-type
%includes
%%
Login.NAutoVTs,          config_parse_unsigned, 0, offsetof(Manager, n_autovts)
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.Controllers,       config_parse_strv,     0, offsetof(Manager, controllers)
Login.ResetControllers,  config_parse_strv,     0, offsetof(Manager, reset_controllers)
Login.InhibitDelayMaxSec,config_parse_usec,     0, offsetof(Manager, inhibit_delay_max)
Login.HandlePowerKey,    config_parse_handle_button, 0, offsetof(Manager, handle_power_key)
Login.HandleSleepKey,    config_parse_handle_button, 0, offsetof(Manager, handle_sleep_key)
Login.HandleLidSwitch,   config_parse_handle_button, 0, offsetof(Manager, handle_lid_switch)