summaryrefslogtreecommitdiff
path: root/src/shared/util.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2012-05-30 15:01:51 +0200
committerLennart Poettering <lennart@poettering.net>2012-05-30 15:01:51 +0200
commit069cfc85f876bb6966cb5a9bbe0235f5064622cd (patch)
treea16d282285e3c34e8af510a86d063bd5ba92804e /src/shared/util.h
parent939b8f14dcd9312140d001b55b4e7a87173682ef (diff)
logind: optionally handle power, sleep and lid switch events
This takes handling of chassis power and sleep keys as well as the lid switch over from acpid. This logic is enabled by default for power and sleep keys, but not for the lid switch. If a graphical session is in the foreground no action is taken under the assumption that the graphical session does this.
Diffstat (limited to 'src/shared/util.h')
-rw-r--r--src/shared/util.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/shared/util.h b/src/shared/util.h
index 2d890fa6a3..35ff2e3547 100644
--- a/src/shared/util.h
+++ b/src/shared/util.h
@@ -513,4 +513,7 @@ int can_sleep(const char *type);
bool is_valid_documentation_url(const char *url);
bool in_initrd(void);
+
+void warn_melody(void);
+
#endif