X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Flogin%2Flogind.h;h=f415dfbcbf3d7ae237563608f3a55d90ef04f23e;hb=c1e5704657315b436c0409e8172c1fcb76adccad;hp=5e828bf0197404fcffd16f6d384828302eee5d6b;hpb=8c8c43515cee56dfc2298998a9e5958308c46f99;p=elogind.git diff --git a/src/login/logind.h b/src/login/logind.h index 5e828bf01..f415dfbcb 100644 --- a/src/login/logind.h +++ b/src/login/logind.h @@ -1,7 +1,6 @@ /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ -#ifndef foologindhfoo -#define foologindhfoo +#pragma once /*** This file is part of systemd. @@ -69,6 +68,9 @@ struct Manager { unsigned n_autovts; + unsigned reserve_vt; + int reserve_vt_fd; + Seat *vtconsole; char *cgroup_path; @@ -98,8 +100,14 @@ struct Manager { usec_t inhibit_delay_max; HandleButton handle_power_key; - HandleButton handle_sleep_key; + HandleButton handle_suspend_key; + HandleButton handle_hibernate_key; HandleButton handle_lid_switch; + + bool power_key_ignore_inhibited; + bool suspend_key_ignore_inhibited; + bool hibernate_key_ignore_inhibited; + bool lid_switch_ignore_inhibited; }; enum { @@ -164,5 +172,3 @@ int manager_dispatch_delayed(Manager *manager); /* gperf lookup function */ const struct ConfigPerfItem* logind_gperf_lookup(const char *key, unsigned length); - -#endif