summaryrefslogtreecommitdiff
path: root/src/logind-user.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-user.h
parent5a3ab509b56bd79bf2be53cc259ce45c0be269e6 (diff)
logind: implement GC
Diffstat (limited to 'src/logind-user.h')
-rw-r--r--src/logind-user.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/logind-user.h b/src/logind-user.h
index 04392e01db..fc48059429 100644
--- a/src/logind-user.h
+++ b/src/logind-user.h
@@ -54,14 +54,18 @@ struct User {
dual_timestamp timestamp;
+ bool in_gc_queue:1;
+
LIST_HEAD(Session, sessions);
+ LIST_FIELDS(User, gc_queue);
};
User* user_new(Manager *m, uid_t uid, gid_t gid, const char *name);
void user_free(User *u);
+int user_check_gc(User *u);
+void user_add_to_gc_queue(User *u);
int user_start(User *u);
int user_stop(User *u);
-int user_check_gc(User *u);
UserState user_get_state(User *u);
int user_save(User *u);
int user_load(User *u);