summaryrefslogtreecommitdiff
path: root/src/logind-session.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2011-06-17 15:59:18 +0200
committerLennart Poettering <lennart@poettering.net>2011-06-21 19:29:45 +0200
commita185c5aa2d8bef98716f8cf160da263c17e588b2 (patch)
treeef6ff057c606efefe86b34503fe92bf40cf05b6d /src/logind-session.h
parent91f9dcaf9270fe465525638cc08bd94590273349 (diff)
logind: implement idle hint logic
Diffstat (limited to 'src/logind-session.h')
-rw-r--r--src/logind-session.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/logind-session.h b/src/logind-session.h
index 60ac1c54e6..76823931da 100644
--- a/src/logind-session.h
+++ b/src/logind-session.h
@@ -67,6 +67,9 @@ struct Session {
char *cgroup_path;
char **controllers, **reset_controllers;
+ bool idle_hint;
+ dual_timestamp idle_hint_timestamp;
+
bool kill_processes;
bool in_gc_queue:1;
@@ -82,6 +85,7 @@ int session_check_gc(Session *s);
void session_add_to_gc_queue(Session *s);
int session_activate(Session *s);
bool session_is_active(Session *s);
+int session_get_idle_hint(Session *s, dual_timestamp *t);
int session_start(Session *s);
int session_stop(Session *s);
int session_save(Session *s);