summaryrefslogtreecommitdiff
path: root/src/logind-session.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2011-05-25 00:55:58 +0200
committerLennart Poettering <lennart@poettering.net>2011-06-21 19:29:44 +0200
commit14c3baca3eb8b32fc266e46127851585bee5aff2 (patch)
treed6b4bcb9927cc5bf9ea552ff05a4664f6dcf0119 /src/logind-session.h
parent5a3ab509b56bd79bf2be53cc259ce45c0be269e6 (diff)
logind: implement GC
Diffstat (limited to 'src/logind-session.h')
-rw-r--r--src/logind-session.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/logind-session.h b/src/logind-session.h
index b3f0b5fa7a..4c6e768f8f 100644
--- a/src/logind-session.h
+++ b/src/logind-session.h
@@ -66,17 +66,21 @@ struct Session {
char *cgroup_path;
char **controllers, **reset_controllers;
- bool kill_processes;
+ bool kill_processes:1;
+ bool in_gc_queue:1;
LIST_FIELDS(Session, sessions_by_user);
LIST_FIELDS(Session, sessions_by_seat);
+
+ LIST_FIELDS(Session, gc_queue);
};
Session *session_new(Manager *m, User *u, const char *id);
void session_free(Session *s);
+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_check_gc(Session *s);
int session_start(Session *s);
int session_stop(Session *s);
int session_save(Session *s);