X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fsystemd%2Fsd-login.h;h=6e99cfc951bec45ea3fd585bec1fb9fa16487992;hb=816115863962548a9a0d9fbfe429c7f8e685beac;hp=7746c742ffd9123de089ba21807b70e37497c0bf;hpb=f9873976499de5c90c703e04a3bee96848fc90c8;p=elogind.git diff --git a/src/systemd/sd-login.h b/src/systemd/sd-login.h index 7746c742f..6e99cfc95 100644 --- a/src/systemd/sd-login.h +++ b/src/systemd/sd-login.h @@ -90,6 +90,15 @@ 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 **clazz); + +/* Determine the X11 display of this session. */ +int sd_session_get_display(const char *session, char **display); + /* Return active session and user of seat */ int sd_seat_get_active(const char *seat, char **session, uid_t *uid);