X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fsystemd%2Fsd-login.h;h=3746b45cf36500abdcfd9a6f187bd477c8498289;hb=c84f5e4a825f17163ead0f60308d548b415334a5;hp=1a36a56b12c9060c782e39e6d13e779f28c6cf6b;hpb=20747498c68575646fae88f4dd270fab219a25a6;p=elogind.git diff --git a/src/systemd/sd-login.h b/src/systemd/sd-login.h index 1a36a56b1..3746b45cf 100644 --- a/src/systemd/sd-login.h +++ b/src/systemd/sd-login.h @@ -44,6 +44,8 @@ extern "C" { * These functions access data in /proc, /sys/fs/cgroup and /run. All * of these are virtual file systems, hence the accesses are * relatively cheap. + * + * See sd-login(3) for more information. */ /* Get session from PID. Note that 'shared' processes of a user are @@ -106,6 +108,9 @@ 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); +/* Determine the TTY of this session. */ +int sd_session_get_tty(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);