diff options
author | Andy Wingo <wingo@pobox.com> | 2015-08-23 12:28:10 +0200 |
---|---|---|
committer | Andy Wingo <wingo@pobox.com> | 2015-08-23 12:28:10 +0200 |
commit | 06ca7594edc2bf54a32f0fe86fc65976c70f1f11 (patch) | |
tree | 36ec70787c215b0af91ef3c79d282796dc1037f8 /src/login/logind.h | |
parent | fb9ec2d4fc198bcb47352cfce7d436901308eed8 (diff) |
Beginnings of handling suspend/etc within logind
Since we are catching the keys, we might as well just do
suspend/reboot/etc handling here.
Diffstat (limited to 'src/login/logind.h')
-rw-r--r-- | src/login/logind.h | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/login/logind.h b/src/login/logind.h index 7df3556eb1..f2e9d38af9 100644 --- a/src/login/logind.h +++ b/src/login/logind.h @@ -80,13 +80,9 @@ struct Manager { InhibitWhat action_what; /* If a shutdown/suspend was delayed due to a inhibitor this - contains the unit name we are supposed to start after the + contains the action we are supposed to perform after the delay is over */ - const char *action_unit; - - /* If a shutdown/suspend is currently executed, then this is - * the job of it */ - char *action_job; + HandleAction pending_action; usec_t action_timestamp; sd_event_source *idle_action_event_source; @@ -148,7 +144,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, const char *unit_name, InhibitWhat w, sd_bus_error *error); +int bus_manager_shutdown_or_sleep_now_or_later(Manager *m, HandleAction action, InhibitWhat w, sd_bus_error *error); int manager_send_changed(Manager *manager, const char *property, ...) _sentinel_; |