summaryrefslogtreecommitdiff
path: root/src/systemd
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2012-01-05 23:14:22 +0100
committerLennart Poettering <lennart@poettering.net>2012-01-05 23:14:22 +0100
commiteff406331adb23e27e4bd29a3b69322fc359ca3d (patch)
tree4b819357ed9977a7e0d689c30603b30ccdee3726 /src/systemd
parent4cd9a9d9ecf3a8835e21930f3215a5f5b74144be (diff)
login: implement sd_session_get_service()
Diffstat (limited to 'src/systemd')
-rw-r--r--src/systemd/sd-login.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/systemd/sd-login.h b/src/systemd/sd-login.h
index 00de6716b..7d76f9a44 100644
--- a/src/systemd/sd-login.h
+++ b/src/systemd/sd-login.h
@@ -83,6 +83,9 @@ int sd_session_get_uid(const char *session, uid_t *uid);
/* Determine seat of session */
int sd_session_get_seat(const char *session, char **seat);
+/* Determine the (PAM) service name this session was registered by. */
+int sd_session_get_service(const char *session, char **service);
+
/* Return active session and user of seat */
int sd_seat_get_active(const char *seat, char **session, uid_t *uid);