chiark / gitweb /
sd-login: add a public accessor for the VT number
[elogind.git] / src / systemd / sd-login.h
index e37aeda2bb7c0f78dd26eeea23b7b0e948927be6..c5837f0ca0e8e383ebab29829d2887688f8dedfc 100644 (file)
@@ -124,6 +124,9 @@ 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);
 
+/* Determine the VT number of this session. */
+int sd_session_get_vt(const char *session, unsigned *vtnr);
+
 /* Return active session and user of seat */
 int sd_seat_get_active(const char *seat, char **session, uid_t *uid);