diff options
author | Lennart Poettering <lennart@poettering.net> | 2012-06-21 16:14:53 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2012-06-21 16:14:53 +0200 |
commit | 0604381b9dbef4cc498b5a77311e1da99c1430b8 (patch) | |
tree | ec766081c20d07ddd17c825d42569fbddefdcbe8 /src/login/logind-user.h | |
parent | f1a8e221ecacea23883df57951e291a910463948 (diff) |
logind: introduce a state for session, being one of online, active, closing
online = logged in
active = logged in and session is in the fg
closing = nominally logged out but some left-over processes still around
Related to:
https://bugzilla.gnome.org/show_bug.cgi?id=677556
Diffstat (limited to 'src/login/logind-user.h')
-rw-r--r-- | src/login/logind-user.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/login/logind-user.h b/src/login/logind-user.h index 93e5fd934a..cffac35447 100644 --- a/src/login/logind-user.h +++ b/src/login/logind-user.h @@ -30,11 +30,11 @@ typedef struct User User; #include "logind-session.h" typedef enum UserState { - USER_OFFLINE, - USER_LINGERING, - USER_ONLINE, - USER_ACTIVE, - USER_CLOSING, + USER_OFFLINE, /* Not logged in at all */ + USER_LINGERING, /* Lingering has been enabled by the admin for this user */ + USER_ONLINE, /* User logged in */ + USER_ACTIVE, /* User logged in and has a session in the fg */ + USER_CLOSING, /* User logged out, but processes still remain and lingering is not enabled */ _USER_STATE_MAX, _USER_STATE_INVALID = -1 } UserState; |