summaryrefslogtreecommitdiff
path: root/src/login/logind-session.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2013-04-09 22:18:16 +0200
committerLennart Poettering <lennart@poettering.net>2013-04-09 22:18:16 +0200
commite2acb67baaa1d63685dcaf80becf10291f13d086 (patch)
treeb80a3d73584f350db6de7690ebae3d6911ef906f /src/login/logind-session.h
parent05d0c3e1fde1794b26afc572ad1acfe52048ecba (diff)
logind: introduce an explicit session class for cronjobs and similar
cronjobs are neither interactive user session, nor lock screens, nor login screens, hence they should get their own class.
Diffstat (limited to 'src/login/logind-session.h')
-rw-r--r--src/login/logind-session.h17
1 files changed, 9 insertions, 8 deletions
diff --git a/src/login/logind-session.h b/src/login/logind-session.h
index 7598afa618..c8dd181e7b 100644
--- a/src/login/logind-session.h
+++ b/src/login/logind-session.h
@@ -37,22 +37,23 @@ typedef enum SessionState {
_SESSION_STATE_INVALID = -1
} SessionState;
-typedef enum SessionType {
- SESSION_UNSPECIFIED,
- SESSION_TTY,
- SESSION_X11,
- _SESSION_TYPE_MAX,
- _SESSION_TYPE_INVALID = -1
-} SessionType;
-
typedef enum SessionClass {
SESSION_USER,
SESSION_GREETER,
SESSION_LOCK_SCREEN,
+ SESSION_BACKGROUND,
_SESSION_CLASS_MAX,
_SESSION_CLASS_INVALID = -1
} SessionClass;
+typedef enum SessionType {
+ SESSION_UNSPECIFIED,
+ SESSION_TTY,
+ SESSION_X11,
+ _SESSION_TYPE_MAX,
+ _SESSION_TYPE_INVALID = -1
+} SessionType;
+
typedef enum KillWho {
KILL_LEADER,
KILL_ALL,