diff options
author | Lennart Poettering <lennart@poettering.net> | 2012-02-14 21:54:00 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2012-02-14 21:54:00 +0100 |
commit | 51f58f083a9454599080dc01d7740cf097f48920 (patch) | |
tree | 69cc8b34ee3e74280e7e90bc773d2a48c2b056a2 /src/systemd/sd-login.h | |
parent | 55efac6cbcea0d8edda9c6820620ceb390009e7a (diff) |
login: add new sd_session_get_type() and sd_session_get_class API calls
Diffstat (limited to 'src/systemd/sd-login.h')
-rw-r--r-- | src/systemd/sd-login.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/systemd/sd-login.h b/src/systemd/sd-login.h index 7746c742f..879e0744a 100644 --- a/src/systemd/sd-login.h +++ b/src/systemd/sd-login.h @@ -90,6 +90,12 @@ 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); +/* Determine the type of this session, i.e. one of "tty", "x11" or "unspecified". */ +int sd_session_get_type(const char *session, char **type); + +/* Determine the class of this session, i.e. one of "user", "greeter" or "lock-screen". */ +int sd_session_get_class(const char *session, char **class); + /* Return active session and user of seat */ int sd_seat_get_active(const char *seat, char **session, uid_t *uid); |