diff options
author | Lennart Poettering <lennart@poettering.net> | 2012-05-08 19:02:25 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2012-05-08 19:02:25 +0200 |
commit | d889a2069a87e4617b32ddbdeace5a53a12c699d (patch) | |
tree | 7b83f31c7e3f02fda73d4e208598bd93713f9685 /src/login/logind.h | |
parent | 6edd7d0a09171ea5ae8e01b7b1cbcb0bdfbfeb16 (diff) |
logind: implement suspend/hibernate calls with inhibition logic
Diffstat (limited to 'src/login/logind.h')
-rw-r--r-- | src/login/logind.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/login/logind.h b/src/login/logind.h index 2c0545206d..24332210c2 100644 --- a/src/login/logind.h +++ b/src/login/logind.h @@ -85,8 +85,9 @@ struct Manager { /* If a shutdown was delayed due to a inhibitor this contains the unit name we are supposed to start after the delay is over */ - const char *delayed_shutdown; - usec_t delayed_shutdown_timestamp; + const char *delayed_unit; + InhibitWhat delayed_what; + usec_t delayed_timestamp; usec_t inhibit_delay_max; }; @@ -140,7 +141,7 @@ DBusHandlerResult bus_message_filter(DBusConnection *c, DBusMessage *message, vo int manager_send_changed(Manager *manager, const char *properties); -int manager_dispatch_delayed_shutdown(Manager *manager); +int manager_dispatch_delayed(Manager *manager); /* gperf lookup function */ const struct ConfigPerfItem* logind_gperf_lookup(const char *key, unsigned length); |