summaryrefslogtreecommitdiff
path: root/src/login/logind.h
diff options
context:
space:
mode:
authorAndy Wingo <wingo@pobox.com>2015-08-23 14:54:39 +0200
committerAndy Wingo <wingo@pobox.com>2015-08-23 14:54:39 +0200
commitef2aa93b7a4c742ae74496566344fd71e411fa72 (patch)
tree77a378fd74d1e7ee0c602d7a853a1a5b85076903 /src/login/logind.h
parent06ca7594edc2bf54a32f0fe86fc65976c70f1f11 (diff)
Handle suspend/hibernate/hybrid-suspend/shutdown/reboot directly
* configure.ac: Get paths of halt and reboot. * Makefile.am (systemsleepdir, systemshutdowndir): New variables. Look in them for hooks to run. * src/login/logind-action.c: Inline the salient bits from systemd's system-sleep.c here. * src/login/logind-dbus.c (execute_shutdown_or_sleep): Call our own shutdown_or_sleep helper instead of invoking a systemd method. * src/login/logind.h: Declare shutdown_or_sleep.
Diffstat (limited to 'src/login/logind.h')
-rw-r--r--src/login/logind.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/login/logind.h b/src/login/logind.h
index f2e9d38af9..5af01cb79a 100644
--- a/src/login/logind.h
+++ b/src/login/logind.h
@@ -145,6 +145,7 @@ bool manager_is_docked_or_multiple_displays(Manager *m);
extern const sd_bus_vtable manager_vtable[];
int bus_manager_shutdown_or_sleep_now_or_later(Manager *m, HandleAction action, InhibitWhat w, sd_bus_error *error);
+int shutdown_or_sleep(HandleAction action);
int manager_send_changed(Manager *manager, const char *property, ...) _sentinel_;