summaryrefslogtreecommitdiff
path: root/src/login/sd-login.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2012-02-15 04:56:10 +0100
committerLennart Poettering <lennart@poettering.net>2012-02-15 04:56:10 +0100
commitfc8af9ff3fbbbf21bf26f21d2eb100f26afc201a (patch)
tree6fcdbdd6aa92862ed5b256b1bc6411809c7cfde9 /src/login/sd-login.c
parent068665b6fd9839f27bcace7e8f56c0baa6935272 (diff)
login: introduce sd_session_get_display()
Diffstat (limited to 'src/login/sd-login.c')
-rw-r--r--src/login/sd-login.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/login/sd-login.c b/src/login/sd-login.c
index c100a7b4f2..887c421009 100644
--- a/src/login/sd-login.c
+++ b/src/login/sd-login.c
@@ -475,6 +475,10 @@ _public_ int sd_session_get_class(const char *session, char **class) {
return session_get_string(session, "CLASS", class);
}
+_public_ int sd_session_get_display(const char *session, char **display) {
+ return session_get_string(session, "DISPLAY", display);
+}
+
static int file_of_seat(const char *seat, char **_p) {
char *p;
int r;